/* =========================================================
   Sunrise Hotel Istanbul
   Palette: the ultramarine of the Marmara seen from the roof
   terrace, the pink of the sky at first light, and the
   pale morning blue of the walls. One shape carries the
   name: the sun disc, rising once when the page opens.
   Type: Young Serif for headlines, Hanken Grotesk for text.
   ========================================================= */

:root {
  --ultra: #22308C;
  --ultra-2: #2E3FA6;
  --ultra-3: #18225F;
  --pink: #f7cd5d;
  --pink-2: #FFC106;
  --rose: #A23F55;
  --sabah: #F3F5FB;
  --sabah-2: #E7EBF6;
  --surface: #FFFFFF;
  --ink: #1B2147;
  --muted: #585E80;
  --line: #DADDEC;

  --on-dark: #EEF0FA;
  --on-dark-muted: #B9BFE3;
  --line-dark: rgba(238, 240, 250, .18);

  --f-display: "Young Serif", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --f-body: "Hanken Grotesk", "Segoe UI", system-ui, -apple-system, sans-serif;

  --container: 1240px;
  --gutter: clamp(16px, 4vw, 48px);
  --section: clamp(80px, 9vw, 136px);
  --header-h: 74px;
  --radius: 4px;
  --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(--surface);
  color: var(--ink);
  font-family: var(--f-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

:focus-visible { outline: 2px solid var(--rose); outline-offset: 3px; }
.section--dark :focus-visible,
.closing :focus-visible,
.site-footer :focus-visible,
.sticky-book :focus-visible,
.lightbox :focus-visible,
.deck :focus-visible { outline-color: var(--pink); }

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

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

figcaption { margin-top: 12px; font-size: .875rem; color: var(--muted); }

/* ---------- Buttons & links ---------- */
.btn {
  --btn-bg: var(--ultra);
  --btn-fg: #fff;
  --btn-bd: var(--btn-bg);
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px;
  padding: 12px 26px;
  border: 1px solid var(--btn-bd);
  border-radius: 999px;
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-family: var(--f-body);
  font-size: .975rem;
  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--ultra:hover { --btn-bg: var(--ultra-2); }
.btn--sm { min-height: 40px; padding: 8px 20px; font-size: .9rem; }
.btn--lg { min-height: 56px; padding: 14px 32px; font-size: 1.02rem; }
.btn--pink { --btn-bg: var(--pink); --btn-fg: var(--ultra); }
.btn--pink:hover { --btn-bg: var(--pink-2); }
.btn--ghost { --btn-bg: transparent; --btn-fg: var(--ultra); --btn-bd: var(--ultra); }
.btn--ghost:hover { --btn-bg: var(--ultra); --btn-fg: #fff; }

.text-link {
  color: var(--ultra);
  font-weight: 550;
  text-decoration: underline;
  text-decoration-color: var(--pink);
  text-decoration-thickness: 2px;
  text-underline-offset: 5px;
}
.text-link:hover { text-decoration-color: var(--rose); }
.text-link--light { color: var(--on-dark); }
.text-link--light:hover { text-decoration-color: var(--pink-2); }

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

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

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 60;
  height: var(--header-h);
  background: var(--surface);
  color: var(--ultra);
  transition: box-shadow .3s var(--ease);
}
.site-header.is-scrolled { 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: 12px; text-decoration: none; color: var(--ultra); }
.brand__mark, .site-footer__mark { width: 34px; height: 34px; flex: none; }
.brand__sun { fill: var(--pink); }
.brand__line { fill: none; stroke: var(--ultra); stroke-width: 2.4; stroke-linecap: round; }
.brand__name { font-family: var(--f-display); font-size: 1.32rem; line-height: 1; white-space: nowrap; }
.brand__place { font-family: var(--f-body); font-size: .9rem; font-weight: 500; color: var(--muted); margin-left: 4px; letter-spacing: .01em; }

.nav__list { display: flex; gap: clamp(18px, 2.3vw, 36px); }
.nav__list a {
  text-decoration: none; color: var(--ink);
  font-size: .975rem; font-weight: 500;
  padding-block: 8px;
  background: linear-gradient(var(--pink), var(--pink)) 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: .84rem; font-weight: 600; letter-spacing: .04em;
  color: var(--muted);
}
.lang__btn + .lang__btn { border-left: 1px solid var(--line); }
.lang__btn.is-active { color: var(--ultra); }

.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; border-radius: 2px; background: var(--ultra);
  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(--surface);
  padding-block: 8px 40px;
  overflow-y: auto;
  border-top: 1px solid var(--line);
}
.mobile-menu__list li { border-bottom: 1px solid var(--line); }
.mobile-menu__list a {
  display: block; padding: 18px 0;
  font-family: var(--f-display); font-size: 1.7rem; color: var(--ultra); text-decoration: none;
}
.mobile-menu__foot { display: grid; gap: 10px; margin-top: 32px; color: var(--muted); }
.mobile-menu__foot a { text-decoration: none; }

/* ---------- Hero ---------- */
/* The headline sits inside a dawn-pink sun disc placed in the sky.
   Change these three variables (and --hero-pos) to fit another photo. */
.hero {
  --hero-pos: 50% 40%;
  --sun-size: clamp(270px, 25vw, 470px);
  --sun-x: max(var(--gutter), calc((100vw - var(--container)) / 2 + var(--gutter)));
  --sun-y: clamp(28px, 5.2vh, 64px);

  position: relative;
  height: clamp(600px, min(calc(100svh - var(--header-h)), 54vw), 960px);
  background: #3A6FC4;
  overflow: hidden;
}
.hero__media { position: absolute; inset: 0; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; object-position: var(--hero-pos); }

.hero__sun {
  position: absolute; z-index: 2;
  left: var(--sun-x);
  top: var(--sun-y);
  width: var(--sun-size);
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--pink);
  color: var(--ultra);
  container-type: inline-size;
  display: grid; place-items: center;
  text-align: center;
  animation: rise 1.5s cubic-bezier(.16, .8, .24, 1) .2s both;
}
@keyframes rise {
  from { transform: translateY(22%); opacity: 0; }
  40% { opacity: 1; }
  to { transform: none; opacity: 1; }
}
.hero__sun-inner { width: 78%; display: grid; justify-items: center; gap: 4.2cqi; }
.hero__place { font-size: max(.8125rem, 3.5cqi); font-weight: 600; letter-spacing: .01em; }
.hero__title {
  margin: 0;
  font-family: var(--f-display);
  font-weight: 400;
  font-size: 12.2cqi;
  line-height: 1.02;
  letter-spacing: -.012em;
  text-wrap: balance;
}
:lang(en) .hero__title { font-size: 10.6cqi; }
.hero__dawn {
  display: inline-flex; align-items: baseline; gap: .45em;
  font-size: max(.8125rem, 3.5cqi);
  font-weight: 500;
  padding-top: 3.4cqi;
  border-top: 1.5px solid rgba(34, 48, 140, .35);
}
.dawn-time { font-family: var(--f-display); font-size: 1.32em; font-variant-numeric: tabular-nums; }

.hero__booking {
  position: absolute; z-index: 3;
  left: 0; right: 0;
  bottom: clamp(20px, 3vw, 40px);
}
.hero__booking .booking { margin-left: var(--sun-x); width: min(1100px, calc(100% - var(--sun-x) - var(--gutter))); }

/* ---------- Booking ---------- */
.booking {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr 1.2fr auto;
  align-items: stretch;
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: 0 24px 60px -24px rgba(24, 34, 95, .5);
}
.booking__field {
  display: grid; align-content: center; gap: 1px;
  text-align: left;
  padding: 14px 24px;
  min-height: 88px;
  background: none; border: 0;
  color: var(--ink);
  cursor: pointer;
  transition: background-color .2s var(--ease);
}
.booking__field:first-child { border-radius: var(--radius) 0 0 var(--radius); }
.booking__field + .booking__field { border-left: 1px solid var(--line); }
.booking__field:hover, .booking__field[aria-expanded="true"] { background: var(--sabah); }
.booking__label { font-size: .8125rem; font-weight: 500; color: var(--muted); }
.booking__value {
  font-family: var(--f-display); font-size: 1.36rem; line-height: 1.25; color: var(--ultra);
  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; justify-items: center; gap: 6px; padding: 12px 16px 10px 8px; }
.booking__note { font-size: .75rem; line-height: 1.3; color: var(--muted); text-align: center; }

/* Popovers */
.popover {
  position: absolute; z-index: 40;
  top: calc(100% + 10px);
  background: var(--surface);
  color: var(--ink);
  border-radius: 8px;
  box-shadow: 0 30px 70px -20px rgba(24, 34, 95, .5), 0 0 0 1px rgba(34, 48, 140, .08);
  animation: pop .22s var(--ease);
}
/* In the hero the bar sits low, so the panels open upwards */
.hero .popover { top: auto; bottom: calc(100% + 10px); animation-name: popUp; }
@keyframes pop { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
@keyframes popUp { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

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

.month__caption { font-family: var(--f-display); font-size: 1.15rem; color: var(--ultra); 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(--sabah-2); }
.day:disabled { color: #AAB0C8; cursor: default; }
.day:focus-visible { outline: none; }
.day:focus-visible span { box-shadow: 0 0 0 2px var(--rose); }
.day.is-today span { box-shadow: inset 0 0 0 1px var(--line); }
.day.in-range::before, .day.in-preview::before,
.day.is-start::before, .day.is-end::before {
  content: ""; position: absolute; inset: 4px 0; background: #FCE6E4;
}
.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(--ultra); color: #fff; }
.day.is-start:hover span, .day.is-end:hover span { background: var(--ultra-2); }
.day--blank { pointer-events: none; }

.guests { left: 0; width: 370px; padding: 8px 24px 20px; }
.counter {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 15px 0; border-bottom: 1px solid var(--line);
}
.counter__title { font-weight: 600; color: var(--ultra); }
.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: 16px 0; border-bottom: 1px solid var(--line); }
.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='%2322308C' 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(--ink);
}
.age-field select[aria-invalid="true"] { border-color: #B3261E; }
.guests__error { font-size: .8125rem; font-weight: 600; color: #B3261E; padding-top: 10px; }
.guests__foot { display: flex; justify-content: flex-end; padding-top: 18px; }

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

/* ---------- Intro ---------- */
.intro { background: var(--sabah); }
.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 8; }
.intro__text .h2 { margin-bottom: 30px; max-width: 17ch; }
.intro__text .lead { max-width: 58ch; }
.intro__text p + p { margin-top: 18px; color: var(--muted); max-width: 60ch; }

.facts {
  grid-column: 10 / -1;
  display: grid;
  align-self: end;
}
.facts div { padding: 13px 0; border-bottom: 1px solid var(--line); }
.facts div:first-child { border-top: 2px solid var(--ultra); }
.facts dt { font-size: .8125rem; color: var(--muted); }
.facts dd { color: var(--ultra); 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; }

/* ---------- Dark band: terrace ---------- */
.section--dark { background: var(--ultra); color: var(--on-dark); }
.section--dark .h2 { color: #fff; }
.section--dark .lead { color: var(--on-dark); }
.section--dark figcaption { color: var(--on-dark-muted); }

.terrace__grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: clamp(16px, 2.4vw, 32px);
  row-gap: clamp(28px, 3.4vw, 48px);
  align-items: start;
}
.terrace__text { grid-column: 1 / span 5; grid-row: 1; align-self: center; }
.terrace__text .h2 { margin-bottom: 26px; max-width: 12ch; }
.terrace__text p + p { margin-top: 16px; color: var(--on-dark-muted); max-width: 52ch; }
.terrace__main { grid-column: 7 / -1; grid-row: 1; align-self: stretch; }
.terrace__main img { width: 100%; height: 100%; min-height: 360px; aspect-ratio: 4 / 3; object-fit: cover; object-position: 30% 50%; }
.terrace__strip {
  grid-column: 1 / -1; grid-row: 2;
  display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(16px, 2.4vw, 32px);
}
.terrace__strip img { width: 100%; height: clamp(220px, 24vw, 360px); object-fit: cover; }
.terrace__sea img { object-position: 50% 62%; }
.terrace__eve img { object-position: 50% 55%; }

/* ---------- Rooms ---------- */
.deck {
  display: flex; gap: 10px;
  height: clamp(420px, 40vw, 580px);
}
.deck__panel {
  position: relative;
  flex: 1 1 0;
  min-width: 0;
  padding: 0; border: 0; margin: 0;
  overflow: hidden;
  background: var(--sabah-2);
  cursor: pointer;
  text-align: left;
  transition: flex-grow .6s var(--ease);
}
.deck__panel.is-active { flex-grow: 3.3; cursor: default; }
.deck__panel img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.deck__panel:not(.is-active):hover img { transform: scale(1.04); }
.deck__panel::after {
  content: ""; position: absolute; inset: 45% 0 0 0;
  background: linear-gradient(to top, rgba(17, 23, 64, .78), rgba(17, 23, 64, 0));
  pointer-events: none;
}
.deck__panel:not(.is-active)::before {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: rgba(17, 23, 64, .22);
  transition: background-color .3s var(--ease);
  pointer-events: none;
}
.deck__panel:not(.is-active):hover::before { background: rgba(17, 23, 64, .08); }
.deck__label {
  position: absolute; z-index: 2; left: 0; right: 0; bottom: 0;
  display: grid; gap: 2px;
  padding: 22px 22px 20px;
  color: #fff;
}
.deck__name { font-family: var(--f-display); font-size: clamp(1.2rem, 1rem + .6vw, 1.6rem); line-height: 1.12; }
.deck__meta { font-size: .875rem; color: var(--on-dark); }
.deck__panel.is-active .deck__label::before {
  content: ""; width: 14px; height: 14px; border-radius: 50%; background: var(--pink); margin-bottom: 10px;
}
.deck__panel:focus-visible { outline-offset: 3px; outline-color: var(--rose); }

.room-details { margin-top: clamp(28px, 3vw, 40px); }
.room {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: clamp(16px, 2.4vw, 32px);
  align-items: start;
  animation: fade .4s var(--ease);
}
.room__title {
  grid-column: 1 / span 4;
  font-family: var(--f-display); font-weight: 400;
  font-size: clamp(1.55rem, 1.25rem + .8vw, 2rem);
  line-height: 1.12; color: var(--ultra); margin: 0;
}
.room__desc { grid-column: 5 / span 4; }
.room__specs { grid-column: 9 / -1; display: grid; }
.room__specs div { display: flex; justify-content: space-between; gap: 16px; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: .9375rem; }
.room__specs div:first-child { border-top: 1px solid var(--line); padding-top: 9px; }
.room__specs dt { color: var(--muted); }
.room__specs dd { color: var(--ultra); font-weight: 600; text-align: right; }
.room .btn { grid-column: 9 / -1; justify-self: start; margin-top: 20px; }

.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 4; margin: 0; font-size: 1rem; font-weight: 600; color: var(--ultra); }
.amenities { grid-column: 5 / -1; display: flex; flex-wrap: wrap; gap: 8px 30px; font-size: .9375rem; color: var(--muted); }

/* ---------- Restaurant ---------- */
.restaurant { background: var(--sabah); }
.restaurant__grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: clamp(16px, 2.4vw, 32px);
  row-gap: clamp(32px, 4vw, 56px);
  align-items: start;
}
.restaurant__street { grid-column: 1 / span 5; grid-row: 1 / span 2; }
.restaurant__street img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; object-position: 50% 60%; }
.restaurant__text { grid-column: 7 / -1; grid-row: 1; }
.restaurant__text .h2 { margin-bottom: 26px; max-width: 14ch; }
.restaurant__text p + p { margin-top: 16px; color: var(--muted); max-width: 56ch; }
.restaurant__text .restaurant__score {
  display: flex; align-items: baseline; gap: 14px;
  margin-top: 28px; padding-top: 18px; border-top: 1px solid var(--line);
  color: var(--ink);
}
.restaurant__score-num { font-family: var(--f-display); font-size: 2.2rem; line-height: 1; color: var(--ultra); }
.restaurant__hall { grid-column: 7 / -1; grid-row: 2; align-self: end; }
.restaurant__hall img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }

/* ---------- 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(--ultra); }
.services__list dd { margin-top: 2px; color: var(--muted); font-size: .9375rem; }

/* ---------- Location ---------- */
.location { background: var(--sabah); }
.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(--sabah-2); }
.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(--f-display); font-size: 1.3rem; line-height: 1.4; color: var(--ultra);
}
.distances { width: 100%; margin-bottom: 32px; }
.distances__title { font-size: .875rem; font-weight: 600; color: var(--rose); margin: 0 0 6px; }
.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 { color: var(--ultra); 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(160px, 17vw, 260px);
  gap: clamp(8px, 1vw, 14px);
}
.gallery__grid li { min-width: 0; }
.g-a { grid-column: 1 / span 7; grid-row: 1 / span 2; }
.g-b { grid-column: 8 / -1; grid-row: 1; }
.g-c { grid-column: 8 / -1; grid-row: 2; }
.g-d { grid-column: 1 / span 4; grid-row: 3; }
.g-e { grid-column: 5 / span 4; grid-row: 3; }
.g-g { grid-column: 9 / -1; grid-row: 3 / span 2; }
.g-f { grid-column: 1 / span 3; grid-row: 4; }
.g-h { grid-column: 4 / span 5; grid-row: 4; }
.gallery__item {
  display: block; width: 100%; height: 100%; padding: 0; border: 0;
  background: var(--sabah-2); cursor: zoom-in; overflow: hidden;
}
.gallery__item img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.gallery__item:hover img { transform: scale(1.025); }
.gallery__item:focus-visible { outline-offset: 2px; }
.g-g img { object-position: 60% 50%; }

/* ---------- Closing ---------- */
.closing {
  position: relative; overflow: hidden;
  background: var(--ultra); color: var(--on-dark);
  padding-block: clamp(72px, 9vw, 128px);
}
.closing__inner { position: relative; z-index: 1; display: grid; gap: 34px; justify-items: start; }
.closing__title {
  font-family: var(--f-display); font-weight: 400; color: #fff;
  font-size: clamp(2.1rem, 1.3rem + 2.8vw, 3.7rem); line-height: 1.05; letter-spacing: -.012em; margin: 0;
  max-width: 14ch; text-wrap: balance;
}
.closing__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 30px; }
/* The same sun, half under the horizon */
.closing__sun {
  position: absolute; z-index: 0;
  right: max(var(--gutter), calc((100vw - var(--container)) / 2 + var(--gutter)));
  bottom: 0;
  width: clamp(220px, 30vw, 420px); aspect-ratio: 1;
  border-radius: 50%;
  background: var(--pink);
  transform: translateY(50%);
}

/* ---------- Footer ---------- */
.site-footer { background: var(--ultra-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(--pink); }
.site-footer__grid { display: grid; grid-template-columns: 1.3fr 1fr 1.2fr 1fr; gap: 32px; padding-bottom: 48px; }
.site-footer__mark { margin-bottom: 16px; }
.site-footer .brand__line { stroke: var(--on-dark); }
.site-footer__name { font-family: var(--f-display); font-size: 1.3rem; color: #fff; margin-bottom: 4px; }
.site-footer__title { font-size: .875rem; font-weight: 600; color: var(--pink); 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(15, 20, 56, .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
   ========================================================= */
/* Shorter screens: show more of the breakfast table above the booking bar */
@media (min-width: 900px) and (max-height: 860px) {
  .hero { --hero-pos: 50% 62%; }
}

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

@media (max-width: 1023px) {
  .intro__text, .facts,
  .terrace__text, .terrace__main,
  .services__head, .services__list,
  .location__map, .location__info,
  .restaurant__street, .restaurant__text, .restaurant__hall,
  .section-head .h2, .section-head__text { grid-column: 1 / -1; }
  .facts { margin-top: 44px; grid-template-columns: 1fr 1fr; column-gap: 24px; }
  .facts div:nth-child(2) { border-top: 2px solid var(--ultra); }
  .section-head__text { margin-top: 16px; }

  .terrace__main { grid-row: 2; }
  .terrace__strip { grid-row: 3; }

  .room__title, .room__desc, .room__specs, .room .btn { grid-column: 1 / -1; }
  .room__desc { margin-top: 12px; max-width: 60ch; }
  .room__specs { margin-top: 20px; }
  .rooms__common-title, .amenities { grid-column: 1 / -1; }
  .amenities { margin-top: 12px; }

  .restaurant__street { grid-row: 2; }
  .restaurant__street img { aspect-ratio: 4 / 3; object-position: 50% 70%; }
  .restaurant__hall { 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; }
}

@media (max-width: 899px) {
  /* Photo with the sun on top, the booking card right under it */
  .hero {
    --sun-size: min(62vw, 300px);
    --sun-x: var(--gutter);
    --sun-y: 18px;
    --hero-pos: 50% 0%;
    height: auto;
    background: var(--sabah);
    overflow: visible;
  }
  .hero__media { position: relative; display: block; height: min(128vw, 72svh); overflow: hidden; }
  .hero__booking { position: relative; bottom: auto; margin-top: -36px; padding-inline: var(--gutter); padding-bottom: 28px; }
  .hero__booking .booking { margin-left: 0; width: 100%; }
  .hero .popover { top: auto; bottom: 0; }

  .booking { grid-template-columns: 1fr 1fr; }
  .booking__field { min-height: 84px; padding: 14px 18px; }
  .booking__field:first-child { border-radius: var(--radius) 0 0 0; }
  #guestsField { grid-column: 1 / -1; border-left: 0; border-top: 1px solid var(--line); }
  .booking__submit { grid-column: 1 / -1; padding: 4px 16px 16px; }
  .booking__submit .btn { width: 100%; }

  /* Popovers become bottom sheets */
  .popover, .hero .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: 16px 16px 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; }

  .deck { flex-direction: column; height: auto; gap: 8px; }
  .deck__panel { flex: none; height: 86px; transition: height .5s var(--ease); }
  .deck__panel.is-active { height: min(70vw, 380px); }
  .deck__label { padding: 14px 18px; grid-auto-flow: column; justify-content: space-between; align-items: baseline; }
  .deck__panel.is-active .deck__label { grid-auto-flow: row; justify-content: start; }
  .deck__panel::after { inset: 0; background: linear-gradient(to top, rgba(17, 23, 64, .78), rgba(17, 23, 64, .1) 80%); }

  .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(14px); backdrop-filter: blur(14px);
    box-shadow: 0 -1px 0 var(--line), 0 -12px 30px -18px rgba(24, 34, 95, .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; }

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

@media (max-width: 640px) {
  :root { --header-h: 64px; }
  .site-header__inner { gap: 10px; }
  .site-header__actions { gap: 4px; }
  .brand { gap: 10px; }
  .brand__mark { width: 30px; height: 30px; }
  .brand__name { font-size: 1.16rem; }
  .brand__place { display: none; }
  .site-header__cta { display: none; }
  .booking__value { font-size: 1.2rem; }
  .facts { grid-template-columns: 1fr; }
  .facts div:nth-child(2) { border-top: 0; }
  .terrace__strip { grid-template-columns: minmax(0, 1fr); }
  .terrace__strip img { height: auto; aspect-ratio: 3 / 2; }
  .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%; }
  .closing__sun { width: 200px; right: -40px; }
  .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; }
}
