/* ========================================================================
   Golden Crew — стилевая система приложения
   Наследует визуальный язык лендинга: золото, премиальная типографика,
   мягкие тени, скруглённые карточки. Mobile-first (max-width 480 центром).
   ======================================================================== */

:root {
  --bg: #f5f5f7;
  --bg-2: #ececee;
  --surface: #ffffff;
  --ink: #0e1216;
  --ink-deep: #050709;
  --ink-soft: #585c63;
  --ink-muted: #8b8e94;
  --gold: #c9a35c;
  --gold-deep: #a08344;
  --gold-soft: #ead8af;
  --accent: #1d3557;
  --accent-deep: #142639;
  --accent-soft: #d6dee8;
  --rule: rgba(14, 18, 22, 0.08);
  --rule-strong: rgba(14, 18, 22, 0.14);
  --shadow-soft: 0 4px 16px rgba(14, 18, 22, 0.04);
  --shadow-card: 0 8px 30px rgba(14, 18, 22, 0.08);
  --shadow-pop: 0 20px 50px rgba(0, 0, 0, 0.18);
  --radius-card: 20px;
  --radius-pill: 999px;
  --success: #2a9d57;
  --danger: #c8413c;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html, body { height: 100%; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  font-weight: 400;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
input, select, textarea { font: inherit; color: inherit; }

/* центрируем под десктоп — выглядит как мобильное приложение */
.app {
  max-width: 480px;
  min-height: 100vh;
  margin: 0 auto;
  background: var(--bg);
  position: relative;
  padding-bottom: 24px;
}

/* ── Шапка ──────────────────────────────────────────────────────────────── */
.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(245, 245, 247, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  padding: 14px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--rule);
}

.brand {
  font-family: 'Pinyon Script', cursive;
  font-size: 30px;
  line-height: 1;
  color: var(--ink);
  letter-spacing: 0.01em;
}

.brand-sub {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 10px;
  color: var(--ink-muted);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-top: 2px;
  display: block;
}

.back-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  color: var(--ink-soft);
  padding: 8px 0;
}

.back-btn:active { color: var(--ink); }

/* ── Hero блок «здесь и сейчас» ─────────────────────────────────────────── */
.hero-strip {
  padding: 22px 22px 14px;
}

.hero-eyebrow {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-deep);
  font-weight: 600;
  margin-bottom: 10px;
}

.hero-title {
  font-size: 28px;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: var(--ink);
}

.hero-title .accent {
  font-family: 'Pinyon Script', cursive;
  color: var(--gold);
  font-weight: 400;
  font-size: 1.15em;
  letter-spacing: 0;
}

.hero-sub {
  font-size: 14px;
  color: var(--ink-soft);
  margin-top: 10px;
}

/* ── Карта ──────────────────────────────────────────────────────────────── */
.map-shell {
  margin: 14px 22px 18px;
  border-radius: var(--radius-card);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  border: 1px solid var(--rule);
  height: 240px;
  position: relative;
}

#map { width: 100%; height: 100%; }

/* кастомный маркер причала */
.marina-pin {
  background: var(--gold);
  color: white;
  border: 2px solid white;
  border-radius: 50%;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 700;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25);
}

/* ── Секция списка ──────────────────────────────────────────────────────── */
.section-head-app {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 4px 22px 14px;
}

.section-title-app {
  font-size: 20px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.01em;
}

.section-meta {
  font-size: 12px;
  color: var(--ink-muted);
}

/* ── Карточка катера ────────────────────────────────────────────────────── */
.boat-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 0 22px;
}

.boat-card {
  background: var(--surface);
  border-radius: var(--radius-card);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  display: block;
  position: relative;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.boat-card:active { transform: scale(0.985); box-shadow: var(--shadow-card); }
.boat-card.is-busy { opacity: 0.55; pointer-events: none; }

.boat-card-img {
  aspect-ratio: 16 / 10;
  background: #c4b8a0 center/cover no-repeat;
  position: relative;
}

.boat-tag {
  position: absolute;
  top: 12px; left: 12px;
  background: rgba(255, 255, 255, 0.95);
  color: var(--ink);
  font-size: 10px;
  font-weight: 500;
  padding: 6px 11px;
  border-radius: 999px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.boat-rating-pill {
  position: absolute;
  top: 12px; right: 12px;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(10px);
  color: white;
  font-size: 11px;
  padding: 5px 10px;
  border-radius: 999px;
  font-weight: 500;
}

.boat-status-pill {
  position: absolute;
  bottom: 12px; left: 12px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 5px 10px;
  border-radius: 999px;
  background: var(--success);
  color: white;
}
.boat-status-pill.is-busy { background: var(--ink-muted); }

.boat-body { padding: 16px 18px 18px; }

.boat-name {
  font-size: 19px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.01em;
  margin-bottom: 4px;
}

.boat-meta {
  font-size: 13px;
  color: var(--ink-soft);
  margin-bottom: 12px;
}

.boat-features {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-bottom: 14px;
}

.feat {
  font-size: 11px;
  color: var(--ink-soft);
  border: 1px solid var(--rule);
  padding: 4px 9px;
  border-radius: 999px;
}

.boat-bottom {
  padding-top: 14px;
  border-top: 1px solid var(--rule);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.boat-price {
  font-size: 17px;
  font-weight: 600;
  color: var(--ink);
}

.boat-price small {
  font-size: 12px;
  font-weight: 400;
  color: var(--ink-muted);
  margin-left: 2px;
}

.boat-cta-mini {
  font-size: 13px;
  font-weight: 500;
  color: var(--accent);
}

/* ── Детальный экран катера ─────────────────────────────────────────────── */
.boat-hero {
  height: 320px;
  background: #c4b8a0 center/cover no-repeat;
  position: relative;
}

.boat-hero::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0) 45%, rgba(0,0,0,0.65) 100%);
}

.boat-hero-back {
  position: absolute;
  top: 16px; left: 16px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  border-radius: 999px;
  padding: 9px 14px;
  font-size: 13px;
  color: var(--ink);
  z-index: 5;
  box-shadow: var(--shadow-soft);
}

.boat-hero-bottom {
  position: absolute;
  bottom: 38px; left: 22px; right: 22px;
  z-index: 5;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  color: white;
}

.boat-hero-name {
  font-size: 28px;
  font-weight: 600;
  letter-spacing: -0.015em;
  margin-bottom: 6px;
  line-height: 1.15;
}

.boat-hero-meta { font-size: 13px; opacity: 0.88; }

.boat-detail {
  background: var(--surface);
  border-radius: var(--radius-card) var(--radius-card) 0 0;
  margin-top: -22px;
  position: relative;
  padding: 28px 22px 120px;
  box-shadow: 0 -8px 24px rgba(0,0,0,0.04);
}

.boat-detail h3 {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-soft);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin: 22px 0 10px;
}
.boat-detail h3:first-child { margin-top: 0; }

.boat-description {
  font-size: 15px;
  color: var(--ink);
  line-height: 1.6;
}

.spec-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.spec {
  background: var(--bg-2);
  padding: 12px 14px;
  border-radius: 12px;
}

.spec-label {
  font-size: 11px;
  color: var(--ink-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.spec-value {
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  margin-top: 2px;
}

/* ── Bottom-bar (фиксированный CTA) ─────────────────────────────────────── */
.bottombar {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 60;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(14px);
  border-top: 1px solid var(--rule);
  padding: 14px 22px calc(14px + env(safe-area-inset-bottom));
}

.bottombar-inner {
  max-width: 480px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 14px;
}

.bottombar-price {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.bottombar-price-amount {
  font-size: 19px;
  font-weight: 600;
  color: var(--ink);
}

.bottombar-price-label {
  font-size: 11px;
  color: var(--ink-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* ── Кнопки ─────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 22px;
  border-radius: var(--radius-pill);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.01em;
  transition: background 0.25s, transform 0.15s, opacity 0.2s;
  white-space: nowrap;
}

.btn:active { transform: scale(0.97); }
.btn:disabled { opacity: 0.45; cursor: not-allowed; }

.btn-primary { background: var(--ink); color: white; }
.btn-primary:hover:not(:disabled) { background: var(--ink-deep); }

.btn-gold { background: var(--accent); color: white; }
.btn-gold:hover:not(:disabled) { background: var(--accent-deep); }

.btn-block { width: 100%; }

/* ── Формы ──────────────────────────────────────────────────────────────── */
.form-screen {
  padding: 22px 22px 140px;
}

.form-title {
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -0.015em;
  margin-bottom: 6px;
}

.form-subtitle {
  font-size: 14px;
  color: var(--ink-soft);
  margin-bottom: 24px;
}

.form-group { margin-bottom: 16px; }

.form-label {
  display: block;
  font-size: 12px;
  font-weight: 500;
  color: var(--ink-soft);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.form-input,
.form-select {
  width: 100%;
  padding: 14px 16px;
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: 12px;
  font-size: 15px;
  color: var(--ink);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.form-input:focus,
.form-select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(29, 53, 87, 0.16);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.summary-card {
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: var(--radius-card);
  padding: 18px 20px;
  margin-bottom: 22px;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  font-size: 14px;
  color: var(--ink-soft);
}

.summary-row + .summary-row { border-top: 1px solid var(--rule); }

.summary-row strong { color: var(--ink); font-weight: 600; }

.summary-total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding-top: 14px;
  margin-top: 8px;
  border-top: 1px solid var(--rule-strong);
}

.summary-total-label {
  font-size: 13px;
  color: var(--ink-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.summary-total-amount {
  font-size: 26px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.02em;
}

/* ── Таймер на странице оплаты ──────────────────────────────────────────── */
.lock-banner {
  background: linear-gradient(135deg, var(--ink) 0%, var(--ink-deep) 100%);
  color: white;
  border-radius: var(--radius-card);
  padding: 16px 18px;
  margin-bottom: 22px;
  display: flex;
  align-items: center;
  gap: 14px;
}

.lock-banner-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(201, 163, 92, 0.18);
  color: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.lock-banner-text { flex: 1; font-size: 13px; line-height: 1.4; opacity: 0.92; }

.lock-banner-timer {
  font-size: 22px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.01em;
  color: var(--gold-soft);
}

.lock-banner.is-warn .lock-banner-timer { color: #ffb6a9; }
.lock-banner.is-expired { background: var(--danger); }

/* ── Confirmation ───────────────────────────────────────────────────────── */
.confirm-screen { padding: 28px 22px 60px; text-align: center; }

.confirm-check {
  width: 84px;
  height: 84px;
  border-radius: 50%;
  background: var(--gold-soft);
  color: var(--gold-deep);
  margin: 16px auto 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 12px 30px rgba(201, 163, 92, 0.25);
}

.confirm-title {
  font-size: 26px;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 6px;
}

.confirm-sub { font-size: 14px; color: var(--ink-soft); margin-bottom: 24px; }

.code-card {
  background: var(--surface);
  border: 1px dashed var(--gold);
  border-radius: var(--radius-card);
  padding: 22px;
  margin-bottom: 22px;
}

.code-label {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: 8px;
}

.code-value {
  font-size: 36px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

.confirm-summary {
  background: var(--surface);
  border-radius: var(--radius-card);
  padding: 18px 20px;
  text-align: left;
  border: 1px solid var(--rule);
  margin-bottom: 18px;
}

/* ── Утилитарное ────────────────────────────────────────────────────────── */
.muted { color: var(--ink-muted); }
.strong { font-weight: 600; color: var(--ink); }

.spinner {
  width: 18px; height: 18px;
  border: 2px solid currentColor;
  border-top-color: transparent;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  display: inline-block;
}

@keyframes spin { to { transform: rotate(360deg); } }

.error-banner {
  background: #fdecea;
  color: var(--danger);
  border-radius: 12px;
  padding: 12px 14px;
  font-size: 13px;
  margin-bottom: 14px;
}

.empty-state {
  text-align: center;
  padding: 40px 22px;
  color: var(--ink-muted);
  font-size: 14px;
}

/* iPhone-safe нижний отступ для контента под bottombar */
.has-bottombar { padding-bottom: 110px; }

/* ========================================================================
   BOTTOM NAVIGATION (главная навигация приложения)
   ======================================================================== */
.app.with-tabbar { padding-bottom: calc(80px + env(safe-area-inset-bottom)); }

.tabbar {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 70;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid var(--rule);
  padding-bottom: env(safe-area-inset-bottom);
}

.tabbar-inner {
  max-width: 480px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

.tab {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 10px 0 8px;
  color: var(--ink-muted);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.02em;
  transition: color 0.2s;
}

.tab svg {
  width: 26px; height: 26px;
  stroke-width: 1.6;
  transition: transform 0.15s, stroke-width 0.15s;
}

.tab.is-active {
  color: var(--ink);
}

.tab.is-active svg {
  stroke-width: 2;
}

.tab.is-primary {
  position: relative;
}

.tab.is-primary svg {
  background: var(--accent);
  color: white;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  padding: 9px;
  box-shadow: 0 8px 18px rgba(29, 53, 87, 0.32);
  margin-top: -10px;
  stroke-width: 2;
}

.tab.is-primary.is-active svg { background: var(--accent-deep); }

/* ========================================================================
   ГЛАВНЫЙ ЭКРАН — шапка над картой + карта + список причалов
   ======================================================================== */

/* Шапка главного экрана: бренд слева, hero-фраза по центру */
.home-topbar {
  background: var(--bg);
  padding: 14px 22px 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.home-topbar .brand {
  font-family: 'Pinyon Script', cursive;
  font-size: 30px;
  line-height: 1;
  color: var(--ink);
}

.home-topbar .brand-sub {
  font-size: 10px;
  color: var(--ink-muted);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-top: 3px;
  display: block;
}

.home-topbar-tag {
  font-size: 11px;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 6px 12px;
  border-radius: 999px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.map-hero {
  position: relative;
  height: 48vh;
  min-height: 320px;
  width: 100%;
  background: var(--bg-2);
}

.map-hero #map { width: 100%; height: 100%; }

/* Кнопка «найти меня» — единственный overlay сверху-справа */
.locate-btn {
  position: absolute;
  top: 14px; right: 14px;
  z-index: 400;
  background: white;
  border-radius: 50%;
  width: 42px; height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 16px rgba(0,0,0,0.12);
  color: var(--ink);
}

.locate-btn:active { background: var(--bg-2); }
.locate-btn.is-loading { color: var(--accent); }

/* Круглые leaflet zoom-кнопки */
.leaflet-control-zoom {
  border: none !important;
  box-shadow: 0 6px 16px rgba(0,0,0,0.12);
  border-radius: 22px !important;
  overflow: hidden;
  margin: 14px !important;
}

.leaflet-control-zoom a {
  width: 42px !important;
  height: 42px !important;
  line-height: 42px !important;
  font-size: 20px !important;
  background: white !important;
  color: var(--ink) !important;
  border: none !important;
  font-weight: 400;
}

.leaflet-control-zoom a:first-child {
  border-radius: 22px 22px 0 0 !important;
}

.leaflet-control-zoom a:last-child {
  border-radius: 0 0 22px 22px !important;
  border-top: 1px solid var(--rule) !important;
}

.leaflet-control-zoom a:hover {
  background: var(--bg-2) !important;
}

/* ── Маркер «вы здесь» ──────────────────────────────────────────────────── */
.user-pin {
  width: 22px; height: 22px;
  background: #2c7be5;
  border: 3px solid white;
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(44, 123, 229, 0.25), 0 4px 10px rgba(0,0,0,0.3);
}

/* ── Маркер причала с числом катеров ────────────────────────────────────── */
.marina-pin-v2 {
  background: var(--ink);
  color: white;
  border: 2px solid white;
  border-radius: 18px;
  min-width: 44px;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 0 10px;
  font-size: 13px;
  font-weight: 600;
  box-shadow: 0 6px 14px rgba(0,0,0,0.30);
  white-space: nowrap;
  cursor: pointer;
  transition: transform 0.15s;
}

.marina-pin-v2.is-empty { background: var(--ink-muted); opacity: 0.85; }
.marina-pin-v2.has-many { background: var(--accent); }

.marina-pin-v2:hover { transform: scale(1.06); }

.marina-pin-v2 svg { width: 14px; height: 14px; }

/* ── Список причалов снизу карты ────────────────────────────────────────── */
.marinas-section {
  padding: 18px 0 8px;
}

.marinas-section .section-head-app {
  padding: 0 22px 10px;
}

.marina-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 0 22px;
}

.marina-row {
  background: var(--surface);
  border-radius: 16px;
  box-shadow: var(--shadow-soft);
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 14px;
  transition: transform 0.15s, box-shadow 0.2s;
}

.marina-row:active {
  transform: scale(0.985);
  box-shadow: var(--shadow-card);
}

.marina-row.is-empty { opacity: 0.55; }

.marina-row-icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  background: var(--accent-soft);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.marina-row.is-empty .marina-row-icon {
  background: var(--bg-2);
  color: var(--ink-muted);
}

.marina-row-body { flex: 1; min-width: 0; }

.marina-row-name {
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 2px;
}

.marina-row-meta {
  font-size: 12px;
  color: var(--ink-muted);
  display: flex;
  gap: 8px;
  align-items: center;
}

.marina-row-meta .dot {
  width: 3px; height: 3px;
  border-radius: 50%;
  background: var(--ink-muted);
  display: inline-block;
}

.marina-row-count {
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  flex-shrink: 0;
  text-align: right;
}

.marina-row-count.is-empty { color: var(--ink-muted); font-weight: 400; }
.marina-row-count small { display: block; font-size: 10px; color: var(--ink-muted); font-weight: 400; text-transform: uppercase; letter-spacing: 0.06em; margin-top: 2px; }

/* ── Поповер причала на карте ───────────────────────────────────────────── */
.leaflet-popup-content-wrapper {
  border-radius: 14px;
  box-shadow: 0 12px 30px rgba(0,0,0,0.18) !important;
  padding: 4px;
}

.leaflet-popup-content { margin: 12px 14px !important; font-family: 'Plus Jakarta Sans', sans-serif; }

.popup-card { min-width: 200px; }
.popup-card-name { font-size: 14px; font-weight: 600; color: var(--ink); margin-bottom: 4px; }
.popup-card-meta { font-size: 12px; color: var(--ink-soft); margin-bottom: 10px; }
.leaflet-popup-content a.popup-card-cta,
.leaflet-popup-content a.popup-card-cta:link,
.leaflet-popup-content a.popup-card-cta:visited,
.leaflet-popup-content a.popup-card-cta:hover,
.leaflet-popup-content a.popup-card-cta:active {
  display: inline-block;
  background: var(--ink);
  color: #ffffff;
  font-size: 12px;
  font-weight: 500;
  padding: 8px 14px;
  border-radius: 999px;
  text-decoration: none;
}

.leaflet-popup-content a.popup-card-cta:hover { background: var(--ink-deep); }

/* ========================================================================
   ЭКРАН ПРИЧАЛА /marina/:id
   ======================================================================== */
.marina-hero {
  height: 220px;
  background: #c4b8a0 center/cover no-repeat;
  position: relative;
}

.marina-hero::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.05) 0%, rgba(0,0,0,0.55) 100%);
}

.marina-hero-back {
  position: absolute;
  top: 16px; left: 16px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  border-radius: 999px;
  padding: 9px 14px;
  font-size: 13px;
  color: var(--ink);
  z-index: 5;
  box-shadow: var(--shadow-soft);
}

.marina-hero-bottom {
  position: absolute;
  bottom: 18px; left: 18px; right: 18px;
  z-index: 5;
  color: white;
}

.marina-hero-name {
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -0.015em;
  margin-bottom: 2px;
}

.marina-hero-meta { font-size: 13px; opacity: 0.86; }

.marina-section {
  padding: 22px 22px 10px;
}

.marina-section h3 {
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-soft);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 10px;
}

.marina-description {
  font-size: 14px;
  color: var(--ink);
  margin-bottom: 18px;
}

.marina-actions {
  display: flex;
  gap: 10px;
  margin-bottom: 6px;
}

.marina-action {
  flex: 1;
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: 12px;
  padding: 12px 14px;
  font-size: 13px;
  color: var(--ink);
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.marina-action svg { width: 16px; height: 16px; }

/* ========================================================================
   ЭКРАН ПРОФИЛЯ /profile
   ======================================================================== */
.profile-screen { padding: 22px; }

.profile-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--gold-soft);
  color: var(--gold-deep);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  font-weight: 600;
  margin: 8px auto 14px;
  letter-spacing: 0.02em;
}

.profile-name {
  font-size: 22px;
  font-weight: 600;
  text-align: center;
  margin-bottom: 4px;
}

.profile-phone {
  font-size: 14px;
  color: var(--ink-muted);
  text-align: center;
  margin-bottom: 28px;
}

.profile-card {
  background: var(--surface);
  border-radius: var(--radius-card);
  padding: 6px 18px;
  margin-bottom: 16px;
  box-shadow: var(--shadow-soft);
}

.profile-row {
  padding: 14px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 14px;
  color: var(--ink);
}

.profile-row + .profile-row { border-top: 1px solid var(--rule); }

.profile-row-label {
  color: var(--ink-soft);
  font-size: 13px;
}

.profile-row strong { font-weight: 600; }

.profile-section-title {
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin: 18px 4px 8px;
}

/* ── Каталог: оверлей-таб над списком ───────────────────────────────────── */
.catalog-screen { padding: 18px 0 8px; }

.catalog-filter {
  padding: 0 22px 14px;
  display: flex;
  gap: 8px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.catalog-filter::-webkit-scrollbar { display: none; }

.chip {
  background: var(--surface);
  border: 1px solid var(--rule);
  color: var(--ink-soft);
  font-size: 13px;
  padding: 8px 14px;
  border-radius: 999px;
  white-space: nowrap;
  flex-shrink: 0;
  font-variant-numeric: tabular-nums;
  transition: all 0.15s;
}

.chip.is-active {
  background: var(--ink);
  color: white;
  border-color: var(--ink);
}

.chip:disabled,
.chip.is-disabled {
  background: var(--bg-2);
  color: var(--ink-muted);
  border-color: transparent;
  text-decoration: line-through;
  text-decoration-color: var(--ink-muted);
  cursor: not-allowed;
}

/* Сетка слотов времени в форме брони */
.slots-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.slot-chip {
  background: var(--surface);
  border: 1px solid var(--rule);
  color: var(--ink);
  font-size: 14px;
  font-weight: 500;
  padding: 12px 0;
  border-radius: 12px;
  text-align: center;
  font-variant-numeric: tabular-nums;
  transition: all 0.15s;
}

.slot-chip.is-active {
  background: var(--accent);
  color: white;
  border-color: var(--accent);
}

.slot-chip.is-disabled {
  background: var(--bg-2);
  color: var(--ink-muted);
  border-color: transparent;
  text-decoration: line-through;
  cursor: not-allowed;
}

.slot-chip-end {
  font-size: 10px;
  font-weight: 400;
  display: block;
  opacity: 0.7;
  margin-top: 2px;
}
