:root {
  --bg: #f5f0e8;
  --bg-elev: #ede8de;
  --bg-card: #ffffff;
  --bg-card-hover: #f0ece3;
  --text: #1e1a15;
  --text-muted: #7a6e60;
  --accent: #a07848;
  --accent-hover: #b88a56;
  --accent-soft: rgba(160, 120, 72, 0.10);
  --border: #ddd6c8;
  --border-strong: #c5bdb0;
  --success: #7dd3a8;
  --error: #f87171;
  --warning: #d4a5ff;
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  --radius: 2px;
  --radius-lg: 4px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
[hidden] { display: none !important; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  font-weight: 300;
  isolation: isolate;
  position: relative;
}



img { max-width: 100%; display: block; }
a { color: inherit; }

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: -0.01em;
  line-height: 1.15;
}
h1 { font-size: clamp(2.5rem, 6vw, 4.75rem); }
h2 { font-size: clamp(1.9rem, 3.5vw, 2.75rem); }
h3 { font-size: 1.4rem; }
h1 em { font-style: italic; color: var(--accent); }

.muted { color: var(--text-muted); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.5rem;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-family: var(--sans);
  font-size: 0.92rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: all 0.18s ease;
  text-decoration: none;
  background: none;
  color: inherit;
}
.btn-primary {
  background: var(--accent);
  color: #ffffff;
}
.btn-primary:hover:not(:disabled) {
  background: var(--accent-hover);
  transform: translateY(-1px);
}
.btn-primary:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}
.btn-ghost {
  border-color: var(--border-strong);
  color: var(--text);
}
.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* ---------- Nav ---------- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.4rem clamp(1.5rem, 4vw, 3.5rem);
  background: rgba(245, 240, 232, 0.97);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  transition: background 0.35s, border-color 0.35s;
}
.nav.scrolled {
  background: rgba(245, 240, 232, 0.98);
  border-bottom-color: var(--border-strong);
}
.nav-logo {
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-decoration: none;
  color: var(--text);
  text-transform: uppercase;
}
.nav-dot { color: var(--accent); margin-left: 0.1em; }
.nav-links {
  display: flex;
  gap: 2.25rem;
  list-style: none;
}
.nav-links a {
  text-decoration: none;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
  transition: color 0.18s;
}
.nav-links a:hover { color: var(--text); }
.nav-book-btn {
  border: 1px solid var(--border-strong);
  color: var(--text);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 0.55rem 1.25rem;
  border-radius: 0;
  transition: background 0.18s, border-color 0.18s, color 0.18s;
}
.nav-book-btn:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}
.lang-toggle {
  position: relative;
  background: none;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--text-muted);
  font-family: var(--sans);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  padding: 0.3rem 0.75rem;
  cursor: pointer;
  transition: border-color 0.18s, color 0.18s, background 0.18s;
  white-space: nowrap;
}
.lang-toggle::before {
  content: "";
  position: absolute;
  left: -1rem;
  top: 50%;
  transform: translateY(-50%);
  width: 1px;
  height: 1.1rem;
  background: var(--border-strong);
  opacity: 0.6;
}
/* Mobile-only lang button: hidden on desktop */
.nav-links-lang { display: none; }
.lang-toggle:hover {
  border-color: var(--accent);
  color: var(--accent);
}
.nav-toggle {
  display: none;
  background: none;
  border: 0;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
  padding: 0.4rem;
}
.nav-toggle span {
  width: 22px;
  height: 1px;
  background: var(--text);
}

@media (max-width: 720px) {
  .nav-book-btn { display: none; }
  .nav-toggle { display: flex; }
  /* Desktop lang toggle hidden on mobile — shown in mobile menu instead */
  .lang-toggle:not(.lang-toggle--mob) { display: none; }

  /* Mobile fullscreen overlay */
  .nav-links {
    display: none;
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    min-height: 100vh;
    z-index: 9999;
    background: #f5f0e8;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
    padding: 2rem 1.5rem 3rem;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
  .nav-links.open { display: flex; }
  /* Remove backdrop-filter on mobile — it traps child z-index on iOS Safari */
  .nav {
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    background: rgba(245, 240, 232, 0.97);
  }
  /* iOS scroll lock */
  body.menu-open {
    overflow: hidden;
    position: fixed;
    width: 100%;
  }
  .nav-links li { list-style: none; }
  .nav-links a {
    font-size: 1.25rem;
    letter-spacing: 0.12em;
    padding: 0.65rem 1rem;
    display: block;
    text-align: center;
  }
  /* LV/EN at the bottom of mobile menu */
  .nav-links-lang {
    display: block;
    margin-top: 1.5rem;
  }
  .lang-toggle--mob {
    font-size: 0.72rem;
    padding: 0.35rem 0.9rem;
    border: 1px solid var(--border);
    background: none;
    color: var(--text-muted);
    letter-spacing: 0.1em;
    cursor: pointer;
    border-radius: 0;
    transition: border-color 0.18s, color 0.18s;
  }
  .lang-toggle--mob:hover { border-color: var(--accent); color: var(--accent); }

  /* Close button (X) when menu is open */
  .nav-toggle.open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
  .nav-toggle.open span:nth-child(2) { opacity: 0; }
  .nav-toggle.open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
  .nav-toggle span { transition: transform 0.22s, opacity 0.22s; }
  /* Keep toggle on top of overlay */
  .nav-toggle { position: relative; z-index: 1000; }
  .nav-logo { position: relative; z-index: 1000; }
}

/* ---------- Hero (full-screen ICONI style) ---------- */
.hero-full {
  position: relative;
  height: 100vh;
  min-height: 640px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}
.hero-full-bg {
  position: absolute;
  inset: -25% 0;          /* 25% papildus augšā un apakšā parallax kustībai */
  background: radial-gradient(ellipse 130% 90% at 50% 0%, #ece4d4 0%, #e8dfd0 50%, #f0ead8 100%);
  will-change: transform;
}
/* Hero video — when a src is added it covers the bg image */
.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
  pointer-events: none;
  display: block;
}
.hero-video:not([src]):not([currentSrc]) { display: none; }
/* Push overlay + content above video */
.hero-full-overlay { z-index: 2; }
.hero-full-content { z-index: 3; }
.hero-scroll-hint { z-index: 3; }
.hero-full-overlay {
  display: none;
}
.hero-full-content {
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 0 2rem;
}
.hero-greeting {
  font-size: 0.78rem;
  font-weight: 400;
  letter-spacing: 0.38em;
  text-transform: uppercase;
  color: #8a6a4a;
  margin-bottom: 1.25rem;
}
.hero-name {
  font-family: var(--serif);
  font-size: clamp(1.4rem, 7.5vw, 4rem);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: 0.05em;
  color: #4a2e1a;
  margin-bottom: 2rem;
  text-transform: uppercase;
  word-break: keep-all;
  overflow-wrap: normal;
}
.hero-moon {
  display: block;
  line-height: 2.2;
  letter-spacing: 0;
  text-transform: none;
  opacity: 0.75;
}
.hero-desc {
  font-size: 0.78rem;
  font-weight: 400;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: #8a6a4a;
  margin-bottom: 2.5rem;
}
.hero-cta {
  border: 1px solid #b08060;
  color: #4a2e1a;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  padding: 0.85rem 2rem;
  border-radius: 0;
  transition: background 0.22s, border-color 0.22s, color 0.22s;
}
.hero-cta:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}
.hero-scroll-hint {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  z-index: 2;
  color: var(--text-muted);
  font-size: 0.62rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}
.hero-scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--border-strong), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}
@keyframes scrollPulse {
  0%, 100% { opacity: 0.5; transform: scaleY(1); }
  50% { opacity: 1; transform: scaleY(1.15); }
}

/* ---- Hero split layout ---- */
.hero-split {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1300px;
  padding: 0 clamp(1.5rem, 5vw, 5rem);
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 4rem;
}
.hero-split-left {
  text-align: left;
}
.hero-split-right {
  display: flex;
  justify-content: center;
}
.hero-portrait-wrap {
  position: relative;
  width: clamp(260px, 35vw, 440px);
}
.hero-portrait {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: center top;
  display: block;
  filter: sepia(0.08) contrast(1.04);
}
.hero-portrait-deco {
  position: absolute;
  inset: -10px -10px 10px 10px;
  border: 1px solid var(--accent);
  opacity: 0.35;
  pointer-events: none;
  z-index: -1;
}
@media (max-width: 860px) {
  .hero-split {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 2.5rem;
    padding-top: 6rem;
  }
  .hero-split-left { text-align: center; }
  .hero-portrait-wrap { width: clamp(200px, 60vw, 320px); margin: 0 auto; }
  .hero-name { font-size: clamp(1.2rem, 7.5vw, 3rem); }
}

/* ---- Hero entrance animations ---- */
@keyframes heroFadeUp {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}
.hero-greeting {
  animation: heroFadeUp 0.9s cubic-bezier(0.16,1,0.3,1) 0.15s both;
}
.hero-name {
  animation: heroFadeUp 1.1s cubic-bezier(0.16,1,0.3,1) 0.35s both;
}
.hero-desc {
  animation: heroFadeUp 0.9s cubic-bezier(0.16,1,0.3,1) 0.6s both;
}
.hero-cta {
  animation: heroFadeUp 0.9s cubic-bezier(0.16,1,0.3,1) 0.8s both;
}

/* ---- Cursor sparkle ---- */
.cursor-spark {
  position: fixed;
  pointer-events: none;
  z-index: 9999;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(160,120,72,0.55) 0%, transparent 70%);
  transform: translate(-50%, -50%);
  transition: width 0.12s ease, height 0.12s ease, opacity 0.12s ease;
}

/* ---- Gallery upgrade (handled in main gallery block below) ---- */

/* ---- Dekoratīvs dalītājs ---- */
.section-divider {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  max-width: 220px;
  margin: 0 auto 3rem;
  opacity: 0.45;
}
.section-divider::before,
.section-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--accent);
}
.section-divider-gem {
  width: 6px;
  height: 6px;
  background: var(--accent);
  transform: rotate(45deg);
  flex-shrink: 0;
}

/* ========== Ielādes ekrāns ========== */
#introScreen {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: #0d0b09;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 1.4s cubic-bezier(0.76, 0, 0.24, 1);
}
#introScreen.leaving {
  transform: translateY(-100%);
}
.intro-inner {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}
.intro-gem {
  color: #c9a96e;
  font-size: 1.2rem;
  opacity: 0;
  animation: introFade 0.6s ease 0.2s forwards;
}
.intro-title {
  display: flex;
  flex-wrap: nowrap;
  justify-content: center;
  gap: 0.3em;
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(1.3rem, 7.5vw, 5.5rem);
  font-weight: 300;
  letter-spacing: 0.12em;
  color: #f0ead8;
  line-height: 1.1;
  padding: 0 1rem;
  max-width: 96vw;
  white-space: nowrap;
}
.intro-word {
  display: inline-block;
}
.intro-sub {
  font-size: clamp(1rem, 2.5vw, 1.5rem);
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: rgba(240,234,216,0.5);
  opacity: 0;
  animation: introFade 0.8s ease 1.2s forwards;
}
@keyframes introWord {
  to { opacity: 1; transform: translateY(0); }
}
@keyframes letterSparkle {
  0%   { opacity: 0; transform: translateY(18px); }
  100% { opacity: 1; transform: translateY(0); }
}
.intro-letter {
  display: inline-block;
  opacity: 0;
  animation: letterSparkle 0.8s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
.intro-letter.space { display: inline-block; width: 0.4em; }
@keyframes introFade {
  to { opacity: 1; }
}

/* ========== Galerijas Lightbox ========== */
#lightbox {
  position: fixed;
  inset: 0;
  z-index: 9998;
  display: flex;
  align-items: center;
  justify-content: center;
}
#lightbox[hidden] { display: none; }
.lb-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(213, 222, 204, 0.97);
  animation: introFade 0.3s ease;
}
.lb-img-wrap {
  position: relative;
  z-index: 1;
  max-width: 90vw;
  max-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: lbImgIn 0.35s cubic-bezier(0.16,1,0.3,1);
}
@keyframes lbImgIn {
  from { opacity: 0; transform: scale(0.95); }
  to   { opacity: 1; transform: scale(1); }
}
#lbImg {
  max-width: 90vw;
  max-height: 90vh;
  object-fit: contain;
  border-radius: 2px;
  display: block;
}
.lb-close {
  position: fixed;
  top: 1.5rem;
  right: 1.5rem;
  z-index: 2;
  background: none;
  border: 1px solid rgba(255,255,255,0.2);
  color: rgba(255,255,255,0.8);
  width: 42px;
  height: 42px;
  border-radius: 50%;
  font-size: 1.5rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}
.lb-close:hover { border-color: #c9a96e; color: #c9a96e; }
.lb-arrow {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  background: none;
  border: 1px solid rgba(255,255,255,0.15);
  color: rgba(255,255,255,0.7);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  font-size: 2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}
.lb-arrow:hover { border-color: #c9a96e; color: #c9a96e; }
.lb-prev { left: 1.5rem; }
.lb-next { right: 1.5rem; }
.lb-counter {
  position: fixed;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  color: rgba(255,255,255,0.4);
}
@media (max-width: 600px) {
  .lb-prev { left: 0.5rem; }
  .lb-next { right: 0.5rem; }
}

/* ---- Laika prognoze — iPhone stils ---- */
.weather-strip {
  max-width: 520px;
  margin: 0 auto 2.5rem;
}
.weather-card {
  background: rgba(255,255,255,0.55);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(160,120,72,0.15);
  border-radius: 20px;
  padding: 1.2rem 1.4rem;
  box-shadow: 0 4px 32px rgba(0,0,0,0.06);
}
.weather-location {
  font-size: 0.65rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.8rem;
  opacity: 0.7;
}
.weather-days {
  display: flex;
  flex-direction: column;
}
.weather-day {
  display: grid;
  grid-template-columns: 3.2rem 1.8rem 1fr auto auto;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 0;
  border-bottom: 1px solid rgba(160,120,72,0.08);
}
.weather-day:last-child { border-bottom: none; }

.weather-day-name {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text);
  font-family: var(--sans);
  line-height: 1.3;
}
.weather-day-date {
  font-size: 0.62rem;
  color: var(--text-muted);
  opacity: 0.6;
  font-weight: 300;
}
.weather-day-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  opacity: 0.75;
}
.weather-rain-prob {
  font-size: 0.65rem;
  color: var(--text-muted);
  opacity: 0.5;
  font-variant-numeric: tabular-nums;
  text-align: center;
}
.weather-rain-prob.has-rain {
  color: #6a9ab5;
  opacity: 0.9;
}
.weather-day-temps {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.05rem;
}
.weather-tmax {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text);
  font-variant-numeric: tabular-nums;
}
.weather-tmin {
  font-size: 0.7rem;
  font-weight: 300;
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
}
.weather-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
}
.weather-dot--good { background: #7eb87e; }
.weather-dot--ok   { background: #d4a84b; }
.weather-dot--bad  { background: #c47272; }
.weather-day.today-weather .weather-day-name {
  color: var(--accent);
  font-weight: 700;
}
.weather-day.weekend-weather .weather-day-name {
  color: var(--text);
}
.weather-legend {
  display: flex;
  gap: 1rem;
  margin-top: 0.9rem;
  padding-top: 0.7rem;
  border-top: 1px solid rgba(160,120,72,0.1);
  flex-wrap: wrap;
  font-size: 0.62rem;
  color: var(--text-muted);
}
.weather-legend span { display: flex; align-items: center; gap: 0.25rem; }
.weather-loading {
  font-size: 0.82rem;
  color: var(--text-muted);
  padding: 0.5rem 0;
}
@media (max-width: 600px) {
  .weather-card { border-radius: 16px; padding: 1rem 1.1rem; }
}

/* ---- Aizkulises ---- */
/* ---- Notice board (paziņojumu dēlītis) ---- */
.notice-section { padding: 5rem 0; }
.notice-board-wrap {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 2rem;
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 4rem;
  align-items: start;
}
.notice-board-left { position: sticky; top: 6rem; }
.notice-board-title {
  font-family: var(--serif);
  font-size: 2.2rem;
  font-weight: 400;
  color: var(--text);
  margin: 0.4rem 0 0.75rem;
}
.notice-board-sub {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.7;
}
.notice-board {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.notice-pin {
  padding: 1.25rem 0 1.25rem 1.5rem;
  border-left: 2px solid var(--border);
  position: relative;
  transition: border-color 0.2s;
}
.notice-pin::before {
  content: "✦";
  position: absolute;
  left: -0.6em;
  top: 1.3rem;
  font-size: 0.6rem;
  color: var(--accent);
  background: var(--bg);
  padding: 2px 0;
}
.notice-pin:hover { border-color: var(--accent); }
.notice-date {
  font-size: 0.68rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  display: block;
  margin-bottom: 0.35rem;
}
.notice-title {
  font-family: var(--serif);
  font-size: 1.15rem;
  font-weight: 400;
  color: var(--text);
  margin: 0 0 0.4rem;
  line-height: 1.4;
}
.notice-body {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin: 0;
}
.notice-empty {
  color: var(--text-muted);
  font-size: 0.88rem;
  padding: 1rem 1.5rem;
  border-left: 2px solid var(--border);
}
@media (max-width: 720px) {
  .notice-board-wrap {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .notice-board-left { position: static; }
}

/* ---- Scroll reveal ---- */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.8s cubic-bezier(0.16,1,0.3,1), transform 0.8s cubic-bezier(0.16,1,0.3,1);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Sections ---------- */
.section {
  padding: clamp(4rem, 8vw, 7rem) clamp(1.5rem, 4vw, 4rem);
  max-width: 1500px;
  margin: 0 auto;
}
.section-alt {
  background: var(--bg-elev);
  max-width: none;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.section-alt > * {
  max-width: 1500px;
  margin-left: auto;
  margin-right: auto;
}
.section-head { text-align: center; max-width: 36rem; margin: 0 auto 3rem; }
.section-eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.25em;
  font-size: 0.72rem;
  color: var(--accent);
  margin-bottom: 0.75rem;
}
.section-lead {
  color: var(--text-muted);
  margin-top: 0.75rem;
}

/* ---------- Portfolio ---------- */
.portfolio-section {
  padding-top: 5rem !important;
}
.filter-bar {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0;
  margin-bottom: 3rem;
  border-bottom: 1px solid var(--border);
}
.filter-btn {
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  color: var(--text-muted);
  padding: 0.7rem 1.5rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  cursor: pointer;
  transition: color 0.18s, border-color 0.18s;
  font-family: var(--sans);
  margin-bottom: -1px;
}
.filter-btn:hover { color: var(--text); }
.filter-btn.active {
  color: var(--accent);
  border-bottom-color: var(--accent);
}
/* ---- Gallery: editorial grid ---- */
.gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.gallery-img {
  width: 100%;
  height: auto;
  display: block;
  pointer-events: none;
  user-select: none;
}

.gallery-item {
  overflow: hidden;
  cursor: pointer;
  position: relative;
  line-height: 0; /* novērš balto atstarpi zem attēla */
  transition: filter 0.55s ease, box-shadow 0.55s ease,
              transform 0.65s cubic-bezier(0.16, 1, 0.3, 1);
  filter: brightness(0.94) saturate(0.88);
  will-change: transform, filter;
}
.gallery-item:hover {
  filter: brightness(1.06) saturate(1.06);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.22);
  z-index: 2;
}

/* Aizkars — slīd augšup, atklājot bildi */
.gallery-curtain {
  position: absolute;
  inset: 0;
  background: var(--bg-elev);
  z-index: 4;
  transform-origin: top;
  transform: scaleY(1);
  transition: transform 1.0s cubic-bezier(0.76, 0, 0.24, 1);
  pointer-events: none;
}
.gallery-item.revealed .gallery-curtain {
  transform: scaleY(0);
  transform-origin: top;
}

/* Nosaukuma pārklājums */
.gallery-item::after {
  content: attr(data-label);
  position: absolute;
  inset: auto 0 0 0;
  padding: 3rem 1.25rem 1.1rem;
  background: linear-gradient(0deg, rgba(0,0,0,0.6), transparent);
  color: rgba(255,255,255,0.92);
  font-family: var(--serif);
  font-size: 1.05rem;
  font-style: italic;
  letter-spacing: 0.02em;
  opacity: 0;
  transition: opacity 0.3s;
  z-index: 3;
}
.gallery-item:hover::after { opacity: 1; }
.gallery-item.hidden { display: none; }

/* Video pārklājums */
.gallery-item.has-video { cursor: zoom-in; }
.gallery-item.has-video::before {
  content: "▶";
  position: absolute;
  top: 12px; right: 12px;
  background: rgba(0,0,0,0.55);
  color: white;
  width: 30px; height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center; justify-content: center;
  font-size: 0.7rem;
  z-index: 5;
  backdrop-filter: blur(4px);
  transition: transform 0.2s, background 0.2s;
}
.gallery-item.has-video:hover::before { transform: scale(1.1); background: var(--accent); color: #0a0a0a; }
.gallery-video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.35s ease;
  z-index: 1;
}
.gallery-item.has-video:hover .gallery-video { opacity: 1; }

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

/* ---------- Booking form ---------- */
.booking-section {
  max-width: 1200px;
}
.booking-header {
  text-align: center;
  margin-bottom: 3rem;
}
.booking-sub {
  color: var(--text-muted);
  margin-top: 0.5rem;
  font-size: 0.95rem;
  letter-spacing: 0.03em;
}
.booking-inner {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 2.5rem;
  align-items: start;
}
.booking-left {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.bf-block {
  padding: 1.75rem 0;
  border-bottom: 1px solid var(--border);
}
.bf-block:last-child { border-bottom: 0; }
.bf-block-head {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 1.25rem;
}
.bf-step {
  font-family: var(--serif);
  font-size: 0.72rem;
  color: var(--accent);
  letter-spacing: 0.15em;
  opacity: 0.7;
  min-width: 1.5rem;
}
.bf-label {
  font-family: var(--serif);
  font-size: 1.15rem;
  letter-spacing: 0.02em;
  color: var(--text);
}
.bf-label strong {
  color: var(--accent);
  font-family: var(--serif);
  font-size: 1.15rem;
}
.bf-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.bf-field {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  font-size: 0.8rem;
  color: var(--text-muted);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.bf-field input {
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 0.75rem 1rem;
  border-radius: var(--radius);
  font-family: var(--sans);
  font-size: 0.95rem;
  transition: border-color 0.18s;
}
.bf-field input:focus {
  outline: none;
  border-color: var(--accent);
}
/* date/time color fix */
.bf-field input[type="date"]::-webkit-calendar-picker-indicator,
.bf-field input[type="time"]::-webkit-calendar-picker-indicator {
  filter: invert(0.6);
  cursor: pointer;
}

/* Chips (duration) */
.bf-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}
.bf-chip {
  background: none;
  border: 1px solid var(--border);
  color: var(--text-muted);
  padding: 0.6rem 1.3rem;
  border-radius: 999px;
  font-size: 0.88rem;
  cursor: pointer;
  font-family: var(--sans);
  transition: all 0.18s;
}
.bf-chip:hover { border-color: var(--accent); color: var(--accent); }
.bf-chip.active {
  background: var(--accent-soft);
  border-color: var(--accent);
  color: var(--accent);
}

/* Cards (type / env) */
.bf-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
}
.bf-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.25rem 1rem;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  text-align: center;
  transition: all 0.18s;
}
.bf-card:hover {
  border-color: var(--border-strong);
  background: var(--bg-card-hover);
}
.bf-card.active {
  border-color: var(--accent);
  background: var(--accent-soft);
}
.bfc-icon { font-size: 1.6rem; line-height: 1; }
.bfc-name {
  font-family: var(--serif);
  font-size: 1rem;
  color: var(--text);
}
.bfc-desc {
  font-size: 0.72rem;
  color: var(--text-muted);
  letter-spacing: 0.02em;
}
.bf-card.active .bfc-name { color: var(--accent); }

/* Slider */
.bf-slider {
  width: 100%;
  -webkit-appearance: none;
  height: 3px;
  background: linear-gradient(to right, var(--accent) 0%, var(--accent) var(--pct, 0%), var(--border-strong) var(--pct, 0%));
  border-radius: 99px;
  outline: none;
  cursor: pointer;
  margin: 0.25rem 0;
}
.bf-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
  cursor: pointer;
}
.bf-slider::-moz-range-thumb {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--accent);
  border: none;
  cursor: pointer;
}
.bf-slider-labels {
  display: flex;
  justify-content: space-between;
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-top: 0.4rem;
}
.bf-slider-labels em { color: var(--accent); font-style: normal; }

/* Radio rows (anketa style) */
.bf-radios {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
.bf-radio {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.8rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  cursor: pointer;
  transition: all 0.15s;
  user-select: none;
}
.bf-radio:hover {
  border-color: var(--border-strong);
  background: var(--bg-card);
}
.bf-radio:has(input:checked) {
  border-color: var(--accent);
  background: var(--accent-soft);
}
.bf-radio input { display: none; }
.bf-radio-check {
  width: 17px;
  height: 17px;
  border-radius: 50%;
  border: 2px solid var(--border-strong);
  flex-shrink: 0;
  transition: all 0.15s;
  position: relative;
}
.bf-radio input:checked ~ .bf-radio-check {
  border-color: var(--accent);
  background: var(--accent);
}
.bf-radio input:checked ~ .bf-radio-check::after {
  content: "";
  position: absolute;
  inset: 50%;
  transform: translate(-50%, -50%);
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--bg);
}
.bf-radio-label {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}
.bf-radio-name {
  font-size: 0.92rem;
  color: var(--text);
  transition: color 0.15s;
}
.bf-radio input:checked ~ .bf-radio-label .bf-radio-name {
  color: var(--accent);
}
.bf-radio-hint {
  font-size: 0.72rem;
  color: var(--text-muted);
  letter-spacing: 0.01em;
}

/* Latvia map */
.lv-map-wrap {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.lv-map {
  width: 100%;
  display: block;
  padding: 0.5rem;
}
.lv-outline {
  fill: rgba(196, 174, 255, 0.07);
  stroke: rgba(196, 174, 255, 0.5);
  stroke-width: 1.2;
  stroke-linejoin: round;
  stroke-linecap: round;
}
.lv-city {
  cursor: pointer;
}
.lv-city circle {
  fill: rgba(196, 174, 255, 0.35);
  stroke: none;
  transition: all 0.15s;
  r: 3.5;
}
.lv-city:hover circle {
  fill: var(--accent);
  r: 5;
}
.lv-city.selected circle {
  fill: var(--accent);
  r: 6;
  filter: drop-shadow(0 0 5px rgba(196, 174, 255, 0.7));
}
.lv-city.home circle {
  fill: var(--accent);
  r: 5;
  filter: drop-shadow(0 0 4px rgba(196, 174, 255, 0.5));
}
.lv-city text {
  font-size: 7px;
  fill: rgba(196, 174, 255, 0.5);
  pointer-events: none;
  font-family: var(--sans);
}
.lv-city.selected text,
.lv-city.home text {
  fill: var(--accent);
  font-weight: 600;
}
/* Draggable pin */
.lv-pin { cursor: grab; }
.lv-pin:active { cursor: grabbing; }
.lv-pin-circle {
  fill: #ffffff;
  filter: drop-shadow(0 0 5px rgba(255,255,255,0.6));
}
.lv-pin-pulse {
  fill: none;
  stroke: rgba(255,255,255,0.5);
  stroke-width: 1;
  opacity: 0;
  animation: pinPulse 2.2s ease-out infinite;
}
@keyframes pinPulse {
  0%   { r: 7;  opacity: 0.6; }
  100% { r: 22; opacity: 0; }
}
.lv-home-dot {
  fill: rgba(255,255,255,0.15);
  pointer-events: none;
}
/* City reference dots */
.lv-city circle { r: 3; }
.lv-city text { font-size: 6.5px; }

/* Location text input */
.bf-input-text {
  width: 100%;
  background: var(--bg-card);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  color: var(--text);
  font-family: var(--sans);
  font-size: 0.88rem;
  padding: 0.75rem 1rem;
  transition: border-color 0.2s;
}
.bf-input-text:focus {
  outline: none;
  border-color: var(--accent);
}
.bf-input-text::placeholder { color: var(--text-muted); }
.bf-hint {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 0.5rem;
}

/* Idea textarea */
.bf-textarea {
  width: 100%;
  background: var(--bg-card);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  color: var(--text);
  font-family: var(--sans);
  font-size: 0.88rem;
  padding: 0.85rem 1rem;
  resize: vertical;
  min-height: 100px;
  line-height: 1.6;
  transition: border-color 0.2s;
}
.bf-textarea:focus {
  outline: none;
  border-color: var(--accent);
}
.bf-textarea::placeholder { color: var(--text-muted); }
.bf-optional {
  font-size: 0.72rem;
  color: var(--text-muted);
  font-weight: 400;
  letter-spacing: 0;
  margin-left: 0.4rem;
}

/* Meklēšanas josla virs kartes */
.lv-search-row {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 0.6rem;
}
.lv-search-input {
  flex: 1;
  background: var(--bg-card);
  border: 1px solid var(--border-strong);
  color: var(--text);
  padding: 0.6rem 0.9rem;
  border-radius: var(--radius);
  font-family: var(--sans);
  font-size: 0.88rem;
  transition: border-color 0.2s;
}
.lv-search-input:focus {
  outline: none;
  border-color: var(--accent);
}
.lv-search-input::placeholder { color: var(--text-muted); }
.lv-search-btn {
  padding: 0.6rem 1.1rem;
  background: var(--accent-soft);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  color: var(--accent);
  font-family: var(--sans);
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.18s, border-color 0.18s;
}
.lv-search-btn:hover { background: rgba(196,174,255,0.18); border-color: var(--accent); }
.lv-search-btn:disabled { opacity: 0.5; cursor: default; }
.lv-search-status {
  font-size: 0.78rem;
  padding: 0.35rem 0;
  color: var(--text-muted);
  margin-bottom: 0.4rem;
}
.lv-search-status.error { color: var(--error); }
.lv-search-status.success { color: var(--success); }

/* Leaflet karte */
.lv-leaflet-map {
  height: 320px;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border-strong);
  cursor: crosshair;
}
/* Override Leaflet popup / controls to match dark theme */
.leaflet-container {
  background: var(--bg-elev);
  font-family: var(--sans);
}
.leaflet-control-zoom a {
  background: var(--bg-card) !important;
  color: var(--text) !important;
  border-color: var(--border) !important;
}
.leaflet-control-zoom a:hover {
  background: var(--bg-elev) !important;
}
.leaflet-control-attribution {
  background: rgba(245,240,232,0.85) !important;
  color: var(--text-muted) !important;
  font-size: 0.65rem !important;
}
.leaflet-control-attribution a { color: var(--accent) !important; }
/* Pilsētu etiķetes kartē */
.lv-city-label {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  font-size: 10px !important;
  font-weight: 500 !important;
  color: #2a2a40 !important;
  font-family: var(--sans) !important;
  white-space: nowrap;
  padding: 0 !important;
}
.lv-city-label::before { display: none !important; }

.lv-map-info {
  padding: 0.55rem 1rem;
  font-size: 0.78rem;
  color: var(--text-muted);
  border-top: 1px solid var(--border);
  background: var(--bg-card);
}
.lv-map-hint {
  font-size: 0.72rem;
  color: var(--text-muted);
  opacity: 0.6;
  font-style: italic;
  margin-top: 0.6rem;
  padding: 0 0.2rem;
  line-height: 1.5;
}
.lv-map-zone-note {
  opacity: 1;
  font-style: normal;
  margin-top: 0.5rem;
  color: var(--accent);
  font-size: 0.73rem;
  letter-spacing: 0.03em;
  border-left: 2px solid var(--accent);
  padding-left: 0.6rem;
}

/* Select */
.bf-select {
  width: 100%;
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 0.75rem 1rem;
  border-radius: var(--radius);
  font-family: var(--sans);
  font-size: 0.95rem;
  cursor: pointer;
  transition: border-color 0.18s;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%238b82aa' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
}
.bf-select:focus { outline: none; border-color: var(--accent); }

.bf-transport-hint {
  margin-top: 0.6rem;
  font-size: 0.8rem;
  color: var(--text-muted);
  min-height: 1.2rem;
}

/* Price card (right column) */
.booking-right { position: sticky; top: 80px; }
.price-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
}
.price-card::before {
  content: "";
  display: block;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), transparent);
  margin: -1.75rem -1.75rem 1.5rem;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}
.pc-eyebrow {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--accent);
  margin-bottom: 1.25rem;
}
.pc-lines {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}
.pc-line {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}
.pc-line span:last-child {
  white-space: nowrap;
  color: var(--text);
}
.pc-divider {
  height: 1px;
  background: var(--border);
  margin: 0.75rem 0;
}
.pc-total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 1.5rem;
}
.pc-total span:first-child {
  font-size: 0.85rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.pc-total span:last-child {
  font-family: var(--serif);
  font-size: 2rem;
  color: var(--accent);
  font-weight: 400;
}
.pc-note {
  font-size: 0.72rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 1.25rem;
}
.btn-full { width: 100%; justify-content: center; }

@media (max-width: 900px) {
  .booking-inner { grid-template-columns: 1fr; }
  .booking-right { position: static; }
  .bf-cards { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 540px) {
  .bf-cards { grid-template-columns: 1fr; }
  .bf-row { grid-template-columns: 1fr; }
}

/* ---------- Services ---------- */
.services {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  max-width: 1100px;
  margin: 0 auto;
}
.service-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  padding: 2.25rem 1.75rem;
  border-radius: var(--radius);
  position: relative;
  display: flex;
  flex-direction: column;
}
.service-card--featured {
  border-color: var(--accent);
  background: linear-gradient(180deg, var(--accent-soft), var(--bg-card));
}
.service-card .badge {
  position: absolute;
  top: -10px;
  left: 1.5rem;
  background: var(--accent);
  color: #0a0a0a;
  padding: 0.2rem 0.7rem;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-radius: 99px;
}
.service-price {
  font-family: var(--serif);
  font-size: 2.25rem;
  color: var(--accent);
  margin: 0.75rem 0 1.25rem;
}
.service-card ul {
  list-style: none;
  margin-bottom: 2rem;
  flex: 1;
}
.service-card li {
  padding: 0.45rem 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.9rem;
  color: var(--text-muted);
}
.service-card li:last-child { border-bottom: 0; }
.service-card li::before { content: "— "; color: var(--accent); }

/* ---------- Calendar ---------- */
.calendar-wrap {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 2rem;
  max-width: 1000px;
  margin: 0 auto;
}
.calendar {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
}
.calendar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.25rem;
}
.cal-nav {
  background: none;
  border: 1px solid var(--border);
  color: var(--text);
  width: 32px;
  height: 32px;
  border-radius: var(--radius);
  cursor: pointer;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s;
}
.cal-nav:hover { border-color: var(--accent); color: var(--accent); }
.calendar-weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  text-align: center;
  font-size: 0.7rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.5rem;
}
.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
}
.cal-day {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.15s;
  position: relative;
  background: transparent;
  color: var(--text);
  font-family: var(--sans);
}
.cal-day:hover:not(:disabled):not(.busy) {
  background: var(--accent-soft);
  border-color: var(--accent);
}
.cal-day.empty {
  background: none;
  cursor: default;
  pointer-events: none;
}
.cal-day.past, .cal-day:disabled {
  color: var(--border-strong);
  cursor: not-allowed;
}
.cal-day.busy {
  color: var(--text-muted);
  background: var(--bg-elev);
  cursor: not-allowed;
  text-decoration: line-through;
}
.cal-day.today { font-weight: 600; color: var(--accent); }
.cal-day.selected {
  background: var(--accent);
  color: #0a0a0a;
  border-color: var(--accent);
  font-weight: 600;
}
.calendar-legend {
  display: flex;
  gap: 1.25rem;
  margin-top: 1.25rem;
  font-size: 0.8rem;
  color: var(--text-muted);
  align-items: center;
  flex-wrap: wrap;
}
.legend-dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 2px;
  margin-right: 0.3rem;
}
.legend-dot--free { background: var(--accent); }
.legend-dot--busy { background: var(--bg-elev); border: 1px solid var(--border); }
.legend-dot--past { background: var(--border-strong); }

.slots, .modal-slots {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
}
.slots h3 { margin-bottom: 1rem; }
.slot-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.5rem;
}
.slot {
  background: none;
  border: 1px solid var(--border);
  color: var(--text);
  padding: 0.6rem;
  border-radius: var(--radius);
  cursor: pointer;
  font-size: 0.9rem;
  transition: all 0.15s;
  font-family: var(--sans);
}
.slot:hover:not(:disabled) {
  border-color: var(--accent);
  color: var(--accent);
}
.slot:disabled {
  opacity: 0.35;
  cursor: not-allowed;
  text-decoration: line-through;
}
.slot.selected {
  background: var(--accent);
  color: #0a0a0a;
  border-color: var(--accent);
}

@media (max-width: 800px) {
  .calendar-wrap { grid-template-columns: 1fr; }
}

/* ========== Lielais pieraksta kalendārs ========== */
.cam-inline { font-size: 1.1em; }

.big-cal {
  max-width: 680px;
  margin: 0 auto 2rem;
  background: var(--bg-card);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  padding: 1.5rem 1.5rem 1.25rem;
}

.big-cal-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
}
.big-cal-month {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 1.5rem;
  letter-spacing: 0.01em;
  color: var(--text);
}
.big-cal-arrow {
  background: none;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  color: var(--text-muted);
  font-size: 1.1rem;
  width: 36px; height: 36px;
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s;
  display: flex; align-items: center; justify-content: center;
}
.big-cal-arrow:hover { border-color: var(--accent); color: var(--accent); }

.big-cal-dow {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  margin-bottom: 0.4rem;
}
.big-cal-dow span {
  text-align: center;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  padding: 0.25rem 0;
}

.big-cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 5px;
}

/* Bāzes šūna */
.bc-day {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 68px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: default;
  background: transparent;
  font-family: var(--sans);
  transition: background 0.15s, border-color 0.15s;
  padding: 0.2rem 0;
  gap: 2px;
}
.bc-num {
  font-size: 1rem;
  font-weight: 400;
  line-height: 1;
  color: var(--text);
}
.bc-cam {
  font-size: 1.05rem;
  line-height: 1;
}
.bc-day.bc-empty { background: none; border-color: transparent; }
.bc-day.bc-past .bc-num { color: var(--border-strong); }
.bc-day.bc-past { cursor: not-allowed; }
.bc-day.bc-busy .bc-num { color: var(--text-muted); text-decoration: line-through; }
.bc-day.bc-busy { cursor: not-allowed; }
.bc-day.bc-today .bc-num {
  font-weight: 700;
  color: var(--accent);
}
/* Diena ar pieejamiem laikiem — klikšķināma */
.bc-day.bc-has-slots {
  border-color: var(--border-strong);
  background: rgba(196,174,255,0.05);
  cursor: pointer;
}
.bc-day.bc-has-slots:hover {
  background: rgba(196,174,255,0.14);
  border-color: var(--accent);
}
/* Izvēlētā diena */
.bc-day.bc-selected {
  background: var(--accent);
  border-color: var(--accent);
}
.bc-day.bc-selected .bc-num { color: #0a0a0a; font-weight: 700; }
.bc-day.bc-selected .bc-cam { filter: saturate(0) brightness(0.3); }

/* Atlases josla zem kalendāra */
.cal-selection {
  max-width: 680px;
  margin: 0 auto 2.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  background: rgba(196,174,255,0.10);
  border: 1px solid var(--accent);
  border-radius: var(--radius-lg);
  padding: 1rem 1.25rem;
  flex-wrap: wrap;
}
.cal-sel-text {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.95rem;
}
.cal-sel-icon { font-size: 1.25rem; }

/* Laiku izvēles modāls */
.modal-time {
  max-width: 420px;
  width: 90vw;
  text-align: center;
}
.time-modal-eyebrow {
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.3rem;
}
.time-modal-date {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 1.6rem;
  margin-bottom: 1.5rem;
  color: var(--text);
}
.time-slots {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  justify-content: center;
  margin-bottom: 0.5rem;
}
.time-slot-btn {
  background: var(--bg-elev);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  color: var(--text);
  font-family: var(--sans);
  font-size: 1.1rem;
  font-weight: 500;
  padding: 0.75rem 1.5rem;
  cursor: pointer;
  letter-spacing: 0.04em;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}
.time-slot-btn:hover {
  background: rgba(196,174,255,0.15);
  border-color: var(--accent);
  color: var(--accent);
}
.time-slot-btn.taken {
  opacity: 0.35;
  cursor: not-allowed;
  text-decoration: line-through;
}
.time-modal-empty, .time-modal-taken {
  margin-top: 0.5rem;
  font-size: 0.88rem;
}

/* ---------- About ---------- */
.about {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 3rem;
  align-items: center;
  max-width: 1100px;
  margin: 0 auto;
}
.about-img {
  aspect-ratio: 3 / 4;
  background-image: url("photo-moon-twilight.jpg");
  background-size: cover;
  background-position: center;
  border-radius: var(--radius-lg);
  filter: grayscale(0.2);
}
.about-text p { margin: 1rem 0; color: var(--text-muted); }
.about-text .btn { margin-top: 1rem; }
@media (max-width: 800px) {
  .about { grid-template-columns: 1fr; }
}

/* ---------- Atsauksme ---------- */
.testimonial-section {
  padding: 6rem 2rem 7rem;
  background: var(--bg);
  text-align: center;
  position: relative;
}
.testimonial-section::before {
  content: "";
  position: absolute;
  top: 0; left: 50%; transform: translateX(-50%);
  width: 1px; height: 3rem;
  background: var(--accent);
  opacity: 0.3;
}

.testimonial-inner {
  max-width: 620px;
  margin: 0 auto;
  position: relative;
  background: linear-gradient(145deg, rgba(160,120,72,0.055) 0%, rgba(160,120,72,0.02) 100%);
  border: 1px solid rgba(160,120,72,0.18);
  border-radius: 2px;
  padding: 3.5rem 3rem 2.8rem;
}

.testimonial-quote-mark {
  font-family: var(--serif);
  font-size: 6rem;
  line-height: 0.5;
  color: var(--accent);
  opacity: 0.25;
  display: block;
  margin-bottom: 1.8rem;
  font-weight: 400;
}

.testimonial-text {
  font-family: var(--serif);
  font-size: clamp(0.98rem, 1.3vw, 1.13rem);
  font-weight: 300;
  font-style: italic;
  line-height: 2;
  color: var(--text-muted);
  margin: 0 0 2rem;
  padding: 0;
  border: none;
  text-align: left;
}

.testimonial-stars {
  display: flex;
  justify-content: center;
  gap: 0.3rem;
  font-size: 0.85rem;
  color: var(--accent);
  opacity: 0.75;
  margin-bottom: 0.8rem;
}

.testimonial-author {
  font-family: var(--sans);
  font-size: 0.68rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  opacity: 0.55;
}

@media (max-width: 600px) {
  .testimonial-inner { padding: 2.5rem 1.5rem 2rem; }
}

/* ---------- Footer ---------- */
.footer {
  background: var(--bg);
  border-top: 1px solid var(--border);
  padding: 3rem clamp(1rem, 4vw, 3rem) 2rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto 2rem;
}
.footer h4 {
  font-family: var(--sans);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--accent);
  margin-bottom: 0.75rem;
  font-weight: 500;
}
.footer-bottom {
  text-align: center;
  font-size: 0.8rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
  max-width: 1200px;
  margin: 0 auto;
}

/* ---------- Par mani ---------- */
.about-section {
  background: var(--bg);
  padding-bottom: 4rem;
  overflow: hidden;
}
.about-inner {
  max-width: 780px;
  margin: 0 auto;
  padding: 0 2rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  align-items: start;
}
.about-photo-col { position: sticky; top: 6rem; }
.about-photo-wrap {
  position: relative;
  display: inline-block;
  width: 100%;
}
.about-photo {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
  object-position: center top;
  display: block;
  border-radius: 1px;
  filter: sepia(10%) contrast(1.04) brightness(0.98);
  box-shadow: 12px 20px 60px rgba(0,0,0,0.13);
}
.about-photo-deco {
  position: absolute;
  inset: -14px -14px auto auto;
  width: 55%;
  height: 55%;
  border-top: 1px solid var(--accent);
  border-right: 1px solid var(--accent);
  opacity: 0.4;
  pointer-events: none;
}
.about-photo-deco2 {
  position: absolute;
  inset: auto auto -14px -14px;
  width: 40%;
  height: 40%;
  border-bottom: 1px solid var(--accent);
  border-left: 1px solid var(--accent);
  opacity: 0.25;
  pointer-events: none;
}
.about-text-col { padding-top: 0.25rem; }

/* Lielais atklājošais citāts */
.about-opener {
  font-family: var(--serif);
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 300;
  line-height: 1.3;
  color: var(--text);
  letter-spacing: -0.02em;
  margin-bottom: 3rem;
  position: relative;
  padding-top: 1.5rem;
}
.about-opener::before {
  content: "\201C";
  position: absolute;
  top: -2rem;
  left: -0.8rem;
  font-size: 10rem;
  line-height: 1;
  color: var(--accent);
  opacity: 0.12;
  font-family: var(--serif);
  pointer-events: none;
}
.about-opener::after {
  content: "";
  display: block;
  width: 3rem;
  height: 1px;
  background: var(--accent);
  margin-top: 1.5rem;
  opacity: 0.5;
}

.about-body {
  margin-top: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.about-body p {
  font-family: var(--serif);
  font-size: clamp(1.05rem, 1.3vw, 1.2rem);
  font-weight: 300;
  line-height: 2;
  color: var(--text-muted);
  padding: 0.6rem 0;
}

/* Akcentētā rinda — luxury pull quote */
.about-body p.about-highlight {
  font-size: clamp(1.2rem, 2vw, 1.65rem);
  font-weight: 300;
  color: var(--text);
  font-style: italic;
  line-height: 1.6;
  padding: 2.2rem 2rem 2.2rem 2rem;
  margin: 1.5rem -2rem;
  background: linear-gradient(135deg, rgba(160,120,72,0.06) 0%, rgba(160,120,72,0.03) 100%);
  border-left: 2px solid var(--accent);
  position: relative;
}
.about-body p.about-highlight::before {
  content: "✦";
  position: absolute;
  top: 1.4rem;
  left: -0.65rem;
  background: var(--bg);
  color: var(--accent);
  font-size: 0.7rem;
  padding: 0.2rem 0;
}

/* Noslēdzošais teksts */
.about-body p.about-closing {
  font-size: clamp(1.15rem, 1.8vw, 1.5rem);
  color: var(--text);
  font-style: italic;
  font-family: var(--serif);
  font-weight: 300;
  line-height: 1.6;
  letter-spacing: 0.01em;
  padding-top: 2rem;
  margin-top: 1rem;
  border-top: 1px solid var(--border);
}

.about-gem {
  color: var(--accent);
  opacity: 0.45;
  font-size: 0.75rem;
  letter-spacing: 0.4em;
  display: block;
  margin: 2rem 0 0.6rem;
}
.about-sig {
  margin-top: 0.8rem;
  font-family: var(--serif);
  font-size: 2rem;
  font-weight: 300;
  color: var(--accent);
  font-style: italic;
  letter-spacing: 0.06em;
  opacity: 0.9;
}
.about-tagline {
  margin-top: 1.5rem;
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-muted);
  opacity: 0.6;
}

/* Scroll reveal animācija */
.about-reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.9s ease, transform 0.9s cubic-bezier(0.16,1,0.3,1);
}
.about-reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 960px) {
  .about-inner { grid-template-columns: 1fr; gap: 2.5rem; }
  .about-photo-col { position: static; max-width: 340px; }
  .about-photo { aspect-ratio: 4/5; }
  .about-opener { font-size: clamp(1.4rem, 5vw, 2rem); }
}
@media (max-width: 600px) {
  .about-inner { padding: 0 1rem; }
  .about-photo-col { max-width: 100%; }
  .about-photo { aspect-ratio: 1/1; object-position: center 15%; }
  .about-opener::before { font-size: 5rem; }
}

/* ---------- FAQ ---------- */
.faq-section { padding-bottom: 4rem; }
.faq-list {
  max-width: 780px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.faq-item {
  border-bottom: 1px solid var(--border);
}
.faq-item:first-child { border-top: 1px solid var(--border); }
.faq-q {
  width: 100%;
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.4rem 0.25rem;
  text-align: left;
  font-family: var(--serif);
  font-size: clamp(1rem, 1.5vw, 1.2rem);
  font-weight: 400;
  color: var(--text);
  line-height: 1.3;
  transition: color 0.2s;
}
.faq-q:hover { color: var(--accent); }
.faq-icon {
  flex-shrink: 0;
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 50%;
  border: 1px solid var(--border-strong);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  color: var(--accent);
  transition: transform 0.35s cubic-bezier(0.34,1.56,0.64,1), background 0.2s, border-color 0.2s;
  line-height: 1;
}
.faq-item.open .faq-icon {
  transform: rotate(45deg);
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}
.faq-a-wrap {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.4s cubic-bezier(0.4,0,0.2,1);
}
.faq-item.open .faq-a-wrap {
  grid-template-rows: 1fr;
}
.faq-a-inner {
  overflow: hidden;
}
.faq-a {
  padding: 0 0.25rem 1.4rem;
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.75;
  max-width: 680px;
}
.faq-a strong { color: var(--text); font-weight: 500; }

/* ---------- Mūzikas poga — vinils ---------- */
.music-btn {
  position: fixed;
  bottom: 6rem;
  right: 1.5rem;
  z-index: 900;
  width: 3.4rem;
  height: 3.4rem;
  border-radius: 50%;
  border: none;
  background: transparent;
  cursor: pointer;
  padding: 0;
  box-shadow: 0 4px 20px rgba(0,0,0,0.25);
  transition: box-shadow 0.3s ease;
}
.music-btn:hover {
  box-shadow: 0 6px 28px rgba(0,0,0,0.35);
}

/* Vinila disks */
.vinyl-disc {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background:
    radial-gradient(ellipse 30% 8% at 50% 18%, rgba(255,255,255,0.18) 0%, transparent 100%),
    radial-gradient(circle at center,
    #111 0% 7%,
    var(--accent) 7% 32%,
    #1a1814 32% 35%,
    #222 35% 40%,
    #1a1814 40% 46%,
    #222 46% 52%,
    #1a1814 52% 58%,
    #222 58% 65%,
    #1a1814 65% 72%,
    #222 72% 80%,
    #1a1814 80% 88%,
    #222 88% 100%
  );
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.4s ease;
}

/* Griešanās animācija */
@keyframes vinylSpin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}
.music-btn:hover .vinyl-disc {
  animation: vinylSpin 8s linear infinite;
}
.music-btn.playing .vinyl-disc {
  animation: vinylSpin 3s linear infinite;
}

/* Play ikona centrā */
.vinyl-play {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.7);
  margin-left: 2px;
  transition: opacity 0.2s;
  user-select: none;
}
.music-btn.playing .vinyl-play {
  opacity: 0;
}

/* Redzams punktiņš uz vinila — parāda griešanos */
.vinyl-disc::after {
  content: "";
  position: absolute;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: rgba(255,255,255,0.6);
  top: 18%;
  left: 50%;
  transform: translateX(-50%);
  pointer-events: none;
}
.vinyl-disc {
  position: relative;
}

/* Notiņas kas izlido no plates */
.music-note {
  position: fixed;
  z-index: 901;
  font-size: 1.6rem;
  color: #1a1a1a;
  pointer-events: none;
  user-select: none;
  opacity: 0;
  animation: noteFloat 2.4s ease-out forwards;
}
@keyframes noteFloat {
  0%   { opacity: 0;   transform: translate(0, 0)      scale(0.6); }
  15%  { opacity: 0.9; transform: translate(0, -10px)  scale(1);   }
  100% { opacity: 0;   transform: translate(var(--nx), var(--ny)) scale(0.7); }
}

@media (max-width: 600px) {
  .music-btn { bottom: 5rem; right: 1.25rem; width: 3rem; height: 3rem; }
}

/* ---------- Instagram ātrās saziņas poga ---------- */
.wa-btn {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 90;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: #fff;
  border-radius: 50px;
  padding: 0.75rem 1.1rem 0.75rem 0.9rem;
  text-decoration: none;
  font-family: var(--sans);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  transition: transform 0.25s cubic-bezier(0.34,1.56,0.64,1), box-shadow 0.25s ease, max-width 0.4s cubic-bezier(0.34,1.56,0.64,1);
  overflow: hidden;
  max-width: 3.2rem;
  white-space: nowrap;
}
.ig-btn {
  background: linear-gradient(135deg, #f58529 0%, #dd2a7b 50%, #8134af 100%);
  box-shadow: 0 4px 20px rgba(221,42,123,0.35), 0 2px 8px rgba(0,0,0,0.12);
}
.ig-btn:hover {
  transform: scale(1.06);
  box-shadow: 0 6px 28px rgba(221,42,123,0.45), 0 3px 12px rgba(0,0,0,0.15);
  max-width: 14rem;
}
.wa-btn svg {
  flex-shrink: 0;
  width: 1.5rem;
  height: 1.5rem;
}
.wa-btn-label {
  opacity: 0;
  transform: translateX(-6px);
  transition: opacity 0.25s ease 0.1s, transform 0.25s ease 0.1s;
  pointer-events: none;
}
.wa-btn:hover .wa-btn-label {
  opacity: 1;
  transform: translateX(0);
}
@media (max-width: 600px) {
  .wa-btn { bottom: 1.25rem; right: 1.25rem; padding: 0.7rem; max-width: 3rem; }
  .wa-btn:hover { max-width: 3rem; }
  .wa-btn-label { display: none; }
}

/* ---------- Modal ---------- */
.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
.modal.open { display: flex; }
.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(6px);
  animation: fadeIn 0.2s;
}
.modal-panel {
  position: relative;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 720px;
  max-height: 90vh;
  overflow-y: auto;
  padding: clamp(1.5rem, 4vw, 2.5rem);
  animation: slideUp 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: 1px solid var(--border);
  color: var(--text-muted);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 1.4rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}
.modal-close:hover { color: var(--text); border-color: var(--accent); }

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ---------- Stepper ---------- */
.stepper {
  display: flex;
  gap: 0.25rem;
  margin-bottom: 2rem;
  overflow-x: auto;
  padding-bottom: 0.5rem;
}
.step {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.7rem;
  font-size: 0.78rem;
  color: var(--text-muted);
  border-bottom: 2px solid var(--border);
  white-space: nowrap;
  flex: 1;
  min-width: max-content;
}
.step span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--border);
  font-size: 0.72rem;
  font-weight: 600;
  font-family: var(--sans);
}
.step em { font-style: normal; font-size: 0.8rem; }
.step.active {
  color: var(--accent);
  border-bottom-color: var(--accent);
}
.step.active span {
  background: var(--accent);
  color: #0a0a0a;
}
.step.done {
  color: var(--text);
  border-bottom-color: var(--success);
}
.step.done span {
  background: var(--success);
  color: #0a0a0a;
}

/* ---------- Step panes ---------- */
.step-pane { display: none; }
.step-pane.active { display: block; animation: fadeIn 0.25s; }
.step-pane h2 { margin-bottom: 0.5rem; }
.step-pane > .muted { margin-bottom: 1.5rem; }

.modal-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 2rem;
  gap: 1rem;
}
.modal-actions.center { justify-content: center; }

.modal-calendar {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 1rem;
  margin: 1.5rem 0;
}
.modal-calendar .calendar { padding: 1rem; }
@media (max-width: 600px) {
  .modal-calendar { grid-template-columns: 1fr; }
}

/* ---------- Form ---------- */
.field-block { margin-bottom: 1.75rem; }
.field-hint {
  font-size: 0.75rem;
  color: var(--text-muted);
  opacity: 0.7;
  font-style: italic;
  margin: -0.2rem 0 0.75rem;
}
.required-star { color: var(--accent); font-size: 0.65rem; vertical-align: super; }
.field-label {
  font-size: 0.85rem;
  color: var(--text);
  margin-bottom: 0.6rem;
  font-weight: 500;
}
/* Contact hint in step 08 */
.bf-contact-hint {
  font-size: 0.83rem;
  color: var(--text-muted);
  font-style: italic;
  margin-bottom: 1rem;
}

/* Modal summary rows */
.modal-summary-rows {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-size: 0.9rem;
  margin-top: 0.5rem;
}
.modal-summary-rows .muted {
  min-width: 90px;
  display: inline-block;
  font-size: 0.8rem;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.form-grid .full { grid-column: span 2; }
.form-grid label,
.field-block label {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  font-size: 0.82rem;
  color: var(--text-muted);
}
input[type="text"], input[type="email"], input[type="tel"], select, textarea {
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 0.7rem 0.9rem;
  border-radius: var(--radius);
  font-family: var(--sans);
  font-size: 0.92rem;
  transition: border-color 0.15s;
}
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--accent);
}
textarea { resize: vertical; }
@media (max-width: 540px) {
  .form-grid { grid-template-columns: 1fr; }
  .form-grid .full { grid-column: span 1; }
}

.form-error {
  background: rgba(248, 113, 113, 0.1);
  border: 1px solid rgba(248, 113, 113, 0.3);
  color: var(--error);
  padding: 0.7rem 1rem;
  border-radius: var(--radius);
  font-size: 0.85rem;
  margin-top: 1rem;
}

/* ---------- Radio cards (duration) ---------- */
.radio-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 0.6rem;
}
.radio-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.9rem;
  cursor: pointer;
  text-align: center;
  transition: all 0.15s;
}
.radio-card input { position: absolute; opacity: 0; pointer-events: none; }
.radio-card:hover:not(.disabled) {
  border-color: var(--border-strong);
  background: var(--bg-card-hover);
}
.radio-card.selected {
  border-color: var(--accent);
  background: var(--accent-soft);
}
.radio-card.disabled {
  opacity: 0.4;
  cursor: not-allowed;
}
.radio-card .rc-title {
  font-family: var(--serif);
  font-size: 1.2rem;
  display: block;
  margin-bottom: 0.2rem;
}
.radio-card .rc-meta {
  font-size: 0.75rem;
  color: var(--text-muted);
  display: block;
}
.radio-card .rc-price {
  font-size: 0.78rem;
  color: var(--accent);
  margin-top: 0.3rem;
  display: block;
  font-weight: 500;
}

/* ---------- Theme chips ---------- */
.chip-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}
.chip {
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-muted);
  padding: 0.5rem 0.95rem;
  border-radius: 999px;
  font-size: 0.85rem;
  cursor: pointer;
  font-family: var(--sans);
  transition: all 0.15s;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}
.chip:hover:not(.disabled) {
  color: var(--text);
  border-color: var(--border-strong);
}
.chip.selected {
  background: var(--accent);
  color: #0a0a0a;
  border-color: var(--accent);
}
.chip.selected::before { content: "✓"; font-weight: 600; }
.chip.disabled {
  opacity: 0.35;
  cursor: not-allowed;
  text-decoration: line-through;
}
.chip-tag {
  display: inline-block;
  background: rgba(251, 191, 36, 0.15);
  color: var(--warning);
  font-size: 0.65rem;
  padding: 0.05rem 0.4rem;
  border-radius: 99px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-left: 0.3rem;
}
.theme-hint {
  margin-top: 0.6rem;
  font-size: 0.78rem;
}

.price-running {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius);
  padding: 0.85rem 1.1rem;
  margin-bottom: 1.75rem;
}
.price-running strong {
  font-family: var(--serif);
  font-size: 1.5rem;
  color: var(--accent);
  font-weight: 500;
}

/* ---------- OTP input ---------- */
.otp-input {
  display: flex;
  gap: 0.5rem;
  margin: 1.5rem 0;
  justify-content: center;
}
.otp-input input {
  width: 3rem;
  height: 3.4rem;
  text-align: center;
  font-size: 1.4rem;
  font-family: var(--serif);
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: var(--radius);
}
.otp-input input:focus { border-color: var(--accent); }
.otp-input input.filled { border-color: var(--accent); background: var(--accent-soft); }

.demo-hint {
  background: rgba(201, 169, 97, 0.08);
  border: 1px dashed var(--accent);
  border-radius: var(--radius);
  padding: 0.85rem 1rem;
  font-size: 0.85rem;
  margin: 1rem 0;
  color: var(--text-muted);
}
.demo-hint strong {
  color: var(--accent);
  font-family: var(--serif);
  font-size: 1.2rem;
  letter-spacing: 0.15em;
  margin: 0 0.2rem;
}
.demo-tag {
  background: var(--accent);
  color: #0a0a0a;
  font-size: 0.65rem;
  padding: 0.1rem 0.5rem;
  border-radius: 99px;
  font-weight: 600;
  letter-spacing: 0.1em;
  margin-right: 0.5rem;
}
.demo-hint small { display: block; margin-top: 0.3rem; opacity: 0.7; }

.resend { font-size: 0.8rem; }
.resend a { color: var(--accent); text-decoration: none; }
.resend a:hover { text-decoration: underline; }

/* ---------- Summary ---------- */
.summary {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  margin: 1.25rem 0;
}
.summary > div {
  display: flex;
  justify-content: space-between;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.9rem;
}
.summary > div:last-child { border-bottom: 0; }
.summary-total {
  font-size: 1.05rem !important;
  padding-top: 0.85rem !important;
  margin-top: 0.25rem;
  border-top: 1px solid var(--border-strong) !important;
}
.summary-total strong {
  font-family: var(--serif);
  font-size: 1.3rem;
  color: var(--accent);
}

/* ---------- Policy ---------- */
.policy { margin: 1rem 0; }
.check {
  display: flex !important;
  flex-direction: row !important;
  gap: 0.6rem !important;
  align-items: flex-start;
  font-size: 0.85rem;
  color: var(--text-muted);
  cursor: pointer;
}
.check input[type="checkbox"] { margin-top: 0.2rem; accent-color: var(--accent); }
.check a { color: var(--accent); }

/* ---------- Success ---------- */
.success-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--success);
  color: #0a0a0a;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  font-weight: 600;
  margin: 0 auto 1.25rem;
  animation: pop 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes pop {
  from { transform: scale(0.6); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}
.step-pane[data-pane="6"] { text-align: center; }
.step-pane[data-pane="6"] .summary { text-align: left; }

/* ---------- Blog ---------- */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
}
.blog-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all 0.2s;
}
.blog-card:hover {
  transform: translateY(-3px);
  border-color: var(--border-strong);
}
.blog-img {
  aspect-ratio: 16 / 10;
  background-size: cover;
  background-position: center;
  filter: grayscale(0.1);
}
.blog-body { padding: 1.25rem 1.25rem 1.5rem; flex: 1; display: flex; flex-direction: column; }
.blog-meta {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
  margin-bottom: 0.5rem;
}
.blog-card h3 { font-size: 1.25rem; margin-bottom: 0.6rem; }
.blog-body > p { color: var(--text-muted); font-size: 0.92rem; flex: 1; margin-bottom: 1rem; }
.blog-link {
  color: var(--accent);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 500;
}
.blog-link:hover { text-decoration: underline; }

/* ---------- Socials ---------- */
.socials {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.socials a {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.92rem;
  transition: color 0.15s;
}
.socials a:hover { color: var(--accent); }
.socials svg { flex-shrink: 0; }

/* ---------- Location map ---------- */
.loc-map {
  height: 280px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  overflow: hidden;
  background: var(--bg-card);
  z-index: 1;
}
.loc-map .leaflet-control-attribution {
  background: rgba(14, 14, 16, 0.7);
  color: var(--text-muted);
}
.loc-map .leaflet-control-attribution a { color: var(--accent); }
.loc-map .leaflet-tile-pane { filter: brightness(0.8) saturate(0.6) hue-rotate(190deg); }
.loc-info {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin-top: 0.85rem;
  padding: 0.6rem 0.9rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.85rem;
  flex-wrap: wrap;
}
.loc-info > div {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}
.loc-info .muted { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.08em; }
.loc-info strong {
  font-family: var(--serif);
  font-size: 1.1rem;
  color: var(--accent);
  font-weight: 500;
}
.loc-hint { font-size: 0.78rem; margin-top: 0.5rem; }
.map-pin {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 0.85rem;
  box-shadow: 0 0 0 3px rgba(0,0,0,0.5);
}
.map-pin--studio {
  background: var(--accent);
  color: #0a0a0a;
}
.map-pin--user {
  background: var(--success);
  width: 22px;
  height: 22px;
  box-shadow: 0 0 0 4px rgba(74, 222, 128, 0.3), 0 0 0 2px rgba(0,0,0,0.5);
  animation: pulse 1.4s ease-out infinite;
}
@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.15); }
}

.btn-link {
  background: none;
  border: 0;
  color: var(--accent);
  font-size: 0.82rem;
  cursor: pointer;
  font-family: var(--sans);
  margin-left: auto;
  text-decoration: underline;
}
.btn-link:hover { color: var(--accent-hover); }

/* ---------- Price breakdown extension ---------- */
.price-breakdown {
  display: block;
  font-size: 0.78rem;
  margin-top: 0.2rem;
}
.deposit-preview {
  text-align: right;
}
.deposit-preview .muted {
  display: block;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.deposit-preview strong {
  font-family: var(--serif);
  font-size: 1.4rem;
  color: var(--accent);
  font-weight: 500;
}

/* ---------- Express checkout (Apple/Google Pay) ---------- */
.express-checkout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.6rem;
  margin: 1rem 0 0.5rem;
}
.pay-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  height: 48px;
  border-radius: 6px;
  border: 1px solid #000;
  font-family: -apple-system, "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
  font-weight: 500;
  font-size: 1.05rem;
  cursor: pointer;
  transition: all 0.15s;
  letter-spacing: 0.01em;
}
.pay-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
.pay-btn:not(:disabled):hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.4);
}
.pay-btn--apple {
  background: #000;
  color: #fff;
  border-color: #000;
}
.pay-btn--apple svg {
  margin-bottom: 2px;
}
.pay-btn--google {
  background: #fff;
  color: #3c4043;
  border-color: #dadce0;
  font-family: "Roboto", -apple-system, system-ui, sans-serif;
}
.gpay-logo { font-weight: 500; font-size: 1rem; }
.g-blue   { color: #4285F4; }
.g-red    { color: #EA4335; }
.g-yellow { color: #FBBC05; }
.g-green  { color: #34A853; }

@media (max-width: 480px) {
  .express-checkout { grid-template-columns: 1fr; }
}

/* ---------- Divider text ---------- */
.divider-text {
  display: flex;
  align-items: center;
  margin: 1.25rem 0 1rem;
  color: var(--text-muted);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
}
.divider-text::before,
.divider-text::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--border);
}
.divider-text span { padding: 0 1rem; }

/* ---------- Modal price-running upgrade ---------- */
.price-running {
  flex-direction: row;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
}
.price-running > div:first-child {
  display: flex;
  flex-direction: column;
}
.price-running > div:first-child > strong {
  font-family: var(--serif);
  font-size: 1.6rem;
  color: var(--accent);
  font-weight: 500;
}
