/* =====================================================================
   Hotel Chaika — "Ethereal Folklore Modernism" Design System
   ---------------------------------------------------------------------
   A digital translation of the Vratsa Balkan: crisp mountain air, the
   midnight sky over the ridge, pine forests, terracotta rooftops, and
   the muted threads of Bulgarian "Shevitza" embroidery. Glassmorphism
   keeps the mountain imagery the hero; folklore appears as subtle SVG.
   ===================================================================== */

:root {
  /* ---- Raw palette (the "Mountain Air") ---- */
  --color-midnight: #0b1730;      /* deep night sky over the mountain */
  --color-midnight-2: #101f3d;
  --color-midnight-soft: #1b2c4e;
  --color-white: #ffffff;
  --color-snow: #f6f8fb;          /* crisp white / fresh snow */
  --color-silver: #aab4c2;        /* rock & mountain texture */
  --color-silver-soft: #d7dee7;
  --color-pine: #2f5d4a;          /* forest green */
  --color-pine-deep: #1c3a2e;
  --color-terracotta: #c76a43;    /* traditional Bulgarian roof tiles */
  --color-terracotta-deep: #a9542f;

  /* ---- Folklore accents (muted, earthy — never bright) ---- */
  --color-oxblood: #7b2d2b;
  --color-forest-accent: #3d5a45;
  --color-gold: #c9a24b;          /* deep gold thread */

  /* ---- Semantic tokens (light "daybreak" theme) ---- */
  --bg: var(--color-snow);
  --bg-elevated: var(--color-white);
  --bg-deep: var(--color-midnight);
  --text: #14213a;
  --text-muted: #5a6577;
  --accent: var(--color-terracotta);
  --accent-strong: var(--color-terracotta-deep);
  --brand: var(--color-midnight);
  --pine: var(--color-pine);
  --gold: var(--color-gold);
  --silver: var(--color-silver);
  --border: rgba(11, 23, 48, 0.10);
  --shadow: 0 18px 50px -18px rgba(11, 23, 48, 0.28);
  --overlay: rgba(8, 14, 30, 0.55);

  /* ---- Glassmorphism tokens ---- */
  --glass-bg: rgba(255, 255, 255, 0.55);
  --glass-bg-strong: rgba(255, 255, 255, 0.72);
  --glass-border: rgba(255, 255, 255, 0.65);
  --glass-blur: 18px;
  --glass-shadow: 0 8px 32px rgba(11, 23, 48, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.6);
  --glass-dark-bg: rgba(11, 23, 48, 0.45);
  --glass-dark-border: rgba(255, 255, 255, 0.14);

  --radius-sm: 10px;
  --radius-md: 18px;
  --radius-lg: 28px;
  --radius-xl: 36px;

  --font-display: "Playfair Display", "Cormorant Garamond", Georgia, serif;
  --font-body: "Space Grotesk", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --container: 1240px;

  /* Decorative golden card frame (pure CSS — no image needed).
     A double gilded hairline that follows each card's rounded corners,
     with a soft inner sheen and small corner flourishes. */
  --frame-gold: #c9a24b;
  --frame-gold-soft: #e6cf8a;
  --frame-gold-deep: #a07d2e;
  --frame-inset: 9px;        /* distance of the frame from the card edge */
  --frame-gap: 4px;          /* distance between the two gilded hairlines */
}

[data-theme="dark"] {
  --bg: #070e1f;
  --bg-elevated: #0f1b34;
  --bg-deep: #05091a;
  --text: #e9eff8;
  --text-muted: #9aa7bc;
  --accent: #d98055;
  --accent-strong: #e8a074;
  --brand: #eaf0f8;
  --pine: #5f9b7f;
  --gold: #d8b768;
  --silver: #8592a5;
  --frame-gold: #d8b768;
  --frame-gold-soft: #f0dca0;
  --frame-gold-deep: #b8923f;
  --border: rgba(233, 239, 248, 0.12);
  --shadow: 0 20px 60px -20px rgba(0, 0, 0, 0.7);
  --overlay: rgba(3, 6, 16, 0.7);

  --glass-bg: rgba(20, 33, 60, 0.45);
  --glass-bg-strong: rgba(20, 33, 60, 0.66);
  --glass-border: rgba(233, 239, 248, 0.16);
  --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  --glass-dark-bg: rgba(5, 9, 26, 0.55);
  --glass-dark-border: rgba(233, 239, 248, 0.12);
}

/* Reusable frosted-glass surface (the signature "stunning" element) */
.glass {
  background: var(--glass-bg);
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(160%);
  backdrop-filter: blur(var(--glass-blur)) saturate(160%);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .glass { background: var(--glass-bg-strong); }
}

/* ---------------------------------------------------------------------
   Reset & base
   --------------------------------------------------------------------- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  transition: background-color .3s ease, color .3s ease;
  padding-top: 78px; /* offset for the fixed header; homepage removes this via body.has-transparent-hero */
  overflow-x: hidden; /* guard against accidental horizontal scroll on small screens */
}
body.has-transparent-hero { padding-top: 0; }
[id] { scroll-margin-top: 96px; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.15;
  margin: 0 0 .5em;
  letter-spacing: -0.01em;
}
h1 { font-size: clamp(2.4rem, 5vw, 4.2rem); }
h2 { font-size: clamp(1.8rem, 3vw, 2.6rem); }
p { margin: 0 0 1em; color: var(--text-muted); }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: .75rem;
}

/* Thin folklore-inspired zig-zag divider (vector, not a busy texture) */
.motif-divider {
  height: 10px;
  width: 100%;
  background: repeating-linear-gradient(
    135deg, var(--accent) 0 6px, transparent 6px 12px
  );
  opacity: .5;
  margin: 3rem 0;
}

/* ---------------------------------------------------------------------
   Buttons
   --------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .85rem 1.7rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: .95rem;
  letter-spacing: .01em;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform .2s cubic-bezier(.22,.61,.36,1), background-color .22s ease, color .22s ease, box-shadow .22s ease, border-color .22s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-strong) 100%);
  color: #fff;
  box-shadow: 0 10px 26px -8px rgba(199, 106, 67, 0.6);
}
.btn-primary:hover { box-shadow: 0 16px 34px -10px rgba(199, 106, 67, 0.7); }
.btn-outline {
  background: transparent;
  border-color: var(--border);
  color: var(--text);
}
.btn-outline:hover { border-color: var(--accent); color: var(--accent); }
.btn-sm { padding: .55rem 1.1rem; font-size: .85rem; }
.btn-ghost-light {
  background: rgba(255,255,255,.12);
  border-color: rgba(255,255,255,.55);
  color: #fff;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
.btn-ghost-light:hover { background: rgba(255,255,255,.22); }

/* ---------------------------------------------------------------------
   Header / Nav
   --------------------------------------------------------------------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: var(--glass-bg-strong);
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(160%);
  backdrop-filter: blur(var(--glass-blur)) saturate(160%);
  border-bottom: 1px solid var(--glass-border);
  transition: background-color .35s ease, border-color .35s ease, box-shadow .35s ease;
}
.site-header.is-transparent {
  background: transparent;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  border-bottom-color: transparent;
}
.site-header.is-transparent .logo,
.site-header.is-transparent .main-nav a,
.site-header.is-transparent .theme-toggle,
.site-header.is-transparent .lang-menu summary,
.site-header.is-transparent .nav-toggle {
  color: #fff;
}
.site-header.is-transparent .theme-toggle,
.site-header.is-transparent .lang-menu summary { border-color: rgba(255,255,255,.4); background: rgba(255,255,255,.08); }
.site-header.is-scrolled {
  background: var(--glass-bg-strong);
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(160%);
  backdrop-filter: blur(var(--glass-blur)) saturate(160%);
  border-bottom-color: var(--glass-border);
  box-shadow: 0 8px 30px rgba(11,23,48,.14);
}
.site-header.is-scrolled.is-transparent .logo,
.site-header.is-scrolled.is-transparent .main-nav a,
.site-header.is-scrolled.is-transparent .theme-toggle,
.site-header.is-scrolled.is-transparent .lang-menu summary,
.site-header.is-scrolled.is-transparent .nav-toggle { color: var(--text); }
.site-header.is-scrolled.is-transparent .theme-toggle,
.site-header.is-scrolled.is-transparent .lang-menu summary { border-color: var(--border); background: var(--glass-bg); }
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 78px;
  transition: height .3s ease;
}
.logo {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--brand);
  display: inline-flex;
  align-items: center;
  gap: .6rem;
}
.logo .logo-img {
  width: 42px; height: 42px;
  border-radius: 10px;
  object-fit: cover;
  box-shadow: 0 4px 14px rgba(11,23,48,.25);
}
.site-header.is-transparent .logo { color: #fff; }
.main-nav {
  display: flex;
  align-items: center;
  gap: 2rem;
}
.main-nav ul { display: flex; gap: 1.75rem; }
.main-nav a {
  font-size: .92rem;
  font-weight: 500;
  color: var(--text);
  position: relative;
  padding: .25rem 0;
}
.main-nav a:hover { color: var(--accent); }
.header-actions { display: flex; align-items: center; gap: .9rem; }

.theme-toggle, .lang-menu summary {
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text);
  border-radius: 999px;
  padding: .45rem .8rem;
  font-size: .85rem;
  cursor: pointer;
  transition: border-color .25s ease, color .25s ease, background .25s ease;
}
.theme-toggle:hover, .lang-menu summary:hover { border-color: var(--frame-gold); color: var(--frame-gold-deep); }
[data-theme="dark"] .theme-toggle:hover,
[data-theme="dark"] .lang-menu summary:hover { color: var(--frame-gold-soft); }

/* Sun/moon crossfade — the moon shows in light mode (“switch to night”),
   the sun in dark mode, with a little celestial rotation between them. */
.theme-toggle { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 2.4rem; height: 2.4rem; padding: 0; }
.theme-toggle svg { position: absolute; transition: opacity .35s ease, transform .5s cubic-bezier(.34,1.56,.64,1); }
.theme-toggle .theme-toggle__sun { opacity: 0; transform: rotate(-90deg) scale(.5); }
.theme-toggle .theme-toggle__moon { opacity: 1; transform: rotate(0) scale(1); color: inherit; }
[data-theme="dark"] .theme-toggle .theme-toggle__sun { opacity: 1; transform: rotate(0) scale(1); color: var(--frame-gold-soft); }
[data-theme="dark"] .theme-toggle .theme-toggle__moon { opacity: 0; transform: rotate(90deg) scale(.5); }

/* Language dropdown */
.lang-menu { position: relative; }
.lang-menu summary {
  list-style: none;
  display: inline-flex; align-items: center; gap: .4rem;
  -webkit-user-select: none; user-select: none;
}
.lang-menu summary::-webkit-details-marker { display: none; }
.lang-menu__chev { transition: transform .25s ease; opacity: .7; }
.lang-menu[open] .lang-menu__chev { transform: rotate(180deg); }
.lang-menu__list {
  position: absolute; right: 0; top: calc(100% + .55rem);
  min-width: 11.5rem;
  z-index: 240;
  padding: .45rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--glass-border);
  background: var(--glass-bg-strong);
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(160%);
  backdrop-filter: blur(var(--glass-blur)) saturate(160%);
  box-shadow: 0 18px 40px -12px rgba(11,23,48,.35);
  animation: langMenuIn .22s ease both;
}
@keyframes langMenuIn { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
.lang-menu__list a {
  display: flex; align-items: center; gap: .65rem;
  padding: .5rem .7rem;
  border-radius: var(--radius-sm);
  font-size: .88rem;
  color: var(--text);
}
.lang-menu__list a:hover { background: color-mix(in srgb, var(--frame-gold) 14%, transparent); color: var(--text); }
.lang-menu__list a.is-current { background: color-mix(in srgb, var(--frame-gold) 22%, transparent); font-weight: 600; }
.lang-menu__code {
  font-size: .68rem; font-weight: 700; letter-spacing: .06em;
  color: var(--frame-gold-deep);
  border: 1px solid color-mix(in srgb, var(--frame-gold) 45%, transparent);
  border-radius: 4px;
  padding: .1rem .3rem;
  min-width: 1.9rem; text-align: center;
}
[data-theme="dark"] .lang-menu__code { color: var(--frame-gold-soft); }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.6rem;
  color: var(--text);
  cursor: pointer;
}

@media (max-width: 900px) {
  .main-nav ul { display: none; }
  .nav-toggle { display: block; }
  .main-nav.open ul {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 78px;
    left: 0;
    right: 0;
    background: var(--glass-bg-strong);
    -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(160%);
    backdrop-filter: blur(var(--glass-blur)) saturate(160%);
    padding: 1rem 24px 1.25rem;
    border-bottom: 1px solid var(--glass-border);
    gap: .25rem;
    max-height: calc(100vh - 78px);
    overflow-y: auto;
    box-shadow: 0 18px 40px -18px rgba(11,23,48,.4);
  }
  /* Make each menu item a large, easy tap target */
  .main-nav.open ul li { width: 100%; }
  .main-nav.open ul li a {
    display: block;
    width: 100%;
    padding: .8rem .25rem;
    font-size: 1.05rem;
    border-bottom: 1px solid var(--border);
  }
  .main-nav.open ul li:last-child a { border-bottom: none; }
  /* A transparent hero header keeps light text; once the menu opens we need
     readable dark text on the frosted panel. */
  .site-header.is-transparent .main-nav.open a { color: var(--text); }
  .header-actions { gap: .55rem; }
}

/* Small phones — declutter the header and tighten spacing */
@media (max-width: 600px) {
  .container { padding: 0 16px; }
  section { padding: 3.5rem 0; }
  /* The floating "Book now" widget already covers this CTA on phones */
  .header-actions > .btn-primary { display: none; }
  .theme-toggle, .lang-menu summary { padding: .4rem .55rem; font-size: .8rem; }
  .logo { font-size: 1.15rem; gap: .45rem; }
  .logo .logo-img { width: 34px; height: 34px; }
  .hero-content { padding: 2.5rem 0 4rem; }
  .hero-content p { font-size: 1.02rem; }
  .btn { padding: .8rem 1.4rem; }
}

@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
}

/* ---------------------------------------------------------------------
   Hero — hand-illustrated Vratsata gorge skyline (no stock photography
   required), layered with a soft grain finish for an editorial feel.
   --------------------------------------------------------------------- */
.hero {
  position: relative;
  min-height: 94vh;
  display: flex;
  align-items: flex-end;
  color: #fff;
  overflow: hidden;
  background: radial-gradient(120% 90% at 50% 0%, #6a4a3a 0%, #3a2f4a 32%, #1c2036 62%, #0e1220 100%);
}
[data-theme="dark"] .hero {
  background: radial-gradient(120% 90% at 50% 0%, #4a3226 0%, #291f36 32%, #11142199 62%, #05060b 100%);
}
.hero-illustration {
  position: absolute; inset: 0; width: 100%; height: 100%;
  z-index: 0;
}
.hero-illustration svg { width: 100%; height: 100%; display: block; }
.hero-cloud {
  position: absolute; opacity: .35; filter: blur(1px);
  animation: driftCloud 60s linear infinite;
}
.hero-cloud.c2 { animation-duration: 90s; animation-delay: -20s; opacity: .22; }
.hero-cloud.c3 { animation-duration: 75s; animation-delay: -45s; opacity: .18; }
@keyframes driftCloud {
  from { transform: translateX(-10%); }
  to   { transform: translateX(110%); }
}
.hero::after {
  /* Subtle film grain for a premium, non-flat finish */
  content: "";
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  opacity: .35; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='120' height='120'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
}
.hero-content { position: relative; z-index: 2; padding: 4rem 0 6rem; max-width: 780px; }
.hero-content .eyebrow { color: var(--gold); display: flex; align-items: center; gap: .6rem; }
.hero-content .eyebrow::before { content: ""; width: 28px; height: 2px; background: var(--gold); display: inline-block; }
.hero-content h1 { color: #fff; text-shadow: 0 4px 30px rgba(0,0,0,.25); }
.hero-content p { color: rgba(255,255,255,.85); font-size: 1.2rem; max-width: 560px; }
.hero-actions { display: flex; gap: 1rem; margin-top: 2rem; flex-wrap: wrap; }
.hero-scroll-cue {
  position: absolute; z-index: 2; left: 50%; bottom: 1.75rem; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: .5rem;
  color: rgba(255,255,255,.65); font-size: .72rem; letter-spacing: .12em; text-transform: uppercase;
}
.hero-scroll-cue span {
  width: 1px; height: 34px; background: rgba(255,255,255,.5);
  position: relative; overflow: hidden;
}
.hero-scroll-cue span::after {
  content: ""; position: absolute; top: -100%; left: 0; width: 100%; height: 100%;
  background: var(--gold); animation: scrollCue 2.2s ease-in-out infinite;
}
@keyframes scrollCue { 0% { top: -100%; } 60% { top: 100%; } 100% { top: 100%; } }

/* ---------------------------------------------------------------------
   Sections
   --------------------------------------------------------------------- */
section { padding: 5.5rem 0; }
.section-head { max-width: 640px; margin-bottom: 3rem; }
.section-head.center { margin-inline: auto; text-align: center; }

.grid { display: grid; gap: 1.75rem; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

/* Amenity cards */
.amenity-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 2.1rem 1.4rem 1.9rem;
  text-align: center;
  transition: transform .2s ease, box-shadow .2s ease;
}
.amenity-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.amenity-card h3 { font-size: 1.02rem; margin: 0 0 .4rem; }
.amenity-card p { margin: 0; font-size: .85rem; color: var(--text-muted); line-height: 1.55; }

/* Kanatitsa diamond emblem holding the engraved line icon */
.amenity-emblem {
  width: 60px; height: 60px;
  margin: .4rem auto 1.35rem;
  display: grid; place-items: center;
  transform: rotate(45deg);
  border-radius: 14px;
  border: 1px solid color-mix(in srgb, var(--frame-gold) 55%, transparent);
  background: color-mix(in srgb, var(--frame-gold) 9%, transparent);
  position: relative;
  transition: transform .35s ease, border-color .35s ease, box-shadow .35s ease;
}
.amenity-emblem::after {
  content: "";
  position: absolute; inset: 4px;
  border-radius: 10px;
  border: 1px solid color-mix(in srgb, var(--frame-gold) 28%, transparent);
}
.amenity-emblem svg {
  width: 27px; height: 27px;
  transform: rotate(-45deg);
  color: var(--frame-gold-deep);
  transition: color .3s ease;
}
[data-theme="dark"] .amenity-emblem svg { color: var(--frame-gold-soft); }
.amenity-card:hover .amenity-emblem {
  transform: rotate(45deg) scale(1.09);
  border-color: var(--frame-gold);
  box-shadow: 0 6px 20px -6px color-mix(in srgb, var(--frame-gold) 55%, transparent);
}
.amenity-card:hover .amenity-emblem svg { color: var(--frame-gold); }

/* Section ornament + tighter grid on small screens */
.section-head .shevitsa-stitch { display: block; margin: .4rem auto 0; }
@media (max-width: 900px) {
  .amenities .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .amenities .grid-4 { grid-template-columns: 1fr; }
}

/* Room cards */
.room-card {
  background: var(--bg-elevated);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
}
.room-card__media { position: relative; aspect-ratio: 4/3; overflow: hidden; }
.room-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.room-card:hover .room-card__media img { transform: scale(1.06); }
/* 360° panorama used as a flat cover: zoom into the middle band so the
   equirectangular stretching at the poles stays out of frame. */
.room-card__media img.room-card__pano { transform: scale(2.1); object-position: center 52%; }
.room-card:hover .room-card__media img.room-card__pano { transform: scale(2.2); }
.room-card__badge {
  position: absolute; top: 1rem; left: 1rem;
  background: rgba(20,32,26,.7); color: #fff;
  font-size: .75rem; padding: .35rem .7rem; border-radius: 999px;
  backdrop-filter: blur(4px);
}
.room-card__body { padding: 1.6rem; display: flex; flex-direction: column; gap: .6rem; flex: 1; }
.room-card__price { font-family: var(--font-display); font-size: 1.4rem; color: var(--accent); }
.room-card__meta { display: flex; gap: 1rem; font-size: .85rem; color: var(--text-muted); }
.room-card__actions { margin-top: auto; display: flex; gap: .75rem; padding-top: .5rem; }

/* Panorama viewer */
.panorama-viewer {
  width: 100%;
  height: 480px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: #000;
  position: relative;
}
.panorama-scene-list { display: flex; gap: .6rem; margin-top: 1rem; flex-wrap: wrap; }
.panorama-scene-list button {
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  padding: .5rem 1rem;
  border-radius: 999px;
  cursor: pointer;
  font-size: .85rem;
}
.panorama-scene-list button.active { background: var(--accent); color: #fff; border-color: var(--accent); }

/* Full site virtual tour viewer */
.tour-viewer {
  width: 100%;
  height: clamp(420px, 68vh, 760px);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: #000;
  position: relative;
  border: 1px solid var(--frame-gold);
  box-shadow: var(--shadow);
}

/* Forms */
.card-form {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: var(--shadow);
}
.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.2rem; }
@media (max-width: 700px) { .form-grid { grid-template-columns: 1fr; } }
.field { display: flex; flex-direction: column; gap: .4rem; }
.field label { font-size: .85rem; font-weight: 600; color: var(--text-muted); }
.field input, .field select, .field textarea {
  padding: .8rem 1rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: .95rem;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 20%, transparent);
}
.form-alert {
  padding: 1rem 1.2rem;
  border-radius: var(--radius-sm);
  margin-bottom: 1.5rem;
  font-size: .92rem;
}
.form-alert.success { background: color-mix(in srgb, var(--brand) 15%, transparent); color: var(--brand); }
.form-alert.error { background: color-mix(in srgb, var(--accent) 15%, transparent); color: var(--accent-strong); }

/* Footer */
.site-footer {
  position: relative;
  background: var(--color-midnight);
  color: rgba(255,255,255,.8);
  padding: 4rem 0 2rem;
  overflow: hidden;
}
/* Subtle Shevitza embroidery band woven across the footer top edge */
.site-footer::before {
  content: "";
  position: absolute; top: 0; left: 0; right: 0; height: 46px;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='120' height='46' viewBox='0 0 120 46'><g fill='none' stroke='%23c9a24b' stroke-width='1.4' opacity='0.5'><path d='M12 23 L23 12 L34 23 L23 34 Z'/><path d='M23 23 L34 12 M23 23 L12 12 M23 23 L34 34 M23 23 L12 34'/><path d='M60 23 L71 12 L82 23 L71 34 Z'/><path d='M71 23 L82 12 M71 23 L60 12 M71 23 L82 34 M71 23 L60 34'/><path d='M0 23 h6 M40 23 h16 M86 23 h34'/></g></svg>");
  background-repeat: repeat-x;
  opacity: .8;
  pointer-events: none;
}
.site-footer h4 { color: #fff; }
.footer-brand { display: flex; align-items: center; gap: .6rem; }
.footer-brand img { width: 38px; height: 38px; border-radius: 9px; object-fit: cover; }
.site-footer a:hover { color: var(--gold); }
.footer-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: repeat(2, 1fr); } }
.footer-bottom {
  margin-top: 3rem; padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,.12);
  font-size: .82rem; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem;
}

/* Sticky reservation bar */
.sticky-reserve {
  position: fixed; bottom: 0; left: 0; right: 0;
  z-index: 90;
  display: flex;
  background: var(--brand);
  box-shadow: 0 -6px 20px rgba(0,0,0,.15);
}
.sticky-reserve a {
  flex: 1; text-align: center; padding: 1rem; color: #fff; font-weight: 600; font-size: .9rem;
  border-right: 1px solid rgba(255,255,255,.15);
}
.sticky-reserve a:last-child { border-right: none; }
.sticky-reserve a:hover { background: rgba(255,255,255,.08); }

/* Utility */
.mt-0 { margin-top: 0; } .mb-0 { margin-bottom: 0; }
.text-center { text-align: center; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0);
}

/* ---------------------------------------------------------------------
   Scroll-reveal (paired with assets/js/reveal.js — IntersectionObserver)
   --------------------------------------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .7s cubic-bezier(.22,.61,.36,1), transform .7s cubic-bezier(.22,.61,.36,1);
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }
.reveal-stagger.is-visible > * { animation: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* Button shine sweep on hover */
.btn { position: relative; overflow: hidden; }
.btn::before {
  content: "";
  position: absolute; top: 0; left: -60%; width: 40%; height: 100%;
  background: linear-gradient(120deg, transparent, rgba(255,255,255,.35), transparent);
  transform: skewX(-20deg);
  transition: left .6s ease;
}
.btn:hover::before { left: 130%; }

/* Room card tilt/lift */
.room-card { transition: transform .35s ease, box-shadow .35s ease; will-change: transform; }
.room-card:hover { transform: translateY(-8px); box-shadow: 0 24px 48px rgba(20, 42, 31, 0.2); }

/* Amenity card refined hover */
.amenity-card { position: relative; }
.amenity-card::after {
  content: ""; position: absolute; inset: 0; border-radius: var(--radius-md);
  border: 1px solid var(--accent); opacity: 0; transition: opacity .25s ease;
  pointer-events: none;
}
.amenity-card:hover::after { opacity: .35; }

/* ---------------------------------------------------------------------
   Stats band
   --------------------------------------------------------------------- */
.stats-band {
  background: linear-gradient(135deg, var(--color-midnight) 0%, var(--color-pine-deep) 100%);
  color: #fff;
  padding: 4rem 0;
}
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; text-align: center; }
@media (max-width: 900px) { .stats-grid { grid-template-columns: repeat(2, 1fr); } }
.stat-item .num {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  color: var(--gold);
  line-height: 1;
}
.stat-item .label {
  margin-top: .5rem; font-size: .85rem; letter-spacing: .06em; text-transform: uppercase;
  color: rgba(255,255,255,.7);
}

/* ---------------------------------------------------------------------
   Folklore-inspired vector motif divider (original geometric rosette line,
   not a texture) — an elegant nod to Bulgarian embroidery patterns.
   --------------------------------------------------------------------- */
.motif-svg { display: flex; justify-content: center; margin: 3.5rem 0; opacity: .8; }
.motif-svg svg { width: 220px; height: auto; color: var(--accent); }

/* Editorial image reveal (clip-path wipe on scroll) */
.image-reveal { overflow: hidden; border-radius: var(--radius-lg); }
.image-reveal img {
  transform: scale(1.15);
  transition: transform 1.1s cubic-bezier(.22,.61,.36,1);
}
.reveal.is-visible .image-reveal img { transform: scale(1); }
.image-reveal > img { width: 100%; aspect-ratio: 4/3; object-fit: cover; display: block; border-radius: var(--radius-lg); }

/* Crossfading photo rotator (restaurant & garden shots from the gallery) */.photo-rotator {
  position: relative;
  width: 100%;
  aspect-ratio: 4/3;
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.photo-rotator img {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover;
  opacity: 0;
  transition: opacity 1.2s ease, transform 1.1s cubic-bezier(.22,.61,.36,1);
}
.photo-rotator img.is-active { opacity: 1; }
.photo-rotator::after {
  content: '';
  position: absolute; inset: 0;
  pointer-events: none;
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--frame-gold) 35%, transparent);
  border-radius: inherit;
}

/* Tasteful stand-in used until real photography is uploaded (never a broken <img>) */
.photo-placeholder {
  aspect-ratio: 4/3;
  width: 100%;
  border-radius: var(--radius-lg);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .75rem;
  background: linear-gradient(135deg, var(--color-midnight) 0%, var(--color-pine) 55%, var(--accent) 130%);
  color: rgba(255,255,255,.85);
  box-shadow: var(--shadow);
}
.room-card__media .photo-placeholder { border-radius: 0; aspect-ratio: 4/3; }
.photo-placeholder span { font-size: .8rem; letter-spacing: .04em; }

/* =====================================================================
   ETHEREAL FOLKLORE MODERNISM — new experience layer
   ===================================================================== */

/* ---------------------------------------------------------------------
   Hero — full-screen drone video with darkening gradient mask + glass CTA
   Falls back gracefully to the hand-illustrated skyline when no video.
   --------------------------------------------------------------------- */
.hero__media {
  position: absolute; inset: 0; z-index: 0; overflow: hidden;
}
.hero__video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  filter: saturate(108%) contrast(104%);
}
/* Still image that fades in after the drone clip ends */
.hero__endimage {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1.4s ease;
  will-change: opacity;
}
.hero__endimage.is-visible { opacity: 1; }
/* Bottom-to-top darkening mask so overlay text stays readable */
.hero__scrim {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    linear-gradient(to top, rgba(6,11,26,.92) 0%, rgba(6,11,26,.45) 42%, rgba(6,11,26,.15) 72%, rgba(6,11,26,.35) 100%),
    radial-gradient(120% 80% at 50% 12%, transparent 40%, rgba(6,11,26,.4) 100%);
}
/* Floating dust-mote / mist particle canvas */
.hero__particles {
  position: absolute; inset: 0; z-index: 2; pointer-events: none;
}
.hero-content { position: relative; z-index: 3; }

/* Glassmorphic hero CTA card housing the "Check Availability" quick form */
.hero-card {
  margin-top: 2.2rem;
  padding: 1.5rem;
  border-radius: var(--radius-lg);
  background: var(--glass-dark-bg);
  -webkit-backdrop-filter: blur(20px) saturate(150%);
  backdrop-filter: blur(20px) saturate(150%);
  border: 1px solid rgba(255,255,255,.18);
  box-shadow: 0 20px 60px -20px rgba(0,0,0,.6), inset 0 1px 0 rgba(255,255,255,.25);
  max-width: 620px;
}
.hero-card__label {
  font-size: .72rem; letter-spacing: .16em; text-transform: uppercase;
  color: var(--gold); margin-bottom: .9rem; display: block; font-weight: 600;
}
.hero-quick {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: .75rem;
  align-items: end;
}
.hero-quick .field label { color: rgba(255,255,255,.75); }
.hero-quick .field input,
.hero-quick .field select {
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.25);
  color: #fff;
  color-scheme: dark;
}
.hero-quick .field input::placeholder { color: rgba(255,255,255,.6); }
@media (max-width: 640px) {
  .hero-quick { grid-template-columns: 1fr 1fr; }
  .hero-quick .btn { grid-column: 1 / -1; }
}

/* ---------------------------------------------------------------------
   Section headings — serif elegance
   --------------------------------------------------------------------- */
.section-head h2 { position: relative; }
.eyebrow--gold { color: var(--gold); }

/* ---------------------------------------------------------------------
   "Spaces" — horizontal scroll gallery with glass info-tips on hover
   --------------------------------------------------------------------- */
.spaces {
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg-elevated) 100%);
}
.spaces-scroller {
  display: flex;
  gap: 1.5rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 1rem .25rem 2rem;
  margin: 0 -4px;
  scrollbar-width: thin;
  scrollbar-color: var(--accent) transparent;
}
.spaces-scroller::-webkit-scrollbar { height: 8px; }
.spaces-scroller::-webkit-scrollbar-thumb { background: var(--accent); border-radius: 999px; }
.spaces-scroller::-webkit-scrollbar-track { background: transparent; }
.space-card {
  position: relative;
  flex: 0 0 clamp(260px, 34vw, 420px);
  aspect-ratio: 3/4;
  border-radius: var(--radius-lg);
  overflow: hidden;
  scroll-snap-align: start;
  box-shadow: var(--shadow);
  isolation: isolate;
}
.space-card__bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  transition: transform .8s cubic-bezier(.22,.61,.36,1);
}
.space-card:hover .space-card__bg { transform: scale(1.08); }
.space-card::after {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(to top, rgba(6,11,26,.75), rgba(6,11,26,.05) 55%);
}
.space-card__tip {
  position: absolute; z-index: 2; left: 1rem; right: 1rem; bottom: 1rem;
  padding: 1rem 1.2rem;
  border-radius: var(--radius-md);
  background: var(--glass-dark-bg);
  -webkit-backdrop-filter: blur(14px) saturate(150%);
  backdrop-filter: blur(14px) saturate(150%);
  border: 1px solid rgba(255,255,255,.18);
  color: #fff;
  transform: translateY(12px);
  opacity: .92;
  transition: transform .35s ease, opacity .35s ease;
}
.space-card:hover .space-card__tip { transform: translateY(0); opacity: 1; }
.space-card__tip h3 { color: #fff; font-size: 1.15rem; margin-bottom: .25rem; }
.space-card__tip p { color: rgba(255,255,255,.85); font-size: .85rem; margin: 0; }
.spaces-hint {
  font-size: .78rem; letter-spacing: .1em; text-transform: uppercase;
  color: var(--text-muted); display: flex; align-items: center; gap: .5rem;
}

/* ---------------------------------------------------------------------
   "The Vibe" — mood board grid with parallax hover-zoom textures
   --------------------------------------------------------------------- */
.moodboard {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 180px;
  gap: 1rem;
}
.mood-tile {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.mood-tile__fill {
  position: absolute; inset: -8%;
  background-size: cover; background-position: center;
  transition: transform .9s cubic-bezier(.22,.61,.36,1);
  will-change: transform;
}
.mood-tile:hover .mood-tile__fill { transform: scale(1.12); }
/* The material's name is always readable; hovering reveals where in the
   hotel you'll actually touch it — the tiles tell a story, not just colors */
.mood-tile__label {
  position: absolute; z-index: 2; left: .9rem; bottom: .8rem;
  color: #fff; font-family: var(--font-display); font-size: 1.05rem;
  text-shadow: 0 2px 12px rgba(0,0,0,.5);
  transition: transform .3s ease;
}
.mood-tile__note {
  position: absolute; z-index: 2; left: .9rem; right: .9rem; bottom: .8rem;
  color: rgba(255,255,255,.85); font-size: .78rem; line-height: 1.35;
  text-shadow: 0 1px 8px rgba(0,0,0,.6);
  opacity: 0; transform: translateY(8px);
  transition: opacity .3s ease, transform .3s ease;
}
.mood-tile::after {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(to top, rgba(6,11,26,.55), transparent 60%);
  opacity: .8; transition: opacity .3s ease;
}
.mood-tile:hover::after { opacity: 1; }
.mood-tile:hover .mood-tile__label { transform: translateY(-1.6rem); }
.mood-tile:hover .mood-tile__note { opacity: 1; transform: translateY(0); }
.mood-tile--wide { grid-column: span 2; }
.mood-tile--tall { grid-row: span 2; }
@media (max-width: 900px) {
  .moodboard { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 150px; }
  .mood-tile--wide { grid-column: span 2; }
  .mood-tile--tall { grid-row: span 1; }
}

/* ---------------------------------------------------------------------
   Room card — glass "Take a Tour" 360 button
   --------------------------------------------------------------------- */
.room-card__tour {
  position: absolute; z-index: 2; top: 1rem; right: 1rem;
  display: inline-flex; align-items: center; gap: .45rem;
  padding: .5rem .9rem;
  border-radius: 999px;
  font-size: .78rem; font-weight: 600; color: #fff;
  background: var(--glass-dark-bg);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,.28);
  cursor: pointer;
  transition: background-color .25s ease, transform .25s ease;
}
.room-card__tour:hover { background: rgba(199,106,67,.75); transform: scale(1.04); }
.room-card__tour svg { width: 15px; height: 15px; }

/* ---------------------------------------------------------------------
   360 Tour modal — dark frosted glass, keeps page context visible
   --------------------------------------------------------------------- */
.tour-modal {
  position: fixed; inset: 0; z-index: 2000;
  display: flex; align-items: center; justify-content: center;
  padding: clamp(1rem, 4vw, 3rem);
  background: rgba(6,11,26,.55);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  backdrop-filter: blur(16px) saturate(140%);
  opacity: 0; visibility: hidden;
  transition: opacity .35s ease, visibility .35s ease;
}
.tour-modal.is-open { opacity: 1; visibility: visible; }
.tour-modal__panel {
  position: relative;
  width: min(1100px, 100%);
  height: min(78vh, 720px);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--glass-dark-bg);
  border: 1px solid rgba(255,255,255,.18);
  box-shadow: 0 40px 100px -30px rgba(0,0,0,.8);
  transform: scale(.94) translateY(12px);
  transition: transform .4s cubic-bezier(.22,.61,.36,1);
}
.tour-modal.is-open .tour-modal__panel { transform: scale(1) translateY(0); }
.tour-modal__frame { width: 100%; height: 100%; border: 0; display: block; background: #05070f; }
.tour-modal__title {
  position: absolute; top: 0; left: 0; right: 0; z-index: 3;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1rem 1.4rem;
  color: #fff;
  background: linear-gradient(to bottom, rgba(6,11,26,.7), transparent);
  font-family: var(--font-display); font-size: 1.15rem;
}
.tour-modal__close {
  width: 42px; height: 42px; border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(255,255,255,.14);
  border: 1px solid rgba(255,255,255,.28);
  color: #fff; font-size: 1.3rem; cursor: pointer; line-height: 1;
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  transition: background-color .2s ease, transform .2s ease;
}
.tour-modal__close:hover { background: rgba(199,106,67,.8); transform: rotate(90deg); }
.tour-modal__stage { position: absolute; inset: 0; width: 100%; height: 100%; background: #05070f; }

/* Clickable location cards on the public Virtual Tour page */
.tour-card--clickable { cursor: pointer; }
.tour-card--clickable:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.tour-card--clickable .tour-card__media img { transition: transform .5s ease; }
.tour-card--clickable:hover .tour-card__media img { transform: scale(1.06); }
.tour-card--clickable:hover .tour-card__play { transform: scale(1.08); background: rgba(199,106,67,.8); }
.tour-card__count { color: var(--text-muted); font-size: .85rem; font-weight: 600; }

/* ---------------------------------------------------------------------
   Floating glass booking widget — expands into a mini-form (no navigation)
   --------------------------------------------------------------------- */
.book-fab {
  position: fixed; z-index: 95;
  right: clamp(1rem, 3vw, 2rem);
  bottom: clamp(1rem, 3vw, 2rem);
  display: inline-flex; align-items: center; gap: .6rem;
  padding: .9rem 1.5rem;
  border-radius: 999px;
  font-weight: 600; color: #fff; cursor: pointer;
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  border: 1px solid rgba(255,255,255,.35);
  box-shadow: 0 16px 40px -12px rgba(199,106,67,.7);
  transition: transform .25s ease, opacity .25s ease, box-shadow .25s ease;
}
.book-fab:hover { transform: translateY(-3px); }
.book-fab svg { width: 18px; height: 18px; }
.book-fab.is-hidden { opacity: 0; transform: translateY(20px) scale(.9); pointer-events: none; }

.book-panel {
  position: fixed; z-index: 96;
  right: clamp(1rem, 3vw, 2rem);
  bottom: clamp(1rem, 3vw, 2rem);
  width: min(380px, calc(100vw - 2rem));
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  background: var(--glass-bg-strong);
  -webkit-backdrop-filter: blur(24px) saturate(160%);
  backdrop-filter: blur(24px) saturate(160%);
  border: 1px solid var(--glass-border);
  box-shadow: 0 30px 70px -20px rgba(11,23,48,.5);
  transform: translateY(24px) scale(.96);
  opacity: 0; visibility: hidden;
  transition: transform .35s cubic-bezier(.22,.61,.36,1), opacity .35s ease, visibility .35s ease;
}
.book-panel.is-open { transform: translateY(0) scale(1); opacity: 1; visibility: visible; }
.book-panel__head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 1.1rem;
}
.book-panel__head h3 { margin: 0; font-size: 1.35rem; }
.book-panel__close {
  background: none; border: none; font-size: 1.5rem; line-height: 1;
  color: var(--text-muted); cursor: pointer;
}
.book-panel .field { margin-bottom: .9rem; }
.book-panel__row { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; }
.book-panel__est {
  font-size: .9rem; color: var(--text-muted); margin: .4rem 0 1rem;
  display: flex; justify-content: space-between; align-items: baseline;
}
.book-panel__est strong { font-family: var(--font-display); font-size: 1.3rem; color: var(--accent); }

/* ---------------------------------------------------------------------
   Folklore Easter Egg — a Martenitsa (Пижо & Пенда) swinging in the corner
   --------------------------------------------------------------------- */
.martenitsa {
  position: fixed; z-index: 80;
  left: clamp(.75rem, 2vw, 1.5rem);
  bottom: 0;
  width: 66px;
  transform-origin: top center;
  animation: martSwing 4.5s ease-in-out infinite;
  pointer-events: none;
  opacity: .95;
}
.martenitsa .thread { stroke: var(--silver); }
@keyframes martSwing {
  0%, 100% { transform: rotate(-7deg); }
  50%      { transform: rotate(7deg); }
}
@media (max-width: 640px) { .martenitsa { width: 48px; } }

@media (prefers-reduced-motion: reduce) {
  .martenitsa,
  .hero-cloud { animation: none; }
  .space-card__bg, .mood-tile__fill { transition: none; }
}

/* =====================================================================
   Frosted-glass upgrade for cards + Gallery / 360 tour components
   ===================================================================== */

/* Make the signature frosted glass unmistakable on room & amenity cards */
.room-card {
  background: var(--glass-bg-strong);
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(150%);
  backdrop-filter: blur(var(--glass-blur)) saturate(150%);
  border: 1px solid var(--glass-border);
}
.amenity-card {
  background: var(--glass-bg);
  -webkit-backdrop-filter: blur(14px) saturate(150%);
  backdrop-filter: blur(14px) saturate(150%);
  border: 1px solid var(--glass-border);
}
.card-form {
  background: var(--glass-bg-strong);
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(150%);
  backdrop-filter: blur(var(--glass-blur)) saturate(150%);
  border: 1px solid var(--glass-border);
}

/* ---- Gallery grid (masonry-style via CSS columns) ---- */
.gallery-filter {
  display: flex; flex-wrap: wrap; gap: .6rem;
  justify-content: center; margin: 0 0 2rem;
}
.chip {
  border: 1px solid var(--border);
  background: var(--glass-bg);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  color: var(--text);
  padding: .5rem 1.1rem;
  border-radius: 999px;
  font: inherit; font-size: .85rem; font-weight: 600;
  cursor: pointer;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease, transform .2s ease;
}
.chip:hover { transform: translateY(-2px); border-color: var(--accent); }
.chip.is-active {
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  color: #fff; border-color: transparent;
}
.gallery-grid { columns: 3 300px; column-gap: 1.25rem; }
.gallery-item {
  position: relative;
  margin: 0 0 1.25rem;
  break-inside: avoid;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.gallery-item img {
  width: 100%; display: block;
  transition: transform .6s cubic-bezier(.22,.61,.36,1);
}
.gallery-item:hover img { transform: scale(1.06); }
.gallery-item figcaption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 1.4rem 1rem .8rem;
  color: #fff; font-size: .85rem;
  background: linear-gradient(to top, rgba(6,11,26,.8), transparent);
  opacity: 0; transform: translateY(8px);
  transition: opacity .3s ease, transform .3s ease;
}
.gallery-item:hover figcaption { opacity: 1; transform: translateY(0); }

/* Gallery lightbox */
.gallery-lightbox {
  position: fixed; inset: 0; z-index: 2500;
  display: none; align-items: center; justify-content: center;
  padding: clamp(1rem, 4vw, 3rem);
  background: rgba(6,11,26,.86);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
.gallery-lightbox.is-open { display: flex; }
.gallery-lightbox__fig { margin: 0; max-width: min(1100px, 94vw); max-height: 88vh; display: flex; flex-direction: column; align-items: center; gap: .8rem; }
.gallery-lightbox__fig img {
  max-width: 100%; max-height: 82vh; width: auto; height: auto;
  border-radius: var(--radius-md); box-shadow: 0 30px 80px -20px rgba(0,0,0,.7);
  border: 1px solid var(--frame-gold);
}
.gallery-lightbox__fig figcaption { color: #fff; font-size: .95rem; text-align: center; max-width: 60ch; }
.gallery-lightbox__close {
  position: absolute; top: 1rem; right: 1rem; z-index: 2;
  width: 46px; height: 46px; border-radius: 50%;
  display: grid; place-items: center; cursor: pointer;
  background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.3);
  color: #fff; font-size: 1.5rem; line-height: 1;
}
.gallery-lightbox__close:hover { background: rgba(199,106,67,.8); }
.gallery-lightbox__nav {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 2;
  width: 52px; height: 52px; border-radius: 50%; cursor: pointer;
  display: grid; place-items: center;
  background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.28);
  color: #fff; font-size: 2rem; line-height: 1;
}
.gallery-lightbox__nav:hover { background: rgba(199,106,67,.8); }
.gallery-lightbox__prev { left: clamp(.5rem, 2vw, 2rem); }
.gallery-lightbox__next { right: clamp(.5rem, 2vw, 2rem); }
@media (max-width: 600px) { .gallery-lightbox__nav { width: 42px; height: 42px; font-size: 1.6rem; } }

/* ---- 360 tour cards on the gallery page ---- */
.tour-card {
  background: var(--glass-bg-strong);
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(150%);
  backdrop-filter: blur(var(--glass-blur)) saturate(150%);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex; flex-direction: column;
}
.tour-card__media { position: relative; aspect-ratio: 4/3; overflow: hidden; }
.tour-card__media img { width: 100%; height: 100%; object-fit: cover; }
.tour-card__fallback {
  width: 100%; height: 100%;
  background: linear-gradient(135deg, var(--color-midnight), var(--color-pine) 120%);
}
.tour-card__play {
  position: absolute; inset: 0; margin: auto;
  width: 84px; height: 84px; border-radius: 50%;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  color: #fff; font-weight: 700; font-size: .8rem;
  background: var(--glass-dark-bg);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,.4);
  cursor: pointer;
  transition: transform .25s ease, background-color .25s ease;
}
.tour-card__play svg { width: 26px; height: 26px; }
.tour-card__play:hover { transform: scale(1.08); background: rgba(199,106,67,.8); }
.tour-card__body { padding: 1.25rem 1.4rem 1.5rem; display: flex; flex-direction: column; gap: .8rem; }
.tour-card__body h3 { margin: 0; }

@media (max-width: 700px) { .gallery-grid { columns: 1; } }

/* =====================================================================
   Gilded Frames 2.0 — a real metalsmith's frame (pure CSS, no images)
   ---------------------------------------------------------------------
   A polished-brass gradient ring that follows the card's rounded corners
   (mask-composite trick), an inner hairline set 6px deeper, and four
   engraved corner ornaments — a double arc with a Kanatitsa diamond.
   On hover the metal catches the light: the gradient sweeps and glows.
   Applies to the cards below; add `.framed` to gild any other element.
   ===================================================================== */
.room-card, .tour-card, .place-card, .framed { position: relative; }

/* Polished metallic ring */
.room-card::before,
.tour-card::before,
.place-card::before,
.framed::before {
  content: "";
  position: absolute;
  inset: var(--frame-inset);
  z-index: 4;
  pointer-events: none;
  border-radius: calc(var(--radius-lg) - var(--frame-inset));
  padding: 1.5px;
  background: linear-gradient(115deg,
    var(--frame-gold-deep) 0%,
    var(--frame-gold) 14%,
    #f6e7b3 27%,
    var(--frame-gold) 40%,
    var(--frame-gold-deep) 54%,
    var(--frame-gold) 70%,
    var(--frame-gold-soft) 85%,
    var(--frame-gold-deep) 100%);
  background-size: 260% 260%;
  background-position: 0% 50%;
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask-composite: exclude;
  transition: filter .35s ease;
}
.room-card:hover::before,
.tour-card:hover::before,
.place-card:hover::before,
.framed:hover::before {
  animation: frameSheen 2.8s ease-in-out infinite alternate;
  filter: drop-shadow(0 0 7px color-mix(in srgb, var(--frame-gold) 65%, transparent));
}
@keyframes frameSheen {
  from { background-position: 0% 50%; }
  to   { background-position: 100% 50%; }
}

/* Inner hairline + engraved corner ornaments (double arc + diamond) */
.room-card::after,
.tour-card::after,
.place-card::after,
.framed::after {
  content: "";
  position: absolute;
  inset: var(--frame-inset);
  z-index: 5;
  pointer-events: none;
  border-radius: calc(var(--radius-lg) - var(--frame-inset));
  outline: 1px solid color-mix(in srgb, var(--frame-gold) 28%, transparent);
  outline-offset: -6px;
  background:
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='28' height='28' viewBox='0 0 28 28'><g fill='none' stroke='%23c9a24b' stroke-width='1.5' stroke-linecap='round'><path d='M2 26 V12 Q2 2 12 2 H26'/><path d='M7 26 V14 Q7 7 14 7 H26' opacity='.45'/></g><path d='M9.5 4.5 L12.5 7.5 L9.5 10.5 L6.5 7.5 Z' fill='%23e6cf8a'/></svg>") top left / 26px 26px no-repeat,
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='28' height='28' viewBox='0 0 28 28'><g transform='rotate(90 14 14)'><g fill='none' stroke='%23c9a24b' stroke-width='1.5' stroke-linecap='round'><path d='M2 26 V12 Q2 2 12 2 H26'/><path d='M7 26 V14 Q7 7 14 7 H26' opacity='.45'/></g><path d='M9.5 4.5 L12.5 7.5 L9.5 10.5 L6.5 7.5 Z' fill='%23e6cf8a'/></g></svg>") top right / 26px 26px no-repeat,
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='28' height='28' viewBox='0 0 28 28'><g transform='rotate(270 14 14)'><g fill='none' stroke='%23c9a24b' stroke-width='1.5' stroke-linecap='round'><path d='M2 26 V12 Q2 2 12 2 H26'/><path d='M7 26 V14 Q7 7 14 7 H26' opacity='.45'/></g><path d='M9.5 4.5 L12.5 7.5 L9.5 10.5 L6.5 7.5 Z' fill='%23e6cf8a'/></g></svg>") bottom left / 26px 26px no-repeat,
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='28' height='28' viewBox='0 0 28 28'><g transform='rotate(180 14 14)'><g fill='none' stroke='%23c9a24b' stroke-width='1.5' stroke-linecap='round'><path d='M2 26 V12 Q2 2 12 2 H26'/><path d='M7 26 V14 Q7 7 14 7 H26' opacity='.45'/></g><path d='M9.5 4.5 L12.5 7.5 L9.5 10.5 L6.5 7.5 Z' fill='%23e6cf8a'/></g></svg>") bottom right / 26px 26px no-repeat;
  transition: outline-color .3s ease;
}
.room-card:hover::after,
.tour-card:hover::after,
.place-card:hover::after,
.framed:hover::after {
  outline-color: color-mix(in srgb, var(--frame-gold-soft) 60%, transparent);
}

/* Amenity cards get a slimmer polished ring (no corners) */
.amenity-card { position: relative; }
.amenity-card::before {
  content: "";
  position: absolute;
  inset: var(--frame-inset);
  z-index: 2;
  pointer-events: none;
  border-radius: calc(var(--radius-md) - var(--frame-inset));
  padding: 1px;
  background: linear-gradient(135deg,
    color-mix(in srgb, var(--frame-gold) 70%, transparent),
    color-mix(in srgb, var(--frame-gold-soft) 90%, transparent) 50%,
    color-mix(in srgb, var(--frame-gold-deep) 65%, transparent));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask-composite: exclude;
  opacity: .65;
  transition: opacity .3s ease;
}
.amenity-card:hover::before { opacity: 1; }

/* Media keeps the card's rounded corners */
.room-card__media, .tour-card__media { border-radius: inherit; }

@media (prefers-reduced-motion: reduce) {
  .hero__endimage { transition: none; }
}

/* =====================================================================
   Attractions — "Places to visit" + directions
   ===================================================================== */
.getting-there {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
  padding: 1.5rem 1.75rem;
  border-radius: var(--radius-lg);
  margin-bottom: 2.5rem;
}
.getting-there h2 { font-size: 1.4rem; }
.getting-there p { color: var(--text-muted); }

.place-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}
.place-card {
  display: flex;
  flex-direction: column;
  gap: .55rem;
  padding: 1.7rem;
  border-radius: var(--radius-lg);
  background: var(--glass-bg-strong);
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(150%);
  backdrop-filter: blur(var(--glass-blur)) saturate(150%);
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow);
  transition: transform .25s ease, box-shadow .25s ease;
}
.place-card:hover { transform: translateY(-6px); box-shadow: 0 24px 48px -18px rgba(11,23,48,.28); }
.place-card--photo { padding: 0; overflow: hidden; }
.place-card--photo .place-card__dist,
.place-card--photo h3 { padding-inline: 1.7rem; }
.place-card--photo h3 { padding-top: .2rem; }
.place-card--photo p { padding-inline: 1.7rem; }
.place-card--photo .place-card__actions { padding: .8rem 1.7rem 1.5rem; }
.place-card--photo .place-card__dist { padding-top: 1.2rem; }
.place-card__media { position: relative; aspect-ratio: 16/10; overflow: hidden; }
.place-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.22,.61,.36,1); }
.place-card--photo:hover .place-card__media img { transform: scale(1.06); }
.place-card__pano {
  position: absolute; top: .8rem; right: .8rem; z-index: 3;
  display: inline-flex; align-items: center; gap: .35rem;
  padding: .4rem .7rem; border-radius: 999px; cursor: pointer;
  font-size: .74rem; font-weight: 600; letter-spacing: .02em;
  color: #fff; background: rgba(11,23,48,.62);
  border: 1px solid var(--frame-gold);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  transition: background .25s ease, transform .25s ease;
}
.place-card__pano:hover { background: color-mix(in srgb, var(--frame-gold) 45%, rgba(11,23,48,.62)); transform: translateY(-1px); }

/* Single-image 360° modal (pano-lite.js) */
.pano-lite-overlay {
  position: fixed; inset: 0; z-index: 3000;
  display: none; align-items: center; justify-content: center;
  background: rgba(5,7,15,.82); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  padding: clamp(.5rem, 3vw, 2.5rem);
}
.pano-lite-overlay.is-open { display: flex; }
.pano-lite-frame {
  position: relative; width: min(1100px, 96vw); height: min(680px, 86vh);
  border-radius: var(--radius-lg); overflow: hidden;
  border: 1px solid var(--frame-gold); box-shadow: 0 30px 80px -20px rgba(0,0,0,.7);
  background: #05070f;
}
.pano-lite-stage { position: absolute; inset: 0; }
.pano-lite-title {
  position: absolute; top: 0; left: 0; right: 0; z-index: 2;
  padding: .9rem 3.2rem .9rem 1.2rem; color: #fff; font-family: var(--font-display); font-size: 1.05rem;
  background: linear-gradient(180deg, rgba(5,7,15,.65), transparent); pointer-events: none;
}
.pano-lite-close {
  position: absolute; top: .6rem; right: .6rem; z-index: 3;
  width: 40px; height: 40px; border-radius: 50%; cursor: pointer;
  border: 1px solid var(--frame-gold); background: rgba(5,7,15,.55); color: #fff;
  font-size: 1.6rem; line-height: 1; display: flex; align-items: center; justify-content: center;
}
.pano-lite-close:hover { background: rgba(5,7,15,.85); }
.place-card__dist {
  font-size: .74rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase;
  color: var(--accent);
}
.place-card h3 { margin: 0; }
.place-card p { margin: 0; }
.place-card__actions { margin-top: auto; display: flex; gap: .6rem; flex-wrap: wrap; padding-top: .8rem; }

/* =====================================================================
   FAQ accordion (native <details>, no JS)
   ===================================================================== */
.faq { max-width: 820px; margin: 0 auto; display: flex; flex-direction: column; gap: .9rem; }
.faq-item {
  border-radius: var(--radius-md);
  border: 1px solid var(--glass-border);
  background: var(--glass-bg);
  -webkit-backdrop-filter: blur(12px) saturate(150%);
  backdrop-filter: blur(12px) saturate(150%);
  overflow: hidden;
}
.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 1.15rem 1.4rem;
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  font-family: var(--font-body);
  font-size: 1.5rem;
  line-height: 1;
  color: var(--accent);
  transition: transform .3s ease;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-answer { padding: 0 1.4rem 1.25rem; }
.faq-answer p { margin: 0; color: var(--text-muted); }
.faq-directions { display: inline-flex; align-items: center; gap: .4rem; margin-top: .9rem; }
.faq-item[open] summary { color: var(--accent); }

/* =====================================================================
   ПОД СКАЛИТЕ — "Beneath the Cliffs" experience layer
   ---------------------------------------------------------------------
   The homepage becomes a descent down the Vratsata gorge: cliff walls
   close in as you scroll, mist parts, a river thread runs the length of
   the page, a waterfall falls through the Borov Kamak chapter and the
   Ledenika chapter drops the temperature. JS (gorge.js) drives three CSS
   custom properties: --gp (hero descent), --rp (river progress),
   --wp (waterfall progress). Everything degrades gracefully without JS.
   ===================================================================== */

/* ---------------------------------------------------------------------
   1) Hero — the descent between the cliff walls
   --------------------------------------------------------------------- */
.hero { --gp: 0; }
.hero__media {
  transform: scale(calc(1 + var(--gp) * 0.12)) translateY(calc(var(--gp) * 6%));
  transform-origin: 50% 30%;
  will-change: transform;
}

/* Foreground cliff walls framing the gorge (parallax inward).
   Real limestone photos (cliff-day / cliff-night) are clipped by craggy
   SVG paths (#cliffClipL/R in index.php) and cross-fade with the theme. */
.hero__cliff {
  position: absolute; top: -4%; bottom: -4%; z-index: 2;
  width: clamp(120px, 20vw, 340px);
  pointer-events: none;
  filter: drop-shadow(0 0 40px rgba(3, 6, 14, 0.55));
  will-change: transform;
}
.hero__cliff--left {
  left: 0;
  transform: translateX(calc(-18% + var(--gp) * 14%));
}
.hero__cliff--right {
  right: 0;
  transform: translateX(calc(18% - var(--gp) * 14%));
}
.hero__cliff-rock { position: absolute; inset: 0; }
.hero__cliff--left  .hero__cliff-rock { clip-path: url(#cliffClipL); }
.hero__cliff--right .hero__cliff-rock { clip-path: url(#cliffClipR); }
.hero__cliff-img {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: 50% 40%;
  transition: opacity 1.4s ease;
}
/* Mirror the right wall so the two faces don't repeat */
.hero__cliff--right .hero__cliff-img { transform: scaleX(-1); }
.hero__cliff-img--day   { background-image: url('../img/cliff-day.webp'); opacity: 0; }
.hero__cliff-img--night { background-image: url('../img/cliff-night.webp'); opacity: 1; }
[data-theme="light"] .hero__cliff-img--day   { opacity: 1; }
[data-theme="light"] .hero__cliff-img--night { opacity: 0; }
/* Depth: darker toward the screen edge, faint cool rim near the broken edge */
.hero__cliff-shade { position: absolute; inset: 0; }
.hero__cliff--left .hero__cliff-shade {
  background: linear-gradient(to right, rgba(4, 7, 15, 0.62), rgba(4, 7, 15, 0.12) 55%, rgba(150, 180, 220, 0.10) 92%, transparent);
}
.hero__cliff--right .hero__cliff-shade {
  background: linear-gradient(to left, rgba(4, 7, 15, 0.62), rgba(4, 7, 15, 0.12) 55%, rgba(150, 180, 220, 0.10) 92%, transparent);
}
[data-theme="light"] .hero__cliff--left .hero__cliff-shade {
  background: linear-gradient(to right, rgba(20, 26, 40, 0.42), rgba(20, 26, 40, 0.06) 55%, rgba(255, 240, 210, 0.12) 92%, transparent);
}
[data-theme="light"] .hero__cliff--right .hero__cliff-shade {
  background: linear-gradient(to left, rgba(20, 26, 40, 0.42), rgba(20, 26, 40, 0.06) 55%, rgba(255, 240, 210, 0.12) 92%, transparent);
}
@media (prefers-reduced-motion: reduce) {
  .hero__cliff-img { transition: none; }
}

/* Drifting mist planes that part as you descend */
.hero__mist {
  position: absolute; left: -20%; right: -20%; z-index: 2;
  height: 34%;
  pointer-events: none;
  background: radial-gradient(60% 100% at 50% 50%, rgba(214, 226, 240, 0.20), transparent 70%);
  filter: blur(24px);
  animation: mistDrift 46s ease-in-out infinite alternate;
  will-change: transform, opacity;
}
.hero__mist--low  {
  bottom: 4%;
  opacity: calc(.9 - var(--gp) * .9);
  transform: translateY(calc(var(--gp) * 22%));
}
.hero__mist--mid  {
  bottom: 34%;
  opacity: calc(.55 - var(--gp) * .55);
  animation-duration: 64s; animation-delay: -18s;
  transform: translateY(calc(var(--gp) * -14%));
}
@keyframes mistDrift {
  from { translate: -6% 0; }
  to   { translate: 6% 0; }
}

/* The Chaika — one gull gliding through the gorge (the hotel's namesake) */
.hero__gull {
  position: absolute; z-index: 2; top: 22%; left: -8%;
  width: clamp(26px, 3vw, 44px); height: auto;
  color: rgba(240, 245, 252, 0.85);
  pointer-events: none;
  opacity: 0;
  animation: gullGlide 28s linear infinite 4s;
}
@keyframes gullGlide {
  0%   { opacity: 0; transform: translate(0, 0) rotate(4deg) scale(1); }
  2%   { opacity: .9; }
  16%  { transform: translate(38vw, 7vh) rotate(-3deg) scale(.82); }
  30%  { opacity: .85; transform: translate(76vw, 2vh) rotate(3deg) scale(.62); }
  38%  { opacity: 0; transform: translate(96vw, 5vh) rotate(0deg) scale(.55); }
  100% { opacity: 0; transform: translate(96vw, 5vh) scale(.55); }
}
.hero__gull svg { display: block; width: 100%; height: auto; }
.hero__gull svg path {
  animation: gullFlap 1.6s ease-in-out infinite alternate;
  transform-origin: 50% 60%;
}
@keyframes gullFlap {
  from { transform: scaleY(1); }
  to   { transform: scaleY(.72); }
}

/* Shevitza ornament that stitches itself in above the headline */
.shevitsa-stitch {
  width: 148px; height: 26px;
  margin-bottom: 1.1rem;
  color: var(--gold);
}
.shevitsa-stitch path {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-dasharray: 620;
  stroke-dashoffset: 620;
  animation: stitchIn 2.1s cubic-bezier(.4, 0, .2, 1) .35s forwards;
}
@keyframes stitchIn { to { stroke-dashoffset: 0; } }

/* Headline emerges through the mist */
.hero-content .eyebrow,
.hero-content h1,
.hero-content > p {
  animation: emergeMist 1.1s cubic-bezier(.22, .61, .36, 1) both;
}
.hero-content h1 { animation-delay: .2s; }
.hero-content > p { animation-delay: .4s; }
@keyframes emergeMist {
  from { opacity: 0; transform: translateY(22px); filter: blur(8px); }
  to   { opacity: 1; transform: translateY(0); filter: blur(0); }
}

/* ---------------------------------------------------------------------
   2) The River Thread — the Leva flows down the whole page
   --------------------------------------------------------------------- */
.river-thread {
  --rp: 0;
  position: fixed; z-index: 60;
  top: 0; bottom: 0; left: clamp(8px, 1.2vw, 18px);
  width: 3px;
  pointer-events: none;
  background: color-mix(in srgb, var(--silver) 22%, transparent);
  border-radius: 999px;
}
.river-thread span {
  position: absolute; top: 0; left: 0; right: 0;
  height: calc(var(--rp) * 100%);
  border-radius: 999px;
  background: linear-gradient(to bottom, #7ea8c9, #5a86ab 40%, #9fc3dd 70%, #6f9cbe);
  background-size: 100% 320px;
  animation: riverFlow 3.2s linear infinite;
  box-shadow: 0 0 12px rgba(126, 168, 201, 0.55);
}
/* The river pools at the bottom of the journey */
.river-thread::after {
  content: "";
  position: absolute; left: 50%; bottom: 10px;
  width: 11px; height: 11px;
  transform: translateX(-50%) scale(calc(.4 + var(--rp) * .6));
  border-radius: 50%;
  background: radial-gradient(circle, #9fc3dd 0%, #5a86ab 60%, transparent 75%);
  opacity: calc(var(--rp) * .95);
  box-shadow: 0 0 16px rgba(126, 168, 201, 0.8);
}
@keyframes riverFlow {
  from { background-position: 0 0; }
  to   { background-position: 0 320px; }
}
@media (max-width: 900px) { .river-thread { display: none; } }

/* River divider — a meander of the Leva between chapters
   (replaces the plain motif rule where the story calls for water) */
.river-divider { display: flex; justify-content: center; margin: 0; padding: 2.4rem 0; overflow: hidden; }
.river-divider svg { width: min(680px, 86vw); height: 30px; color: #7ea8c9; opacity: .75; }
.river-divider path {
  fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round;
  stroke-dasharray: 10 14;
  animation: riverMeander 2.6s linear infinite;
}
.river-divider path + path { opacity: .4; stroke-width: 1.2; animation-duration: 3.4s; }
@keyframes riverMeander { to { stroke-dashoffset: -24; } }

/* ---------------------------------------------------------------------
   3) Chapters — Боров Камък (waterfall) & Леденика (cave)
   --------------------------------------------------------------------- */
.chapter {
  position: relative;
  overflow: hidden;
  color: #fff;
  padding: 7rem 0;
}
.chapter h2 { color: #fff; }
.chapter p { color: rgba(255, 255, 255, 0.82); max-width: 480px; }
.chapter__meta {
  display: inline-flex; align-items: center; gap: .55rem;
  font-size: .78rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
  color: var(--gold);
  margin: .4rem 0 1.6rem;
}
.chapter__meta::before { content: "◆"; font-size: .6rem; }
.chapter__inner { position: relative; z-index: 3; max-width: 640px; }

/* --- Боров Камък: the page has a waterfall in it --- */
.chapter--waterfall {
  --wp: 0;
  background:
    radial-gradient(90% 120% at 85% 0%, #223650 0%, transparent 55%),
    linear-gradient(180deg, #101d33 0%, #0a1424 60%, #081020 100%);
}
/* Layered rock strata of the 400 m walls */
.chapter--waterfall::before {
  content: "";
  position: absolute; inset: 0; z-index: 1; pointer-events: none; opacity: .5;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='900' height='600' viewBox='0 0 900 600' preserveAspectRatio='none'><g fill='none' stroke='%233a4f6e' stroke-width='1.4' opacity='.55'><path d='M900 40 C700 70 520 30 300 80 150 110 60 90 0 120'/><path d='M900 160 C720 190 500 150 320 210 160 250 80 220 0 250'/><path d='M900 300 C680 330 540 290 340 350 180 390 70 360 0 390'/><path d='M900 440 C700 470 520 430 320 480 170 520 60 500 0 520'/></g></svg>");
  background-size: cover;
}
/* The falling water — a real cascade, not a cone.
   Three strands of streaked water rush at different speeds behind a soft
   veil; the whole sheet is warped by an SVG turbulence filter (#fallTurb,
   defined inline in the chapter) so its edges shiver like real falling
   water. Mist billows, spray leaps and a pool shimmers at the base.
   The sheet's height is driven by scroll (--wp). */
.chapter__fall {
  position: absolute; z-index: 2; top: 0; bottom: 0;
  right: clamp(6%, 12vw, 20%);
  width: clamp(60px, 7vw, 110px);
  pointer-events: none;
}
.chapter__fall i { display: block; }
.fall-water {
  position: absolute; top: 0; left: 0; right: 0;
  height: calc(var(--wp, 0) * 100%);
  overflow: hidden;
  /* narrow lip at the top, spreading as it drops */
  clip-path: polygon(30% 0, 70% 0, 92% 100%, 8% 100%);
  filter: url(#fallTurb);
}
/* Bright top lip where the water breaks over the edge */
.fall-water::before {
  content: "";
  position: absolute; top: 0; left: 22%; right: 22%; height: 10px;
  background: radial-gradient(60% 100% at 50% 0%, rgba(240, 250, 255, 0.85), transparent 80%);
}
.fall-strand {
  position: absolute; top: -60px; bottom: 0;
  background-repeat: repeat-y;
}
/* Fast, bright core */
.fall-strand--a {
  left: 30%; width: 40%;
  background-image: linear-gradient(to bottom,
    rgba(238, 248, 255, 0.72) 0 26px,
    rgba(238, 248, 255, 0.18) 26px 74px,
    rgba(238, 248, 255, 0.55) 74px 118px,
    rgba(238, 248, 255, 0.10) 118px 170px);
  background-size: 100% 170px;
  animation: fallRush 0.5s linear infinite;
}
/* Slower flank, softer */
.fall-strand--b {
  left: 12%; width: 34%;
  background-image: linear-gradient(to bottom,
    rgba(214, 236, 250, 0.42) 0 40px,
    rgba(214, 236, 250, 0.08) 40px 110px,
    rgba(214, 236, 250, 0.32) 110px 150px,
    rgba(214, 236, 250, 0.05) 150px 230px);
  background-size: 100% 230px;
  animation: fallRush 0.85s linear infinite;
  filter: blur(1px);
}
/* Slowest outer film — depth */
.fall-strand--c {
  left: 46%; width: 40%;
  background-image: linear-gradient(to bottom,
    rgba(200, 228, 246, 0.30) 0 56px,
    rgba(200, 228, 246, 0.05) 56px 130px,
    rgba(200, 228, 246, 0.22) 130px 190px,
    rgba(200, 228, 246, 0.04) 190px 290px);
  background-size: 100% 290px;
  animation: fallRush 1.25s linear infinite;
  filter: blur(2px);
}
/* A unifying vertical veil: bright core fading to transparent edges */
.fall-veil {
  position: absolute; inset: 0;
  background: linear-gradient(to right,
    transparent 0%,
    rgba(224, 240, 252, 0.10) 18%,
    rgba(238, 248, 255, 0.30) 50%,
    rgba(224, 240, 252, 0.10) 82%,
    transparent 100%);
}
@keyframes fallRush {
  from { background-position: 0 0; }
  to   { background-position: 0 var(--fall-loop, 170px); }
}
.fall-strand--a { --fall-loop: 170px; }
.fall-strand--b { --fall-loop: 230px; }
.fall-strand--c { --fall-loop: 290px; }

/* Mist billowing where the water lands */
.fall-mist {
  position: absolute; bottom: 1.5%; left: 50%;
  translate: -50% 0;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(216, 236, 250, 0.5), transparent);
  filter: blur(14px);
  opacity: calc(var(--wp, 0) * 0.9);
}
.fall-mist--1 { width: 240%; height: 120px; animation: mistBillow 4.2s ease-in-out infinite alternate; }
.fall-mist--2 { width: 160%; height: 85px; translate: -66% 0; animation: mistBillow 3.1s ease-in-out infinite alternate-reverse; }
@keyframes mistBillow {
  from { scale: 1 1; }
  to   { scale: 1.22 1.14; }
}
/* Droplets leaping from the impact */
.fall-spray {
  position: absolute; bottom: 3.5%; left: 50%;
  translate: -50% 0;
  width: 200%; height: 110px;
  opacity: calc(var(--wp, 0) * 0.95);
  background-image:
    radial-gradient(2px 2px at 18% 72%, rgba(255, 255, 255, 0.9), transparent 100%),
    radial-gradient(1.5px 1.5px at 34% 48%, rgba(240, 250, 255, 0.75), transparent 100%),
    radial-gradient(2px 2px at 52% 62%, rgba(255, 255, 255, 0.85), transparent 100%),
    radial-gradient(1px 1px at 66% 40%, rgba(240, 250, 255, 0.7), transparent 100%),
    radial-gradient(2px 2px at 80% 68%, rgba(255, 255, 255, 0.8), transparent 100%),
    radial-gradient(1.5px 1.5px at 44% 30%, rgba(240, 250, 255, 0.6), transparent 100%);
  animation: sprayLeap 1.5s ease-in-out infinite alternate;
}
@keyframes sprayLeap {
  from { transform: translateY(12px) scale(0.9); }
  to   { transform: translateY(-16px) scale(1.08); }
}
/* The pool — a shimmering ellipse of churned water */
.fall-pool {
  position: absolute; bottom: 2%; left: 50%;
  translate: -50% 0;
  width: 300%; height: 24px;
  border-radius: 50%;
  background: radial-gradient(ellipse at center,
    rgba(198, 228, 248, 0.55) 0%,
    rgba(126, 168, 201, 0.28) 45%,
    transparent 72%);
  filter: blur(3px);
  opacity: calc(var(--wp, 0) * 1);
  animation: poolShimmer 2.8s ease-in-out infinite alternate;
}
@keyframes poolShimmer {
  from { scale: 1 1; }
  to   { scale: 1.14 1.35; }
}

/* --- Леденика: the temperature drops --- */
.chapter--cave {
  background:
    radial-gradient(80% 100% at 50% 120%, #0e2233 0%, transparent 60%),
    linear-gradient(180deg, #060a14 0%, #04070e 100%);
  color: #dbeaf5;
}
.chapter--cave h2 { color: #e8f4fd; text-shadow: 0 0 30px rgba(126, 190, 228, 0.35); }
.chapter--cave p { color: rgba(199, 224, 240, 0.8); }
.chapter--cave .eyebrow { color: #8fc6e8; }
.chapter--cave .chapter__meta { color: #8fc6e8; }
/* Stalactites descending from the top edge */
.chapter__ice {
  position: absolute; top: -1px; left: 0; right: 0; z-index: 2;
  height: 64px; pointer-events: none;
  color: #0a1424; /* matches the bottom of the waterfall chapter above */
}
.chapter__ice svg { width: 100%; height: 100%; display: block; }
/* Crystal glints twinkling in the dark */
.chapter--cave::after {
  content: "";
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background-image:
    radial-gradient(1.5px 1.5px at 12% 34%, rgba(180, 224, 250, 0.9), transparent 100%),
    radial-gradient(1px 1px at 28% 68%, rgba(180, 224, 250, 0.7), transparent 100%),
    radial-gradient(2px 2px at 44% 22%, rgba(180, 224, 250, 0.8), transparent 100%),
    radial-gradient(1px 1px at 61% 54%, rgba(180, 224, 250, 0.65), transparent 100%),
    radial-gradient(1.5px 1.5px at 74% 30%, rgba(180, 224, 250, 0.85), transparent 100%),
    radial-gradient(1px 1px at 88% 62%, rgba(180, 224, 250, 0.7), transparent 100%),
    radial-gradient(1.5px 1.5px at 52% 82%, rgba(180, 224, 250, 0.75), transparent 100%);
  animation: crystalTwinkle 5s ease-in-out infinite alternate;
}
@keyframes crystalTwinkle {
  from { opacity: .35; }
  to   { opacity: .95; }
}
.chapter--cave .btn-ghost-light { border-color: rgba(143, 198, 232, 0.55); }
.chapter--cave .btn-ghost-light:hover { background: rgba(143, 198, 232, 0.18); }

/* Chapter figures (temperature badge etc.) */
.chapter__figures { display: flex; gap: 2.2rem; margin: 1.6rem 0 2rem; flex-wrap: wrap; }
.chapter__figure .num {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 3.2vw, 2.6rem);
  line-height: 1; color: var(--gold);
}
.chapter--cave .chapter__figure .num { color: #8fc6e8; }
.chapter__figure .lbl {
  margin-top: .4rem; font-size: .75rem; letter-spacing: .1em; text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
}

/* --- The hearth: restaurant chapter warms back up --- */
.chapter--hearth {
  background:
    radial-gradient(90% 130% at 15% 100%, rgba(199, 106, 67, 0.28) 0%, transparent 55%),
    linear-gradient(180deg, #2a1a12 0%, #1c110b 100%);
}
.chapter--hearth h2 { color: #fbeadf; }
.chapter--hearth p { color: rgba(244, 219, 202, 0.82); }
.chapter--hearth .eyebrow { color: var(--gold); }
/* Woven tablecloth border — shevitza used only in the hearth chapter */
.chapter--hearth::before {
  content: "";
  position: absolute; top: 0; left: 0; right: 0; height: 14px; z-index: 2;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='28' height='14' viewBox='0 0 28 14'><path d='M0 12 L7 3 L14 12 L21 3 L28 12' fill='none' stroke='%23c9a24b' stroke-width='1.5' opacity='.65'/></svg>");
  background-repeat: repeat-x;
}
/* Ember glow drifting up from the hearth */
.chapter--hearth::after {
  content: "";
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    radial-gradient(2px 2px at 18% 78%, rgba(255, 176, 116, 0.8), transparent 100%),
    radial-gradient(1.5px 1.5px at 32% 60%, rgba(255, 156, 96, 0.6), transparent 100%),
    radial-gradient(2px 2px at 70% 72%, rgba(255, 176, 116, 0.7), transparent 100%),
    radial-gradient(1px 1px at 84% 52%, rgba(255, 156, 96, 0.55), transparent 100%);
  animation: emberRise 7s ease-in-out infinite alternate;
}
@keyframes emberRise {
  from { opacity: .3; transform: translateY(6px); }
  to   { opacity: .9; transform: translateY(-10px); }
}
.chapter--hearth .image-reveal { box-shadow: 0 30px 70px -25px rgba(0, 0, 0, 0.8); }

/* ---------------------------------------------------------------------
   4) Folklore accents — one motif, everywhere (the Kanatitsa diamond)
   --------------------------------------------------------------------- */
.section-head .eyebrow::before {
  content: "";
  display: inline-block;
  width: 9px; height: 9px;
  margin-right: .55rem;
  background: currentColor;
  transform: rotate(45deg) translateY(-1px);
  clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%);
}
/* Embroidered stitch on outline buttons — hover feels hand-sewn */
.btn-outline:hover {
  outline: 1.5px dashed color-mix(in srgb, var(--gold) 80%, transparent);
  outline-offset: -6px;
}
.btn-ghost-light:hover {
  outline: 1.5px dashed rgba(255, 255, 255, 0.6);
  outline-offset: -6px;
}

/* ---------------------------------------------------------------------
   5) Reduced motion & no-JS fallbacks
   --------------------------------------------------------------------- */
.no-gorge-motion .hero__media { transform: none; }
.no-gorge-motion .hero__cliff--left  { transform: translateX(-12%); }
.no-gorge-motion .hero__cliff--right { transform: translateX(12%); }
.no-gorge-motion .river-thread span  { height: 100%; }
.no-gorge-motion .fall-water { height: 100%; }
.no-gorge-motion .fall-mist, .no-gorge-motion .fall-spray, .no-gorge-motion .fall-pool { opacity: .8; }
.no-gorge-motion .chapter__num { transform: none; }

@media (prefers-reduced-motion: reduce) {
  .hero__mist, .hero__gull, .hero__gull svg path,
  .river-thread span, .river-divider path,
  .fall-strand, .fall-mist, .fall-spray, .fall-pool,
  .chapter--cave::after, .chapter--hearth::after {
    animation: none;
  }
  .shevitsa-stitch path { animation: none; stroke-dashoffset: 0; }
  .hero-content .eyebrow, .hero-content h1, .hero-content > p { animation: none; }
  .hero__media { transform: none; }
  .river-thread span { height: 100%; }
  .fall-water { height: 100%; }
  .fall-mist, .fall-spray, .fall-pool { opacity: .8; }
  .chapter__num { transform: none; }
  .room-card:hover::before, .tour-card:hover::before,
  .place-card:hover::before, .framed:hover::before { animation: none; }
}

/* ---------------------------------------------------------------------
   6) Header refinements — gold thread navigation
   --------------------------------------------------------------------- */
/* Woven-thread underline that stitches in from the centre */
.main-nav a::after {
  content: "";
  position: absolute; left: 50%; bottom: -2px;
  width: 100%; height: 2px;
  transform: translateX(-50%) scaleX(0);
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, var(--gold) 28%, var(--gold) 72%, transparent);
  transition: transform .32s cubic-bezier(.22, .61, .36, 1);
}
.main-nav a:hover::after,
.main-nav a.is-active::after { transform: translateX(-50%) scaleX(1); }
.main-nav a.is-active { color: var(--accent); font-weight: 600; }
.site-header.is-transparent .main-nav a.is-active { color: var(--gold); }
.site-header.is-scrolled .main-nav a.is-active { color: var(--accent); }
/* In the mobile drop-down the links are full-width rows — no underline */
.main-nav.open a::after { display: none; }
.main-nav.open a.is-active { color: var(--accent); }

/* A gilded hairline settles under the header once it frosts on scroll */
.site-header::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: -1px; height: 1.5px;
  background: linear-gradient(90deg,
    transparent 0%,
    color-mix(in srgb, var(--frame-gold) 45%, transparent) 22%,
    var(--frame-gold-soft) 50%,
    color-mix(in srgb, var(--frame-gold) 45%, transparent) 78%,
    transparent 100%);
  opacity: 0;
  transition: opacity .35s ease;
  pointer-events: none;
}
.site-header.is-scrolled::after { opacity: .8; }

/* Round jewel controls: theme toggle & language pick */
.theme-toggle {
  width: 40px; height: 40px; padding: 0;
  border-radius: 50%;
  display: grid; place-items: center;
  font-size: 1.05rem; line-height: 1;
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}
.theme-toggle:hover {
  transform: rotate(18deg) scale(1.06);
  border-color: var(--gold);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--gold) 22%, transparent);
}
.lang-menu summary { transition: border-color .3s ease, box-shadow .3s ease, color .25s ease, background .25s ease; }
.lang-menu summary:hover, .lang-menu summary:focus-visible {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--gold) 18%, transparent);
  outline: none;
}
/* The Book Now jewel gets a fine gilded edge */
.header-actions .btn-primary {
  border: 1px solid color-mix(in srgb, var(--frame-gold-soft) 60%, transparent);
}
/* Logo picks up a golden ring on hover */
.logo .logo-img { transition: box-shadow .3s ease, transform .3s ease; }
.logo:hover .logo-img {
  box-shadow: 0 0 0 2px var(--frame-gold), 0 4px 18px rgba(11, 23, 48, 0.35);
  transform: rotate(-3deg);
}

/* ---------------------------------------------------------------------
   7) Spaces — live 360° cards fed by the virtual tour
   --------------------------------------------------------------------- */
.space-card--live { display: block; cursor: pointer; }
.space-card--live:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.space-card__360 {
  position: absolute; top: 1rem; right: 1rem; z-index: 3;
  display: inline-flex; align-items: center; gap: .4rem;
  padding: .45rem .85rem;
  border-radius: 999px;
  font-size: .78rem; font-weight: 700; letter-spacing: .02em; color: #fff;
  background: var(--glass-dark-bg);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border: 1px solid var(--frame-gold);
  transition: background-color .25s ease, transform .25s ease;
}
.space-card__360 svg { width: 15px; height: 15px; }
.space-card--live:hover .space-card__360 {
  background: rgba(199, 106, 67, 0.8);
  transform: scale(1.06);
}
.space-card__tip p { margin: 0; }
/* Every space card wears a polished ring above the photo — heavier gauge
   on dark panoramas so the metal reads clearly */
.space-card::before {
  content: "";
  position: absolute; inset: 9px; z-index: 3; pointer-events: none;
  border-radius: calc(var(--radius-lg) - 9px);
  padding: 1.5px;
  background: linear-gradient(135deg,
    var(--frame-gold),
    var(--frame-gold-soft) 35%,
    #f6e7b3 50%,
    var(--frame-gold-soft) 65%,
    var(--frame-gold-deep));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask-composite: exclude;
  opacity: .9;
  transition: opacity .3s ease;
}
.space-card:hover::before { opacity: 1; }
/* Engraved corner ornaments on the live cards (own element — the card's
   ::after is already the darkening overlay) */
.space-card__corners {
  position: absolute; inset: 9px; z-index: 3; pointer-events: none;
  border-radius: calc(var(--radius-lg) - 9px);
  background:
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='28' height='28' viewBox='0 0 28 28'><g fill='none' stroke='%23e6cf8a' stroke-width='1.5' stroke-linecap='round'><path d='M2 26 V12 Q2 2 12 2 H26'/><path d='M7 26 V14 Q7 7 14 7 H26' opacity='.45'/></g><path d='M9.5 4.5 L12.5 7.5 L9.5 10.5 L6.5 7.5 Z' fill='%23f6e7b3'/></svg>") top left / 26px 26px no-repeat,
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='28' height='28' viewBox='0 0 28 28'><g transform='rotate(90 14 14)'><g fill='none' stroke='%23e6cf8a' stroke-width='1.5' stroke-linecap='round'><path d='M2 26 V12 Q2 2 12 2 H26'/><path d='M7 26 V14 Q7 7 14 7 H26' opacity='.45'/></g><path d='M9.5 4.5 L12.5 7.5 L9.5 10.5 L6.5 7.5 Z' fill='%23f6e7b3'/></g></svg>") top right / 26px 26px no-repeat,
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='28' height='28' viewBox='0 0 28 28'><g transform='rotate(270 14 14)'><g fill='none' stroke='%23e6cf8a' stroke-width='1.5' stroke-linecap='round'><path d='M2 26 V12 Q2 2 12 2 H26'/><path d='M7 26 V14 Q7 7 14 7 H26' opacity='.45'/></g><path d='M9.5 4.5 L12.5 7.5 L9.5 10.5 L6.5 7.5 Z' fill='%23f6e7b3'/></g></svg>") bottom left / 26px 26px no-repeat,
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='28' height='28' viewBox='0 0 28 28'><g transform='rotate(180 14 14)'><g fill='none' stroke='%23e6cf8a' stroke-width='1.5' stroke-linecap='round'><path d='M2 26 V12 Q2 2 12 2 H26'/><path d='M7 26 V14 Q7 7 14 7 H26' opacity='.45'/></g><path d='M9.5 4.5 L12.5 7.5 L9.5 10.5 L6.5 7.5 Z' fill='%23f6e7b3'/></g></svg>") bottom right / 26px 26px no-repeat;
  opacity: .85;
  transition: opacity .3s ease;
}
.space-card:hover .space-card__corners { opacity: 1; }

/* ---------------------------------------------------------------------
   8) Ghost chapter numerals — carved into the rock, drifting slower
   than the page (gorge.js feeds --cp per chapter)
   --------------------------------------------------------------------- */
.chapter__num {
  position: absolute; z-index: 0; top: 1.5rem; right: clamp(.5rem, 5vw, 4rem);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(9rem, 22vw, 19rem);
  line-height: .8;
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(201, 162, 75, 0.18);
  pointer-events: none;
  user-select: none;
  transform: translateY(calc((1 - var(--cp, 0.5)) * 90px));
  will-change: transform;
}
.chapter--cave .chapter__num { -webkit-text-stroke-color: rgba(143, 198, 232, 0.15); }
.chapter--hearth .chapter__num { -webkit-text-stroke-color: rgba(255, 176, 116, 0.13); }
@media (max-width: 720px) { .chapter__num { font-size: 8rem; top: 1rem; } }

/* ---------------------------------------------------------------------
   9) Ridgeline dividers — the mountain profile stitches sections together
   --------------------------------------------------------------------- */
.ridge-divider { line-height: 0; overflow: hidden; }
.ridge-divider svg {
  display: block;
  width: 100%;
  height: clamp(30px, 5vw, 60px);
}
.ridge-divider path {
  fill: none;
  stroke: color-mix(in srgb, var(--color-pine) 32%, transparent);
  stroke-width: 1.5;
  stroke-linejoin: round;
}
[data-theme="dark"] .ridge-divider path {
  stroke: color-mix(in srgb, var(--frame-gold) 24%, transparent);
}

/* ---------------------------------------------------------------------
   10) Staggered card reveals — grids cascade in, one card at a time.
   Runs as a one-shot animation (fill: backwards) so it never fights
   the cards' hover transforms afterwards.
   --------------------------------------------------------------------- */
.reveal.is-visible .grid-3 > *,
.reveal.is-visible .grid-4 > *,
.reveal.is-visible .spaces-scroller > * {
  animation: cardRise .7s cubic-bezier(.22, .61, .36, 1) backwards;
}
.reveal.is-visible .grid-3 > *:nth-child(2),
.reveal.is-visible .grid-4 > *:nth-child(2),
.reveal.is-visible .spaces-scroller > *:nth-child(2) { animation-delay: .08s; }
.reveal.is-visible .grid-3 > *:nth-child(3),
.reveal.is-visible .grid-4 > *:nth-child(3),
.reveal.is-visible .spaces-scroller > *:nth-child(3) { animation-delay: .16s; }
.reveal.is-visible .grid-3 > *:nth-child(4),
.reveal.is-visible .grid-4 > *:nth-child(4),
.reveal.is-visible .spaces-scroller > *:nth-child(4) { animation-delay: .24s; }
.reveal.is-visible .grid-3 > *:nth-child(5),
.reveal.is-visible .grid-4 > *:nth-child(5),
.reveal.is-visible .spaces-scroller > *:nth-child(5) { animation-delay: .32s; }
.reveal.is-visible .grid-3 > *:nth-child(6),
.reveal.is-visible .grid-4 > *:nth-child(6),
.reveal.is-visible .spaces-scroller > *:nth-child(6) { animation-delay: .4s; }
.reveal.is-visible .grid-3 > *:nth-child(7),
.reveal.is-visible .grid-4 > *:nth-child(7),
.reveal.is-visible .spaces-scroller > *:nth-child(7) { animation-delay: .48s; }
.reveal.is-visible .grid-3 > *:nth-child(n+8),
.reveal.is-visible .grid-4 > *:nth-child(n+8),
.reveal.is-visible .spaces-scroller > *:nth-child(n+8) { animation-delay: .56s; }
@keyframes cardRise {
  from { opacity: 0; transform: translateY(26px); }
}

/* ---------------------------------------------------------------------
   11) Live weather chip — conditions on the ridge (Open-Meteo)
   --------------------------------------------------------------------- */
.hero-weather {
  display: inline-flex; align-items: center; gap: .55rem;
  margin-top: 1.1rem;
  padding: .5rem 1.05rem;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--frame-gold) 55%, transparent);
  font-size: .85rem;
  color: #fff;
  animation: emergeMist 1s ease .7s backwards;
}
.hero-weather[hidden] { display: none; }
.hero-weather__icon { font-size: 1rem; line-height: 1; }
.hero-weather__temp {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.02rem;
  color: var(--frame-gold-soft);
}
.hero-weather__cond { opacity: .85; }
.hero-weather__cond::before { content: "·"; margin-right: .5rem; opacity: .6; }

@media (prefers-reduced-motion: reduce) {
  .reveal.is-visible .grid-3 > *,
  .reveal.is-visible .grid-4 > *,
  .reveal.is-visible .spaces-scroller > * { animation: none; }
  .hero-weather { animation: none; }
}

/* ---------------------------------------------------------------------
   Page hero — folklore header band for the inner pages
   --------------------------------------------------------------------- */
.page-hero {
  position: relative;
  overflow: hidden;
  padding: 5.5rem 0 6.5rem;
  background:
    radial-gradient(120% 90% at 20% 0%, rgba(44,63,94,.55) 0%, transparent 55%),
    linear-gradient(165deg, #16233f 0%, var(--color-midnight) 58%, #091223 100%);
  color: #f3ead2;
  text-align: center;
}
.page-hero__inner { position: relative; z-index: 2; }
.page-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  margin: .35rem 0 .6rem;
  color: #f6efdd;
  text-shadow: 0 2px 24px rgba(0,0,0,.45);
}
.page-hero__lead {
  max-width: 620px;
  margin: 0 auto;
  color: rgba(243,234,210,.75);
  font-size: 1.02rem;
  line-height: 1.7;
}
.page-hero .motif-svg { margin: 1.4rem 0 0; padding: 0; }
.page-hero .motif-svg svg { color: var(--frame-gold); opacity: .75; }
.page-hero__glow {
  position: absolute; z-index: 1;
  top: -30%; right: -10%;
  width: 46rem; height: 46rem;
  background: radial-gradient(circle, rgba(201,162,75,.16) 0%, transparent 60%);
  pointer-events: none;
}
.page-hero__ridge {
  position: absolute; left: 0; right: 0; bottom: -1px;
  z-index: 1; line-height: 0;
}
.page-hero__ridge svg { width: 100%; height: 64px; }
.page-hero__ridge path { fill: var(--bg); }
@media (max-width: 720px) {
  .page-hero { padding: 3.6rem 0 4.6rem; }
}

/* Restaurant zones list */
.zone-list { margin: 1rem 0 1.6rem; display: grid; gap: .7rem; }
.zone-list li {
  padding: .75rem 1rem;
  border: 1px solid var(--border);
  border-left: 3px solid var(--frame-gold);
  border-radius: var(--radius-sm);
  background: var(--bg-elevated);
  font-size: .95rem;
}

/* Contact page card */
.contact-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-top: 3px solid var(--frame-gold);
  border-radius: var(--radius-md);
  padding: 2rem;
  box-shadow: var(--shadow);
}
.contact-card a { color: #f2f2f2; }
