/* =========================================================
   Aruna Hotel İstanbul
   Palette: taken from the house itself. Walnut and oxblood
   from the window trims and carved furniture, apricot from
   the plastered façade. No gold, no tile blue, no red CTA.
   Type: Brygada 1918 (an old-style book face; its italic
   echoes the hand-painted oval sign at the door) with
   Commissioner for reading and interface text.
   ========================================================= */

:root {
  --ceviz: #2E1714;
  --ceviz-2: #46241F;
  --ceviz-3: #23110F;
  --pervaz: #7A2F2A;
  --siva: #F3DCC6;
  --siva-2: #FAF1E8;
  --siva-3: #EBCDB2;
  --surface: #FFFFFF;
  --ink: #2B1D1A;
  --muted: #6F5D56;
  --line: #E7D9CD;
  --line-strong: rgba(46, 23, 20, .2);

  --on-dark: #F6EBE2;
  --on-dark-muted: #CDB6A9;
  --line-dark: rgba(246, 235, 226, .16);

  --serif: "Brygada 1918", Georgia, "Times New Roman", serif;
  --sans: "Commissioner", "Segoe UI", system-ui, -apple-system, sans-serif;

  --container: 1280px;
  --gutter: clamp(16px, 4vw, 48px);
  --edge: clamp(16px, 3.2vw, 48px);
  --section: clamp(80px, 9vw, 136px);
  --header-h: 76px;
  --radius: 3px;
  --ease: cubic-bezier(.2, .7, .2, 1);

  /* Hero: one place to fit the headline onto the photo's sky.
     When the custom header photo arrives, adjust these four values. */
  --hero-pos: 0% 0%;
  --hero-copy-x: var(--edge);
  --hero-copy-y: clamp(28px, 3.4vw, 60px);
  --hero-copy-w: clamp(300px, 24vw, 450px);

  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(--surface);
  color: var(--ink);
  font-family: var(--sans);
  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 { margin: 0; }
dl, dd { margin: 0; }
address { font-style: normal; }
[hidden] { display: none !important; }

:focus-visible { outline: 2px solid var(--pervaz); outline-offset: 3px; }
.site-header :focus-visible,
.section--dark :focus-visible,
.site-footer :focus-visible,
.sticky-book :focus-visible,
.mobile-menu :focus-visible,
.lightbox :focus-visible { outline-color: var(--siva); }

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--siva); color: var(--ceviz); 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(--serif);
  font-weight: 500;
  font-size: clamp(2rem, 1.35rem + 2vw, 3.15rem);
  line-height: 1.08;
  letter-spacing: -.012em;
  color: var(--ceviz);
  margin: 0;
  text-wrap: balance;
}

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

/* ---------- Buttons & links ---------- */
.btn {
  --btn-bg: var(--ceviz);
  --btn-fg: var(--siva-2);
  --btn-bd: var(--btn-bg);
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px;
  padding: 12px 24px;
  border: 1px solid var(--btn-bd);
  border-radius: var(--radius);
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-family: var(--sans);
  font-size: .9375rem;
  font-weight: 600;
  letter-spacing: .005em;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .2s var(--ease), border-color .2s var(--ease), color .2s var(--ease);
  white-space: nowrap;
}
.btn--walnut:hover { --btn-bg: var(--ceviz-2); }
.btn--sm { min-height: 40px; padding: 8px 18px; font-size: .875rem; }
.btn--lg { min-height: 56px; padding: 14px 28px; font-size: 1rem; }
.btn--plaster { --btn-bg: var(--siva); --btn-fg: var(--ceviz); }
.btn--plaster:hover { --btn-bg: var(--siva-2); }
.btn--ghost { --btn-bg: transparent; --btn-fg: var(--ceviz); --btn-bd: var(--ceviz); }
.btn--ghost:hover { --btn-bg: var(--ceviz); --btn-fg: var(--siva-2); }
.btn__icon { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linejoin: round; stroke-linecap: round; }

.text-link {
  color: var(--ceviz);
  font-weight: 550;
  text-decoration: underline;
  text-decoration-color: var(--pervaz);
  text-decoration-thickness: 1px;
  text-underline-offset: 5px;
}
.text-link:hover { text-decoration-thickness: 2px; }

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

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

/* ---------- Brand: the oval sign at the door ---------- */
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: #fff; }
.brand__oval {
  display: inline-grid; place-items: center;
  min-width: 96px; height: 40px; padding: 0 16px 2px;
  border: 1.5px solid var(--siva);
  border-radius: 50%;
  font-family: var(--serif); font-style: italic; font-weight: 600;
  font-size: 1.32rem; line-height: 1; letter-spacing: .01em;
  color: #fff;
}
.brand__sub { display: grid; font-size: .8125rem; line-height: 1.25; color: var(--on-dark); font-weight: 500; letter-spacing: .02em; }
.brand__city { color: var(--on-dark-muted); font-weight: 400; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 60;
  height: var(--header-h);
  background: var(--ceviz);
  color: var(--on-dark);
  transition: box-shadow .3s var(--ease);
}
.site-header.is-scrolled { box-shadow: 0 1px 0 var(--line-dark); }
.site-header__inner {
  height: 100%;
  padding-inline: var(--edge);
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}

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

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

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

.menu-toggle {
  display: none;
  width: 44px; height: 44px; padding: 0;
  background: none; border: 0; cursor: pointer;
  position: relative;
}
.menu-toggle span {
  position: absolute; left: 11px; right: 11px; height: 1.5px; background: var(--on-dark);
  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(--ceviz);
  color: var(--on-dark);
  padding-block: 16px 40px;
  overflow-y: auto;
}
.mobile-menu__list li { border-bottom: 1px solid var(--line-dark); }
.mobile-menu__list a {
  display: block; padding: 18px 0;
  font-family: var(--serif); font-weight: 500; font-size: 1.6rem; color: #fff; text-decoration: none;
}
.mobile-menu__foot { display: grid; gap: 10px; margin-top: 32px; color: var(--on-dark-muted); }
.mobile-menu__foot a { text-decoration: none; }

/* ---------- Hero ---------- */
/* The photo fills the hero. The headline sits straight on the sky,
   no panel. The search is a plastered block at the lower-left corner,
   capped with the same oxblood trim that runs under the bay windows. */
.hero {
  position: relative;
  height: clamp(620px, min(calc(100svh - var(--header-h)), 54vw), 960px);
  background: #8DBFE6;
}
.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__copy {
  position: absolute; z-index: 2;
  left: var(--hero-copy-x);
  top: var(--hero-copy-y);
  width: var(--hero-copy-w);
  color: var(--ceviz);
}
.hero__place { font-size: .9375rem; font-weight: 550; color: var(--ceviz); }
.hero__title {
  margin: 12px 0 0;
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(2.4rem, .7rem + 2.55vw, 3.75rem);
  line-height: 1.02;
  letter-spacing: -.018em;
  color: var(--ceviz);
}
.hero__lead { margin-top: 18px; max-width: 29ch; font-size: 1.0625rem; line-height: 1.5; font-weight: 450; color: var(--ceviz); }

/* ---------- Booking ---------- */
.booking {
  position: absolute; z-index: 3;
  left: var(--edge); bottom: 0;
  width: min(1080px, calc(100% - 2 * var(--edge)));
  background: var(--siva);
  border-top: 4px solid var(--pervaz);
  color: var(--ceviz);
}
.booking__fields { display: grid; grid-template-columns: 1fr 1fr 1.2fr auto; }
.booking__field {
  display: grid; align-content: center; gap: 2px;
  text-align: left;
  padding: 18px 24px 16px;
  min-height: 96px;
  background: none; border: 0;
  color: var(--ceviz);
  cursor: pointer;
  transition: background-color .2s var(--ease);
}
.booking__field + .booking__field,
.booking__submit { border-left: 1px solid var(--line-strong); }
.booking__field:hover, .booking__field[aria-expanded="true"] { background: var(--siva-3); }
.booking__label { font-size: .8125rem; font-weight: 500; color: var(--muted); }
.booking__value {
  font-family: var(--serif); font-weight: 500; font-size: 1.45rem; line-height: 1.2; color: var(--ceviz);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.booking__value.is-empty { color: var(--muted); }
.booking__sub { font-size: .8125rem; color: var(--muted); min-height: 1.3em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.booking__submit { display: grid; align-content: center; padding: 16px 20px; }
.booking__foot {
  display: flex; flex-wrap: wrap; align-items: center; gap: 6px 24px;
  padding: 11px 24px 13px;
  border-top: 1px solid var(--line-strong);
  font-size: .8125rem; color: var(--muted);
}
.booking__note { margin-right: auto; }
.booking__room { display: flex; align-items: center; gap: 6px; color: var(--ceviz); }
.booking__room .link-btn { padding: 2px; font-size: .8125rem; }
.booking__mail { color: var(--ceviz); font-weight: 600; text-underline-offset: 4px; text-decoration-color: var(--pervaz); }

/* Popovers */
.popover {
  position: absolute; z-index: 40;
  top: calc(100% + 10px);
  background: var(--surface);
  color: var(--ink);
  border-radius: var(--radius);
  box-shadow: 0 30px 70px -24px rgba(35, 17, 15, .45), 0 0 0 1px rgba(46, 23, 20, .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(--serif); font-weight: 500; font-size: 1.15rem; color: var(--ceviz); margin: 4px 0 12px; text-transform: capitalize; }
.month__grid { display: grid; grid-template-columns: repeat(7, 1fr); }
.month__dow { font-size: .75rem; color: var(--muted); text-align: center; padding-bottom: 8px; }
.day {
  position: relative;
  aspect-ratio: 1 / 1; min-height: 40px;
  display: grid; place-items: center;
  background: none; border: 0; padding: 0; cursor: pointer;
  font-size: .9375rem; font-variant-numeric: tabular-nums; color: var(--ink);
}
.day span {
  position: relative; z-index: 1;
  display: grid; place-items: center;
  width: 40px; height: 40px; border-radius: 50%;
  transition: background-color .15s, color .15s;
}
.day:hover:not(:disabled) span { background: var(--siva); }
.day:disabled { color: #B9ABA4; cursor: default; }
.day:focus-visible { outline: none; }
.day:focus-visible span { box-shadow: 0 0 0 2px var(--pervaz); }
.day.is-today span { box-shadow: inset 0 0 0 1px var(--line-strong); }
.day.in-range::before, .day.in-preview::before,
.day.is-start::before, .day.is-end::before {
  content: ""; position: absolute; inset: 4px 0; background: var(--siva-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(--ceviz); color: #fff; }
.day.is-start:hover span, .day.is-end:hover span { background: var(--ceviz-2); }
.day--blank { pointer-events: none; }

.guests { width: 380px; 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; color: var(--ceviz); }
.counter__hint { font-size: .8125rem; color: var(--muted); }
.counter__ctrl { display: flex; align-items: center; gap: 14px; }
.counter__ctrl output { min-width: 1.5ch; text-align: center; font-variant-numeric: tabular-nums; font-size: 1.0625rem; }
.guests__ages { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.guests__ages:not(:empty) { padding-top: 16px; }
.age-field { display: grid; gap: 4px; font-size: .8125rem; color: var(--muted); }
.age-field select {
  appearance: none; -webkit-appearance: none;
  width: 100%; padding: 10px 34px 10px 12px;
  border: 1px solid var(--line); border-radius: var(--radius);
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232E1714' 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: #A3302B; }
.guests__note { font-size: .8125rem; line-height: 1.45; color: var(--muted); padding-top: 14px; }
.guests__error { font-size: .8125rem; font-weight: 600; color: #A3302B; padding-top: 10px; }
.guests__foot { display: flex; justify-content: flex-end; padding-top: 18px; }

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

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

.facts {
  grid-column: 1 / -1;
  display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0 clamp(16px, 2.4vw, 32px);
  margin-top: clamp(56px, 6vw, 88px);
}
.facts div { padding-top: 16px; border-top: 2px solid var(--pervaz); }
.facts dt { font-size: .8125rem; color: var(--muted); }
.facts dd { margin-top: 4px; color: var(--ceviz); font-weight: 550; line-height: 1.45; }

/* ---------- Out the door: the walking route ---------- */
.route {
  background: var(--siva);
  padding-block: clamp(72px, 8vw, 120px);
  overflow: hidden;
}
.route__head {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: clamp(16px, 2.4vw, 32px); align-items: end;
  margin-bottom: clamp(44px, 5vw, 72px);
}
.route__head .h2 { grid-column: 1 / span 6; }
.route__intro { grid-column: 8 / -1; color: var(--muted); max-width: 44ch; }

.route__line {
  --dot-y: 118px;             /* where the street line runs */
  position: relative;
  display: grid;
  grid-template-columns: 1.25fr repeat(8, minmax(0, 1fr));
  column-gap: clamp(8px, 1.2vw, 18px);
}
/* the street */
.route__line::before {
  content: ""; position: absolute; left: 0; right: 0; top: var(--dot-y);
  height: 2px; margin-top: -1px;
  background: var(--ceviz);
  transform-origin: left center;
}
.route__line li {
  position: relative;
  display: grid;
  grid-template-rows: var(--dot-y) auto;
  align-items: end;
}
.route__line li:not(.route__start) {
  grid-template-columns: auto 1fr;
  grid-template-areas: "min unit" "name name";
  column-gap: 4px;
}
.route__min {
  grid-area: min;
  align-self: end;
  padding-bottom: 20px;
  font-family: var(--serif); font-weight: 500;
  font-size: clamp(2.6rem, 1.2rem + 3vw, 4.6rem);
  line-height: .9;
  letter-spacing: -.03em;
  color: var(--ceviz);
  font-variant-numeric: lining-nums;
}
.route__unit {
  grid-area: unit; align-self: end;
  padding-bottom: 24px;
  font-size: .875rem; font-weight: 550; color: var(--pervaz);
}
/* the stop: a stud on the street */
.route__line li:not(.route__start)::after {
  content: ""; position: absolute; left: 0; top: var(--dot-y);
  width: 13px; height: 13px; margin: -6.5px 0 0;
  border-radius: 50%;
  background: var(--ceviz);
  box-shadow: 0 0 0 4px var(--siva);
}
.route__name {
  grid-area: name;
  align-self: start;
  padding-top: 20px;
  font-size: .9375rem; line-height: 1.35; font-weight: 500; color: var(--ceviz);
  max-width: 16ch;
}
.route__start { grid-template-rows: var(--dot-y) auto; }
.route__sign {
  position: absolute; left: 0; top: var(--dot-y);
  transform: translateY(-50%);
  display: grid; place-items: center;
  width: 128px; height: 56px; padding-bottom: 3px;
  border: 2px solid var(--ceviz);
  border-radius: 50%;
  background: var(--ceviz);
  font-family: var(--serif); font-style: italic; font-weight: 600;
  font-size: 1.6rem; line-height: 1; color: var(--siva);
  box-shadow: 0 0 0 6px var(--siva);
}
.route__start .route__name { grid-row: 2; padding-top: 40px; color: var(--muted); font-weight: 500; }

/* One reveal: the street draws itself once, then the stops appear */
.route__line.will-draw::before { transform: scaleX(0); }
.route__line.will-draw li:not(.route__start) { opacity: 0; }
.route__line.is-drawn::before { transform: scaleX(1); transition: transform 1.5s cubic-bezier(.55, .08, .25, 1); }
.route__line.is-drawn li:not(.route__start) { opacity: 1; transition: opacity .5s var(--ease); }
.route__line.is-drawn li:nth-child(2) { transition-delay: .15s; }
.route__line.is-drawn li:nth-child(3) { transition-delay: .3s; }
.route__line.is-drawn li:nth-child(4) { transition-delay: .45s; }
.route__line.is-drawn li:nth-child(5) { transition-delay: .6s; }
.route__line.is-drawn li:nth-child(6) { transition-delay: .75s; }
.route__line.is-drawn li:nth-child(7) { transition-delay: .9s; }
.route__line.is-drawn li:nth-child(8) { transition-delay: 1.05s; }
.route__line.is-drawn li:nth-child(9) { transition-delay: 1.2s; }

/* ---------- 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 6; }
.section-head__text { grid-column: 8 / -1; color: var(--muted); max-width: 52ch; }

/* ---------- Rooms ---------- */
.room-tabs {
  display: flex; align-items: flex-end;
  border-bottom: 1px solid var(--line);
  overflow-x: auto;
  scrollbar-width: none;
}
.room-tabs::-webkit-scrollbar { display: none; }
.room-tabs__group {
  flex: none;
  align-self: stretch;
  display: flex; align-items: flex-start;
  padding: 3px 18px 0 0;
  font-family: var(--serif); font-style: italic; font-size: 1rem; color: var(--pervaz);
}
.room-tabs__group--flats { margin-left: 10px; padding-left: 26px; border-left: 1px solid var(--line); }
.room-tab {
  position: relative;
  flex: 1 1 0;
  min-width: max-content;
  display: grid; gap: 2px; align-content: start;
  padding: 0 22px 18px 0;
  text-align: left; cursor: pointer;
  background: none; border: 0;
}
.room-tab::after {
  content: ""; position: absolute; left: 0; right: 22px; bottom: -1px; height: 3px;
  background: var(--pervaz);
  transform: scaleX(0); transform-origin: left;
  transition: transform .35s var(--ease);
}
.room-tab__name { font-weight: 550; font-size: 1rem; color: #7E6D66; transition: color .2s var(--ease); white-space: nowrap; }
.room-tab__meta { font-size: .8125rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.room-tab:hover .room-tab__name, .room-tab.is-active .room-tab__name { color: var(--ceviz); }
.room-tab.is-active::after { transform: scaleX(1); }
.room-tab:focus-visible { outline-offset: -2px; }

.rooms__stage { display: grid; margin-top: clamp(32px, 3.6vw, 48px); }
.room {
  grid-area: 1 / 1;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: clamp(16px, 2.4vw, 32px);
  align-items: center;
  opacity: 0; visibility: hidden;
  transition: opacity .4s var(--ease), visibility 0s linear .4s;
}
.room.is-active { opacity: 1; visibility: visible; transition: opacity .4s var(--ease), visibility 0s; }
.room__body { grid-column: 1 / span 4; grid-row: 1; display: grid; gap: 18px; justify-items: start; }
.room__media { grid-column: 6 / -1; grid-row: 1; }
.room__media img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.room__title {
  font-family: var(--serif); font-weight: 500; font-size: clamp(1.6rem, 1.25rem + .9vw, 2.15rem);
  line-height: 1.1; letter-spacing: -.01em; color: var(--ceviz); margin: 0;
}
.room__desc { color: var(--ink); }
.room__specs { width: 100%; display: grid; }
.room__specs div { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: .9375rem; }
.room__specs div:first-child { border-top: 1px solid var(--line); }
.room__specs dt { color: var(--muted); }
.room__specs dd { color: var(--ceviz); font-weight: 550; text-align: right; }
.room__body .btn { margin-top: 6px; }

.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: 24px; border-top: 1px solid var(--line);
}
.rooms__common-title { grid-column: 1 / span 3; margin: 0; font-family: var(--serif); font-size: 1.15rem; font-weight: 500; color: var(--ceviz); }
.amenities { grid-column: 4 / -1; display: flex; flex-wrap: wrap; gap: 8px 30px; font-size: .9375rem; color: var(--muted); }

/* ---------- Dark band: breakfast and garden ---------- */
.section--dark { background: var(--ceviz); color: var(--on-dark); }
.section--dark .h2 { color: #fff; }
.section--dark .lead { color: var(--on-dark); }

.evening__grid {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: clamp(16px, 2.4vw, 32px);
  row-gap: clamp(40px, 4.4vw, 64px);
}
.evening__main { grid-column: 1 / span 7; grid-row: 1 / span 2; }
.evening__main img { width: 100%; height: 100%; min-height: 520px; object-fit: cover; object-position: 50% 55%; }
.evening__text { grid-column: 9 / -1; grid-row: 1; align-self: start; }
.evening__text .h2 { margin-bottom: 26px; max-width: 12ch; }
.evening__text p + p { margin-top: 16px; color: var(--on-dark-muted); }
.evening__side { grid-column: 9 / -1; grid-row: 2; align-self: end; }
.evening__side img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.section--dark figcaption { color: var(--on-dark-muted); }

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

/* ---------- Services ---------- */
.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; justify-items: start; }
.services__intro { color: var(--muted); max-width: 34ch; margin-top: 8px; }
.services__list {
  grid-column: 6 / -1;
  display: grid; grid-template-columns: 1fr 1fr; column-gap: clamp(20px, 3vw, 48px);
}
.services__list div { padding: 18px 0 20px; border-top: 1px solid var(--line); }
.services__list dt { font-weight: 600; color: var(--ceviz); }
.services__list dd { margin-top: 2px; color: var(--muted); font-size: .9375rem; }

/* ---------- Location ---------- */
.location { background: var(--siva-2); }
.location__grid {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: clamp(16px, 2.4vw, 32px);
  align-items: stretch;
}
.location__info { grid-column: 1 / span 4; display: flex; flex-direction: column; align-items: flex-start; }
.location__map { grid-column: 6 / -1; min-height: 540px; background: var(--line); }
.location__map iframe { display: block; width: 100%; height: 100%; min-height: 540px; border: 0; filter: saturate(.6) sepia(.08); }
.location__address {
  display: grid; margin-bottom: 30px;
  font-family: var(--serif); font-size: 1.35rem; line-height: 1.4; color: var(--ceviz);
}
.distances { width: 100%; margin-bottom: 32px; }
.distances__title { font-family: var(--serif); font-style: italic; font-size: 1.05rem; font-weight: 500; color: var(--pervaz); margin: 0 0 6px; }
.distances ul + .distances__title { margin-top: 26px; }
.distances li {
  display: flex; justify-content: space-between; gap: 16px;
  padding: 9px 0; border-bottom: 1px solid var(--line); font-size: .9375rem;
}
.distances li span:last-child { color: var(--ceviz); font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }

/* ---------- Gallery ---------- */
.gallery__title { margin-bottom: clamp(32px, 4vw, 52px); }
.gallery__grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  grid-auto-rows: clamp(170px, 18vw, 280px);
  gap: clamp(8px, 1.1vw, 14px);
}
.gallery__grid li { min-width: 0; }
.g-a { grid-column: 1 / span 7; grid-row: span 2; }
.g-b { grid-column: 8 / -1; }
.g-c { grid-column: 8 / -1; }
.g-d { grid-column: 1 / span 5; }
.g-e { grid-column: 6 / span 3; }
.g-f { grid-column: 9 / -1; }
.g-g { grid-column: 1 / span 3; }
.g-h { grid-column: 4 / span 3; }
.g-i { grid-column: 7 / span 3; }
.g-j { grid-column: 10 / -1; }
.gallery__item {
  display: block; width: 100%; height: 100%; padding: 0; border: 0;
  background: var(--line); cursor: zoom-in; overflow: hidden;
}
.gallery__item img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.gallery__item:hover img { transform: scale(1.025); }
.gallery__item:focus-visible { outline-offset: 2px; }

/* ---------- Closing ---------- */
.closing { background: var(--siva); padding-block: clamp(72px, 8vw, 120px); }
.closing__inner {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: clamp(16px, 2.4vw, 32px); align-items: center;
}
.closing__inner > :not(.closing__media) { grid-column: 1 / span 6; justify-self: start; }
.closing__media { grid-column: 8 / -1; grid-row: 1 / span 4; }
.closing__media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.closing__sign {
  display: grid; place-items: center;
  width: 112px; height: 48px; padding-bottom: 3px;
  border: 1.5px solid var(--ceviz); border-radius: 50%;
  font-family: var(--serif); font-style: italic; font-weight: 600; font-size: 1.35rem; color: var(--ceviz);
  margin-bottom: 28px;
}
.closing__title {
  font-family: var(--serif); font-weight: 500; color: var(--ceviz);
  font-size: clamp(2.1rem, 1.3rem + 2.6vw, 3.6rem); line-height: 1.05; letter-spacing: -.015em; margin: 0;
  max-width: 17ch; text-wrap: balance;
}
.closing__text { margin-top: 18px; max-width: 46ch; color: var(--muted); }
.closing__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; margin-top: 32px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ceviz-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(--siva); }
.site-footer__grid { display: grid; grid-template-columns: 1.3fr 1fr 1.2fr 1fr; gap: 32px; padding-bottom: 48px; }
.brand__oval--lg { margin-bottom: 18px; }
.site-footer__name { font-family: var(--serif); font-size: 1.2rem; font-weight: 500; color: #fff; margin-bottom: 4px; }
.site-footer__title { font-family: var(--serif); font-style: italic; font-size: 1rem; font-weight: 500; color: var(--siva); 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(30, 14, 12, .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, .2); color: #fff; cursor: pointer;
}
.lightbox__btn:hover { background: rgba(255, 255, 255, .16); }
.lightbox__btn svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.lightbox__close { top: 20px; right: 20px; }
.lightbox__prev { left: 20px; top: 50%; transform: translateY(-50%); }
.lightbox__next { right: 20px; top: 50%; transform: translateY(-50%); }

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

@media (min-width: 900px) and (max-width: 1439px) {
  .hero__lead { display: none; }
}
@media (min-width: 900px) and (max-width: 1199px) {
  :root { --hero-copy-w: 250px; }
  .hero__place { display: none; }
}
@media (min-width: 900px) and (max-width: 1279px) {
  .route__line { --dot-y: 104px; }
  .route__name { font-size: .875rem; }
}

@media (max-width: 1023px) {
  .intro__text, .intro__media,
  .evening__text, .evening__main, .evening__side,
  .services__head, .services__list,
  .location__map, .location__info,
  .room__media, .room__body,
  .route__head .h2, .route__intro,
  .section-head .h2, .section-head__text { grid-column: 1 / -1; }
  .intro__media { margin-top: 40px; }
  .intro__media img { aspect-ratio: 3 / 2; }
  .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 24px; margin-top: 48px; }
  .facts div { padding-bottom: 18px; }
  .section-head__text, .route__intro { margin-top: 16px; }

  .room { align-items: start; }
  .room__media { grid-row: 1; }
  .room__body { grid-row: 2; margin-top: 24px; }
  .rooms__common-title, .amenities { grid-column: 1 / -1; }
  .amenities { margin-top: 12px; }

  .evening__text { grid-row: 1; }
  .evening__main { grid-row: 2; }
  .evening__main img { aspect-ratio: 3 / 2; height: auto; min-height: 0; }
  .evening__side { grid-row: 3; }
  .services__list { margin-top: 36px; }
  .location__info { grid-row: 1; margin-bottom: 40px; }
  .location__map { grid-row: 2; }

  .site-footer__grid { grid-template-columns: 1fr 1fr; }
  .site-footer__brand { grid-column: 1 / -1; }
  .closing__inner > :not(.closing__media) { grid-column: 1 / -1; }
  .closing__media { grid-column: 1 / -1; grid-row: auto; order: 9; margin-top: 48px; }

  /* The route turns vertical: the street runs down the left edge */
  .route__line {
    grid-template-columns: minmax(0, 1fr);
    padding-left: 34px;
    row-gap: 0;
  }
  .route__line::before {
    left: 6px; right: auto; top: 30px; bottom: 30px;
    width: 2px; height: auto; margin: 0;
    transform-origin: center top;
  }
  .route__line.will-draw::before { transform: scaleY(0); }
  .route__line.is-drawn::before { transform: scaleY(1); }
  .route__line li,
  .route__line li:not(.route__start) {
    grid-template-rows: none;
    grid-template-columns: 4.2rem 2.2rem minmax(0, 1fr);
    grid-template-areas: "min unit name";
    align-items: baseline;
    padding: 10px 0;
    border-bottom: 1px solid var(--line-strong);
  }
  .route__line li:not(.route__start)::after { left: -34px; top: 50%; margin-top: -6.5px; }
  .route__min { padding: 0; font-size: 2.6rem; text-align: right; padding-right: 6px; }
  .route__unit { padding: 0; }
  .route__name { padding: 0 0 0 8px; max-width: none; font-size: 1rem; }
  .route__start {
    display: flex !important; align-items: center; gap: 18px;
    padding: 0 0 18px !important;
    margin-left: -34px;
    border-bottom: 1px solid var(--line-strong);
  }
  .route__sign { position: relative; top: auto; transform: none; width: 104px; height: 46px; font-size: 1.35rem; flex: none; box-shadow: 0 0 0 5px var(--siva); }
  .route__start .route__name { padding: 0; grid-row: auto; }
}

@media (max-width: 899px) {
  /* Photo on top, headline on its sky; the search right below */
  .hero { height: auto; display: grid; grid-template-columns: minmax(0, 1fr); background: var(--siva); }
  .hero__media { position: relative; grid-area: 1 / 1; height: clamp(460px, 76svh, 640px); }
  .hero__copy {
    grid-area: 1 / 1; align-self: start; position: relative;
    left: auto; top: auto; width: auto; max-width: var(--hero-copy-w-m, 236px);
    margin: 20px 0 0 var(--gutter);
  }
  .hero__place { display: none; }
  .hero__title { font-size: clamp(1.8rem, 1.1rem + 3.2vw, 2.4rem); margin-top: 0; }
  .hero__lead { display: none; }

  .booking { position: relative; left: auto; bottom: auto; grid-area: 2 / 1; width: auto; border-top-width: 4px; }
  .booking__fields { grid-template-columns: 1fr 1fr; }
  .booking__field { min-height: 84px; padding: 14px var(--gutter); }
  .booking__field:nth-child(2) { border-left: 1px solid var(--line-strong); }
  #guestsField { grid-column: 1 / -1; border-left: 0; border-top: 1px solid var(--line-strong); }
  .booking__submit { grid-column: 1 / -1; border-left: 0; padding: 4px var(--gutter) 14px; }
  .booking__submit .btn { width: 100%; }
  .booking__foot { padding: 10px var(--gutter) 18px; justify-content: space-between; }

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

  .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(46, 23, 20, .96);
    -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(246, 235, 226, .35); }
  .sticky-book__icon:hover { background: rgba(246, 235, 226, .08); }
  .sticky-book.is-visible { transform: none; }
  .site-footer { padding-bottom: 76px; }

  .gallery__grid { grid-template-columns: 1fr 1fr; grid-auto-rows: clamp(150px, 38vw, 260px); }
  .gallery__grid li { grid-column: auto; grid-row: auto; }
  .gallery__grid .g-a { grid-column: 1 / -1; }
  .gallery__grid .g-j { grid-column: 1 / -1; }
}
@keyframes sheet { from { transform: translateY(100%); } to { transform: none; } }

/* Tablets show the full hero photo; the headline breaks into three short lines */
@media (min-width: 600px) and (max-width: 899px) {
  :root { --hero-copy-w-m: 205px; }
  .hero__media { height: clamp(460px, 72svh, 640px); }
  .hero__title { font-size: 1.9rem; }
}

@media (max-width: 640px) {
  :root { --header-h: 66px; }
  .site-header__inner { gap: 10px; }
  .site-header__actions { gap: 4px; }
  .brand { gap: 10px; }
  .brand__oval { min-width: 84px; height: 36px; font-size: 1.18rem; padding-inline: 13px; }
  .site-header__cta { display: none; }
  .booking__value { font-size: 1.25rem; }
  .facts { 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%; }
  .lightbox__prev, .lightbox__next { top: auto; bottom: 64px; transform: none; }
  .lightbox__cap { bottom: 132px; padding-inline: 24px; }
  .room-tab { padding-right: 18px; }
  .room-tab::after { right: 18px; }
  .room-tabs__group { padding-right: 14px; }
  .room-tabs__group--flats { margin-left: 4px; padding-left: 16px; }
}

@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; }
}
