/* The Pilot House — hospitality direct-booking site */
:root {
  --ivory: #f4efe6;
  --paper: #fbf8f3;
  --sand: #e7dfd2;
  --line: #d8d0c3;
  --ink: #1c1916;
  --ink-soft: #4a453e;
  --muted: #6f685e;
  --forest: #24362c;
  --forest-deep: #17241d;
  --moss: #3d5a47;
  --copper: #a67c52;
  --copper-soft: #c4a07a;
  --white: #fffdf9;
  --danger: #8a3a2a;
  --shadow: 0 20px 50px rgba(28, 25, 22, 0.16);
  --shadow-soft: 0 8px 24px rgba(28, 25, 22, 0.08);
  --serif: "Cormorant Garamond", "Iowan Old Style", Georgia, serif;
  --sans: "Outfit", "Avenir Next", "Segoe UI", sans-serif;
  --max: 1200px;
  --wide: 1440px;
  --radius: 18px;
  --header-h: 76px;
  --sticky-h: 74px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--sans);
  font-weight: 400;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
button, input, select { font-family: inherit; }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 500; letter-spacing: -0.02em; line-height: 1.15; margin: 0; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

.skip {
  position: absolute; left: -999px; top: 0;
  background: var(--forest); color: var(--ivory); padding: 0.6rem 1rem; z-index: 1000;
}
.skip:focus { left: 1rem; top: 1rem; }

/* Header */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 50;
  height: var(--header-h);
  display: flex; align-items: center;
  transition: background 0.3s ease, box-shadow 0.3s ease, color 0.3s ease;
  color: var(--ivory);
}
.site-header.scrolled,
.site-header.menu-open {
  background: rgba(251, 248, 243, 0.94);
  backdrop-filter: blur(16px);
  color: var(--ink);
  box-shadow: 0 1px 0 var(--line);
}
.header-inner {
  width: min(100% - 2rem, var(--wide));
  margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
.wordmark {
  text-decoration: none;
  display: flex; flex-direction: column; line-height: 1;
}
.wordmark .name {
  font-family: var(--serif);
  font-size: 1.55rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}
.wordmark .place {
  font-family: var(--sans);
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  opacity: 0.8;
  margin-top: 0.2rem;
  font-weight: 500;
}
.nav-links {
  display: flex; align-items: center; gap: 1.6rem;
  list-style: none; margin: 0; padding: 0;
}
.nav-links a {
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  opacity: 0.92;
}
.nav-links a:hover { opacity: 1; text-decoration: underline; text-underline-offset: 4px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 0.5rem;
  border: 0; cursor: pointer;
  text-decoration: none;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 0.78rem;
  border-radius: 999px;
  padding: 0.9rem 1.35rem;
  transition: transform 0.15s ease, background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}
.btn:focus-visible, .nav-links a:focus-visible, .icon-btn:focus-visible {
  outline: 2px solid var(--copper);
  outline-offset: 3px;
}
.btn-primary {
  background: var(--copper);
  color: var(--white);
  box-shadow: 0 8px 20px rgba(166, 124, 82, 0.28);
}
.btn-primary:hover { background: #946c45; transform: translateY(-1px); }
.btn-dark {
  background: var(--forest);
  color: var(--ivory);
}
.btn-dark:hover { background: var(--forest-deep); transform: translateY(-1px); }
.btn-ghost {
  background: transparent;
  color: inherit;
  border: 1px solid currentColor;
  opacity: 0.9;
}
.btn-ghost:hover { background: rgba(255,255,255,0.12); }
.header-cta { flex-shrink: 0; }
.nav-toggle {
  display: none;
  background: none; border: 0; color: inherit;
  width: 44px; height: 44px; cursor: pointer;
  padding: 0;
}
.nav-toggle span {
  display: block; width: 22px; height: 1.5px; background: currentColor; margin: 6px auto;
  transition: transform 0.2s ease, opacity 0.2s;
}
.site-header:not(.scrolled):not(.menu-open) .wordmark,
.site-header:not(.scrolled):not(.menu-open) .nav-links a {
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.58), 0 2px 14px rgba(0, 0, 0, 0.42);
}
.site-header:not(.scrolled):not(.menu-open) .wordmark .place { opacity: 0.95; }
.site-header:not(.scrolled):not(.menu-open) .nav-toggle span {
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.55);
}

/* Hero */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: flex-end;
  color: var(--ivory);
  overflow: hidden;
}
.hero-photo {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 62%;
}
.hero-shade {
  position: absolute; inset: 0;
  background:
    radial-gradient(130% 80% at 50% 100%, rgba(10, 16, 13, 0.58) 0%, rgba(10, 16, 13, 0) 62%),
    linear-gradient(180deg, rgba(10, 16, 13, 0.72) 0%, rgba(10, 16, 13, 0.58) 38%, rgba(10, 16, 13, 0.72) 72%, rgba(10, 16, 13, 0.84) 100%);
}
.hero-content {
  position: relative;
  width: min(100% - 2rem, var(--wide));
  margin: 0 auto 7.5rem;
  padding-bottom: 0.5rem;
}
.hero-content > * { max-width: 920px; }
.kicker {
  font-family: var(--sans);
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-weight: 500;
  margin: 0 0 1rem;
  color: var(--copper-soft);
}
.hero .kicker,
.collection-hero .kicker {
  color: #f8e7c2;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6), 0 2px 16px rgba(0, 0, 0, 0.45);
}
.hero h1,
.collection-hero h1 {
  color: #fff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.55), 0 4px 22px rgba(0, 0, 0, 0.45);
}
.hero h1 {
  font-size: clamp(2.6rem, 6.2vw, 5.4rem);
  font-weight: 500;
  line-height: 1.02;
  margin-bottom: 1rem;
  max-width: 16ch;
}
.hero-lead {
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  max-width: 38rem;
  color: rgba(255, 255, 255, 0.96);
  opacity: 1;
  font-weight: 300;
  margin-bottom: 1.6rem;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.55), 0 2px 14px rgba(0, 0, 0, 0.4);
}
.hero-meta {
  display: flex; flex-wrap: wrap; gap: 0.55rem 1.4rem;
  font-size: 0.92rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-weight: 500;
  color: #fff;
  opacity: 1;
  margin-bottom: 1.6rem;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.55), 0 2px 12px rgba(0, 0, 0, 0.38);
}
.hero-meta span { display: inline-flex; align-items: center; gap: 0.45rem; }
.hero-meta span::before {
  content: "";
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--copper-soft);
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }

/* Booking bar */
.booking {
  position: relative;
  z-index: 5;
  width: min(100% - 2rem, var(--max));
  margin: -4.2rem auto 0;
  background: var(--white);
  color: var(--ink);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.1rem;
}
.booking form {
  display: grid;
  grid-template-columns: 1.2fr 1.2fr 0.9fr auto;
  gap: 0.75rem;
  align-items: end;
}
.field { display: flex; flex-direction: column; gap: 0.35rem; }
.field label {
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--muted);
}
.field input, .field select {
  appearance: none;
  border: 1px solid var(--line);
  background: var(--paper);
  border-radius: 12px;
  padding: 0.85rem 0.95rem;
  font-size: 1rem;
  color: var(--ink);
  width: 100%;
}
.field input:focus, .field select:focus {
  outline: 2px solid var(--copper);
  outline-offset: 1px;
  border-color: transparent;
}
.booking .btn { height: 52px; padding-inline: 1.6rem; }
.booking-note, .form-error {
  margin: 0.7rem 0.3rem 0;
  font-size: 0.88rem;
  color: var(--muted);
}
.form-error { color: var(--danger); display: none; }
.form-error.show { display: block; }
.booking-rates {
  margin: 0.15rem 0.3rem 0;
  font-size: 0.88rem;
  color: var(--ink-soft);
}

/* Sections */
.section { padding: 5.5rem 0; }
.section-inner { width: min(100% - 2rem, var(--max)); margin: 0 auto; }
.section-wide { width: min(100% - 2rem, var(--wide)); margin: 0 auto; }
.section-kicker {
  font-size: 0.74rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--copper);
  font-weight: 600;
  margin-bottom: 0.7rem;
}
.section h2 {
  font-size: clamp(2rem, 4vw, 3.25rem);
  margin-bottom: 1.2rem;
}
.lede { font-size: 1.15rem; color: var(--ink-soft); max-width: 46rem; }

/* Why book */
.why {
  background: var(--forest);
  color: var(--ivory);
  padding: 3.25rem 0;
  margin-top: 4.5rem;
}
.why-grid {
  width: min(100% - 2rem, var(--max));
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem 2.5rem;
}
.why h3 {
  font-size: 1.55rem;
  margin-bottom: 0.45rem;
}
.why p { color: rgba(244, 239, 230, 0.82); font-size: 0.98rem; }
.why .section-kicker { color: var(--copper-soft); }

/* Intro split */
.intro-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 4rem;
  align-items: center;
}
.intro-copy h2 { margin-bottom: 1.1rem; }
.intro-copy p { color: var(--ink-soft); }
.intro-photos {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
}
.intro-photos figure { margin: 0; }
.intro-photos img {
  width: 100%; height: 100%;
  object-fit: cover;
  border-radius: 14px;
  cursor: pointer;
}
.intro-photos figure:first-child {
  grid-column: 1 / -1;
  aspect-ratio: 4/3;
}
.intro-photos figure:not(:first-child) { aspect-ratio: 1/1; }

/* Stats */
.stats {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1rem;
  margin: 3rem 0 0;
  padding: 1.5rem 0 0;
  border-top: 1px solid var(--line);
}
.stat { text-align: left; }
.stat b {
  display: block;
  font-family: var(--serif);
  font-size: 2rem;
  font-weight: 500;
  line-height: 1;
  margin-bottom: 0.25rem;
}
.stat span { font-size: 0.82rem; color: var(--muted); letter-spacing: 0.04em; text-transform: uppercase; }

/* Gallery */
.gallery-section { background: var(--ivory); }
.gallery-head {
  display: flex; justify-content: space-between; align-items: flex-end;
  gap: 1rem; margin-bottom: 1.6rem; flex-wrap: wrap;
}
.mosaic {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 140px;
  gap: 0.65rem;
}
.mosaic button {
  padding: 0; border: 0; background: none; cursor: pointer;
  border-radius: 12px; overflow: hidden;
  position: relative;
}
.mosaic img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.mosaic button:hover img { transform: scale(1.04); }
.mosaic .g-wide { grid-column: span 2; grid-row: span 3; }
.mosaic .g-tall { grid-row: span 2; }
.mosaic .g-mid { grid-column: span 2; grid-row: span 2; }
.mosaic .more-tile::after {
  content: attr(data-more);
  position: absolute; inset: 0;
  background: rgba(23, 36, 29, 0.48);
  color: var(--ivory);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--serif);
  font-size: 1.6rem;
}

/* Rooms */
.rooms-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}
.room-card {
  background: var(--white);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}
.room-card img { width: 100%; height: 260px; object-fit: cover; cursor: pointer; }
.room-card .pad { padding: 1.2rem 1.3rem 1.4rem; }
.room-card h3 { font-size: 1.6rem; margin-bottom: 0.35rem; }
.room-card p { color: var(--ink-soft); font-size: 0.98rem; }

/* Amenities */
.amenity-groups {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
}
.amenity-card {
  background: var(--white);
  border: 1px solid var(--sand);
  border-radius: 16px;
  padding: 1.4rem 1.45rem 1.5rem;
}
.amenity-card h3 { font-size: 1.45rem; margin-bottom: 0.8rem; }
.amenity-card ul {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-direction: column; gap: 0.4rem;
  color: var(--ink-soft);
  font-size: 0.95rem;
}
.amenity-card li {
  padding-left: 1rem;
  position: relative;
}
.amenity-card li::before {
  content: "";
  position: absolute; left: 0; top: 0.6em;
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--copper);
}

/* Outdoors */
.outdoors { background: var(--forest-deep); color: var(--ivory); }
.outdoors .section-kicker { color: var(--copper-soft); }
.outdoors .lede { color: rgba(244,239,230,0.82); }
.outdoors-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 1rem;
  margin-top: 2rem;
}
.outdoors-grid img {
  width: 100%; height: 100%; object-fit: cover;
  border-radius: 14px; cursor: pointer;
}
.outdoors-grid .feature { min-height: 460px; }
.outdoors-side { display: grid; gap: 1rem; }
.outdoors-side img { min-height: 220px; }

/* Location / hosts / rules */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5rem;
  align-items: start;
}
.panel {
  background: var(--white);
  border: 1px solid var(--sand);
  border-radius: 16px;
  padding: 1.5rem 1.55rem;
}
.panel + .panel { margin-top: 1rem; }
.panel h3 { font-size: 1.45rem; margin-bottom: 0.6rem; }
.panel ul, .rules-list {
  margin: 0; padding: 0; list-style: none;
  color: var(--ink-soft);
}
.rules-list li, .panel li {
  padding: 0.55rem 0;
  border-bottom: 1px solid var(--sand);
  display: flex; justify-content: space-between; gap: 1rem;
}
.rules-list li:last-child, .panel li:last-child { border-bottom: 0; }
.rule-label { font-weight: 500; color: var(--ink); }
.stars { color: var(--copper); letter-spacing: 0.15em; font-size: 0.95rem; }

/* Footer */
.site-footer {
  background: var(--ink);
  color: var(--ivory);
  padding: 3.5rem 0 6.5rem;
}
.footer-grid {
  width: min(100% - 2rem, var(--max));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2.5rem;
}
.site-footer .name { font-family: var(--serif); font-size: 2rem; font-weight: 500; }
.site-footer p, .site-footer a { color: rgba(244,239,230,0.8); text-decoration: none; }
.site-footer a:hover { color: var(--ivory); text-decoration: underline; text-underline-offset: 3px; }
.site-footer h3 {
  font-family: var(--sans);
  font-size: 0.74rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 0.8rem;
  color: var(--copper-soft);
}
.footer-links { display: flex; flex-direction: column; gap: 0.4rem; }
.legal {
  width: min(100% - 2rem, var(--max));
  margin: 2.25rem auto 0;
  padding-top: 1.4rem;
  border-top: 1px solid rgba(244,239,230,0.12);
  font-size: 0.82rem;
  opacity: 0.65;
  display: block;
}

/* Mobile sticky bar */
.sticky-bar {
  display: none;
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
  background: rgba(251, 248, 243, 0.94);
  backdrop-filter: blur(16px);
  border-top: 1px solid var(--line);
  padding: 0.7rem 1rem calc(0.7rem + env(safe-area-inset-bottom));
  gap: 0.55rem;
  justify-content: stretch;
}
.sticky-bar .btn { flex: 1; }

/* Lightbox */
.lightbox {
  display: none;
  position: fixed; inset: 0; z-index: 80;
  background: rgba(16, 14, 12, 0.94);
  color: var(--ivory);
  flex-direction: column;
}
.lightbox.open { display: flex; }
.lightbox-toolbar {
  display: flex; justify-content: space-between; align-items: center;
  padding: 0.8rem 1rem;
  font-size: 0.9rem;
}
.icon-btn {
  background: transparent; border: 0; color: inherit;
  width: 44px; height: 44px; cursor: pointer; font-size: 1.6rem; line-height: 1;
  border-radius: 50%;
}
.icon-btn:hover { background: rgba(255,255,255,0.08); }
.lightbox-stage {
  flex: 1;
  display: flex; align-items: center; justify-content: center;
  position: relative;
  min-height: 0;
  padding: 0 3.5rem 1.5rem;
}
.lightbox-stage img {
  max-width: 100%;
  max-height: calc(100dvh - 110px);
  object-fit: contain;
  border-radius: 6px;
}
.lightbox .prev, .lightbox .next {
  position: absolute; top: 50%; transform: translateY(-50%);
}
.lightbox .prev { left: 0.4rem; }
.lightbox .next { right: 0.4rem; }

@media (max-width: 980px) {
  .nav-links, .header-cta { display: none; }
  .site-header.menu-open .nav-links {
    display: flex;
    position: absolute; top: var(--header-h); left: 0; right: 0;
    flex-direction: column; align-items: flex-start;
    background: var(--paper); color: var(--ink);
    padding: 1rem 1.25rem 1.4rem;
    gap: 1rem;
    box-shadow: var(--shadow-soft);
  }
  .nav-toggle { display: block; }
  .booking form { grid-template-columns: 1fr 1fr; }
  .booking form .btn { grid-column: 1 / -1; }
  .why-grid, .intro-grid, .split, .outdoors-grid, .footer-grid, .rooms-grid { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(3, 1fr); }
  .amenity-groups { grid-template-columns: 1fr 1fr; }
  .mosaic { grid-template-columns: 1fr 1fr; grid-auto-rows: 120px; }
  .mosaic .g-wide, .mosaic .g-mid { grid-column: span 2; grid-row: span 2; }
  .hero-content { margin-bottom: 10.75rem; padding-bottom: 0.85rem; }
  .hero-meta { margin-bottom: 1.5rem; }
  .sticky-bar { display: flex; }
  .outdoors-grid .feature { min-height: 280px; }
}

@media (max-width: 620px) {
  .booking form { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr 1fr; gap: 1.1rem; }
  .amenity-groups { grid-template-columns: 1fr; }
  .section { padding: 3.75rem 0; }
  .hero-actions .btn-ghost { display: none; }
  .hero-content { margin-bottom: 11.5rem; }
  .lightbox-stage { padding: 0 0.5rem 1rem; }
}

@media (min-width: 1440px) {
  .hero h1 { font-size: 5.4rem; }
}


/* Collection / homepage */
.collection-hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  color: var(--ivory);
  overflow: hidden;
}
.collection-split {
  position: absolute; inset: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.collection-split figure { margin: 0; min-height: 100%; overflow: hidden; }
.collection-split img {
  width: 100%; height: 100%;
  object-fit: cover;
  min-height: 100vh;
  min-height: 100dvh;
}
.collection-shade {
  position: absolute; inset: 0;
  background:
    radial-gradient(130% 80% at 50% 100%, rgba(10, 16, 13, 0.58) 0%, rgba(10, 16, 13, 0) 62%),
    linear-gradient(180deg, rgba(10, 16, 13, 0.72) 0%, rgba(10, 16, 13, 0.58) 38%, rgba(10, 16, 13, 0.72) 72%, rgba(10, 16, 13, 0.84) 100%);
  pointer-events: none;
}
.collection-content {
  position: relative;
  width: min(100% - 2rem, var(--wide));
  margin: 0 auto;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 0 0 8rem;
}
.collection-content h1 {
  font-size: clamp(2.6rem, 6vw, 5.2rem);
  max-width: 16ch;
  margin-bottom: 0.8rem;
}
.cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.4rem;
  margin-top: 2rem;
}
.property-card {
  background: var(--white);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  display: flex;
  flex-direction: column;
  color: var(--ink);
  text-decoration: none;
}
.property-card .photo {
  display: block;
  aspect-ratio: 16/11;
  overflow: hidden;
}
.property-card .photo img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.property-card:hover .photo img { transform: scale(1.04); }
.property-card .pad { padding: 1.35rem 1.4rem 1.5rem; flex: 1; display: flex; flex-direction: column; }
.property-card .where {
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--copper);
  font-weight: 600;
  margin-bottom: 0.35rem;
}
.property-card h3 { font-size: 1.85rem; margin-bottom: 0.45rem; }
.property-card .specs {
  color: var(--muted);
  font-size: 0.92rem;
  margin-bottom: 0.7rem;
}
.property-card .rate {
  font-weight: 500;
  margin-bottom: 1.1rem;
}
.property-card .actions { display: flex; flex-wrap: wrap; gap: 0.55rem; margin-top: auto; }
.booking-form .field-grow { min-width: 0; }
.booking form.home-book {
  grid-template-columns: 1.15fr 1.15fr 0.9fr auto;
}
.nav-current { text-decoration: underline; text-underline-offset: 4px; }

#stays { scroll-margin-top: calc(var(--header-h) + 0.8rem); }

@media (max-width: 980px) {
  .collection-split { grid-template-columns: 1fr; }
  .collection-content { padding-bottom: 19rem; }
  .collection-hero + .booking { margin-top: -16.3rem; margin-bottom: 5.6rem; }
  .hero + .booking { margin-top: -4.2rem; margin-bottom: 5.6rem; }
  .cards { grid-template-columns: 1fr; }
  .booking form.home-book { grid-template-columns: 1fr 1fr; }
  .booking form.home-book .btn { grid-column: 1 / -1; }
  #stays { scroll-margin-top: calc(var(--header-h) + 0.6rem); scroll-margin-bottom: 6rem; }
}
@media (max-width: 620px) {
  .booking form.home-book {
    grid-template-columns: 1fr 1fr;
    align-items: end;
  }
  .booking form.home-book .btn { grid-column: auto; }
  .booking .booking-note { font-size: 0.8rem; }
}


/* Date-range calendar */
.field .field-label {
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--muted);
}
.date-trigger {
  appearance: none;
  border: 1px solid var(--line);
  background: var(--paper);
  border-radius: 12px;
  padding: 0.85rem 0.95rem;
  font-size: 1rem;
  color: var(--ink);
  width: 100%;
  height: 52px;
  text-align: left;
  cursor: pointer;
  line-height: 1.2;
}
.date-trigger:focus {
  outline: 2px solid var(--copper);
  outline-offset: 1px;
  border-color: transparent;
}
.date-trigger[aria-expanded="true"] {
  border-color: var(--forest);
  box-shadow: 0 0 0 1px var(--forest);
}
.date-trigger .placeholder,
.date-trigger [data-date-display]:empty,
.date-trigger.is-empty [data-date-display] {
  color: var(--muted);
}
.booking.calendar-open { z-index: 40; }
.daterange {
  position: absolute;
  z-index: 30;
  left: 1.1rem;
  right: 1.1rem;
  top: calc(100% - 0.25rem);
  background: var(--white);
  color: var(--ink);
  border-radius: 18px;
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
  padding: 1.1rem 1.15rem 1rem;
  display: none;
}
.daterange.open { display: block; }
.daterange.drop-up {
  top: auto;
  bottom: calc(100% - 0.25rem);
}
.daterange-prompt {
  font-size: 0.92rem;
  color: var(--ink-soft);
  margin: 0 0 0.85rem;
  min-height: 1.3em;
}
.daterange-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.7rem;
}
.daterange-titles {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  flex: 1;
  text-align: center;
}
.daterange-titles h3 {
  font-family: var(--serif);
  font-size: 1.35rem;
  font-weight: 600;
}
.daterange-nav button {
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  background: var(--paper);
  border-radius: 999px;
  cursor: pointer;
  color: var(--ink);
  display: grid;
  place-items: center;
  flex: 0 0 auto;
}
.daterange-nav button:hover:not(:disabled) { background: var(--sand); }
.daterange-nav button:disabled { opacity: 0.35; cursor: default; }
.daterange-months {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}
.daterange-weekdays,
.daterange-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  text-align: center;
}
.daterange-weekdays span {
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
  padding: 0.2rem 0 0.45rem;
}
.daterange-day {
  position: relative;
  appearance: none;
  border: 0;
  background: transparent;
  min-height: 40px;
  padding: 0;
  cursor: pointer;
  color: var(--ink);
  font-size: 0.92rem;
  font-weight: 500;
}
.daterange-day span {
  display: grid;
  place-items: center;
  width: 100%;
  aspect-ratio: 1;
  max-width: 42px;
  margin: 0 auto;
  border-radius: 999px;
  position: relative;
  z-index: 1;
}
.daterange-day:hover:not(:disabled):not(.is-start):not(.is-end) span {
  background: var(--sand);
}
.daterange-day.is-today span {
  box-shadow: inset 0 0 0 1.5px var(--copper);
}
.daterange-day.is-in-range {
  background: var(--sand);
}
.daterange-day.is-start span,
.daterange-day.is-end span {
  background: var(--forest);
  color: var(--ivory);
  box-shadow: none;
}
.daterange-day.is-in-range.is-start { border-radius: 999px 0 0 999px; }
.daterange-day.is-in-range.is-end { border-radius: 0 999px 999px 0; }
.daterange-day.is-start.is-end { border-radius: 999px; background: transparent; }
.daterange-day:disabled {
  color: var(--line);
  cursor: default;
  background: transparent;
}
.daterange-day:disabled span { background: transparent; }
.daterange-day.is-blocked:not(:disabled) {
  color: var(--muted);
  text-decoration: line-through;
  cursor: default;
}
.daterange-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-top: 0.9rem;
  padding-top: 0.85rem;
  border-top: 1px solid var(--line);
  flex-wrap: wrap;
}
.daterange-nights {
  font-size: 0.9rem;
  color: var(--ink-soft);
  min-height: 1.2em;
}
.daterange-actions { display: flex; gap: 0.5rem; margin-left: auto; }
.daterange-actions button {
  appearance: none;
  border-radius: 999px;
  padding: 0.45rem 0.95rem;
  font-size: 0.88rem;
  font-weight: 500;
  cursor: pointer;
}
.daterange-clear {
  border: 0;
  background: transparent;
  color: var(--ink-soft);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.daterange-clear:hover { color: var(--ink); }
.daterange-done {
  border: 0;
  background: var(--forest);
  color: var(--ivory);
}
.daterange-done:hover { background: var(--forest-deep); }
.nights-live {
  margin: 0.55rem 0.3rem 0;
  font-size: 0.88rem;
  color: var(--ink-soft);
  display: none;
}
.nights-live.show { display: block; }

@media (max-width: 720px) {
  .daterange,
  .daterange.drop-up {
    position: fixed;
    left: 0.7rem;
    right: 0.7rem;
    top: auto;
    bottom: 5.6rem;
    max-height: calc(100dvh - 7.5rem);
    overflow: auto;
    padding: 0.95rem 0.75rem 0.9rem;
    -webkit-overflow-scrolling: touch;
  }
  .daterange-titles { grid-template-columns: 1fr; }
  .daterange-titles .title-second { display: none; }
  .daterange-months { grid-template-columns: 1fr; }
  .daterange-month-second { display: none; }
  .daterange-day { min-height: 44px; }
  .daterange-day span { max-width: 44px; }
}

/* Homepage availability search results */
.search-results {
  display: none;
  margin-top: 1.35rem;
  padding: 1rem 1.15rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow-soft);
  align-items: center;
  justify-content: space-between;
  gap: 0.9rem 1.2rem;
  flex-wrap: wrap;
}
.search-results.is-visible,
.search-results:not([hidden]) {
  display: flex;
}
.search-results[hidden] { display: none !important; }
.search-results-msg {
  margin: 0;
  flex: 1 1 16rem;
  font-size: 1.02rem;
  color: var(--ink);
  font-weight: 500;
}
.search-results.is-empty .search-results-msg,
.search-results.is-error .search-results-msg { color: var(--ink-soft); }
.search-results-actions { display: flex; flex-wrap: wrap; gap: 0.55rem; align-items: center; }
.search-clear,
.search-fallback {
  appearance: none;
  border: 0;
  background: none;
  padding: 0;
  font: inherit;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--forest);
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}
.search-clear:hover,
.search-fallback:hover { color: var(--forest-deep); }
.search-fallback[hidden] { display: none; }

.property-card .avail-line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem 0.65rem;
  margin: 0 0 0.65rem;
  min-height: 1.6rem;
}
.property-card .avail-line[hidden] { display: none; }
.avail-badge {
  display: inline-flex;
  align-items: center;
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 600;
  padding: 0.28rem 0.6rem;
  border-radius: 999px;
  line-height: 1.2;
}
.avail-badge.is-yes {
  background: var(--forest);
  color: var(--ivory);
}
.avail-badge.is-no {
  background: var(--sand);
  color: var(--ink-soft);
}
.property-card .rate.is-live {
  font-weight: 600;
  color: var(--forest-deep);
}
.property-card.is-unavailable {
  opacity: 0.82;
}
.property-card.is-unavailable .photo img {
  filter: grayscale(0.28) saturate(0.85);
}
.property-card.is-available { order: 0; }
.property-card.is-unavailable { order: 1; }
.cards.is-searching { opacity: 0.72; transition: opacity 0.2s ease; }
