/* =========================================================
   Old City Sultanahmet
   Identity taken from the hotel itself: the red channel-letter
   sign and its white-framed SULTANAHMET plate, the black
   wrought-iron balcony rail it hangs on, and the mint walls
   of the lobby and the top-floor breakfast room.
   Type: Red Hat Display (round, heavy capitals like the sign)
   with Red Hat Text for reading.
   ========================================================= */

:root {
  --red: #C62A1F;        /* sign red: booking plate, CTAs, brand plate */
  --red-deep: #A82217;
  --red-ink: #B3261C;    /* red text on white */
  --pink: #FFE3DD;       /* small text on red */
  --iron: #1E1F23;       /* wrought iron: text, buttons, dark bands */
  --iron-2: #34363C;
  --iron-3: #17181B;
  --mint: #D3EEE7;       /* lobby and breakfast-room walls */
  --mint-line: #B5DCD2;
  --paper: #F3F5F5;
  --white: #FFFFFF;
  --muted: #5A6066;
  --line: #DCE0E0;
  --on-dark: #ECEDEF;
  --on-dark-muted: #AEB3BA;
  --line-dark: rgba(236, 237, 239, .16);

  --f-display: "Red Hat Display", "Segoe UI", system-ui, sans-serif;
  --f-text: "Red Hat Text", "Segoe UI", system-ui, sans-serif;

  --container: 1280px;
  --gutter: clamp(16px, 4vw, 48px);
  --section: clamp(80px, 9vw, 136px);
  --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(--white);
  color: var(--iron);
  font-family: var(--f-text);
  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, ol { margin: 0; padding: 0; list-style: none; }
p, blockquote { margin: 0; }
dl, dd { margin: 0; }
address { font-style: normal; }
[hidden] { display: none !important; }

:focus-visible { outline: 2px solid var(--red-ink); outline-offset: 3px; }
.plate :focus-visible,
.closing :focus-visible,
.site-footer :focus-visible,
.lightbox :focus-visible { outline-color: #fff; }
.booking .popover :focus-visible { outline-color: var(--red-ink); }

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--iron); color: #fff; padding: 10px 16px; text-decoration: none; font-weight: 600;
}
.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: 800;
  font-size: clamp(2rem, 1.3rem + 2.2vw, 3.25rem);
  line-height: 1.04;
  letter-spacing: -.022em;
  color: var(--iron);
  margin: 0;
  text-wrap: balance;
}
.lead {
  font-size: clamp(1.125rem, 1.05rem + .3vw, 1.28rem);
  line-height: 1.55;
}

/* ---------- The plate (the sign's SULTANAHMET box) ---------- */
.plate {
  position: relative;
  background: var(--red);
  color: #fff;
}
.plate::before {
  content: "";
  position: absolute;
  inset: var(--plate-inset, 5px);
  border: 1px solid rgba(255, 255, 255, .78);
  pointer-events: none;
}
.plate--brand {
  --plate-inset: 3px;
  display: inline-block;
  padding: 7px 11px 6px;
  font-family: var(--f-display);
  font-weight: 900;
  font-size: .9375rem;
  line-height: 1;
  letter-spacing: .07em;
  white-space: nowrap;
}
.plate--cta {
  --plate-inset: 5px;
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 64px;
  padding: 16px 34px;
  font-family: var(--f-display);
  font-weight: 800;
  font-size: 1.125rem;
  text-decoration: none;
  transition: background-color .2s var(--ease);
}
.plate--cta:hover { background: var(--red-deep); }

/* ---------- Buttons & links ---------- */
.btn {
  --btn-bg: var(--iron);
  --btn-fg: #fff;
  --btn-bd: var(--btn-bg);
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px;
  padding: 12px 24px;
  border: 1.5px solid var(--btn-bd);
  border-radius: var(--radius);
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-family: var(--f-text);
  font-size: .9375rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color .2s var(--ease), border-color .2s var(--ease), color .2s var(--ease);
}
.btn--sm { min-height: 40px; padding: 8px 16px; font-size: .875rem; }
.btn--lg { min-height: 56px; padding: 14px 28px; font-size: 1rem; }
.btn--iron:hover { --btn-bg: var(--iron-2); }
.btn--red { --btn-bg: var(--red); }
.btn--red:hover { --btn-bg: var(--red-deep); }
.btn--outline { --btn-bg: transparent; --btn-fg: var(--iron); --btn-bd: var(--iron); }
.btn--outline:hover { --btn-bg: var(--iron); --btn-fg: #fff; }

.text-link {
  color: var(--iron);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: var(--red);
  text-decoration-thickness: 1.5px;
  text-underline-offset: 5px;
}
.text-link:hover { text-decoration-color: currentColor; }
.text-link--light { color: #fff; text-decoration-color: rgba(255, 255, 255, .5); }
.text-link--light:hover { text-decoration-color: #fff; }

.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(--iron); }

.icon-btn {
  display: inline-grid; place-items: center;
  width: 40px; height: 40px;
  background: transparent; border: 1px solid transparent; border-radius: var(--radius);
  color: var(--iron); 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.6; stroke-linecap: round; stroke-linejoin: round; }
.icon-btn:hover { background: var(--paper); }
.icon-btn:disabled { opacity: .3; cursor: default; background: transparent; }
.icon-btn--round { border-radius: 50%; border-color: #C9CFD0; }

/* ---------- Header ---------- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 60;
  height: var(--header-h);
  color: var(--iron);
  /* Transparent over the pale sky of the current photo; set to rgba(255,255,255,.97)
     if a new hero photo puts the building behind the menu */
  background: var(--header-top-bg, transparent);
  transition: background-color .3s var(--ease), box-shadow .3s var(--ease);
}
.site-header.is-scrolled { background: rgba(255, 255, 255, .97); box-shadow: 0 1px 0 var(--line); }
.site-header__inner {
  height: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}

.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--iron); }
.brand__place { font-family: var(--f-display); font-weight: 700; font-size: 1.0625rem; letter-spacing: -.005em; }

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

.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 8px; font-size: .8125rem; font-weight: 700; letter-spacing: .03em;
  color: rgba(30, 31, 35, .55);
}
.lang__btn + .lang__btn { border-left: 1px solid rgba(30, 31, 35, .25); }
.lang__btn.is-active { color: var(--iron); }

.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: 2px; background: var(--iron);
  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(--white);
  padding-block: 8px 40px;
  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(--f-display); font-weight: 800; font-size: 1.6rem; letter-spacing: -.015em;
  text-decoration: none;
}
.mobile-menu__foot { display: grid; gap: 10px; margin-top: 28px; color: var(--muted); }
.mobile-menu__foot a { text-decoration: none; }

/* ---------- Hero ----------
   Swap the photo by replacing assets/img/hero.webp (+ hero-mobile.webp).
   Placement is tuned here:
     --hero-pos     object-position of the desktop photo
     --hero-pos-m   object-position of the mobile photo
     --hero-align   flex-start = headline and plate on the left, flex-end = right
     --hero-top     distance from the top edge to the headline
     --hero-title-w maximum headline width
     --hero-ink     headline colour (dark for a pale sky)               */
.hero {
  --hero-pos: 50% 0%;
  --hero-pos-m: 50% 0%;
  --hero-align: flex-start;
  --hero-top: calc(var(--header-h) + clamp(20px, 3.6vh, 56px));
  --hero-title-w: 24em;
  --hero-ink: var(--iron);
  position: relative;
  z-index: 3;
  min-height: max(620px, 100svh);
  background: #C9D6E1;
}
.hero__media { display: block; position: absolute; inset: 0; overflow: hidden; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; object-position: var(--hero-pos); }

.hero__stage {
  position: relative; z-index: 2;
  max-width: var(--container);
  margin-inline: auto;
  padding: var(--hero-top) var(--gutter) 48px;
  display: flex; flex-direction: column; align-items: var(--hero-align);
}
.hero__title {
  max-width: var(--hero-title-w);
  margin: 0;
  font-family: var(--f-display);
  font-weight: 850;
  font-size: clamp(2.5rem, .9rem + 3.4vw, 4.4rem);
  line-height: 1.0;
  letter-spacing: -.028em;
  color: var(--hero-ink);
  text-wrap: balance;
}
.hero__title .ln { display: block; } /* one phrase per line on wide screens */

/* ---------- Booking plate ---------- */
.booking {
  --plate-inset: 6px;
  width: min(100%, 940px);
  margin-top: clamp(22px, 3vh, 36px);
  padding: 6px;
  box-shadow: 0 26px 60px -30px rgba(80, 14, 8, .55);
}
.booking__row {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr 1.15fr auto;
}
.booking__field {
  display: grid; align-content: center; gap: 1px;
  text-align: left;
  padding: 14px 20px;
  min-height: 92px;
  background: none; border: 0;
  color: #fff;
  cursor: pointer;
  transition: background-color .2s var(--ease);
}
.booking__field + .booking__field { border-left: 1px solid rgba(255, 255, 255, .3); }
.booking__field:hover, .booking__field[aria-expanded="true"] { background: rgba(0, 0, 0, .1); }
.booking__label { font-size: .8125rem; font-weight: 500; color: var(--pink); }
.booking__value {
  font-family: var(--f-display); font-weight: 750; font-size: 1.375rem; line-height: 1.25;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.booking__value.is-empty { color: var(--pink); font-weight: 600; }
.booking__sub { font-size: .8125rem; color: var(--pink); min-height: 1.3em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.booking__submit { display: grid; align-content: center; padding: 12px 14px 12px 10px; }
.booking__note {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 20px;
  margin: 0 1px 1px;
  padding: 10px 20px 9px;
  border-top: 1px solid rgba(255, 255, 255, .3);
  font-size: .8125rem; color: var(--pink);
}
.booking__note a { color: #fff; font-weight: 600; text-underline-offset: 3px; text-decoration-color: rgba(255, 255, 255, .55); }
.booking__note a:hover { text-decoration-color: #fff; }

/* Popovers */
.popover {
  position: absolute; z-index: 40;
  top: calc(100% + 10px);
  background: var(--white);
  color: var(--iron);
  border-radius: var(--radius);
  box-shadow: 0 30px 70px -24px rgba(20, 22, 26, .5), 0 0 0 1px rgba(30, 31, 35, .08);
  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-weight: 750; font-size: 1.1rem; 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(--iron);
}
.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(--paper); }
.day:disabled { color: #ADB3B6; cursor: default; }
.day:focus-visible { outline: none; }
.day:focus-visible span { box-shadow: 0 0 0 2px var(--red-ink); }
.day.is-today span { box-shadow: inset 0 0 0 1px #C3C9CB; }
.day.in-range::before, .day.in-preview::before,
.day.is-start::before, .day.is-end::before {
  content: ""; position: absolute; inset: 4px 0; background: #FBE7E4;
}
.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(--red); color: #fff; font-weight: 600; }
.day.is-start:hover span, .day.is-end:hover span { background: var(--red-deep); }
.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: 600; }
.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 #C3C9CB; 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='%231E1F23' stroke-width='1.6'%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(--iron);
}
.age-field select[aria-invalid="true"] { border-color: var(--red-ink); }
.guests__note { font-size: .8125rem; line-height: 1.45; color: var(--muted); padding-top: 14px; }
.guests__error { font-size: .8125rem; font-weight: 600; color: var(--red-ink); padding-top: 10px; }
.guests__foot { display: flex; justify-content: flex-end; padding-top: 18px; }

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

/* The one load moment: headline rises, then the plate switches on like the sign at dusk */
.anim .hero__title { animation: rise .8s var(--ease) both; }
.anim .booking { animation: plate-on 1.1s linear .35s both; }
@keyframes rise { from { opacity: 0; transform: translateY(16px); } }
@keyframes plate-on {
  0% { background-color: #5E1812; box-shadow: none; }
  38% { background-color: #B9271C; }
  48% { background-color: #7A1D15; }
  62% { background-color: #C62A1F; }
  100% { background-color: #C62A1F; box-shadow: 0 26px 60px -30px rgba(80, 14, 8, .55); }
}

/* ---------- Intro ---------- */
.intro__grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: clamp(16px, 2.4vw, 32px);
  align-items: start;
}
.intro__facade { grid-column: 1 / span 5; position: sticky; top: calc(var(--header-h) + 24px); }
.intro__facade img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.intro__text { grid-column: 7 / -1; }
.intro__text .h2 { margin-bottom: 26px; }
.intro__text .lead { max-width: 34ch; }
.intro__text p + p { margin-top: 16px; color: var(--muted); max-width: 52ch; }
.intro__sign { margin-top: clamp(32px, 3.6vw, 48px); }
.intro__sign img { width: 100%; aspect-ratio: 8 / 3; object-fit: cover; }
figcaption { margin-top: 10px; font-size: .875rem; color: var(--muted); }

.facts {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0 clamp(14px, 2vw, 28px);
  margin-top: clamp(32px, 3.6vw, 48px);
}
.facts div { padding-top: 12px; border-top: 2px solid var(--iron); }
.facts dt { font-size: .8125rem; color: var(--muted); }
.facts dd { margin-top: 2px; font-weight: 600; line-height: 1.4; }

/* ---------- Section head ---------- */
.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.4vw, 60px);
}
.section-head .h2 { grid-column: 1 / span 5; }
.section-head__text { grid-column: 7 / -1; color: var(--muted); max-width: 54ch; }

/* ---------- Rooms: comparison table ---------- */
.rooms { background: var(--paper); }
.compare {
  display: grid;
  grid-template-columns: minmax(96px, .5fr) repeat(3, minmax(0, 1fr));
  grid-template-rows: auto auto repeat(4, auto) auto;
  column-gap: clamp(16px, 2.2vw, 32px);
}
.compare__labels, .room {
  grid-row: 1 / span 7;
  display: grid;
  grid-template-rows: subgrid;
}
.compare__labels > span {
  display: flex; align-items: center;
  padding: 12px 0;
  border-top: 1px solid var(--line);
  font-size: .875rem; color: var(--muted);
}
.compare__labels > .compare__media-gap,
.compare__labels > .compare__head-gap,
.compare__labels > .compare__cta-gap { border: 0; padding: 0; }
.room { min-width: 0; }
.room__media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.room__head { padding: 20px 0 22px; }
.room__title {
  margin: 0 0 8px;
  font-family: var(--f-display); font-weight: 800; font-size: clamp(1.35rem, 1.1rem + .6vw, 1.7rem);
  line-height: 1.1; letter-spacing: -.015em;
}
.room__desc { font-size: .9375rem; color: var(--muted); max-width: 40ch; }
.room__specs { display: contents; }
.room__specs div {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 12px 0;
  border-top: 1px solid var(--line);
}
.room__specs dt {
  position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}
.room__specs dd { font-weight: 600; }
.room__cta { justify-self: start; align-self: start; margin-top: 18px; }

.rooms__common {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: clamp(16px, 2.4vw, 32px);
  margin-top: clamp(48px, 5vw, 72px); padding-top: 22px; border-top: 2px solid var(--iron);
}
.rooms__common-title { grid-column: 1 / span 3; margin: 0; font-size: 1rem; font-weight: 600; }
.amenities { grid-column: 4 / -1; display: flex; flex-wrap: wrap; gap: 8px 28px; font-size: .9375rem; color: var(--muted); }

/* ---------- Breakfast (mint band) ---------- */
.breakfast { background: var(--mint); padding-bottom: var(--section); }
.breakfast__strip img { width: 100%; height: clamp(240px, 34vw, 560px); object-fit: cover; object-position: 50% 55%; }
.breakfast__grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: clamp(16px, 2.4vw, 32px);
  align-items: start;
  padding-top: clamp(40px, 4.4vw, 64px);
  position: relative;
}
.breakfast__text {
  grid-column: 1 / span 6;
  /* lifts the text block onto the lower edge of the photo strip */
  margin-top: calc(-1 * (clamp(40px, 4.4vw, 64px) + clamp(56px, 7vw, 120px)));
  padding: clamp(32px, 4vw, 56px) clamp(0px, 3vw, 48px) 0 0;
  background: var(--mint);
  position: relative;
}
.breakfast__text .h2 { margin-bottom: 22px; }
.breakfast__text .lead { max-width: 38ch; }
.breakfast__text p + p { margin-top: 14px; color: #44514E; }
.breakfast__buffet { grid-column: 7 / span 3; align-self: start; }
.breakfast__buffet img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; }
.breakfast__plate { grid-column: 10 / -1; align-self: end; }
.breakfast__plate img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; }

.quote {
  margin-top: clamp(28px, 3vw, 40px);
  padding-top: 20px;
  border-top: 2px solid var(--iron);
  max-width: 46ch;
}
.quote p { font-family: var(--f-display); font-weight: 650; font-size: 1.2rem; line-height: 1.4; letter-spacing: -.005em; }
.quote footer { margin-top: 10px; font-size: .8125rem; color: #44514E; }

/* ---------- Location ---------- */
.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(--paper); }
.location__map iframe { display: block; width: 100%; height: 100%; min-height: 560px; border: 0; filter: saturate(.6) contrast(1.02); }
.location__info { grid-column: 8 / -1; display: flex; flex-direction: column; align-items: flex-start; padding-left: clamp(0px, 1.6vw, 24px); }
.location__address {
  display: grid; margin-bottom: 26px;
  font-family: var(--f-display); font-weight: 700; font-size: 1.25rem; line-height: 1.4;
}
.distances { width: 100%; margin-bottom: 28px; }
.distances__title { font-size: .875rem; font-weight: 600; color: var(--red-ink); 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: .9375rem;
}
.distances li span:last-child { font-family: var(--f-display); font-weight: 750; font-variant-numeric: tabular-nums; white-space: nowrap; }

/* T1 tram strip */
.tram {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: clamp(16px, 2.4vw, 32px);
  margin-top: clamp(56px, 6vw, 88px);
  padding-top: 24px;
  border-top: 2px solid var(--iron);
}
.tram__head { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 32px; margin-bottom: 26px; }
.tram__title { margin: 0; font-family: var(--f-display); font-weight: 800; font-size: 1.35rem; line-height: 1.15; }
.tram__text { font-size: .9375rem; color: var(--muted); max-width: 60ch; }
.tram__line {
  grid-column: 1 / -1;
  position: relative;
  display: grid; grid-template-columns: repeat(10, minmax(0, 1fr));
  padding-top: 4px;
}
.tram__line::before {
  content: ""; position: absolute; left: 5%; right: 5%; top: 39px; height: 3px; background: var(--iron);
}
.tram__stop {
  position: relative;
  display: grid; grid-template-rows: 26px 28px auto auto; justify-items: center; text-align: center;
  padding-inline: 2px;
}
.tram__stop::before {
  content: ""; grid-row: 2; align-self: center;
  width: 13px; height: 13px; border-radius: 50%;
  background: var(--white); border: 3px solid var(--iron);
  position: relative; z-index: 1;
}
.tram__count { grid-row: 1; font-size: .75rem; color: var(--muted); white-space: nowrap; align-self: end; }
.tram__name { grid-row: 3; margin-top: 8px; font-size: .8125rem; font-weight: 600; line-height: 1.25; }
.tram__note { grid-row: 4; margin-top: 2px; font-size: .75rem; color: var(--muted); line-height: 1.25; }
.tram__stop--here::before { width: 22px; height: 22px; background: var(--red); border-color: var(--red); box-shadow: 0 0 0 3px var(--white); }
.tram__stop--here .tram__name { color: var(--red-ink); font-weight: 750; font-family: var(--f-display); font-size: .9375rem; }
.tram__stop--here .tram__count { color: var(--red-ink); font-weight: 600; }

/* ---------- Services ---------- */
.services { padding-top: 0; }
.services__grid {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: clamp(16px, 2.4vw, 32px);
  align-items: start;
  padding-top: var(--section);
  background: linear-gradient(var(--line), var(--line)) var(--gutter) 0 / calc(100% - 2 * var(--gutter)) 1px no-repeat;
}
.services__head { grid-column: 1 / span 4; display: grid; gap: 16px; justify-items: start; }
.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: 16px 0 18px; border-top: 1px solid var(--line); }
.services__list dt { font-weight: 600; }
.services__list dd { margin-top: 2px; color: var(--muted); font-size: .9375rem; }

/* ---------- Gallery: viewer + thumbnail rail ---------- */
.gallery { background: var(--paper); }
.gallery__title { margin-bottom: clamp(28px, 3.4vw, 44px); }
.viewer {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 1.05fr);
  gap: clamp(12px, 1.6vw, 20px);
  align-items: start;
}
.viewer__stage { min-width: 0; }
.viewer__open {
  display: block; width: 100%; padding: 0; border: 0; cursor: zoom-in;
  aspect-ratio: 3 / 2;
  background: #E3E7E7;
}
.viewer__open img { width: 100%; height: 100%; object-fit: contain; }
.viewer__cap { margin-top: 12px; font-size: .9375rem; color: var(--muted); min-height: 1.5em; padding-right: 140px; }
.viewer__nav { display: flex; align-items: center; justify-content: flex-end; gap: 8px; margin-top: -40px; }
.viewer__count { margin-right: 8px; font-size: .875rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.viewer__rail {
  display: grid; grid-template-columns: 1fr 1fr; gap: 10px;
  max-height: calc((100vw - 2 * var(--gutter)) * .74 * 2 / 3);
  overflow-y: auto;
  padding: 3px;
  scrollbar-width: thin;
}
@media (min-width: 1280px) { .viewer__rail { max-height: calc((var(--container) - 2 * 48px) * .74 * 2 / 3); } }
.thumb {
  display: block; width: 100%; padding: 0; border: 0; cursor: pointer;
  background: #E3E7E7;
  outline: 2px solid transparent; outline-offset: 2px;
  transition: outline-color .2s var(--ease), opacity .2s var(--ease);
}
.thumb img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.thumb:not(.is-active) { opacity: .78; }
.thumb:hover { opacity: 1; }
.thumb.is-active { outline-color: var(--red); opacity: 1; }
.thumb:focus-visible { outline-color: var(--iron); opacity: 1; }

/* ---------- Closing ---------- */
.closing { background: var(--iron); color: var(--on-dark); padding-block: clamp(72px, 8vw, 120px); }
.closing__grid {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: clamp(16px, 2.4vw, 32px);
  align-items: end;
}
.closing__title {
  grid-column: 1 / span 7;
  margin: 0;
  font-family: var(--f-display); font-weight: 850; color: #fff;
  font-size: clamp(2.1rem, 1.2rem + 2.8vw, 3.75rem); line-height: 1.02; letter-spacing: -.025em;
  text-wrap: balance;
}
.closing__actions {
  grid-column: 8 / -1;
  display: flex; flex-wrap: wrap; align-items: center; gap: 18px 28px;
}

/* ---------- Footer ---------- */
.site-footer { background: var(--iron-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; text-decoration-color: var(--red); }
.site-footer__grid { display: grid; grid-template-columns: 1.3fr 1fr 1.2fr 1fr; gap: 32px; padding-bottom: 48px; }
.site-footer__brand .plate { margin-bottom: 14px; }
.site-footer__name { font-family: var(--f-display); font-size: 1.15rem; font-weight: 700; color: #fff; }
.site-footer__title { font-size: .875rem; font-weight: 600; color: #fff; 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(23, 24, 27, .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: .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, .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.6; 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: 1120px) {
  .nav { display: none; }
  .menu-toggle { display: block; }
}

@media (max-width: 1023px) {
  .intro__facade, .intro__text,
  .services__head, .services__list,
  .location__map, .location__info,
  .section-head .h2, .section-head__text,
  .closing__title, .closing__actions { grid-column: 1 / -1; }
  .intro__facade { position: static; max-width: 520px; margin-bottom: 44px; }
  .intro__facade img { aspect-ratio: 4 / 3; object-position: 50% 62%; }
  .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 24px; }
  .facts div { padding-bottom: 16px; }
  .section-head__text { margin-top: 16px; }

  .rooms__common-title, .amenities { grid-column: 1 / -1; }
  .amenities { margin-top: 12px; }

  .breakfast__text { grid-column: 1 / -1; padding-right: 0; padding-bottom: 36px; }
  .breakfast__buffet, .breakfast__plate { align-self: end; }
  .breakfast__buffet { grid-column: 1 / span 6; }
  .breakfast__plate { grid-column: 7 / -1; }

  .services__list { margin-top: 36px; }
  .location__info { grid-row: 1; margin-bottom: 40px; padding-left: 0; }
  .location__map { grid-row: 2; }


  .closing__actions { margin-top: 32px; }
  .site-footer__grid { grid-template-columns: 1fr 1fr; }
  .site-footer__brand { grid-column: 1 / -1; }

  .viewer { grid-template-columns: minmax(0, 1fr); }
  .viewer__rail {
    grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: clamp(110px, 22vw, 180px);
    max-height: none; overflow-x: auto; overflow-y: hidden;
    padding: 3px 3px 8px;
  }
}

@media (max-width: 899px) {
  :root { --header-h: 64px; }
  .site-header { position: sticky; background: rgba(255, 255, 255, .97); box-shadow: 0 1px 0 var(--line); }

  /* Photo with the headline in its sky, plate right under the photo */
  .hero { display: grid; grid-template-columns: minmax(0, 1fr); min-height: 0; background: var(--white); }
  .hero__media { position: relative; grid-area: 1 / 1; height: clamp(360px, 54svh, 560px); }
  .hero__media img { object-position: var(--hero-pos-m); }
  .hero__stage { display: contents; }
  .hero__title {
    grid-area: 1 / 1; align-self: start; position: relative; z-index: 2;
    padding: clamp(18px, 4vw, 32px) var(--gutter) 0;
    font-size: clamp(2.05rem, 1.2rem + 4.2vw, 3rem);
    max-width: 13em;
  }
  .hero__title .ln { display: inline; }
  .booking { grid-area: 2 / 1; z-index: 2; width: auto; margin: 0; }

  .booking__row { grid-template-columns: 1fr 1fr; }
  .booking__field { min-height: 82px; padding: 12px 16px; }
  #guestsField { grid-column: 1 / -1; border-left: 0; border-top: 1px solid rgba(255, 255, 255, .3); }
  .booking__submit { grid-column: 1 / -1; padding: 4px 10px 12px; }
  .booking__submit .btn { width: 100%; }
  .booking__note { padding: 10px 16px; }

  /* 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: 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; }

  /* Rooms stack, each with its own labels */
  .compare { grid-template-columns: minmax(0, 1fr); grid-template-rows: none; row-gap: 48px; }
  .compare__labels { display: none; }
  .room { grid-row: auto; grid-template-rows: none; display: block; }
  .room__media img { aspect-ratio: 3 / 2; }
  .room__specs { display: block; }
  .room__specs dt { position: static; width: auto; height: auto; overflow: visible; clip: auto; color: var(--muted); font-size: .9375rem; }
  .room__specs div:last-child { border-bottom: 1px solid var(--line); }
  .room__specs div { padding: 10px 0; }

  /* Tram strip turns vertical */
  .tram__head { display: block; margin-bottom: 18px; }
  .tram__title { margin-bottom: 6px; }
  .tram__line { grid-template-columns: none; padding-top: 0; }
  .tram__line::before { left: 10px; right: auto; top: 14px; bottom: 14px; width: 3px; height: auto; }
  .tram__stop {
    grid-template-rows: auto auto; grid-template-columns: 24px auto 1fr; column-gap: 14px;
    justify-items: start; text-align: left; align-items: baseline; padding: 7px 0;
  }
  .tram__stop::before { grid-row: 1 / span 2; grid-column: 1; align-self: center; justify-self: center; }
  .tram__name { grid-row: 1; grid-column: 2; margin: 0; font-size: .9375rem; }
  .tram__note { grid-row: 2; grid-column: 2; margin: 0; }
  .tram__count { grid-row: 1; grid-column: 3; justify-self: end; align-self: baseline; font-size: .8125rem; }

  .sticky-book {
    display: flex; gap: 10px; align-items: center;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
    background: rgba(255, 255, 255, .97);
    box-shadow: 0 -1px 0 var(--line), 0 -10px 30px -18px rgba(20, 22, 26, .35);
    transform: translateY(110%);
    transition: transform .35s var(--ease);
  }
  .sticky-book .btn { flex: 1; min-height: 50px; }
  .sticky-book__icon { width: 50px; height: 50px; 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) {
  .site-header__inner { gap: 10px; }
  .site-header__actions { gap: 2px; }
  .site-header__cta { display: none; }
  .brand__place { font-size: 1rem; }
  .booking__value { font-size: 1.2rem; }
  .facts { grid-template-columns: 1fr 1fr; }
  .services__list { grid-template-columns: 1fr; }
  .location__map, .location__map iframe { min-height: 360px; }
  .breakfast__grid { padding-top: 0; }
  .breakfast__text { margin-top: 0; padding-top: 36px; }
  .site-footer__grid { grid-template-columns: 1fr; }
  .closing__actions .plate--cta { width: 100%; }
  .viewer__cap { padding-right: 0; }
  .viewer__nav { margin-top: 8px; }
  .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-delay: 0s !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
