/* ============================================================
   ОЛЕСЯ ЛОО — Hotel Site Design System
   Redesign tokens + base + functional styles
   ============================================================ */

:root {
  --font-display: "Fraunces", "Playfair Display", Georgia, serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", "SF Mono", Menlo, monospace;

  --bg: #fdf6ea;
  --bg-elev: #fffbf2;
  --bg-deep: #f5e8d0;
  --ink: #2a1a14;
  --ink-soft: #5a3f33;
  --ink-mute: #9a8478;
  --line: rgba(42, 26, 20, 0.13);
  --line-soft: rgba(42, 26, 20, 0.06);
  --accent: #d8351e;
  --accent-soft: #fde3df;
  --accent-ink: #ffffff;
  --highlight: #f6b820;

  --hero-overlay: linear-gradient(180deg, rgba(42,26,20,0.18) 0%, rgba(42,26,20,0.70) 100%);

  --fs-display: clamp(3rem, 7vw, 5.5rem);
  --fs-h1: clamp(2.25rem, 4.5vw, 3.5rem);
  --fs-h2: clamp(1.75rem, 3vw, 2.5rem);
  --fs-h3: clamp(1.25rem, 2vw, 1.5rem);
  --fs-body: 1rem;
  --fs-small: 0.875rem;
  --fs-eyebrow: 0.75rem;

  --space-section: clamp(1.5rem, 4vw, 3rem);
  --radius: 4px;
  --radius-lg: 8px;
  --radius-pill: 999px;

  --shadow-sm: 0 1px 2px rgba(26,36,51,0.06), 0 1px 1px rgba(26,36,51,0.04);
  --shadow-md: 0 8px 24px -8px rgba(26,36,51,0.18);
  --shadow-lg: 0 24px 60px -20px rgba(26,36,51,0.25);

  --focus-outline: 3px solid var(--highlight);
  --transition: 0.25s ease;
}

/* ============================================================
   Base Reset
   ============================================================ */
*,
*::before,
*::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden;
}

body {
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  max-width: 100%;
  padding-top: 0;
}

main:not(.full-width) {
  padding-top: clamp(80px, 8vw, 120px);
}

img, picture, svg { display: block; max-width: 100%; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin: 0;
}

p { margin: 0; }

a { color: inherit; text-decoration: none; }

button { font: inherit; cursor: pointer; }

.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 4vw, 2.5rem);
}

.container-narrow {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 4vw, 2.5rem);
}

.eyebrow {
  font-family: var(--font-body);
  font-size: var(--fs-eyebrow);
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-mute);
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
}

.eyebrow::before {
  content: "";
  width: 1.5rem;
  height: 1px;
  background: currentColor;
  display: inline-block;
}

section { padding: var(--space-section) 0; }

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  border: 0;
}

/* ============================================================
   Buttons
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.9rem 1.75rem;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  border: 1px solid transparent;
  border-radius: var(--radius);
  background: var(--accent);
  color: var(--accent-ink);
  transition: transform var(--transition), background var(--transition), border-color var(--transition), color var(--transition);
  cursor: pointer;
  white-space: nowrap;
  text-decoration: none;
}
.btn:hover { transform: translateY(-1px); background: var(--highlight); color: var(--ink); }
.btn:active { transform: translateY(0); }
.btn:focus { outline: var(--focus-outline); outline-offset: 2px; }

.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { background: var(--highlight); color: var(--ink); }

.btn-secondary {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}
.btn-secondary:hover {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--bg);
}

.btn-link {
  background: transparent;
  color: var(--ink);
  padding: 0;
  border: 0;
  border-bottom: 1px solid currentColor;
  border-radius: 0;
  padding-bottom: 2px;
  letter-spacing: 0.02em;
}

.btn-large { padding: 1.1rem 2.25rem; font-size: 1rem; }

.btn-outline {
  background: transparent;
  border: 1px solid var(--line);
  color: var(--ink-soft);
}
.btn-outline:hover { background: var(--bg-deep); }

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line);
}
.btn-ghost:hover { background: var(--bg-deep); color: var(--ink); border-color: var(--ink-soft); }

/* ============================================================
   Skip link
   ============================================================ */
.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--highlight);
  color: var(--ink);
  padding: 8px 16px;
  z-index: 1002;
  text-decoration: none;
  font-weight: 700;
  transition: top 0.2s;
  border-radius: 0 0 var(--radius) 0;
}
.skip-link:focus { top: 0; outline: var(--focus-outline); outline-offset: 2px; }

/* ============================================================
   Header / Nav
   ============================================================ */
.site-header,
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(150%) blur(14px);
  -webkit-backdrop-filter: saturate(150%) blur(14px);
  border-bottom: 1px solid var(--line-soft);
}

.site-header__inner {
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  align-items: center;
  gap: 2rem;
  padding: 1rem 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
}
.brand__img { height: 48px; width: auto; display: block; }
.brand__text {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--ink);
  line-height: 1;
}
.brand__text span { color: var(--accent); }

/* nav-menu is kept for JS compatibility; styled as redesign .nav */
.nav-menu {
  display: flex;
  justify-content: center;
  gap: 1.75rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-menu li { position: relative; }

.nav-menu a {
  font-size: 0.9rem;
  color: var(--ink-soft);
  position: relative;
  padding: 0.4rem 0;
  transition: color var(--transition);
  white-space: nowrap;
}
.nav-menu a:hover,
.nav-menu a.active { color: var(--ink); }
.nav-menu a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: var(--ink);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}
.nav-menu a:hover::after,
.nav-menu a.active::after { transform: scaleX(1); }

/* Rooms dropdown hidden on desktop — just links */
.dropdown-content {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  min-width: 180px;
  box-shadow: var(--shadow-md);
  z-index: 200;
  overflow: hidden;
}
.dropdown:hover .dropdown-content,
.dropdown:focus-within .dropdown-content,
.dropdown.active .dropdown-content { display: block; }
.dropdown-content a {
  display: block;
  padding: 0.7rem 1rem;
  font-size: 0.9rem;
  color: var(--ink-soft);
  border-bottom: 1px solid var(--line-soft);
  transition: background var(--transition), color var(--transition);
}
.dropdown-content a:last-child { border-bottom: none; }
.dropdown-content a:hover { background: var(--bg-deep); color: var(--ink); }
.dropdown-content a::after { display: none; }

.dropdown > a::after { content: none; }

.header-cta {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.header-phone {
  font-size: 0.875rem;
  color: var(--ink-soft);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

/* hamburger (mobile) */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 32px;
  height: 22px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 1002;
  transition: all 0.3s ease;
}
.hamburger:hover {
  opacity: 0.7;
}
.hamburger span {
  display: block;
  width: 100%;
  height: 2.5px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s;
  transform-origin: center;
}
.hamburger.active span:nth-child(1) {
  transform: translateY(10px) rotate(45deg);
}
.hamburger.active span:nth-child(2) {
  opacity: 0;
}
.hamburger.active span:nth-child(3) {
  transform: translateY(-10px) rotate(-45deg);
}

/* menu overlay */
.menu-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(42, 26, 20, 0.45);
  z-index: 99;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}
body.menu-open .menu-overlay {
  display: block;
  opacity: 1;
  pointer-events: auto;
}

/* close button row inside mobile nav panel */
.nav-menu__close-row {
  display: none;
  border-bottom: none !important;
  padding: 0 !important;
  margin-bottom: 0.5rem;
}
.nav-menu__close-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: var(--bg-deep);
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--ink-soft);
  cursor: pointer;
  font-size: 1rem;
  transition: background var(--transition), color var(--transition);
}
.nav-menu__close-btn:hover { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }

@media (max-width: 960px) {
  .nav-menu__close-row { display: flex; justify-content: flex-end; }

/* close button row inside mobile nav panel */
  .site-header__inner {
    grid-template-columns: auto 1fr auto;
    gap: 0.75rem;
  }
  /* nav element plays no role in grid layout — nav-menu is position:fixed */
  .site-header__inner > nav { display: contents; }
  /* hamburger moves to the left of logo */
  .hamburger {
    display: flex;
    order: -1;
  }
  /* logo centred in the 1fr column */
  .brand { justify-self: center; }
  .nav-menu {
    display: flex;
    position: fixed;
    top: 0;
    left: -100%;
    bottom: auto;
    height: max-content;
    max-height: 100dvh;
    width: min(380px, 90vw);
    background: var(--bg);
    flex-direction: column;
    justify-content: flex-start;
    gap: 0;
    padding: 5rem 1.5rem 2rem;
    z-index: 101;
    box-shadow: var(--shadow-lg);
    overflow-y: auto;
    visibility: hidden;
    pointer-events: none;
    transition: left 0.3s ease-out, visibility 0.3s;
  }
  .nav-menu.active {
    left: 0;
    visibility: visible;
    pointer-events: auto;
  }
  /* always show rooms submenu inline inside the slide panel */
  .nav-menu .dropdown-content {
    display: block !important;
  }
  .nav-menu li {
    border-bottom: 1px solid var(--line-soft);
    padding: 0;
    margin: 0;
  }
  .nav-menu a {
    display: block;
    padding: 1rem 0;
    font-size: 0.95rem;
    width: 100%;
  }
  .nav-menu a::after { display: none; }
  .dropdown-content {
    position: static;
    box-shadow: none;
    border: none;
    border-radius: 0;
    background: var(--bg-deep);
    padding: 0.5rem 0 0.5rem 1rem;
    margin: 0.25rem 0;
  }
  .dropdown-content a {
    padding: 0.6rem 0;
    font-size: 0.9rem;
  }
  .header-phone { display: none; }
}

@media (max-width: 640px) {
  .header-cta .btn { display: none; }
  .nav-menu {
    width: 100vw;
    left: -100vw;
  }
  .nav-menu.active {
    left: 0;
    visibility: visible;
    pointer-events: auto;
  }
}

/* full-width main wrapper */
main.full-width { width: 100%; max-width: none; padding: 0; margin: 0; }

/* ============================================================
   Progress bar
   ============================================================ */
.progress-container {
  position: fixed;
  top: var(--header-height, 85px);
  left: 0;
  right: 0;
  width: 100%;
  height: 3px;
  background: var(--line-soft);
  z-index: 99;
}
.progress-bar {
  height: 100%;
  background: var(--accent);
  width: 0%;
  transition: width 0.05s linear;
}

/* ============================================================
   Hero
   ============================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  color: #fff;
  overflow: hidden;
  isolation: isolate;
  padding: 0; /* override section { padding } — hero is flush with the header */
}
.hero__media {
  position: absolute;
  inset: 0;
  z-index: -2;
}
.hero__media img,
.hero__media .placeholder {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--hero-overlay);
  z-index: -1;
}
.hero__inner {
  padding-top: clamp(140px, 15vh, 200px);
  padding-bottom: clamp(2.5rem, 6vh, 5rem);
}
.hero__eyebrow { color: rgba(255,255,255,0.85); margin-bottom: 1.25rem; }
.hero__eyebrow::before { background: rgba(255,255,255,0.85); }
.hero__title {
  font-size: var(--fs-display);
  color: #fff;
  max-width: 18ch;
  margin: 0 0 1.25rem;
  letter-spacing: -0.02em;
}
.hero__subtitle {
  max-width: 52ch;
  font-size: clamp(1rem, 1.6vw, 1.2rem);
  font-style: italic;
  color: rgba(255,255,255,0.92);
  font-weight: 300;
  line-height: 1.55;
}
.hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem 3rem;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.25);
}
.hero__meta-item { display: flex; flex-direction: column; gap: 0.2rem; }
.hero__meta-label {
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.7);
}
.hero__meta-value {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: #fff;
}

/* ============================================================
   Booking Widget (hero inline)
   ============================================================ */
.booking-widget {
  background: var(--bg-elev);
  color: var(--ink);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  box-shadow: var(--shadow-lg);
  display: grid;
  grid-template-columns: repeat(4, 1fr) auto;
  gap: 0;
  align-items: stretch;
  margin-top: 2.5rem;
  border: 1px solid var(--line);
}
.booking-widget__field {
  padding: 0.5rem 1.25rem;
  border-right: 1px solid var(--line-soft);
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  min-width: 0;
}
.booking-widget__field:first-child { padding-left: 0.75rem; }
.booking-widget__field label {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-mute);
}
.booking-widget__field input,
.booking-widget__field select {
  font: inherit;
  font-size: 1rem;
  color: var(--ink);
  background: transparent;
  border: 0;
  padding: 0.1rem 0;
  width: 100%;
  outline: none;
  font-family: var(--font-body);
}
.booking-widget__submit {
  background: var(--accent);
  color: var(--accent-ink);
  border: 0;
  border-radius: var(--radius);
  padding: 0 2rem;
  font-weight: 500;
  font-size: 0.9rem;
  letter-spacing: 0.03em;
  margin-left: 0.75rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: background var(--transition);
  cursor: pointer;
  white-space: nowrap;
}
.booking-widget__submit:hover { background: var(--highlight); color: var(--ink); }

@media (max-width: 900px) {
  .booking-widget {
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
    padding: 1rem;
  }
  .booking-widget__field { border-right: 0; padding: 0.6rem 0.5rem; }
  .booking-widget__submit { grid-column: 1 / -1; padding: 0.85rem; margin-left: 0; justify-content: center; }
}

/* ============================================================
   Section header
   ============================================================ */
.section-head {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-bottom: clamp(1.5rem, 3vw, 2.5rem);
}
.section-head--split {
  grid-template-columns: 1fr 1fr;
  align-items: end;
  gap: 3rem;
}
.section-head__title { font-size: var(--fs-h2); max-width: 22ch; }
.section-head__lede { color: var(--ink-soft); font-size: 1.05rem; max-width: 50ch; line-height: 1.6; }
@media (max-width: 800px) { .section-head--split { grid-template-columns: 1fr; } }

/* ============================================================
   About
   ============================================================ */
.about {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 6vw, 5rem);
  align-items: center;
}
.about__copy { display: flex; flex-direction: column; gap: 1.25rem; }
.about__copy p { color: var(--ink-soft); font-size: 1.05rem; line-height: 1.7; }
.about__copy p:first-of-type::first-letter {
  font-family: var(--font-display);
  font-size: 3.5rem;
  float: left;
  line-height: 0.9;
  margin: 0.2rem 0.6rem 0 0;
  color: var(--ink);
}
.about__media {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg-deep);
}
.about__media img { width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 0.5s ease; }
.about__media img.loaded { opacity: 1; }
.about__stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
  margin-top: 1.5rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--line);
}
.about__stat-num { font-family: var(--font-display); font-size: 2.25rem; color: var(--ink); }
.about__stat-label { font-size: 0.78rem; color: var(--ink-mute); letter-spacing: 0.06em; }
@media (max-width: 800px) { .about { grid-template-columns: 1fr; } }

/* ============================================================
   Services
   ============================================================ */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.service-card {
  background: var(--bg-elev);
  padding: 2rem 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  transition: background var(--transition);
}
.service-card:hover { background: var(--bg-deep); }
.service-card__icon {
  font-size: 2rem;
  color: var(--accent);
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
}
.service-card__num {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--ink-mute);
  letter-spacing: 0.1em;
  margin-bottom: 0.25rem;
}
.service-card__title { font-family: var(--font-display); font-size: 1.35rem; color: var(--ink); }
.service-card__desc { color: var(--ink-soft); font-size: 0.95rem; line-height: 1.55; }

/* ============================================================
   Rooms (alternating editorial layout)
   ============================================================ */
.rooms { display: flex; flex-direction: column; gap: clamp(3rem, 6vw, 5rem); }
.room {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}
.room:nth-child(even) .room__media { order: 2; }
.room__media {
  position: relative;
  aspect-ratio: 5 / 4;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg-deep);
}
.room__media img { width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 0.5s ease; }
.room__media img.loaded { opacity: 1; }
.room__badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background: var(--highlight);
  color: var(--ink);
  padding: 0.45rem 0.85rem;
  border-radius: var(--radius-pill);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  box-shadow: var(--shadow-sm);
}
.room__copy { display: flex; flex-direction: column; gap: 1rem; }
.room__num { font-family: var(--font-mono); font-size: 0.78rem; letter-spacing: 0.1em; color: var(--ink-mute); }
.room__title { font-size: var(--fs-h2); }
.room__desc { color: var(--ink-soft); font-size: 1rem; line-height: 1.65; max-width: 52ch; }
.room__specs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
  gap: 1rem 2rem;
  padding: 1.25rem 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  margin: 0.5rem 0;
}
.room__spec-label { font-size: 0.7rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-mute); }
.room__spec-value { font-family: var(--font-display); font-size: 1.05rem; color: var(--ink); margin-top: 0.15rem; }
.room__amenities {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 0.5rem;
  list-style: none;
  padding: 0;
  margin: 0;
}
.room__amenities li {
  font-size: 0.82rem;
  padding: 0.3rem 0.7rem;
  background: var(--accent-soft);
  color: var(--ink);
  border-radius: var(--radius-pill);
}
.room__cta { display: flex; align-items: center; gap: 1.5rem; margin-top: 1rem; flex-wrap: wrap; }
.room__price-block { display: flex; flex-direction: column; }
.room__price-from { font-size: 0.7rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-mute); }
.room__price { font-family: var(--font-display); font-size: 1.6rem; color: var(--ink); }
@media (max-width: 800px) {
  .room { grid-template-columns: 1fr; }
  .room:nth-child(even) .room__media { order: 0; }
}

/* ============================================================
   Gallery (CSS Grid mosaic)
   ============================================================ */
.gallery-grid,
.gallery {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-auto-rows: 150px;
  gap: 0.5rem;
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.gallery-item {
  overflow: hidden;
  background: var(--bg-deep);
  position: relative;
  cursor: pointer;
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease, opacity 0.5s ease;
  display: block;
  opacity: 0;
}
.gallery-item img.loaded { opacity: 1; }
.gallery-item:hover img { transform: scale(1.05); }

.gallery__item--w6 { grid-column: span 6; }
.gallery__item--w4 { grid-column: span 4; }
.gallery__item--w3 { grid-column: span 3; }
.gallery__item--w8 { grid-column: span 8; }
.gallery__item--h2 { grid-row: span 2; }
.gallery__item--h3 { grid-row: span 3; }

/* gallery placeholder when item has no image */
.gallery-item .placeholder {
  width: 100%;
  height: 100%;
  min-height: 100px;
  font-size: 1.75rem;
}

@media (max-width: 900px) {
  .gallery-grid,
  .gallery { grid-template-columns: repeat(6, 1fr); grid-auto-rows: 110px; }
  .gallery__item--w8 { grid-column: span 6; }
  .gallery__item--w6 { grid-column: span 6; }
  .gallery__item--w4 { grid-column: span 3; }
  .gallery__item--w3 { grid-column: span 3; }
}

@media (max-width: 540px) {
  .gallery-grid,
  .gallery { grid-template-columns: repeat(4, 1fr); grid-auto-rows: 90px; }
  .gallery__item--w8,
  .gallery__item--w6 { grid-column: span 4; }
  .gallery__item--w4 { grid-column: span 2; }
  .gallery__item--w3 { grid-column: span 2; }
}

/* ============================================================
   Location
   ============================================================ */
.location {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
}
.location__map {
  aspect-ratio: 5 / 4;
  background: var(--bg-deep);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line);
}
#map { width: 100%; height: 100%; min-height: 300px; }
.location__copy { display: flex; flex-direction: column; gap: 1.25rem; }
.location__copy h3 { font-size: var(--fs-h3); }
.location__copy p { color: var(--ink-soft); font-size: 1rem; line-height: 1.65; }
.location__actions { margin-top: 0.25rem; }
.location__features {
  list-style: none;
  padding: 0;
  margin: 0.5rem 0;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}
.location__features li {
  display: grid;
  grid-template-columns: 1.5rem 1fr;
  gap: 0.85rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid var(--line-soft);
  font-size: 0.95rem;
  color: var(--ink-soft);
}
.location__features li::before {
  content: "↗";
  color: var(--accent);
  font-family: var(--font-mono);
  align-self: start;
}
@media (max-width: 800px) { .location { grid-template-columns: 1fr; } }

/* ============================================================
   Booking section (3-step wizard)
   ============================================================ */
#booking { background: var(--bg-elev); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

.booking-shell {
  max-width: 980px;
  margin: 0 auto;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--bg);
  /* overflow: clip preserves rounded-corner clipping without becoming
     a scroll container — so position:sticky descendants still stick. */
  overflow: clip;
}

/* Step indicator
   ----------------------------------------------------------------
   Two coexisting class sets — .step (legacy, used by JS) and .bstep
   (redesign). Selectors below target .bstep so the new look applies
   only inside the redesign container .booking-steps-bar. */

.booking-body { padding: clamp(1.5rem, 4vw, 3rem); }
.booking-body h3,
.step-title { font-size: 1.5rem; margin-bottom: 1.5rem; font-family: var(--font-display); }

.step-line { display: none; }

/* The progress bar */
.booking-steps-bar {
  --step-num-size: 52px;
  --step-pad-top: 1.75rem;
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  background: var(--bg-deep);
  border-bottom: 1px solid var(--line);
  padding: var(--step-pad-top) 0 1.25rem;
}

/* Track connecting the three numbers — spans from the center of step 1
   to the center of step 3 (16.67% to 83.33%). */
.booking-steps-bar__track {
  position: absolute;
  left: 16.6667%;
  right: 16.6667%;
  top: calc(var(--step-pad-top) + var(--step-num-size) / 2);
  height: 2px;
  background: var(--line);
  transform: translateY(-50%);
  pointer-events: none;
  z-index: 0;
  border-radius: 2px;
  overflow: hidden;
}
.booking-steps-bar__track-fill {
  display: block;
  height: 100%;
  width: 0;
  background: var(--accent);
  transform-origin: left center;
  transition: width 450ms cubic-bezier(.4,0,.2,1);
}
.booking-steps-bar[data-current-step="2"] .booking-steps-bar__track-fill { width: 50%; }
.booking-steps-bar[data-current-step="3"] .booking-steps-bar__track-fill { width: 100%; }

/* Each step — stack number on top, label below, centered. */
.bstep {
  position: relative;
  z-index: 1;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.7rem;
  padding: 0 0.5rem;
  color: var(--ink-mute);
  background: transparent;
  transition: color 200ms ease;
}
.bstep.active,
.bstep.bstep--active { color: var(--ink); background: transparent; }

/* The number circle */
.bstep__num {
  width: var(--step-num-size);
  height: var(--step-num-size);
  min-width: var(--step-num-size);
  border-radius: 50%;
  border: 1.5px solid var(--line);
  background: var(--bg);
  color: var(--ink-mute);
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 500;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: border-color 220ms ease, background 220ms ease,
              color 220ms ease, box-shadow 220ms ease, transform 220ms ease;
}

/* Completed steps — solid terracotta fill */
.booking-steps-bar[data-current-step="2"] .bstep[data-step="1"] .bstep__num,
.booking-steps-bar[data-current-step="3"] .bstep[data-step="1"] .bstep__num,
.booking-steps-bar[data-current-step="3"] .bstep[data-step="2"] .bstep__num {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-ink);
}

/* Active step — terracotta number with subtle halo ring.
   Wins over the completed rule above for the current step. */
.bstep.active .bstep__num,
.bstep.bstep--active .bstep__num {
  background: var(--bg);
  border-color: var(--accent);
  color: var(--accent);
  box-shadow: 0 0 0 5px var(--accent-soft);
  transform: scale(1.04);
}

.bstep__label {
  font-size: 0.9rem;
  letter-spacing: 0.02em;
  line-height: 1.3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.15rem;
}
.bstep__label small {
  font-size: 0.66rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-mute);
  transition: color 200ms ease;
}
.bstep.active .bstep__label small { color: var(--accent); }

/* booking-grid: responsive 2-col layout for form fields */
.booking-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
  /* Prevent any child from blowing out the grid on narrow viewports */
  overflow: hidden;
}
.booking-grid .field,
.booking-grid .form-group { margin-bottom: 0; min-width: 0; }

/* booking-footer: step action bar */
.booking-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line-soft);
}
.booking-footer__hint {
  font-size: 0.78rem;
  color: var(--ink-mute);
  max-width: 36ch;
  line-height: 1.4;
}

@media (max-width: 700px) {
  .booking-steps-bar {
    --step-num-size: 44px;
    --step-pad-top: 1.25rem;
    padding-bottom: 1rem;
  }
  .bstep {
    gap: 0.5rem;
    padding: 0 0.25rem;
  }
  .bstep__label { font-size: 0.78rem; }
  .bstep__label small { font-size: 0.6rem; letter-spacing: 0.12em; }
  .bstep__num { font-size: 1.25rem; }
  .booking-footer {
    flex-direction: column;
    align-items: stretch;
    gap: 1rem;
  }
  .booking-footer > div {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    width: 100%;
  }
  .booking-footer__hint {
    text-align: center;
    width: 100%;
  }
  .booking-body {
    padding: 1.25rem;
  }
}

/* Narrow screens: single-column booking form, full-width buttons */
@media (max-width: 540px) {
  .booking-shell {
    border-radius: 0;
    border-left: none;
    border-right: none;
  }
  .booking-steps-bar {
    --step-num-size: 38px;
    --step-pad-top: 1.1rem;
    padding-bottom: 0.85rem;
  }
  .bstep {
    gap: 0.4rem;
  }
  .bstep__label small { display: none; }
  .bstep__label {
    font-size: 0.72rem;
    letter-spacing: 0;
  }
  .bstep__num { font-size: 1.1rem; }
  .booking-body {
    padding: 1rem 0.875rem;
  }
  .booking-grid {
    grid-template-columns: 1fr;
    gap: 0.875rem;
  }
  .booking-footer {
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
    margin-top: 1.25rem;
    padding-top: 1rem;
  }
  .booking-footer > div {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    width: 100%;
  }
  .booking-footer .btn,
  .booking-footer .btn-ghost {
    width: 100%;
    min-height: 48px;
    justify-content: center;
  }
  .booking-footer__hint {
    text-align: center;
    width: 100%;
    max-width: none;
    font-size: 0.75rem;
  }
  .booking-widget {
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
    padding: 0.75rem;
  }
  .booking-widget__field {
    padding: 0.5rem;
  }
  .booking-widget__submit {
    grid-column: 1 / -1;
    padding: 0.85rem;
    margin: 0;
  }
  .email-verify-wrapper {
    flex-direction: column;
    gap: 0.5rem;
  }
  .btn-verify-email {
    width: 100%;
    min-height: 44px;
  }
  .form-section {
    margin-bottom: 1rem;
  }
  .form-group {
    margin-bottom: 0.875rem;
  }
  .step-title {
    font-size: 1.25rem;
    margin-bottom: 1rem;
  }
  .categories-grid {
    grid-template-columns: 1fr;
  }
  .booking-summary {
    padding: 0.875rem;
  }
  .summary-label {
    min-width: 0;
    flex: 1 1 55%;
  }
  .summary-value {
    flex: 0 1 auto;
    min-width: 0;
    text-align: right;
  }
  .consent-block {
    gap: 0.75rem;
    margin-bottom: 1rem;
  }
  .consent-checkbox {
    padding: 0.75rem;
    font-size: 0.82rem;
  }
}

/* ============================================================
   Booking form (functional)
   ============================================================ */
.booking-step { display: none; }
#step1 { display: block; }

.form-section {
  margin-bottom: 1.5rem;
}
.form-row {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}
.form-row .form-group {
  flex: 1 1 220px;
  margin-bottom: 0;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-bottom: 1.25rem;
  min-width: 0;
}

@media (max-width: 600px) {
  .form-section {
    margin-bottom: 1.25rem;
  }
  .form-row {
    gap: 0.75rem;
  }
  .form-row .form-group {
    flex: 1 1 100%;
  }
  .form-group {
    margin-bottom: 1rem;
  }
}

.form-label,
.field label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-mute);
}

.form-control,
.field input,
.field select {
  font: inherit;
  font-family: var(--font-body);
  font-size: 1rem;
  background: var(--bg-elev);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0.85rem 1rem;
  transition: border-color var(--transition);
  outline: none;
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

input[type="date"].form-control,
.field input[type="date"] {
  /* Browsers enforce a locale-dependent minimum width on date pickers;
     override so the input never escapes its grid column on mobile. */
  min-width: 0;
  width: 100%;
  max-width: 100%;
  appearance: none;
  -webkit-appearance: none;
}
.form-control:focus,
.field input:focus,
.field select:focus { border-color: var(--ink); }
.form-control.error { border-color: #c0392b; }

.form-hint { font-size: 0.8rem; color: var(--ink-mute); }

.validation-message { color: #c0392b; font-size: 0.82rem; margin-top: 0.2rem; }

.form-actions {
  display: flex;
  justify-content: center;
  margin-top: 1.75rem;
}
.form-actions-split {
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

@media (max-width: 600px) {
  .form-actions {
    margin-top: 1.25rem;
  }
  .form-actions-split {
    flex-direction: column;
  }
  .form-actions button,
  .form-actions-split button {
    width: 100%;
    min-height: 44px;
  }
}

/* captcha */
.captcha-section { display: flex; justify-content: center; }
.captcha-container { display: flex; flex-direction: column; align-items: center; gap: 0.5rem; }
#smart-captcha { max-width: 304px; min-height: 64px; }
.captcha-error {
  background: var(--accent-soft);
  border: 1px solid var(--accent);
  border-radius: var(--radius);
  padding: 0.75rem 1rem;
  font-size: 0.9rem;
  color: var(--ink-soft);
  text-align: center;
}

/* email verify */
.email-verify-wrapper { display: flex; gap: 0.5rem; align-items: stretch; }
.email-verify-wrapper .form-control { flex: 1; }
.btn-verify-email {
  background: var(--bg-deep);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0 1rem;
  font-size: 0.85rem;
  font-weight: 500;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  cursor: pointer;
  transition: background var(--transition);
}
.btn-verify-email:hover { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.btn-verify-email:disabled { opacity: 0.5; cursor: not-allowed; }

.email-verified-badge {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: #e6f7ec;
  border: 1px solid #a8d5b5;
  border-radius: var(--radius);
  padding: 0.5rem 0.75rem;
  font-size: 0.85rem;
  color: #1a6b34;
  margin-top: 0.4rem;
}
.change-email-link { background: none; border: none; cursor: pointer; font-size: 0.82rem; text-decoration: underline; color: inherit; padding: 0; margin-left: auto; }

/* categories grid (step 2) */
.categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
}

@media (max-width: 600px) {
  .categories-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
}
.category-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  background: var(--bg-elev);
  cursor: pointer;
  transition: border-color var(--transition), box-shadow var(--transition), background var(--transition);
}
.category-card:hover:not(.unavailable) { border-color: var(--accent); box-shadow: var(--shadow-md); }
.category-card.selected { border-color: var(--accent); background: var(--accent-soft); }
.category-card.unavailable { opacity: 0.55; cursor: not-allowed; }
.category-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 0.75rem; }
.category-header h4 { font-size: 1.1rem; font-family: var(--font-display); color: var(--ink); }
.category-badge {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.25rem 0.6rem;
  border-radius: var(--radius-pill);
  background: #e6f7ec;
  color: #1a6b34;
}
.category-badge.unavailable { background: var(--accent-soft); color: var(--accent); }
.category-info { color: var(--ink-soft); font-size: 0.9rem; margin-bottom: 0.75rem; display: flex; flex-direction: column; gap: 0.35rem; }
.category-info p { margin: 0; }
.extra-bed-info { color: var(--ink-soft); font-size: 0.88rem; }
.category-price {
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: var(--ink);
  margin-bottom: 1rem;
}
.category-price span { font-size: 0.82rem; font-family: var(--font-body); color: var(--ink-mute); display: block; }
.select-category-btn {
  width: 100%;
  background: var(--accent);
  color: var(--accent-ink);
  border: 0;
  border-radius: var(--radius);
  padding: 0.75rem;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: background var(--transition);
}
.select-category-btn:hover:not(:disabled) { background: var(--highlight); color: var(--ink); }
.select-category-btn:disabled { opacity: 0.5; cursor: not-allowed; }

/* loading/error states */
.loading-state,
.error-state {
  display: none;
  text-align: center;
  padding: 3rem 1rem;
}
.spinner { font-size: 3rem; color: var(--accent); margin-bottom: 1rem; }
.loading-text { font-size: 1rem; color: var(--ink); }
.loading-hint { font-size: 0.85rem; color: var(--ink-mute); }
.error-icon { font-size: 3rem; color: var(--accent); margin-bottom: 1rem; }
.error-title { font-family: var(--font-display); font-size: 1.25rem; margin-bottom: 0.5rem; }
.error-message { color: var(--ink-soft); margin-bottom: 1.25rem; }

/* Step 3 two-column layout — main form on the left, sticky summary on the right */
.booking-step--columns .booking-step__columns {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 2rem;
  align-items: start;
}
.booking-step__main { min-width: 0; }

/* booking summary (step 3) */
.booking-summary {
  background: var(--bg-deep);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}
/* Sticky variant — keeps the summary visible while the user fills contacts */
.booking-summary--sticky {
  position: sticky;
  top: 100px;
  margin-bottom: 0;
  align-self: start;
}

@media (max-width: 860px) {
  .booking-step--columns .booking-step__columns {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .booking-summary--sticky {
    position: static;
    margin-bottom: 1.5rem;
  }
}
.summary-title {
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--ink);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.summary-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}
.summary-item {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 0.65rem;
  border-bottom: 1px solid var(--line-soft);
}
.summary-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}
.summary-label {
  font-size: 0.85rem;
  color: var(--ink-mute);
  flex: 1 1 auto;
  min-width: 150px;
}
.summary-value {
  font-size: 0.9rem;
  color: var(--ink);
  font-weight: 500;
  text-align: right;
  flex: 0 1 auto;
  min-width: 100px;
}
.summary-total .summary-label {
  font-weight: 600;
  color: var(--ink);
}
.summary-total .summary-price {
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--accent);
}
.summary-note {
  font-size: 0.8rem;
  color: var(--ink-mute);
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 0.75rem;
}

@media (max-width: 500px) {
  .booking-summary {
    padding: 1rem;
  }
  .summary-title {
    font-size: 1rem;
  }
  .summary-label {
    min-width: 120px;
  }
}

/* consent block */
.consent-block {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}
.consent-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.9rem;
  color: var(--ink-soft);
  line-height: 1.5;
  cursor: pointer;
  padding: 0.75rem;
  border-radius: var(--radius);
  border: 1px solid transparent;
  transition: border-color var(--transition);
}
.consent-checkbox input[type="checkbox"] {
  margin-top: 0.15rem;
  flex-shrink: 0;
  accent-color: var(--accent);
  width: 18px;
  height: 18px;
  cursor: pointer;
}
.consent-checkbox a {
  color: var(--accent);
  text-decoration: underline;
}
.consent-checkbox.error {
  border-color: #c0392b;
  background: var(--accent-soft);
}
.required {
  color: var(--accent);
}

@media (max-width: 500px) {
  .consent-block {
    gap: 1rem;
  }
  .consent-checkbox {
    padding: 0.85rem;
    font-size: 0.85rem;
  }
}

/* form notification */
.form-notification {
  display: none;
  padding: 0.85rem 1.25rem;
  border-radius: var(--radius);
  font-size: 0.9rem;
  margin-top: 1rem;
  align-items: center;
  gap: 0.5rem;
}
.form-notification:not(:empty) { display: flex; }
.form-notification.success { background: #e6f7ec; border: 1px solid #a8d5b5; color: #1a6b34; }
.form-notification.error { background: var(--accent-soft); border: 1px solid var(--accent); color: var(--ink); }
.form-notification.info { background: var(--bg-deep); border: 1px solid var(--line); color: var(--ink-soft); }

/* price preview */
.price-preview { background: var(--bg-deep); border-radius: var(--radius); padding: 0.75rem 1rem; }

/* ============================================================
   No-availability panel (nearest dates suggestion)
   ============================================================ */
.no-avail-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--bg-elev);
  padding: 2rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
  margin-bottom: 1rem;
}

.no-avail-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
}

.no-avail-icon {
  font-size: 2.5rem;
  color: var(--accent);
}

.no-avail-title {
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: var(--ink);
  margin: 0;
}

.no-avail-text {
  font-size: 0.95rem;
  color: var(--ink-soft);
  max-width: 46ch;
  line-height: 1.55;
}

.no-avail-loading {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.9rem;
  color: var(--ink-mute);
}

.no-avail-suggestions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  width: 100%;
}

.no-avail-suggestion-card {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.9rem 1.5rem;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  cursor: pointer;
  transition: border-color var(--transition), box-shadow var(--transition), background var(--transition);
  font: inherit;
  text-align: left;
}

.no-avail-suggestion-card:hover {
  border-color: var(--accent);
  background: var(--accent-soft);
  box-shadow: var(--shadow-md);
}

.no-avail-suggestion-card i {
  font-size: 1.1rem;
  color: var(--accent);
  flex-shrink: 0;
}

.no-avail-suggestion-dates {
  font-family: var(--font-display);
  font-size: 1rem;
  color: var(--ink);
}

.no-avail-suggestion-action {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-left: auto;
  padding-left: 0.5rem;
}

.no-avail-none {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  color: var(--ink-soft);
  background: var(--bg-deep);
  border-radius: var(--radius);
  padding: 0.85rem 1.25rem;
}

.no-avail-none a {
  color: var(--accent);
  text-decoration: underline;
}

@media (max-width: 540px) {
  .no-avail-panel {
    padding: 1.25rem 1rem;
    gap: 1rem;
  }
  .no-avail-suggestion-card {
    width: 100%;
    padding: 0.85rem 1rem;
  }
  .no-avail-suggestion-action {
    margin-left: auto;
  }
}

/* ============================================================
   Footer
   ============================================================ */
.site-footer {
  background: var(--bg-deep);
  border-top: 1px solid var(--line);
  padding: clamp(3rem, 6vw, 5rem) 0 2rem;
}
.site-footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}
.site-footer__brand .brand { font-size: 1.4rem; margin-bottom: 1rem; }
.site-footer__copy { color: var(--ink-soft); font-size: 0.95rem; max-width: 36ch; line-height: 1.6; }
.footer-col h4 {
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin-bottom: 1rem;
}
.footer-col ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 0.65rem; }
.footer-col a { font-size: 0.92rem; color: var(--ink-soft); transition: color var(--transition); }
.footer-col a:hover { color: var(--ink); }
.footer-col .contact-info { display: flex; flex-direction: column; gap: 0.75rem; }
.footer-col .contact-info li { display: flex; align-items: flex-start; gap: 0.5rem; font-size: 0.9rem; color: var(--ink-soft); }
.footer-col .contact-info a { color: var(--ink-soft); }
.footer-col .contact-info a:hover { color: var(--accent); }

.site-footer__legal {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  font-size: 0.8rem;
  color: var(--ink-mute);
  flex-wrap: wrap;
  gap: 1rem;
}
.site-footer__legal a,
.footer-legal__link {
  color: var(--ink-mute);
  text-decoration: none;
  background: none;
  border: none;
  cursor: pointer;
  font: inherit;
  font-size: 0.8rem;
  padding: 0;
  transition: color var(--transition);
}
.site-footer__legal a:hover,
.footer-legal__link:hover { color: var(--ink); }

.copyright { font-size: 0.8rem; color: var(--ink-mute); margin-top: 0.75rem; }

/* tour operators accordion */
.tour-operators-accordion summary {
  cursor: pointer;
  font-size: 0.9rem;
  color: var(--accent);
  text-decoration: underline;
  padding: 0.25rem 0;
  list-style: none;
}
.tour-operators-accordion summary::-webkit-details-marker { display: none; }
.tour-operators-accordion ul { margin-top: 0.75rem; display: flex; flex-direction: column; gap: 0.5rem; }
.tour-operators-accordion li a { font-size: 0.88rem; color: var(--ink-soft); }

/* copy button */
.copy-btn {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--ink-mute);
  font-size: 0.85rem;
  padding: 0 0.25rem;
  transition: color var(--transition);
}
.copy-btn:hover { color: var(--accent); }

@media (max-width: 900px) { .site-footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .site-footer__grid { grid-template-columns: 1fr; } }

/* ============================================================
   Modals
   ============================================================ */
.modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 2000;
  align-items: center;
  justify-content: center;
}
.modal.active { display: flex; }
.modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(42, 26, 20, 0.75);
}
.modal-container {
  position: relative;
  max-width: 90%;
  max-height: 90vh;
  background: var(--bg);
  border-radius: var(--radius-lg);
  overflow: hidden auto;
  box-shadow: var(--shadow-lg);
  z-index: 2001;
}
.modal-container--form { max-width: 480px; width: 100%; }
.modal-close {
  position: absolute;
  top: 10px;
  right: 15px;
  background: transparent;
  border: none;
  font-size: 1.5rem;
  color: var(--ink-mute);
  cursor: pointer;
  z-index: 2002;
}
.modal-close:hover { color: var(--ink); }
.modal-close-btn {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: var(--bg-deep);
  border: 1px solid var(--line);
  border-radius: 50%;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--ink-soft);
  z-index: 2002;
}
.modal-close-btn:hover { color: var(--ink); }
.modal-content { max-width: 100%; max-height: 90vh; display: block; }
.modal-body { padding: 2rem; }
.modal-icon {
  font-size: 2.5rem;
  color: var(--accent);
  text-align: center;
  margin-bottom: 1rem;
}
.modal-icon--success { color: #27ae60; }
.modal-title { font-family: var(--font-display); font-size: 1.5rem; text-align: center; margin-bottom: 0.5rem; }
.modal-subtitle { text-align: center; color: var(--ink-soft); font-size: 0.95rem; }
.modal-email-display { text-align: center; font-weight: 600; font-size: 1rem; margin: 0.25rem 0 1rem; }
.verify-code-block-modal { margin: 1.5rem 0; }
.verify-code-row { display: flex; gap: 0.5rem; margin-top: 0.5rem; }
.verify-code-input { font-size: 1.25rem; letter-spacing: 0.3em; text-align: center; font-family: var(--font-mono); }
.modal-resend { text-align: center; margin-top: 1rem; }
.modal-cooldown-text { font-size: 0.82rem; color: var(--ink-mute); display: block; margin-top: 0.4rem; }
.modal-summary {
  background: var(--bg-deep);
  border-radius: var(--radius);
  padding: 1.25rem;
  margin: 1.25rem 0;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}
.modal-summary-item { display: flex; justify-content: space-between; font-size: 0.9rem; gap: 1rem; }
.modal-summary-label { color: var(--ink-mute); }
.modal-summary-value { color: var(--ink); font-weight: 500; text-align: right; }
.modal-summary-item--total .modal-summary-label { font-weight: 600; color: var(--ink); }
.modal-summary-item--total .modal-summary-value { font-family: var(--font-display); font-size: 1.1rem; color: var(--accent); }
.modal-info-text {
  font-size: 0.85rem;
  color: var(--ink-soft);
  background: var(--bg-deep);
  border-radius: var(--radius);
  padding: 0.75rem;
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
}
.modal-ok-btn { width: 100%; margin-top: 1.25rem; }

/* ============================================================
   Cookie banner
   ============================================================ */
.cookie-banner {
  position: fixed;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%) translateY(120%);
  z-index: 1500;
  width: min(640px, calc(100% - 2rem));
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 1.25rem 1.5rem;
  opacity: 0;
  transition: transform 0.4s ease, opacity 0.4s ease;
}
.cookie-banner.is-visible {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}
.cookie-banner__body { display: flex; align-items: flex-start; gap: 1rem; margin-bottom: 1rem; }
.cookie-banner__icon { font-size: 1.5rem; color: var(--accent); flex-shrink: 0; margin-top: 0.1rem; }
.cookie-banner__text { font-size: 0.88rem; color: var(--ink-soft); line-height: 1.55; }
.cookie-banner__text strong { color: var(--ink); display: block; margin-bottom: 0.25rem; }
.cookie-banner__text a { color: var(--accent); text-decoration: underline; }
.cookie-banner__actions { display: flex; gap: 0.75rem; justify-content: flex-end; }
.cookie-banner__btn {
  padding: 0.6rem 1.2rem;
  border-radius: var(--radius);
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  border: 1px solid var(--line);
  transition: background var(--transition), color var(--transition);
}
.cookie-banner__btn--ghost { background: transparent; color: var(--ink-soft); }
.cookie-banner__btn--ghost:hover { background: var(--bg-deep); color: var(--ink); }
.cookie-banner__btn--primary { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.cookie-banner__btn--primary:hover { background: var(--highlight); color: var(--ink); border-color: var(--highlight); }

/* ============================================================
   Back-to-top
   ============================================================ */
.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 1.5rem;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--bg);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 100;
  font-size: 1rem;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.3s, transform 0.3s, background var(--transition);
  pointer-events: none;
}
.back-to-top.show { opacity: 1; transform: translateY(0); pointer-events: auto; }
.back-to-top:hover { background: var(--accent); }

/* ============================================================
   Legal page
   ============================================================ */
.legal-page {
  max-width: 820px;
  margin: 0 auto;
  padding: clamp(2rem, 5vw, 4rem) clamp(1.25rem, 4vw, 2.5rem);
}
.legal-page h1 {
  font-size: var(--fs-h1);
  margin-bottom: 0.5rem;
}
.legal-meta {
  font-size: 0.85rem;
  color: var(--ink-mute);
  margin-bottom: 2.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--line);
}
.legal-toc {
  background: var(--bg-deep);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  margin-bottom: 3rem;
}
.legal-toc h2 { font-size: 1rem; font-family: var(--font-body); font-weight: 600; margin-bottom: 0.85rem; letter-spacing: 0.02em; }
.legal-toc ol { padding-left: 1.25rem; display: flex; flex-direction: column; gap: 0.45rem; }
.legal-toc li { font-size: 0.9rem; }
.legal-toc a { color: var(--accent); }
.legal-page section { padding: 0; border-bottom: 1px solid var(--line-soft); padding-bottom: 2rem; margin-bottom: 2rem; }
.legal-page section:last-child { border-bottom: none; }
.legal-page h2 { font-size: 1.4rem; margin-bottom: 1rem; }
.legal-page h3 { font-size: 1.1rem; font-family: var(--font-body); font-weight: 600; margin: 1.25rem 0 0.65rem; }
.legal-page p { font-size: 0.95rem; color: var(--ink-soft); line-height: 1.7; margin-bottom: 0.75rem; }
.legal-page ul,
.legal-page ol { padding-left: 1.5rem; display: flex; flex-direction: column; gap: 0.45rem; margin-bottom: 0.75rem; }
.legal-page li { font-size: 0.95rem; color: var(--ink-soft); line-height: 1.6; }
.legal-page a { color: var(--accent); text-decoration: underline; }
.legal-page strong { color: var(--ink); }

/* ============================================================
   Placeholder (shown when image URL is absent)
   ============================================================ */
.placeholder {
  background:
    repeating-linear-gradient(
      135deg,
      var(--bg-deep),
      var(--bg-deep) 12px,
      color-mix(in srgb, var(--bg-deep) 80%, var(--ink) 8%) 12px,
      color-mix(in srgb, var(--bg-deep) 80%, var(--ink) 8%) 24px
    );
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 2rem;
  color: var(--ink-mute);
  text-align: center;
  padding: 1rem;
  width: 100%;
  height: 100%;
}

/* ============================================================
   Fade-in animation
   ============================================================ */
.fade-in {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.fade-in.visible { opacity: 1; transform: translateY(0); }

@keyframes slideIn {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Focus ring */
a:focus, button:focus, input:focus, select:focus, textarea:focus {
  outline: var(--focus-outline);
  outline-offset: 2px;
}
