/* ============================================================
   SASPĒLE — community futbola treniņu booking
   Dizaina sistēma (vanilla CSS)
   ============================================================ */

:root {
  /* Krāsas */
  --pitch-900: #07211a;
  --pitch-800: #0a2a20;
  --pitch-700: #0b3d2e;
  --pitch-600: #115c44;
  --pitch-500: #1a7a59;
  --lime-500: #c7f23e;
  --lime-400: #d6ff5c;
  --lime-300: #e6ff9a;
  --orange-500: #ff6b35;
  --orange-400: #ff8454;

  --ink-900: #0e1714;
  --ink-700: #2b3a33;
  --ink-500: #5c6b63;
  --ink-300: #97a39c;

  --paper: #f6f8f3;
  --paper-card: #ffffff;
  --line: #e6ebe3;
  --line-strong: #d4dcce;

  --good: #2bb673;
  --warn: #f5a623;
  --bad: #e25555;
  --info: #3a86ff;

  /* Forma */
  --r-xs: 8px;
  --r-sm: 12px;
  --r-md: 16px;
  --r-lg: 22px;
  --r-xl: 30px;
  --r-pill: 999px;

  --shadow-sm: 0 1px 2px rgba(7, 33, 26, 0.06), 0 2px 8px rgba(7, 33, 26, 0.05);
  --shadow-md: 0 6px 24px rgba(7, 33, 26, 0.10);
  --shadow-lg: 0 18px 50px rgba(7, 33, 26, 0.18);

  --maxw: 1160px;

  --font-display: "Space Grotesk", "Segoe UI", system-ui, sans-serif;
  --font-body: "Inter", "Segoe UI", system-ui, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--ink-900);
  background: var(--paper);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.1; letter-spacing: -0.02em; }

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

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

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 22px; }

.section { padding: 56px 0; }
.section-tight { padding: 36px 0; }

.eyebrow {
  font-size: 12px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--pitch-500);
}
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 24px; flex-wrap: wrap; }
.section-head h2 { font-size: clamp(24px, 3vw, 34px); }
.section-head p { color: var(--ink-500); margin-top: 4px; max-width: 560px; }
.link-more { font-weight: 600; color: var(--pitch-600); display: inline-flex; align-items: center; gap: 6px; }
.link-more:hover { gap: 10px; transition: gap .15s; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font-body); font-weight: 600; font-size: 15px;
  border: 0; border-radius: var(--r-pill); padding: 12px 22px; cursor: pointer;
  transition: transform .12s ease, box-shadow .15s ease, background .15s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-lime { background: var(--lime-500); color: var(--pitch-900); }
.btn-lime:hover { background: var(--lime-400); box-shadow: 0 6px 18px rgba(199,242,62,.4); }
.btn-dark { background: var(--pitch-700); color: #fff; }
.btn-dark:hover { background: var(--pitch-600); }
.btn-ghost { background: transparent; color: var(--pitch-700); border: 1.5px solid var(--line-strong); }
.btn-ghost:hover { border-color: var(--pitch-500); background: #fff; }
.btn-block { width: 100%; }
.btn-lg { padding: 15px 28px; font-size: 16px; }
.btn-sm { padding: 8px 14px; font-size: 13px; }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(246,248,243,.85); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav-inner { display: flex; align-items: center; gap: 18px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 700; font-size: 20px; letter-spacing: -0.03em; }
.brand-mark {
  width: 30px; height: 30px; border-radius: 9px; background: var(--pitch-700);
  display: grid; place-items: center; color: var(--lime-500); font-size: 17px; font-weight: 700;
  box-shadow: inset 0 0 0 2px rgba(199,242,62,.25);
}
.nav-links { display: flex; gap: 4px; margin-left: 8px; }
.nav-links a {
  font-size: 14px; font-weight: 600; color: var(--ink-700);
  padding: 8px 14px; border-radius: var(--r-pill);
}
.nav-links a:hover { background: #fff; color: var(--pitch-700); }
.nav-links a.active { background: var(--pitch-700); color: #fff; }
.nav-right { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.loc-pill {
  display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600;
  background: #fff; border: 1px solid var(--line); padding: 7px 13px; border-radius: var(--r-pill); color: var(--ink-700);
}
.avatar { width: 38px; height: 38px; border-radius: 50%; object-fit: cover; border: 2px solid #fff; box-shadow: var(--shadow-sm); }
.nav-toggle { display: none; }

/* ---------- Hero ---------- */
.hero {
  background:
    radial-gradient(900px 400px at 85% -10%, rgba(199,242,62,.18), transparent 60%),
    radial-gradient(700px 500px at 0% 110%, rgba(255,107,53,.14), transparent 55%),
    linear-gradient(160deg, var(--pitch-800), var(--pitch-700) 60%, var(--pitch-600));
  color: #fff; position: relative; overflow: hidden;
}
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .07;
  background-image: linear-gradient(#fff 1px, transparent 1px), linear-gradient(90deg, #fff 1px, transparent 1px);
  background-size: 46px 46px; mask-image: radial-gradient(700px 360px at 75% 30%, #000, transparent 70%);
}
.hero-inner { position: relative; z-index: 2; padding: 64px 0 80px; }
.hero h1 { font-size: clamp(34px, 5.4vw, 60px); max-width: 760px; }
.hero h1 .hl { color: var(--lime-400); }
.hero-sub { margin-top: 18px; font-size: clamp(16px, 2vw, 19px); color: rgba(255,255,255,.82); max-width: 560px; }
.hero-stats { display: flex; gap: 28px; margin-top: 26px; flex-wrap: wrap; }
.hero-stat b { font-family: var(--font-display); font-size: 26px; color: var(--lime-400); display: block; }
.hero-stat span { font-size: 13px; color: rgba(255,255,255,.7); }

/* search bar */
.searchbar {
  margin-top: 34px; background: #fff; border-radius: var(--r-lg); padding: 10px;
  display: grid; grid-template-columns: 1.4fr 1fr 1fr auto; gap: 8px; box-shadow: var(--shadow-lg); max-width: 880px;
}
.search-field { display: flex; flex-direction: column; padding: 8px 14px; border-radius: var(--r-md); }
.search-field + .search-field { border-left: 1px solid var(--line); }
.search-field label { font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-300); }
.search-field select, .search-field input {
  border: 0; font-family: var(--font-body); font-size: 15px; font-weight: 600; color: var(--ink-900);
  background: transparent; outline: none; margin-top: 2px; width: 100%;
}
.search-go { align-self: stretch; }

.chips { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 18px; }
.chip {
  font-size: 13px; font-weight: 600; padding: 8px 14px; border-radius: var(--r-pill); cursor: pointer;
  background: rgba(255,255,255,.10); color: #fff; border: 1px solid rgba(255,255,255,.18);
  transition: background .12s, color .12s;
}
.chip:hover { background: rgba(255,255,255,.2); }
.chip.on { background: var(--lime-500); color: var(--pitch-900); border-color: var(--lime-500); }

/* light chips (on paper) */
.chips-light .chip { background: #fff; color: var(--ink-700); border-color: var(--line); }
.chips-light .chip:hover { border-color: var(--pitch-500); }
.chips-light .chip.on { background: var(--pitch-700); color: #fff; border-color: var(--pitch-700); }

/* ---------- Session cards ---------- */
.grid { display: grid; gap: 18px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--paper-card); border: 1px solid var(--line); border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm); overflow: hidden; transition: transform .15s ease, box-shadow .15s ease;
}
.card.hoverable:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }

.ses-top { padding: 16px 16px 0; display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.ses-when { font-family: var(--font-display); font-size: 18px; }
.ses-when span { display: block; font-family: var(--font-body); font-size: 12px; font-weight: 600; color: var(--ink-500); }
.ses-body { padding: 12px 16px 16px; }
.ses-title { font-weight: 700; font-size: 16px; margin-bottom: 2px; }
.ses-venue { font-size: 13px; color: var(--ink-500); display: flex; align-items: center; gap: 5px; }

.tag-row { display: flex; gap: 6px; flex-wrap: wrap; margin: 12px 0; }
.tag {
  font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: var(--r-pill);
  background: var(--paper); color: var(--ink-700); border: 1px solid var(--line);
}
.tag-format { background: var(--pitch-700); color: #fff; border-color: var(--pitch-700); }
.tag-coach { background: var(--lime-300); color: var(--pitch-800); border-color: var(--lime-300); }
.tag-gk { background: #fff3ec; color: var(--orange-500); border-color: #ffd9c7; }
.tag-level { background: #eef4ff; color: var(--info); border-color: #d7e6ff; }

.spots { margin-top: 10px; }
.spots-bar { height: 8px; border-radius: var(--r-pill); background: var(--line); overflow: hidden; }
.spots-fill { height: 100%; border-radius: var(--r-pill); background: linear-gradient(90deg, var(--pitch-500), var(--lime-500)); }
.spots-meta { display: flex; justify-content: space-between; font-size: 12px; font-weight: 600; color: var(--ink-500); margin-top: 7px; }
.spots-meta .left b { color: var(--ink-900); }

.ses-foot { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px; border-top: 1px solid var(--line); background: #fcfdfb; }
.price { font-family: var(--font-display); font-size: 20px; }
.price small { font-family: var(--font-body); font-size: 12px; font-weight: 600; color: var(--ink-500); }

.avatars { display: flex; }
.avatars img, .avatars .more {
  width: 28px; height: 28px; border-radius: 50%; border: 2px solid #fff; margin-left: -8px; object-fit: cover;
}
.avatars img:first-child { margin-left: 0; }
.avatars .more { background: var(--pitch-700); color: #fff; font-size: 11px; font-weight: 700; display: grid; place-items: center; }

/* reliability / rating mini */
.rel { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 700; }
.rel .dot { width: 8px; height: 8px; border-radius: 50%; }
.rel-good .dot { background: var(--good); } .rel-good { color: var(--good); }
.rel-mid .dot { background: var(--warn); } .rel-mid { color: var(--warn); }

/* ---------- Pickup balance card ---------- */
.balance { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 14px; margin: 14px 0; }
.team-side { text-align: center; }
.team-side h5 { font-family: var(--font-display); font-size: 14px; margin-bottom: 6px; }
.team-avatars { display: flex; justify-content: center; }
.team-avatars img { width: 30px; height: 30px; border-radius: 50%; border: 2px solid #fff; margin-left: -7px; }
.team-avatars img:first-child { margin-left: 0; }
.vs { font-family: var(--font-display); font-weight: 700; color: var(--ink-300); font-size: 13px; }
.balance-meter { margin-top: 8px; }
.balance-meter .spots-bar { background: linear-gradient(90deg, var(--info), var(--info)); position: relative; }
.balance-note { font-size: 12px; text-align: center; color: var(--good); font-weight: 700; margin-top: 8px; }

/* ---------- Squad cards ---------- */
.squad-card { padding: 18px; display: flex; flex-direction: column; gap: 12px; }
.squad-head { display: flex; align-items: center; gap: 12px; }
.squad-crest {
  width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center;
  font-family: var(--font-display); font-weight: 700; color: #fff; font-size: 20px; flex-shrink: 0;
}
.squad-name { font-family: var(--font-display); font-size: 17px; }
.squad-meta { font-size: 12px; color: var(--ink-500); }
.squad-tags { display: flex; gap: 6px; flex-wrap: wrap; }
.squad-foot { display: flex; align-items: center; justify-content: space-between; margin-top: auto; }

/* ---------- Why better strip ---------- */
.why { background: var(--pitch-800); color: #fff; }
.why .feature { padding: 22px; border-radius: var(--r-lg); background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.08); }
.why .feature .ic { width: 44px; height: 44px; border-radius: 12px; background: rgba(199,242,62,.14); color: var(--lime-400); display: grid; place-items: center; font-size: 22px; margin-bottom: 14px; }
.why .feature h4 { font-size: 17px; margin-bottom: 6px; }
.why .feature p { font-size: 14px; color: rgba(255,255,255,.72); }
.why .feature .vs-line { font-size: 12px; color: rgba(255,255,255,.45); margin-top: 10px; }
.why .feature .vs-line b { color: var(--orange-400); }

/* ---------- Footer ---------- */
.footer { background: var(--pitch-900); color: rgba(255,255,255,.7); padding: 48px 0 32px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 28px; }
.footer h5 { color: #fff; font-family: var(--font-display); font-size: 14px; margin-bottom: 12px; }
.footer a { display: block; font-size: 14px; padding: 4px 0; }
.footer a:hover { color: var(--lime-400); }
.footer-brand p { font-size: 14px; margin-top: 10px; max-width: 280px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); margin-top: 32px; padding-top: 20px; font-size: 13px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; }

/* ============================================================
   SESSION DETAIL PAGE
   ============================================================ */
.detail { display: grid; grid-template-columns: 1.7fr 1fr; gap: 28px; align-items: start; }
.detail-main { display: flex; flex-direction: column; gap: 20px; }
.banner {
  border-radius: var(--r-lg); overflow: hidden; position: relative; min-height: 240px; color: #fff;
  background: linear-gradient(120deg, var(--pitch-700), var(--pitch-500)), url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg"/>');
  display: flex; align-items: flex-end; padding: 24px;
}
.banner::before {
  content: ""; position: absolute; inset: 0; opacity: .12;
  background-image: linear-gradient(#fff 1px, transparent 1px), linear-gradient(90deg, #fff 1px, transparent 1px);
  background-size: 40px 40px;
}
.banner-content { position: relative; z-index: 2; }
.banner h1 { font-size: clamp(26px, 4vw, 38px); }
.breadcrumb { font-size: 13px; color: var(--ink-500); margin-bottom: 16px; }
.breadcrumb a:hover { color: var(--pitch-600); }

.panel { background: var(--paper-card); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 22px; box-shadow: var(--shadow-sm); }
.panel h3 { font-size: 19px; margin-bottom: 14px; }

.facts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.fact { display: flex; gap: 12px; align-items: flex-start; }
.fact .ic { width: 40px; height: 40px; border-radius: 11px; background: var(--paper); display: grid; place-items: center; font-size: 19px; flex-shrink: 0; }
.fact .k { font-size: 12px; color: var(--ink-500); font-weight: 600; }
.fact .v { font-weight: 700; }

.roster { display: flex; flex-direction: column; gap: 10px; }
.player-row { display: flex; align-items: center; gap: 12px; padding: 10px; border-radius: var(--r-md); background: var(--paper); }
.player-row img { width: 42px; height: 42px; border-radius: 50%; }
.player-row .nm { font-weight: 700; font-size: 14px; }
.player-row .role { font-size: 12px; color: var(--ink-500); }
.lvl-badge {
  margin-left: auto; font-family: var(--font-display); font-weight: 700; font-size: 14px;
  background: var(--pitch-700); color: var(--lime-400); padding: 4px 10px; border-radius: var(--r-pill);
}
.lvl-badge.gk { background: var(--orange-500); color: #fff; }

/* booking sidebar */
.booking { position: sticky; top: 84px; display: flex; flex-direction: column; gap: 16px; }
.book-price { display: flex; align-items: baseline; gap: 8px; }
.book-price .big { font-family: var(--font-display); font-size: 34px; }
.book-price .per { color: var(--ink-500); font-size: 14px; font-weight: 600; }
.seg { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 6px 0 4px; }
.seg button {
  border: 1.5px solid var(--line-strong); background: #fff; border-radius: var(--r-md); padding: 12px;
  cursor: pointer; font-family: var(--font-body); font-weight: 600; font-size: 14px; text-align: left;
  transition: border-color .12s, background .12s;
}
.seg button.sel { border-color: var(--pitch-600); background: #f3fbf6; }
.seg button small { display: block; color: var(--ink-500); font-weight: 600; font-size: 12px; }
.book-line { display: flex; justify-content: space-between; font-size: 14px; padding: 6px 0; color: var(--ink-700); }
.book-line.total { border-top: 1px dashed var(--line-strong); margin-top: 4px; padding-top: 12px; font-weight: 700; font-size: 16px; color: var(--ink-900); }
.guarantee { font-size: 12px; color: var(--ink-500); display: flex; gap: 8px; align-items: flex-start; }

.req-card { background: #f3fbf6; border: 1px solid #cdead9; border-radius: var(--r-md); padding: 14px; font-size: 13px; }
.req-card b { color: var(--pitch-700); }

/* ============================================================
   COMMUNITY PAGE
   ============================================================ */
.comm-grid { display: grid; grid-template-columns: 1fr 340px; gap: 28px; align-items: start; }
.feed { display: flex; flex-direction: column; gap: 16px; }
.post { padding: 18px; }
.post-head { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.post-head img { width: 42px; height: 42px; border-radius: 50%; }
.post-head .nm { font-weight: 700; }
.post-head .meta { font-size: 12px; color: var(--ink-500); }
.post-head .badge-mini { margin-left: auto; }
.post-body { font-size: 15px; }
.post-result {
  margin-top: 12px; background: var(--pitch-800); color: #fff; border-radius: var(--r-md); padding: 14px;
  display: flex; align-items: center; justify-content: space-around; text-align: center;
}
.post-result .score { font-family: var(--font-display); font-size: 30px; }
.post-result .tname { font-size: 13px; color: rgba(255,255,255,.75); }
.post-actions { display: flex; gap: 18px; margin-top: 12px; font-size: 13px; font-weight: 600; color: var(--ink-500); }
.post-actions span { cursor: pointer; display: inline-flex; gap: 6px; align-items: center; }
.post-actions span:hover { color: var(--pitch-600); }

.side-card { padding: 18px; }
.side-card h3 { font-size: 16px; margin-bottom: 14px; display: flex; align-items: center; gap: 8px; }
.lb-row { display: flex; align-items: center; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--line); }
.lb-row:last-child { border-bottom: 0; }
.lb-rank { width: 24px; font-family: var(--font-display); font-weight: 700; color: var(--ink-300); }
.lb-row.top1 .lb-rank { color: var(--lime-500); }
.lb-row img { width: 34px; height: 34px; border-radius: 50%; }
.lb-name { font-weight: 600; font-size: 14px; }
.lb-sub { font-size: 12px; color: var(--ink-500); }
.lb-pts { margin-left: auto; font-family: var(--font-display); font-weight: 700; }

.challenge { display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.challenge:last-child { border-bottom: 0; }
.challenge .ic { width: 40px; height: 40px; border-radius: 11px; background: var(--lime-300); display: grid; place-items: center; font-size: 20px; flex-shrink: 0; }
.challenge .t { font-weight: 700; font-size: 14px; }
.challenge .d { font-size: 12px; color: var(--ink-500); }
.challenge .prog { height: 6px; background: var(--line); border-radius: var(--r-pill); margin-top: 6px; overflow: hidden; }
.challenge .prog i { display: block; height: 100%; background: var(--orange-500); border-radius: var(--r-pill); }

/* ============================================================
   PROFILE PAGE
   ============================================================ */
.profile-head {
  background: linear-gradient(160deg, var(--pitch-800), var(--pitch-600)); color: #fff;
  border-radius: var(--r-xl); padding: 32px; display: flex; gap: 28px; align-items: center; flex-wrap: wrap;
  position: relative; overflow: hidden;
}
.profile-head::after {
  content: ""; position: absolute; inset: 0; opacity: .08;
  background-image: linear-gradient(#fff 1px, transparent 1px), linear-gradient(90deg, #fff 1px, transparent 1px);
  background-size: 44px 44px;
}
.profile-avatar { width: 110px; height: 110px; border-radius: 28px; border: 3px solid rgba(255,255,255,.25); position: relative; z-index: 2; object-fit: cover; }
.profile-id { position: relative; z-index: 2; }
.profile-id h1 { font-size: 32px; }
.profile-id .handle { color: rgba(255,255,255,.7); }
.profile-id .pos { display: inline-flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.pos-tag { background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.2); padding: 5px 12px; border-radius: var(--r-pill); font-size: 13px; font-weight: 600; }
.level-ring { margin-left: auto; position: relative; z-index: 2; text-align: center; }
.ring {
  width: 132px; height: 132px; border-radius: 50%; display: grid; place-items: center;
  background: conic-gradient(var(--lime-500) calc(var(--p) * 1%), rgba(255,255,255,.14) 0);
}
.ring-inner { width: 104px; height: 104px; border-radius: 50%; background: var(--pitch-800); display: grid; place-items: center; }
.ring-inner b { font-family: var(--font-display); font-size: 34px; color: var(--lime-400); }
.ring-inner span { font-size: 11px; color: rgba(255,255,255,.7); letter-spacing: .1em; text-transform: uppercase; }

.stat-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.stat-box { padding: 18px; text-align: center; }
.stat-box b { font-family: var(--font-display); font-size: 28px; display: block; }
.stat-box span { font-size: 13px; color: var(--ink-500); }
.stat-box .accent { color: var(--pitch-600); }

.skills { display: flex; flex-direction: column; gap: 14px; }
.skill-row .skill-top { display: flex; justify-content: space-between; font-size: 14px; font-weight: 600; margin-bottom: 6px; }
.skill-row .skill-top span:last-child { color: var(--pitch-600); }
.skill-bar { height: 10px; border-radius: var(--r-pill); background: var(--line); overflow: hidden; }
.skill-bar i { display: block; height: 100%; border-radius: var(--r-pill); background: linear-gradient(90deg, var(--pitch-500), var(--lime-500)); }

.badges { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.badge {
  text-align: center; padding: 16px 10px; border-radius: var(--r-md); background: var(--paper); border: 1px solid var(--line);
}
.badge.locked { opacity: .42; }
.badge .em { font-size: 30px; }
.badge .bn { font-size: 12px; font-weight: 700; margin-top: 6px; }
.badge .bd { font-size: 11px; color: var(--ink-500); }

.timeline { position: relative; padding-left: 26px; }
.timeline::before { content: ""; position: absolute; left: 7px; top: 4px; bottom: 4px; width: 2px; background: var(--line); }
.tl-item { position: relative; padding-bottom: 18px; }
.tl-item::before { content: ""; position: absolute; left: -23px; top: 4px; width: 14px; height: 14px; border-radius: 50%; background: var(--lime-500); border: 3px solid var(--paper-card); box-shadow: 0 0 0 1px var(--line); }
.tl-item .tl-date { font-size: 12px; color: var(--ink-500); font-weight: 600; }
.tl-item .tl-text { font-size: 14px; }
.tl-item .tl-text b { color: var(--pitch-700); }

.two-col { display: grid; grid-template-columns: 1.3fr 1fr; gap: 22px; align-items: start; }

/* ---------- Toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: 28px; transform: translate(-50%, 120%);
  background: var(--pitch-900); color: #fff; padding: 14px 22px; border-radius: var(--r-pill);
  box-shadow: var(--shadow-lg); font-weight: 600; font-size: 14px; z-index: 100; display: flex; gap: 10px; align-items: center;
  transition: transform .3s cubic-bezier(.2,.8,.2,1);
}
.toast.show { transform: translate(-50%, 0); }
.toast .ok { color: var(--lime-400); }

/* ---------- Utilities ---------- */
.mt-0 { margin-top: 0; } .mt-1 { margin-top: 8px; } .mt-2 { margin-top: 16px; } .mt-3 { margin-top: 24px; }
.muted { color: var(--ink-500); }
.center { text-align: center; }
.divider { height: 1px; background: var(--line); margin: 16px 0; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .detail, .comm-grid, .two-col { grid-template-columns: 1fr; }
  .booking { position: static; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .level-ring { margin-left: 0; }
  .stat-strip { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 680px) {
  .nav-links { display: none; }
  .nav-toggle { display: inline-flex; }
  .searchbar { grid-template-columns: 1fr; }
  .search-field + .search-field { border-left: 0; border-top: 1px solid var(--line); }
  .grid-3, .grid-4, .grid-2, .badges { grid-template-columns: 1fr; }
  .facts { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .loc-pill { display: none; }
  .badges { grid-template-columns: repeat(2, 1fr); }
}
