/* Lalinn Hotel: ahşap ev, zeytin ve lal
   Tokens ------------------------------------------------------------ */
:root {
  --olive: #5E5A2B;        /* zeytin hakisi: buttons, lane band */
  --olive-deep: #45421F;   /* footer, hover */
  --ruby: #A01E3E;         /* lal: token underlines, gem, small marks */
  --ink: #262619;          /* text, headings */
  --muted: #66664F;        /* secondary text */
  --pale: #EFEFE3;         /* light sections */
  --line: #DEDECF;
  --paper: #FFFFFF;
  --on-olive: #FFFFFF;
  --on-olive-muted: #E3E1C9;

  --serif: 'Castoro', 'Iowan Old Style', Georgia, serif;
  --sans: 'Wix Madefor Text', 'Segoe UI', system-ui, sans-serif;

  --wrap: 1520px;
  --gutter: clamp(16px, 4vw, 48px);
  --header-h: 76px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; }
p { margin: 0 0 1em; }
h1, h2, h3 { margin: 0; font-weight: 400; }
ul { margin: 0; padding: 0; list-style: none; }
figure { margin: 0; }
dl, dd { margin: 0; }
address { font-style: normal; }

:focus-visible { outline: 2px solid var(--focus, var(--ruby)); outline-offset: 3px; }
.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 200;
  background: var(--ink); color: #fff; padding: 10px 16px; text-decoration: none;
}
.skip-link:focus { top: 12px; }

.container { width: 100%; max-width: calc(var(--wrap) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(72px, 9vw, 128px); }
.section--pale { background: var(--pale); }
.section--olive { background: var(--olive); color: var(--on-olive); --focus: #fff; }

.h2 {
  font-family: var(--serif);
  font-size: clamp(32px, 3.3vw, 50px);
  line-height: 1.08;
  letter-spacing: -0.005em;
  text-wrap: balance;
}
.lead { font-size: clamp(18px, 1.35vw, 20px); line-height: 1.6; }
.section-head { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 24px 64px; align-items: end; margin-bottom: clamp(36px, 4.5vw, 64px); }
.section-head__text { margin: 0; color: var(--muted); max-width: 58ch; }

/* Buttons ------------------------------------------------------------ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 12px 24px;
  border: 1px solid transparent; border-radius: 2px;
  font-family: var(--sans); font-weight: 500; font-size: 16px; line-height: 1.2;
  text-decoration: none; cursor: pointer;
  transition: background-color .2s, color .2s, border-color .2s;
}
.btn--sm { min-height: 40px; padding: 8px 16px; font-size: 15px; }
.btn--lg { min-height: 56px; padding: 14px 28px; font-size: 17px; }
.btn--olive { background: var(--olive); color: var(--on-olive); }
.btn--olive:hover { background: var(--olive-deep); }
.btn--line { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn--line:hover { background: var(--ink); color: #fff; }
.btn__icon { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linejoin: round; }

.text-link {
  font-weight: 500; text-decoration: underline; text-decoration-thickness: 1px;
  text-underline-offset: 5px; text-decoration-color: color-mix(in srgb, currentColor 45%, transparent);
}
.text-link:hover { text-decoration-color: currentColor; }
.link-btn { background: none; border: 0; padding: 8px 4px; cursor: pointer; text-decoration: underline; text-underline-offset: 4px; color: var(--muted); }

.icon-btn {
  display: inline-grid; place-items: center; width: 40px; height: 40px; padding: 0;
  background: transparent; border: 1px solid var(--line); border-radius: 2px; cursor: pointer; color: var(--ink);
}
.icon-btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.icon-btn:hover:not(:disabled) { border-color: var(--ink); }
.icon-btn:disabled { opacity: .35; cursor: default; }
.icon-btn--round { border-radius: 50%; }

/* Header ------------------------------------------------------------- */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 60;
  height: var(--header-h);
  background: #fff;
  transition: box-shadow .25s;
}
.site-header.is-scrolled, .site-header.is-menu { box-shadow: 0 1px 0 var(--line); }
.site-header__inner { height: 100%; display: flex; align-items: center; gap: 32px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; margin-right: auto; }
.brand__gem { width: 26px; height: 23px; flex: none; }
.brand__gem .g1 { fill: #C2385A; }
.brand__gem .g2 { fill: var(--ruby); }
.brand__gem .g3 { fill: none; stroke: rgba(255, 255, 255, .55); stroke-width: 1; stroke-linejoin: round; }
.brand__name { font-family: var(--serif); font-size: 28px; line-height: 1; letter-spacing: .005em; }
.nav__list { display: flex; gap: 28px; }
.nav__list a { text-decoration: none; font-size: 15px; font-weight: 500; padding: 6px 0; background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size .2s; }
.nav__list a:hover { background-size: 100% 1px; }
.site-header__actions { display: flex; align-items: center; gap: 16px; }
.lang { display: flex; }
.lang__btn {
  background: none; border: 0; cursor: pointer; padding: 6px 6px; font-size: 14px; font-weight: 500; color: var(--muted);
}
.lang__btn.is-active { color: var(--ink); text-decoration: underline; text-underline-offset: 6px; text-decoration-color: var(--ruby); text-decoration-thickness: 2px; }
.menu-toggle { display: none; width: 44px; height: 44px; background: none; border: 0; cursor: pointer; position: relative; }
.menu-toggle span { position: absolute; left: 11px; right: 11px; height: 1.5px; background: var(--ink); transition: transform .2s; }
.menu-toggle span:first-child { top: 17px; }
.menu-toggle span:last-child { top: 26px; }
.menu-toggle[aria-expanded="true"] span:first-child { transform: translateY(4.5px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:last-child { transform: translateY(-4.5px) rotate(-45deg); }

.mobile-menu {
  position: fixed; inset: var(--header-h) 0 0; z-index: 59; background: #fff; overflow-y: auto; padding-block: 24px 40px;
}
.mobile-menu__list a { display: block; font-family: var(--serif); font-size: 30px; padding: 10px 0; text-decoration: none; border-bottom: 1px solid var(--line); }
.mobile-menu__foot { display: grid; gap: 10px; margin-top: 28px; font-size: 16px; }
.mobile-menu__foot a { text-decoration: none; color: var(--muted); }

/* Hero ---------------------------------------------------------------
   Swap the photo: replace assets/img/hero.webp and hero-mobile.webp,
   then tune these variables on .hero. */
.hero {
  --hero-zoom: 1.15;           /* >1 crops the right edge of the photo (the beige neighbour) and widens the sky */
  --hero-pos: 0% 4%;           /* object-position of the desktop photo */
  --hero-pos-m: 0% 0%;         /* object-position of the mobile photo */
  --hero-copy-top: clamp(56px, 9vh, 112px);
  --hero-copy-w: clamp(380px, 31vw, 520px);
  --hero-veil: .5;             /* soft light behind the text, 0 to switch off */
  --hero-veil-x: 16%;
  --hero-veil-y: 38%;
  --hero-title-w-m: 66%;       /* stacked layout: width of the headline over the sky */
  position: relative;
  z-index: 5;
  min-height: max(660px, 100svh);
  padding-top: var(--header-h);
  isolation: isolate;
}
.hero__media { position: absolute; inset: var(--header-h) 0 0 0; z-index: -1; display: block; overflow: hidden; }
.hero__media img { position: absolute; top: 0; left: 0; width: calc(100% * var(--hero-zoom)); max-width: none; height: 100%; object-fit: cover; object-position: var(--hero-pos); }
.hero__media::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse 42% 60% at var(--hero-veil-x) var(--hero-veil-y), rgba(255, 255, 255, var(--hero-veil)) 0%, rgba(255, 255, 255, calc(var(--hero-veil) * .55)) 45%, rgba(255, 255, 255, 0) 100%);
}
.hero__inner { padding-top: var(--hero-copy-top); padding-bottom: 56px; }
.hero__copy { max-width: var(--hero-copy-w); }
.hero__place { font-size: 15px; font-weight: 500; margin: 0 0 14px; }
.hero__title {
  font-family: var(--serif);
  font-size: clamp(46px, 4.3vw, 80px);
  line-height: 1.02;
  letter-spacing: -0.012em;
  text-wrap: balance;
}

/* The sentence is the booking form */
.booking { position: relative; margin-top: clamp(20px, 2.6vh, 32px); }
.booking__sentence {
  font-family: var(--serif);
  font-size: clamp(22px, 1.72vw, 30px);
  line-height: 1.5;
  margin: 0;
}
.token {
  display: inline; font: inherit; color: inherit; cursor: pointer;
  background-color: transparent; border: 0; border-radius: 2px;
  padding: 0 .06em; margin: 0;
  background-image: linear-gradient(var(--ruby), var(--ruby));
  background-repeat: no-repeat;
  background-position: 0 94%;
  background-size: 100% 2px;
  transition: background-color .15s, background-size .7s var(--ease);
  white-space: nowrap;
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
}
.token:hover, .token[aria-expanded="true"] { background-color: rgba(160, 30, 62, .1); }
.token.is-flash { background-color: rgba(160, 30, 62, .16); }
.token__sr, .sr-only {
  position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}
.booking.is-drawing .token { background-size: 0% 2px; }
.booking__hint { font-size: 14px; margin: 14px 0 0; }
.booking__nights { font-weight: 500; }
.booking__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; margin-top: 22px; }
.booking__note { font-size: 13.5px; line-height: 1.5; margin: 14px 0 0; max-width: 46ch; }

/* Popovers (desktop: under the token; mobile: bottom sheet) */
.popover {
  position: absolute; z-index: 40; top: 0; left: 0;
  background: #fff; color: var(--ink);
  border: 1px solid var(--line);
  box-shadow: 0 18px 40px -18px rgba(38, 38, 25, .35);
  padding: 20px;
  font-family: var(--sans); font-size: 16px; line-height: 1.5;
}
.popover[hidden] { display: none; }
.popover__foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); }

.datepicker { width: 620px; }
.datepicker__head { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 8px; }
.datepicker__hint { margin: 0; font-size: 15px; color: var(--muted); }
.datepicker__nav { display: flex; gap: 6px; }
.datepicker__months { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.month__caption { font-family: var(--serif); font-size: 20px; margin: 4px 0 10px; text-align: center; }
.month__grid { display: grid; grid-template-columns: repeat(7, 1fr); }
.month__dow { font-size: 12px; color: var(--muted); text-align: center; padding-bottom: 6px; }
.day {
  position: relative; height: 40px; padding: 0; border: 0; background: none; cursor: pointer; font-size: 15px;
}
.day span { position: relative; z-index: 1; display: grid; place-items: center; width: 38px; height: 38px; margin: auto; border-radius: 50%; }
.day:hover:not(:disabled) span { box-shadow: inset 0 0 0 1px var(--ink); }
.day:disabled { color: #B9B9A8; cursor: default; }
.day.is-today span { text-decoration: underline; text-underline-offset: 3px; }
.day.in-range, .day.in-preview { background: var(--pale); }
.day.is-start.has-range { background: linear-gradient(90deg, transparent 50%, var(--pale) 50%); }
.day.is-end { background: linear-gradient(90deg, var(--pale) 50%, transparent 50%); }
.day.is-start span, .day.is-end span { background: var(--olive); color: #fff; }
.day--blank { height: 40px; }

.guests { width: 360px; }
.counter { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 10px 0; }
.counter + .counter { border-top: 1px solid var(--line); }
.counter__title { margin: 0; font-weight: 500; }
.counter__hint { margin: 0; font-size: 14px; color: var(--muted); }
.counter__ctrl { display: flex; align-items: center; gap: 12px; }
.counter__ctrl output { min-width: 22px; text-align: center; font-weight: 500; font-variant-numeric: tabular-nums; }
.guests__ages { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.guests__ages:not(:empty) { margin-top: 10px; }
.age-field { display: grid; gap: 4px; font-size: 13.5px; color: var(--muted); }
.age-field select {
  font: inherit; font-size: 15px; color: var(--ink); padding: 9px 10px; border: 1px solid var(--line); border-radius: 2px; background: #fff;
}
.age-field select[aria-invalid="true"] { border-color: var(--ruby); }
.guests__error { color: var(--ruby); font-size: 14px; margin: 10px 0 0; }
.guests__note { font-size: 13.5px; color: var(--muted); margin: 12px 0 0; }

.rooms-pop { width: 320px; padding: 8px; }
.rooms-pop__opt {
  display: grid; width: 100%; text-align: left; gap: 2px; padding: 12px 14px; background: none; border: 0; border-radius: 2px; cursor: pointer;
}
.rooms-pop__opt span { font-weight: 500; }
.rooms-pop__opt small { font-size: 13.5px; color: var(--muted); }
.rooms-pop__opt:hover { background: var(--pale); }
.rooms-pop__opt[aria-selected="true"] { box-shadow: inset 2px 0 0 var(--ruby); background: var(--pale); }

.scrim { position: fixed; inset: 0; z-index: 79; background: rgba(38, 38, 25, .45); }

/* The house ----------------------------------------------------------- */
.house__grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 40px clamp(32px, 5vw, 80px);
  align-items: start;
}
.house__text .h2 { margin-bottom: 28px; max-width: 14ch; }
.house__media { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 38%); gap: 16px clamp(20px, 2.5vw, 36px); }
.house__lobby { grid-column: 1 / -1; width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.house__cap { font-size: 15px; color: var(--muted); margin: 0; max-width: 40ch; }
.house__fabric img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.house__fabric figcaption { font-size: 14px; color: var(--muted); margin-top: 8px; }
.facts { margin-top: 36px; border-top: 1px solid var(--line); }
.facts > div { display: grid; grid-template-columns: 9.5em 1fr; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.facts dt { color: var(--muted); font-size: 15px; }
.facts dd { font-size: 16px; }

/* Rooms --------------------------------------------------------------- */
.rooms__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(48px, 5vw, 72px) clamp(28px, 3.5vw, 48px); }
.room__media { aspect-ratio: 3 / 2; overflow: hidden; background: var(--line); }
.room__media img { width: 100%; height: 100%; object-fit: cover; }
.room__body { padding-top: 22px; }
.room__title { font-family: var(--serif); font-size: clamp(26px, 2.2vw, 34px); line-height: 1.1; margin-bottom: 10px; }
.room__desc { max-width: 52ch; color: #3B3B2C; }
.room__specs { display: grid; grid-template-columns: auto auto auto; justify-content: start; gap: 8px 36px; margin: 18px 0 22px; padding-top: 14px; border-top: 1px solid var(--line); }
.room__specs dt { font-size: 13.5px; color: var(--muted); }
.room__specs dd { font-size: 16px; font-weight: 500; }
.rooms__common { margin-top: clamp(56px, 6vw, 88px); display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 9fr); gap: 16px 48px; border-top: 1px solid var(--line); padding-top: 24px; }
.rooms__common-title { font-family: var(--serif); font-size: 24px; }
.amenities { display: flex; flex-wrap: wrap; gap: 10px 0; }
.amenities li { font-size: 16px; padding-right: 22px; margin-right: 22px; border-right: 1px solid var(--line); line-height: 1.3; }
.amenities li:last-child { border-right: 0; }

/* Lane ---------------------------------------------------------------- */
.lane__grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  grid-template-areas: "tall text" "tall wide";
  gap: clamp(28px, 4vw, 56px) clamp(32px, 5vw, 80px);
}
.lane__tall { grid-area: tall; }
.lane__tall img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 3 / 4; }
.lane__text { grid-area: text; }
.lane__text .h2 { margin-bottom: 24px; }
.lane__text .lead { color: var(--on-olive); max-width: 46ch; }
.lane__wide { grid-area: wide; align-self: end; }
.lane__wide img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; object-position: 50% 60%; }
.ways { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; margin-top: 32px; }
.ways__item { border-top: 1px solid rgba(255, 255, 255, .4); padding-top: 14px; }
.ways__title { font-family: var(--serif); font-size: 22px; margin-bottom: 6px; }
.ways__item p { color: var(--on-olive-muted); margin: 0; font-size: 16px; }

/* Guests' words --------------------------------------------------------- */
.voices__grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 32px clamp(32px, 5vw, 80px); }
.voices__head .h2 { margin-bottom: 32px; max-width: 12ch; }
.scores > div { display: grid; gap: 2px; padding: 16px 0; border-top: 1px solid var(--line); }
.scores dt { font-size: 14px; color: var(--muted); }
.scores dd { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.scores__num { font-family: var(--serif); font-size: 48px; line-height: 1; color: var(--olive); }
.scores__of { font-size: 15px; color: var(--muted); }
.quotes { display: grid; gap: 0; }
.quote { padding: 26px 0; border-top: 1px solid var(--line); }
.quote:first-child { border-top: 0; padding-top: 0; }
.quote blockquote { margin: 0; }
.quote blockquote p { font-family: var(--serif); font-style: italic; font-size: clamp(22px, 2vw, 30px); line-height: 1.35; margin: 0 0 10px; max-width: 34ch; }
.quote__src { font-size: 14px; color: var(--muted); margin: 0; }
.voices__note { grid-column: 2; font-size: 13.5px; color: var(--muted); margin: 0; }

/* Services ------------------------------------------------------------ */
.services__grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 32px clamp(32px, 5vw, 80px); }
.services__head .h2 { margin-bottom: 18px; }
.services__head p { color: var(--muted); max-width: 34ch; }
.services__list { display: grid; grid-template-columns: 1fr 1fr; gap: 0 40px; }
.services__list > div { padding: 16px 0; border-top: 1px solid var(--line); }
.services__list dt { font-weight: 500; margin-bottom: 2px; }
.services__list dd { color: var(--muted); font-size: 16px; }

/* Location ------------------------------------------------------------ */
.location__grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(28px, 4vw, 64px); align-items: start; }
.location__map { position: relative; min-height: 520px; height: 100%; background: var(--pale); }
.location__map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; filter: saturate(.75); }
.location__address { display: grid; font-family: var(--serif); font-size: 22px; line-height: 1.35; margin-bottom: 24px; }
.distances__title { font-family: var(--serif); font-size: 20px; margin: 22px 0 6px; }
.distances li { display: flex; justify-content: space-between; gap: 16px; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 16px; }
.distances li span:last-child { color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.location__info .btn { margin-top: 28px; }

/* Gallery ------------------------------------------------------------- */
.gallery__title { margin-bottom: clamp(32px, 4vw, 56px); }
.gallery__grid { display: grid; grid-auto-flow: dense; grid-template-columns: repeat(3, 1fr); grid-auto-rows: clamp(180px, 19vw, 280px); gap: 12px; }
.gallery__grid li { min-width: 0; }
.g-a { grid-row: span 2; }
.g-b { grid-column: span 2; }
.g-e { grid-column: span 2; }
.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); }

/* Closing ------------------------------------------------------------- */
.closing { padding-block: clamp(80px, 10vw, 144px); border-top: 1px solid var(--line); }
.closing__title { font-family: var(--serif); font-style: italic; font-size: clamp(44px, 6vw, 96px); line-height: 1.02; letter-spacing: -0.015em; text-wrap: balance; }
.closing__text { margin: 24px 0 32px; max-width: 46ch; color: var(--muted); font-size: 18px; }
.closing__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 32px; }
.closing__inner { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: 40px clamp(32px, 6vw, 96px); align-items: center; }
.closing__door { justify-self: end; width: 100%; max-width: 400px; }
.closing__door img { width: 100%; aspect-ratio: 490 / 606; object-fit: cover; }
.closing__door figcaption { font-size: 14px; color: var(--muted); margin-top: 10px; }

/* Footer -------------------------------------------------------------- */
.site-footer { background: var(--olive-deep); color: var(--on-olive); padding-block: 64px 28px; font-size: 15.5px; --focus: #fff; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { text-decoration: underline; text-underline-offset: 4px; }
.site-footer__grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 32px; }
.site-footer__name { font-family: var(--serif); font-size: 26px; margin: 12px 0 4px; }
.site-footer__brand p:last-child { color: var(--on-olive-muted); }
.site-footer__title { font-family: var(--sans); font-size: 14px; font-weight: 500; color: var(--on-olive-muted); margin-bottom: 8px; }
.brand__gem--light .g3 { stroke: rgba(255, 255, 255, .6); }
.site-footer__base { display: flex; justify-content: space-between; gap: 16px; margin-top: 48px; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, .22); color: var(--on-olive-muted); font-size: 14px; }
.site-footer__base p { margin: 0; }

/* Sticky booking (small screens) ---------------------------------------- */
.sticky-book { display: none; }

/* Lightbox ------------------------------------------------------------ */
.lightbox { border: 0; padding: 0; max-width: none; max-height: none; width: 100vw; height: 100vh; height: 100dvh; background: rgba(28, 28, 18, .94); color: #fff; }
.lightbox[open] { display: grid; place-items: center; }
.lightbox::backdrop { background: rgba(28, 28, 18, .94); }
.lightbox img { max-width: min(92vw, 1600px); max-height: 82vh; max-height: 82dvh; object-fit: contain; }
.lightbox__cap { position: absolute; left: 0; right: 0; bottom: 18px; text-align: center; font-size: 15px; color: #E9E8DA; margin: 0; padding-inline: 72px; }
.lightbox__btn { position: absolute; width: 48px; height: 48px; display: grid; place-items: center; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .25); border-radius: 50%; color: #fff; cursor: pointer; --focus: #fff; }
.lightbox__btn svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.lightbox__btn:hover { background: rgba(255, 255, 255, .18); }
.lightbox__close { top: 18px; right: 18px; }
.lightbox__prev { left: 18px; top: 50%; transform: translateY(-50%); }
.lightbox__next { right: 18px; top: 50%; transform: translateY(-50%); }

/* Responsive ---------------------------------------------------------- */
@media (max-width: 1180px) {
  .nav__list { gap: 20px; }
  .site-header__cta { display: none; }
}

@media (max-width: 1000px) {
  /* Hero, stacked: photo with the headline in its sky, the sentence below on white */
  .hero { min-height: 0; }
  .hero__media { position: relative; inset: auto; aspect-ratio: 16 / 11; }
  .hero__inner { padding-top: 0; padding-bottom: 0; }
  .hero__copy { max-width: none; }
  .hero__head { position: absolute; top: calc(var(--header-h) + 28px); left: var(--gutter); width: var(--hero-title-w-t, 38%); }
  .hero__title { font-size: clamp(36px, 5vw, 50px); }
  .booking { margin: 0; padding: 28px 0 40px; }
  .booking__sentence { font-size: 27px; max-width: 30ch; }
  .nav { display: none; }
  .menu-toggle { display: inline-block; }
  .section-head { grid-template-columns: 1fr; }
  .house__grid { grid-template-columns: 1fr; }
  .lane__grid { grid-template-columns: 1fr 1fr; grid-template-areas: "text text" "tall wide"; }
  .lane__wide { align-self: stretch; }
  .lane__wide img { height: 100%; aspect-ratio: auto; }
  .voices__grid, .services__grid { grid-template-columns: 1fr; }
  .voices__note { grid-column: 1; }
  .location__grid { grid-template-columns: 1fr; }
  .location__map { min-height: 380px; }
  .closing__inner { grid-template-columns: 1fr; }
  .site-footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 760px) {
  :root { --header-h: 60px; }
  body { font-size: 16.5px; }
  .site-header__actions { gap: 4px; }
  .brand__name { font-size: 25px; }

  /* Hero: the mobile crop */
  .hero__media { aspect-ratio: 900 / 1090; }
  .hero__media img { width: 100%; object-position: var(--hero-pos-m); }
  .hero__media::after { background: radial-gradient(ellipse 70% 40% at 18% 18%, rgba(255, 255, 255, calc(var(--hero-veil) * .8)) 0%, rgba(255, 255, 255, 0) 100%); }
  .hero__head { width: var(--hero-title-w-m); top: calc(var(--header-h) + 16px); }
  .hero__place { font-size: 13.5px; margin-bottom: 8px; }
  .hero__title { font-size: clamp(31px, 8.6vw, 44px); line-height: 1.04; }
  .booking__sentence { font-size: 25px; }
  .booking__actions .btn { flex: 1 1 100%; }
  .booking__actions .text-link { margin-inline: auto; }

  .popover { position: fixed; left: 0 !important; right: 0; top: auto !important; bottom: 0; width: auto; max-height: 88vh; max-height: 88dvh; overflow-y: auto; border: 0; padding: 20px 16px calc(16px + env(safe-area-inset-bottom)); box-shadow: 0 -12px 32px -12px rgba(0, 0, 0, .3); }
  .datepicker__months { grid-template-columns: 1fr; gap: 18px; }
  .day, .day--blank { height: 44px; }
  .rooms-pop { padding: 12px 8px calc(12px + env(safe-area-inset-bottom)); }

  .house__media { grid-template-columns: minmax(0, 1fr) 42%; }
  .facts > div { grid-template-columns: 7.5em 1fr; }
  .rooms__grid { grid-template-columns: 1fr; }
  .room__specs { gap: 8px 24px; }
  .rooms__common { grid-template-columns: 1fr; }
  .amenities li { padding-right: 14px; margin-right: 14px; }
  .lane__grid { grid-template-columns: 1fr; grid-template-areas: "text" "tall" "wide"; }
  .lane__wide img { aspect-ratio: 4 / 3; height: auto; }
  .ways { grid-template-columns: 1fr; gap: 18px; }
  .services__list { grid-template-columns: 1fr; }
  .gallery__grid { grid-template-columns: 1fr 1fr; grid-auto-rows: 160px; gap: 8px; }
  .g-b, .g-e { grid-column: span 2; }
  .closing__actions .btn { flex: 1 1 100%; }
  .closing__door { justify-self: start; max-width: 72%; }
  .site-footer { padding-bottom: 96px; }
  .site-footer__grid { grid-template-columns: 1fr; gap: 24px; }
  .site-footer__base { flex-direction: column; }

  .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, .98); box-shadow: 0 -1px 0 var(--line);
    transform: translateY(110%); transition: transform .25s var(--ease);
  }
  .sticky-book.is-visible { transform: none; }
  .sticky-book .btn { flex: 1; }
  .sticky-book__icon { width: 48px; height: 48px; flex: none; }
  .sticky-book__icon svg { width: 22px; height: 22px; }
  .lightbox__prev, .lightbox__next { top: auto; bottom: 56px; transform: none; }
  .lightbox__cap { bottom: 120px; padding-inline: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
