/* Crown Station Cottage
   Palette taken from the property: saltbush and ironbark greys, the cottage's
   green roof trim, dry paddock gold, and rusted steel from the deck railings. */
:root {
  --saltbush: #e6e9e1;      /* page background */
  --saltbush-2: #d8ddd2;    /* hairlines, image placeholders */
  --ironbark: #262b27;      /* text, dark sections */
  --ironbark-2: #4f5751;    /* secondary text (6.4:1 on saltbush) */
  --cottage: #2f4b3b;       /* roof-trim green: every booking button */
  --cottage-2: #233a2d;
  --paddock: #d6b45e;       /* dry grass gold, used on dark only */
  --rust-1: #8a4722;
  --rust-2: #5f2f15;

  --display: "Zilla Slab", "Rockwell", Georgia, serif;
  --body: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;

  --max: 1180px;
  --gutter: clamp(16px, 4vw, 40px);
  --z-header: 20;
  --z-mobilebar: 30;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
  margin: 0;
  background: var(--saltbush);
  color: var(--ironbark);
  font: 400 1.0625rem/1.65 var(--body);
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--cottage); text-underline-offset: 3px; }
:focus-visible { outline: 3px solid var(--paddock); outline-offset: 3px; }

h1, h2, h3 { font-family: var(--display); line-height: 1.08; margin: 0; text-wrap: balance; }
h2 { font-size: clamp(2rem, 4.2vw, 3.1rem); font-weight: 600; letter-spacing: -.01em; margin-bottom: .45em; }
h3 { font-size: 1.3rem; font-weight: 600; }
p { margin: 0 0 1em; max-width: 64ch; }

.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }

.skip { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--ironbark); color: #fff; padding: 10px 14px; border-radius: 4px; }
.skip:focus { left: 8px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: .7em 1.4em;
  background: var(--cottage); color: #fff;
  font: 600 1rem/1.2 var(--body); text-decoration: none;
  border-radius: 4px; cursor: pointer;
  transition: background-color .18s ease, box-shadow .18s ease;
}
.btn:hover { background: var(--cottage-2); box-shadow: 0 6px 16px -8px rgba(0,0,0,.5); }
.btn-sm { min-height: 44px; padding: .5em 1em; font-size: .95rem; }
.btn-lg { min-height: 54px; font-size: 1.08rem; padding: .8em 1.6em; }
.btn-light { background: var(--saltbush); color: var(--cottage-2); }
.btn-light:hover { background: #fff; }

.round {
  display: grid; place-items: center; width: 48px; height: 48px;
  border-radius: 50%; border: 0; cursor: pointer;
  background: rgba(255,255,255,.14); color: #fff;
  transition: background-color .18s ease;
}
.round svg { width: 24px; height: 24px; }
.round:hover { background: rgba(255,255,255,.28); }

/* ---------- Header ---------- */
.topbar {
  position: sticky; top: 0; z-index: var(--z-header);
  display: flex; align-items: center; gap: 28px;
  padding: 10px var(--gutter);
  background: rgba(230, 233, 225, .94);
  backdrop-filter: saturate(1.2) blur(10px);
  border-bottom: 1px solid var(--saltbush-2);
}
.brand {
  display: inline-flex; align-items: center; gap: 10px; margin-right: auto;
  font: 700 1.2rem/1 var(--display); color: var(--ironbark); text-decoration: none;
}
.brand-mark { width: 26px; height: 26px; color: var(--cottage); }
.nav { display: flex; gap: 24px; }
.nav a { color: var(--ironbark-2); font-weight: 500; text-decoration: none; padding: 10px 0; }
.nav a:hover { color: var(--ironbark); text-decoration: underline; }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: calc(100svh - 65px); display: flex; align-items: flex-end; overflow: hidden; background: var(--ironbark); }
.hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 62%; }
.hero::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(to top, rgba(22,26,23,.82) 0%, rgba(22,26,23,.35) 38%, rgba(22,26,23,0) 62%),
    linear-gradient(to right, rgba(22,26,23,.35), rgba(22,26,23,0) 55%);
}
.hero-body { position: relative; z-index: 1; width: 100%; max-width: var(--max); margin-inline: auto; padding: 0 var(--gutter) clamp(40px, 7vh, 72px); color: #fff; }
.hero-sub { font-size: clamp(1.05rem, 1.8vw, 1.25rem); max-width: 34ch; margin: 22px 0 26px; text-shadow: 0 1px 12px rgba(0,0,0,.4); }

/* The gate sign: the one bold element on the page */
.sign {
  position: relative; display: inline-block;
  padding: clamp(18px, 2.4vw, 26px) clamp(24px, 3.2vw, 40px) clamp(20px, 2.6vw, 30px);
  border-radius: 3px;
  color: #f4e6cf;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .25 0 0 0 0 .11 0 0 0 0 .03 0 0 0 .6 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='600' height='300'%3E%3Cfilter id='b'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.012 .03' numOctaves='2' seed='4'/%3E%3CfeColorMatrix values='0 0 0 0 .62 0 0 0 0 .33 0 0 0 0 .14 0 0 0 1.1 -.35'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23b)'/%3E%3C/svg%3E"),
    linear-gradient(165deg, var(--rust-1) 0%, #723a1b 45%, var(--rust-2) 100%);
  background-size: 240px 240px, cover, auto;
  box-shadow:
    inset 0 1px 0 rgba(255,220,180,.18),
    inset 0 0 0 2px rgba(40,18,6,.35),
    0 18px 36px -14px rgba(0,0,0,.7);
  transform-origin: 50% -40px;
  animation: hang 1.1s cubic-bezier(.3,.7,.3,1) .15s both;
}
.sign::before, .sign::after {
  content: ""; position: absolute; top: 12px; width: 9px; height: 9px; border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #c9a27f, #5a3a24 60%, #2e1b0e);
  box-shadow: 0 1px 1px rgba(0,0,0,.5);
}
.sign::before { left: 12px; }
.sign::after { right: 12px; }
.sign h1 {
  font-size: clamp(2.5rem, 6.6vw, 5.2rem);
  font-weight: 700;
  line-height: .95;
  letter-spacing: .015em;
  text-transform: uppercase;
  text-shadow: 0 -1px 0 rgba(0,0,0,.45), 0 1px 0 rgba(255,225,190,.12);
}
@keyframes hang {
  0%   { opacity: 0; transform: translateY(-18px) rotate(-3.5deg); }
  55%  { opacity: 1; transform: translateY(0) rotate(1.2deg); }
  80%  { transform: rotate(-.4deg); }
  100% { transform: none; }
}

/* ---------- Intro ---------- */
.intro {
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  gap: clamp(40px, 6vw, 88px); align-items: center;
  padding-block: clamp(72px, 10vw, 128px);
}
.specs { font-weight: 600; padding-top: 18px; border-top: 1px solid var(--saltbush-2); margin-top: 26px; }
.intro-photos { position: relative; padding: 0 0 18% 0; }
.ip-main { width: 88%; aspect-ratio: 4/3; object-fit: cover; border-radius: 4px; }
.ip-inset {
  position: absolute; right: 0; bottom: 0; width: 52%; aspect-ratio: 4/3; object-fit: cover;
  border-radius: 4px; border: 6px solid var(--saltbush);
}

/* ---------- Cottage: photos by room ---------- */
.cottage { padding-bottom: clamp(72px, 10vw, 120px); }
.lead { color: var(--ironbark-2); margin-bottom: 36px; }
.room {
  display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 28px;
  padding-block: 22px; border-top: 1px solid var(--saltbush-2);
}
.room h3 { padding-top: 4px; }
.strip { display: flex; gap: 10px; height: clamp(240px, 25vw, 320px); }
.strip .ph { flex: var(--r, 1.333) 1 0; min-width: 0; }

.ph { display: block; overflow: hidden; border-radius: 3px; background: var(--saltbush-2); cursor: zoom-in; }
.ph img { width: 100%; height: 100%; object-fit: cover; transition: filter .2s ease; }
.ph:hover img { filter: brightness(1.07) saturate(1.05); }

.amenities {
  display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 28px;
  padding-top: 22px; border-top: 1px solid var(--saltbush-2);
}
.amenities ul { list-style: none; margin: 0; padding: 0; columns: 2 260px; column-gap: 40px; }
.amenities li { break-inside: avoid; padding: 6px 0 6px 22px; position: relative; }
.amenities li::before {
  content: ""; position: absolute; left: 0; top: 50%; width: 10px; height: 2px; background: var(--cottage);
}

/* ---------- Farm ---------- */
.farm { background: var(--ironbark); color: #e9ece5; }
.farm-img { width: 100%; height: clamp(300px, 52vw, 640px); object-fit: cover; object-position: 50% 70%; }
.farm-body {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 72px); padding-block: clamp(56px, 8vw, 96px);
}
.farm h2 { color: #fff; }
.farm .note { color: #b9c0b6; font-size: .95rem; }
.farm-photos { display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; gap: 10px; min-height: 340px; }
.farm-photos .ph:nth-child(2) { grid-row: span 2; grid-column: 2; }
.farm-photos .ph { background: #353b36; }

/* ---------- Valley skies ---------- */
.skies { background: var(--ironbark); color: #e9ece5; padding-bottom: clamp(56px, 8vw, 96px); border-top: 1px solid #39403a; }
.skies-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; padding-block: clamp(48px, 7vw, 80px) 28px; }
.skies-head h2 { color: #fff; }
.skies-head p { color: #b9c0b6; margin: 0; }
.skies-nav { display: flex; gap: 10px; }
.sky-strip {
  display: flex; gap: 10px; height: clamp(240px, 30vw, 380px);
  overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth;
  padding-inline: max(var(--gutter), calc((100vw - var(--max)) / 2 + var(--gutter)));
  scroll-padding-inline: max(var(--gutter), calc((100vw - var(--max)) / 2 + var(--gutter)));
  scrollbar-width: thin; scrollbar-color: #59615a transparent;
}
.sky-strip .ph { flex: 0 0 auto; aspect-ratio: var(--r); height: 100%; scroll-snap-align: start; background: #353b36; }
.sky-strip:focus-visible { outline-offset: -3px; }

/* ---------- Booking ---------- */
.book { background: var(--cottage); color: #fff; }
.book-inner { padding-block: clamp(64px, 9vw, 112px); }
.book h2 { color: #fff; max-width: 18ch; }
.book p { color: #d5e0d8; margin-bottom: 28px; }

/* ---------- Footer ---------- */
.footer { padding-block: 28px 36px; color: var(--ironbark-2); font-size: .92rem; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 24px; }
.footer p { margin: 0; }

/* ---------- Mobile booking bar ---------- */
.mobile-book { display: none; }

/* ---------- Lightbox ---------- */
.lightbox { padding: 0; border: 0; margin: 0; background: transparent; width: 100vw; height: 100dvh; max-width: none; max-height: none; }
.lightbox::backdrop { background: rgba(18,21,19,.94); }
.lightbox[open] { display: grid; place-items: center; }
.lightbox img { max-width: calc(100vw - 140px); max-height: calc(100dvh - 100px); object-fit: contain; border-radius: 3px; }
.lb-close { position: fixed; top: 16px; right: 16px; }
.lb-prev, .lb-next { position: fixed; top: 50%; translate: 0 -50%; }
.lb-prev { left: 16px; }
.lb-next { right: 16px; }
.lb-count { position: fixed; bottom: 14px; left: 0; right: 0; text-align: center; color: #b9c0b6; font-size: .9rem; margin: 0; max-width: none; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .nav { display: none; }
  .intro, .farm-body { grid-template-columns: 1fr; }
  .room, .amenities { grid-template-columns: 1fr; gap: 14px; }
  .strip {
    height: 230px; overflow-x: auto; scroll-snap-type: x mandatory;
    margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); scroll-padding-inline: var(--gutter);
    scrollbar-width: none;
  }
  .strip::-webkit-scrollbar { display: none; }
  .strip .ph { flex: 0 0 auto; aspect-ratio: var(--r); height: 100%; scroll-snap-align: start; }
  .skies-nav { display: none; }
  .sky-strip { height: 260px; }
}

@media (max-width: 640px) {
  .topbar .btn-sm { display: none; }
  .hero { min-height: calc(100svh - 61px); }
  .hero-img { object-position: 40% 60%; }
  .farm-photos { min-height: 280px; }
  .mobile-book {
    display: flex; align-items: center; justify-content: center;
    position: fixed; left: 12px; right: 12px; bottom: max(12px, env(safe-area-inset-bottom)); z-index: var(--z-mobilebar);
    min-height: 52px; border-radius: 4px;
    background: var(--cottage); color: #fff; font-weight: 600; text-decoration: none;
    box-shadow: 0 12px 28px -10px rgba(0,0,0,.6);
    transition: transform .25s ease, opacity .25s ease;
  }
  .js .mobile-book:not(.is-visible) { transform: translateY(140%); opacity: 0; pointer-events: none; }
  .footer { padding-bottom: 92px; }
  .lightbox img { max-width: 100vw; max-height: calc(100dvh - 140px); border-radius: 0; }
  .lb-prev, .lb-next { top: auto; bottom: 16px; translate: none; }
  .lb-count { bottom: 30px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .sky-strip { scroll-behavior: auto; }
  .sign { animation: none; }
  *, *::before, *::after { transition-duration: 0s !important; }
}
