/* La Villa Mangata — night-pool theme, mobile first */

:root {
  --night: #0b1d20;
  --night-2: #10292c;
  --night-3: #163538;
  --moon: #ecefe6;
  --moon-dim: rgba(236, 239, 230, 0.68);
  --moon-faint: rgba(236, 239, 230, 0.42);
  --line: rgba(236, 239, 230, 0.12);
  --line-strong: rgba(236, 239, 230, 0.26);
  --pool: #1e8f98;
  --marigold: #f2a31b;
  --marigold-hot: #ffb733;
  --ink-on-marigold: #1d1405;
  --error: #ff8a70;

  --serif: "Rozha One", "Hind", Georgia, serif;
  --sans: "Hind", system-ui, -apple-system, sans-serif;
  --mono: "DM Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --gutter: clamp(20px, 5vw, 48px);
  --wrap: 1180px;
  --radius-lg: 28px;
  --radius-md: 20px;
  --ease: cubic-bezier(0.22, 0.8, 0.24, 1);
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --dock-space: calc(96px + var(--safe-bottom));
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--night);
  color: var(--moon);
  font: 400 clamp(1rem, 0.96rem + 0.2vw, 1.0625rem)/1.65 var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, iframe { display: block; max-width: 100%; }
a { color: inherit; }
p, h1, h2, h3, ul, dl, dd, blockquote, figure { margin: 0; }
ul { padding: 0; list-style: none; }
h1, h2 { font-family: var(--serif); font-weight: 400; line-height: 0.98; letter-spacing: -0.01em; }
h2 { font-size: clamp(2.3rem, 1.6rem + 3.6vw, 4.2rem); }
h3 { font-weight: 600; font-size: 1.05rem; line-height: 1.3; }
.mono { font-family: var(--mono); font-feature-settings: "tnum"; letter-spacing: -0.01em; }
.muted { color: var(--moon-dim); }
.note { color: var(--moon-faint); font-size: 0.92rem; }
.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
section[id] { scroll-margin-top: 12px; }
:focus-visible { outline: 3px solid var(--marigold); outline-offset: 3px; border-radius: 6px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: calc(16px + var(--safe-top)); z-index: 100; background: var(--moon); color: var(--night); padding: 10px 14px; border-radius: 10px; }

/* Ambient depth: gradient mesh + grain */
.mesh {
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(60% 45% at 12% 8%, rgba(30, 143, 152, 0.26), transparent 70%),
    radial-gradient(45% 35% at 92% 34%, rgba(242, 163, 27, 0.09), transparent 70%),
    radial-gradient(55% 40% at 20% 72%, rgba(30, 143, 152, 0.14), transparent 70%),
    radial-gradient(70% 45% at 70% 104%, rgba(236, 239, 230, 0.07), transparent 70%),
    var(--night);
}
.grain {
  position: fixed; inset: 0; z-index: 40; pointer-events: none; opacity: 0.07;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* Glass surfaces */
.glass {
  background: rgba(16, 41, 44, 0.55);
  border: 1px solid var(--line);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  backdrop-filter: blur(18px) saturate(140%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 24px 48px -24px rgba(0, 0, 0, 0.55);
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .glass { background: rgba(16, 41, 44, 0.94); }
}

/* Tactile press */
.tap { -webkit-tap-highlight-color: transparent; transition: transform 0.16s var(--ease), background-color 0.2s, border-color 0.2s, color 0.2s; }
.tap:active { transform: scale(0.96); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 54px; padding: 0 24px; border-radius: 999px;
  font: 600 1rem/1 var(--sans); text-decoration: none; cursor: pointer; border: 1px solid transparent;
}
.btn svg { width: 20px; height: 20px; flex: none; }
.btn--primary { background: var(--marigold); color: var(--ink-on-marigold); box-shadow: 0 14px 34px -14px rgba(242, 163, 27, 0.7); }
.btn--primary:hover { background: var(--marigold-hot); }
.btn--ghost { background: rgba(255, 255, 255, 0.04); border-color: var(--line-strong); color: var(--moon); }
.btn--ghost:hover { background: rgba(255, 255, 255, 0.1); }
.btn--wide { width: 100%; }
.icon-btn {
  display: inline-grid; place-items: center; width: 48px; height: 48px; border-radius: 50%;
  color: var(--moon); text-decoration: none; cursor: pointer; padding: 0;
}
.icon-btn svg { width: 20px; height: 20px; }

/* Media frames: fixed aspect ratios (no layout shift) + shimmer while loading */
.media { position: relative; overflow: hidden; background: var(--night-3); }
.media > img, .media > iframe, .media > video { position: relative; z-index: 1; width: 100%; height: 100%; object-fit: cover; }
.js .media > img { opacity: 0; transition: opacity 0.8s var(--ease); }
.js .media.is-loaded > img { opacity: 1; }
.js .media:not(.is-loaded)::before {
  content: ""; position: absolute; inset: 0; z-index: 0;
  background: linear-gradient(100deg, transparent 20%, rgba(236, 239, 230, 0.08) 50%, transparent 80%) 0 0 / 200% 100%;
  animation: shimmer 1.4s linear infinite;
}
@keyframes shimmer { from { background-position: 150% 0; } to { background-position: -50% 0; } }

/* Top bar (no menu: navigation lives in the dock) */
.topbar {
  position: absolute; z-index: 10; top: 0; left: 0; right: 0;
  display: flex; align-items: center; justify-content: space-between;
  padding: calc(10px + var(--safe-top)) var(--gutter) 0;
}
.topbar__brand {
  display: inline-flex; align-items: center; min-height: 48px;
  font-family: var(--serif); font-size: 1.15rem; text-decoration: none;
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.5);
}

/* Hero */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: 100vh; min-height: 100svh;
  padding-top: calc(132px + var(--safe-top));
  display: flex; flex-direction: column; justify-content: flex-end;
}
.hero__media { position: absolute; inset: 0; z-index: -2; }
.hero__media > img { object-position: 46% 48%; }
.hero__veil {
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, rgba(11, 29, 32, 0.45) 0%, rgba(11, 29, 32, 0.05) 22%, rgba(11, 29, 32, 0.45) 44%, rgba(11, 29, 32, 0.88) 72%, var(--night) 100%),
    radial-gradient(80% 50% at 0% 100%, rgba(11, 29, 32, 0.6), transparent 70%);
}
.hero__content { padding: 0 var(--gutter) calc(var(--dock-space) + 28px); max-width: 920px; }
.coords { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 0.8rem; color: var(--moon); margin-bottom: 18px; text-shadow: 0 1px 10px rgba(0, 0, 0, 0.6); }
.hero__title, .hero__hindi, .hero__lead { text-shadow: 0 2px 22px rgba(0, 0, 0, 0.35); }
.coords span + span { padding-left: 14px; border-left: 1px solid var(--line-strong); }
.hero__title { font-size: clamp(3.6rem, 1.8rem + 11vw, 9.5rem); font-size: min(clamp(3.6rem, 1.8rem + 11vw, 9.5rem), 15svh); line-height: 0.88; }
.hero__title .line { display: block; }
.hero__hindi { font-family: var(--serif); font-size: clamp(1.4rem, 1rem + 2vw, 2.4rem); color: var(--moon-dim); margin-top: 10px; line-height: 1.25; }
.hero__lead { margin-top: 18px; font-size: clamp(1.05rem, 0.98rem + 0.4vw, 1.25rem); max-width: 30ch; color: var(--moon); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.price-chip {
  display: inline-flex; flex-direction: column; justify-content: center;
  min-height: 54px; padding: 6px 20px; border-radius: 999px; text-decoration: none; line-height: 1.15;
}
.price-chip .mono { font-size: 1.05rem; font-weight: 500; }
.price-chip span:last-child { font-size: 0.8rem; color: var(--moon-dim); }
.hero__rating {
  position: absolute; top: calc(70px + var(--safe-top)); left: var(--gutter);
  display: flex; align-items: center; gap: 12px; min-height: 52px; padding: 6px 16px 6px 8px;
  border-radius: 999px; text-decoration: none;
}
.hero__rating-score { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--marigold); color: var(--ink-on-marigold); font: 600 0.95rem var(--mono); }
.hero__rating-text { display: grid; font-size: 0.82rem; line-height: 1.25; color: var(--moon-dim); }
.stars { color: var(--marigold); letter-spacing: 2px; font-size: 0.75rem; }
.motion [data-intro] { opacity: 0; }


/* Stepper (booking sheet) */
.stepper { display: inline-flex; align-items: center; border: 1px solid var(--line-strong); border-radius: 999px; }
.stepper button { width: 48px; height: 48px; border: 0; border-radius: 50%; background: transparent; color: var(--moon); font-size: 1.4rem; cursor: pointer; }
.stepper button:hover { background: rgba(255, 255, 255, 0.08); }
.stepper button:disabled { opacity: 0.3; cursor: default; }
.stepper output { min-width: 2.5em; text-align: center; color: var(--moon); }

/* Getting here */
.where { padding-block: clamp(48px, 8vw, 110px); }
.where__grid { display: grid; gap: 32px; }
.where address { font-style: normal; margin-top: 18px; color: var(--moon-dim); }
.dist { margin: 20px 0 26px; }
.dist li { display: flex; justify-content: space-between; gap: 16px; padding: 14px 0; border-top: 1px solid var(--line); }
.dist li:last-child { border-bottom: 1px solid var(--line); }
.map { aspect-ratio: 4 / 3; border-radius: var(--radius-lg); border: 1px solid var(--line); }
.map > iframe { border: 0; filter: invert(0.9) hue-rotate(180deg) saturate(0.55) brightness(0.95); }

/* Form fields (booking sheet) */
.field { display: grid; gap: 8px; }
.field label { font-weight: 600; font-size: 0.92rem; }
.field input, .field select {
  width: 100%; min-height: 54px; padding: 12px 16px;
  font: 400 1rem var(--sans); color: var(--moon); color-scheme: dark;
  background: rgba(255, 255, 255, 0.06); border: 1px solid var(--line-strong); border-radius: 14px;
  -webkit-appearance: none; appearance: none;
}
.field select { background-image: linear-gradient(45deg, transparent 50%, var(--moon-dim) 50%), linear-gradient(135deg, var(--moon-dim) 50%, transparent 50%); background-position: calc(100% - 22px) 52%, calc(100% - 16px) 52%; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 44px; }
.field select option { background: var(--night-2); }
.field input:focus, .field select:focus { outline: none; border-color: var(--marigold); box-shadow: 0 0 0 3px rgba(242, 163, 27, 0.25); }
.form-error { color: var(--error); font-weight: 600; min-height: 1.4em; }

/* Footer */
.foot { padding: 56px 0 calc(var(--dock-space) + 32px); border-top: 1px solid var(--line); color: var(--moon-dim); font-size: 0.95rem; }
.foot__grid { display: grid; gap: 18px; }
.foot__brand { font-family: var(--serif); font-size: 2rem; color: var(--moon); line-height: 1; }
.foot a { color: var(--moon); }
.foot__small { font-size: 0.78rem; color: var(--moon-faint); }

/* Floating dock */
.dock {
  position: fixed; z-index: 60; left: 50%; bottom: calc(12px + var(--safe-bottom));
  transform: translateX(-50%);
  display: flex; align-items: center; gap: 4px; padding: 6px;
  width: max-content; max-width: calc(100% - 20px);
  border-radius: 999px;
  background: rgba(13, 33, 36, 0.62);
}
.dock__item {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  min-width: 64px; min-height: 52px; padding: 4px 10px; border-radius: 999px;
  font-size: 0.7rem; font-weight: 500; line-height: 1; color: var(--moon-dim); text-decoration: none;
}
.dock__item svg { width: 21px; height: 21px; }
.dock__item.is-active { color: var(--moon); background: rgba(236, 239, 230, 0.1); }
.dock__item--book { flex-direction: row; padding: 0 20px; margin-left: 2px; background: var(--marigold); color: var(--ink-on-marigold); font-size: 0.95rem; font-weight: 600; }
.dock__item--book.is-active { background: var(--marigold-hot); color: var(--ink-on-marigold); }

/* Short phones: keep the whole hero above the dock on first view */
@media (max-width: 959px) and (max-height: 720px) {
  .hero { padding-top: calc(112px + var(--safe-top)); }
  .hero__content { padding-bottom: calc(var(--dock-space) + 12px); }
  .coords { margin-bottom: 10px; }
  .hero__actions { margin-top: 18px; gap: 10px; }
}

/* Wider screens */
@media (min-width: 960px) {
  .hero { padding-top: calc(88px + var(--safe-top)); }
  .hero__content { padding-bottom: calc(var(--dock-space) + 64px); padding-left: max(var(--gutter), calc((100vw - var(--wrap)) / 2 + var(--gutter))); }
  .hero__rating { top: auto; left: auto; right: max(var(--gutter), calc((100vw - var(--wrap)) / 2 + var(--gutter))); bottom: calc(var(--dock-space) + 72px); }
  .where__grid { grid-template-columns: 5fr 7fr; gap: 64px; align-items: center; }
  .foot__grid { grid-template-columns: 1.4fr 1.4fr 1fr 1fr; align-items: end; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .tap, .js .media > img { transition: none; }
  .js .media:not(.is-loaded)::before { animation: none; }
}

/* ================= High-tech layer ================= */

/* Loader */
.preloader { display: none; }
.motion .preloader {
  display: grid; place-items: center; position: fixed; inset: 0; z-index: 100;
  background: radial-gradient(60% 50% at 50% 40%, rgba(30, 143, 152, 0.18), transparent 70%), var(--night);
  clip-path: inset(0 0 0 0);
}
.preloader__inner { width: min(78vw, 420px); }
.preloader__name { font-family: var(--serif); font-size: clamp(1.6rem, 6vw, 2.4rem); }
.preloader__pct { font-size: clamp(4.5rem, 22vw, 8rem); line-height: 1; margin-top: 10px; color: var(--marigold); letter-spacing: -0.04em; }
.preloader__pct small { font-size: 0.3em; margin-left: 6px; color: var(--moon-dim); letter-spacing: 0; }
.preloader__bar { height: 2px; background: var(--line); margin-top: 18px; overflow: hidden; }
.preloader__bar i { display: block; height: 100%; background: var(--marigold); transform-origin: 0 50%; transform: scaleX(0); box-shadow: 0 0 12px var(--marigold); }
.preloader__meta { display: flex; justify-content: space-between; margin-top: 12px; font-size: 0.75rem; color: var(--moon-faint); }

/* Cursor (mouse only) */
.cursor { display: none; }
.has-cursor .cursor { display: block; position: fixed; inset: 0; z-index: 90; pointer-events: none; }
.cursor__dot, .cursor__ring { position: fixed; left: 0; top: 0; border-radius: 50%; will-change: transform; }
.cursor__dot { width: 6px; height: 6px; margin: -3px 0 0 -3px; background: var(--marigold); box-shadow: 0 0 10px var(--marigold); }
.cursor__ring {
  width: 38px; height: 38px; margin: -19px 0 0 -19px; border: 1px solid rgba(242, 163, 27, 0.55);
  box-shadow: 0 0 22px rgba(242, 163, 27, 0.25), inset 0 0 12px rgba(242, 163, 27, 0.12);
  transition: width 0.3s var(--ease), height 0.3s var(--ease), margin 0.3s var(--ease), background-color 0.3s, border-color 0.3s;
}
.cursor.is-hover .cursor__ring { width: 64px; height: 64px; margin: -32px 0 0 -32px; background: rgba(242, 163, 27, 0.08); }
.cursor.is-water .cursor__ring { border-color: rgba(120, 220, 230, 0.7); box-shadow: 0 0 26px rgba(30, 143, 152, 0.5); }
.cursor.is-hidden { opacity: 0; }

/* Hero water canvas sits on top of the fallback photo */
.hero__water { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; opacity: 0; transition: opacity 0.9s var(--ease); touch-action: pan-y; }
.hero__water.is-ready { opacity: 1; }
.hero__veil {
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(11, 29, 32, 0.5) 0%, rgba(11, 29, 32, 0.1) 20%, rgba(11, 29, 32, 0.35) 48%, rgba(11, 29, 32, 0.55) 78%, var(--night) 100%),
    radial-gradient(80% 50% at 0% 100%, rgba(11, 29, 32, 0.55), transparent 70%);
  pointer-events: none;
}
@media (min-width: 960px) {
  .hero__veil {
    background:
      linear-gradient(90deg, rgba(11, 29, 32, 0.82) 0%, rgba(11, 29, 32, 0.5) 34%, rgba(11, 29, 32, 0) 62%),
      linear-gradient(180deg, rgba(11, 29, 32, 0.45) 0%, rgba(11, 29, 32, 0) 22%, rgba(11, 29, 32, 0) 70%, var(--night) 100%);
  }
}
.hero__content, .hero__rating { position: relative; z-index: 2; }
.hero__rating { position: absolute; }
.coords__hint { display: inline-flex; align-items: center; gap: 8px; color: #9fe6ec; }
.pulse { width: 7px; height: 7px; border-radius: 50%; background: #5fd3dc; box-shadow: 0 0 0 0 rgba(95, 211, 220, 0.6); animation: pulse 2s infinite; display: inline-block; }
.pulse--live { background: #4ade80; box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.6); animation-name: pulse-live; }
@keyframes pulse { 70% { box-shadow: 0 0 0 9px rgba(95, 211, 220, 0); } 100% { box-shadow: 0 0 0 0 rgba(95, 211, 220, 0); } }
@keyframes pulse-live { 70% { box-shadow: 0 0 0 9px rgba(74, 222, 128, 0); } 100% { box-shadow: 0 0 0 0 rgba(74, 222, 128, 0); } }

/* Live dashboard */
.hud { position: relative; z-index: 3; }
.hud__panel {
  position: relative; overflow: hidden; border-radius: var(--radius-lg);
  background-image: linear-gradient(rgba(236, 239, 230, 0.035) 1px, transparent 1px), linear-gradient(90deg, rgba(236, 239, 230, 0.035) 1px, transparent 1px);
  background-size: 24px 24px;
}
.hud__panel::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(115deg, transparent 30%, rgba(95, 211, 220, 0.08) 48%, transparent 66%);
  background-size: 250% 100%; animation: sweep 6s linear infinite;
}
@keyframes sweep { from { background-position: 120% 0; } to { background-position: -120% 0; } }
.hud__head { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.hud__title { font-family: var(--sans); font-weight: 600; font-size: 0.95rem; display: inline-flex; align-items: center; gap: 10px; letter-spacing: 0; }
.hud__stamp { font-size: 0.72rem; color: var(--moon-faint); }
.hud__grid { position: relative; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 0; }
.hud__cell { padding: 16px 20px 18px; border-bottom: 1px solid var(--line); min-width: 0; }
.hud__cell:nth-child(odd) { border-right: 1px solid var(--line); }
.hud__cell dt { font-size: 0.8rem; color: var(--moon-dim); }
.hud__big { font-size: clamp(1.45rem, 1.1rem + 1.8vw, 2.2rem); line-height: 1.15; margin-top: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hud__sub { font-size: 0.74rem; color: var(--moon-faint); margin-top: 2px; }
.hud__btn {
  min-height: 44px; padding: 0 14px; border-radius: 999px; border: 1px solid rgba(95, 211, 220, 0.5);
  background: rgba(30, 143, 152, 0.15); color: #bff3f6; font: 500 0.85rem var(--sans); cursor: pointer;
}
.hud__btn:disabled { opacity: 0.6; }
.hud__bars { position: relative; display: flex; align-items: flex-end; gap: 4px; height: 28px; padding: 0 20px 14px; }
.hud__bars i { flex: 1; background: linear-gradient(180deg, rgba(95, 211, 220, 0.7), rgba(30, 143, 152, 0.15)); border-radius: 2px; height: 30%; animation: eq 1.8s ease-in-out infinite; }
.hud__bars i:nth-child(3n) { animation-delay: -0.4s; } .hud__bars i:nth-child(3n+1) { animation-delay: -0.9s; } .hud__bars i:nth-child(4n) { animation-delay: -1.3s; }
.hud__bars i:nth-child(5n) { animation-duration: 2.4s; } .hud__bars i:nth-child(7n) { animation-duration: 1.4s; }
@keyframes eq { 0%, 100% { height: 18%; } 50% { height: 95%; } }

/* Bottom sheet */
.sheet { position: fixed; inset: 0; z-index: 80; }
.sheet[hidden] { display: none; }
.sheet__backdrop { position: absolute; inset: 0; background: rgba(4, 12, 13, 0.6); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); opacity: 0; transition: opacity 0.35s var(--ease); }
.sheet.is-open .sheet__backdrop { opacity: 1; }
.sheet__panel {
  position: absolute; left: 0; right: 0; bottom: 0; max-height: 92vh; max-height: 92svh;
  display: flex; flex-direction: column; outline: none;
  background: linear-gradient(180deg, rgba(22, 53, 56, 0.97), rgba(11, 29, 32, 0.98));
  border: 1px solid var(--line-strong); border-bottom: 0; border-radius: 28px 28px 0 0;
  box-shadow: 0 -30px 60px -20px rgba(0, 0, 0, 0.6);
  transform: translateY(102%); transition: transform 0.42s cubic-bezier(0.2, 0.9, 0.2, 1);
}
.sheet.is-open .sheet__panel { transform: translateY(0); }
.sheet__grab { display: grid; place-items: center; height: 26px; cursor: grab; touch-action: none; }
.sheet__handle { width: 44px; height: 5px; border-radius: 3px; background: var(--line-strong); }
.sheet__head { display: flex; align-items: center; justify-content: space-between; padding: 0 16px 8px 22px; touch-action: none; }
.sheet__head h2 { font-size: clamp(1.7rem, 1.4rem + 1.6vw, 2.2rem); }
.sheet__body { overflow-y: auto; overscroll-behavior: contain; padding: 4px 22px calc(24px + var(--safe-bottom)); display: grid; gap: 18px; }
.sheet-open body { overflow: hidden; }
@media (min-width: 760px) {
  .sheet__panel { left: 50%; right: auto; bottom: 50%; width: 600px; max-height: 88vh; border-radius: 28px; border-bottom: 1px solid var(--line-strong);
    transform: translate(-50%, 56%) scale(0.98); opacity: 0; transition: transform 0.42s cubic-bezier(0.2, 0.9, 0.2, 1), opacity 0.3s; }
  .sheet.is-open .sheet__panel { transform: translate(-50%, 50%); opacity: 1; }
  .sheet__grab { display: none; }
  .sheet__head { padding-top: 18px; }
}

/* Calendar */
.cal__nav { display: flex; align-items: center; justify-content: space-between; }
.cal__month { font-size: 1rem; }
.cal__nav .icon-btn:disabled { opacity: 0.3; }
.cal__dow, .cal__grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.cal__dow { margin: 10px 0 6px; font-size: 0.72rem; color: var(--moon-faint); text-align: center; }
.cal__grid { touch-action: pan-y; }
.cal__day {
  height: 46px; border: 0; border-radius: 12px; background: rgba(255, 255, 255, 0.04); color: var(--moon);
  font: 500 0.95rem var(--mono); cursor: pointer; position: relative;
}
.cal__day:hover:not(:disabled) { background: rgba(255, 255, 255, 0.1); }
.cal__day:disabled { color: var(--moon-faint); opacity: 0.4; cursor: default; background: transparent; }
.cal__day.is-today::after { content: ""; position: absolute; left: 50%; bottom: 6px; width: 4px; height: 4px; margin-left: -2px; border-radius: 50%; background: var(--pool); }
.cal__day.is-booked { text-decoration: line-through; }
.cal__day.is-range { background: rgba(242, 163, 27, 0.18); border-radius: 6px; }
.cal__day.is-start, .cal__day.is-end { background: var(--marigold); color: var(--ink-on-marigold); box-shadow: 0 0 18px rgba(242, 163, 27, 0.45); }
.cal__hint { margin-top: 10px; font-size: 0.9rem; color: var(--moon-dim); min-height: 1.5em; }

.sheet__row { display: flex; align-items: center; justify-content: space-between; font-weight: 500; }
.chips { border: 0; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chips legend { font-weight: 500; margin-bottom: 10px; padding: 0; }
.chips input { position: absolute; opacity: 0; pointer-events: none; }
.chips span {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border-radius: 999px; cursor: pointer;
  border: 1px solid var(--line-strong); background: rgba(255, 255, 255, 0.04); font-size: 0.92rem;
}
.chips input:checked + span { background: rgba(242, 163, 27, 0.16); border-color: var(--marigold); color: var(--moon); }
.chips input:focus-visible + span { outline: 3px solid var(--marigold); outline-offset: 2px; }

.breakdown { border: 1px solid var(--line); border-radius: 18px; padding: 14px 16px; background: rgba(0, 0, 0, 0.15); }
.breakdown p { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; color: var(--moon-dim); font-size: 0.92rem; }
.breakdown p[hidden] { display: none; }
.breakdown__total { border-top: 1px solid var(--line); margin-top: 6px; padding-top: 12px !important; color: var(--moon) !important; font-weight: 600; }
.breakdown__total .mono { font-size: 1.6rem; color: var(--marigold); font-weight: 500; }
.breakdown__pp { justify-content: flex-end !important; font-size: 0.8rem !important; color: var(--moon-faint) !important; padding-top: 0 !important; }

.foot__app { display: grid; gap: 8px; align-content: start; }

.hud__cell:nth-last-child(-n + 2) { border-bottom: 0; }

@media (prefers-reduced-motion: reduce) {
  .pulse, .hud__panel::before, .hud__bars i { animation: none; }
  .sheet__panel, .sheet__backdrop { transition: none; }
}

/* Lenis: native smooth-scroll must be off while it drives scrolling, or ScrollTrigger mis-measures */
html.lenis, html.lenis body { height: auto; }
html.lenis { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }
@media (max-width: 959px) {
  .topbar__brand { visibility: hidden; }
  .hero__rating { top: calc(8px + var(--safe-top)); left: var(--gutter); min-height: 48px; }
  .hero { padding-top: calc(84px + var(--safe-top)); }
}
