/* ==========================================================================
   Hostal Óleo — Renovación de sitio
   Tokens taken directly from the Claude Design canvas ("Hostal Oleo.dc.html").
   ========================================================================== */

:root {
  /* Surfaces & ink */
  --bg:           #f6f4ef;
  --surface:      #fbfaf7;
  --ink:          #23211d;
  --ink-soft:     #4c483f;
  --ink-mute:     #7c7668;
  --ink-faint:    #a29c8c;
  --line:         #e0dcd2;

  /* Green */
  --green:        #2c4a3a;
  --green-dark:   #1b2f24;
  --green-pale:   #a8bba9;
  --green-mist:   #cfd8cd;
  --on-green:     #eef0ea;
  --on-green-soft:#e4e8e0;
  --on-green-line:rgba(238, 240, 234, 0.18);

  /* Image placeholders */
  --stripe-a:     #e7e3d8;
  --stripe-b:     #eeebe2;
  --stripe-ink:   #8a8474;

  --select:       #d9e2d4;

  /* Type */
  --serif:  Newsreader, Georgia, "Times New Roman", serif;
  --sans:   Archivo, system-ui, -apple-system, "Segoe UI", sans-serif;
  --narrow: "Archivo Narrow", Archivo, system-ui, sans-serif;
  --mono:   ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  /* Rhythm — fluid so the desktop canvas survives down to 320px */
  --pad-x:  clamp(20px, 5vw, 48px);
  --sec-y:  clamp(56px, 9vw, 96px);
  --gap-lg: clamp(40px, 6vw, 80px);

  --header-h: 84px;
}

/* ── Reset ───────────────────────────────────────────────────────────────── */

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-wrap: break-word;
}

h1, h2, h3, p, ul, ol, figure, address { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img { max-width: 100%; height: auto; display: block; }
address { font-style: normal; }
button { font: inherit; color: inherit; }

a { color: var(--green); text-decoration: none; }
a:hover { color: var(--green-dark); }

::selection { background: var(--select); }

:where(a, button, [tabindex]):focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 3px;
  border-radius: 2px;
}

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

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  background: var(--green);
  color: var(--on-green);
  padding: 12px 20px;
  border-radius: 0 0 8px 0;
  font-size: 14px;
  font-weight: 500;
}
.skip-link:focus { left: 0; color: var(--on-green); }

/* ── Shared bits ─────────────────────────────────────────────────────────── */

.eyebrow {
  font-family: var(--narrow);
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-mute);
}
.fact .eyebrow { font-size: 11px; letter-spacing: 0.18em; }
.eyebrow--light { color: var(--green-pale); }

.badge {
  align-self: flex-start;
  background: var(--green);
  color: var(--on-green);
  padding: 9px 18px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
}

.btn {
  display: inline-block;
  background: var(--green);
  color: var(--on-green);
  padding: 16px 32px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 500;
  text-align: center;
  transition: background-color 0.18s ease;
}
.btn:hover { background: var(--green-dark); color: var(--on-green); }
.btn--sm { padding: 11px 22px; font-size: 14px; }

/* Marco de foto. Comparte el rayado de fondo con .media, que queda visible
   mientras la imagen carga y como marcador donde aún no hay foto (el mapa). */
.frame {
  display: block;
  position: relative;
  overflow: hidden;
  background-image: repeating-linear-gradient(
    135deg, var(--stripe-a) 0 12px, var(--stripe-b) 12px 24px);
}
.frame img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Marcador a rayas sin foto (sección de contacto). */
.media {
  position: relative;
  background-image: repeating-linear-gradient(
    135deg,
    var(--stripe-a) 0 12px,
    var(--stripe-b) 12px 24px
  );
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 16px;
}
.media__note {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--stripe-ink);
  background: var(--bg);
  padding: 7px 12px;
}
.media__cta {
  position: absolute;
  top: 16px;
  left: 16px;
  background: var(--bg);
  border: 1px solid var(--line);
  padding: 9px 16px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
}
.media__cta:hover { background: var(--green); color: var(--on-green); border-color: var(--green); }

/* ── Header ──────────────────────────────────────────────────────────────── */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(246, 244, 239, 0.92);
  border-bottom: 1px solid var(--line);
}
@supports (backdrop-filter: blur(8px)) or (-webkit-backdrop-filter: blur(8px)) {
  .site-header {
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
  }
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 22px var(--pad-x);
}

.brand { display: flex; align-items: center; gap: 12px; }
.brand__logo { height: 40px; width: auto; }
.brand__place {
  font-family: var(--narrow);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-mute);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 26px;
  font-size: 14px;
}
.site-nav__links {
  display: flex;
  align-items: center;
  gap: 26px;
}

.lang {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--narrow);
  font-size: 12px;
  letter-spacing: 0.06em;
  padding-left: 6px;
}
.lang__btn {
  background: none;
  border: 0;
  padding: 4px 2px;
  cursor: pointer;
  color: var(--ink-faint);
  font-family: inherit;
  font-size: inherit;
  letter-spacing: inherit;
}
.lang__btn:hover { color: var(--ink-soft); }
.lang__btn.is-active { color: var(--ink); font-weight: 600; }
.lang__sep { color: #cbc6b8; }

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  cursor: pointer;
  padding: 0;
  place-items: center;
  align-content: center;
  justify-items: center;
  gap: 4px;
}
.nav-toggle__bar {
  display: block;
  width: 18px;
  height: 1.5px;
  background: var(--ink);
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(1) { transform: translateY(5.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(3) { transform: translateY(-5.5px) rotate(-45deg); }

/* ── Hero ────────────────────────────────────────────────────────────────── */

.hero {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  min-height: 620px;
  border-bottom: 1px solid var(--line);
  scroll-margin-top: var(--header-h);
}
.hero__body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 30px;
  padding: clamp(56px, 8vw, 92px) clamp(20px, 5vw, 64px) clamp(48px, 7vw, 80px) var(--pad-x);
}
.hero__title {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(40px, 6.4vw, 66px);
  line-height: 1.06;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
.hero__title span { display: block; }
.hero__lede {
  max-width: 46ch;
  font-size: 17px;
  line-height: 1.62;
  color: var(--ink-soft);
  text-wrap: pretty;
}
.hero__actions {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}
.hero__note { font-size: 14px; color: var(--ink-mute); }
.hero__feats {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 40px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  color: var(--ink-soft);
}


/* ── Generic section scaffolding ─────────────────────────────────────────── */

.section {
  padding: var(--sec-y) var(--pad-x);
  border-bottom: 1px solid var(--line);
  scroll-margin-top: var(--header-h);
}
.section__title {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(28px, 4vw, 38px);
  line-height: 1.12;
  letter-spacing: -0.01em;
}
.section__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 44px;
}
.section__aside { font-size: 14px; color: var(--ink-mute); }

/* El hostal */
.section--split {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 72px;
}
.facts {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 44px 56px;
  max-width: 760px;
}
.fact { display: flex; flex-direction: column; gap: 8px; }
.fact p { font-size: 16px; line-height: 1.6; color: var(--ink-soft); }

/* Habitaciones */
.rooms {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.room {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  background: var(--surface);
}
.room__media { height: 220px; }
.media.room__media { align-items: flex-end; justify-content: flex-start; padding: 14px; }
.media.room__media .media__note { font-size: 11px; background: var(--surface); padding: 6px 10px; }
.room__body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.room__name {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 24px;
}
.room__body p { font-size: 15px; line-height: 1.55; color: var(--ink-soft); }
.room__price {
  font-family: var(--narrow);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-mute);
  padding-top: 6px;
  margin-top: auto;
}

/* Bar-cafetería */
.section--bar {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: center;
}
.bar__body { display: flex; flex-direction: column; gap: 22px; }
.bar__lede { max-width: 44ch; font-size: 16px; line-height: 1.6; color: var(--ink-soft); }
.bar__list { display: flex; flex-direction: column; gap: 10px; }
.bar__list li {
  font-size: 15px;
  color: var(--ink-soft);
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}
.bar__media { min-height: 340px; }

/* Check-in */
.checkin {
  background: var(--green);
  color: var(--on-green);
  border-bottom: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--gap-lg);
  align-items: start;
}
.checkin__intro { display: flex; flex-direction: column; gap: 26px; }
.checkin__title {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(32px, 4.6vw, 44px);
  line-height: 1.1;
  letter-spacing: -0.01em;
}
.checkin__lede {
  max-width: 44ch;
  font-size: 17px;
  line-height: 1.6;
  color: var(--green-mist);
}
.steps { display: flex; flex-direction: column; }
.step {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 20px;
  padding: 22px 0;
  border-bottom: 1px solid var(--on-green-line);
}
.step__n { font-family: var(--serif); font-size: 22px; color: var(--green-pale); }
.step__text { font-size: 16px; line-height: 1.55; color: var(--on-green-soft); }

/* Contacto */
.section--contact {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--gap-lg);
  border-bottom: 0;
}
.contact__body { display: flex; flex-direction: column; gap: 28px; }
.contact__address {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 17px;
  line-height: 1.6;
}
.contact__muted { color: var(--ink-soft); }
.contact__links {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 17px;
  align-items: flex-start;
}
.contact__hours {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 34px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  font-size: 14px;
  color: var(--ink-soft);
}
.contact__map { display: flex; flex-direction: column; gap: 8px; }
.map-link {
  position: relative;
  display: block;
  min-height: 300px;
  flex: 1;
}
.map-link__img { height: 100%; min-height: 300px; }
.map-link .media__cta { pointer-events: none; }          /* el enlace es toda la imagen */
.map-link:hover .media__cta { background: var(--green); color: var(--on-green); border-color: var(--green); }
.map-credit { font-size: 11px; color: var(--ink-mute); }
.map-credit a { color: var(--ink-mute); text-decoration: underline; }
.map-credit a:hover { color: var(--green); }


/* Galería */
.gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.gallery__item {
  aspect-ratio: 3 / 2;
  border: 1px solid var(--line);
}

/* ── Footer ──────────────────────────────────────────────────────────────── */

.site-footer {
  padding: 34px var(--pad-x);
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  font-size: 13px;
  color: var(--ink-mute);
}
.site-footer__brand { font-family: var(--serif); font-size: 17px; color: var(--ink); }
.site-footer__links { display: flex; gap: 26px; flex-wrap: wrap; }



/* ── Buscador de fechas ──────────────────────────────────────────────────── */

.booking {
  padding: clamp(24px, 3.5vw, 34px) var(--pad-x);
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}
.booking__form {
  display: grid;
  /* La última columna absorbe el hueco: los controles quedan a la izquierda
     y la nota puede ocupar todo el ancho sin partirse antes de tiempo. */
  grid-template-columns: repeat(2, minmax(150px, 190px)) auto 1fr;
  align-items: end;
  gap: 14px 16px;
}
.booking__title {
  grid-column: 1 / -1;
  font-family: var(--narrow);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-mute);
}
.booking__field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.booking__field label {
  font-size: 13px;
  color: var(--ink-soft);
}
.booking__field input {
  font: inherit;
  font-size: 15px;
  color: var(--ink);
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 12px;
  height: 48px;                      /* misma altura que el botón */
  width: 100%;
  transition: border-color 0.15s ease;
}
.booking__field input:hover { border-color: var(--ink-faint); }
.booking__field input:focus-visible {
  outline: none;
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(44, 74, 58, 0.14);
}
.booking .btn {
  height: 48px;
  padding: 0 30px;
  white-space: nowrap;
}
.booking__note {
  grid-column: 1 / -1;
  font-size: 13px;
  line-height: 1.5;
  color: var(--ink-mute);
  max-width: 90ch;
  text-wrap: pretty;
}

@media (max-width: 620px) {
  .booking__form { grid-template-columns: 1fr 1fr; }
  .booking .btn { grid-column: 1 / -1; width: 100%; }
}

/* ── Páginas interiores (generadas por tools/build-site.py) ──────────────── */

.section__intro {
  max-width: 62ch;
  font-size: 17px;
  line-height: 1.62;
  color: var(--ink-soft);
  margin-top: 18px;
  text-wrap: pretty;
}
.section--split .section__intro { margin-top: 20px; }
.section__aside-col { display: flex; flex-direction: column; }

.section__note {
  margin-top: 28px;
  font-size: 14px;
  color: var(--ink-mute);
  max-width: 60ch;
}
.section__more { margin-top: 28px; font-size: 15px; }
.section__more a { font-weight: 500; }
.section__more--light a { color: var(--green-pale); }
.section__more--light a:hover { color: var(--on-green); }

.checkin__extra {
  max-width: 46ch;
  font-size: 16px;
  line-height: 1.6;
  color: var(--green-mist);
}

.facts--wide { grid-template-columns: repeat(2, 1fr); max-width: none; }

/* El selector de idioma ahora son enlaces, no botones. */
a.lang__btn { text-decoration: none; }
span.lang__btn { cursor: default; }

.site-nav__links a[aria-current="page"] { color: var(--ink); font-weight: 600; }
.site-footer__links a { color: var(--ink-mute); }
.site-footer__links a:hover { color: var(--green); }

@media (max-width: 640px) {
  .facts--wide { grid-template-columns: 1fr; }
}


/* ── Reseñas ─────────────────────────────────────────────────────────────── */

.reviews {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.review {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin: 0;
  padding: 28px;
  background: var(--surface);
  border: 1px solid var(--line);
}
.review__stars {
  font-size: 15px;
  letter-spacing: 0.12em;
  color: var(--green);
  line-height: 1;
}
.review__text {
  margin: 0;
  font-size: 15px;
  line-height: 1.62;
  color: var(--ink-soft);
  text-wrap: pretty;
}
.review__by {
  display: flex;
  flex-direction: column;
  gap: 3px;
  margin-top: auto;
  padding-top: 6px;
}
.review__author { font-weight: 600; font-size: 14px; }
.review__meta {
  font-family: var(--narrow);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--ink-mute);
}
.reviews__note {
  margin-top: 14px;
  font-size: 12px;
  color: var(--ink-mute);
}

/* ── Mapa de Google: se carga al pulsar ──────────────────────────────────── */

.map-embed {
  position: relative;
  display: block;
  min-height: 300px;
  flex: 1;
  overflow: hidden;
}
.map-embed .frame { height: 100%; min-height: 300px; }
.map-embed__overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 24px;
  text-align: center;
  background: rgba(246, 244, 239, 0.72);
}
@supports (backdrop-filter: blur(2px)) {
  .map-embed__overlay { backdrop-filter: blur(2px); }
}
.map-embed__note {
  max-width: 34ch;
  font-size: 12px;
  line-height: 1.5;
  color: var(--ink-soft);
}
/* Una vez cargado, el iframe ocupa todo el hueco. */
.map-embed.is-loaded .map-embed__overlay,
.map-embed.is-loaded .frame { display: none; }
/* Con el mapa de Google cargado, la atribución a OSM ya no corresponde:
   el marcador estático desaparece y Google pone la suya dentro del iframe. */
.map-embed.is-loaded + .map-credit { display: none; }
.map-embed iframe {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 300px;
  border: 0;
}

@media (max-width: 1080px) {
  .reviews { grid-template-columns: 1fr; gap: 18px; }
  .review { padding: 24px; }
}


/* ── Visor de fotos ampliadas ────────────────────────────────────────────── */

/* El botón sólo envuelve: no debe aportar caja propia. */
.zoom {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: none;
  cursor: zoom-in;
  font: inherit;
  color: inherit;
}
.zoom > .frame { transition: opacity 0.18s ease; }
.zoom:hover > .frame { opacity: 0.88; }
.zoom:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; }

.lightbox {
  border: 0;
  padding: 0;
  max-width: 100vw;
  max-height: 100vh;
  width: 100%;
  height: 100%;
  background: transparent;
  overflow: hidden;
}
.lightbox::backdrop { background: rgba(20, 18, 15, 0.92); }

.lightbox__fig {
  margin: 0;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: clamp(16px, 4vw, 48px);
}
.lightbox__fig picture { display: block; min-height: 0; }
.lightbox__fig img {
  display: block;
  max-width: min(100%, 1100px);
  max-height: 78vh;
  width: auto;
  height: auto;
  object-fit: contain;
  background: var(--stripe-b);
}
.lightbox figcaption {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  color: #e7e3d8;
  font-size: 14px;
  text-align: center;
  max-width: 62ch;
}
.lightbox__num {
  font-family: var(--narrow);
  font-size: 12px;
  letter-spacing: 0.14em;
  color: #a29c8c;
}

.lightbox__close,
.lightbox__nav {
  position: fixed;
  border: 1px solid rgba(231, 227, 216, 0.28);
  background: rgba(20, 18, 15, 0.55);
  color: #f6f4ef;
  border-radius: 999px;
  cursor: pointer;
  line-height: 1;
  display: grid;
  place-items: center;
  transition: background-color 0.18s ease, border-color 0.18s ease;
}
.lightbox__close:hover,
.lightbox__nav:hover { background: var(--green); border-color: var(--green); }
.lightbox__close:focus-visible,
.lightbox__nav:focus-visible { outline: 2px solid #f6f4ef; outline-offset: 2px; }

.lightbox__close {
  top: 16px; right: 16px;
  width: 46px; height: 46px;
  font-size: 28px;
}
.lightbox__nav {
  top: 50%;
  transform: translateY(-50%);
  width: 52px; height: 52px;
  font-size: 32px;
}
.lightbox__nav--prev { left: 16px; }
.lightbox__nav--next { right: 16px; }

@media (max-width: 640px) {
  .lightbox__fig img { max-height: 66vh; }
  .lightbox__nav { width: 44px; height: 44px; font-size: 26px; bottom: 20px; top: auto; transform: none; }
  .lightbox__nav--prev { left: 20px; }
  .lightbox__nav--next { right: 20px; }
}

@media (prefers-reduced-motion: reduce) {
  .zoom > .frame, .lightbox__close, .lightbox__nav { transition: none; }
}


/* ── Páginas legales ─────────────────────────────────────────────────────── */

.legal { max-width: 70ch; }
.legal .section__intro { margin-bottom: 8px; }
.legal__block { margin-top: 38px; }
.legal__block h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 22px;
  letter-spacing: -0.01em;
  margin-bottom: 12px;
}
.legal__block p {
  font-size: 16px;
  line-height: 1.68;
  color: var(--ink-soft);
  margin-bottom: 10px;
  text-wrap: pretty;
}
.legal__block p strong { color: var(--ink); font-weight: 600; }
.legal__block a { text-decoration: underline; text-underline-offset: 2px; }
.legal__updated {
  margin-top: 44px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  color: var(--ink-mute);
}

/* ── Responsive ──────────────────────────────────────────────────────────── */

/* Grid/flex children default to min-width:auto, which stops a track from
   shrinking below its content. Opt them out so long strings wrap instead. */
.hero > *, .section > *, .facts > *, .fact > *, .rooms > *, .room > *,
.bar__body > *, .contact__body > *, .checkin__intro > *, .step > * {
  min-width: 0;
}
.media__note { max-width: 100%; }

/* Tablet: relax the fixed two-column splits before anything overflows. */
@media (max-width: 1080px) {
  .gallery { grid-template-columns: repeat(3, 1fr); }
  .section--split { grid-template-columns: 1fr; gap: 40px; }
  .section--bar { gap: 48px; }
  .checkin, .section--contact { gap: 48px; }
}

@media (max-width: 900px) {
  .rooms { grid-template-columns: repeat(2, 1fr); }

  /* Collapse the desktop nav into a disclosure panel. */
  .nav-toggle { display: grid; }
  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px var(--pad-x) 24px;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
  }
  .site-nav.is-open { display: flex; }
  .site-nav__links { flex-direction: column; align-items: stretch; gap: 0; }
  .site-nav__links a {
    display: block;
    padding: 14px 0;
    border-bottom: 1px solid var(--line);
    font-size: 16px;
    color: var(--ink);
  }
  .site-nav__links a:hover { color: var(--green); }
  .lang { padding: 18px 0; gap: 8px; font-size: 13px; }
  .btn--sm { align-self: flex-start; padding: 14px 26px; font-size: 15px; }
}

@media (max-width: 820px) {
  .hero { grid-template-columns: 1fr; min-height: 0; }
  .hero__body { padding: clamp(40px, 9vw, 64px) var(--pad-x); gap: 24px; }

  .section--bar { grid-template-columns: 1fr; }
  .bar__media { order: -1; }

  .checkin, .section--contact { grid-template-columns: 1fr; }

  /* Height now comes from the ratio. Keeping the desktop min-height here would
     impose a *minimum width* (min-height x 4/3) and burst the grid track. */
  .hero__media, .bar__media, .map-embed, .map-link__img {
    min-height: 0;
    aspect-ratio: 4 / 3;
  }
}

@media (max-width: 640px) {
  :root { --header-h: 76px; }
  .gallery { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .site-header__inner { padding: 16px var(--pad-x); }
  .brand__logo { height: 32px; }
  .facts { grid-template-columns: 1fr; gap: 32px; }
  .rooms { grid-template-columns: 1fr; }
  .room__media { height: 200px; }
  .section__head { flex-direction: column; align-items: flex-start; gap: 12px; margin-bottom: 32px; }
  .hero__actions { flex-direction: column; align-items: stretch; }
  .hero__actions .btn { width: 100%; }
  .hero__note { text-align: center; }
  .hero__feats { flex-direction: column; gap: 8px; }
  .site-footer { flex-direction: column; align-items: flex-start; gap: 18px; }
}

@media (max-width: 380px) {
  .brand__place { display: none; }
}

/* ── Print ───────────────────────────────────────────────────────────────── */

@media print {
  .site-header, .nav-toggle, .skip-link, .media { display: none; }
  body { background: #fff; }
  .section, .hero { border: 0; padding: 16px 0; }
  .checkin { background: #fff; color: #000; }
  .checkin__lede, .step__text, .step__n { color: #000; }
}
