/* Hotel Taco — direction "The place carries it": stone grounds, façade anthracite, Boska + General Sans */

:root {
  --bg: #eeecea;
  --surface: #e4e1dd;
  --field: #cdc3b6;
  --paper: #f4f4f2;
  --ink: #2b2a29;
  --muted: #5d5955;
  --dark: #24272a;          /* the façade */
  --accent: #4d5b47;        /* grey-green, the action colour */
  --accent-hover: #3f4b3a;
  --on-dark: #f4f4f2;
  --on-dark-muted: #c9c5bf;

  --f-display: "Boska", "Iowan Old Style", Georgia, serif;
  --f-text: "General Sans", "Segoe UI", system-ui, sans-serif;

  --step-small: clamp(0.8125rem, 0.79rem + 0.1vw, 0.875rem);
  --step-body: clamp(1.0625rem, 1rem + 0.25vw, 1.1875rem);
  --step-lead: clamp(1.25rem, 1.1rem + 0.7vw, 1.625rem);
  --step-statement: clamp(1.5rem, 1rem + 1.6vw, 2.25rem);
  --step-head: clamp(2rem, 1.3rem + 3.2vw, 4rem);
  --step-display: clamp(3rem, 15.5vw, 16rem);

  --m: clamp(20px, 3vw, 40px);
  --gap: clamp(16px, 2vw, 24px);
  --section: clamp(112px, 14vw, 200px);
  --rail-h: 64px;
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-io: cubic-bezier(.65, 0, .35, 1);
}

/* ---------- reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: var(--rail-h); scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 400 var(--step-body)/1.55 var(--f-text); letter-spacing: .003em;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .22em; }
h1, h2, h3, h4, p, figure, blockquote, dl, dd, ol, ul { margin: 0; }
ul, ol { padding: 0; list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
::selection { background: var(--dark); color: var(--on-dark); }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--paper); padding: 10px 16px; }
.skip:focus { top: 12px; }

.h-head { font: 400 var(--step-head)/1 var(--f-display); letter-spacing: -.02em; text-wrap: balance; }
.h-sub { font: 500 var(--step-lead)/1.15 var(--f-display); letter-spacing: -.01em; }
.lead { font-size: var(--step-lead); line-height: 1.4; max-width: 40ch; }
.statement { font: 400 var(--step-statement)/1.18 var(--f-display); letter-spacing: -.015em; max-width: 26ch; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 28px; border: 0; border-radius: 0;
  background: var(--accent); color: #fff; text-decoration: none;
  font: 500 16px/1 var(--f-text); letter-spacing: .01em;
  transition: background-color .25s ease, color .25s ease, transform .18s var(--ease-out);
}
.btn:hover { background: var(--accent-hover); }
.btn:active { transform: scale(.975); }
.btn--paper { background: var(--paper); color: var(--ink); }
.btn--paper:hover { background: #fff; }
.btn--ghost { background: var(--field); color: var(--ink); }
.btn--ghost:hover { background: #c1b6a8; }
.btn--block { width: 100%; }

/* ---------- hero pictures + rail ---------- */
.frame { position: relative; }
.hero-pics { position: absolute; inset: 0 0 auto 0; height: 200svh; z-index: 0; }
.hero-shot, .hero-detail { position: relative; height: 100svh; overflow: hidden; background: var(--dark); }
.hero-shot img, .hero-detail img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-shot img { opacity: 0; transition: opacity 1.6s ease; transform: scale(1.06); }
.hero-shot img.is-on { opacity: 1; animation: drift 9s linear both; }
@keyframes drift { from { transform: scale(1.08); } to { transform: scale(1); } }
.hero-detail img { object-position: 50% 40%; transform: translateY(var(--py, 0)) scale(1.1); }
.hero-foot { display: none; }

.rail-lead { height: calc(50svh - var(--rail-h) / 2); }
.rail-tail { height: calc(150svh - var(--rail-h) / 2); }
.rail {
  position: sticky; top: 0; z-index: 40; height: var(--rail-h);
  color: var(--on-dark); background: rgba(20, 21, 22, .52);
  transition: background-color .4s ease, color .4s ease;
}
.rail.is-solid { background: var(--bg); color: var(--ink); }
.rail.is-solid .rail__title { font-size: var(--step-lead); }
.rail__inner {
  height: 100%; padding: 0 var(--m);
  display: grid; grid-template-columns: repeat(12, 1fr); column-gap: var(--gap); align-items: center;
}
.rail__title { grid-column: 1 / 5; font: 500 var(--step-statement)/1 var(--f-display); transition: font-size .4s var(--ease-out); letter-spacing: -.02em; white-space: nowrap; }
.rail__title a { text-decoration: none; }
.rail__line { grid-column: 5 / 9; font-size: 18px; line-height: 1.35; max-width: 44ch; }
.rail__nav { grid-column: 9 / 13; justify-self: end; display: flex; align-items: center; gap: clamp(16px, 2vw, 28px); font-size: 14px; font-weight: 500; }
.rail__nav a:not(.btn) { text-decoration: underline; text-decoration-color: transparent; text-underline-offset: .35em; padding: 6px 0; transition: text-decoration-color .3s ease, opacity .3s ease; }
.rail__nav a:not(.btn):hover { text-decoration-color: currentColor; }
.btn--rail { min-height: 40px; padding: 0 20px; background: var(--paper); color: var(--ink); }
.rail.is-solid .btn--rail { background: var(--accent); color: #fff; }
.rail__menu { display: none; }

/* ---------- menu ---------- */
.menu {
  position: fixed; inset: 0; z-index: 80; background: var(--dark); color: var(--on-dark);
  padding: 20px var(--m) 32px; display: flex; flex-direction: column; gap: 32px; overflow-y: auto;
}
.menu[hidden] { display: none; }
.menu.is-open { animation: menu-in .5s var(--ease-out) both; }
@keyframes menu-in { from { opacity: 0; transform: translateY(-12px); } to { opacity: 1; transform: none; } }
.menu__top { display: flex; justify-content: space-between; align-items: center; min-height: 44px; }
.menu__name { font: 500 var(--step-lead)/1 var(--f-display); }
.menu__close, .rail__menu { background: none; border: 0; padding: 10px 0; font: 500 16px/1 var(--f-text); }
.menu__links { display: flex; flex-direction: column; gap: 6px; }
.menu__links a { font: 400 clamp(2.25rem, 9vw, 3.5rem)/1.12 var(--f-display); text-decoration: none; letter-spacing: -.02em; }
.menu__links a:hover { color: var(--field); }
.menu__call { margin-top: auto; font-size: var(--step-body); }

/* ---------- intro ---------- */
.intro { padding: var(--section) var(--m); display: grid; grid-template-columns: repeat(12, 1fr); column-gap: var(--gap); }
.intro__text { grid-column: 1 / 7; }
.intro__pin { position: sticky; top: calc(var(--rail-h) + 48px); display: grid; gap: 32px; }
.intro__body { max-width: 56ch; }
.intro__quote p { font: 400 italic var(--step-lead)/1.35 var(--f-display); max-width: 36ch; }
.intro__quote footer { margin-top: 12px; font-size: 14px; color: var(--muted); }
.facts { display: grid; grid-template-columns: repeat(4, auto); justify-content: start; gap: 16px 48px; margin-top: 8px; }
.facts div { display: flex; flex-direction: column-reverse; gap: 6px; }
.facts dt { font-size: 14px; color: var(--muted); }
.facts dd { font: 400 var(--step-head)/1 var(--f-display); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.intro__pics { grid-column: 8 / 13; display: flex; flex-direction: column; gap: 22svh; padding-top: 8svh; }
.intro__pic { overflow: hidden; }
.intro__pic img { width: 100%; height: 100%; object-fit: cover; }
.intro__pic--a { width: 72%; aspect-ratio: 4 / 5; }
.intro__pic--b { width: 100%; aspect-ratio: 16 / 10; }
.intro__pic--c { width: 52%; aspect-ratio: 1; margin-left: 18%; }

/* ---------- rooms ---------- */
.rooms__head {
  padding: 0 var(--m) clamp(56px, 7vw, 96px);
  display: grid; grid-template-columns: repeat(12, 1fr); column-gap: var(--gap); align-items: end;
}
.rooms__head .h-head { grid-column: 1 / 6; }
.rooms__head .lead { grid-column: 7 / 13; }
.room { position: relative; height: 100svh; min-height: 640px; overflow: hidden; background: var(--dark); }
.room__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 72%; transform: scale(var(--zoom, 1.08)); }
.room__grid {
  position: absolute; inset: 0; padding: 0 var(--m);
  display: grid; grid-template-columns: repeat(4, 1fr); column-gap: var(--gap); align-items: center;
}
.room__card {
  grid-column: var(--c, 2); min-height: 52svh;
  display: flex; flex-direction: column; gap: 14px; padding: 28px;
  background: var(--dark); color: var(--on-dark);
}
.room[data-col="1"] { --c: 1; } .room[data-col="2"] { --c: 2; } .room[data-col="3"] { --c: 3; } .room[data-col="4"] { --c: 4; }
.room__card h3 { font: 400 var(--step-statement)/1 var(--f-display); letter-spacing: -.02em; }
.room__variant, .room__note { font-size: 16px; color: var(--on-dark-muted); line-height: 1.45; }
.room__price { font-size: 16px; color: var(--on-dark-muted); }
.room__price span { font: 400 var(--step-lead)/1 var(--f-display); color: var(--on-dark); margin-right: 4px; }
.room__thumb { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; margin-top: 4px; }
.room__card .btn { margin-top: auto; }

/* ---------- prices ---------- */
.prices { padding: var(--section) var(--m); display: grid; grid-template-columns: repeat(12, 1fr); column-gap: var(--gap); row-gap: 48px; }
.prices__side { grid-column: 1 / 5; display: flex; flex-direction: column; gap: 24px; }
.prices__intro { max-width: 34ch; }
.prices__pic { width: 82%; aspect-ratio: 4 / 5; overflow: hidden; margin-top: 16px; }
.prices__pic img { width: 100%; height: 100%; object-fit: cover; }
.prices__list { grid-column: 5 / 13; columns: 2; column-gap: 64px; }
.pgroup { break-inside: avoid; padding-top: 48px; display: grid; gap: 22px; }
.pgroup:first-child { padding-top: 0; }
.pgroup h3 { font: 500 var(--step-lead)/1.15 var(--f-display); letter-spacing: -.01em; }
.prow { display: flex; justify-content: space-between; align-items: baseline; gap: 24px; }
.prow__name { font-weight: 500; }
.prow__desc { font-size: 16px; color: var(--muted); max-width: 36ch; line-height: 1.4; margin-top: 2px; }
.prow__val { font-variant-numeric: tabular-nums; text-align: right; white-space: nowrap; font-weight: 500; }
.prices__small { column-span: all; padding-top: 48px; font-size: 14px; color: var(--muted); max-width: 70ch; }

/* ---------- booking calculator ---------- */
.book {
  background: var(--surface); padding: var(--section) var(--m);
  display: grid; grid-template-columns: repeat(12, 1fr); column-gap: var(--gap); row-gap: 56px; align-items: start;
}
.book__head { grid-column: 1 / 13; display: grid; grid-template-columns: repeat(12, 1fr); column-gap: var(--gap); align-items: end; }
.book__head .h-head { grid-column: 1 / 7; }
.book__head .lead { grid-column: 7 / 13; }
.book__form { grid-column: 1 / 8; display: grid; gap: 24px; }
.book__rooms { border: 0; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.book__rooms legend { font-size: 14px; font-weight: 500; margin-bottom: 10px; padding: 0; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.chip span {
  display: flex; flex-direction: column; gap: 6px; padding: 18px 16px; background: var(--bg);
  font: 400 var(--step-lead)/1 var(--f-display); transition: background-color .25s ease, color .25s ease, transform .18s var(--ease-out);
}
.chip small { font: 400 14px/1.2 var(--f-text); color: var(--muted); transition: color .25s ease; }
.chip:hover span { background: var(--paper); }
.chip input:checked + span { background: var(--dark); color: var(--on-dark); }
.chip input:checked + span small { color: var(--on-dark-muted); }
.chip input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 3px; }
.chip input:active + span { transform: scale(.98); }
.book__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.book__row--3 { grid-template-columns: repeat(3, 1fr); }
.field { display: grid; gap: 8px; font-size: 14px; font-weight: 500; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 52px; padding: 12px 14px; font-size: var(--step-body); font-weight: 400;
  background: var(--paper); border: 1px solid var(--field); border-radius: 0; color: var(--ink);
  transition: border-color .2s ease, background-color .2s ease;
}
.field textarea { resize: vertical; min-height: 88px; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: #a99d8e; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--dark); background: #fff; }
.book__sum { grid-column: 9 / 13; position: sticky; top: calc(var(--rail-h) + 32px); background: var(--bg); padding: 32px; display: grid; gap: 18px; }
.book__sum h3 { font: 400 var(--step-lead)/1.1 var(--f-display); }
.book__sum dl { display: grid; gap: 10px; }
.book__sum dl div { display: flex; justify-content: space-between; gap: 16px; font-size: 16px; }
.book__sum dt { color: var(--muted); }
.book__sum dd { text-align: right; font-weight: 500; font-variant-numeric: tabular-nums; }
.book__total { font: 400 var(--step-head)/1 var(--f-display); letter-spacing: -.02em; font-variant-numeric: tabular-nums; padding-top: 8px; }
.book__total small { font: 400 16px/1 var(--f-text); letter-spacing: 0; color: var(--muted); }
.book__total span { display: inline-block; }
.book__total span.bump { animation: bump .45s var(--ease-out); }
@keyframes bump { from { transform: translateY(8px); opacity: .3; } to { transform: none; opacity: 1; } }
.book__hint { font-size: 14px; color: var(--muted); }

/* ---------- services scene ---------- */
.svc { position: relative; background: var(--dark); color: var(--on-dark); }
.svc__stage { position: sticky; top: 0; height: 100svh; overflow: hidden; }
.svc__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.svc__scrim { position: absolute; inset: 0; background: rgba(16, 17, 18, .6); }
.svc__stack { position: relative; z-index: 2; padding: calc(var(--rail-h) + 48px) var(--m) 0; text-align: center; display: grid; justify-items: center; gap: 20px; }
.svc__title { font: 400 var(--step-head)/1 var(--f-display); letter-spacing: -.02em; }
.svc__list { display: grid; gap: 10px; }
.svc__list li { font-size: var(--step-body); color: var(--on-dark-muted); transition: color .4s ease, transform .5s var(--ease-out); }
.svc__list li.is-on { color: #fff; font-weight: 500; transform: scale(1.04); }
.svc__pairs { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.svc__pair img { position: absolute; object-fit: cover; opacity: 0; transition: opacity .7s ease, transform 1s var(--ease-out); }
.svc__pair img:first-child { left: 7vw; top: 50%; width: clamp(160px, 15vw, 220px); aspect-ratio: 4 / 5; transform: translateY(40px); }
.svc__pair img:last-child { right: 8vw; top: 60%; width: clamp(180px, 17vw, 250px); aspect-ratio: 3 / 2; transform: translateY(60px); }
.svc__pair.is-on img { opacity: 1; transform: none; }
.svc__pair.is-on img:last-child { transition-delay: .12s; }
.svc__markers { margin-top: -100svh; position: relative; }
.svc__markers span { display: block; height: 70vh; }
.svc__markers span:first-child { height: 100svh; }

/* ---------- gallery triptych ---------- */
.tri { position: relative; height: 220svh; }
.tri__stage { position: sticky; top: 0; height: 100svh; overflow: hidden; }
.tri__head { position: relative; z-index: 2; padding: calc(var(--rail-h) + 40px) var(--m) 0; text-align: center; display: grid; justify-items: center; gap: 16px; }
.tri__head p { max-width: 46ch; }
.tri__pics { position: absolute; inset: 0; }
.tri__pics img { position: absolute; left: 50%; top: 0; object-fit: cover; will-change: transform; transform-origin: 50% 0; }
.tri__mid { width: min(760px, 52vw); aspect-ratio: 4 / 5; }
.tri__side { width: min(360px, 24vw); aspect-ratio: 360 / 530; }

/* ---------- reviews ---------- */
.reviews { padding: var(--section) var(--m); display: grid; grid-template-columns: repeat(12, 1fr); column-gap: var(--gap); }
.reviews__title { grid-column: 2 / 12; margin-bottom: 56px; }
.reviews__portrait { grid-column: 2 / 6; grid-row: 2 / 4; aspect-ratio: 3 / 4; overflow: hidden; align-self: start; }
.reviews__portrait img, .reviews__small img { width: 100%; height: 100%; object-fit: cover; }
.reviews__quote { grid-column: 7 / 13; grid-row: 2; margin-top: 120px; }
.reviews__quote p { font: 400 var(--step-statement)/1.2 var(--f-display); letter-spacing: -.01em; max-width: 32ch; }
.reviews__quote figcaption, .reviews__more figcaption { margin-top: 24px; font-size: 14px; color: var(--muted); }
.reviews__small { grid-column: 10 / 12; grid-row: 3; aspect-ratio: 1; overflow: hidden; margin-top: 72px; align-self: start; }
.scores { grid-column: 1 / 13; display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--gap); margin-top: clamp(96px, 10vw, 160px); }
.scores div { background: var(--surface); padding: 28px; display: flex; flex-direction: column; gap: 6px; }
.scores dd { font: 400 var(--step-head)/1 var(--f-display); letter-spacing: -.02em; order: -1; font-variant-numeric: tabular-nums; }
.scores dt { font-weight: 500; }
.scores p { font-size: 14px; color: var(--muted); }
.reviews__more { grid-column: 1 / 13; display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap); margin-top: 72px; }
.reviews__more p { font-size: var(--step-body); line-height: 1.5; max-width: 38ch; }

/* ---------- visit ---------- */
.visit__photo { position: relative; height: 100svh; min-height: 640px; overflow: hidden; background: var(--dark); }
.visit__photo > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 30% 50%; }
.visit__card { position: absolute; top: calc(var(--rail-h) + 48px); right: var(--m); width: 380px; background: var(--paper); padding: 32px; display: grid; gap: 18px; }
.visit__card h2 { font: 400 var(--step-statement)/1.05 var(--f-display); letter-spacing: -.015em; }
.visit__card address { font-style: normal; font-size: 16px; }
.visit__card dl { display: grid; gap: 8px; }
.visit__card dl div { display: flex; justify-content: space-between; font-size: 16px; }
.visit__card dt { color: var(--muted); }
.visit__card dd { font-variant-numeric: tabular-nums; font-weight: 500; }
.visit__tel { font: 400 var(--step-lead)/1 var(--f-display); text-decoration: none; }
.visit__tel:hover { text-decoration: underline; }

.route { padding: var(--section) var(--m); display: grid; grid-template-columns: repeat(12, 1fr); column-gap: var(--gap); row-gap: 48px; align-items: start; }
.route__map { grid-column: 1 / 8; position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--dark); }
.route__map > img { width: 100%; height: 100%; object-fit: cover; opacity: .55; }
.route__map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.route__mapcover { position: absolute; inset: auto 0 0 0; padding: 32px; color: var(--on-dark); display: grid; gap: 12px; justify-items: start; background: rgba(20, 21, 22, .72); }
.route__mapcover h3 { font: 400 var(--step-lead)/1 var(--f-display); }
.route__text { grid-column: 9 / 13; display: grid; gap: 28px; }
.route__way h4 { font-size: 16px; font-weight: 600; margin-bottom: 10px; }
.route__steps { display: flex; flex-wrap: wrap; gap: 6px 0; font-size: 16px; line-height: 1.5; }
.route__steps li:not(:last-child)::after { content: "→"; margin: 0 10px; color: var(--muted); }
.near { display: grid; gap: 4px; }
.near li { display: flex; justify-content: space-between; gap: 16px; padding: 12px 16px; background: var(--surface); font-size: 16px; }
.near li span:last-child { color: var(--muted); text-align: right; }

/* ---------- contact ---------- */
.contact { background: var(--surface); padding: var(--section) var(--m); display: grid; grid-template-columns: repeat(12, 1fr); column-gap: var(--gap); row-gap: 48px; align-items: start; }
.contact__side { grid-column: 1 / 6; display: grid; gap: 28px; }
.phones { display: grid; gap: 4px; }
.phones li { display: flex; justify-content: space-between; gap: 16px; padding: 14px 16px; background: var(--bg); }
.phones span { color: var(--muted); }
.phones a { font-weight: 500; text-decoration: none; font-variant-numeric: tabular-nums; }
.phones a:hover { text-decoration: underline; }
.contact__list { grid-column: 7 / 13; }

/* ---------- footer ---------- */
.foot { background: var(--dark); color: var(--on-dark-muted); padding: clamp(72px, 8vw, 112px) var(--m) 104px; display: grid; gap: 56px; font-size: 16px; line-height: 1.6; }
.foot a { text-decoration: none; transition: color .25s ease; }
.foot a:hover, .foot__link:hover { color: var(--on-dark); text-decoration: underline; }
.foot__top { display: grid; grid-template-columns: 2fr 1fr 1fr 1.3fr; gap: var(--gap); }
.foot__name { font: 400 var(--step-head)/1 var(--f-display); letter-spacing: -.02em; color: var(--on-dark); margin-bottom: 16px; }
.foot__label { color: var(--on-dark); font-weight: 500; margin-bottom: 8px; }
.foot__link { background: none; border: 0; padding: 0; font: inherit; color: inherit; cursor: pointer; text-align: left; }
.foot__legal { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; padding-top: 40px; }
.foot__legal p { font-size: 14px; }
.badge { display: block; background: #fff; transition: transform .2s var(--ease-out); }
.badge:hover { transform: translateY(-2px); }
.badge img { width: 200px; height: auto; }
.foot__meta { display: grid; grid-template-columns: 1fr auto auto; gap: 12px 32px; font-size: 14px; align-items: baseline; }
.foot__up { color: var(--on-dark); }

/* ---------- WhatsApp + cookie banner ---------- */
.wa {
  position: fixed; right: max(16px, env(safe-area-inset-right)); bottom: max(20px, env(safe-area-inset-bottom)); z-index: 60;
  display: inline-flex; align-items: center; gap: 10px; height: 56px; padding: 0 20px 0 16px; border-radius: 999px;
  background: #1f8f4e; color: #fff; text-decoration: none; font: 500 16px/1 var(--f-text);
  transition: transform .25s var(--ease-out), background-color .25s ease;
}
.wa:hover { background: #18773f; transform: translateY(-2px); }
.wa:active { transform: scale(.96); }
.cookie {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 70;
  background: var(--paper); color: var(--ink); padding: 14px var(--m) calc(14px + env(safe-area-inset-bottom));
  display: flex; align-items: center; justify-content: space-between; gap: 12px 32px; flex-wrap: wrap; font-size: 15px; line-height: 1.45;
  box-shadow: 0 -8px 24px rgba(0, 0, 0, .12); /* taste-skill-ignore: cookie bar is a real overlay */
  transform: translateY(100%);
  transition: transform .5s var(--ease-out);
}
.cookie.is-in { transform: none; }
.cookie p { max-width: 80ch; }
.cookie__actions { display: flex; gap: 8px; }
.cookie__actions .btn { min-height: 44px; padding: 0 20px; white-space: nowrap; }
.cookie-open .wa { transform: translateY(-84px); }


/* ---------- legal pages ---------- */
.legal-hero { height: 38vh; min-height: 240px; overflow: hidden; background: var(--dark); }
.legal-hero img { width: 100%; height: 100%; object-fit: cover; animation: drift 9s linear both; }
.legal-bar { display: flex; justify-content: space-between; align-items: center; padding: 20px var(--m); background: var(--bg); position: sticky; top: 0; z-index: 10; }
.legal-bar a { text-decoration: none; }
.legal-bar__name { font: 500 var(--step-lead)/1 var(--f-display); }
.legal { padding: clamp(56px, 8vw, 112px) var(--m) var(--section); display: grid; grid-template-columns: repeat(12, 1fr); column-gap: var(--gap); }
.legal__head { grid-column: 1 / 5; align-self: start; position: sticky; top: 96px; display: grid; gap: 16px; }
.legal__head p { color: var(--muted); font-size: 16px; }
.legal__body { grid-column: 6 / 13; max-width: 70ch; display: grid; gap: 18px; }
.legal__body h2 { font: 400 var(--step-lead)/1.2 var(--f-display); margin-top: 28px; }
.legal__body ul { list-style: disc; padding-left: 1.2em; display: grid; gap: 6px; }
.legal__body table { width: 100%; border-collapse: collapse; font-size: 16px; }
.legal__body th, .legal__body td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--field); vertical-align: top; }
.legal__body th { font-weight: 600; }
.legal__note { background: var(--surface); padding: 16px 20px; font-size: 16px; }

/* ---------- lightbox ---------- */
.lb { width: 100vw; height: 100svh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: #121314; color: var(--on-dark); }
.lb[open] { display: grid; grid-template-rows: auto 1fr auto; animation: menu-in .4s var(--ease-out); }
.lb::backdrop { background: #121314; }
.lb__bar, .lb__nav { display: flex; justify-content: space-between; align-items: center; padding: 16px var(--m); }
.lb__count { font-variant-numeric: tabular-nums; font-size: 14px; }
.lb__close, .lb__nav button { background: none; border: 0; padding: 12px 0; font-weight: 500; font-size: 16px; }
.lb__close:hover, .lb__nav button:hover { text-decoration: underline; }
.lb__track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.lb__track::-webkit-scrollbar { display: none; }
.lb__track figure { flex: 0 0 100%; scroll-snap-align: center; display: grid; place-items: center; padding: 0 var(--m); }
.lb__track img { max-height: calc(100svh - 150px); width: auto; object-fit: contain; }

/* ---------- reveal (only when JS runs) ---------- */
.js [data-reveal], .js [data-reveal-list] > * {
  opacity: 0; transform: translateY(24px);
  transition: opacity .9s var(--ease-out), transform .9s var(--ease-out);
  transition-delay: var(--d, 0ms);
}
.js [data-reveal-pic] { clip-path: inset(14% 0 0 0); transition: clip-path 1.3s var(--ease-io); transition-delay: var(--d, 0ms); }
.js [data-reveal-pic] img { transform: scale(1.12); transition: transform 1.6s var(--ease-out); transition-delay: var(--d, 0ms); }
.js .is-in[data-reveal], .js .is-in[data-reveal-list] > * { opacity: 1; transform: none; }
.js .is-in[data-reveal-pic] { clip-path: inset(0 0 0 0); }
.js .is-in[data-reveal-pic] img { transform: none; }

/* ---------- tablet ---------- */
@media (max-width: 1100px) {
  .rail__line { display: none; }
  .hero-foot {
    display: grid; gap: 16px; justify-items: start; position: absolute; left: 0; right: 0; bottom: 0; z-index: 2;
    padding: 96px var(--m) calc(32px + env(safe-area-inset-bottom));
    color: var(--on-dark); font-size: var(--step-lead); line-height: 1.35;
    background: linear-gradient(to top, rgba(14, 15, 16, .8), rgba(14, 15, 16, 0)); /* taste-skill-ignore: neutral scrim over the hero photo */
  }
  .hero-foot p { max-width: 32ch; }
  .hero-foot .btn--block { width: auto; }
  .rail__title { grid-column: 1 / 7; font-size: clamp(2rem, 4.2vw, 2.5rem); }
  .rail__nav { grid-column: 7 / 13; }
  .room__grid { grid-template-columns: repeat(2, 1fr); }
  .room[data-col="1"], .room[data-col="3"] { --c: 1; }
  .room[data-col="2"], .room[data-col="4"] { --c: 2; }
  .prices__side { grid-column: 1 / 13; display: grid; grid-template-columns: 1fr 1fr; column-gap: var(--gap); align-items: start; }
  .prices__side .prices__pic { grid-column: 2; grid-row: 1 / 4; width: 100%; aspect-ratio: 4 / 3; margin: 0; }
  .prices__list { grid-column: 1 / 13; }
  .book__form { grid-column: 1 / 13; }
  .book__sum { grid-column: 1 / 13; position: static; }
  .route__map, .route__text { grid-column: 1 / 13; }
  .contact__side, .contact__list { grid-column: 1 / 13; }
  .reviews__more { grid-template-columns: 1fr; }
  .scores { grid-template-columns: repeat(2, 1fr); }
  .foot__top { grid-template-columns: 1fr 1fr; row-gap: 40px; }
  .foot__top > div:first-child { grid-column: 1 / -1; }
  .legal__head { grid-column: 1 / 13; position: static; margin-bottom: 40px; }
  .legal__body { grid-column: 1 / 13; }
}

/* ---------- phone ---------- */
@media (max-width: 760px) {
  :root { --rail-h: 92px; --section: 112px; }
  .rail.is-solid { min-height: 60px; }
  .rail { height: auto; min-height: var(--rail-h); }
  .rail__inner { display: flex; justify-content: space-between; gap: 16px; padding-block: 12px; }
  .rail__title { font-size: 32px; white-space: normal; line-height: 1.02; max-width: 12ch; }
  .rail__nav { display: none; }
  .rail__menu { display: block; }
  .hero-foot { padding: 72px 20px calc(20px + env(safe-area-inset-bottom)); font-size: 18px; }
  .hero-foot .btn--block { width: 100%; }
  .hero-shot img { object-position: 38% 50%; }

  .intro { display: block; }
  .intro__pin { position: static; }
  .facts { grid-template-columns: repeat(2, auto); gap: 24px 40px; }
  .intro__pics { padding-top: 64px; gap: 48px; }
  .intro__pic--a { width: 64%; }
  .intro__pic--b { width: 78%; margin-left: auto; aspect-ratio: 4 / 3; }
  .intro__pic--c { width: 52%; margin-left: 0; }

  .rooms__head { display: grid; gap: 20px; }
  .rooms__head .h-head, .rooms__head .lead { grid-column: 1 / 13; }
  .room { height: auto; min-height: 0; display: flex; flex-direction: column; padding-bottom: 16px; background: var(--bg); }
  .room__bg { position: relative; height: 62svh; }
  .room__grid { position: relative; display: block; padding: 0 16px; margin-top: -56px; }
  .room__card { min-height: 0; display: grid; grid-template-columns: 1fr 96px; gap: 10px 16px; padding: 24px 20px; }
  .room__card > * { grid-column: 1 / -1; }
  .room__card h3, .room__card .room__variant { grid-column: 1; }
  .room__card .room__thumb { grid-column: 2; grid-row: 1 / 3; margin: 0; aspect-ratio: 1; }

  .prices__side { display: flex; }
  .prices__side .prices__pic { width: 60%; aspect-ratio: 4 / 5; }
  .prices__list { columns: 1; }
  .pgroup { padding-top: 40px; }
  
  .prow { font-size: var(--step-body); }

  .book__head { display: grid; gap: 20px; }
  .book__head .h-head, .book__head .lead { grid-column: 1 / 13; }
  .book__rooms { grid-template-columns: 1fr 1fr; }
  .book__row, .book__row--3 { grid-template-columns: 1fr; }
  .book__sum { padding: 24px 20px; }

  .svc__stack { position: absolute; left: 0; right: 0; bottom: 0; padding: 0 20px 32px; text-align: left; justify-items: start; }
  .svc__title { font-size: var(--step-head); }
  .svc__list li { font-size: var(--step-body); }
  .svc__list li.is-on { transform: none; }
  .svc__pair img:first-child { left: auto; right: 16px; top: calc(var(--rail-h) + 16px); width: 44vw; }
  .svc__pair img:last-child { display: none; }

  .tri__head { padding-top: calc(var(--rail-h) + 24px); }
  .tri__mid { width: 64vw; }
  .tri__side { width: 40vw; }

  .reviews { display: block; }
  .reviews__title { margin-bottom: 40px; }
  .reviews__portrait { width: 72%; }
  .reviews__quote { margin-top: 32px; }
  .reviews__quote p { font-size: var(--step-statement); }
  .reviews__small { width: 44%; margin: 48px 0 0 auto; }
  .scores { grid-template-columns: 1fr 1fr; margin-top: 72px; gap: 32px 12px; }
  .scores div { padding: 20px; }
  .reviews__more { margin-top: 48px; gap: 40px; }

  .visit__photo { height: auto; min-height: 0; overflow: visible; background: none; }
  .visit__photo > img { position: relative; height: 70svh; }
  .visit__card { position: relative; top: auto; right: auto; width: auto; margin: -80px 16px 0; padding: 24px 20px; }
  .visit__card .btn { min-height: 56px; }

  .foot__top { grid-template-columns: 1fr; }
  .foot__meta { grid-template-columns: 1fr; font-size: 13px; padding-bottom: 72px; }
  .wa { height: 56px; width: 56px; padding: 0; justify-content: center; }
  .wa__label { display: none; }
  .cookie { padding: 16px 20px calc(16px + env(safe-area-inset-bottom)); }
  .cookie__actions { width: 100%; }
  .cookie__actions .btn { flex: 1; padding: 0 12px; }
  .cookie-open .wa { transform: translateY(-150px); }
}

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; transition-delay: 0ms !important; }
  .js [data-reveal], .js [data-reveal-list] > * { opacity: 1; transform: none; }
  .js [data-reveal-pic] { clip-path: none; }
  .js [data-reveal-pic] img, .room__bg, .hero-detail img { transform: none; }
}
