/* ==========================================================================
   Tokens
   Text colours are chosen to pass WCAG AA (4.5:1) on both --paper and --sand.
   Type scale: 12 label · 14 small · 15–16 body · 17–21 lead · serif headings.
   ========================================================================== */
:root {
  --ink: #1d2722;        /* headings */
  --text: #3d4840;       /* strong body text, labels, nav */
  --muted: #5a645a;      /* body copy (≈5.9:1 on paper, 5.3:1 on sand) */
  --faint: #646e63;      /* eyebrows, meta (≈5.1:1 on paper, 4.6:1 on sand) */
  --placeholder: #6f766d;
  --paper: #fbfaf7;
  --sand: #f0efe9;
  --field: #ffffff;
  --green: #314f3f;
  --green-dark: #253e31;
  --green-tint: #edf0e7;
  --lime: #c6d27c;
  --lime-soft: #e2e8cc;
  --line: #deded5;
  --line-strong: #cfd5c7;
  --error: #9b3426;
  --error-tint: #f7e5df;
  --airbnb: #b02a3b;
  --serif: "Playfair Display", Georgia, serif;
  --sans: "DM Sans", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html:has(dialog[open]) { overflow: hidden; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: var(--sans); font-size: 16px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; }
h1, h2, h3, p { margin-top: 0; }
[hidden] { display: none !important; }

/* ---------- Header ---------- */
.site-header { height: 84px; padding: 0 7.2%; display: flex; align-items: center; justify-content: space-between; gap: 24px; background: var(--paper); border-bottom: 3px solid var(--green); position: relative; z-index: 5; }
.wordmark { color: var(--ink); font-size: 14px; letter-spacing: .16em; font-weight: 700; text-decoration: none; line-height: 1.45; white-space: nowrap; }
.wordmark span { font-weight: 500; }
.wordmark small { display: block; margin-top: 1px; font-size: 11px; letter-spacing: .14em; font-weight: 600; color: var(--muted); }
.site-header nav { display: flex; gap: 32px; }
.site-header nav a { padding: 6px 0; border-bottom: 2px solid transparent; color: var(--text); font-size: 15px; font-weight: 600; text-decoration: none; }
.site-header nav a:hover { color: var(--green); border-bottom-color: var(--lime); }
.header-contact { display: flex; align-items: center; gap: 8px; }
.header-cta { min-height: 44px; display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 0 16px; border: 1px solid var(--line-strong); color: var(--green); text-decoration: none; font-size: 14px; font-weight: 700; white-space: nowrap; }
.header-cta:hover { background: var(--green-tint); }
.phone-icon { display: block; width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.menu-toggle { display: none; width: 44px; height: 44px; place-items: center; padding: 0; border: 1px solid var(--line-strong); background: transparent; color: var(--green); cursor: pointer; }
.menu-toggle svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.menu-toggle .menu-cross { display: none; }
.menu-open .menu-toggle .menu-lines { display: none; }
.menu-open .menu-toggle .menu-cross { display: inline; }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 630px; height: min(760px, calc(100vh - 84px)); background: #233328; color: white; display: flex; align-items: center; overflow: hidden; }
.hero :focus-visible { outline-color: var(--lime); }
.hero-image { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(20, 32, 27, .88) 0%, rgba(20, 32, 27, .68) 43%, rgba(20, 32, 27, .08) 100%), linear-gradient(0deg, rgba(14, 24, 19, .23), transparent 38%), url("assets/images/apartments/apartment-8/apt8-lounge-stairs.jpg") center 48% / cover; filter: saturate(1.12) contrast(1.04); transform: scale(1.015); }
.hero-content { position: relative; z-index: 1; width: min(660px, 70%); margin-left: 12.1%; padding: 45px 0 25px; }
.eyebrow { font-size: 12px; letter-spacing: .16em; font-weight: 700; text-transform: uppercase; color: var(--faint); }
.hero .eyebrow { color: #d3ddc1; }
.eyebrow-line { display: inline-block; vertical-align: middle; height: 1px; width: 27px; background: var(--lime); margin-right: 10px; }
.hero h1 { margin: 26px 0 20px; font: 500 clamp(54px, 6.7vw, 88px)/1.07 var(--serif); letter-spacing: -.05em; }
h1 em, h2 em { font-weight: 500; color: #c8d39a; }
.hero-copy { max-width: 480px; font-size: 18px; line-height: 1.7; color: rgba(255,255,255,.88); }
.hero-contact-details { display: grid; gap: 6px; margin-top: 20px; color: rgba(255,255,255,.92); font-size: 15px; line-height: 1.5; }
.hero-contact-details p { margin: 0; }
.hero-contact-details a { width: fit-content; color: var(--lime-soft); font-weight: 700; text-decoration: none; }
.hero-contact-details a:hover { text-decoration: underline; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 18px; margin-top: 32px; }
.hero-note { position: absolute; right: 7.4%; bottom: 76px; font-size: 20px; line-height: 1.4; letter-spacing: .14em; color: rgba(255,255,255,.9); }
.note-mark { display: block; font-size: 25px; color: var(--lime); }
.hero-note-line { display: block; color: rgba(255,255,255,.92); }
.hero-note-emphasis { display: block; color: #c8d39a; font: italic 500 1.15em/1.35 var(--serif); letter-spacing: .02em; }
.scroll-cue { position: absolute; bottom: 0; left: 7.2%; z-index: 2; background: rgba(29, 39, 34, .82); color: #f5f3ed; padding: 15px 20px; font-size: 11px; font-weight: 700; letter-spacing: .16em; text-decoration: none; }
.scroll-cue span { display: inline-block; width: 25px; height: 1px; vertical-align: middle; background: var(--lime); margin-right: 10px; }

/* ---------- Buttons & links ---------- */
.button { display: inline-flex; min-height: 50px; align-items: center; justify-content: center; gap: 14px; padding: 0 24px; font: 700 15px/1.2 var(--sans); text-decoration: none; border: 0; cursor: pointer; transition: background .2s, color .2s, transform .2s; }
.button:hover { transform: translateY(-2px); }
.button[disabled] { opacity: .7; cursor: progress; transform: none; }
.button-dark { background: var(--green); color: white; }
.button-dark:hover { background: var(--green-dark); }
.hero .button-dark { background: var(--lime-soft); color: #263a2d; }
.hero .button-dark:hover { background: white; }
.button-light { background: #e8e7e0; color: var(--ink); }
.button-light:hover { background: #deddd4; }
.text-link { font-size: 15px; font-weight: 700; text-decoration: none; border-bottom: 1px solid #aeb8a7; padding-bottom: 6px; color: var(--green); }
.text-link span { padding-left: 10px; }
.text-link:hover { border-bottom-color: var(--green); }
.link-button { padding: 0 0 6px; border-width: 0 0 1px; background: none; font-family: var(--sans); cursor: pointer; }
.hero .light-link { display: inline-flex; min-height: 50px; align-items: center; gap: 14px; padding: 0 22px; border: 1px solid rgba(255,255,255,.7); background: rgba(18,30,24,.34); color: white; font-size: 15px; }
.hero .light-link span { padding-left: 0; color: #dce5b7; font-size: 18px; }
.hero .light-link:hover, .hero .light-link:focus-visible { border-color: #dce5b7; background: rgba(255,255,255,.15); }
.icon-whatsapp { display: block; width: 20px; height: 20px; flex: 0 0 auto; }

/* ---------- Sections ---------- */
.section-pad { padding: 115px 12.1%; }
.section-label { color: var(--faint); font-size: 12px; letter-spacing: .16em; font-weight: 700; }
.section-label span { color: var(--green); margin-right: 14px; }
h2 { font: 500 clamp(38px, 4vw, 55px)/1.18 var(--serif); letter-spacing: -.04em; margin-bottom: 0; }

.welcome { padding-top: 108px; padding-bottom: 90px; }
.welcome-copy { display: grid; grid-template-columns: 1fr 1fr; gap: 8%; margin: 45px 0 58px; }
.welcome h2 em, .section-heading h2 em, .location h2 em { color: var(--green); }
.welcome-copy > div { align-self: center; max-width: 480px; }
.lead { font: 500 21px/1.55 var(--serif); color: #3c493f; }
.welcome-copy > div > p:not(.lead) { color: var(--muted); font-size: 16px; line-height: 1.8; margin-bottom: 22px; }
.welcome-stats { border-top: 1px solid var(--line); display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; padding-top: 25px; max-width: 780px; }
.welcome-stats > div { display: flex; align-items: center; gap: 14px; }
.welcome-stats strong { font: 500 38px var(--serif); color: var(--green); }
.welcome-stats span { color: var(--muted); font-size: 14px; line-height: 1.45; }
.property-strip { display: grid; grid-template-columns: .55fr 1.45fr; align-items: center; gap: 35px; margin-top: 53px; padding-top: 24px; border-top: 1px solid var(--line); }
.property-strip-copy .eyebrow { margin-bottom: 10px; }
.property-strip-copy p:last-child { max-width: 290px; margin: 0; color: #4a564b; font: 500 19px/1.45 var(--serif); }
.property-strip-photos { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.property-strip-photos img { display: block; width: 100%; height: 140px; object-fit: cover; filter: saturate(1.08) contrast(1.03); }

/* ---------- Stays ---------- */
.stays { background: var(--sand); padding-top: 96px; padding-bottom: 100px; }
.section-heading { display: flex; justify-content: space-between; align-items: end; gap: 40px; margin: 30px 0 42px; }
.section-heading .eyebrow { margin-bottom: 14px; }
.section-heading h2 { font-size: clamp(36px, 3.8vw, 50px); }
.section-heading > p { max-width: 360px; color: var(--muted); font-size: 16px; line-height: 1.7; margin-bottom: 5px; }
.stay-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 52px 28px; }
.stay-photo { display: block; height: 320px; position: relative; overflow: hidden; background: #d7d9cd; }
.stay-photo img, .garden-image img { width: 100%; height: 100%; object-fit: cover; display: block; filter: saturate(1.08) contrast(1.035); transition: transform .6s cubic-bezier(.2,.6,.3,1), filter .4s; }
.stay-photo:hover img { transform: scale(1.035); filter: saturate(1.16) contrast(1.045); }
.photo-arrow { position: absolute; bottom: 13px; right: 13px; width: 38px; height: 38px; display: grid; place-items: center; background: var(--paper); color: var(--green); font-size: 17px; }
.latest-badge { position: absolute; left: 13px; top: 13px; padding: 8px 11px; background: var(--paper); color: var(--green); font-size: 11px; font-weight: 700; letter-spacing: .12em; }
.stay-info { display: flex; align-items: end; justify-content: space-between; gap: 14px; padding-top: 20px; }
.card-kicker { color: var(--faint); font-size: 12px; font-weight: 700; letter-spacing: .1em; }
.stay-info h3 { margin: 8px 0 0; font: 500 27px/1.2 var(--serif); }
.rate { color: var(--green); text-align: right; white-space: nowrap; font-size: 17px; font-weight: 700; }
.rate small { display: block; font-size: 13px; font-weight: 500; color: var(--muted); margin-top: 2px; }
.rate-request { font-size: 15px; }
.stay-card > p { color: var(--muted); font-size: 16px; line-height: 1.6; margin: 12px 0 0; }
.airbnb-review { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; width: fit-content; margin-top: 14px; color: var(--muted); font-size: 14px; text-decoration: none; }
.airbnb-review strong { color: var(--green); font-size: 15px; }
.airbnb-review:hover { text-decoration: underline; }
.airbnb-star { color: var(--airbnb); font-size: 16px; }
.review-link-label { color: var(--green); font-weight: 700; }
.airbnb-review-date { display: block; margin-top: 4px; color: var(--faint); font-size: 12px; }
.stay-card-links { display: flex; flex-wrap: wrap; gap: 12px 24px; margin-top: 18px; }
.stay-card-links .gallery-link { margin-top: 0; }
.gallery-link { display: inline-block; margin-top: 15px; color: var(--green); font-size: 14px; font-weight: 700; text-decoration: none; }
.gallery-link span { padding-left: 8px; }
.gallery-link:hover { text-decoration: underline; }
.enquire-link { color: var(--ink); border-bottom: 2px solid var(--lime); padding-bottom: 2px; }
.enquire-link:hover { text-decoration: none; border-bottom-color: var(--green); }
.airbnb-link { color: var(--airbnb); }
.stay-foot { border-top: 1px solid #d8d9d0; margin-top: 48px; padding-top: 18px; display: flex; justify-content: space-between; align-items: center; gap: 16px; color: var(--muted); font-size: 15px; }
.stay-foot .text-link { font-size: 15px; }

/* ---------- Garden ---------- */
.garden { display: grid; grid-template-columns: 1fr 1fr; min-height: 560px; background: #293d32; color: white; }
.garden-image { display: block; min-height: 560px; overflow: hidden; position: relative; }
.garden-image img { filter: saturate(.9) contrast(1.04); }
.garden-image:hover img { transform: scale(1.025); }
.garden-image:focus-visible { outline: 2px solid #fff; outline-offset: -5px; }
.garden-photo-arrow { position: absolute; right: 18px; bottom: 18px; width: 40px; height: 40px; display: grid; place-items: center; background: var(--paper); color: var(--green); font-size: 17px; }
.garden-content { display: flex; flex-direction: column; justify-content: center; padding: 80px 13% 80px 13%; position: relative; }
.garden-content :focus-visible { outline-color: var(--lime); }
.garden-content .eyebrow { color: #d2d9be; }
.garden-title { margin: 20px 0; position: relative; }
.garden-index { font-size: 12px; font-weight: 700; letter-spacing: .16em; color: #b7c298; }
.garden-title h2 { font-size: clamp(45px, 5vw, 68px); margin-top: 18px; }
.garden-copy { color: rgba(255,255,255,.84); max-width: 440px; font-size: 17px; line-height: 1.75; margin: 0 0 26px; }
.garden-rate { color: #d3ddc1; font-size: 16px; font-weight: 700; margin: -8px 0 22px; }
.button-outline { border: 1px solid rgba(255,255,255,.55); color: white; width: fit-content; }
.button-outline:hover { background: rgba(255,255,255,.1); }
.garden-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.garden-actions .button { padding: 0 20px; gap: 12px; }
.garden-whatsapp { display: inline-flex; align-items: center; gap: 10px; width: fit-content; margin-top: 20px; color: var(--lime-soft); font-size: 15px; font-weight: 600; text-decoration: none; }
.garden-whatsapp:hover { text-decoration: underline; }
.garden-caption { position: absolute; bottom: 22px; left: 13%; color: #b4c0a9; font-size: 11px; font-weight: 700; letter-spacing: .14em; }

/* ---------- Contact ---------- */
.contact { padding-top: 106px; padding-bottom: 106px; }
.contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 8%; margin-top: 42px; }
.contact-intro h2 { font-size: clamp(40px, 4.5vw, 60px); }
.contact-intro h2 em { color: var(--green); }
.contact-intro > p:not(.eyebrow) { margin-top: 22px; max-width: 410px; color: var(--muted); font-size: 17px; line-height: 1.75; }
.contact-whatsapp { display: flex; align-items: center; gap: 15px; margin-top: 32px; text-decoration: none; font-size: 13px; letter-spacing: .12em; font-weight: 700; color: var(--green); }
.contact-whatsapp small { display: block; margin-top: 4px; color: var(--muted); font-size: 15px; letter-spacing: .02em; font-weight: 500; }
.contact-whatsapp:hover .wa-icon { background: var(--green); color: white; border-color: var(--green); }
.wa-icon { border: 1px solid var(--line-strong); width: 48px; height: 48px; display: grid; place-items: center; color: var(--green); transition: background .2s, color .2s; }
.wa-icon .icon-whatsapp { width: 22px; height: 22px; }

/* ---------- Forms ---------- */
.form-panel { background: #f1f0eb; padding: 34px 36px; }
.enquiry-form, .admin-card form { display: grid; gap: 18px; }
label { display: block; color: var(--text); font-size: 14px; font-weight: 600; }
input, select, textarea { display: block; margin-top: 8px; width: 100%; height: 50px; border: 1px solid #cfcfc5; border-radius: 0; padding: 0 14px; color: var(--ink); background: var(--field); font: 16px var(--sans); }
textarea { min-height: 120px; height: auto; padding: 12px 14px; line-height: 1.6; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: 2px solid #667d63; outline-offset: 0; border-color: #667d63; }
input::placeholder, textarea::placeholder { color: var(--placeholder); }
[aria-invalid="true"] { border-color: var(--error); }
.field-error { display: block; margin-top: 6px; color: var(--error); font-size: 14px; font-weight: 600; line-height: 1.45; }
.form-alert { padding: 12px 15px; border-left: 3px solid var(--error); background: var(--error-tint); color: #7a2b1f; font-size: 15px; line-height: 1.5; }
.form-alert:focus { outline: none; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.optional { color: var(--muted); font-weight: 400; }
.form-note { color: var(--muted); font-size: 14px; line-height: 1.55; margin: -6px 0 0; }
.enquiry-form .button { width: fit-content; }
.honeypot { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.notice { background: #e6ecdc; border-left: 3px solid #68815e; padding: 12px 15px; margin-bottom: 18px; color: #344b37; font-size: 15px; line-height: 1.6; }
.form-success { padding: 8px 0; }
.form-success:focus { outline: none; }
.form-success h3 { margin-bottom: 10px; color: var(--ink); font: 500 28px/1.25 var(--serif); }
.form-success p { color: var(--muted); font-size: 16px; line-height: 1.7; }
.form-success a { color: var(--green); font-weight: 700; }

/* ---------- Enquiry pop-up ---------- */
.enquiry-modal { width: min(640px, calc(100vw - 32px)); max-width: none; max-height: calc(100vh - 32px); padding: 0; border: 0; background: var(--paper); color: var(--ink); box-shadow: 0 24px 70px #13261b4d; overflow: auto; }
.enquiry-modal::backdrop { background: rgba(15, 24, 19, .7); }
.enquiry-modal-inner { padding: 30px 34px 34px; }
.enquiry-modal-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; }
.enquiry-modal-header .eyebrow { margin-bottom: 8px; }
.enquiry-modal-header h2 { font-size: 36px; }
.enquiry-modal-header h2 em { color: var(--green); }
.modal-close { flex: 0 0 44px; width: 44px; height: 44px; display: grid; place-items: center; padding: 0; border: 1px solid #d5d9cd; background: transparent; color: var(--green); cursor: pointer; }
.modal-close svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.modal-close:hover { background: var(--green-tint); }
.enquiry-modal-intro { margin: 14px 0 24px; color: var(--muted); font-size: 16px; line-height: 1.65; }
.enquiry-modal-intro a { color: var(--green); font-weight: 700; }

/* ---------- Location & footer ---------- */
.location { display: grid; grid-template-columns: .8fr 1.2fr; align-items: center; gap: 8%; background: var(--sand); padding-top: 82px; padding-bottom: 82px; }
.location-copy .section-label { margin-bottom: 48px; }
.location-copy h2 { margin: 20px 0 16px; font-size: clamp(36px, 4vw, 52px); }
.location-copy > p:not(.eyebrow) { color: var(--muted); font-size: 16px; line-height: 1.7; max-width: 350px; }
.map-frame { height: 330px; background: #e3e3da; }
.map-frame iframe { border: 0; width: 100%; height: 100%; filter: saturate(.75); }
.site-footer { min-height: 150px; padding: 34px 7.2%; display: flex; align-items: center; justify-content: space-between; gap: 25px; }
.footer-mark { flex: 0 0 auto; }
.site-footer > p { color: var(--muted); font-size: 15px; margin: 0; }
.site-footer > div { display: flex; gap: 22px; }
.site-footer > div a { color: var(--green); font-size: 15px; font-weight: 600; text-decoration: none; }
.site-footer > div a:hover { text-decoration: underline; }
.site-footer > small { color: var(--faint); font-size: 13px; }

/* ---------- Floating actions ---------- */
.floating-whatsapp { position: fixed; z-index: 4; right: 23px; bottom: 22px; min-height: 48px; display: inline-flex; align-items: center; gap: 9px; padding: 0 18px; border-radius: 24px; background: #335a43; color: white; text-decoration: none; font-size: 15px; font-weight: 700; box-shadow: 0 5px 20px #13261b3d; }
.floating-whatsapp img { display: block; width: 20px; height: 20px; flex: 0 0 20px; }
.floating-whatsapp:hover { background: #294b37; }
.floating-share { position: fixed; z-index: 4; right: 23px; bottom: 80px; min-height: 44px; display: inline-flex; align-items: center; gap: 9px; padding: 0 16px; border: 1px solid #d5d9cd; border-radius: 24px; background: var(--paper); color: var(--green); font: 700 14px var(--sans); cursor: pointer; box-shadow: 0 5px 20px #13261b1f; }
.floating-share svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.floating-share:hover { background: var(--green-tint); }
.back-to-top { position: fixed; z-index: 4; left: 23px; bottom: 22px; min-height: 48px; display: inline-flex; align-items: center; gap: 9px; padding: 0 16px; border: 1px solid #d5d9cd; background: var(--paper); color: var(--green); text-decoration: none; font-size: 14px; font-weight: 700; box-shadow: 0 5px 20px #13261b1f; }
.back-to-top span { font-size: 17px; }
.back-to-top:hover { background: var(--green-tint); }

/* ---------- Apartment / garden page ---------- */
.space-page { max-width: 1440px; margin: 0 auto; padding: 44px 9% 85px; }
.breadcrumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; color: var(--muted); font-size: 14px; }
.back-link { display: inline-flex; align-items: center; gap: 9px; padding: 10px 14px; border: 1px solid #d5d9cd; color: var(--green); font-size: 14px; font-weight: 700; text-decoration: none; transition: background .2s, border-color .2s; }
.back-link:hover { background: var(--sand); border-color: #b7c1af; }
.space-heading { display: grid; grid-template-columns: 1fr .8fr; align-items: end; gap: 9%; padding: 48px 0 37px; border-bottom: 1px solid var(--line); }
.space-heading .eyebrow { margin-bottom: 15px; }
.space-heading h1 { margin: 0; font: 500 clamp(38px, 5vw, 61px)/1.1 var(--serif); letter-spacing: -.04em; }
.space-summary { max-width: 460px; }
.space-summary p { color: var(--muted); font-size: 16px; line-height: 1.75; margin-bottom: 12px; }
.space-summary > strong { color: var(--green); font-size: 17px; }
.gallery-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin: 43px 0 20px; }
.gallery-heading .eyebrow { margin-bottom: 8px; }
.gallery-heading h2 { font-size: 32px; }
.gallery-heading > span { color: var(--faint); font-size: 12px; font-weight: 700; letter-spacing: .12em; }
.space-gallery { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 178px; gap: 10px; }
.gallery-thumb { position: relative; display: block; min-width: 0; overflow: hidden; background: #e6e5dc; }
.gallery-thumb:first-child { grid-column: span 2; grid-row: span 2; }
.gallery-video:first-child { grid-column: span 2; grid-row: span 2; overflow: hidden; background: #18221c; }
.gallery-video video { display: block; width: 100%; height: 100%; object-fit: contain; }
@media (min-width: 761px) { .gallery-video video { object-fit: cover; } }
.gallery-thumb img { display: block; width: 100%; height: 100%; object-fit: cover; filter: saturate(1.06) contrast(1.035); transition: transform .45s, filter .3s; }
.gallery-thumb:hover img { transform: scale(1.035); filter: saturate(1.15) contrast(1.05); }
.gallery-number { position: absolute; right: 9px; bottom: 9px; padding: 6px 9px; color: white; background: rgba(27,39,31,.78); font-size: 12px; letter-spacing: .08em; }
.space-enquiry { display: flex; align-items: center; justify-content: space-between; gap: 35px; margin-top: 55px; padding: 36px; background: var(--sand); }
.space-enquiry .eyebrow { margin-bottom: 10px; }
.space-enquiry h2 { font-size: 32px; }
.space-enquiry h2 em { color: var(--green); }
.space-enquiry p:last-child { color: var(--muted); font-size: 16px; margin: 10px 0 0; }
.space-enquiry-actions { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.airbnb-button { color: var(--green); border-color: var(--green); }
.space-not-found { min-height: 55vh; padding: 12vh 9%; }
.space-not-found h1 { font: 500 48px var(--serif); }

/* ---------- Photo viewer ---------- */
.lightbox { width: min(94vw, 1160px); max-width: none; max-height: 96vh; padding: 17px 20px 10px; border: 0; background: #18221c; color: white; }
.lightbox::backdrop { background: rgba(9,15,11,.88); }
.lightbox-header { display: flex; align-items: center; justify-content: space-between; gap: 20px; color: #d5ddcf; font-size: 15px; }
.lightbox-close { display: inline-flex; align-items: center; gap: 12px; min-height: 44px; padding: 7px 0 7px 10px; border: 0; background: transparent; color: white; font: 600 15px var(--sans); cursor: pointer; }
.lightbox-close span { font-size: 24px; line-height: 1; }
.lightbox-stage { display: grid; grid-template-columns: 48px minmax(0, 1fr) 48px; align-items: center; gap: 10px; min-height: 300px; }
.lightbox-stage img { display: block; width: 100%; max-height: 78vh; object-fit: contain; }
.lightbox-arrow { width: 44px; height: 44px; border: 1px solid rgba(255,255,255,.3); background: transparent; color: white; font-size: 20px; cursor: pointer; }
.lightbox-arrow:hover, .lightbox-close:hover { background: rgba(255,255,255,.1); }
.lightbox-count { margin: 5px 0 0; text-align: center; color: #c3ccc0; font-size: 14px; }

/* ---------- Admin ---------- */
.admin-page { min-height: 100vh; background: var(--sand); }
.admin-top { height: 78px; padding: 0 7%; display: flex; align-items: center; justify-content: space-between; background: var(--paper); border-bottom: 3px solid var(--green); }
.admin-top > a:last-child { color: var(--text); font-size: 15px; font-weight: 600; text-decoration: none; }
.admin-top > a:last-child:hover { color: var(--green); }
.admin-wrap { width: min(1160px, 90%); margin: 50px auto 90px; }
.admin-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 22px; }
.admin-heading h1, .admin-card h1 { font: 500 40px/1.15 var(--serif); margin-bottom: 20px; }
.admin-layout { display: grid; grid-template-columns: 230px minmax(0, 1fr); align-items: start; gap: 24px; }
.admin-sidebar { padding: 22px 14px; background: var(--paper); box-shadow: 0 8px 26px #2532280a; }
.admin-sidebar > .eyebrow { margin: 0 10px 12px; }
.admin-sidebar nav { display: grid; gap: 4px; }
.admin-sidebar nav a { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 12px 12px; color: var(--text); font-size: 15px; font-weight: 600; text-decoration: none; }
.admin-sidebar nav a:hover, .admin-sidebar nav a.active { background: var(--green-tint); color: var(--green); }
.admin-sidebar nav a span { color: var(--muted); font-size: 13px; }
.admin-content { min-width: 0; }
.admin-content .admin-card { margin-bottom: 18px; }
.admin-card { background: var(--paper); padding: 32px; margin-bottom: 24px; box-shadow: 0 8px 26px #2532280a; }
.admin-card h2 { font-size: 30px; margin: 0 0 8px; }
.admin-card > p:not(.eyebrow) { color: var(--muted); font-size: 15px; line-height: 1.7; }
.admin-card .eyebrow { margin-bottom: 12px; }
.admin-card form { max-width: 570px; margin-top: 22px; }
.admin-card .button { width: fit-content; margin-top: 4px; }
.admin-page .form-error { background: var(--error-tint); color: #7a2b1f; padding: 12px 15px; font-size: 15px; }
.enquiries-card { overflow: hidden; }
.count { display: inline-grid; place-items: center; vertical-align: middle; border-radius: 50%; min-width: 30px; height: 30px; padding: 0 6px; background: #e8ebdf; font: 600 13px var(--sans); color: var(--green); }
.table-wrap { overflow-x: auto; margin-top: 20px; }
table { border-collapse: collapse; width: 100%; min-width: 820px; font-size: 14px; }
th { text-align: left; color: var(--faint); font-size: 12px; letter-spacing: .1em; font-weight: 700; text-transform: uppercase; }
td, th { padding: 14px 12px; border-bottom: 1px solid #e8e7df; vertical-align: top; }
td { color: var(--muted); line-height: 1.6; }
td strong { color: var(--ink); font-size: 15px; }
td a { color: #3f5843; }
tr.enquiry-row { cursor: pointer; }
tr.enquiry-row:hover td { background: #f0f2e9; }
tr.enquiry-row:focus-visible { outline: 2px solid #68815e; outline-offset: -2px; }
.status-form { display: flex; gap: 6px; margin: 0 !important; }
.status-form select { height: 40px; min-width: 120px; margin: 0; font-size: 14px; }
.status-form button { min-height: 40px; border: 0; background: var(--green); color: white; padding: 0 14px; font: 700 14px var(--sans); white-space: nowrap; cursor: pointer; }
.reply-actions { display: grid; gap: 4px; margin: 8px 0 0; font-size: 13px; line-height: 1.5; }
.reply-actions a { width: fit-content; font-weight: 700; }
.enquiry-pagination { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 7px; margin-top: 22px; }
.enquiry-pagination a, .enquiry-pagination .current { min-width: 40px; min-height: 40px; display: inline-flex; align-items: center; justify-content: center; padding: 0 10px; border: 1px solid #dfe1d7; color: #3f5843; font-size: 14px; text-decoration: none; }
.enquiry-pagination a:hover, .enquiry-pagination .current { background: #e8ebdf; border-color: #cbd2c4; }
.enquiry-pagination span[aria-hidden="true"] { color: var(--muted); }
.enquiry-dialog { width: min(720px, 94vw); max-height: 90vh; overflow-y: auto; padding: 28px; border: 0; background: var(--paper); color: var(--ink); box-shadow: 0 18px 60px #13261b3d; }
.enquiry-dialog::backdrop { background: rgba(15, 24, 19, .68); }
.enquiry-dialog-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.enquiry-dialog-header .eyebrow { margin-bottom: 8px; }
.enquiry-dialog-header h2 { font-size: 30px; overflow-wrap: anywhere; }
.enquiry-dialog-close { flex: 0 0 44px; width: 44px; height: 44px; border: 1px solid #d5d9cd; background: transparent; color: var(--green); font: 24px/1 var(--sans); cursor: pointer; }
.enquiry-detail-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 14px; margin: 20px 0; }
.enquiry-detail-grid > div { min-width: 0; padding: 12px 14px; background: #f2f1eb; }
.enquiry-detail-grid dt { margin-bottom: 4px; color: var(--faint); font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.enquiry-detail-grid dd { margin: 0; color: #34473b; font-size: 15px; line-height: 1.5; overflow-wrap: anywhere; }
.enquiry-message { padding: 16px; background: #f2f1eb; }
.enquiry-message h3 { margin: 0 0 8px; color: var(--faint); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; }
.enquiry-message p { margin: 0; color: #34473b; font-size: 15px; line-height: 1.7; white-space: pre-wrap; overflow-wrap: anywhere; }
.enquiry-modal-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.enquiry-modal-actions .button { min-height: 46px; }
.admin-user-list { margin-top: 18px; border-top: 1px solid var(--line); }
.admin-user-list > div { display: flex; justify-content: space-between; gap: 15px; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.admin-user-list span { color: var(--muted); font-size: 14px; }

/* ==========================================================================
   Tablet & phone
   ========================================================================== */
@media (max-width: 960px) {
  .site-header nav { gap: 22px; }
  .header-phone-number { display: none; }
  .header-cta { width: 44px; padding: 0; }
}

@media (max-width: 760px) {
  .site-header { height: 72px; padding: 0 16px 0 20px; gap: 12px; }
  .wordmark { font-size: 13px; letter-spacing: .14em; }
  .wordmark small { font-size: 10.5px; letter-spacing: .12em; }
  .menu-toggle { display: grid; }
  .site-header nav { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; gap: 0; padding: 4px 20px 16px; background: var(--paper); border-top: 1px solid var(--line); box-shadow: 0 18px 30px #13261b26; }
  .site-header.menu-open nav { display: flex; }
  .site-header nav a { padding: 15px 0; border-bottom: 1px solid var(--line); font-size: 17px; }
  .site-header nav a:last-child { border-bottom: 0; }
  .site-header nav a:hover { border-bottom-color: var(--line); }

  .hero { height: auto; min-height: 620px; }
  .hero-image { background-position: 58% center; background-image: linear-gradient(90deg, rgba(20,32,27,.86), rgba(20,32,27,.45)), linear-gradient(0deg, rgba(14,24,19,.3), transparent 38%), url("assets/images/apartments/apartment-8/apt8-lounge-stairs.jpg"); }
  .hero-content { width: auto; margin: 0 20px; padding: 64px 0 104px; }
  .hero h1 { font-size: clamp(46px, 12vw, 72px); }
  .hero-copy { font-size: 17px; }
  .hero-note { display: none; }
  .scroll-cue { left: 20px; }

  .section-pad { padding: 72px 20px; }
  .welcome-copy { grid-template-columns: 1fr; gap: 24px; margin: 32px 0 42px; }
  .welcome-copy > div { max-width: 560px; }
  .welcome-stats > div { flex-direction: column; align-items: flex-start; gap: 4px; }
  .welcome-stats strong { font-size: 32px; }
  .property-strip { grid-template-columns: 1fr; gap: 18px; margin-top: 35px; }
  .property-strip-photos { grid-template-columns: repeat(2, 1fr); }
  .property-strip-photos img { height: 120px; }
  .section-heading { display: block; margin: 27px 0 31px; }
  .section-heading > p { margin-top: 16px; }
  .stay-grid { grid-template-columns: 1fr; gap: 44px; }
  .stay-photo { height: 260px; }
  .stay-info h3 { font-size: 24px; }
  .stay-foot { flex-direction: column; align-items: flex-start; }
  .garden { grid-template-columns: 1fr; }
  .garden-image { min-height: 300px; height: 56vw; max-height: 460px; }
  .garden-content { padding: 56px 20px 80px; }
  .garden-caption { left: 20px; }
  .contact-grid, .location { grid-template-columns: 1fr; gap: 32px; }
  .contact-grid { margin-top: 32px; }
  .form-panel { padding: 24px 18px; }
  .location-copy .section-label { margin-bottom: 35px; }
  .map-frame { height: 290px; }
  .site-footer { flex-wrap: wrap; padding: 30px 20px 96px; }
  .site-footer > p { order: 3; flex-basis: 100%; }
  .site-footer > small { flex-basis: 100%; }

  .enquiry-modal { width: 100%; height: 100%; max-width: 100%; max-height: 100%; margin: 0; }
  .enquiry-modal-inner { padding: 22px 20px 32px; }
  .enquiry-modal-header h2 { font-size: 30px; }

  .space-page { padding: 28px 20px 60px; }
  .space-heading { grid-template-columns: 1fr; gap: 18px; padding: 32px 0 27px; }
  .gallery-heading { align-items: flex-start; flex-direction: column; margin-top: 34px; }
  .gallery-heading h2 { font-size: 28px; }
  .space-gallery { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 145px; gap: 8px; }
  .space-gallery .gallery-thumb:first-child { grid-column: span 2; grid-row: span 2; }
  .space-enquiry { align-items: flex-start; flex-direction: column; padding: 26px 20px; }
  .space-enquiry-actions { align-items: flex-start; flex-direction: column; gap: 18px; }
  .lightbox { width: 100vw; max-width: none; padding: 12px 8px; }
  .lightbox-stage { grid-template-columns: 40px minmax(0, 1fr) 40px; gap: 4px; }
  .lightbox-arrow { width: 40px; height: 44px; }

  .admin-top { padding: 0 20px; }
  .admin-wrap { width: auto; margin: 28px 16px 60px; }
  .admin-layout { grid-template-columns: 1fr; gap: 14px; }
  .admin-sidebar { padding: 12px; }
  .admin-sidebar > .eyebrow { display: none; }
  .admin-sidebar nav { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .admin-sidebar nav a { justify-content: center; padding: 11px 6px; font-size: 14px; text-align: center; }
  .admin-card { padding: 24px 20px; }
  .admin-heading h1 { font-size: 32px; }
  .enquiry-dialog { padding: 22px 18px; }
}

@media (max-width: 420px) {
  .hero-actions { align-items: stretch; flex-direction: column; }
  .hero-actions .button, .hero .light-link { justify-content: space-between; }
  .form-row { grid-template-columns: 1fr; }
  .stay-info { align-items: flex-start; flex-direction: column; }
  .rate { text-align: left; }
  .welcome-stats { grid-template-columns: 1fr 1fr; row-gap: 18px; }
  .site-footer > div { gap: 16px; }
  .admin-user-list > div { align-items: flex-start; flex-direction: column; gap: 4px; }
  .back-to-top { left: 12px; bottom: 14px; min-height: 44px; padding: 0 12px; }
  .floating-whatsapp { right: 12px; bottom: 14px; min-height: 44px; padding: 0 15px; }
  .floating-share { right: 12px; bottom: 68px; min-height: 42px; }
  .enquiry-detail-grid { grid-template-columns: 1fr; }
  .enquiry-dialog-header h2 { font-size: 26px; }
}
