/* Villa Tovarovica — 2026-11-11 redesign: clean, photo-led, built around seeing the villa and requesting dates. */
:root {
  --ink: #24382f;
  --ink-soft: #66726c;
  --paper: #fbf8f2;
  --sand: #f4ede1;
  --line: #e8e0d2;
  --clay: #b4623a;
  --clay-dark: #974e2b;
  --serif: "Cormorant Garamond", "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --r: 26px;
  --arch: 999px 999px var(--r) var(--r);
  --shadow: 0 34px 80px -44px rgba(70, 52, 34, 0.5);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 17px/1.65 var(--sans); -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3 { margin: 0; font-family: var(--serif); font-weight: 400; letter-spacing: -0.015em; line-height: 1.08; text-wrap: balance; }
h1 em, h2 em, h3 em { font-style: italic; }
p { margin: 0; }
:focus-visible { outline: 2px solid var(--clay); outline-offset: 3px; }

.wrap { width: min(1180px, 100% - 40px); margin-inline: auto; }
.quick > *, .section-heading > *, .stay-panel > *, .location-grid > *, .faq-grid > *, .enquiry-grid > *, .form-row > *, .season > * { min-width: 0; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; padding: 10px 16px; border-radius: 8px; background: var(--ink); color: #fff; }
.skip:focus { top: 12px; }
.eyebrow { display: block; margin-bottom: 18px; color: var(--clay); font-size: 12px; font-weight: 700; letter-spacing: 0.2em; }
.fine { color: var(--ink-soft); font-size: 13.5px; line-height: 1.55; }

/* Buttons */
.button { display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 15px 26px; border: 1px solid var(--ink); border-radius: 999px; background: var(--ink); color: #fff; font-size: 15px; font-weight: 600; line-height: 1.2; transition: background 0.25s, border-color 0.25s, color 0.25s, transform 0.25s; }
.button:hover { background: #2b443a; border-color: #2b443a; transform: translateY(-1px); }
.button.clay { border-color: var(--clay); background: var(--clay); }
.button.clay:hover { border-color: var(--clay-dark); background: var(--clay-dark); }
.button.light { border-color: #fff; background: #fff; color: var(--ink); }
.button.light:hover { border-color: var(--sand); background: var(--sand); }
.button.outline { background: transparent; color: var(--ink); }
.button.outline:hover { background: var(--ink); color: #fff; }
.button.small { padding: 11px 20px; font-size: 14px; }
.text-link { display: inline-flex; gap: 8px; padding-bottom: 4px; border-bottom: 1px solid currentColor; font-weight: 600; transition: color 0.25s; }
.text-link:hover { color: var(--clay); }

/* Header */
header { position: fixed; inset: 0 0 auto; z-index: 40; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 16px clamp(20px, 4vw, 48px); color: #fff; transition: background 0.3s, color 0.3s, box-shadow 0.3s, padding 0.3s; }
header.scrolled { padding-block: 10px; background: var(--paper); color: var(--ink); box-shadow: 0 1px 0 var(--line); }
.brand { font-family: var(--serif); font-size: 18px; letter-spacing: 0.16em; line-height: 1.2; }
.brand small { display: block; margin-top: 4px; font: 600 10px/1 var(--sans); letter-spacing: 0.24em; opacity: 0.75; }
nav { display: flex; gap: clamp(18px, 2.6vw, 38px); font-size: 15px; font-weight: 500; }
nav a { padding: 6px 0; border-bottom: 1px solid transparent; transition: border-color 0.25s; }
nav a:hover { border-color: currentColor; }

/* Hero */
.hero { position: relative; display: flex; align-items: flex-end; min-height: min(92vh, 880px); color: #fff; overflow: hidden; }
.hero > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 62%; }
.hero-shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(13, 24, 20, 0.6) 0%, rgba(13, 24, 20, 0.05) 24%, rgba(13, 24, 20, 0.3) 52%, rgba(13, 24, 20, 0.86) 100%); }
.hero-copy { position: relative; padding: 150px 0 118px; }
.hero-copy .eyebrow { color: #fff; text-shadow: 0 1px 14px rgba(0, 0, 0, 0.55); }
.hero-copy p { text-shadow: 0 1px 16px rgba(0, 0, 0, 0.45); }
.hero h1 { font-size: clamp(50px, 8.4vw, 116px); line-height: 0.98; text-shadow: 0 2px 30px rgba(0, 0, 0, 0.25); }
.hero-copy p { max-width: 50ch; margin-top: 24px; font-size: clamp(17px, 1.5vw, 20px); line-height: 1.55; opacity: 0.95; }

/* Date bar under the hero */
.quick { position: relative; z-index: 2; display: grid; grid-template-columns: 1fr 1fr 0.7fr auto; align-items: end; gap: 14px; margin-top: -56px; padding: 20px; border-radius: 20px; background: #fff; box-shadow: var(--shadow); }
.quick label, #enquiry-form label { display: grid; gap: 7px; color: var(--ink-soft); font-size: 12px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; }
input, select, textarea { width: 100%; min-width: 0; min-height: 52px; padding: 13px 14px; border: 1px solid var(--line); border-radius: 12px; background: #fff; color: var(--ink); font-size: 16px; font-weight: 400; letter-spacing: 0; text-transform: none; transition: border-color 0.2s, box-shadow 0.2s; }
textarea { min-height: 104px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: 0; border-color: var(--clay); box-shadow: 0 0 0 3px rgba(180, 98, 58, 0.18); }
.quick .button { min-height: 52px; white-space: nowrap; }

/* Facts */
.facts { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 44px; border-block: 1px solid var(--line); }
.facts span { display: flex; align-items: baseline; gap: 14px; padding: 26px 22px; color: var(--ink-soft); font-size: 14.5px; line-height: 1.35; }
.facts span + span { border-left: 1px solid var(--line); }
.facts b { color: var(--ink); font: 400 44px/1 var(--serif); }

/* Sections */
.section { padding: clamp(72px, 9.5vw, 132px) 0; }
.section-heading { display: grid; grid-template-columns: 1.25fr 1fr; align-items: end; gap: 28px 60px; margin-bottom: clamp(34px, 4.5vw, 58px); }
.section-heading h2, .location h2, .faq h2, .enquiry h2, .season h2 { font-size: clamp(36px, 4.9vw, 64px); }
.section-heading > p { max-width: 44ch; color: var(--ink-soft); }

/* Gallery */
.gallery { padding-top: clamp(64px, 8vw, 104px); }
.features { display: flex; flex-wrap: wrap; gap: 10px 28px; margin: 0 0 30px; padding: 0; list-style: none; color: var(--ink); font-size: 15px; font-weight: 500; }
.features li { display: flex; align-items: center; gap: 10px; }
.features li::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--clay); }
.gallery-filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }
.gallery-filters button { padding: 10px 18px; border: 1px solid var(--line); border-radius: 999px; background: transparent; font-size: 14.5px; font-weight: 500; transition: background 0.2s, color 0.2s, border-color 0.2s; }
.gallery-filters button:hover { border-color: var(--ink); }
.gallery-filters button[aria-pressed="true"] { border-color: var(--ink); background: var(--ink); color: #fff; }
.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); grid-auto-rows: clamp(180px, 22vw, 290px); grid-auto-flow: dense; gap: 12px; }
.gallery-grid button { position: relative; padding: 0; border: 0; border-radius: var(--r); background: var(--sand); overflow: hidden; }
.gallery-grid button:first-child { grid-column: span 2; grid-row: span 2; }
.gallery-grid button:nth-child(8) { grid-column: span 2; }
.gallery-grid button:nth-child(7):last-child { grid-column: 1 / -1; }
.gallery-grid button:nth-child(5):last-child { grid-column: span 2; }
.gallery-grid img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1); }
.gallery-grid button:hover img { transform: scale(1.045); }
.gallery-grid span { position: absolute; right: 12px; bottom: 12px; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: rgba(255, 255, 255, 0.92); color: var(--ink); font-size: 15px; opacity: 0; transform: translateY(6px); transition: opacity 0.25s, transform 0.25s; }
.gallery-grid button:hover span, .gallery-grid button:focus-visible span { opacity: 1; transform: none; }
.gallery-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; margin-top: 26px; }
[hidden] { display: none !important; }

/* Stays */
.stays { background: var(--sand); }
.tabs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-bottom: 30px; padding: 6px; border-radius: 999px; background: rgba(29, 47, 40, 0.07); }
.tabs button { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 14px 12px; border: 0; border-radius: 999px; background: transparent; color: var(--ink-soft); font-size: 12px; font-weight: 700; letter-spacing: 0.08em; transition: background 0.25s, color 0.25s, box-shadow 0.25s; }
.tabs button span { font-size: 16px; font-weight: 600; letter-spacing: 0; }
.tabs button[aria-selected="true"] { background: #fff; color: var(--ink); box-shadow: 0 8px 22px -14px rgba(20, 34, 28, 0.6); }
.stay-panel { display: grid; grid-template-columns: 1.12fr 1fr; align-items: center; gap: clamp(30px, 5vw, 76px); }
.stay-photos { position: relative; padding: 0 0 54px; }
#stay-main { width: 88%; aspect-ratio: 4 / 3; border-radius: var(--r); object-fit: cover; }
#stay-detail { position: absolute; right: 0; bottom: 0; width: 44%; aspect-ratio: 4 / 3; border: 6px solid var(--sand); border-radius: var(--r); object-fit: cover; }
.photo-label { position: absolute; left: 0; bottom: 14px; max-width: 50%; color: var(--ink-soft); font-size: 11px; font-weight: 700; letter-spacing: 0.16em; }
.stay-copy h3 { font-size: clamp(28px, 3.1vw, 42px); }
.stay-copy > p { margin-top: 18px; color: var(--ink-soft); }
#stay-benefits { display: grid; gap: 12px; margin: 26px 0 30px; padding: 0; list-style: none; }
#stay-benefits li { position: relative; padding-left: 30px; }
#stay-benefits li::before { content: ""; position: absolute; left: 2px; top: 0.55em; width: 14px; height: 7px; border-left: 2px solid var(--clay); border-bottom: 2px solid var(--clay); transform: rotate(-45deg); }
.stay-copy .fine { margin-top: 16px; }

/* Life at the villa */
.experience-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 2.8vw, 38px); }
.photo-wrap { margin-bottom: 22px; border-radius: var(--r); overflow: hidden; }
.photo-wrap img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform 0.8s cubic-bezier(0.2, 0.7, 0.2, 1); }
article:hover .photo-wrap img { transform: scale(1.04); }
.experience-grid .eyebrow { margin-bottom: 10px; font-size: 11px; }
.experience-grid h3 { font-size: 27px; line-height: 1.16; }
.experience-grid p { margin-top: 12px; color: var(--ink-soft); font-size: 16px; }

/* Weddings */
.weddings { background: var(--sand); }
.wedding-story { display: grid; grid-template-columns: repeat(12, 1fr); gap: 14px; }
.wedding-story figure { position: relative; margin: 0; border-radius: var(--r); overflow: hidden; }
.wedding-story figure button { display: block; width: 100%; height: 100%; padding: 0; border: 0; background: #ddd6c6; }
.wedding-story figure img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s cubic-bezier(0.2, 0.7, 0.2, 1); }
.wedding-story figure:hover img { transform: scale(1.035); }
.wedding-story figcaption { position: absolute; inset: auto 0 0; padding: 60px 20px 18px; background: linear-gradient(transparent, rgba(13, 24, 20, 0.72)); color: #fff; font-size: 15px; pointer-events: none; }
.wedding-story figcaption b { display: block; margin-bottom: 2px; font-size: 11px; letter-spacing: 0.18em; }
.wedding-wide { grid-column: 1 / 9; aspect-ratio: 16 / 10; }
.wedding-portrait { grid-column: 9 / 13; grid-row: 1 / 3; }
.wedding-portrait button { position: absolute; inset: 0; }
.wedding-table { grid-column: 1 / 5; min-height: 300px; }
.wedding-invite { grid-column: 5 / 9; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; padding: clamp(24px, 2.6vw, 38px); border-radius: var(--r); background: #fff; }
.wedding-invite h3 { font-size: clamp(26px, 2.5vw, 34px); }
.wedding-invite p { margin: 14px 0 20px; color: var(--ink-soft); font-size: 15.5px; }
.wedding-invite .fine { margin: 18px 0 0; font-size: 12.5px; }

/* Off-season band */
.season { display: grid; grid-template-columns: 1fr 1fr; background: var(--ink); color: #fff; }
.season-photo img { width: 100%; height: 100%; min-height: 520px; object-fit: cover; }
.season-copy { align-self: center; max-width: 620px; padding: clamp(48px, 7vw, 104px) clamp(24px, 6vw, 88px); }
.season-copy .eyebrow { color: #e3a987; }
.season-copy > p { margin: 22px 0 30px; opacity: 0.86; }
.season-copy .fine { margin: 22px 0 0; color: rgba(255, 255, 255, 0.66); }

/* Location */
.location-grid { display: grid; grid-template-columns: 1fr 1.08fr; align-items: center; gap: clamp(30px, 5vw, 80px); }
.location-grid > div > p { margin-top: 22px; color: var(--ink-soft); }
.distances { margin: 30px 0; border-top: 1px solid var(--line); }
.distances div { display: grid; grid-template-columns: 150px 1fr; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.distances b { font-weight: 600; }
.distances span { color: var(--ink-soft); }
.location-image { position: relative; border-radius: var(--r); overflow: hidden; }
.location-image img { width: 100%; aspect-ratio: 5 / 4; object-fit: cover; }
.location-image span { position: absolute; left: 14px; bottom: 14px; padding: 9px 14px; border-radius: 999px; background: rgba(255, 255, 255, 0.94); font-size: 13px; font-weight: 600; }

/* FAQ */
.faq { padding-top: 0; }
.faq-grid { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: clamp(30px, 5vw, 80px); padding-top: clamp(64px, 8vw, 104px); border-top: 1px solid var(--line); }
details { border-bottom: 1px solid var(--line); }
details:first-child { border-top: 1px solid var(--line); }
summary { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 22px 0; font-size: 18px; font-weight: 600; cursor: pointer; list-style: none; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; flex: none; display: grid; place-items: center; width: 34px; height: 34px; border: 1px solid var(--line); border-radius: 50%; font-size: 20px; font-weight: 400; transition: transform 0.3s, background 0.3s, color 0.3s; }
details[open] summary::after { background: var(--ink); color: #fff; transform: rotate(45deg); }
details p { max-width: 62ch; padding: 0 0 24px; color: var(--ink-soft); }

/* Enquiry */
.enquiry { background: var(--ink); color: #fff; }
.enquiry-grid { display: grid; grid-template-columns: 1fr 1fr; align-items: start; gap: clamp(34px, 6vw, 96px); }
.enquiry .eyebrow { color: #e3a987; }
.enquiry-copy > p { margin-top: 22px; opacity: 0.86; }
.steps { display: grid; gap: 0; margin: 34px 0; padding: 0; list-style: none; counter-reset: step; }
.steps li { position: relative; display: grid; gap: 3px; padding: 16px 0 16px 58px; border-top: 1px solid rgba(255, 255, 255, 0.16); counter-increment: step; }
.steps li::before { content: counter(step); position: absolute; left: 0; top: 16px; display: grid; place-items: center; width: 38px; height: 38px; border: 1px solid rgba(255, 255, 255, 0.4); border-radius: 50%; font: 400 18px/1 var(--serif); }
.steps span { font-size: 15.5px; opacity: 0.78; }
.host-sign { font: italic 400 24px/1.3 var(--serif); }
.contacts { display: flex; flex-wrap: wrap; gap: 8px 26px; margin-top: 12px; }
.contacts a { border-bottom: 1px solid rgba(255, 255, 255, 0.4); }
.contacts a:hover { border-color: #fff; }
#enquiry-form { display: grid; gap: 18px; padding: clamp(22px, 3vw, 38px); border-radius: 22px; background: var(--paper); color: var(--ink); box-shadow: 0 40px 80px -40px rgba(0, 0, 0, 0.6); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-error { min-height: 0; color: #a3321f; font-size: 14.5px; font-weight: 600; }
.form-error:empty { display: none; }
#enquiry-form .button { width: 100%; min-height: 56px; font-size: 16px; }
.email-option { justify-self: center; border-bottom: 1px solid var(--line); color: var(--ink-soft); font-size: 14.5px; }
.email-option:hover { color: var(--ink); border-color: var(--ink); }
#enquiry-form .fine { text-align: center; }

/* Footer */
footer { padding: 44px 0; background: #17251f; color: rgba(255, 255, 255, 0.82); font-size: 14.5px; }
.footer-grid { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 22px 40px; }
footer .brand { color: #fff; }

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

/* Lightbox */
dialog#lightbox { width: 100vw; max-width: none; height: 100vh; height: 100dvh; max-height: none; margin: 0; padding: 0; border: 0; background: rgba(12, 20, 17, 0.96); color: #fff; }
dialog#lightbox::backdrop { background: rgba(12, 20, 17, 0.96); }
dialog#lightbox figure { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; height: 100%; margin: 0; padding: 64px clamp(16px, 7vw, 110px) 28px; }
#lightbox-image { max-width: 100%; max-height: calc(100% - 44px); border-radius: 8px; object-fit: contain; }
#lightbox-caption { font-size: 14.5px; opacity: 0.85; text-align: center; }
dialog#lightbox > button { position: absolute; z-index: 2; display: grid; place-items: center; width: 48px; height: 48px; border: 1px solid rgba(255, 255, 255, 0.35); border-radius: 50%; background: rgba(12, 20, 17, 0.5); color: #fff; font-size: 18px; transition: background 0.2s; }
dialog#lightbox > button:hover { background: rgba(255, 255, 255, 0.16); }
#close-lightbox { top: 16px; right: 16px; }
#previous-photo { left: 16px; top: 50%; transform: translateY(-50%); }
#next-photo { right: 16px; top: 50%; transform: translateY(-50%); }

/* Soft reveals (class added by script only when motion is welcome) */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.2, 0.7, 0.2, 1); }
.reveal.in { opacity: 1; transform: none; }

@media (max-width: 980px) {
  nav { display: none; }
  .section-heading, .stay-panel, .location-grid, .faq-grid, .enquiry-grid, .season { grid-template-columns: 1fr; }
  .section-heading { align-items: start; }
  .experience-grid { grid-template-columns: 1fr; gap: 40px; }
  .season-photo img { min-height: 0; aspect-ratio: 3 / 2; }
  .season-copy { max-width: none; }
  .wedding-wide { grid-column: 1 / -1; aspect-ratio: 3 / 2; }
  .wedding-portrait { grid-column: 1 / 7; grid-row: auto; aspect-ratio: 4 / 5; }
  .wedding-table { grid-column: 7 / 13; min-height: 0; }
  .wedding-invite { grid-column: 1 / -1; }
}

@media (max-width: 720px) {
  body { padding-bottom: 76px; font-size: 16.5px; }
  .wrap { width: min(1180px, 100% - 32px); }
  header { padding: 12px 16px; }
  .brand { font-size: 15px; }
  .brand small { font-size: 9px; }
  header .button.small { display: none; }
  .hero { min-height: min(78vh, 640px); }
  .hero-copy { padding: 110px 0 78px; }
  .quick { grid-template-columns: 1fr 1fr; margin-top: -44px; padding: 16px; }
  .quick label:nth-of-type(3), .quick .button { grid-column: 1 / -1; }
  .facts { grid-template-columns: 1fr 1fr; margin-top: 30px; }
  .facts span { flex-direction: column; gap: 6px; padding: 20px 14px; }
  .facts span:nth-child(3) { border-left: 0; }
  .facts span:nth-child(n + 3) { border-top: 1px solid var(--line); }
  .facts b { font-size: 38px; }
  .features { gap: 8px 18px; font-size: 14.5px; }
  .gallery-filters { flex-wrap: nowrap; margin-inline: -16px; padding-inline: 16px; overflow-x: auto; scrollbar-width: none; }
  .gallery-filters::-webkit-scrollbar { display: none; }
  .gallery-filters button { flex: none; }
  .gallery-grid { grid-template-columns: 1fr 1fr; grid-auto-rows: 42vw; gap: 8px; }
  .gallery-grid button:first-child, .gallery-grid button:nth-child(8), .gallery-grid button:nth-child(7):last-child, .gallery-grid button:nth-child(5):last-child { grid-column: auto; grid-row: auto; }
  .gallery-grid button:nth-child(5n + 1), .gallery-grid button:nth-child(5n + 2):last-child { grid-column: 1 / -1; grid-row: span 1; }
  .gallery-grid button:nth-child(5n + 1) { grid-row: span 2; }
  .gallery-grid span { opacity: 1; transform: none; width: 30px; height: 30px; font-size: 13px; }
  .gallery-foot .button { width: 100%; }
  .tabs { grid-template-columns: 1fr; border-radius: 22px; }
  .tabs button { justify-content: flex-start; padding: 13px 18px; border-radius: 16px; }
  .stay-photos { padding-bottom: 46px; }
  #stay-main { width: 100%; }
  #stay-detail { width: 46%; border-width: 5px; }
  .stay-copy .button { width: 100%; }
  .wedding-story { gap: 8px; }
  .wedding-portrait, .wedding-table { grid-column: 1 / -1; aspect-ratio: 4 / 5; }
  .wedding-table { aspect-ratio: 3 / 2; }
  .wedding-invite .button, .season-copy .button { width: 100%; }
  .distances div { grid-template-columns: 1fr; gap: 2px; }
  .location-image span { right: 14px; border-radius: 12px; text-align: center; }
  summary { font-size: 17px; }
  .form-row { grid-template-columns: 1fr 1fr; gap: 10px; }
  #enquiry-form label { font-size: 11px; letter-spacing: 0.06em; }
  .footer-grid { flex-direction: column; align-items: flex-start; }
  .mobile-bar { position: fixed; inset: auto 0 0; z-index: 45; display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 10px; padding: 10px 14px calc(10px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: rgba(251, 250, 246, 0.97); transition: transform 0.35s ease; }
  .mobile-bar.hide { transform: translateY(110%); }
  .mobile-bar .button { min-height: 50px; padding: 12px 10px; font-size: 14.5px; }
  dialog#lightbox figure { padding: 70px 10px 90px; }
  #previous-photo, #next-photo { top: auto; bottom: 22px; transform: none; }
  #previous-photo { left: calc(50% - 58px); }
  #next-photo { right: calc(50% - 58px); }
}

@media (max-width: 360px) {
  .form-row { grid-template-columns: 1fr; }
  .hero h1 { font-size: 44px; }
}

/* ───── 2026-11-11 (2) — soft pass: rounder shapes, arches, lighter type, floating panels ───── */
h1, h2, h3 { font-weight: 500; letter-spacing: -0.008em; }
.eyebrow { font-size: 11.5px; font-weight: 600; letter-spacing: 0.26em; }
.section-heading h2, .location h2, .faq h2, .enquiry h2, .season h2 { font-size: clamp(44px, 5.8vw, 78px); line-height: 1; }
.stay-copy h3 { font-size: clamp(33px, 3.6vw, 50px); }
.experience-grid h3 { font-size: 32px; line-height: 1.08; }
.wedding-invite h3 { font-size: clamp(31px, 2.9vw, 40px); }
.host-sign { font-size: 29px; }
button.text-link { padding: 0 0 4px; border: 0; border-bottom: 1px solid currentColor; background: none; }

/* Floating, pill-shaped header */
header { inset: 10px 12px auto; padding: 12px 14px 12px 26px; border-radius: 999px; }
header.scrolled { padding-block: 8px; background: rgba(251, 248, 242, 0.94); box-shadow: 0 18px 50px -28px rgba(70, 52, 34, 0.55); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }

/* Hero as a rounded picture */
.hero { min-height: min(calc(100vh - 112px), 860px); margin: 12px 12px 0; border-radius: 40px; }
.hero h1 { font-size: clamp(62px, 9.6vw, 138px); line-height: 0.9; }
.hero-copy { padding-bottom: 128px; }

/* Date bar as one soft pill */
.quick { grid-template-columns: 1fr 1fr 0.7fr auto; align-items: center; gap: 0; margin-top: -50px; padding: 12px 12px 12px 36px; border-radius: 999px; }
.quick label { margin-right: 24px; padding: 4px 24px 4px 0; border-right: 1px solid var(--line); }
.quick label:nth-of-type(3) { border-right: 0; }
.quick input { min-height: 30px; padding: 2px 0; border: 0; border-radius: 0; background: transparent; font-size: 17px; }
.quick input:focus { box-shadow: none; }
.quick label:focus-within { color: var(--clay); }
.quick .button { min-height: 62px; padding-inline: 34px; }
input, select, textarea { border-radius: 16px; }

/* Facts without boxes */
.facts { margin-top: 58px; border: 0; }
.facts span { flex-direction: column; align-items: center; gap: 8px; padding: 6px 18px; text-align: center; }
.facts b { font-size: 60px; font-weight: 500; }

/* Walk through the villa: arched cards */
.spaces { padding-bottom: clamp(20px, 3vw, 40px); }
.space-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(22px, 3vw, 44px) clamp(16px, 2.4vw, 34px); }
.space-card { padding: 0; border: 0; background: none; text-align: center; }
.space-card .frame { display: block; aspect-ratio: 4 / 5; border-radius: var(--arch); background: var(--sand); overflow: hidden; box-shadow: var(--shadow); }
.space-card img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s cubic-bezier(0.2, 0.7, 0.2, 1); }
.space-card:hover img, .space-card:focus-visible img { transform: scale(1.06); }
.space-card b { display: block; margin-top: 20px; font: 500 32px/1.05 var(--serif); }
.space-card small { display: block; margin-top: 4px; color: var(--clay); font-size: 12px; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; }
.spaces-foot { margin-top: 44px; text-align: center; }

/* Gallery */
.gallery-grid { gap: 14px; }
.gallery-grid button:nth-child(19):last-child { grid-column: span 2; }
.gallery-grid button:nth-child(4):last-child { grid-column: 1 / -1; }
.gallery-grid [data-c="plans"] { background: #fff; box-shadow: inset 0 0 0 1px var(--line); }
.gallery-grid [data-c="plans"] img { padding: 14px; object-fit: contain; }

/* Sand, green and wedding panels float with round corners */
.stays, .weddings, .season, .enquiry { margin-inline: 12px; border-radius: 44px; }
.season { margin-block: 12px; overflow: hidden; }
#stay-main { width: 78%; aspect-ratio: 4 / 5; border-radius: var(--arch); }
#stay-detail { width: 42%; aspect-ratio: 1; border: 8px solid var(--sand); border-radius: 50%; }
.photo-label { max-width: 44%; }
.photo-wrap { border-radius: var(--arch); }
.photo-wrap img { aspect-ratio: 4 / 5; }
.experience-grid article { text-align: center; }
.wedding-invite { border-radius: var(--r); }
.location-image { border-radius: var(--arch); }
.location-image img { aspect-ratio: 4 / 5; }
.location-image span { left: 50%; bottom: 18px; white-space: nowrap; transform: translateX(-50%); }
.nearby { margin: -8px 0 24px; }
#enquiry-form { border-radius: 34px; }
.enquiry { margin-bottom: 12px; }
footer { margin: 0 12px 12px; border-radius: 44px; }
#lightbox-image { border-radius: 18px; }

@media (max-width: 980px) {
  .space-grid { grid-template-columns: 1fr 1fr; }
  .location-image img { aspect-ratio: 1; }
  .location-image { border-radius: var(--r); }
}

@media (max-width: 720px) {
  header { inset: 8px 8px auto; padding: 10px 18px; }
  .hero { min-height: min(76vh, 620px); margin: 8px 8px 0; border-radius: 30px; }
  .hero h1 { font-size: clamp(46px, 14.5vw, 62px); }
  .hero-copy { padding: 104px 0 76px; }
  .section-heading h2, .location h2, .faq h2, .enquiry h2, .season h2 { font-size: clamp(36px, 10.6vw, 44px); }
  .quick { grid-template-columns: 1fr 1fr; gap: 12px; margin-top: -42px; padding: 16px; border-radius: 30px; }
  .quick label { margin: 0; padding: 0; border: 0; }
  .quick input { min-height: 52px; padding: 13px 14px; border: 1px solid var(--line); border-radius: 16px; background: #fff; font-size: 16px; }
  .quick .button { min-height: 54px; }
  .facts { margin-top: 34px; }
  .facts b { font-size: 48px; }
  .space-grid { gap: 26px 12px; }
  .space-card b { font-size: 26px; }
  .gallery-grid { gap: 8px; }
  .gallery-grid button:nth-child(19):last-child, .gallery-grid button:nth-child(4):last-child { grid-column: auto; }
  .gallery-grid button:nth-child(5n + 1), .gallery-grid button:nth-child(5n + 2):last-child, .gallery-grid button:nth-child(5n + 4):last-child { grid-column: 1 / -1; }
  .stays, .weddings, .season, .enquiry { margin-inline: 8px; border-radius: 30px; }
  #stay-main { width: 84%; }
  #stay-detail { width: 44%; border-width: 6px; }
  .location-image span { white-space: normal; width: calc(100% - 28px); }
  footer { margin: 0 8px 8px; border-radius: 30px; }
  #enquiry-form { border-radius: 26px; }
}

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


/* Whole-estate priority — 2026-11-13 */
.hero h1 { font-size: clamp(48px, 7vw, 96px); max-width: 19ch; }
.tabs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.apartment-spaces { margin-top: 46px; padding: 24px 0; border-block: 1px solid var(--line); }
.apartment-spaces summary { cursor: pointer; font-size: 18px; font-weight: 600; }
.apartment-spaces summary span { float: right; color: var(--clay); font-size: 14px; font-weight: 500; }
.apartment-spaces > p { max-width: 76ch; margin: 20px 0 26px; color: var(--ink-soft); }
.apartment-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.apartment-grid .space-card b { font-size: 26px; }
.apartment-option { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 30px; margin-top: 42px; padding: 28px 0 0; border-top: 1px solid var(--line); }
.apartment-option .eyebrow { margin-bottom: 9px; font-size: 10px; }
.apartment-option h3 { font-size: 30px; }
.apartment-option p { max-width: 70ch; margin-top: 12px; color: var(--ink-soft); font-size: 15px; }
.apartment-option .text-link { font-size: 14px; }
.wedding-wide { aspect-ratio: 1800 / 1202; }
@media (max-width: 760px) {
  .estate-spaces { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .estate-spaces > :first-child { grid-column: 1 / -1; }
  .estate-spaces > :first-child .frame { aspect-ratio: 3 / 2; border-radius: var(--r); }
  .apartment-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .apartment-option { grid-template-columns: 1fr; gap: 18px; }
  .apartment-option .text-link { justify-self: start; }
  .apartment-spaces summary span { display: block; float: none; margin-top: 4px; }
  .tabs button { justify-content: center; gap: 6px; padding-inline: 8px; }
  .tabs button span { font-size: 15px; }
}


/* Floating WhatsApp button — 2026-11-19 */
.wa-float { position: fixed; right: clamp(16px, 2.4vw, 30px); bottom: clamp(16px, 2.4vw, 30px); z-index: 46; display: inline-flex; align-items: center; gap: 12px; padding: 8px 22px 8px 8px; border-radius: 999px; background: #fff; color: var(--ink); box-shadow: 0 18px 44px -18px rgba(36, 56, 47, 0.55), 0 0 0 1px var(--line); font-size: 15px; font-weight: 600; line-height: 1.15; text-decoration: none; animation: wa-in 0.7s 1.2s both cubic-bezier(0.2, 0.8, 0.2, 1); transition: transform 0.25s, box-shadow 0.25s, bottom 0.35s ease; }
.wa-float:hover, .wa-float:focus-visible { transform: translateY(-3px); box-shadow: 0 24px 50px -18px rgba(36, 56, 47, 0.65), 0 0 0 1px #25d366; }
.wa-icon { position: relative; display: grid; place-items: center; flex: none; width: 52px; height: 52px; border-radius: 50%; background: #25d366; }
.wa-icon::after { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid #25d366; animation: wa-ring 2.6s 2.2s infinite ease-out; }
.wa-float:hover .wa-icon svg { animation: wa-wiggle 0.6s ease; }
.wa-label small { display: block; color: var(--ink-soft); font-size: 11px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; }
@keyframes wa-in { from { opacity: 0; transform: translateY(24px) scale(0.92); } }
@keyframes wa-ring { 0% { transform: scale(1); opacity: 0.7; } 70%, 100% { transform: scale(1.75); opacity: 0; } }
@keyframes wa-wiggle { 25% { transform: rotate(-12deg); } 60% { transform: rotate(10deg); } }
@media (max-width: 720px) {
  .wa-float { right: 14px; bottom: calc(86px + env(safe-area-inset-bottom)); padding: 0; background: none; box-shadow: none; }
  .wa-float .wa-icon { width: 56px; height: 56px; box-shadow: 0 14px 30px -10px rgba(36, 56, 47, 0.6); }
  .wa-float .wa-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .wa-float.low { bottom: calc(16px + env(safe-area-inset-bottom)); }
}
@media (prefers-reduced-motion: reduce) { .wa-float, .wa-icon::after, .wa-float:hover .wa-icon svg { animation: none; } }
@media print { .wa-float { display: none; } }


/* WhatsApp-only contact and aerial hero — 2026-11-20 */
.hero > img { object-position: 50% 50%; }
.quick.quick-wa { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 12px 12px 12px 36px; }
.quick-wa p { margin: 0; color: var(--ink-soft); font-size: 17px; }
.quick-wa p b { color: var(--ink); font-family: var(--serif); font-size: 24px; font-weight: 500; margin-right: 6px; }
.wa-panel { text-align: center; }
.wa-panel h3 { font-size: clamp(28px, 3vw, 38px); }
.wa-panel > p { margin: 0; color: var(--ink-soft); }
.wa-panel-tag { color: var(--clay); font-size: 12px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; }
@media (max-width: 720px) {
  .hero > img { object-position: 6% 50%; }
  .quick.quick-wa { flex-direction: column; align-items: stretch; gap: 12px; padding: 18px; text-align: center; }
  .quick-wa p b { display: block; margin: 0 0 2px; }
}

/* WhatsApp buttons in WhatsApp green — 2026-11-20 */
a.button[href*="wa.me"] { border-color: #25d366; background: #25d366; color: #06301c; }
a.button[href*="wa.me"]:hover { border-color: #1fbd5a; background: #1fbd5a; }


/* Louder floating WhatsApp button: green pill, badge, greeting bubble, periodic nudge — 2026-11-20 */
.wa-float { padding: 8px 26px 8px 8px; background: #25d366; color: #06301c; font-size: 17px; font-weight: 700; box-shadow: 0 20px 44px -14px rgba(18, 140, 70, 0.75), 0 0 0 4px rgba(255, 255, 255, 0.9); animation: wa-in 0.7s 1.2s both cubic-bezier(0.2, 0.8, 0.2, 1), wa-nudge 6s 4s infinite; }
.wa-float:hover, .wa-float:focus-visible { box-shadow: 0 26px 50px -14px rgba(18, 140, 70, 0.85), 0 0 0 4px #fff; }
.wa-float .wa-icon { width: 56px; height: 56px; background: #fff; }
.wa-float .wa-icon svg path { fill: #25d366; }
.wa-float .wa-icon::after { border-color: #fff; }
.wa-label small { color: #0b4a2c; font-size: 11.5px; }
.wa-badge { position: absolute; top: -3px; right: -3px; display: grid; place-items: center; width: 22px; height: 22px; border: 2px solid #fff; border-radius: 50%; background: #e5352b; color: #fff; font-size: 12px; font-style: normal; font-weight: 700; line-height: 1; animation: wa-pop 0.4s 2.4s both; }
.wa-float::before { content: "Hi! 👋  We reply personally."; position: absolute; right: 0; bottom: calc(100% + 14px); padding: 11px 16px; border-radius: 16px 16px 4px 16px; background: #fff; color: var(--ink); font-size: 14.5px; font-weight: 600; white-space: nowrap; box-shadow: 0 16px 36px -16px rgba(36, 56, 47, 0.6), 0 0 0 1px var(--line); opacity: 0; pointer-events: none; animation: wa-tip 9s 2.8s both; }
.wa-float:hover::before { opacity: 1; animation: none; }
@keyframes wa-nudge { 0%, 88%, 100% { transform: none; } 91% { transform: translateY(-7px) rotate(-2deg); } 94% { transform: translateY(0) rotate(2deg); } 97% { transform: translateY(-3px); } }
@keyframes wa-pop { from { transform: scale(0); } 70% { transform: scale(1.25); } }
@keyframes wa-tip { 0% { opacity: 0; transform: translateY(8px); } 6%, 90% { opacity: 1; transform: none; } 100% { opacity: 0; transform: translateY(8px); } }
@media (max-width: 720px) {
  .wa-float { padding: 0; background: none; box-shadow: none; }
  .wa-float .wa-icon { width: 60px; height: 60px; background: #25d366; box-shadow: 0 14px 30px -8px rgba(18, 140, 70, 0.8), 0 0 0 3px #fff; }
  .wa-float .wa-icon svg path { fill: #fff; }
  .wa-float .wa-icon::after { border-color: #25d366; }
  .wa-float::before { content: "Want to schedule? Chat here 👋"; font-size: 13.5px; }
}
@media (prefers-reduced-motion: reduce) { .wa-float { animation: none; } .wa-float::before { animation: none; opacity: 1; } .wa-badge { animation: none; } }
