:root {
  --ink: #17201e;
  --ink-soft: #34413d;
  --pine: #263c35;
  --pine-deep: #14241f;
  --stone: #e9e5dc;
  --paper: #f7f5ef;
  --white: #fff;
  --copper: #b87542;
  --copper-soft: #d7a47c;
  --line: rgba(23, 32, 30, .14);
  --shadow: 0 22px 55px rgba(13, 25, 21, .16);
  --radius: 22px;
  --serif: Georgia, 'Times New Roman', serif;
  --sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--sans);
  line-height: 1.55;
  text-rendering: optimizeLegibility;
}
body.nav-open, body.modal-open { overflow: hidden; }
a { color: inherit; }
img { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }

.skip-link {
  position: fixed; left: 1rem; top: -5rem; z-index: 2000;
  background: var(--white); color: var(--ink); padding: .75rem 1rem;
  border-radius: 999px; box-shadow: var(--shadow);
}
.skip-link:focus { top: 1rem; }

.container { width: min(1180px, calc(100% - 2rem)); margin-inline: auto; }
.eyebrow {
  margin: 0 0 .8rem; text-transform: uppercase; letter-spacing: .16em;
  font-size: .76rem; font-weight: 750; color: var(--copper);
}
.display {
  font-family: var(--serif); font-weight: 500; letter-spacing: -.035em;
  line-height: .98; margin: 0;
}
.section-title { font-size: clamp(2.3rem, 5vw, 4.7rem); max-width: 900px; }
.lede { font-size: clamp(1.06rem, 1.6vw, 1.3rem); color: var(--ink-soft); max-width: 760px; }
.section { padding: clamp(4.5rem, 9vw, 8.5rem) 0; }
.section--dark { background: var(--pine-deep); color: var(--white); }
.section--stone { background: var(--stone); }

.button {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  min-height: 52px; padding: .8rem 1.25rem; border: 1px solid transparent;
  border-radius: 999px; font-weight: 750; text-decoration: none; transition: .22s ease;
}
.button:hover { transform: translateY(-2px); }
.button--primary { background: var(--copper); color: var(--white); box-shadow: 0 10px 30px rgba(184,117,66,.28); }
.button--primary:hover { background: #9f6033; }
.button--ghost { border-color: rgba(255,255,255,.5); color: var(--white); background: rgba(0,0,0,.08); backdrop-filter: blur(10px); }
.button--light { background: var(--white); color: var(--pine-deep); }
.button--outline { border-color: var(--line); background: transparent; }
.button--contact { border-color: currentColor; background: transparent; box-shadow: none; }
.button--contact:hover { background: rgba(255,255,255,.12); }
.site-header.scrolled .button--contact:hover { background: rgba(23,32,30,.07); }
.button svg { width: 18px; height: 18px; }

.site-header {
  position: fixed; inset: 0 0 auto; z-index: 1000; color: var(--white);
  transition: background .25s ease, color .25s ease, box-shadow .25s ease;
}
.site-header.scrolled { background: rgba(247,245,239,.94); color: var(--ink); box-shadow: 0 8px 30px rgba(0,0,0,.08); backdrop-filter: blur(18px); }
.header-inner { height: 84px; display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }
.brand { text-decoration: none; display: flex; align-items: center; gap: .7rem; }
.brand-mark { width: 37px; height: 37px; display: grid; place-items: center; border: 1px solid currentColor; border-radius: 50%; font-family: var(--serif); font-size: 1.05rem; }
.brand-copy { display: grid; line-height: 1.05; }
.brand-copy strong { font-family: var(--serif); font-size: 1.25rem; font-weight: 500; }
.brand-copy span { font-size: .62rem; text-transform: uppercase; letter-spacing: .14em; opacity: .76; }
.nav { display: flex; align-items: center; gap: 1.55rem; }
.nav a { text-decoration: none; font-size: .9rem; font-weight: 700; }
.nav a:not(.button):hover { color: var(--copper-soft); }
.menu-toggle { display: none; border: 0; background: transparent; color: inherit; width: 46px; height: 46px; padding: 10px; }
.menu-toggle span { display: block; height: 2px; background: currentColor; margin: 6px 0; }

.hero {
  min-height: 100svh; position: relative; display: flex; align-items: flex-end;
  color: var(--white); isolation: isolate; background: var(--pine-deep);
}
.hero-media { position: absolute; inset: 0; z-index: -2; overflow: hidden; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 56%; animation: heroZoom 18s ease-out both; }
@keyframes heroZoom { from { transform: scale(1.02); } to { transform: scale(1.08); } }
.hero::after {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(9,17,14,.35) 0%, rgba(9,17,14,.12) 38%, rgba(9,17,14,.86) 100%),
              linear-gradient(90deg, rgba(9,17,14,.35), transparent 58%);
}
.hero-content { padding: 9rem 0 4rem; width: 100%; }
.hero-kicker { display: inline-flex; align-items: center; gap: .7rem; text-transform: uppercase; letter-spacing: .16em; font-size: .76rem; font-weight: 800; }
.hero-kicker::before { content: ''; width: 42px; height: 1px; background: var(--copper-soft); }
.hero h1 { font-size: clamp(4rem, 10vw, 8.4rem); max-width: 1000px; margin-top: 1rem; }
.hero-subtitle { max-width: 780px; margin: 1.2rem 0 0; font-size: clamp(1.14rem, 2vw, 1.55rem); color: rgba(255,255,255,.9); }
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2rem; }
.hero-facts { margin-top: 3.5rem; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); border-top: 1px solid rgba(255,255,255,.26); padding-top: 1.2rem; }
.hero-fact { padding-right: 1rem; }
.hero-fact strong { display: block; font-family: var(--serif); font-size: 1.7rem; font-weight: 500; }
.hero-fact span { font-size: .72rem; text-transform: uppercase; letter-spacing: .1em; color: rgba(255,255,255,.72); }

.intro-grid { display: grid; grid-template-columns: 1.08fr .92fr; gap: clamp(2.5rem, 7vw, 7rem); align-items: start; }
.intro-copy p { font-size: 1.15rem; color: var(--ink-soft); }
.intro-card { position: sticky; top: 118px; background: var(--pine); color: var(--white); border-radius: var(--radius); padding: clamp(1.5rem, 3vw, 2.5rem); box-shadow: var(--shadow); }
.intro-card h3 { font-family: var(--serif); font-size: 2.1rem; font-weight: 500; margin: 0 0 1rem; }
.icon-list { display: grid; gap: 1rem; margin-top: 1.5rem; }
.icon-item { display: grid; grid-template-columns: 42px 1fr; gap: .9rem; align-items: start; }
.icon-item svg { width: 24px; height: 24px; color: var(--copper-soft); margin-top: .15rem; }
.icon-item strong { display: block; }
.icon-item span { color: rgba(255,255,255,.7); font-size: .93rem; }

.gallery-grid { display: grid; grid-template-columns: 1.35fr .65fr .65fr; grid-auto-rows: 270px; gap: .8rem; margin-top: 2.5rem; }
.gallery-tile { position: relative; border: 0; padding: 0; overflow: hidden; border-radius: 18px; background: var(--pine); }
.gallery-tile:first-child { grid-row: span 2; }
.gallery-tile img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s ease, filter .3s ease; }
.gallery-tile:hover img { transform: scale(1.045); filter: brightness(.88); }
.gallery-tile::after { content: 'View'; position: absolute; inset: auto 1rem 1rem auto; color: white; background: rgba(10,20,17,.64); border: 1px solid rgba(255,255,255,.45); border-radius: 999px; padding: .42rem .7rem; font-size: .72rem; font-weight: 750; opacity: 0; transform: translateY(5px); transition: .22s; }
.gallery-tile:hover::after { opacity: 1; transform: none; }
.gallery-actions { display: flex; justify-content: center; margin-top: 1.4rem; }

.experience-split { display: grid; grid-template-columns: 1fr 1fr; min-height: 650px; }
.experience-panel { padding: clamp(3rem, 7vw, 7rem); display: flex; flex-direction: column; justify-content: flex-end; min-height: 620px; position: relative; isolation: isolate; color: white; overflow: hidden; }
.experience-panel::before { content: ''; position: absolute; inset: 0; z-index: -2; background-size: cover; background-position: center; transition: transform .6s ease; }
.experience-panel:hover::before { transform: scale(1.03); }
.experience-panel::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(12,22,18,.1), rgba(12,22,18,.9)); }
.experience-panel--ski::before { background-image: url('https://s.oneroof.co.nz/image/ea/af/eaafa74e92ad8e7bb811facbc2619877.jpg?x-oss-process=image%2Fquality%2Cq_82%2Fresize%2Cw_1400%2Fformat%2Cwebp'), url('assets/property-hero.webp'); }
.experience-panel--golf::before { background-image: url('https://s.oneroof.co.nz/image/0c/77/0c7732ff523dc33485f9b22485f8b4d4.jpg?x-oss-process=image%2Fquality%2Cq_82%2Fresize%2Cw_1400%2Fformat%2Cwebp'), url('assets/property-hero.webp'); }
.experience-panel h3 { font-family: var(--serif); font-weight: 500; font-size: clamp(2.6rem, 5vw, 5rem); line-height: 1; margin: 0; }
.experience-panel p { max-width: 540px; font-size: 1.05rem; color: rgba(255,255,255,.84); }
.pill-row { display: flex; flex-wrap: wrap; gap: .55rem; margin-top: 1rem; }
.pill { border: 1px solid rgba(255,255,255,.35); border-radius: 999px; padding: .5rem .75rem; font-size: .78rem; background: rgba(0,0,0,.2); backdrop-filter: blur(8px); }

.sleep-layout { display: grid; grid-template-columns: .78fr 1.22fr; gap: clamp(2.5rem, 7vw, 6rem); align-items: start; }
.bedroom-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 1rem; }
.bedroom-card { background: var(--white); border-radius: 18px; overflow: hidden; border: 1px solid var(--line); }
.bedroom-card img { width: 100%; height: 230px; object-fit: cover; background: var(--stone); }
.bedroom-copy { padding: 1.25rem; }
.bedroom-copy h3 { font-family: var(--serif); font-size: 1.55rem; font-weight: 500; margin: 0 0 .3rem; }
.bedroom-copy p { margin: 0; color: var(--ink-soft); font-size: .92rem; }
.sleep-note { margin-top: 1.4rem; border-left: 3px solid var(--copper); padding-left: 1rem; color: var(--ink-soft); }

.amenities-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; margin-top: 2.5rem; }
.amenity { border-top: 1px solid rgba(255,255,255,.22); padding: 1.4rem .3rem 0; }
.amenity svg { width: 27px; height: 27px; color: var(--copper-soft); }
.amenity h3 { font-family: var(--serif); font-size: 1.35rem; font-weight: 500; margin: .7rem 0 .3rem; }
.amenity p { margin: 0; color: rgba(255,255,255,.68); font-size: .9rem; }

.australia-banner { display: grid; grid-template-columns: 1fr .8fr; gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.route-card { background: var(--white); border-radius: var(--radius); padding: 1.5rem; box-shadow: var(--shadow); }
.route-list { display: grid; gap: .65rem; }
.route { display: flex; justify-content: space-between; gap: 1rem; padding: .8rem 0; border-bottom: 1px solid var(--line); }
.route:last-child { border-bottom: 0; }
.route strong { font-size: .95rem; }
.route span { color: var(--ink-soft); font-size: .88rem; text-align: right; }

.location-grid { display: grid; grid-template-columns: .88fr 1.12fr; gap: 1.2rem; margin-top: 2.5rem; }
.location-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(1.5rem, 3vw, 2.5rem); }
.location-card h3 { font-family: var(--serif); font-size: 2rem; font-weight: 500; margin-top: 0; }
.drive-list { display: grid; gap: .9rem; }
.drive { display: grid; grid-template-columns: 54px 1fr; align-items: center; gap: 1rem; }
.drive strong { font-family: var(--serif); font-size: 1.25rem; color: var(--copper); }
.drive span { color: var(--ink-soft); }
.map-frame { min-height: 480px; overflow: hidden; border-radius: var(--radius); border: 0; width: 100%; background: #d7d6cf; }

.booking-wrap { display: grid; grid-template-columns: .88fr 1.12fr; gap: clamp(2rem, 6vw, 6rem); align-items: start; }
.booking-benefits { display: grid; gap: 1rem; margin-top: 2rem; }
.benefit { display: flex; gap: .9rem; align-items: start; }
.benefit-check { width: 26px; height: 26px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 50%; background: rgba(184,117,66,.15); color: var(--copper-soft); font-weight: 900; }
.booking-form { background: var(--white); color: var(--ink); border-radius: var(--radius); padding: clamp(1.5rem, 4vw, 2.8rem); box-shadow: var(--shadow); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.field { display: grid; gap: .4rem; }
.field--full { grid-column: 1 / -1; }
.field label { font-weight: 750; font-size: .86rem; }
.field input, .field select, .field textarea {
  width: 100%; border: 1px solid rgba(23,32,30,.2); border-radius: 12px; padding: .88rem 1rem; background: #fff; color: var(--ink); outline: none;
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--copper); box-shadow: 0 0 0 3px rgba(184,117,66,.13); }
.field textarea { min-height: 120px; resize: vertical; }
.form-note { color: var(--ink-soft); font-size: .78rem; margin: .9rem 0 0; }
.form-error { color: #9f2f2f; font-weight: 700; font-size: .84rem; display: none; }
.form-error.visible { display: block; }

.faq { max-width: 920px; margin: 2.5rem auto 0; }
.faq details { border-top: 1px solid var(--line); padding: 1.1rem 0; }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; font-family: var(--serif); font-size: 1.35rem; display: flex; justify-content: space-between; gap: 1rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; color: var(--copper); }
.faq details[open] summary::after { content: '–'; }
.faq p { color: var(--ink-soft); max-width: 780px; }

.site-footer { background: #0d1714; color: white; padding: 3.5rem 0 1.5rem; }
.footer-top { display: grid; grid-template-columns: 1.2fr .8fr .8fr; gap: 2rem; }
.footer-title { font-family: var(--serif); font-size: 2.3rem; font-weight: 500; margin: 0; }
.footer-copy { color: rgba(255,255,255,.65); max-width: 470px; }
.footer-links { display: grid; align-content: start; gap: .6rem; }
.footer-links strong { color: var(--copper-soft); text-transform: uppercase; letter-spacing: .1em; font-size: .7rem; }
.footer-links a { color: rgba(255,255,255,.8); text-decoration: none; }
.footer-contact { width: fit-content; min-height: 46px; margin-top: .35rem; padding: .65rem 1.05rem; }
.footer-phone { font-size: .86rem; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.14); margin-top: 2.5rem; padding-top: 1.2rem; color: rgba(255,255,255,.5); font-size: .76rem; display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }

.lightbox { position: fixed; inset: 0; z-index: 2000; background: rgba(5,10,8,.96); display: none; place-items: center; padding: 2rem; }
.lightbox.open { display: grid; }
.lightbox img { max-width: min(1400px, 92vw); max-height: 86vh; object-fit: contain; box-shadow: 0 30px 80px rgba(0,0,0,.5); }
.lightbox-button { position: absolute; width: 48px; height: 48px; border-radius: 50%; border: 1px solid rgba(255,255,255,.4); color: white; background: rgba(0,0,0,.32); display: grid; place-items: center; font-size: 1.4rem; }
.lightbox-close { top: 1.3rem; right: 1.3rem; }
.lightbox-prev { left: 1.3rem; top: 50%; }
.lightbox-next { right: 1.3rem; top: 50%; }
.lightbox-count { position: absolute; bottom: 1rem; color: rgba(255,255,255,.75); font-size: .8rem; }

.mobile-book { display: none; position: fixed; z-index: 950; bottom: .8rem; left: .8rem; right: .8rem; box-shadow: 0 12px 30px rgba(0,0,0,.25); }

@media (max-width: 980px) {
  .menu-toggle { display: block; }
  .nav { position: fixed; inset: 0; background: var(--paper); color: var(--ink); display: flex; flex-direction: column; justify-content: center; gap: 1.6rem; transform: translateX(100%); transition: .28s ease; }
  .nav.open { transform: none; }
  .nav a { font-size: 1.2rem; }
  .site-header .menu-toggle { position: relative; z-index: 2; }
  .hero-facts { grid-template-columns: repeat(3, 1fr); row-gap: 1rem; }
  .intro-grid, .sleep-layout, .australia-banner, .location-grid, .booking-wrap { grid-template-columns: 1fr; }
  .intro-card { position: static; }
  .gallery-grid { grid-template-columns: 1.2fr .8fr; grid-auto-rows: 240px; }
  .gallery-tile:first-child { grid-row: span 2; }
  .gallery-tile:nth-child(4), .gallery-tile:nth-child(5) { display: none; }
  .experience-split { grid-template-columns: 1fr; }
  .experience-panel { min-height: 540px; }
  .amenities-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .footer-top > :first-child { grid-column: 1 / -1; }
}

@media (max-width: 650px) {
  .container { width: min(100% - 1.25rem, 1180px); }
  .header-inner { height: 72px; }
  .brand-copy span { display: none; }
  .hero-content { padding-bottom: 5.7rem; }
  .hero h1 { font-size: clamp(3.35rem, 17vw, 5.4rem); }
  .hero-facts { grid-template-columns: repeat(2, 1fr); }
  .hero-fact:last-child { grid-column: 1 / -1; }
  .hero-actions .button { flex: 1 1 auto; }
  .gallery-grid { grid-template-columns: 1fr 1fr; grid-auto-rows: 175px; gap: .5rem; }
  .gallery-tile:first-child { grid-column: 1 / -1; grid-row: auto; height: 250px; }
  .experience-panel { min-height: 500px; padding: 2rem 1rem; }
  .bedroom-grid, .form-grid { grid-template-columns: 1fr; }
  .field--full { grid-column: auto; }
  .amenities-grid { grid-template-columns: 1fr; }
  .map-frame { min-height: 380px; }
  .footer-top { grid-template-columns: 1fr; }
  .footer-top > :first-child { grid-column: auto; }
  .mobile-book { display: flex; }
  .site-footer { padding-bottom: 6rem; }
  .lightbox-prev { left: .5rem; }
  .lightbox-next { right: .5rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation: none !important; transition-duration: .01ms !important; }
}
