/* Pilsbury Cottage - design system
   Accent: sage green. Wordmark: serif. Generous whitespace. */

:root {
  --sage: #6d7f5c;
  --sage-dark: #4f5e42;
  --sage-light: #eef1ea;
  --charcoal: #2b2b28;
  --ink: #33332f;
  --ink-soft: #6b6b64;
  --paper: #fdfdfb;
  --line: #e4e4de;
  --serif: 'Cormorant Garamond', Georgia, serif;
  --sans: 'Jost', 'Helvetica Neue', Arial, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: var(--sans);
  font-weight: 300;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.7;
  font-size: 16px;
}

img { max-width: 100%; display: block; }

/* ---------- placeholder image blocks ---------- */
.ph {
  background: #dfe3d8;
  color: #8a917d;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  min-height: 220px;
  text-align: center;
  padding: 1rem;
}
.ph::before { content: '\1F4F7\00a0\00a0'; }
.ph.has-img::before { content: none; }
.ph--hero { min-height: 82vh; }

/* ---------- split hero (home) ---------- */
.hero-split { display: flex; min-height: 84vh; }
.hero-split__photo { flex: 1 1 56%; min-height: 340px; }
.hero-split__panel {
  flex: 1 1 44%;
  background: var(--charcoal);
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem 1.5rem;
}
.hero-split__panel .site-nav { margin-top: 2rem; }
@media (max-width: 768px) {
  .hero-split { flex-direction: column; min-height: 0; }
  .hero-split__photo { min-height: 56vh; }
  .hero-split__panel { padding: 2.5rem 1rem; }
}
.ph--tall { min-height: 340px; }
.ph--wide { grid-column: span 2; }

/* ---------- header / nav ---------- */
.site-head {
  background: var(--charcoal);
  color: #fff;
  text-align: center;
  padding: 2.5rem 1rem 1.5rem;
}
.wordmark {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2rem, 5vw, 3.2rem);
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: #e9e4d8;
}
.wordmark small {
  display: block;
  font-family: var(--sans);
  font-size: 0.75rem;
  letter-spacing: 0.5em;
  color: #9a967f;
  margin-top: 0.4rem;
}
.site-nav { margin-top: 1.4rem; }
.site-nav a {
  color: #cfccc0;
  text-decoration: none;
  font-size: 0.78rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  margin: 0 1rem;
  padding-bottom: 0.3rem;
  border-bottom: 1px solid transparent;
}
.site-nav a:hover, .site-nav a.active {
  color: #fff;
  border-bottom-color: var(--sage);
}

/* ---------- sections ---------- */
.section { padding: 4.5rem 1.5rem; }
.section--band { background: var(--sage-light); }
.section--dark { background: var(--charcoal); color: #e6e3da; }
.wrap { max-width: 1080px; margin: 0 auto; }
.wrap--narrow { max-width: 720px; margin: 0 auto; text-align: center; }

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 500;
  color: inherit;
  line-height: 1.2;
}
.section h2 {
  font-size: 2.1rem;
  text-align: center;
  margin-bottom: 0.5rem;
}
.section .tagline {
  text-align: center;
  font-family: var(--serif);
  font-style: italic;
  color: var(--ink-soft);
  margin-bottom: 2rem;
}
.section--dark .tagline { color: #a9a698; }
.lead { color: var(--ink-soft); }

.rule {
  width: 48px;
  height: 2px;
  background: var(--sage);
  margin: 1.2rem auto 2rem;
  border: none;
}

/* ---------- buttons ---------- */
.btn {
  display: inline-block;
  font-size: 0.78rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 0.8rem 1.8rem;
  border: 1px solid var(--sage);
  color: var(--sage-dark);
  background: transparent;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
  font-family: var(--sans);
}
.btn:hover { background: var(--sage); color: #fff; }
.btn--solid { background: var(--sage); color: #fff; }
.btn--solid:hover { background: var(--sage-dark); }
.btn-row { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; margin-top: 2rem; }

/* ---------- features strip ---------- */
.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0.5rem 2rem;
  max-width: 760px;
  margin: 0 auto;
  list-style: none;
}
.features li {
  padding: 0.55rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.12);
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.features li::before { content: '\2013\00a0\00a0'; color: var(--sage); }

/* ---------- photo grids ---------- */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 10px;
}

/* ---------- location tiles ---------- */
.tiles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 10px;
}
.tile { position: relative; }
.tile figcaption {
  position: absolute;
  inset: auto 0 0 0;
  background: rgba(43,43,40,0.78);
  color: #ece9df;
  font-size: 0.8rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  text-align: center;
  padding: 0.6rem;
}

/* ---------- footer ---------- */
.site-foot {
  background: var(--charcoal);
  color: #b9b6aa;
  padding: 3rem 1.5rem 2rem;
  font-size: 0.85rem;
}
.foot-cols {
  max-width: 1080px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  text-align: center;
}
.foot-cols h3 {
  font-size: 1rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-family: var(--sans);
  font-weight: 400;
  color: #e6e3da;
  margin-bottom: 0.8rem;
}
.foot-cols a { color: #b9b6aa; text-decoration: none; display: block; padding: 0.15rem 0; }
.foot-cols a:hover { color: #fff; }
.copyright { text-align: center; margin-top: 2.5rem; color: #7c7a6f; font-size: 0.75rem; }
.copyright a { color: inherit; text-decoration: none; }
.copyright a:hover { color: #fff; text-decoration: underline; }

/* ---------- local friends ---------- */
.partner-list { max-width: 760px; margin: 0 auto; display: grid; gap: 14px; }
.partner {
  background: #fff;
  border: 1px solid var(--line);
  padding: 1.4rem 1.6rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
  text-align: left;
}
.partner h3 { font-size: 1.35rem; }
.partner .ptype {
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--sage-dark);
}
.partner .benefit { color: var(--ink); margin-top: 0.3rem; }
.partner .terms { color: var(--ink-soft); font-size: 0.85rem; }
.code-reveal {
  font-family: var(--serif);
  font-size: 1.5rem;
  letter-spacing: 0.2em;
  color: var(--sage-dark);
  border: 1px dashed var(--sage);
  padding: 0.5rem 1.2rem;
}

/* ---------- admin text editing ---------- */
.admin-editable { outline: 1px dashed rgba(109,127,92,0.55); outline-offset: 4px; cursor: text; min-height: 1em; }
.admin-editable:hover { outline-color: var(--sage); }
.admin-editable:focus { outline: 2px solid var(--sage); outline-offset: 4px; background: rgba(109,127,92,0.07); }

/* ---------- availability calendar ---------- */
.cal-nav { display: flex; align-items: center; justify-content: center; gap: 1.5rem; margin-bottom: 1.5rem; }
.cal-nav button {
  border: 1px solid var(--sage); background: transparent; color: var(--sage-dark);
  width: 40px; height: 40px; cursor: pointer; font-size: 1.1rem; line-height: 1;
}
.cal-nav button:hover { background: var(--sage); color: #fff; }
.cal-nav button:disabled { opacity: 0.3; cursor: default; }
.cal-nav button:disabled:hover { background: transparent; color: var(--sage-dark); }
.cal-months { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 2rem; max-width: 760px; margin: 0 auto; }
.cal-month__name { font-family: var(--serif); font-size: 1.4rem; text-align: center; margin-bottom: 0.8rem; }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; }
.cal-dow { text-align: center; font-size: 0.65rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-soft); padding-bottom: 0.4rem; }
.cal-day { aspect-ratio: 1; display: flex; align-items: center; justify-content: center; font-size: 0.85rem; color: var(--ink); border-radius: 2px; }
.cal-day--empty { background: transparent; }
.cal-day--past { color: #c9c9c2; }
.cal-day--free { background: var(--sage-light); }
.cal-day--booked { background: #d9d6cf; color: #9a978f; text-decoration: line-through; }
.cal-day--changeover { background: #eaa63e; color: #5c3a06; }
/* Admin booking types, matching the Awaze owner portal legend */
.cal-day--t-guest { background: #bcd39a; color: #39501e; }
.cal-day--t-owner { background: #cf9bb0; color: #5c223c; }
.cal-day--t-other { background: #e6b3d0; color: #5e2447; }
.cal-day--t-provisional { background: #f0e2a3; color: #6b5a12; }
.cal-day--t-closed { background: #d2d0c9; color: #7a786f; text-decoration: line-through; }
.cal-legend { display: flex; gap: 1.5rem; justify-content: center; margin-top: 1.5rem; font-size: 0.8rem; color: var(--ink-soft); flex-wrap: wrap; }
.cal-legend span { display: inline-flex; align-items: center; gap: 0.4rem; }
.cal-legend i { width: 14px; height: 14px; border-radius: 2px; display: inline-block; }
.cal-admin-note { text-align: center; color: var(--sage-dark); font-size: 0.85rem; margin-bottom: 1rem; }
.cal-day--admin { cursor: pointer; }
.cal-day--admin:hover { outline: 1px solid var(--sage); }
.cal-day--selected { background: var(--sage); color: #fff; }
.cal-bookings { max-width: 620px; margin: 2rem auto 0; }
.cal-bookings h3 { font-size: 1.1rem; margin-bottom: 0.8rem; text-align: center; }
.cal-booking-row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 0.6rem 0.9rem; border: 1px solid var(--line); background: #fff; margin-bottom: 8px; font-size: 0.9rem; }

/* ---------- confirm dialog ---------- */
.modal-back {
  position: fixed;
  inset: 0;
  background: rgba(43,43,40,0.6);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  z-index: 50;
}
.modal-back.open { display: flex; }
.modal {
  background: var(--paper);
  max-width: 420px;
  width: 100%;
  padding: 2rem;
  text-align: center;
}
.modal h3 { font-size: 1.5rem; margin-bottom: 0.8rem; }
.modal p { color: var(--ink-soft); font-size: 0.95rem; margin-bottom: 1.5rem; }

@media (max-width: 640px) {
  .site-nav a { margin: 0 0.5rem; }
  .section { padding: 3rem 1rem; }
}
