/* =========================================================
   Amiral Palace Hotel
   Palette taken from the building itself: the lilac-grey
   painted clapboard of the façade, the slate of the mansard
   roof, and the vermilion of the bedspreads in every room
   (used only for the main action and the selected item).
   Type: Bodoni Moda, a Didone of the same era as the
   Second Empire roofline, with Jost for reading and forms.
   ========================================================= */

:root {
  --paper: #F4F2F5;        /* lilac white */
  --paper-2: #ECE9F0;
  --facade: #D8D3E0;       /* façade lilac */
  --facade-deep: #B9B1C6;
  --slate: #2C2935;        /* mansard slate */
  --slate-2: #3A3644;
  --slate-3: #24212C;
  --ink: #2C2935;
  --ink-soft: #625C6E;
  --line: #D6D0DD;
  --vermilion: #C1391F;    /* bedspread */
  --vermilion-deep: #A42E17;
  --lamp: #F8F1E4;         /* lamplight ivory, text on the photo */
  --surface: #FFFFFF;

  --on-dark: #EEE9F0;
  --on-dark-muted: #B4ACBF;
  --line-dark: rgba(238, 233, 240, .16);

  --serif: "Bodoni Moda", "Didot", "Bodoni 72", Georgia, serif;
  --sans: "Jost", "Segoe UI", system-ui, -apple-system, sans-serif;

  --container: 1280px;
  --gutter: clamp(16px, 4vw, 52px);
  --section: clamp(84px, 9vw, 144px);
  --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) + 12px);
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  font-weight: 400;
  line-height: 1.62;
  -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, h1, h2, h3 { margin: 0; }
dl, dd { margin: 0; }
address { font-style: normal; }
[hidden] { display: none !important; }

:focus-visible { outline: 2px solid var(--vermilion); outline-offset: 3px; }
.site-header:not(.is-scrolled) :focus-visible,
.hero :focus-visible,
.section--dark :focus-visible,
.closing :focus-visible,
.site-footer :focus-visible,
.sticky-book :focus-visible,
.lightbox :focus-visible { outline-color: var(--lamp); }
.hero .popover :focus-visible { outline-color: var(--vermilion); }

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--lamp); color: var(--slate); padding: 10px 16px; text-decoration: none; font-weight: 500;
}
.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(--serif);
  font-weight: 400;
  font-size: clamp(2.1rem, 1.5rem + 2.1vw, 3.5rem);
  line-height: 1.06;
  letter-spacing: -.01em;
  text-wrap: balance;
  color: var(--slate);
}
.lead { font-size: 1.1875rem; line-height: 1.6; color: var(--ink); }
p + p, .lead + p { margin-top: 1em; }

/* ---------- Buttons & links ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 26px;
  border: 1px solid transparent; border-radius: var(--radius);
  font-family: var(--sans); font-size: 1rem; font-weight: 500; letter-spacing: .01em; line-height: 1.2;
  text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: background-color .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease);
}
.btn--lg { padding: 18px 32px; font-size: 1.0625rem; }
.btn--sm { padding: 9px 16px; font-size: .9375rem; }
.btn--vermilion { background: var(--vermilion); color: #fff; }
.btn--vermilion:hover { background: var(--vermilion-deep); }
.btn--slate { background: var(--slate); color: #fff; }
.btn--slate:hover { background: var(--slate-2); }
.btn--line { border-color: currentColor; background: transparent; }
.btn--line:hover { background: rgba(248, 241, 228, .12); }
.btn--line-dark { border-color: var(--slate); color: var(--slate); background: transparent; }
.btn--line-dark:hover { background: var(--slate); color: #fff; }

.text-link {
  font-weight: 500; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 5px;
  text-decoration-color: color-mix(in srgb, currentColor 45%, transparent);
}
.text-link:hover { text-decoration-color: currentColor; }
.text-link--light { color: var(--on-dark); }

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

.icon-btn {
  display: inline-grid; place-items: center;
  width: 40px; height: 40px; padding: 0;
  background: transparent; border: 1px solid transparent; border-radius: var(--radius);
  color: inherit; cursor: pointer; text-decoration: none;
}
.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(--paper-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; z-index: 60;
  height: var(--header-h);
  color: var(--lamp);
  transition: background-color .3s var(--ease), color .3s var(--ease), box-shadow .3s var(--ease);
}
.site-header:not(.is-scrolled) .brand,
.site-header:not(.is-scrolled) .nav__list a,
.site-header:not(.is-scrolled) .lang__btn { text-shadow: 0 1px 12px rgba(14, 22, 44, .45); }
.site-header.is-scrolled {
  background: rgba(244, 242, 245, .96);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  color: var(--slate);
  box-shadow: 0 1px 0 var(--line);
}
.site-header__inner {
  height: 100%;
  margin-inline: auto; padding-inline: var(--gutter);
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.brand { display: grid; text-decoration: none; line-height: 1.1; }
.brand__name { font-family: var(--serif); font-size: 1.4375rem; font-weight: 500; letter-spacing: .015em; }
.brand__sub { font-size: .75rem; letter-spacing: .02em; opacity: .82; margin-top: 3px; }

.nav__list { display: flex; gap: clamp(18px, 2vw, 32px); }
.nav__list a {
  font-size: .9375rem; text-decoration: none; padding-block: 6px;
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat;
  transition: background-size .25s var(--ease);
}
.nav__list a:hover { background-size: 100% 1px; }

.site-header__actions { display: flex; align-items: center; gap: 14px; }
.lang { display: flex; }
.lang__btn {
  background: none; border: 0; cursor: pointer; padding: 6px 6px;
  font-size: .875rem; letter-spacing: .04em; opacity: .62;
}
.lang__btn.is-active { opacity: 1; text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 1px; }
.lang__btn:hover { opacity: 1; }

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

.mobile-menu {
  position: fixed; inset: var(--header-h) 0 0; z-index: 59;
  background: var(--paper); color: var(--slate);
  overflow-y: auto; padding-block: 24px 40px;
}
.mobile-menu__list a {
  display: block; padding: 14px 0; border-bottom: 1px solid var(--line);
  font-family: var(--serif); font-size: 1.75rem; text-decoration: none;
}
.mobile-menu__foot { display: grid; gap: 10px; margin-top: 28px; font-size: 1rem; }
.mobile-menu__foot a { text-decoration: none; color: var(--ink-soft); }
body.menu-open .site-header { background: var(--paper); color: var(--slate); box-shadow: 0 1px 0 var(--line); }

/* ---------- Hero ----------
   One place to adjust the hero when the header photo changes:
   --hero-pos          object-position of hero.webp
   --hero-copy-side    flex-end = headline on the right, flex-start = on the left
   --hero-copy-top     how far below the top edge the headline starts
   --hero-copy-width   widest the headline block may get (keep it inside the sky)
   --hero-scrim-x      where the soft darkening behind the headline sits (100% right, 0% left)
   --hero-pos-mobile   object-position of hero-mobile.webp                        */
.hero {
  --hero-pos: 50% 0%;
  --hero-copy-side: flex-end;
  --hero-copy-top: clamp(104px, 14vh, 170px);
  --hero-copy-width: 25vw;
  --hero-scrim-x: 100%;
  --hero-pos-mobile: 50% 0%;

  position: relative; isolation: isolate;
  min-height: max(620px, 100svh);
  display: flex; flex-direction: column;
  background: #233656;
  color: var(--lamp);
}
.hero__media img {
  position: absolute; inset: 0; z-index: -2;
  width: 100%; height: 100%;
  object-fit: cover; object-position: var(--hero-pos);
}
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    linear-gradient(to bottom, rgba(18, 22, 38, .5), rgba(18, 22, 38, 0) 160px),
    radial-gradient(42% 46% at var(--hero-scrim-x) 14%, rgba(16, 28, 54, .38), rgba(16, 28, 54, 0) 72%);
}
.hero__stage {
  flex: 1 0 auto;
  display: flex; justify-content: var(--hero-copy-side); align-items: flex-start;
  padding-top: var(--hero-copy-top);
  padding-bottom: 48px;
  max-width: none; /* the headline follows the sky to the viewport edge, not the content column */
}
.hero__copy { width: min(var(--hero-copy-width), 36rem); }
.hero__title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2.6rem, 4.15vw, 6.6rem);
  line-height: .98;
  letter-spacing: -.012em;
  color: var(--lamp);
  text-shadow: 0 1px 30px rgba(14, 22, 44, .35);
}
.hero__line { display: block; }
.hero__sub {
  margin-top: clamp(14px, 1.4vw, 22px);
  max-width: 40ch;
  font-size: clamp(1rem, .9rem + .25vw, 1.125rem); line-height: 1.5;
  color: rgba(248, 241, 228, .9);
  text-shadow: 0 1px 16px rgba(14, 22, 44, .5);
}

/* The single load moment: the headline settles in like lamps coming on */
@media (prefers-reduced-motion: no-preference) {
  .hero__line, .hero__sub { animation: rise 1.1s var(--ease) both; }
  .hero__line:nth-child(2) { animation-delay: .14s; }
  .hero__sub { animation-delay: .32s; }
  .plinth { animation: plinth .9s .2s var(--ease) both; }
}
@keyframes rise { from { opacity: 0; transform: translateY(14px); letter-spacing: .02em; } to { opacity: 1; transform: none; } }
@keyframes plinth { from { transform: translateY(100%); } to { transform: none; } }

/* ---------- Booking: the plinth ---------- */
.plinth { position: relative; z-index: 5; background: var(--slate); color: var(--on-dark); }
.booking {
  position: relative;
  max-width: none; /* header, headline and plinth share the viewport gutters */
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.15fr) auto;
}
.booking__field {
  display: grid; align-content: center; gap: 1px;
  text-align: left;
  padding: 18px 28px;
  min-height: 100px;
  background: none; border: 0;
  color: var(--on-dark);
  cursor: pointer;
  transition: background-color .2s var(--ease);
}
.booking__field:first-child { padding-left: 0; }
.booking__field + .booking__field { border-left: 1px solid var(--line-dark); }
.booking__field:hover .booking__value,
.booking__field[aria-expanded="true"] .booking__value { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 6px; text-decoration-color: rgba(238, 233, 240, .5); }
.booking__label { font-size: .8125rem; color: var(--on-dark-muted); }
.booking__value {
  font-family: var(--serif); font-size: 1.5rem; line-height: 1.25; color: #fff;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.booking__value.is-empty { color: var(--on-dark-muted); }
.booking__sub { font-size: .8125rem; color: var(--on-dark-muted); min-height: 1.3em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.booking__submit {
  display: flex; align-items: center; gap: 22px;
  padding: 16px 0 16px 28px;
  border-left: 1px solid var(--line-dark);
}
.booking__note { order: -1; font-size: .8125rem; line-height: 1.4; color: var(--on-dark-muted); max-width: 17ch; }

/* Popovers: light sheets that open above the plinth (or below it when there is no room) */
.popover {
  position: absolute; z-index: 40;
  bottom: calc(100% + 12px);
  background: var(--surface);
  color: var(--ink);
  border-radius: var(--radius);
  box-shadow: 0 30px 70px -20px rgba(20, 16, 30, .55), 0 0 0 1px rgba(44, 41, 53, .08);
  animation: pop .22s var(--ease);
}
.popover.is-below { bottom: auto; top: calc(100% + 12px); }
@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(--ink-soft); }
.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(--serif); font-size: 1.25rem; color: var(--slate); margin: 4px 0 12px; text-transform: capitalize; }
.month__grid { display: grid; grid-template-columns: repeat(7, 1fr); }
.month__dow { font-size: .75rem; color: var(--ink-soft); 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(--facade); }
.day:disabled { color: #B6B0BE; cursor: default; }
.day:focus-visible { outline: none; }
.day:focus-visible span { box-shadow: 0 0 0 2px var(--vermilion); }
.day.is-today span { box-shadow: inset 0 0 0 1px var(--facade-deep); }
.day.in-range::before, .day.in-preview::before,
.day.is-start::before, .day.is-end::before {
  content: ""; position: absolute; inset: 4px 0; background: var(--paper-2);
}
.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(--slate); color: #fff; }
.day.is-start:hover span, .day.is-end:hover span { background: var(--slate-2); }
.day--blank { pointer-events: none; }

.guests { right: 0; width: 370px; 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(--slate); }
.counter__hint { font-size: .8125rem; color: var(--ink-soft); }
.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(--ink-soft); }
.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='%232C2935' 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);
}
.age-field select[aria-invalid="true"] { border-color: var(--vermilion); }
.guests__note { font-size: .8125rem; line-height: 1.45; color: var(--ink-soft); padding-top: 14px; }
.guests__error { font-size: .8125rem; font-weight: 500; color: var(--vermilion-deep); padding-top: 10px; }
.guests__foot { display: flex; justify-content: flex-end; padding-top: 18px; }

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

/* ---------- Shared: section head ---------- */
.section-head {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 32px; align-items: end;
  margin-bottom: clamp(44px, 5vw, 72px);
}
.section-head .h2 { grid-column: 1 / 7; }
.section-head__text { grid-column: 8 / 13; color: var(--ink-soft); max-width: 46ch; }

/* ---------- Intro ---------- */
.intro__grid {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 32px;
  grid-template-rows: auto 1fr;
}
.intro__text { grid-column: 1 / 7; }
.intro__text .h2 { max-width: 17ch; margin-bottom: 32px; }
.intro__text p:not(.lead) { color: var(--ink-soft); max-width: 60ch; }
.intro__text .lead { max-width: 52ch; }
.intro__media { grid-column: 8 / 13; grid-row: 1 / 3; }
.intro__media img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.intro__media figcaption, .roof figcaption { margin-top: 12px; font-size: .875rem; color: var(--ink-soft); }
.facts {
  grid-column: 1 / 7; align-self: end;
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 32px;
  margin-top: 56px;
}
.facts div { padding: 16px 0 18px; border-top: 1px solid var(--line); }
.facts dt { font-size: .875rem; color: var(--ink-soft); }
.facts dd { margin-top: 2px; font-size: 1.0625rem; line-height: 1.45; color: var(--slate); }

/* ---------- Rooms: a printed tariff card ---------- */
.rooms { background: var(--surface); }
.rooms__layout {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(36px, 5vw, 80px);
  align-items: start;
}
.tariff__group + .tariff__group { margin-top: 30px; }
.tariff__heading {
  font-family: var(--sans); font-size: .875rem; font-weight: 500; color: var(--ink-soft);
  padding-bottom: 10px; border-bottom: 1px solid var(--slate);
}
.tariff__item {
  position: relative;
  width: 100%;
  display: grid; grid-template-columns: auto minmax(16px, 1fr) auto; align-items: baseline;
  padding: 14px 14px 14px 18px;
  background: none; border: 0; border-bottom: 1px solid var(--line);
  text-align: left; cursor: pointer;
  transition: background-color .2s var(--ease);
}
.tariff__item::before {
  content: ""; position: absolute; left: 0; top: 14px; bottom: 14px; width: 3px;
  background: var(--vermilion); transform: scaleY(0); transform-origin: top;
  transition: transform .25s var(--ease);
}
.tariff__item:hover { background: var(--paper); }
.tariff__item.is-active { background: var(--paper); }
.tariff__item.is-active::before { transform: none; }
.tariff__name { font-family: var(--serif); font-size: 1.3125rem; line-height: 1.25; color: var(--slate); }
.tariff__dots { align-self: end; margin: 0 10px 6px; border-bottom: 1.5px dotted var(--facade-deep); }
.tariff__cap { font-size: .9375rem; font-variant-numeric: tabular-nums; color: var(--ink-soft); white-space: nowrap; }
.tariff__note { grid-column: 1 / -1; font-size: .875rem; color: var(--ink-soft); margin-top: 1px; }

.room-panel { position: sticky; top: calc(var(--header-h) + 24px); }
.room-panel__media { background: var(--paper-2); }
.room-panel__media img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.room-panel__media img.is-swapping { opacity: .35; }
.room-panel__media img { transition: opacity .25s var(--ease); }
.room-panel__body { padding-top: 28px; }
.room-panel__title { font-family: var(--serif); font-weight: 400; font-size: clamp(1.75rem, 1.4rem + 1vw, 2.375rem); line-height: 1.1; color: var(--slate); }
.room-panel__desc { margin-top: 12px; max-width: 58ch; color: var(--ink-soft); }
.room-panel__specs {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 24px;
  margin: 24px 0 28px;
}
.room-panel__specs div { padding-top: 12px; border-top: 1px solid var(--line); }
.room-panel__specs dt { font-size: .8125rem; color: var(--ink-soft); }
.room-panel__specs dd { font-size: 1rem; color: var(--slate); margin-top: 2px; }

.rooms__common {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 32px;
  margin-top: clamp(56px, 6vw, 88px); padding-top: 28px; border-top: 1px solid var(--line);
}
.rooms__common-title { grid-column: 1 / 4; font-family: var(--serif); font-weight: 400; font-size: 1.5rem; color: var(--slate); }
.amenities { grid-column: 4 / 13; columns: 3; column-gap: 32px; color: var(--ink-soft); }
.amenities li { break-inside: avoid; padding: 3px 0; }

/* ---------- No7: dark band, picture bleeding to the right edge ---------- */
.section--dark { background: var(--slate); color: var(--on-dark); }
.section--dark .h2 { color: #fff; }
.section--dark .lead { color: var(--on-dark); }
.section--dark p:not(.lead) { color: var(--on-dark-muted); }
.roof__grid {
  --col: calc((min(100%, var(--container)) - 2 * var(--gutter)) / 12);
  display: grid;
  /* gutter | 12 content columns | gutter: the main photo runs into the right gutter */
  grid-template-columns: minmax(var(--gutter), 1fr) repeat(12, var(--col)) minmax(var(--gutter), 1fr);
  grid-template-rows: auto auto;
  row-gap: 48px;
}
.roof__text { grid-column: 2 / span 5; grid-row: 1; padding-right: 24px; }
.roof__text .h2 { margin-bottom: 28px; }
.roof__text .text-link { display: inline-block; margin-top: 26px; }
.roof__main { grid-column: 9 / -1; grid-row: 1 / 3; }
.roof__main img { width: 100%; height: 100%; min-height: 560px; object-fit: cover; object-position: 50% 75%; }
.roof__side { grid-row: 2; align-self: end; }
.roof__side--a { grid-column: 2 / span 3; padding-right: 12px; }
.roof__side--b { grid-column: 5 / span 3; padding-left: 12px; padding-right: 12px; }
.roof__side img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.roof figcaption { color: var(--on-dark-muted); }

/* ---------- SPAMIRAL: façade lilac band ---------- */
.spa { background: var(--facade); }
.spa__grid {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 32px;
  grid-template-rows: auto 1fr auto;
}
.spa__main { grid-column: 1 / 8; grid-row: 1 / 3; }
.spa__main img { width: 100%; height: 100%; min-height: 460px; object-fit: cover; }
.spa__head { grid-column: 9 / 13; grid-row: 1; }
.spa__head .h2 { margin-bottom: 24px; letter-spacing: .02em; }
.spa__list { grid-column: 9 / 13; grid-row: 2; margin-top: 36px; align-self: end; }
.spa__list div { padding: 14px 0 15px; border-top: 1px solid var(--facade-deep); }
.spa__list dt { font-family: var(--serif); font-size: 1.25rem; color: var(--slate); }
.spa__list dd { font-size: .9375rem; color: #4E4859; margin-top: 2px; }
.spa__strip {
  grid-column: 1 / -1; grid-row: 3;
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px;
  margin-top: 32px;
}
.spa__strip img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }

/* ---------- Packages: price list ---------- */
.packages__grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 32px; align-items: start; }
.packages__head { grid-column: 1 / 5; position: sticky; top: calc(var(--header-h) + 32px); }
.packages__head .h2 { margin-bottom: 22px; max-width: 12ch; }
.packages__head p { color: var(--ink-soft); max-width: 40ch; margin-bottom: 28px; }
.price-list { grid-column: 6 / 13; border-top: 1px solid var(--slate); }
.price-list li {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 28px; row-gap: 4px;
  padding: 22px 0 24px; border-bottom: 1px solid var(--line);
}
.price-list__name { font-family: var(--serif); font-weight: 400; font-size: 1.5rem; line-height: 1.2; color: var(--slate); }
.price-list__price { grid-column: 2; grid-row: 1; align-self: baseline; font-variant-numeric: tabular-nums; color: var(--slate); white-space: nowrap; }
.price-list__desc { grid-column: 1 / -1; color: var(--ink-soft); max-width: 62ch; }

/* ---------- Location ---------- */
.location { background: var(--surface); }
.location__grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 32px; }
.location__map { grid-column: 1 / 8; min-height: 560px; background: var(--paper-2); }
.location__map iframe { display: block; width: 100%; height: 100%; min-height: 560px; border: 0; filter: grayscale(.55) contrast(1.02); }
.location__info { grid-column: 9 / 13; }
.location__address { display: grid; font-size: 1.125rem; line-height: 1.5; color: var(--slate); margin-bottom: 28px; }
.distances__title { font-family: var(--sans); font-size: .875rem; font-weight: 500; color: var(--ink-soft); padding-bottom: 8px; border-bottom: 1px solid var(--slate); }
.distances ul + .distances__title { margin-top: 28px; }
.distances li {
  display: grid; grid-template-columns: auto minmax(12px, 1fr) auto; align-items: baseline;
  padding: 8px 0; font-size: .9375rem;
}
.distances li::after {
  content: ""; grid-column: 2; grid-row: 1; align-self: end; margin: 0 8px 5px;
  border-bottom: 1.5px dotted var(--facade-deep);
}
.distances li span:last-child { grid-column: 3; font-variant-numeric: tabular-nums; color: var(--ink-soft); white-space: nowrap; }
.location__info .btn { margin-top: 30px; }

/* ---------- Gallery: a proof sheet ---------- */
.gallery__title { margin-bottom: clamp(36px, 4vw, 56px); }
.gallery__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 36px 24px; }
.gallery__item {
  display: block; width: 100%; padding: 0; border: 0; background: var(--paper-2); cursor: zoom-in;
  overflow: hidden;
}
.gallery__item img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .6s var(--ease); }
.gallery__item:hover img { transform: scale(1.025); }
.gallery__cap { margin-top: 10px; font-size: .875rem; color: var(--ink-soft); }

/* ---------- Closing ---------- */
.closing { background: var(--slate); color: var(--on-dark); padding-block: clamp(80px, 8vw, 120px); text-align: center; }
.closing__inner { display: grid; justify-items: center; }
.emblem { fill: none; stroke: currentColor; stroke-width: 1.2; stroke-linecap: round; stroke-linejoin: round; }
.closing__emblem { width: 34px; height: 41px; color: var(--facade-deep); margin-bottom: 26px; }
.closing__title { font-family: var(--serif); font-weight: 400; font-size: clamp(2rem, 1.5rem + 2vw, 3.25rem); line-height: 1.08; color: #fff; text-wrap: balance; }
.closing__text { margin-top: 16px; max-width: 46ch; color: var(--on-dark-muted); }
.closing__actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 18px 30px; margin-top: 36px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--slate-3); color: var(--on-dark-muted); font-size: .9375rem; padding-top: 64px; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; text-underline-offset: 4px; }
.site-footer__grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 32px; padding-bottom: 48px; }
.site-footer__name { font-family: var(--serif); font-size: 1.625rem; color: #fff; }
.site-footer__social { display: flex; gap: 18px; margin-top: 16px; }
.site-footer__title { font-family: var(--sans); font-size: .8125rem; font-weight: 500; color: var(--on-dark); margin-bottom: 10px; }
.site-footer__base {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px;
  padding-block: 22px 28px; border-top: 1px solid var(--line-dark); font-size: .8125rem;
}

/* ---------- 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(30, 27, 37, .97);
  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: 80vh; 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, .06); border: 1px solid rgba(255, 255, 255, .22); color: #fff; cursor: pointer;
}
.lightbox__btn:hover { background: rgba(255, 255, 255, .14); }
.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: 1240px) {
  .nav { display: none; }
  .menu-toggle { display: block; }
}

/* Narrow desktops and tablets in landscape: the sky beside the roofline is too small for the sub line */
@media (min-width: 900px) and (max-width: 1199px) {
  .hero__sub { display: none; }
}

@media (max-width: 1023px) {
  .section-head .h2, .section-head__text,
  .intro__text, .intro__media, .facts,
  .spa__main, .spa__head, .spa__list,
  .packages__head, .price-list,
  .location__map, .location__info { grid-column: 1 / -1; }
  .section-head__text { margin-top: 16px; }

  .intro__grid { grid-template-rows: none; }
  .intro__media { grid-row: auto; margin-top: 40px; }
  .intro__media img { aspect-ratio: 3 / 2; }
  .facts { margin-top: 40px; }

  .rooms__layout { grid-template-columns: minmax(0, 1fr); }
  .room-panel { position: static; margin: 4px 0 18px; }
  .rooms__common-title, .amenities { grid-column: 1 / -1; }
  .amenities { columns: 2; margin-top: 12px; }

  .roof__grid { grid-template-rows: none; row-gap: 32px; }
  .roof__text { grid-column: 2 / -2; grid-row: auto; padding-right: 0; }
  .roof__main { grid-column: 1 / -1; grid-row: auto; }
  .roof__main img { min-height: 0; aspect-ratio: 3 / 2; height: auto; }
  .roof__side--a { grid-column: 2 / span 6; grid-row: auto; padding-right: 8px; }
  .roof__side--b { grid-column: 8 / span 6; grid-row: auto; padding-left: 8px; padding-right: 0; }

  .spa__grid { grid-template-rows: none; }
  .spa__head { grid-row: 1; margin-bottom: 32px; }
  .spa__main { grid-row: 2; }
  .spa__main img { min-height: 0; aspect-ratio: 3 / 2; height: auto; }
  .spa__list { grid-row: 3; margin-top: 28px; display: grid; grid-template-columns: 1fr 1fr; column-gap: 32px; }
  .spa__strip { grid-row: 4; gap: 16px; grid-template-columns: 1fr 1fr; }

  .packages__head { position: static; margin-bottom: 36px; }

  .location__info { grid-row: 1; margin-bottom: 40px; }
  .location__map { grid-row: 2; }

  .gallery__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .site-footer__grid { grid-template-columns: 1fr 1fr; }
  .site-footer__brand { grid-column: 1 / -1; }
}

@media (max-width: 899px) {
  :root { --header-h: 64px; }
  .site-header__cta { display: none; }

  /* Headline on a dusk-blue band that continues the photo's sky; photo below; plinth under it */
  .hero {
    min-height: 0;
    background: linear-gradient(to bottom, #263958 0, #3D5677 180px, #577292 300px);
  }
  .hero::before { display: none; }
  .hero__stage { order: 1; flex: none; justify-content: flex-start; padding-top: calc(var(--header-h) + 22px); padding-bottom: 0; position: relative; z-index: 2; }
  .hero__copy { width: auto; max-width: 30rem; }
  .hero__title { font-size: clamp(2.5rem, 10.6vw, 3.6rem); }
  .hero__sub { max-width: 36ch; }
  .hero__media { order: 2; position: relative; margin-top: -40px; }
  .hero__media img {
    position: static; height: auto;
    aspect-ratio: 9 / 11;
    max-height: 62svh; object-fit: cover;
    object-position: var(--hero-pos-mobile);
    -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 64px);
    mask-image: linear-gradient(to bottom, transparent 0, #000 64px);
  }
  .plinth { order: 3; }

  .booking { grid-template-columns: 1fr 1fr; padding-block: 6px 18px; }
  .booking__field { min-height: 82px; padding: 12px 16px; }
  .booking__field:first-child { padding-left: 0; }
  .booking__field--guests { grid-column: 1 / -1; border-left: 0 !important; border-top: 1px solid var(--line-dark); padding-left: 0; }
  .booking__submit { grid-column: 1 / -1; display: grid; gap: 10px; border-left: 0; padding: 6px 0 0; }
  .booking__submit .btn { width: 100%; }
  .booking__note { order: 0; max-width: none; text-align: center; }

  /* Popovers become bottom sheets */
  .popover, .popover.is-below {
    position: fixed; z-index: 80;
    left: 0 !important; right: 0 !important; top: auto; bottom: 0;
    width: 100% !important; 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; }
  .popover :focus-visible { outline-color: var(--vermilion); }

  .sticky-book {
    display: flex; gap: 10px; 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(44, 41, 53, .95);
    -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
    box-shadow: 0 -1px 0 var(--line-dark);
    transform: translateY(110%);
    transition: transform .35s var(--ease);
  }
  .sticky-book .btn { flex: 1; }
  .sticky-book__icon { width: 48px; height: 48px; flex: none; color: var(--on-dark); border-color: rgba(238, 233, 240, .35); }
  .sticky-book__icon:hover { background: rgba(238, 233, 240, .08); }
  .sticky-book.is-visible { transform: none; }
  .site-footer { padding-bottom: 76px; }

  .gallery__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 16px; }
}
@keyframes sheet { from { transform: translateY(100%); } to { transform: none; } }

@media (max-width: 640px) {
  .brand__name { font-size: 1.25rem; }
  .brand__sub { font-size: .6875rem; }
  .site-header__actions { gap: 4px; }
  .lead { font-size: 1.0938rem; }
  .facts { grid-template-columns: 1fr; }
  .tariff__item { padding-right: 8px; padding-left: 14px; }
  .tariff__name { font-size: 1.1875rem; }
  .room-panel__specs { grid-template-columns: 1fr 1fr; }
  .room-panel__specs div:last-child { grid-column: 1 / -1; }
  .room-panel__specs div + div { margin-top: 0; }
  .room-panel__specs { row-gap: 12px; }
  .room-panel .btn { width: 100%; }
  .amenities { columns: 1; }
  .roof__side--a, .roof__side--b { grid-column: 2 / -2; padding: 0; }
  .spa__list { grid-template-columns: 1fr; }
  .spa__strip { grid-template-columns: 1fr 1fr; }
  .price-list li { grid-template-columns: 1fr; }
  .price-list__price { grid-column: 1; grid-row: auto; margin-top: 6px; font-weight: 500; }
  .location__map, .location__map iframe { min-height: 360px; }
  .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; }
}
