/* =========================================================
   Mevlana Hotel, Sultanahmet
   Palette from the logo's whirling dervish (dusty blue skirt,
   dark slate wordmark, felt hat) and the white clapboard facade.
   Type: Alegreya (calligraphic serif) + Alegreya Sans.
   ========================================================= */

:root {
  --ink: #20363F;          /* sikke ink: text, buttons */
  --ink-2: #2E4B56;
  --sema: #6A93A3;         /* the dervish's skirt in the logo: drawing, marks */
  --sema-band: #86A8B5;    /* lighter for bands; only dark text on it */
  --haze: #E2EBEE;         /* sea haze */
  --haze-2: #EEF3F4;
  --page: #F6F8F8;
  --white: #FFFFFF;
  --felt: #9C7B5B;         /* felt hat: tiny markers only */
  --muted: #55686D;
  --line: #D6E0E3;
  --line-2: #BDCCD1;

  --serif: "Alegreya", Georgia, "Times New Roman", serif;
  --sans: "Alegreya Sans", "Segoe UI", system-ui, sans-serif;

  --header-h: 76px;
  --gutter: clamp(16px, 4vw, 48px);
  --max: 1320px;
  --section: clamp(72px, 9vw, 132px);
  --radius: 3px;
  --ease: cubic-bezier(.22, .7, .2, 1);

  /* ---- Hero tuning: change these when the custom header photo arrives ----
     --hero-pos     object-position of the photo
     --hero-copy-*  where the headline sits on the photo (must be empty sky)
     The placeholder photo is the breakfast-salon window; the headline sits in
     the sky of its middle pane. For a facade photo with sky on the left, use
     e.g. --hero-copy-x: max(var(--gutter), (100% - var(--max)) / 2); --hero-copy-w: 36%. */
  --hero-pos: 50% 46%;
  --hero-copy-x: 31.5%;
  --hero-copy-y: clamp(56px, 9.5vh, 124px);
  --hero-copy-w: 28%;
  --hero-pos-m: 50% 0%;
  --hero-copy-x-m: 13.5%;
  --hero-copy-y-m: 13%;
  --hero-copy-w-m: 74%;
}

*, *::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(--page);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.125rem;
  line-height: 1.58;
  font-kerning: normal;
  -webkit-font-smoothing: antialiased;
}
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(--ink); outline-offset: 3px; }
.lightbox :focus-visible { outline-color: #fff; }

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

.container { width: min(100% - 2 * var(--gutter), var(--max)); margin-inline: auto; }
.section { padding-block: var(--section); }

/* ---------- Type ---------- */
.h2 {
  font-family: var(--serif); font-weight: 500;
  font-size: clamp(2.1rem, 1.4rem + 2.1vw, 3.3rem);
  line-height: 1.06; letter-spacing: -.005em;
  text-wrap: balance;
}
.lead { font-size: clamp(1.18rem, 1.08rem + .35vw, 1.34rem); line-height: 1.5; }

/* ---------- Buttons & links ---------- */
.btn {
  --btn-bg: var(--ink); --btn-fg: #fff; --btn-bd: var(--btn-bg);
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 11px 24px;
  background: var(--btn-bg); color: var(--btn-fg);
  border: 1px solid var(--btn-bd); border-radius: var(--radius);
  font-family: var(--sans); font-weight: 500; font-size: 1.0625rem; line-height: 1.2;
  text-decoration: none; cursor: pointer;
  transition: background-color .2s, color .2s, border-color .2s;
}
.btn--primary:hover { --btn-bg: var(--ink-2); }
.btn--sm { min-height: 40px; padding: 8px 18px; font-size: 1rem; }
.btn--lg { min-height: 54px; padding: 13px 28px; font-size: 1.125rem; }
.btn--outline { --btn-bg: transparent; --btn-fg: var(--ink); --btn-bd: var(--line-2); }
.btn--outline:hover { --btn-bd: var(--ink); background: var(--white); }
.btn__icon { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; flex: none; }

.text-link {
  color: var(--ink); font-weight: 500;
  text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px;
  text-decoration-color: var(--sema);
}
.text-link:hover { text-decoration-color: currentColor; }

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

.icon-btn {
  display: inline-grid; place-items: center;
  width: 40px; height: 40px; padding: 0;
  background: transparent; border: 1px solid transparent; border-radius: var(--radius);
  cursor: pointer; color: var(--ink); 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(--haze-2); }
.icon-btn:disabled { opacity: .3; cursor: default; background: transparent; }
.icon-btn--round { border-radius: 50%; border-color: var(--line); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 60;
  height: var(--header-h);
  background: rgba(255, 255, 255, .97);
  border-bottom: 1px solid var(--line);
}
.site-header__inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: flex; align-items: center; gap: 11px; text-decoration: none; color: var(--ink); }
.brand__mark { width: 27px; height: 33px; flex: none; }
.mark-hat { fill: var(--ink); }
.mark-body { fill: var(--sema); }
.brand__name { font-family: var(--serif); font-weight: 500; font-size: 1.45rem; line-height: 1; letter-spacing: .005em; }

.nav__list { display: flex; gap: clamp(20px, 2.4vw, 36px); }
.nav__list a {
  text-decoration: none; font-weight: 500; font-size: 1.0625rem; padding-block: 6px;
  background: linear-gradient(var(--sema), var(--sema)) left bottom / 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; align-items: center; }
.lang__btn {
  background: none; border: 0; padding: 6px 9px; cursor: pointer;
  font-size: .9375rem; font-weight: 500; color: var(--muted); letter-spacing: .02em;
}
.lang__btn + .lang__btn { border-left: 1px solid var(--line-2); }
.lang__btn.is-active { color: var(--ink); text-decoration: underline; text-underline-offset: 5px; text-decoration-color: var(--sema); }

.menu-toggle {
  display: none; position: relative;
  width: 44px; height: 44px; padding: 0; background: none; border: 0; cursor: pointer;
}
.menu-toggle span {
  position: absolute; left: 11px; width: 22px; height: 1.5px; background: var(--ink);
  transition: transform .25s var(--ease), top .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 { 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; z-index: 55;
  background: var(--white); padding-top: 12px; overflow-y: auto;
}
.mobile-menu__list li { border-bottom: 1px solid var(--line); }
.mobile-menu__list a { display: block; padding: 16px 0; font-family: var(--serif); font-size: 1.6rem; text-decoration: none; }
.mobile-menu__foot { display: grid; gap: 10px; margin-top: 32px; color: var(--muted); }
.mobile-menu__foot a { text-decoration: none; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  height: calc(100svh - var(--header-h));
  min-height: 620px; max-height: 1060px;
}
.hero__media { position: absolute; inset: 0; overflow: hidden; background: #B9CFD8; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; object-position: var(--hero-pos); }

/* The headline sits in the sky of the window's middle pane, no panel */
.hero__copy {
  position: absolute; z-index: 2;
  left: var(--hero-copy-x); top: var(--hero-copy-y); width: var(--hero-copy-w);
  display: grid; gap: 18px; justify-items: start;
}
.hero__place { font-size: 1.0625rem; font-weight: 500; color: var(--ink); }
.hero__title {
  font-family: var(--serif); font-weight: 500;
  font-size: clamp(2.5rem, 1rem + 3.15vw, 4.6rem);
  line-height: 1; letter-spacing: -.012em;
  color: var(--ink);
  text-shadow: 0 0 34px rgba(255, 255, 255, .55);
}
.hero__lead { font-size: 1.125rem; line-height: 1.5; max-width: 34ch; color: var(--ink); text-shadow: 0 0 18px rgba(255, 255, 255, .6); }

/* ---------- Booking card (over the right window pane on desktop) ---------- */
.booking {
  position: absolute; z-index: 3;
  right: max(var(--gutter), (100% - var(--max)) / 2);
  bottom: clamp(24px, 5.5vh, 60px);
  width: clamp(330px, 26vw, 384px);
  background: var(--white);
  border-radius: var(--radius);
  padding: 22px 22px 18px;
  box-shadow: 0 28px 70px -30px rgba(20, 44, 52, .55), 0 0 0 1px rgba(32, 54, 63, .06);
}
.booking__title { font-family: var(--serif); font-weight: 500; font-size: 1.5rem; line-height: 1.1; margin-bottom: 14px; }
.booking__fields {
  display: grid; grid-template-columns: 1fr 1fr;
  border: 1px solid var(--line-2); border-radius: var(--radius);
}
.booking__field {
  display: grid; gap: 1px; align-content: start; text-align: left;
  min-width: 0; padding: 11px 14px 12px;
  background: none; border: 0; cursor: pointer;
  transition: background-color .15s;
}
.booking__field:hover, .booking__field[aria-expanded="true"] { background: var(--haze-2); }
.booking__field:nth-child(2) { border-left: 1px solid var(--line-2); }
.booking__field--wide { grid-column: 1 / -1; border-top: 1px solid var(--line-2); }
.booking__label { font-size: .875rem; color: var(--muted); }
.booking__value { font-family: var(--serif); font-size: 1.32rem; font-weight: 500; line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.booking__value.is-empty { color: var(--muted); }
.booking__sub { font-size: .875rem; color: var(--muted); min-height: 1.3em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.booking__room {
  display: flex; align-items: baseline; justify-content: space-between; gap: 12px;
  margin-top: 10px; padding: 8px 12px; background: var(--haze-2); border-radius: var(--radius);
  font-size: .9375rem;
}
.booking__room::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--felt); flex: none; transform: translateY(-1px); }
.booking__room span { flex: 1; }
.booking__submit { display: grid; gap: 10px; margin-top: 14px; }
.booking__submit .btn { width: 100%; }
.booking__note { font-size: .875rem; line-height: 1.45; color: var(--muted); }
.booking__note .text-link { font-weight: 500; white-space: nowrap; }

/* Popovers: open to the left of the card, over the photo */
.popover {
  position: absolute; z-index: 40;
  right: calc(100% + 14px); top: 0;
  background: var(--white); color: var(--ink);
  border-radius: var(--radius);
  box-shadow: 0 30px 70px -24px rgba(20, 44, 52, .5), 0 0 0 1px rgba(32, 54, 63, .08);
  animation: pop .22s var(--ease);
}
@keyframes pop { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

.datepicker { width: 660px; padding: 20px 22px 16px; }
.datepicker__head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 6px; }
.datepicker__hint { font-size: 1rem; color: var(--muted); }
.datepicker__nav { display: flex; gap: 4px; }
.datepicker__months { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.datepicker__foot {
  display: flex; align-items: center; justify-content: space-between;
  border-top: 1px solid var(--line); margin-top: 12px; padding-top: 12px;
}
.month__caption { font-family: var(--serif); font-weight: 500; font-size: 1.25rem; margin: 4px 0 10px; text-transform: capitalize; }
.month__grid { display: grid; grid-template-columns: repeat(7, 1fr); }
.month__dow { font-size: .8125rem; color: var(--muted); text-align: center; padding-bottom: 6px; }
.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: 1rem; 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(--haze); }
.day:disabled { color: #A9B6BA; cursor: default; }
.day:focus-visible { outline: none; }
.day:focus-visible span { box-shadow: 0 0 0 2px var(--ink); }
.day.is-today span { box-shadow: inset 0 0 0 1px var(--line-2); }
.day.in-range::before, .day.in-preview::before,
.day.is-start::before, .day.is-end::before {
  content: ""; position: absolute; inset: 4px 0; background: var(--haze);
}
.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(--ink); color: #fff; }
.day--blank { pointer-events: none; }

.guests { width: 360px; padding: 6px 22px 18px; }
.counter {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 14px 0; border-bottom: 1px solid var(--line);
}
.counter__title { font-weight: 500; }
.counter__hint { font-size: .875rem; 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.125rem; }
.guests__ages { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.guests__ages:not(:empty) { padding-top: 14px; }
.age-field { display: grid; gap: 4px; font-size: .875rem; color: var(--muted); }
.age-field select {
  appearance: none; -webkit-appearance: none;
  width: 100%; padding: 9px 32px 9px 11px;
  border: 1px solid var(--line-2); 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='%2320363F' stroke-width='1.5'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") right 9px center / 16px no-repeat;
  font: inherit; font-size: 1rem; color: var(--ink);
}
.age-field select[aria-invalid="true"] { border-color: #A3392B; }
.guests__note { font-size: .875rem; line-height: 1.45; color: var(--muted); padding-top: 12px; }
.guests__error { font-size: .875rem; font-weight: 500; color: #A3392B; padding-top: 10px; }
.guests__foot { display: flex; justify-content: flex-end; padding-top: 14px; }

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

/* ---------- Intro ---------- */
.intro { background: var(--white); }
.intro__grid {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: clamp(16px, 2.4vw, 32px); align-items: start;
}
.intro__text { grid-column: 1 / span 7; }
.intro__text .h2 { max-width: 17ch; margin-bottom: 28px; }
.intro__text .lead { max-width: 52ch; }
.intro__text p + p { margin-top: 18px; color: var(--muted); max-width: 60ch; }
.facts { grid-column: 9 / -1; display: grid; gap: 0; margin-top: 8px; }
.facts div { padding: 14px 0 15px; border-top: 1px solid var(--line); }
.facts div:last-child { border-bottom: 1px solid var(--line); }
.facts dt { font-size: .9375rem; color: var(--muted); }
.facts dd { font-family: var(--serif); font-size: 1.22rem; line-height: 1.3; }

/* ---------- Floor by floor: the drawn facade ---------- */
.floors { background: var(--page); }
.floors__grid {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: clamp(16px, 2.4vw, 32px); align-items: start;
}
.floors__head { grid-column: 1 / span 7; margin-bottom: clamp(40px, 5vw, 64px); }
.floors__intro { margin-top: 18px; max-width: 56ch; color: var(--muted); }
.elevation {
  grid-column: 1 / span 5;
  position: sticky; top: calc(var(--header-h) + 28px);
  display: flex; justify-content: center;
}
.elevation__svg { display: block; width: min(100%, 460px, (100svh - var(--header-h) - 80px) * .61); height: auto; overflow: visible; }

.el-lines path { fill: none; stroke: var(--ink); stroke-width: 1.25; stroke-linecap: round; stroke-linejoin: round; pointer-events: none; }
.el-lines .ln--thin { stroke-width: .75; }
.el-fill { pointer-events: none; transition: opacity .9s ease .7s; }
.el-siding { fill: url(#siding); }
#siding path { stroke: var(--sema); stroke-width: .7; opacity: .6; }
.el-glass { fill: var(--white); }
.el-salon { fill: var(--haze); }
.el-flowers { fill: var(--white); stroke: var(--felt); stroke-width: 1; }
.el-lattice { fill: none; stroke: var(--sema); stroke-width: .6; }
.el-lower { fill: none; stroke: var(--muted); stroke-width: .9; stroke-dasharray: 3 3; }
.el-zone { fill: rgba(106, 147, 163, 0); cursor: pointer; transition: fill .3s var(--ease); }
.el-zone.is-hover { fill: rgba(106, 147, 163, .14); }
.el-zone.is-active { fill: rgba(106, 147, 163, .3); }

/* the one orchestrated moment: the facade draws itself once */
.elevation.is-ready .el-lines path { stroke-dasharray: 1 1; stroke-dashoffset: 1; }
.elevation.is-ready .el-fill { opacity: 0; }
.elevation.is-drawn .el-lines path { stroke-dashoffset: 0; transition: stroke-dashoffset 1.9s cubic-bezier(.5, .05, .25, 1); }
.elevation.is-drawn .el-fill { opacity: 1; }

.floor-list { grid-column: 7 / -1; border-top: 1px solid var(--line-2); }
.floor { border-bottom: 1px solid var(--line-2); }
.floor__heading { font: inherit; }
.floor__btn {
  position: relative; display: grid; gap: 2px; width: 100%;
  padding: 20px 44px 20px 0; text-align: left;
  background: none; border: 0; cursor: pointer;
}
.floor__btn::after {
  content: ""; position: absolute; right: 6px; top: 50%;
  width: 12px; height: 12px; margin-top: -9px;
  border-right: 1.5px solid var(--ink); border-bottom: 1.5px solid var(--ink);
  transform: rotate(45deg); transition: transform .25s var(--ease);
}
.floor__btn[aria-expanded="true"]::after { transform: rotate(-135deg); margin-top: -3px; }
.floor__level { display: flex; align-items: center; gap: 9px; font-size: .9375rem; color: var(--muted); }
.floor__level::before { content: ""; width: 8px; height: 8px; border-radius: 50%; border: 1px solid var(--line-2); transition: background-color .2s, border-color .2s; }
.floor.is-open .floor__level::before { background: var(--felt); border-color: var(--felt); }
.floor__name { font-family: var(--serif); font-weight: 500; font-size: clamp(1.4rem, 1.15rem + .7vw, 1.8rem); line-height: 1.15; }
.floor__btn:hover .floor__name { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 5px; text-decoration-color: var(--sema); }
.floor__panel { padding: 0 0 26px; display: grid; gap: 18px; animation: fade .35s ease; }
.floor__panel p { max-width: 52ch; }
.floor__panel img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }

/* ---------- Rooms ---------- */
.rooms { background: var(--white); }
.section-head {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: clamp(16px, 2.4vw, 32px); align-items: end;
  margin-bottom: clamp(36px, 4.5vw, 56px);
}
.section-head .h2 { grid-column: 1 / span 5; }
.section-head__text { grid-column: 7 / -1; color: var(--muted); max-width: 54ch; }

.room-tabs {
  display: flex; gap: clamp(20px, 4vw, 56px);
  border-bottom: 1px solid var(--line-2);
  overflow-x: auto; scrollbar-width: none;
  margin-bottom: clamp(28px, 3.5vw, 44px);
}
.room-tabs::-webkit-scrollbar { display: none; }
.room-tab {
  position: relative; flex: none;
  display: flex; align-items: baseline; gap: 10px;
  padding: 6px 0 16px; background: none; border: 0; cursor: pointer; color: var(--muted);
}
.room-tab__name { font-family: var(--serif); font-weight: 500; font-size: clamp(1.45rem, 1.2rem + .8vw, 2rem); line-height: 1.1; }
.room-tab__meta { font-size: .9375rem; font-variant-numeric: tabular-nums; }
.room-tab::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px;
  background: var(--ink); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease);
}
.room-tab:hover { color: var(--ink); }
.room-tab.is-active { color: var(--ink); }
.room-tab.is-active::after { transform: none; }
.room-tab:focus-visible { outline-offset: 2px; }

.room {
  display: none;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: clamp(16px, 2.4vw, 32px); align-items: center;
}
.room.is-active { display: grid; animation: fade .35s ease; }
.room__media { grid-column: 1 / span 7; }
.room__media img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.room__body { grid-column: 9 / -1; display: grid; gap: 20px; justify-items: start; }
.room__title { font-family: var(--serif); font-weight: 500; font-size: clamp(1.8rem, 1.4rem + 1.1vw, 2.5rem); line-height: 1.08; }
.room__desc { color: var(--muted); max-width: 44ch; }
.room__specs { display: grid; grid-template-columns: 1fr 1fr; width: 100%; border-top: 1px solid var(--line); }
.room__specs div { padding: 11px 0 12px; border-bottom: 1px solid var(--line); }
.room__specs div:nth-child(odd) { padding-right: 12px; }
.room__specs dt { font-size: .875rem; color: var(--muted); }
.room__specs dd { font-weight: 500; }

.rooms__common {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: clamp(16px, 2.4vw, 32px);
  margin-top: clamp(48px, 6vw, 80px); padding-top: 28px; border-top: 1px solid var(--line);
}
.rooms__common-title { grid-column: 1 / span 3; font-family: var(--serif); font-weight: 500; font-size: 1.5rem; }
.amenities { grid-column: 4 / -1; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px 28px; }
.amenities li { padding-left: 16px; position: relative; }
.amenities li::before { content: ""; position: absolute; left: 0; top: .72em; width: 6px; height: 1px; background: var(--sema); }
.rooms__note { grid-column: 4 / -1; margin-top: 18px; color: var(--muted); font-size: 1rem; }

/* ---------- Breakfast band ---------- */
.breakfast { background: var(--sema-band); color: var(--ink); }
.breakfast__grid {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: clamp(16px, 2.4vw, 32px); row-gap: clamp(36px, 4.5vw, 64px);
  align-items: stretch;
}
.breakfast__text {
  grid-column: 1 / -1;
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: clamp(16px, 2.4vw, 32px); row-gap: 18px; align-items: start;
}
.breakfast__text .h2 { grid-column: 1 / span 5; grid-row: 1 / span 2; max-width: 13ch; }
.breakfast__text p { grid-column: 7 / -1; max-width: 52ch; }
.breakfast__main { grid-column: 1 / span 8; }
.breakfast__main img { width: 100%; aspect-ratio: 1000 / 664; object-fit: cover; }
.breakfast__side { grid-column: 9 / -1; }
.breakfast__side img { width: 100%; height: 100%; object-fit: cover; object-position: 40% 50%; }

/* ---------- Services ---------- */
.services { background: var(--page); }
.services__grid {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: clamp(16px, 2.4vw, 32px); align-items: start;
}
.services__head { grid-column: 1 / span 4; display: grid; gap: 18px; }
.services__intro { color: var(--muted); max-width: 32ch; }
.services__list { grid-column: 6 / -1; display: grid; grid-template-columns: 1fr 1fr; column-gap: clamp(20px, 3vw, 48px); }
.services__list div { padding: 17px 0 19px; border-top: 1px solid var(--line-2); }
.services__list dt { font-family: var(--serif); font-weight: 500; font-size: 1.28rem; line-height: 1.25; }
.services__list dd { margin-top: 3px; color: var(--muted); font-size: 1.0625rem; }

/* ---------- Location ---------- */
.location { background: var(--white); }
.location__grid {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: clamp(16px, 2.4vw, 32px); align-items: stretch;
}
.location__map { grid-column: 1 / span 7; min-height: 560px; background: var(--haze); }
.location__map iframe { display: block; width: 100%; height: 100%; min-height: 560px; border: 0; filter: saturate(.6) contrast(1.02); }
.location__info { grid-column: 9 / -1; display: flex; flex-direction: column; align-items: flex-start; }
.location__address { display: grid; margin-bottom: 28px; font-family: var(--serif); font-size: 1.45rem; line-height: 1.32; }
.distances { width: 100%; margin-bottom: 30px; }
.distances__title { font-size: .9375rem; font-weight: 500; color: var(--muted); margin: 0 0 4px; }
.distances ul + .distances__title { margin-top: 24px; }
.distances li {
  display: flex; justify-content: space-between; gap: 16px;
  padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 1.0625rem;
}
.distances li span:last-child { font-weight: 500; font-variant-numeric: tabular-nums; white-space: nowrap; }

/* ---------- Gallery: justified rows ---------- */
.gallery { background: var(--page); }
.gallery__title { margin-bottom: clamp(32px, 4vw, 52px); }
.gallery__grid { display: flex; flex-wrap: wrap; gap: clamp(8px, 1vw, 14px); }
.gallery__grid li { flex: var(--r) 1 calc(var(--r) * clamp(170px, 19vw, 300px)); min-width: 0; }
.gallery__item {
  display: block; width: 100%; padding: 0; border: 0;
  background: var(--haze); cursor: zoom-in; overflow: hidden;
}
.gallery__item img { width: 100%; height: auto; aspect-ratio: var(--r); object-fit: cover; transition: transform .6s var(--ease); }
.gallery__item:hover img { transform: scale(1.02); }
.gallery__item:focus-visible { outline-offset: 2px; }

/* ---------- Closing ---------- */
.closing { background: var(--white); padding-block: clamp(80px, 10vw, 148px); border-top: 1px solid var(--line); }
.closing__inner {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: clamp(16px, 2.4vw, 32px); align-items: center;
}
.closing__text-col { grid-column: 1 / span 6; display: grid; justify-items: start; gap: 22px; }
.closing__media { grid-column: 8 / -1; }
.closing__media img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 48% 50%; }
.closing__mark { width: 40px; height: 48px; margin-bottom: 8px; }
.closing__title {
  font-family: var(--serif); font-style: italic; font-weight: 400;
  font-size: clamp(2.5rem, 1.3rem + 4vw, 5.4rem); line-height: 1.02; letter-spacing: -.01em;
  max-width: 14ch; text-wrap: balance;
}
.closing__text { font-size: 1.25rem; color: var(--muted); max-width: 46ch; }
.closing__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 30px; margin-top: 10px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--haze); color: var(--ink); font-size: 1rem; padding-top: 60px; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { text-decoration: underline; text-underline-offset: 4px; text-decoration-color: var(--sema); }
.site-footer__grid { display: grid; grid-template-columns: 1.3fr 1fr 1.2fr 1fr; gap: 32px; padding-bottom: 44px; }
.site-footer__name { font-family: var(--serif); font-size: 1.5rem; font-weight: 500; margin-bottom: 6px; }
.site-footer__brand p:not(.site-footer__name) { color: var(--muted); max-width: 26ch; }
.site-footer__title { font-size: .9375rem; font-weight: 500; color: var(--muted); margin: 0 0 8px; }
.site-footer__base {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px;
  padding-block: 20px calc(20px + env(safe-area-inset-bottom));
  font-size: .9375rem; color: var(--muted);
  border-top: 1px solid var(--line-2);
}

/* ---------- 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(17, 30, 35, .96); 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: 1rem; color: rgba(255, 255, 255, .78); 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, .22); 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; }
}

/* Mid widths: photo above, search below it as one row */
@media (max-width: 1099px) {
  .hero { height: auto; min-height: 0; max-height: none; display: grid; grid-template-columns: minmax(0, 1fr); }
  .hero__media { position: relative; grid-area: 1 / 1; height: clamp(460px, 68svh, 640px); }
  .hero__copy { grid-area: 1 / 1; }
  .hero__lead { display: none; }
  .booking {
    position: relative; grid-area: 2 / 1; right: auto; bottom: auto;
    width: auto; margin: -56px var(--gutter) 0;
  }
  .booking__fields { grid-template-columns: 1fr 1fr 1.2fr; }
  .booking__field--wide { grid-column: auto; border-top: 0; border-left: 1px solid var(--line-2); }
  .booking__submit { grid-template-columns: auto 1fr; align-items: center; column-gap: 20px; }
  .booking__submit .btn { width: auto; }
  .popover { right: auto; left: 0; top: calc(100% - 8px); }
}

@media (max-width: 1023px) {
  .intro__text, .facts,
  .floors__head, .elevation, .floor-list,
  .services__head, .services__list,
  .location__map, .location__info,
  .room__media, .room__body,
  .breakfast__text, .breakfast__main, .breakfast__side,
  .closing__text-col, .closing__media,
  .section-head .h2, .section-head__text { grid-column: 1 / -1; }
  .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 24px; margin-top: 44px; }
  .facts div:nth-last-child(2) { border-bottom: 1px solid var(--line); }
  .section-head__text { margin-top: 16px; }
  .elevation { position: static; display: flex; justify-content: center; margin-bottom: 28px; }
  .elevation__svg { max-width: 330px; }
  .room__body { margin-top: 26px; }
  .rooms__common-title, .amenities, .rooms__note { grid-column: 1 / -1; }
  .amenities { margin-top: 14px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .breakfast__text .h2, .breakfast__text p { grid-column: 1 / -1; grid-row: auto; }
  .breakfast__side { display: none; }
  .closing__media { margin-top: 44px; }
  .closing__media img { aspect-ratio: 4 / 3; }
  .services__list { margin-top: 32px; }
  .location__info { grid-row: 1; margin-bottom: 36px; }
  .location__map { grid-row: 2; }
  .site-footer__grid { grid-template-columns: 1fr 1fr; }
  .site-footer__brand { grid-column: 1 / -1; }
}

@media (max-width: 899px) {
  .hero__media { height: clamp(460px, calc(100svh - var(--header-h) - 64px), 760px); }
  .hero__media img { object-position: var(--hero-pos-m); }
  .hero__copy { left: var(--hero-copy-x-m); top: var(--hero-copy-y-m); width: var(--hero-copy-w-m); gap: 12px; }
  .hero__lead { display: none; }

  .booking { margin: -64px var(--gutter) 0; padding: 18px 16px 16px; }
  .booking__fields { grid-template-columns: 1fr 1fr; }
  .booking__field--wide { grid-column: 1 / -1; border-left: 0; border-top: 1px solid var(--line-2); }
  .booking__submit { grid-template-columns: 1fr; }
  .booking__submit .btn { width: 100%; }

  /* Popovers become bottom sheets */
  .popover {
    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: 12px 12px 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: 18px; 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: 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(255, 255, 255, .96);
    -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
    box-shadow: 0 -1px 0 var(--line), 0 -12px 30px -18px rgba(20, 44, 52, .35);
    transform: translateY(110%); transition: transform .35s var(--ease);
  }
  .sticky-book .btn { flex: 1; }
  .sticky-book__icon { width: 48px; height: 48px; flex: none; }
  .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; }
  body { font-size: 1.0625rem; }
  .site-header__inner { gap: 10px; }
  .site-header__actions { gap: 2px; }
  .brand__mark { width: 23px; height: 28px; }
  .brand__name { font-size: 1.28rem; }
  .site-header__cta { display: none; }
  .hero__title { font-size: clamp(2.15rem, 1.2rem + 4.2vw, 2.6rem); }
  .booking__value { font-size: 1.2rem; }
  .facts { grid-template-columns: 1fr; }
  .facts div:nth-last-child(2) { border-bottom: 0; }
  .amenities { grid-template-columns: 1fr; }
  .services__list { grid-template-columns: 1fr; }
  .location__map, .location__map iframe { min-height: 360px; }
  .site-footer__grid { grid-template-columns: 1fr; }
  .closing__actions .btn { width: 100%; }
  .gallery__grid li { flex-basis: calc(var(--r) * 120px); }
  .room-tabs { -webkit-mask-image: linear-gradient(90deg, #000 84%, transparent); mask-image: linear-gradient(90deg, #000 84%, transparent); padding-right: 64px; }
  .breakfast__text .h2 { max-width: none; }
  .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; transition-delay: 0s !important; }
}
