/* Thottam Farmstay — ivory, midnight and gold */
:root {
  --ivory: #faf8f3;
  --sand: #f1ece2;
  --night: #13203a;
  --night-2: #1b2b4a;
  --gold: #b8925a;
  --gold-2: #d2b27a;
  --ink: #1d2230;
  --stone: #66645e;
  --line: rgba(29, 34, 48, .14);
  --line-dark: rgba(250, 248, 243, .18);
  --display: "Bellefair", "Times New Roman", serif;
  --body: "Jost", "Helvetica Neue", Arial, sans-serif;
  --mal: "Noto Serif Malayalam", serif;
  --wrap: 1240px;
  --gutter: clamp(20px, 5vw, 64px);
  --header-h: 84px;
  --ease: cubic-bezier(.22, .61, .36, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --wa: url('data:image/svg+xml,%3Csvg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"%3E%3Cpath d="M12.04 2a9.9 9.9 0 0 0-8.5 14.98L2 22l5.16-1.5A9.93 9.93 0 1 0 12.04 2Zm0 18.1a8.2 8.2 0 0 1-4.18-1.15l-.3-.18-3.06.89.9-2.98-.2-.31a8.2 8.2 0 1 1 6.84 3.73Zm4.5-6.14c-.25-.12-1.46-.72-1.69-.8-.22-.08-.39-.12-.55.12-.16.25-.63.8-.78.97-.14.16-.29.18-.53.06a6.7 6.7 0 0 1-3.36-2.94c-.25-.43.25-.4.72-1.34.08-.16.04-.3-.02-.43l-.76-1.83c-.2-.48-.4-.41-.55-.42h-.47a.9.9 0 0 0-.65.3 2.74 2.74 0 0 0-.86 2.04 4.77 4.77 0 0 0 1 2.53 10.9 10.9 0 0 0 4.17 3.68c1.55.67 2.16.73 2.94.61.47-.07 1.46-.6 1.66-1.17.21-.58.21-1.07.15-1.17-.06-.11-.22-.17-.47-.29Z"/%3E%3C/svg%3E');
}
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: vt-out .45s var(--ease) both; }
::view-transition-new(root) { animation: vt-in .6s var(--ease-out) both; }
@keyframes vt-out { to { opacity: 0; transform: translateY(-8px); } }
@keyframes vt-in { from { opacity: 0; transform: translateY(14px); } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--ivory); color: var(--ink); font-family: var(--body); font-weight: 300; font-size: 17px; line-height: 1.7; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
p { margin: 0 0 1.1em; }
h1, h2, h3, h4 { font-family: var(--display); font-weight: 400; line-height: 1.12; margin: 0; letter-spacing: .005em; }
h1 { font-size: clamp(2.7rem, 5.4vw, 4.8rem); }
h2 { font-size: clamp(2.2rem, 3.8vw, 3.5rem); }
h3 { font-size: clamp(1.55rem, 2.2vw, 2rem); }
.lede { font-family: var(--display); font-size: clamp(1.55rem, 2.5vw, 2.2rem); line-height: 1.38; max-width: 30ch; }
.muted { color: var(--stone); }
.small { font-size: .9rem; }
.wrap { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; }
.narrow { max-width: 62ch; }
.kicker { display: inline-flex; align-items: center; gap: 12px; color: var(--gold); font-size: .95rem; letter-spacing: .04em; margin-bottom: 18px; }
.kicker::before { content: ""; width: 34px; height: 1px; background: currentColor; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ivory); padding: 8px 14px; z-index: 100; }
.skip:focus { left: 8px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Page curtain on first load */
.curtain { position: fixed; inset: 0; z-index: 200; background: var(--night); display: grid; place-items: center; transition: clip-path 1.1s var(--ease-out) .25s, visibility 0s 1.4s; clip-path: inset(0 0 0 0); }
.curtain img { width: 150px; opacity: 0; animation: fadein .7s .05s var(--ease) forwards; }
.is-loaded .curtain { clip-path: inset(0 0 100% 0); visibility: hidden; }
@keyframes fadein { to { opacity: 1; } }

/* Buttons and links */
.btn { position: relative; overflow: hidden; display: inline-flex; align-items: center; justify-content: center; gap: .6em; min-height: 50px; padding: 0 1.8em; font: 400 .98rem/1 var(--body); letter-spacing: .04em; text-decoration: none; border-radius: 2px; cursor: pointer; border: 1px solid var(--night); background: var(--night); color: var(--ivory); transition: color .45s var(--ease), border-color .45s var(--ease), background .45s var(--ease); isolation: isolate; }
.btn::after { content: ""; position: absolute; inset: 0; background: var(--gold); transform: scaleX(0); transform-origin: right; transition: transform .55s var(--ease-out); z-index: -1; }
.btn:hover::after { transform: scaleX(1); transform-origin: left; }
.btn:hover { border-color: var(--gold); color: var(--night); }
.btn.ghost { background: transparent; color: var(--night); }
.btn.gold { background: var(--gold); border-color: var(--gold); color: var(--night); }
.btn.gold::after { background: var(--ivory); }
.btn.light { background: var(--ivory); color: var(--night); border-color: var(--ivory); }
.btn.line-light { background: transparent; color: var(--ivory); border-color: rgba(250,248,243,.55); }
.btn.line-light:hover, .btn.light:hover { color: var(--night); border-color: var(--gold); }
.wa-ico { width: 18px; height: 18px; flex: none; background: currentColor; -webkit-mask: var(--wa) center / contain no-repeat; mask: var(--wa) center / contain no-repeat; }
.text-link { position: relative; text-decoration: none; font-weight: 400; padding-bottom: 4px; background: linear-gradient(var(--gold), var(--gold)) 0 100% / 100% 1px no-repeat; transition: background-size .5s var(--ease-out); }
.text-link:hover { background-size: 0 1px; background-position: 100% 100%; }

/* Header */
.site-header { position: fixed; inset: 0 0 auto 0; z-index: 50; height: var(--header-h); display: flex; align-items: center; color: var(--ivory); transition: background .45s var(--ease), color .45s var(--ease), box-shadow .45s var(--ease), transform .5s var(--ease); }
.site-header.hide { transform: translateY(-100%); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: flex; align-items: center; text-decoration: none; }
.brand img { height: 60px; width: auto; transition: filter .45s var(--ease); }
.nav { display: flex; align-items: center; gap: clamp(18px, 2.2vw, 32px); }
.nav a { position: relative; text-decoration: none; font-size: .95rem; font-weight: 400; letter-spacing: .03em; padding: 6px 0; }
.nav a:not(.btn)::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--gold); transform: scaleX(0); transform-origin: right; transition: transform .45s var(--ease-out); }
.nav a:not(.btn):hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); transform-origin: left; }
.site-header .nav .btn { min-height: 44px; padding: 0 1.4em; background: transparent; color: inherit; border-color: currentColor; }
.site-header .nav .btn:hover { color: var(--night); border-color: var(--gold); }
.site-header.solid, body.plain .site-header { background: rgba(250, 248, 243, .94); color: var(--night); box-shadow: 0 1px 0 var(--line); backdrop-filter: blur(10px); }
.site-header.solid .brand img, body.plain .site-header .brand img { filter: invert(1) brightness(.2) sepia(.3) hue-rotate(190deg); }
.menu-toggle { display: none; background: none; border: 0; color: inherit; width: 48px; height: 48px; margin-right: -12px; cursor: pointer; }
.menu-toggle span { display: block; width: 26px; height: 1px; background: currentColor; margin: 7px auto; transition: transform .4s var(--ease); }

/* Hero slideshow */
.hero { position: relative; min-height: 100svh; color: var(--ivory); display: flex; align-items: flex-end; overflow: hidden; background: var(--night); }
.slides { position: absolute; inset: 0; }
.slide { position: absolute; inset: 0; opacity: 0; transition: opacity 1.6s var(--ease); }
.slide img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.12); transition: transform 8s linear; }
.slide.on { opacity: 1; }
.slide.on img { transform: scale(1); }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10,17,32,.55) 0%, rgba(10,17,32,0) 28%, rgba(10,17,32,0) 45%, rgba(10,17,32,.8) 100%); pointer-events: none; }
.mist { position: absolute; inset: auto -20% 0 -20%; height: 45%; z-index: 1; pointer-events: none; background: radial-gradient(60% 60% at 30% 80%, rgba(250,248,243,.16), transparent 70%), radial-gradient(50% 50% at 75% 90%, rgba(250,248,243,.12), transparent 70%); animation: drift 24s ease-in-out infinite alternate; }
@keyframes drift { to { transform: translateX(8%); } }
.hero-inner { position: relative; z-index: 2; padding-bottom: clamp(36px, 6vh, 70px); }
.hero-word { font-family: var(--mal); font-weight: 200; font-size: clamp(5.2rem, 16vw, 14.5rem); line-height: .9; margin: 0 0 .1em -.04em; }
.hero-word span { display: inline-block; opacity: 0; transform: translateY(40%); filter: blur(8px); }
.is-loaded .hero-word span { animation: letter 1.4s var(--ease-out) forwards; }
@keyframes letter { to { opacity: 1; transform: none; filter: none; } }
.hero-title { font-family: var(--display); font-size: clamp(1.5rem, 2.6vw, 2.3rem); line-height: 1.25; max-width: 24ch; margin: 0; }
.hero-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.hero-meaning { font-size: .95rem; color: rgba(250,248,243,.82); margin: 14px 0 0; }
.hero-fade { opacity: 0; transform: translateY(18px); }
.is-loaded .hero-fade { animation: rise 1.2s var(--ease-out) forwards; }
.is-loaded .hero-fade.d2 { animation-delay: .35s; }
.is-loaded .hero-fade.d3 { animation-delay: .6s; }
@keyframes rise { to { opacity: 1; transform: none; } }
.slide-nav { position: absolute; z-index: 3; right: var(--gutter); top: 50%; transform: translateY(-50%); display: flex; flex-direction: column; gap: 14px; }
.slide-nav button { width: 3px; height: 34px; padding: 0; border: 0; background: rgba(250,248,243,.35); cursor: pointer; position: relative; overflow: hidden; }
.slide-nav button::after { content: ""; position: absolute; inset: 0; background: var(--gold-2); transform: scaleY(0); transform-origin: top; }
.slide-nav button.on::after { animation: fill 6s linear forwards; }
@keyframes fill { to { transform: scaleY(1); } }
.scroll-cue { position: absolute; z-index: 3; left: 50%; bottom: 18px; width: 1px; height: 46px; background: rgba(250,248,243,.3); overflow: hidden; }
.scroll-cue::after { content: ""; position: absolute; left: 0; top: -50%; width: 1px; height: 50%; background: var(--ivory); animation: cue 2.2s var(--ease) infinite; }
@keyframes cue { to { top: 100%; } }

/* Quick availability bar */
.quick { display: grid; grid-template-columns: 1fr 1fr .8fr auto; align-items: end; background: rgba(250,248,243,.97); color: var(--night); border-radius: 2px; padding: 10px; gap: 2px; min-width: min(660px, 100%); box-shadow: 0 30px 60px -30px rgba(0,0,0,.5); }
.quick label { display: block; padding: 6px 14px 8px; border-right: 1px solid var(--line); }
.quick label:nth-of-type(3) { border-right: 0; }
.quick span { display: block; font-size: .78rem; color: var(--stone); letter-spacing: .03em; }
.quick input, .quick select { width: 100%; border: 0; background: transparent; font: 400 1rem var(--body); color: var(--night); padding: 2px 0; min-height: 30px; }
.quick .btn { min-height: 56px; }
.quick .form-error { grid-column: 1 / -1; min-height: 0; padding: 0 14px; color: #8a3d1f; }
.quick .form-error:empty { display: none; }

/* Reveal on scroll */
.js [data-reveal] { opacity: 0; transform: translateY(34px); transition: opacity 1.1s var(--ease-out), transform 1.1s var(--ease-out); transition-delay: var(--d, 0s); }
.js [data-reveal].in { opacity: 1; transform: none; }
.js .reveal-img { clip-path: inset(12% 0 0 0); transition: clip-path 1.4s var(--ease-out); transition-delay: var(--d, 0s); overflow: hidden; }
.js .reveal-img img { transform: scale(1.15); transition: transform 1.8s var(--ease-out); transition-delay: var(--d, 0s); }
.js .reveal-img.in { clip-path: inset(0 0 0 0); }
.js .reveal-img.in img { transform: scale(1); }
.zoom { overflow: hidden; }
.zoom img { transition: transform 1.2s var(--ease-out); }
.zoom:hover img { transform: scale(1.05); }

/* Sections */
.section { padding: clamp(84px, 12vw, 160px) 0; position: relative; }
.section.tight { padding: clamp(56px, 8vw, 104px) 0; }
.section.paper, .section.sand { background: var(--sand); }
.section.dark { background: var(--night); color: var(--ivory); }
.section.dark .muted { color: rgba(250,248,243,.72); }
.section.dark .kicker { color: var(--gold-2); }
.page-head { padding: calc(var(--header-h) + clamp(56px, 9vw, 120px)) 0 clamp(40px, 6vw, 72px); }
.page-head p { max-width: 58ch; margin-top: 22px; color: var(--stone); }
.center { text-align: center; }
.center .kicker { justify-content: center; }
.center .kicker::after { content: ""; width: 34px; height: 1px; background: currentColor; }

/* Intro */
.intro { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(40px, 7vw, 120px); align-items: center; }
.intro-media { position: relative; }
.intro-media .a { width: 82%; aspect-ratio: 4 / 5; object-fit: cover; }
.intro-media .b { position: absolute; width: 46%; right: 0; bottom: -10%; aspect-ratio: 3 / 4; object-fit: cover; border: 10px solid var(--ivory); }
.intro-media figure { margin: 0; }

/* Counters */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin-top: clamp(80px, 9vw, 130px); }
.stats div { padding: 34px 20px 30px; text-align: center; border-right: 1px solid var(--line); }
.stats div:last-child { border-right: 0; }
.stats b { display: block; font-family: var(--display); font-weight: 400; font-size: clamp(2.4rem, 4vw, 3.4rem); line-height: 1; color: var(--night); }
.stats span { display: block; color: var(--stone); font-size: .92rem; margin-top: 10px; }

/* Residences */
.residence { display: grid; grid-template-columns: 7fr 5fr; gap: clamp(32px, 6vw, 96px); align-items: center; }
.residence + .residence { margin-top: clamp(90px, 12vw, 160px); }
.residence.flip { grid-template-columns: 5fr 7fr; }
.residence.flip .res-media { order: 2; }
.res-media { position: relative; }
.res-media > .zoom img, .res-media > img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.res-media .inset { position: absolute; width: 36%; right: -5%; bottom: -12%; border: 10px solid var(--sand); z-index: 2; }
.res-media .inset img { aspect-ratio: 4 / 5; object-fit: cover; width: 100%; }
.residence.flip .res-media .inset { right: auto; left: -5%; }
.res-body h2 { margin-bottom: 20px; }
.feat { list-style: none; padding: 0; margin: 22px 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px 22px; font-size: .95rem; }
.feat li { display: flex; gap: 10px; align-items: baseline; }
.feat li::before { content: ""; width: 6px; height: 6px; border: 1px solid var(--gold); transform: rotate(45deg) translateY(-2px); flex: none; }
.rate { display: flex; align-items: baseline; gap: 10px; margin: 26px 0 28px; padding-top: 22px; border-top: 1px solid var(--line); }
.rate b { font-family: var(--display); font-weight: 400; font-size: 2.2rem; color: var(--night); }
.rate span { color: var(--stone); font-size: .95rem; }
.res-actions { display: flex; gap: 18px; flex-wrap: wrap; align-items: center; }

/* House story */
.story { display: grid; grid-template-columns: 1fr 1fr; min-height: 92vh; }
.story-media { position: relative; overflow: hidden; }
.story-media img { position: absolute; inset: -12% 0; width: 100%; height: 124%; object-fit: cover; will-change: transform; }
.story-body { background: var(--night); color: var(--ivory); padding: clamp(56px, 8vw, 120px) clamp(28px, 6vw, 96px); display: flex; flex-direction: column; justify-content: center; }
.story-body .muted { color: rgba(250,248,243,.74); }
.story-body ul { list-style: none; padding: 0; margin: 26px 0 0; border-top: 1px solid var(--line-dark); }
.story-body li { padding: 14px 0; border-bottom: 1px solid var(--line-dark); display: grid; grid-template-columns: 150px 1fr; gap: 14px; font-size: .95rem; }
.story-body li span:first-child { color: var(--gold-2); }

/* Interior strip */
.strip-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: 40px; }
.strip { display: grid; grid-auto-flow: column; grid-auto-columns: clamp(260px, 28vw, 400px); gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 0 0 18px; padding-inline: max(var(--gutter), calc((100% - var(--wrap)) / 2)); scroll-padding-inline: max(var(--gutter), calc((100% - var(--wrap)) / 2)); scrollbar-width: thin; scrollbar-color: var(--gold) transparent; cursor: grab; }
.strip.drag { cursor: grabbing; scroll-snap-type: none; }
.strip figure { margin: 0; scroll-snap-align: start; }
.strip img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; pointer-events: none; }
.strip figcaption { font-size: .9rem; color: var(--stone); margin-top: 10px; }
.strip-nav { display: flex; gap: 8px; }
.strip-nav button { width: 52px; height: 52px; border-radius: 50%; border: 1px solid var(--line); background: transparent; color: var(--night); cursor: pointer; font-size: 1.1rem; transition: background .4s var(--ease), color .4s var(--ease), border-color .4s var(--ease); }
.strip-nav button:hover { background: var(--night); color: var(--ivory); border-color: var(--night); }

/* Dining */
.dine { display: grid; grid-template-columns: repeat(12, 1fr); gap: 18px; margin-top: 56px; }
.dine figure { margin: 0; position: relative; }
.dine img { width: 100%; height: 100%; object-fit: cover; }
.dine .d1 { grid-column: 1 / 8; aspect-ratio: 16 / 11; }
.dine .d2 { grid-column: 8 / 13; aspect-ratio: 4 / 5; grid-row: span 2; }
.dine .d3 { grid-column: 1 / 5; aspect-ratio: 1; }
.dine .d4 { grid-column: 5 / 8; aspect-ratio: 3 / 4; }
.dine figcaption { position: absolute; left: 16px; bottom: 14px; color: var(--ivory); font-size: .9rem; text-shadow: 0 1px 12px rgba(0,0,0,.5); }

/* Full-bleed parallax band */
.band { position: relative; min-height: 88vh; display: flex; align-items: center; color: var(--ivory); overflow: hidden; }
.band > img { position: absolute; inset: -15% 0; width: 100%; height: 130%; object-fit: cover; will-change: transform; }
.band::after { content: ""; position: absolute; inset: 0; background: rgba(10,17,32,.42); }
.band .wrap { position: relative; z-index: 2; text-align: center; }
.band h2 { font-size: clamp(2.4rem, 5vw, 4.6rem); max-width: 18ch; margin: 0 auto; }
.band p { max-width: 50ch; margin: 22px auto 30px; color: rgba(250,248,243,.9); }

/* Experiences */
.exp-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(18px, 2.2vw, 30px); margin-top: 56px; }
.exp { position: relative; color: var(--ivory); overflow: hidden; aspect-ratio: 3 / 4.4; display: flex; align-items: flex-end; text-decoration: none; }
.exp img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease-out); }
.exp::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10,17,32,0) 40%, rgba(10,17,32,.85) 100%); transition: background .6s var(--ease); }
.exp:hover img { transform: scale(1.07); }
.exp div { position: relative; z-index: 2; padding: 24px; }
.exp h3 { margin-bottom: 6px; font-size: 1.7rem; }
.exp p { font-size: .92rem; color: rgba(250,248,243,.82); margin: 0; max-height: 0; opacity: 0; overflow: hidden; transition: max-height .6s var(--ease-out), opacity .5s var(--ease); }
.exp:hover p, .exp:focus-visible p { max-height: 120px; opacity: 1; }
.split-head { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: end; }
.exp-list .residence .muted { max-width: 46ch; }

/* Marquee of places */
.marquee { overflow: hidden; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 26px 0; background: var(--ivory); }
.marquee-track { display: flex; gap: 56px; width: max-content; animation: marq 40s linear infinite; font-family: var(--display); font-size: clamp(1.6rem, 3vw, 2.6rem); color: var(--night); white-space: nowrap; }
.marquee-track span { display: inline-flex; align-items: center; gap: 56px; }
.marquee-track span::after { content: ""; width: 9px; height: 9px; border: 1px solid var(--gold); transform: rotate(45deg); }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marq { to { transform: translateX(-50%); } }

/* Arrival */
.arrival { display: grid; grid-template-columns: 1.2fr .8fr; gap: clamp(40px, 6vw, 96px); align-items: center; }
.arrival figure { margin: 0; }
.arrival img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.contact-list { list-style: none; padding: 0; margin: 28px 0 32px; border-top: 1px solid var(--line); }
.contact-list li { display: grid; grid-template-columns: 120px 1fr; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.contact-list span { color: var(--stone); font-size: .92rem; }
.contact-list a { text-decoration: none; }
.contact-list a:hover { color: var(--gold); }

/* Reserve form */
.reserve { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(40px, 7vw, 120px); align-items: start; }
.reserve .note { margin-top: 26px; font-size: .95rem; }
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 20px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field.full { grid-column: 1 / -1; }
.field label, .field legend { font-size: .88rem; letter-spacing: .03em; color: inherit; opacity: .78; }
.field input, .field select, .field textarea { width: 100%; font: 400 1rem var(--body); color: inherit; background: transparent; border: 0; border-bottom: 1px solid var(--line-dark); padding: 10px 0 12px; border-radius: 0; min-height: 48px; transition: border-color .4s var(--ease); }
.field select option { color: var(--ink); }
.field textarea { min-height: 96px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-bottom-color: var(--gold); }
.section:not(.dark) .field input, .section:not(.dark) .field select, .section:not(.dark) .field textarea { border-bottom-color: var(--line); }
input[type="date"]::-webkit-calendar-picker-indicator { filter: invert(.8); cursor: pointer; }
.section:not(.dark) input[type="date"]::-webkit-calendar-picker-indicator { filter: none; }
.choice { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; border: 0; padding: 0; margin: 0; }
.choice legend { margin-bottom: 10px; }
.choice label { position: relative; border: 1px solid var(--line-dark); padding: 14px; cursor: pointer; font-size: .95rem; line-height: 1.3; transition: border-color .3s, background .3s; opacity: 1; }
.section:not(.dark) .choice label { border-color: var(--line); }
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice label small { display: block; opacity: .7; font-size: .8rem; margin-top: 4px; }
.choice label:has(input:checked) { border-color: var(--gold); background: rgba(184,146,90,.14); }
.choice label:has(input:focus-visible) { outline: 2px solid var(--gold); outline-offset: 2px; }
.form-error { grid-column: 1 / -1; min-height: 1.4em; color: #e7bf8f; font-size: .92rem; margin: 0; }
.section:not(.dark) .form-error { color: #8a3d1f; }
.form .btn { grid-column: 1 / -1; justify-self: start; min-height: 56px; }
.form .fine { grid-column: 1 / -1; font-size: .86rem; opacity: .7; margin: 0; }
.is-hidden { display: none !important; }

/* Stays page */
.stay-detail { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(32px, 6vw, 96px); }
.stay-detail + .stay-detail { margin-top: clamp(96px, 12vw, 160px); }
.stay-detail .sticky { position: sticky; top: calc(var(--header-h) + 32px); align-self: start; }
.mosaic { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.mosaic > * { overflow: hidden; }
.mosaic img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4 / 5; }
.mosaic .wide { grid-column: 1 / -1; }
.mosaic .wide img { aspect-ratio: 16 / 10; }
.detail-list { list-style: none; padding: 0; margin: 28px 0; border-top: 1px solid var(--line); }
.detail-list li { padding: 12px 0; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; gap: 16px; }
.detail-list li span:first-child { color: var(--stone); }

/* Gallery */
.filters { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 30px; }
.filters button { font: 400 .95rem var(--body); padding: 10px 18px; border: 1px solid var(--line); background: transparent; color: var(--ink); border-radius: 40px; cursor: pointer; transition: background .3s, color .3s, border-color .3s; }
.filters button[aria-pressed="true"], .filters button:hover { background: var(--night); color: var(--ivory); border-color: var(--night); }
.masonry { columns: 3 320px; column-gap: 14px; }
.masonry button { display: block; width: 100%; margin: 0 0 14px; padding: 0; border: 0; background: none; cursor: zoom-in; break-inside: avoid; overflow: hidden; transition: opacity .5s var(--ease), transform .5s var(--ease); }
.masonry button img { width: 100%; transition: transform 1.1s var(--ease-out); }
.masonry button:hover img { transform: scale(1.04); }
.masonry button.out { display: none; }
.lightbox { position: fixed; inset: 0; z-index: 90; background: rgba(10,17,32,.96); display: flex; align-items: center; justify-content: center; padding: 64px 72px; opacity: 0; visibility: hidden; transition: opacity .45s var(--ease), visibility 0s .45s; }
.lightbox.open { opacity: 1; visibility: visible; transition: opacity .45s var(--ease); }
.lightbox img { max-width: 100%; max-height: 100%; object-fit: contain; transform: scale(.96); transition: transform .6s var(--ease-out); }
.lightbox.open img { transform: none; }
.lightbox button { position: absolute; background: none; border: 0; color: var(--ivory); cursor: pointer; width: 56px; height: 56px; font-size: 1.6rem; }
.lb-close { top: 12px; right: 12px; }
.lb-prev { left: 8px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 8px; top: 50%; transform: translateY(-50%); }

/* Virtual tour */
.tour-frame { width: 100%; height: min(78vh, 760px); border: 0; display: block; background: var(--night); }

/* Policies */
.policy { max-width: 70ch; }
.policy h2 { font-size: clamp(1.6rem, 2.4vw, 2.1rem); margin: 2.2em 0 .6em; }
.policy ul { padding-left: 1.2em; }
.policy-nav { display: flex; gap: 24px; flex-wrap: wrap; margin-top: 28px; }
.policy-nav a { text-decoration: none; border-bottom: 1px solid var(--line); }
.policy-nav a[aria-current="page"] { border-bottom-color: var(--gold); }

/* Footer */
.site-footer { background: var(--night); color: rgba(250,248,243,.86); padding: clamp(64px, 9vw, 112px) 0 32px; font-size: .95rem; border-top: 1px solid var(--line-dark); }
.site-footer a { text-decoration: none; transition: color .3s; }
.site-footer a:hover { color: var(--gold-2); }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; }
.foot-grid img { height: 70px; width: auto; margin-bottom: 20px; }
.foot-grid h4 { font-family: var(--body); font-weight: 400; font-size: .9rem; color: var(--gold-2); margin-bottom: 14px; letter-spacing: .04em; }
.foot-grid ul { list-style: none; margin: 0; padding: 0; }
.foot-grid li { margin-bottom: 8px; }
.foot-base { margin-top: 64px; padding-top: 24px; border-top: 1px solid var(--line-dark); display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; font-size: .85rem; color: rgba(250,248,243,.6); }

/* Mobile reserve pill */

/* Trip planner */
.planner { display: grid; grid-template-columns: 7fr 5fr; gap: clamp(32px, 6vw, 88px); align-items: start; }
.plan-form { display: grid; gap: 0; }
.step { border: 0; border-top: 1px solid var(--line); margin: 0; padding: 34px 0 40px; min-width: 0; }
.step legend { float: left; width: 100%; display: flex; align-items: baseline; gap: 14px; font-family: var(--display); font-size: clamp(1.5rem, 2.2vw, 1.9rem); line-height: 1.2; margin-bottom: 22px; padding: 0; }
.step legend + * { clear: both; }
.step-no { font-family: var(--body); font-size: .85rem; font-weight: 400; width: 28px; height: 28px; border: 1px solid var(--gold); color: var(--gold); border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; flex: none; transform: translateY(-3px); }
.step .hint { color: var(--stone); font-size: .95rem; margin: 0 0 18px; max-width: 58ch; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 20px; margin-top: 18px; }
.step .choice { display: grid; }
.lbl { font-size: .88rem; letter-spacing: .03em; opacity: .78; }
.stepper { display: inline-flex; align-items: center; border-bottom: 1px solid var(--line); min-height: 48px; }
.stepper button { width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 50%; background: transparent; color: var(--night); font-size: 1.2rem; cursor: pointer; transition: background .3s, color .3s; }
.stepper button:hover { background: var(--night); color: var(--ivory); }
.stepper output { min-width: 64px; text-align: center; font-family: var(--display); font-size: 1.6rem; }
.picks { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.pick { position: relative; display: block; border: 1px solid var(--line); padding: 14px 16px 14px 46px; cursor: pointer; line-height: 1.35; transition: border-color .3s, background .3s, transform .3s var(--ease); }
.pick:hover { transform: translateY(-2px); }
.pick input { position: absolute; left: 16px; top: 17px; width: 18px; height: 18px; accent-color: var(--night); margin: 0; }
.pick b { display: block; font-weight: 400; }
.pick small { display: block; color: var(--stone); font-size: .85rem; margin-top: 3px; }
.pick:has(input:checked) { border-color: var(--gold); background: rgba(184,146,90,.1); }
.pick:has(input:focus-visible) { outline: 2px solid var(--gold); outline-offset: 2px; }
.stays-pick { grid-template-columns: 1fr; }
.pick-row { display: grid; grid-template-columns: 1fr 150px; gap: 10px; align-items: stretch; }
.pick-row select { font: 400 .95rem var(--body); color: var(--ink); background: transparent; border: 1px solid var(--line); border-radius: 0; padding: 0 12px; }
.pick-row select:disabled { opacity: .4; }
.summary { position: sticky; top: calc(var(--header-h) + 28px); background: var(--night); color: var(--ivory); padding: clamp(28px, 3vw, 40px); }
.summary h2 { font-size: 2rem; margin-bottom: 18px; }
.summary dl { margin: 0 0 22px; }
.summary dt { font-size: .82rem; color: var(--gold-2); letter-spacing: .03em; margin-top: 16px; }
.summary dd { margin: 4px 0 0; padding-bottom: 14px; border-bottom: 1px solid var(--line-dark); line-height: 1.5; }
.summary .btn { width: 100%; min-height: 56px; }
.summary .fine { font-size: .85rem; opacity: .7; margin: 14px 0 0; }
.summary .form-error { margin-bottom: 12px; }
.section .summary .form-error { color: #e7bf8f; }

/* Responsive */
@media (max-width: 1080px) {
  .quick { grid-template-columns: 1fr 1fr; min-width: 0; width: 100%; }
  .quick label:nth-of-type(2) { border-right: 0; }
  .quick .btn { grid-column: 1 / -1; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .exp-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  :root { --header-h: 72px; }
  .brand img { height: 46px; }
  .menu-toggle { display: block; }
  .nav { position: fixed; inset: 0; background: var(--night); color: var(--ivory); flex-direction: column; align-items: flex-start; justify-content: center; padding: 0 var(--gutter); gap: 16px; clip-path: inset(0 0 100% 0); transition: clip-path .7s var(--ease-out); visibility: hidden; }
  .nav a { font-family: var(--display); font-size: 2.3rem; font-weight: 400; opacity: 0; transform: translateY(20px); transition: opacity .5s var(--ease), transform .6s var(--ease-out); }
  body.menu-open .nav a { opacity: 1; transform: none; }
  body.menu-open .nav a:nth-child(2) { transition-delay: .06s; } body.menu-open .nav a:nth-child(3) { transition-delay: .12s; } body.menu-open .nav a:nth-child(4) { transition-delay: .18s; } body.menu-open .nav a:nth-child(5) { transition-delay: .24s; } body.menu-open .nav a:nth-child(6) { transition-delay: .3s; }
  .nav .btn { font-family: var(--body); font-size: 1rem; margin-top: 16px; }
  body.menu-open .nav { clip-path: inset(0 0 0 0); visibility: visible; }
  body.menu-open .site-header { color: var(--ivory); background: transparent; box-shadow: none; transform: none; }
  body.menu-open .site-header .brand img { filter: none; }
  body.menu-open .menu-toggle span:first-child { transform: translateY(4px) rotate(45deg); }
  body.menu-open .menu-toggle span:last-child { transform: translateY(-4px) rotate(-45deg); }
  .menu-toggle, .brand { position: relative; z-index: 2; }
  .quick, .slide-nav { display: none; }
  .intro, .residence, .residence.flip, .arrival, .reserve, .stay-detail, .split-head, .story, .planner { grid-template-columns: 1fr; }
  .residence.flip .res-media { order: 0; }
  .res-media .inset { display: none; }
  .intro-media .a { width: 100%; }
  .intro-media .b { display: none; }
  .stats { grid-template-columns: 1fr 1fr; }
  .stats div:nth-child(2) { border-right: 0; }
  .stats div:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .story-media { min-height: 60vh; }
  .stay-detail .sticky, .summary { position: static; }
  .strip-nav { display: none; }
  .dine { grid-template-columns: 1fr 1fr; }
  .dine .d1, .dine .d2, .dine .d3, .dine .d4 { grid-column: auto; grid-row: auto; aspect-ratio: 4 / 5; }
  .dine .d1 { grid-column: 1 / -1; aspect-ratio: 16 / 11; }
  .exp p { max-height: none; opacity: 1; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .form, .row2, .picks { grid-template-columns: 1fr; }
  .choice { grid-template-columns: 1fr; }
  .foot-grid, .exp-grid { grid-template-columns: 1fr; }
  .contact-list li, .story-body li { grid-template-columns: 1fr; gap: 2px; }
  .lightbox { padding: 56px 8px; }
  .feat { grid-template-columns: 1fr; }
  .pick-row { grid-template-columns: 1fr 120px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0s !important; transition-duration: .01ms !important; transition-delay: 0s !important; scroll-behavior: auto !important; }
  .hero-word span, .hero-fade { opacity: 1; transform: none; filter: none; }
  .js [data-reveal], .js .reveal-img, .js .reveal-img img { opacity: 1; transform: none; clip-path: none; }
  .marquee-track { animation: none; }
}
.curtain { animation: hidecurtain .01s 3.5s forwards; }
@keyframes hidecurtain { to { visibility: hidden; clip-path: inset(0 0 100% 0); } }
html:not(.js) .hero-word span, html:not(.js) .hero-fade { opacity: 1; transform: none; filter: none; }
.reveal-img { display: block; }
.reveal-img img { width: 100%; height: 100%; object-fit: cover; }
.dine .reveal-img, .intro-media .reveal-img { height: 100%; }

.dine { grid-template-rows: auto clamp(240px, 24vw, 360px); }
.dine .d2, .dine .d3, .dine .d4 { aspect-ratio: auto; }
@media (max-width: 900px) { .dine { grid-template-rows: none; } .dine .d2, .dine .d3, .dine .d4 { aspect-ratio: 4 / 5; } }

/* Phones */
.slide picture { display: contents; }
.mbar { display: none; }
@media (max-width: 900px) {
  html { -webkit-tap-highlight-color: transparent; }
  a, button, input, select, label, textarea { touch-action: manipulation; }
  .mbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; display: grid; grid-template-columns: auto 1fr; gap: 10px; padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom)); background: rgba(250,248,243,.94); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border-top: 1px solid var(--line); transform: translateY(0); transition: transform .5s var(--ease-out); }
  .mbar.away, body.menu-open .mbar { transform: translateY(110%); }
  .mbar .btn { min-height: 50px; padding: 0 1.2em; }
  .mbar-wa { display: inline-flex; align-items: center; gap: 8px; min-height: 50px; padding: 0 16px; border: 1px solid var(--line); border-radius: 2px; color: var(--night); text-decoration: none; font-weight: 400; }
  .mbar-wa .wa-ico { width: 20px; height: 20px; color: #1f9d55; }
  body:has(.mbar) .site-footer { padding-bottom: calc(96px + env(safe-area-inset-bottom)); }
  .summary { scroll-margin-top: calc(var(--header-h) + 12px); }
  .strip { grid-auto-columns: 78vw; gap: 12px; }
  .story-media { min-height: 52vh; }
}
@media (max-width: 700px) {
  body { font-weight: 400; }
  .muted, .page-head p, .stats span, .rate span, .contact-list span, .strip figcaption { color: #57554f; }
  .section { padding: 72px 0; }
  .hero { min-height: 100svh; }
  .hero-inner { padding-bottom: 64px; }
  .hero-word { font-size: clamp(4.4rem, 24vw, 6.4rem); }
  .hero-title { font-size: 1.45rem; }
  .text-link { display: inline-flex; align-items: center; min-height: 44px; padding-bottom: 0; background-position: 0 calc(100% - 8px); }
  .site-footer a { display: inline-block; padding: 6px 0; }
  .filters { flex-wrap: nowrap; overflow-x: auto; margin-inline: calc(-1 * var(--gutter)); padding: 0 var(--gutter) 6px; scrollbar-width: none; }
  .filters::-webkit-scrollbar { display: none; }
  .filters button { flex: none; min-height: 44px; }
  .masonry { columns: 2; column-gap: 8px; }
  .masonry button { margin-bottom: 8px; }
  .exp-grid { display: grid; grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 78vw; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; margin-inline: calc(-1 * var(--gutter)); padding: 0 var(--gutter) 8px; scroll-padding-inline: var(--gutter); scrollbar-width: none; }
  .exp-grid::-webkit-scrollbar { display: none; }
  .exp { scroll-snap-align: start; aspect-ratio: 3 / 4; }
  .dine { gap: 8px; }
  .mosaic { gap: 8px; }
  .lightbox { padding: 64px 0; }
  .lightbox .lb-prev, .lightbox .lb-next { top: auto; bottom: 12px; transform: none; }
  input, select, textarea { font-size: 16px; }
  input[type="date"] { min-height: 48px; -webkit-appearance: none; appearance: none; background: transparent; }
  .band h2 { font-size: 2.3rem; }
  .marquee-track { font-size: 1.5rem; gap: 36px; }
}
