/* =========================================================
   The Hera Platinum Hotel
   Palette: cool platinum surfaces, the navy of the hotel's
   signage, and the champagne gold of the Hera emblem.
   ========================================================= */

:root {
  --platin: #EDEFF1;
  --platin-2: #E1E5EA;
  --surface: #FFFFFF;
  --gece: #14223A;
  --gece-2: #22355A;
  --gece-3: #0E1829;
  --ink: #1C2533;
  --muted: #5C6676;
  --line: #CDD2D9;
  --sampanya: #C2A673;
  --sampanya-ink: #7A6236;

  --on-dark: #E9ECF1;
  --on-dark-muted: #A7B1C1;
  --line-dark: rgba(233, 236, 241, .16);

  --f-display: "Marcellus", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --f-body: "Instrument Sans", "Segoe UI", system-ui, -apple-system, sans-serif;

  --container: 1280px;
  --gutter: clamp(16px, 4vw, 48px);
  --section: clamp(84px, 10vw, 150px);
  --header-h: 76px;
  --radius: 2px;
  --ease: cubic-bezier(.2, .7, .2, 1);

  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 8px);
}

body {
  margin: 0;
  background: var(--platin);
  color: var(--ink);
  font-family: var(--f-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { display: block; max-width: 100%; height: auto; }
figure { margin: 0; }
a { color: inherit; }
button { font: inherit; color: inherit; }
ul { margin: 0; padding: 0; list-style: none; }
p { margin: 0; }
address { font-style: normal; }
[hidden] { display: none !important; }

:focus-visible {
  outline: 2px solid var(--sampanya-ink);
  outline-offset: 3px;
}

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--gece); color: #fff; padding: 10px 16px; text-decoration: none;
}
.skip-link:focus { top: 12px; }

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: var(--section); }

/* ---------- Type ---------- */
.h2 {
  font-family: var(--f-display);
  font-weight: 400;
  font-size: clamp(2.1rem, 1.35rem + 2.4vw, 3.35rem);
  line-height: 1.08;
  letter-spacing: -.005em;
  color: var(--gece);
  margin: 0;
  text-wrap: balance;
}

.lead {
  font-size: clamp(1.125rem, 1.05rem + .3vw, 1.3rem);
  line-height: 1.55;
  color: var(--ink);
}

.note { font-size: .875rem; color: var(--muted); }

/* ---------- Buttons & links ---------- */
.btn {
  --btn-bg: var(--gece);
  --btn-fg: #fff;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px;
  padding: 12px 26px;
  border: 1px solid var(--btn-bg);
  border-radius: var(--radius);
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-family: var(--f-body);
  font-size: .9375rem;
  font-weight: 500;
  letter-spacing: .01em;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .2s var(--ease), border-color .2s var(--ease), color .2s var(--ease);
  white-space: nowrap;
}
.btn--primary:hover { --btn-bg: var(--gece-2); }
.btn--sm { min-height: 40px; padding: 8px 18px; font-size: .875rem; }
.btn--lg { min-height: 56px; padding: 14px 32px; font-size: 1rem; }
.btn--ghost { --btn-bg: transparent; --btn-fg: var(--gece); border-color: var(--gece); }
.btn--ghost:hover { --btn-bg: var(--gece); --btn-fg: #fff; }
.btn--light { --btn-bg: var(--platin); --btn-fg: var(--gece); }
.btn--light:hover { --btn-bg: #fff; }

.text-link {
  color: var(--gece);
  text-decoration: underline;
  text-decoration-color: var(--sampanya);
  text-decoration-thickness: 1px;
  text-underline-offset: 5px;
  font-weight: 500;
}
.text-link:hover { text-decoration-color: currentColor; }
.text-link--light { color: var(--on-dark); }

.link-btn {
  background: none; border: 0; padding: 8px 4px; cursor: pointer;
  color: var(--muted); font-size: .9375rem;
  text-decoration: underline; text-underline-offset: 4px;
}
.link-btn:hover { color: var(--gece); }

.icon-btn {
  display: inline-grid; place-items: center;
  width: 40px; height: 40px;
  background: transparent; border: 1px solid transparent; border-radius: var(--radius);
  color: var(--gece); cursor: pointer;
  transition: background-color .2s var(--ease), border-color .2s var(--ease), opacity .2s;
}
.icon-btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.icon-btn:hover { background: var(--platin-2); }
.icon-btn:disabled { opacity: .3; cursor: default; background: transparent; }
.icon-btn--round { border-radius: 50%; border-color: var(--line); }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 60;
  height: var(--header-h);
  transition: background-color .3s var(--ease), box-shadow .3s var(--ease);
}
.site-header.is-scrolled {
  background: rgba(237, 239, 241, .88);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  backdrop-filter: saturate(140%) blur(14px);
  box-shadow: 0 1px 0 var(--line);
}
.site-header__inner {
  height: 100%;
  max-width: none;
  padding-inline: clamp(16px, 3.4vw, 56px);
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}

.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--gece); }
.brand__mark { width: 40px; height: 40px; }
.brand__name { font-family: var(--f-display); font-size: 1.2rem; letter-spacing: .02em; white-space: nowrap; }

.nav__list { display: flex; gap: clamp(18px, 2.2vw, 36px); }
.nav__list a {
  text-decoration: none; color: var(--gece);
  font-size: .9375rem; font-weight: 500;
  padding-block: 8px;
  background: linear-gradient(var(--sampanya), var(--sampanya)) left bottom / 0 1px no-repeat;
  transition: background-size .3s var(--ease);
}
.nav__list a:hover { background-size: 100% 1px; }

.site-header__actions { display: flex; align-items: center; gap: 14px; }

.lang { display: flex; align-items: center; }
.lang__btn {
  background: none; border: 0; cursor: pointer;
  padding: 6px 7px; font-size: .8125rem; font-weight: 600; letter-spacing: .04em;
  color: var(--muted);
}
.lang__btn + .lang__btn { border-left: 1px solid var(--line); }
.lang__btn.is-active { color: var(--gece); }

.menu-toggle {
  display: none;
  width: 44px; height: 44px; padding: 0;
  background: none; border: 0; cursor: pointer;
  position: relative;
}
.menu-toggle span {
  position: absolute; left: 11px; right: 11px; height: 1.5px; background: var(--gece);
  transition: transform .3s var(--ease), top .3s var(--ease);
}
.menu-toggle span:first-child { top: 17px; }
.menu-toggle span:last-child { top: 25px; }
.menu-toggle[aria-expanded="true"] span:first-child { top: 21px; transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:last-child { top: 21px; transform: rotate(-45deg); }

.mobile-menu {
  position: fixed; inset: var(--header-h) 0 0 0; z-index: 55;
  background: var(--platin);
  padding-block: 24px 40px;
  overflow-y: auto;
}
.mobile-menu__list li { border-bottom: 1px solid var(--line); }
.mobile-menu__list a {
  display: block; padding: 18px 0;
  font-family: var(--f-display); font-size: 1.75rem; color: var(--gece); text-decoration: none;
}
.mobile-menu__foot { display: grid; gap: 8px; margin-top: 32px; color: var(--muted); }
.mobile-menu__foot a { text-decoration: none; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background: #87A7D6;
}
.hero__media { display: block; position: absolute; inset: 0; overflow: hidden; }
.hero__media img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: right top;
  animation: hero-settle 1.8s var(--ease) both;
}
.hero__inner { position: relative; }
.hero__copy { animation: hero-copy .9s .25s var(--ease) both; }

.hero__place {
  display: flex; align-items: center; gap: 12px;
  font-size: .9375rem; font-weight: 500; color: var(--gece);
}
.stars { color: var(--sampanya-ink); letter-spacing: .14em; font-size: .8rem; }

.hero__title {
  font-family: var(--f-display);
  font-weight: 400;
  color: var(--gece);
  font-size: clamp(2.75rem, 1rem + 4.4vw, 5.75rem);
  line-height: 1.02;
  letter-spacing: -.012em;
  margin: 18px 0 22px;
  text-wrap: balance;
}
.hero__lead {
  max-width: 34ch;
  color: #22304A;
  font-size: clamp(1.0625rem, .95rem + .3vw, 1.2rem);
  line-height: 1.55;
}

@keyframes hero-settle { from { transform: scale(1.045); } to { transform: none; } }
@keyframes hero-copy { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* Desktop: the image keeps its own proportions and the copy sits in the sky */
@media (min-width: 1024px) {
  .hero {
    height: calc(100vw / 2.3285);
    max-height: calc(100svh - 40px);
    min-height: 470px;
    margin-bottom: 64px;
  }
  .hero__inner {
    height: 100%;
    display: flex; align-items: center;
    padding-top: calc(var(--header-h) - 8px);
    padding-bottom: 72px;
  }
  /* The building starts at ~41% of the photo's width; keep the words in the sky */
  .hero__copy {
    --content-left: max(var(--gutter), calc((100vw - var(--container)) / 2 + var(--gutter)));
    max-width: calc(41vw - var(--content-left) - 24px);
  }
  .hero__title { font-size: clamp(2.6rem, 3.9vw, 4.75rem); }
  .hero__lead { max-width: 36ch; }
  .booking-wrap {
    position: absolute; left: 0; right: 0; bottom: 0;
    transform: translateY(50%);
    z-index: 20;
  }
}

/* ---------- Booking bar ---------- */
.booking {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr 1.1fr auto;
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: 0 1px 0 rgba(20, 34, 58, .06), 0 24px 60px -24px rgba(20, 34, 58, .35);
}
.booking__field {
  display: grid; align-content: center; gap: 2px;
  text-align: left;
  padding: 18px 28px;
  background: none; border: 0; border-right: 1px solid var(--line);
  cursor: pointer;
  min-height: 104px;
  transition: background-color .2s var(--ease);
}
.booking__field:hover, .booking__field[aria-expanded="true"] { background: #F6F7F8; }
.booking__label { font-size: .8125rem; font-weight: 500; color: var(--muted); }
.booking__value {
  font-family: var(--f-display); font-size: 1.5rem; line-height: 1.2; color: var(--gece);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.booking__value.is-empty { color: #8A93A1; }
.booking__sub { font-size: .8125rem; color: var(--muted); min-height: 1.3em; }
.booking__submit {
  display: grid; align-content: center; justify-items: stretch; gap: 8px;
  padding: 16px 20px;
}
.booking__note { font-size: .75rem; color: var(--muted); text-align: center; max-width: 24ch; justify-self: center; line-height: 1.4; }

/* Popovers */
.popover {
  position: absolute; z-index: 40;
  top: calc(100% + 10px);
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: 0 30px 70px -20px rgba(14, 24, 41, .38), 0 0 0 1px rgba(20, 34, 58, .06);
  animation: pop .22s var(--ease);
}
@keyframes pop { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

.datepicker { left: 0; width: min(720px, 100%); padding: 22px 24px 18px; }
.datepicker__head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 8px; }
.datepicker__hint { font-size: .9375rem; color: var(--muted); }
.datepicker__nav { display: flex; gap: 4px; }
.datepicker__months { display: grid; grid-template-columns: 1fr 1fr; gap: 36px; }
.datepicker__foot {
  display: flex; align-items: center; justify-content: space-between;
  border-top: 1px solid var(--line); margin-top: 14px; padding-top: 14px;
}

.month__caption { font-family: var(--f-display); font-size: 1.2rem; color: var(--gece); margin: 4px 0 12px; text-transform: capitalize; }
.month__grid { display: grid; grid-template-columns: repeat(7, 1fr); }
.month__dow { font-size: .75rem; color: var(--muted); text-align: center; padding-bottom: 8px; }
.day {
  position: relative;
  aspect-ratio: 1 / 1; min-height: 40px;
  display: grid; place-items: center;
  background: none; border: 0; padding: 0; cursor: pointer;
  font-size: .9375rem; font-variant-numeric: tabular-nums; color: var(--ink);
}
.day span {
  position: relative; z-index: 1;
  display: grid; place-items: center;
  width: 40px; height: 40px; border-radius: 50%;
  transition: background-color .15s, color .15s;
}
.day:hover:not(:disabled) span { background: var(--platin-2); }
.day:disabled { color: #B3BAC4; cursor: default; }
.day:focus-visible { outline: none; }
.day:focus-visible span { box-shadow: 0 0 0 2px var(--sampanya-ink); }
.day.is-today span { box-shadow: inset 0 0 0 1px var(--line); }
.day.in-range::before, .day.in-preview::before {
  content: ""; position: absolute; inset: 4px 0; background: var(--platin);
}
.day.is-start::before, .day.is-end::before {
  content: ""; position: absolute; inset: 4px 0; background: var(--platin);
}
.day.is-start::before { left: 50%; }
.day.is-end::before { right: 50%; }
.day.is-start.is-end::before { display: none; }
.day.is-start:not(.has-range)::before { display: none; }
.day.is-start span, .day.is-end span { background: var(--gece); color: #fff; }
.day.is-start:hover span, .day.is-end:hover span { background: var(--gece-2); }
.day--blank { pointer-events: none; }

.guests { left: 0; width: 360px; padding: 8px 24px 20px; }
.counter {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 16px 0; border-bottom: 1px solid var(--line);
}
.counter__title { font-weight: 500; color: var(--gece); }
.counter__hint { font-size: .8125rem; color: var(--muted); }
.counter__ctrl { display: flex; align-items: center; gap: 14px; }
.counter__ctrl output { min-width: 1.5ch; text-align: center; font-variant-numeric: tabular-nums; font-size: 1.0625rem; }
.guests__ages { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.guests__ages:not(:empty) { padding-top: 16px; }
.age-field { display: grid; gap: 4px; font-size: .8125rem; color: var(--muted); }
.age-field select {
  appearance: none; -webkit-appearance: none;
  width: 100%; padding: 10px 34px 10px 12px;
  border: 1px solid var(--line); border-radius: var(--radius);
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2314223A' stroke-width='1.5'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") right 10px center / 16px no-repeat;
  font: inherit; font-size: .9375rem; color: var(--ink);
}
.guests__foot { display: flex; justify-content: flex-end; padding-top: 18px; }

.scrim {
  position: fixed; inset: 0; z-index: 70;
  background: rgba(14, 24, 41, .45);
  animation: fade .2s ease;
}
@keyframes fade { from { opacity: 0; } }

/* ---------- Intro ---------- */
.intro__grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  column-gap: clamp(16px, 2.4vw, 32px);
  align-items: center;
}
.intro__text { grid-column: 1 / span 5; }
.intro__text .h2 { margin-bottom: 28px; }
.intro__text p + p { margin-top: 18px; color: var(--muted); }
.intro__media { grid-column: 7 / -1; }
.intro__media img { width: 100%; aspect-ratio: 5 / 4; object-fit: cover; }
figcaption { margin-top: 12px; font-size: .8125rem; color: var(--muted); }

.facts {
  display: grid; grid-template-columns: 1fr 1fr; gap: 0 28px;
  margin: 40px 0 0;
}
.facts div { padding: 16px 0; border-top: 1px solid var(--line); }
.facts dt { font-size: .8125rem; color: var(--muted); }
.facts dd { margin: 2px 0 0; color: var(--gece); font-weight: 500; }

/* ---------- Section head ---------- */
.section-head {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  column-gap: clamp(16px, 2.4vw, 32px);
  align-items: end;
  margin-bottom: clamp(40px, 5vw, 72px);
}
.section-head .h2 { grid-column: 1 / span 5; }
.section-head__text { grid-column: 7 / -1; color: var(--muted); max-width: 52ch; }

/* ---------- Rooms ---------- */
.rooms { background: var(--surface); }
.rooms__layout {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  column-gap: clamp(16px, 2.4vw, 32px);
}
.rooms__tabs { grid-column: 1 / span 4; align-self: start; border-bottom: 1px solid var(--line); }
.room-tab {
  position: relative;
  display: grid; gap: 2px; width: 100%;
  padding: 20px 0 20px 22px;
  text-align: left; cursor: pointer;
  background: none; border: 0; border-top: 1px solid var(--line);
}
.room-tab::before {
  content: ""; position: absolute; left: 0; top: 20px; bottom: 20px; width: 2px;
  background: var(--sampanya);
  transform: scaleY(0); transform-origin: top;
  transition: transform .35s var(--ease);
}
.room-tab__name {
  font-family: var(--f-display); font-size: clamp(1.35rem, 1.1rem + .6vw, 1.7rem); line-height: 1.2;
  color: #8790A0;
  transition: color .25s var(--ease);
}
.room-tab__meta { font-size: .875rem; color: var(--muted); }
.room-tab:hover .room-tab__name { color: var(--gece); }
.room-tab.is-active .room-tab__name { color: var(--gece); }
.room-tab.is-active::before { transform: scaleY(1); }

.rooms__stage { grid-column: 6 / -1; display: grid; }
.room {
  grid-area: 1 / 1;
  opacity: 0; visibility: hidden;
  transition: opacity .45s var(--ease), visibility 0s linear .45s;
}
.room.is-active { opacity: 1; visibility: visible; transition: opacity .45s var(--ease), visibility 0s; }
.room__media img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.room__body {
  display: grid; grid-template-columns: 1.25fr 1fr; gap: 8px 40px;
  padding-top: 28px;
}
.room__title { font-family: var(--f-display); font-weight: 400; font-size: 1.75rem; line-height: 1.15; color: var(--gece); margin: 0; grid-column: 1 / -1; display: none; }
.room__desc { color: var(--ink); }
.room__specs { margin: 0; display: grid; align-content: start; }
.room__specs div { display: flex; justify-content: space-between; gap: 16px; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: .9375rem; }
.room__specs div:first-child { padding-top: 0; }
.room__specs dt { color: var(--muted); }
.room__specs dd { margin: 0; color: var(--gece); font-weight: 500; text-align: right; }

.rooms__common {
  grid-area: 2 / 1;
  display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px;
  margin-top: 36px; padding-top: 24px; border-top: 1px solid var(--line);
}
.rooms__common-title { font-weight: 600; color: var(--gece); font-size: .9375rem; }
.amenities { display: flex; flex-wrap: wrap; gap: 6px 18px; flex: 1 1 360px; font-size: .9375rem; color: var(--muted); }
.amenities li { position: relative; }
.amenities li + li::before {
  content: ""; position: absolute; left: -10px; top: 50%; width: 3px; height: 3px; border-radius: 50%;
  background: var(--sampanya); transform: translateY(-50%);
}

/* ---------- Spa (dark) ---------- */
.section--dark { background: var(--gece); color: var(--on-dark); }
.section--dark .h2 { color: #fff; }
.section--dark .lead { color: var(--on-dark); }
.section--dark .note { color: var(--on-dark-muted); }

.spa__grid {
  display: grid; grid-template-columns: repeat(12, 1fr);
  column-gap: clamp(16px, 2.4vw, 32px);
  align-items: start;
}
.spa__grid { align-items: center; }
.spa__main { grid-column: 1 / span 7; }
.spa__main img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.spa__text { grid-column: 9 / -1; }
.spa__text .h2 { margin-bottom: 24px; }
.spa__text p + p { margin-top: 16px; color: var(--on-dark-muted); }
.spa__text .plain-list { margin: 28px 0 20px; }

.plain-list li {
  padding: 10px 0; border-bottom: 1px solid var(--line);
  font-weight: 500; color: var(--gece);
}
.plain-list li:first-child { border-top: 1px solid var(--line); }
.section--dark .plain-list li { border-color: var(--line-dark); color: #fff; }

/* ---------- Feature rows ---------- */
.feature__grid {
  display: grid; grid-template-columns: repeat(12, 1fr);
  column-gap: clamp(16px, 2.4vw, 32px);
  align-items: center;
}
.feature__text { grid-column: 1 / span 5; }
.feature__text .h2 { margin-bottom: 24px; }
.feature__text p + p { margin-top: 16px; color: var(--muted); }
.feature__text .plain-list { margin-top: 28px; }
.feature__media { grid-column: 7 / -1; }
.feature__media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }

#restoran { padding-bottom: calc(var(--section) / 2); }
.feature--reverse { padding-top: calc(var(--section) / 2); }
.feature--reverse .feature__text { grid-column: 9 / -1; grid-row: 1; }
.feature--reverse .feature__media { grid-column: 1 / span 7; grid-row: 1; }
.feature__media--pair { display: grid; grid-template-columns: 1.6fr 1fr; gap: clamp(12px, 1.6vw, 24px); align-items: end; }
.feature__media--pair img { aspect-ratio: 4 / 5; }
.feature__media--pair figure:last-child img { aspect-ratio: 3 / 4; }
.feature__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; margin-top: 32px; }

/* ---------- Location ---------- */
.location { background: var(--surface); }
.location__grid {
  display: grid; grid-template-columns: repeat(12, 1fr);
  column-gap: clamp(16px, 2.4vw, 32px);
  align-items: stretch;
}
.location__info { grid-column: 1 / span 5; display: flex; flex-direction: column; align-items: flex-start; }
.location__address { display: grid; font-family: var(--f-display); font-size: 1.45rem; line-height: 1.35; color: var(--gece); margin-bottom: 32px; }
.distances { width: 100%; margin-bottom: 32px; }
.distances__title { font-size: .8125rem; font-weight: 500; color: var(--muted); margin: 0 0 6px; }
.distances ul + .distances__title { margin-top: 24px; }
.distances li {
  display: flex; justify-content: space-between; gap: 16px;
  padding: 9px 0; border-bottom: 1px solid var(--line); font-size: .9375rem;
}
.distances li span:last-child { color: var(--gece); font-weight: 500; font-variant-numeric: tabular-nums; white-space: nowrap; }
.location__map { grid-column: 7 / -1; min-height: 420px; background: var(--platin-2); }
.location__map iframe { width: 100%; height: 100%; min-height: 420px; border: 0; filter: grayscale(.85) contrast(1.04); }

/* ---------- Gallery ---------- */
.gallery { overflow: hidden; }
.gallery__head { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 40px; }
.gallery__nav { display: flex; gap: 8px; }
.gallery__track {
  --pad: max(var(--gutter), calc((100% - var(--container)) / 2 + var(--gutter)));
  display: flex; gap: clamp(12px, 1.6vw, 24px);
  overflow-x: auto; overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: var(--pad);
  padding-inline: var(--pad);
  scrollbar-width: none;
}
.gallery__track::-webkit-scrollbar { display: none; }
.gallery__track li { flex: 0 0 auto; scroll-snap-align: start; height: clamp(260px, 34vw, 480px); aspect-ratio: 4 / 5; }
.gallery__track li.g-wide { aspect-ratio: 3 / 2; }
.gallery__item { display: block; width: 100%; height: 100%; padding: 0; border: 0; background: var(--platin-2); cursor: zoom-in; overflow: hidden; }
.gallery__item img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.gallery__item:hover img { transform: scale(1.03); }

/* ---------- Closing ---------- */
.closing { background: var(--gece); color: var(--on-dark); padding-block: clamp(72px, 9vw, 128px); }
.closing__inner { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 32px 48px; }
.closing__title {
  font-family: var(--f-display); font-weight: 400; color: #fff;
  font-size: clamp(2.1rem, 1.3rem + 2.6vw, 3.6rem); line-height: 1.08; margin: 0;
  max-width: 17ch; text-wrap: balance;
}
.closing__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--gece-3); color: var(--on-dark-muted); font-size: .9375rem; padding-top: 64px; }
.site-footer a { color: var(--on-dark); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; text-underline-offset: 4px; }
.site-footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; padding-bottom: 48px; }
.site-footer__brand img { width: 56px; height: 56px; margin-bottom: 16px; }
.site-footer__name { font-family: var(--f-display); font-size: 1.35rem; color: #fff; }
.site-footer__group { margin-top: 4px; }
.site-footer__title { font-size: .8125rem; font-weight: 500; color: var(--sampanya); margin: 0 0 10px; }
.site-footer__base {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px;
  padding-block: 22px calc(22px + env(safe-area-inset-bottom));
  font-size: .8125rem;
  background: linear-gradient(var(--line-dark), var(--line-dark)) var(--gutter) 0 / calc(100% - 2 * var(--gutter)) 1px no-repeat;
}

/* ---------- Sticky mobile CTA ---------- */
.sticky-book { display: none; }

/* ---------- Lightbox ---------- */
.lightbox {
  width: 100vw; height: 100vh; max-width: none; max-height: none;
  margin: 0; padding: 0; border: 0;
  background: rgba(10, 16, 28, .95);
  color: #fff;
}
.lightbox[open] { display: grid; place-items: center; animation: fade .25s ease; }
.lightbox::backdrop { background: transparent; }
.lightbox img { max-width: min(92vw, 1600px); max-height: 82vh; object-fit: contain; }
.lightbox__cap { position: absolute; left: 0; right: 0; bottom: 24px; text-align: center; font-size: .9375rem; color: var(--on-dark-muted); padding-inline: 72px; }
.lightbox__btn {
  position: absolute; display: grid; place-items: center;
  width: 52px; height: 52px; border-radius: 50%;
  background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .18); color: #fff; cursor: pointer;
}
.lightbox__btn:hover { background: rgba(255, 255, 255, .16); }
.lightbox__btn svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.lightbox__close { top: 20px; right: 20px; }
.lightbox__prev { left: 20px; top: 50%; transform: translateY(-50%); }
.lightbox__next { right: 20px; top: 50%; transform: translateY(-50%); }

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 1180px) {
  .nav { display: none; }
  .menu-toggle { display: block; }
}

@media (max-width: 1023px) {
  /* Hero stacks: photo, then words, then the search */
  .site-header {
    background: rgba(237, 239, 241, .94);
    -webkit-backdrop-filter: saturate(140%) blur(14px);
    backdrop-filter: saturate(140%) blur(14px);
    box-shadow: 0 1px 0 var(--line);
  }
  .hero { background: var(--platin); padding-top: var(--header-h); }
  .hero__media { position: relative; height: clamp(320px, 62vw, 560px); }
  .hero__media img { object-position: 62% 30%; }
  .hero__inner { padding-inline: var(--gutter); padding-top: 36px; }
  .hero__title { font-size: clamp(2.6rem, 1.6rem + 4.4vw, 4rem); margin: 14px 0 16px; }
  .hero__lead { max-width: 46ch; }
  .booking-wrap { padding-top: 28px; }

  .booking { grid-template-columns: 1fr 1fr; }
  .booking__field { min-height: 88px; padding: 16px 20px; border-bottom: 1px solid var(--line); }
  .booking__field:nth-child(2) { border-right: 0; }
  #guestsField { grid-column: 1 / -1; border-right: 0; }
  .booking__submit { grid-column: 1 / -1; padding: 16px 20px 18px; }

  .intro { padding-top: var(--section); }
  .intro__text, .intro__media,
  .feature__text, .feature__media,
  .feature--reverse .feature__text, .feature--reverse .feature__media,
  .spa__main, .spa__text,
  .location__info, .location__map,
  .section-head .h2, .section-head__text { grid-column: 1 / -1; }
  .feature--reverse .feature__text { grid-row: 1; }
  .feature--reverse .feature__media { grid-row: 2; }
  .intro__media, .feature__media, .spa__text, .location__map { margin-top: 40px; }
  .section-head__text { margin-top: 16px; }

  .site-footer__grid { grid-template-columns: 1fr 1fr; }
  .site-footer__brand { grid-column: 1 / -1; }
}

@media (max-width: 899px) {
  .rooms__tabs { display: none; }
  .rooms__stage { grid-column: 1 / -1; gap: 56px; }
  .room { grid-area: auto; opacity: 1; visibility: visible; }
  .room__title { display: block; }
  .room__body { grid-template-columns: 1fr; gap: 14px; padding-top: 20px; }
  .rooms__common { grid-area: auto; margin-top: 0; }

  /* Popovers become bottom sheets */
  .popover {
    position: fixed; z-index: 80;
    left: 0 !important; right: 0 !important; top: auto; bottom: 0;
    width: 100%; max-height: 88vh; overflow-y: auto;
    border-radius: 14px 14px 0 0;
    padding-bottom: calc(18px + env(safe-area-inset-bottom));
    animation: sheet .3s var(--ease);
  }
  .datepicker { display: flex; flex-direction: column; overflow: hidden; padding-inline: 16px; }
  .datepicker__months { grid-template-columns: 1fr; gap: 20px; overflow-y: auto; min-height: 0; flex: 1 1 auto; overscroll-behavior: contain; }
  .datepicker__foot { flex: none; }
  .day span { width: 44px; height: 44px; }

  .sticky-book {
    display: flex; gap: 12px; align-items: center;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
    padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
    background: rgba(237, 239, 241, .92);
    -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
    box-shadow: 0 -1px 0 var(--line);
    transform: translateY(110%);
    transition: transform .35s var(--ease);
  }
  .sticky-book .btn { flex: 1; }
  .sticky-book__call { width: 48px; height: 48px; flex: none; background: #fff; }
  .sticky-book.is-visible { transform: none; }
  .site-footer { padding-bottom: 76px; }
}
@keyframes sheet { from { transform: translateY(100%); } to { transform: none; } }

@media (max-width: 640px) {
  :root { --header-h: 64px; }
  .brand__mark { width: 34px; height: 34px; }
  .brand__name { font-size: 1.05rem; }
  .brand__suffix { display: none; }
  .site-header__cta { display: none; }
  .booking__value { font-size: 1.3rem; }
  .booking__field { padding: 14px 16px; }
  .facts { grid-template-columns: 1fr; }
  .feature__media--pair { grid-template-columns: 1fr; }
  .feature__media--pair figure:last-child { display: none; }
  .location__map, .location__map iframe { min-height: 340px; }
  .gallery__track li { height: 340px; }
  .gallery__track li.g-wide { aspect-ratio: 4 / 5; }
  .site-footer__grid { grid-template-columns: 1fr; }
  .closing__actions .btn { width: 100%; }
  .lightbox__prev, .lightbox__next { top: auto; bottom: 64px; transform: none; }
  .lightbox__cap { bottom: 132px; padding-inline: 24px; }
}

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