/* Sozopolis Oasis Apartment — single pager, v2 "editorial seaside"
   Palette from the photography: deep navy-green sea, terracotta roofs,
   travertine cream. Hairline rules, near-square corners, photography-led. */

/* ---------- Fonts (self-hosted, latin + cyrillic subsets) ---------- */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('../fonts/inter-var-cyrillic.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('../fonts/inter-var-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Playfair Display';
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url('../fonts/playfair-display-var-cyrillic.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Playfair Display';
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url('../fonts/playfair-display-var-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---------- Tokens ---------- */
:root {
  --ink: #16312f;
  --ink-deep: #0c211f;
  --sea: #0f5e7e;
  --terra: #a8502c;
  --terra-deep: #8a3f22;
  --sand: #ece5d5;
  --paper: #f7f3ea;
  --cream: #f5f1e6;
  --line: rgba(22, 49, 47, 0.16);
  --line-soft: rgba(22, 49, 47, 0.1);
  --line-cream: rgba(245, 241, 230, 0.2);
  --serif: 'Playfair Display', 'Georgia', serif;
  --sans: 'Inter', system-ui, -apple-system, sans-serif;
  --ease: cubic-bezier(0.25, 0.6, 0.25, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --radius: 2px;
  --header-h: 74px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  scroll-padding-top: calc(var(--header-h) + 8px);
}
@media (prefers-reduced-motion: no-preference) {
  /* Native smooth only without JS — Lenis drives scrolling when JS is on. */
  html:not(.js) { scroll-behavior: smooth; }
}
body {
  margin: 0;
  font-family: var(--sans);
  font-weight: 400;
  font-size: 1.0625rem;
  line-height: 1.68;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img, svg, video { display: block; max-width: 100%; }
h1, h2, h3 { margin: 0; font-family: var(--serif); font-weight: 520; line-height: 1.1; }
p { margin: 0 0 1em; }
a { color: var(--sea); }
button { font: inherit; cursor: pointer; }
:focus-visible {
  outline: 2px solid var(--sea);
  outline-offset: 3px;
  border-radius: var(--radius);
  box-shadow: 0 0 0 5px rgba(247, 243, 236, 0.9);
}
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.wrap {
  width: min(1180px, 100% - clamp(2.5rem, 8vw, 6rem));
  margin-inline: auto;
}
section { padding-block: clamp(4.5rem, 9vw, 8rem); }

/* ---------- Type system ---------- */
.overline {
  display: flex; align-items: baseline; gap: 0.9em;
  font-weight: 600; font-size: 0.72rem; letter-spacing: 0.3em;
  text-transform: uppercase; color: var(--terra);
  margin: 0 0 1.4rem;
}
.overline .no {
  font-family: var(--serif); font-weight: 500; font-style: italic;
  font-size: 1.05rem; letter-spacing: 0.02em;
  color: color-mix(in srgb, var(--ink) 42%, transparent);
}
h2 {
  font-size: clamp(2.1rem, 1.3rem + 3.2vw, 3.5rem);
  letter-spacing: 0.005em;
  margin-bottom: clamp(1.3rem, 3vw, 2.1rem);
  text-wrap: balance;
  max-width: 15em;
}
.lead {
  font-size: clamp(1.1rem, 1rem + 0.45vw, 1.28rem);
  line-height: 1.72;
  max-width: 44em;
  color: color-mix(in srgb, var(--ink) 88%, transparent);
}

/* ---------- Buttons (one system) ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.7em;
  padding: 1.1em 2em;
  border: 1px solid var(--terra); border-radius: var(--radius);
  background: var(--terra); color: #fff;
  font-weight: 600; font-size: 0.78rem;
  letter-spacing: 0.16em; text-transform: uppercase;
  text-decoration: none;
  transition: background 0.2s var(--ease), border-color 0.2s var(--ease), color 0.2s var(--ease);
}
.btn:hover { background: var(--terra-deep); border-color: var(--terra-deep); }
.btn:active { transform: scale(0.98); }
.btn-line {
  background: transparent;
  color: inherit;
  border-color: color-mix(in srgb, currentColor 45%, transparent);
}
.btn-line:hover {
  background: color-mix(in srgb, currentColor 9%, transparent);
  border-color: color-mix(in srgb, currentColor 80%, transparent);
}

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  height: var(--header-h);
  display: flex; align-items: center;
  color: var(--cream);
  transition: background 0.3s var(--ease), color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  width: min(1320px, 100% - clamp(2rem, 6vw, 5rem));
}
.site-header.scrolled {
  background: rgba(247, 243, 234, 0.92);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  color: var(--ink);
  box-shadow: 0 1px 0 var(--line-soft);
}
.brand {
  display: block;
  width: clamp(180px, 22vw, 240px);
  height: 29px;
  color: inherit;
  background: currentColor;
  -webkit-mask: url('../img/logo-compact.svg') no-repeat left center / contain;
  mask: url('../img/logo-compact.svg') no-repeat left center / contain;
  transition: opacity 0.2s var(--ease);
}
.brand:hover { opacity: 0.75; }
.site-nav { display: flex; align-items: center; gap: clamp(1.2rem, 2.6vw, 2.4rem); }
.site-nav a {
  position: relative;
  color: inherit; text-decoration: none;
  font-weight: 500; font-size: 0.78rem;
  letter-spacing: 0.13em; text-transform: uppercase;
  padding-block: 6px;
}
.site-nav a:not(.btn)::after {
  content: ''; position: absolute; left: 0; bottom: 0;
  width: 100%; height: 1px; background: currentColor;
  transform: scaleX(0); transform-origin: right;
  transition: transform 0.25s var(--ease);
}
.site-nav a:not(.btn):hover::after { transform: scaleX(1); transform-origin: left; }
.site-nav .btn { padding: 0.85em 1.5em; font-size: 0.7rem; color: #fff; }
.menu-btn {
  display: none;
  background: none; border: 0; color: inherit;
  width: 44px; height: 44px; padding: 10px;
  margin-right: -10px;
}
.menu-btn svg { width: 100%; height: 100%; }

@media (max-width: 900px) {
  .site-nav {
    position: fixed; inset: 0; z-index: 60;
    flex-direction: column; justify-content: center; gap: 1.7rem;
    background: rgba(12, 33, 31, 0.97);
    color: var(--cream);
    visibility: hidden; opacity: 0;
    transition: opacity 0.3s var(--ease), visibility 0s linear 0.3s;
  }
  .site-nav.open { visibility: visible; opacity: 1; transition-delay: 0s; }
  .site-nav a {
    font-family: var(--serif);
    font-size: 1.7rem; font-weight: 480;
    letter-spacing: 0.02em; text-transform: none;
  }
  .site-nav a.btn { font-family: var(--sans); font-size: 0.8rem; letter-spacing: 0.16em; text-transform: uppercase; margin-top: 0.6rem; }
  .site-nav .close-btn {
    position: absolute; top: 14px; right: clamp(1rem, 3vw, 2.5rem);
    background: none; border: 0; color: var(--cream);
    width: 48px; height: 48px; padding: 12px;
  }
  .menu-btn { display: block; }
}
@media (min-width: 901px) {
  .site-nav .close-btn { display: none; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: grid; place-items: center;
  color: var(--cream);
  overflow: clip;
}
.hero-media { position: absolute; inset: 0; }
.hero-media video, .hero-media img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}
.hero-veil {
  position: absolute; inset: 0;
  background: linear-gradient(180deg,
    rgba(12, 33, 31, 0.58) 0%,
    rgba(12, 33, 31, 0.26) 38%,
    rgba(12, 33, 31, 0.28) 62%,
    rgba(12, 33, 31, 0.68) 100%);
}
.hero-inner {
  position: relative; z-index: 1;
  display: flex; flex-direction: column; align-items: center;
  text-align: center;
  padding: calc(var(--header-h) + 2rem) 1.5rem 5.5rem;
  width: min(920px, 100%);
  margin-inline: auto;
}
.hero-kicker {
  margin: 0 0 clamp(1.6rem, 4vh, 2.6rem);
  font-size: 0.72rem; font-weight: 500;
  letter-spacing: 0.34em; text-transform: uppercase;
  color: rgba(245, 241, 230, 0.78);
}
.hero h1 { width: 100%; }
.hero-logo {
  display: block;
  width: min(680px, 86vw);
  margin-inline: auto;
}
.hero-logo img { width: 100%; height: auto; margin-inline: auto; }
.hero-tagline {
  margin: clamp(1.6rem, 3.8vh, 2.4rem) auto 0;
  font-size: clamp(1.02rem, 0.95rem + 0.55vw, 1.3rem);
  font-weight: 380; letter-spacing: 0.015em;
  line-height: 1.7;
  max-width: 36em;
  color: rgba(245, 241, 230, 0.92);
}
.hero-cta {
  margin-top: clamp(2rem, 5vh, 3rem);
  display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap;
}
.hero-cta .btn-line { color: var(--cream); }
.scroll-cue {
  position: absolute; left: 50%; bottom: 28px; z-index: 1;
  width: 1px; height: 52px;
  background: linear-gradient(rgba(245,241,230,0) 0%, rgba(245,241,230,0.8) 100%);
  overflow: hidden;
}
.scroll-cue::after {
  content: ''; position: absolute; left: 0; top: -40%;
  width: 100%; height: 40%;
  background: var(--paper);
}
@media (prefers-reduced-motion: no-preference) {
  .scroll-cue::after { animation: cue 2.4s var(--ease) infinite; }
}
@keyframes cue {
  0% { top: -40%; }
  70%, 100% { top: 110%; }
}

/* ---------- Apartment ---------- */
.apartment-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(2.2rem, 5vw, 5rem);
  align-items: start;
}
.apartment-grid > div:first-child { padding-top: clamp(0rem, 2vw, 2rem); }

/* Static cross-fade slot — no scroll-tied movement anywhere */
.apartment-photo {
  margin: 0;
  position: relative;
}
.xfade {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  aspect-ratio: 4 / 3;
  background: var(--sand);
}
.xfade img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0;
}
.xfade img.on { opacity: 1; }
@media (prefers-reduced-motion: no-preference) {
  .xfade img { transition: opacity 1.2s var(--ease); }
}
.apartment-photo figcaption {
  margin-top: 0.8rem;
  font-size: 0.72rem; font-weight: 500;
  letter-spacing: 0.22em; text-transform: uppercase;
  color: color-mix(in srgb, var(--ink) 52%, transparent);
}
.xfade-tabs { display: flex; flex-wrap: wrap; align-items: center; gap: 0.7em; }
.xfade-tabs button {
  appearance: none; background: none; border: 0; padding: 4px 0;
  font: inherit; letter-spacing: inherit; text-transform: inherit;
  color: inherit; cursor: pointer;
  border-bottom: 1px solid transparent;
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease);
}
.xfade-tabs button:hover { color: var(--ink); }
.xfade-tabs button.on { color: var(--terra); border-color: currentColor; }
@media (max-width: 900px) {
  .apartment-grid { grid-template-columns: 1fr; }
  .apartment-photo { order: -1; }
  .xfade { aspect-ratio: 3 / 2; }
}

.amenities {
  list-style: none;
  margin: clamp(3rem, 7vw, 5rem) 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  column-gap: clamp(1.6rem, 3.5vw, 3rem);
}
@media (max-width: 900px) { .amenities { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px) { .amenities { grid-template-columns: 1fr; } }
.amenities li {
  display: flex; align-items: center; gap: 0.95rem;
  padding: 1.05rem 0.2rem 1.05rem 0;
  border-top: 1px solid var(--line);
  font-weight: 450; font-size: 0.97rem;
}
.amenities .ico {
  flex: 0 0 auto;
  width: 24px; height: 24px;
  display: grid; place-items: center;
  color: var(--sea);
}
.amenities .ico svg { width: 22px; height: 22px; }

/* ---------- Statement — full-bleed photographic moment ---------- */
.statement {
  position: relative;
  min-height: clamp(420px, 62vh, 640px);
  display: grid; place-items: center;
  color: var(--cream);
  overflow: clip;
  padding-block: clamp(5rem, 10vw, 8rem);
}
.statement .statement-media {
  position: absolute; inset: 0;
}
.statement .statement-media img {
  width: 100%; height: 100%; object-fit: cover;
}
.statement .statement-media::after {
  content: '';
  position: absolute; inset: 0;
  background: rgba(12, 33, 31, 0.5);
}
.statement .wrap { position: relative; z-index: 1; text-align: center; }
.statement blockquote {
  margin: 0 auto; max-width: 18em;
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.8rem, 1rem + 3.4vw, 3.1rem);
  font-weight: 470; line-height: 1.3;
  text-wrap: balance;
}
.statement .statement-rule {
  width: 1px; height: 56px;
  margin: 0 auto 2rem;
  background: linear-gradient(rgba(245,241,230,0) 0%, rgba(245,241,230,0.75) 100%);
}

/* ---------- Gallery ---------- */
.gallery-head {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 1.5rem; flex-wrap: wrap;
}
.gallery-count {
  font-family: var(--serif); font-style: italic;
  font-size: 1rem;
  color: color-mix(in srgb, var(--ink) 55%, transparent);
  white-space: nowrap;
}
.gallery-grid {
  margin-top: clamp(1.6rem, 3.5vw, 2.6rem);
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-auto-rows: clamp(120px, 16vw, 250px);
  grid-auto-flow: dense;
  gap: clamp(6px, 0.9vw, 12px);
}
.g-item {
  grid-column: span 2;
  position: relative;
  padding: 0; border: 0;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--sand);
  cursor: zoom-in;
}
.g-item.w { grid-column: span 4; }
.g-item.t { grid-row: span 2; }
.g-item img {
  width: 100%; height: 100%;
  object-fit: cover;
}
@media (prefers-reduced-motion: no-preference) {
  .g-item img { transition: transform 0.8s var(--ease-out), opacity 0.3s var(--ease); }
  .g-item:hover img, .g-item:focus-visible img { transform: scale(1.025); }
}
.g-item:hover img, .g-item:focus-visible img { opacity: 0.92; }
@media (max-width: 760px) {
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: clamp(130px, 33vw, 220px);
  }
  .g-item { grid-column: span 1; }
  .g-item.w { grid-column: span 2; }
}

/* ---------- Lightbox ---------- */
dialog.lightbox {
  border: 0; padding: 0; margin: 0;
  width: 100vw; height: 100dvh; max-width: none; max-height: none;
  background: transparent;
  overflow: hidden;
}
dialog.lightbox::backdrop {
  background: rgba(8, 22, 21, 0.94);
}
.lb-stage {
  width: 100%; height: 100%;
  display: grid; place-items: center;
  padding: clamp(3.5rem, 7vh, 4.5rem) clamp(1rem, 6vw, 5rem);
}
.lb-stage figure {
  margin: 0; text-align: center;
  max-width: 100%; max-height: 100%;
}
.lb-stage img {
  max-width: 100%;
  max-height: calc(100dvh - 11rem);
  width: auto; height: auto;
  margin-inline: auto;
  border-radius: var(--radius);
}
@media (prefers-reduced-motion: no-preference) {
  .lb-stage img.slide { animation: lb-in 0.35s var(--ease-out); }
}
@keyframes lb-in {
  from { opacity: 0; transform: scale(0.985); }
  to { opacity: 1; transform: none; }
}
.lb-stage figcaption {
  margin-top: 1rem;
  color: rgba(245, 241, 230, 0.8);
  font-size: 0.88rem; letter-spacing: 0.04em;
}
.lb-count {
  position: absolute; top: 1.3rem; left: 50%; transform: translateX(-50%);
  color: rgba(245, 241, 230, 0.65);
  font-size: 0.78rem; letter-spacing: 0.18em;
}
.lb-btn {
  position: absolute; z-index: 2;
  width: 50px; height: 50px;
  display: grid; place-items: center;
  border: 1px solid rgba(245, 241, 230, 0.25); border-radius: 50%;
  background: rgba(12, 33, 31, 0.35);
  color: var(--cream);
  transition: background 0.2s var(--ease), border-color 0.2s var(--ease);
}
.lb-btn:hover { background: rgba(12, 33, 31, 0.6); border-color: rgba(245, 241, 230, 0.55); }
.lb-btn svg { width: 21px; height: 21px; }
.lb-close { top: 1rem; right: 1.1rem; }
.lb-prev { left: 1.1rem; top: 50%; translate: 0 -50%; }
.lb-next { right: 1.1rem; top: 50%; translate: 0 -50%; }
@media (max-width: 700px) {
  .lb-prev { left: 0.4rem; } .lb-next { right: 0.4rem; }
  .lb-btn { width: 46px; height: 46px; }
}

/* ---------- Video ---------- */
.video-teaser {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 16 / 9;
  cursor: pointer;
  padding: 0; border: 0;
  width: 100%;
  background: var(--ink-deep);
}
.video-teaser img {
  width: 100%; height: 100%; object-fit: cover;
}
.video-teaser::after {
  content: '';
  position: absolute; inset: 0;
  background: rgba(12, 33, 31, 0.22);
  transition: background 0.3s var(--ease);
}
.video-teaser:hover::after { background: rgba(12, 33, 31, 0.36); }
.vt-play {
  position: absolute; z-index: 1; inset: 0; margin: auto;
  width: clamp(74px, 10vw, 92px); height: clamp(74px, 10vw, 92px);
  border-radius: 50%;
  display: grid; place-items: center;
  border: 1px solid rgba(245, 241, 230, 0.65);
  background: rgba(12, 33, 31, 0.25);
  color: var(--cream);
  transition: background 0.25s var(--ease), border-color 0.25s var(--ease);
}
.video-teaser:hover .vt-play { background: rgba(12, 33, 31, 0.55); border-color: var(--cream); }
/* Triangle carries visual weight left — nudge right for optical centre */
.vt-play svg { width: 32%; height: 32%; margin-left: 8%; }
.vt-hint {
  position: absolute; z-index: 1; left: 0; right: 0; bottom: 1.5rem;
  text-align: center;
  color: rgba(245, 241, 230, 0.9);
  font-size: 0.72rem; letter-spacing: 0.24em; text-transform: uppercase; font-weight: 600;
}
dialog.videobox {
  border: 0; padding: 0;
  width: min(1200px, 94vw);
  background: transparent;
  overflow: visible;
}
dialog.videobox::backdrop { background: rgba(8, 22, 21, 0.94); }
dialog.videobox video {
  width: 100%; height: auto; max-height: 86dvh;
  border-radius: var(--radius);
  background: #000;
}
dialog.videobox .lb-close { top: -58px; right: -4px; }
@media (max-width: 700px) {
  dialog.videobox .lb-close { top: -54px; right: 0; }
}

/* ---------- Complex ---------- */
.complex { background: var(--sand); }
.complex-grid {
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 6fr);
  gap: clamp(2.2rem, 5vw, 5rem);
  align-items: start;
}
@media (max-width: 900px) { .complex-grid { grid-template-columns: 1fr; } }
.complex-photo {
  margin: 0;
  position: relative;
}
.complex-photo img {
  width: 100%;
  aspect-ratio: 4 / 4.6;
  object-fit: cover;
  border-radius: var(--radius);
}
.complex-photo figcaption {
  margin-top: 0.8rem;
  font-size: 0.72rem; font-weight: 500;
  letter-spacing: 0.22em; text-transform: uppercase;
  color: color-mix(in srgb, var(--ink) 52%, transparent);
}
@media (max-width: 900px) {
  .complex-photo img { aspect-ratio: 4 / 3; }
}
.complex-grid > div:last-child { padding-top: clamp(0rem, 2vw, 2rem); }
.facts {
  list-style: none; padding: 0;
  margin: 2rem 0 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  column-gap: clamp(1.4rem, 3vw, 2.5rem);
}
@media (max-width: 540px) { .facts { grid-template-columns: 1fr; } }
.facts li {
  padding: 0.85rem 0;
  border-top: 1px solid var(--line);
  font-size: 0.95rem; font-weight: 450;
}
.distances {
  margin-top: clamp(2.2rem, 4.5vw, 3.4rem);
  padding-top: clamp(1.4rem, 3vw, 2rem);
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1rem, 3vw, 2.5rem);
}
@media (max-width: 540px) { .distances { grid-template-columns: 1fr; gap: 1.4rem; } }
.distances .num {
  display: block;
  font-family: var(--serif);
  font-size: clamp(1.7rem, 1.1rem + 1.8vw, 2.5rem);
  font-weight: 500; line-height: 1.15;
}
.distances .lbl {
  display: block; margin-top: 0.35rem;
  font-size: 0.72rem; font-weight: 550;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: color-mix(in srgb, var(--ink) 62%, transparent);
}

/* ---------- Availability ---------- */
/* One editorial unit: the calendar (2 fluid months) on the left, the
   inquiry form as a right-hand column behind a hairline rule — no dead
   space, no third-party-embed look. Composed by putting the widget
   container itself on a grid; its top-level children are frozen contract:
   .obc-nav / .obc-months / .obc-legend / .obc-msg / .obc-form. */
.availability .cal-frame {
  margin-top: clamp(1.8rem, 4vw, 2.8rem);
  background: #fdfbf6;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(1.2rem, 3vw, 2.4rem);
}
@media (min-width: 1460px) {
  /* Wide screens: the card breaks out of the 1180px text column to the
     header's 1320px measure — larger day cells, deliberate presence. */
  .availability .cal-frame { margin-inline: -70px; }
}
.availability .oasis-booking-cal {
  /* The .cal-frame is the card — neutralise any widget-side chrome. */
  border: 0;
  padding: 0;
  max-width: none;
  min-height: 320px;
  /* Widget theme props */
  --obc-bg: transparent;
  --obc-text: #16312f;
  --obc-booked-bg: #a8502c;
  --obc-booked-text: #ffffff;
  --obc-free-bg: #f3eee1;
  --obc-head-bg: #ece5d5;
  --obc-accent: #0f5e7e;
  --obc-radius: 2px;
  --obc-font: 'Inter', system-ui, sans-serif;
  /* Past dates must read neutral — one quiet gray, no third state */
  --obc-past-text: #a9aaa0;
  /* Interactive selection + inquiry form */
  --obc-select-bg: #16312f;
  --obc-select-text: #f5f1e6;
  --obc-range-bg: #dfe4da;
  --obc-range-text: #16312f;
  --obc-btn-bg: #a8502c;
  --obc-btn-text: #ffffff;
  --obc-input-bg: #ffffff;
  --obc-input-border: rgba(22, 49, 47, 0.24);
  --obc-input-text: #16312f;
  --obc-form-bg: transparent;
  --obc-msg-ok: #2e6b46;
  --obc-msg-err: #9c3524;
  /* Fluid day cells, capped so they stay calendar-like, not clownish */
  --obc-cell-max: 56px;
}
/* Quiet placeholder for the brief pre-init state (script not yet run). */
.availability .oasis-booking-cal:not([data-obc-ready])::before {
  content: 'Зареждане на календара…';
  display: block;
  padding: 2.2rem 0;
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.05rem;
  color: color-mix(in srgb, var(--ink) 55%, transparent);
}
/* …but not next to the visible fallback note (script blocked / API down). */
.availability .cal-frame:has(.cal-fallback:not([hidden]))
  .oasis-booking-cal:not([data-obc-ready])::before {
  content: none;
}
/* Stacked flow (narrow screens): the form follows the calendar behind a
   hairline rule instead of sitting in a boxed sub-card. */
.availability .oasis-booking-cal > .obc-form {
  margin-top: 2rem;
  padding: 1.8rem 0 0;
  border-top: 1px solid var(--line);
  align-content: start;
}
.availability .oasis-booking-cal .obc-form-title {
  font-family: var(--serif);
  font-weight: 520;
  font-size: 1.35rem;
  letter-spacing: 0.005em;
}
/* Desktop: calendar left, inquiry form right. The form spans all rows;
   the months row takes the slack so nav stays top and legend bottom. */
@media (min-width: 1140px) {
  .availability .oasis-booking-cal {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 320px);
    grid-template-rows: auto 1fr auto auto;
    grid-template-areas:
      'nav    form'
      'months form'
      'legend form'
      'msg    form';
    column-gap: clamp(1.8rem, 2.6vw, 2.6rem);
  }
  .availability .oasis-booking-cal > .obc-nav { grid-area: nav; }
  .availability .oasis-booking-cal > .obc-months { grid-area: months; }
  .availability .oasis-booking-cal > .obc-legend { grid-area: legend; }
  .availability .oasis-booking-cal > .obc-msg { grid-area: msg; }
  .availability .oasis-booking-cal > .obc-form {
    grid-area: form;
    margin-top: 0;
    padding: 0 0 0 clamp(1.8rem, 2.6vw, 2.6rem);
    border-top: 0;
    border-left: 1px solid var(--line);
  }
}
.cal-fallback {
  margin: 1rem 0 0; padding: 1rem 1.2rem;
  background: var(--sand);
  border-radius: var(--radius);
  font-size: 0.95rem;
}
.cal-fallback[hidden] { display: none; }
@media (prefers-reduced-motion: no-preference) {
  .cal-fallback { animation: soft-in 0.35s var(--ease-out); }
}
@keyframes soft-in {
  from { opacity: 0; transform: translateY(5px); }
  to { opacity: 1; transform: none; }
}
/* Quiet direct-contact alternative under the card — the inquiry form is
   the primary CTA of this section now, so no competing big button here. */
.availability .cal-aside {
  margin: 1.6rem 0 0;
  font-size: 0.95rem;
  color: color-mix(in srgb, var(--ink) 78%, transparent);
}

/* Dialog exit: subtler than entry (fade only), driven by .closing from JS */
dialog.lightbox, dialog.videobox {
  transition: opacity 0.16s ease-out;
}
dialog.lightbox.closing, dialog.videobox.closing { opacity: 0; }
dialog.lightbox.closing::backdrop, dialog.videobox.closing::backdrop { opacity: 0; }
dialog.lightbox::backdrop, dialog.videobox::backdrop { transition: opacity 0.16s ease-out; }

/* ---------- Contact ---------- */
.contact {
  background: var(--ink-deep);
  color: var(--cream);
}
.contact .overline { color: color-mix(in srgb, var(--terra) 70%, #e8b08a); }
.contact .overline .no { color: rgba(245, 241, 230, 0.4); }
.contact h2 { color: var(--cream); }
.contact .lead { color: rgba(245, 241, 230, 0.82); }
.contact-rows {
  margin-top: clamp(2.4rem, 5vw, 3.6rem);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.6rem, 3.5vw, 3rem);
}
@media (max-width: 900px) { .contact-rows { grid-template-columns: 1fr; gap: 0; } }
.contact-row {
  display: block;
  padding: 1.5rem 0 1.6rem;
  border-top: 1px solid var(--line-cream);
  text-decoration: none;
  color: var(--cream);
}
.contact-row .label {
  display: block;
  font-size: 0.7rem; font-weight: 600;
  letter-spacing: 0.26em; text-transform: uppercase;
  color: rgba(245, 241, 230, 0.55);
  margin-bottom: 0.7rem;
}
.contact-row .value {
  font-family: var(--serif);
  font-size: clamp(1.3rem, 1rem + 1vw, 1.65rem);
  font-weight: 500;
  letter-spacing: 0.01em;
  overflow-wrap: anywhere;
  transition: color 0.2s var(--ease);
}
.contact-row .value--email { font-size: clamp(1.05rem, 0.9rem + 0.7vw, 1.35rem); }
.contact-row:hover .value { color: #dfa07a; }
.social-links {
  display: flex; gap: 1rem; align-items: center;
  margin-top: 2.4rem;
  font-size: 0.78rem; font-weight: 500;
  letter-spacing: 0.13em; text-transform: uppercase;
}
.social-links a {
  color: inherit; text-decoration: none;
  border-bottom: 1px solid transparent;
  opacity: 0.85;
  transition: border-color 0.2s var(--ease), opacity 0.2s var(--ease);
  padding-block: 4px;
}
.social-links a:hover { border-color: currentColor; opacity: 1; }

.price-note {
  margin-top: clamp(2.6rem, 5vw, 3.6rem);
  padding-top: clamp(1.6rem, 3vw, 2.2rem);
  border-top: 1px solid var(--line-cream);
  display: flex; align-items: center; justify-content: space-between;
  gap: 1.4rem; flex-wrap: wrap;
}
.price-note .big {
  font-family: var(--serif); font-style: italic;
  font-size: clamp(1.4rem, 1.1rem + 1.2vw, 2rem);
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--ink-deep);
  color: rgba(245, 241, 230, 0.6);
  border-top: 1px solid rgba(245, 241, 230, 0.1);
  padding: 2.8rem 0;
  font-size: 0.9rem;
}
.site-footer .wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1.5rem; flex-wrap: wrap;
}
.footer-brand {
  width: 185px; height: 23px;
  background: currentColor;
  -webkit-mask: url('../img/logo-compact.svg') no-repeat left center / contain;
  mask: url('../img/logo-compact.svg') no-repeat left center / contain;
}
.site-footer a { color: rgba(245, 241, 230, 0.85); text-decoration-color: rgba(245,241,230,0.3); }
.site-footer a:hover { color: #fff; }
.site-footer .apolonia { font-size: 0.88rem; }

/* ---------- Reveal (no parallax anywhere) ---------- */
/* Gated on html.js (set inline; removed by main.js onerror) so content
   stays visible without JS. Opacity + small translate + a soft blur that
   resolves slightly ahead of the movement, so elements sharpen as they
   settle. Compositing hygiene: the revealed state is transform:none /
   filter:none (not blur(0)), so no layer or stacking context lingers
   after the one-shot reveal; deliberately NO will-change — promoting
   dozens of .rv elements at once would cost more on mobile than the
   short transitions themselves. */
@media (prefers-reduced-motion: no-preference) {
  .js .rv {
    opacity: 0;
    transform: translateY(32px);
    filter: blur(14px);
    transition: opacity 1.25s var(--ease-out), transform 1.25s var(--ease-out),
      filter 1s var(--ease-out);
    transition-delay: var(--d, 0ms);
  }
  .js .rv.in { opacity: 1; transform: none; filter: none; }
}
@media (prefers-reduced-motion: reduce) {
  .scroll-cue { display: none; }
}
