/* Refuelia — clean, minimal, easy to scan. One typeface, soft edges, calm color. */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=IBM+Plex+Mono:wght@400;500;600&display=swap');

:root{
  --ink: #1a1a1a;
  --ink-soft: #6b6b6b;
  --paper: #faf8f4;
  --paper-2: #f1efe8;
  --paper-3: #ffffff;
  --amber: #ff7a2f;
  --amber-deep: #b8500f;
  --brand: #1f8f5f;
  --brand-deep: #146b45;
  --green: #1f8f5f;
  --green-soft: #e5f4ec;
  --red: #c8402f;
  --red-soft: #fbe9e6;
  --navy: #16233a;
  --line: #e6e2d8;
  --shadow-color: rgba(26,26,26,.10);
  --shadow: 0 10px 24px -12px var(--shadow-color);
  --shadow-sm: 0 4px 12px -6px var(--shadow-color);
  --radius: 16px;
  --max: 1120px;
  color-scheme: light;
}

html[data-theme="dark"]{
  --ink: #f2efe8;
  --ink-soft: #a3a096;
  --paper: #14181a;
  --paper-2: #1c2321;
  --paper-3: #202826;
  --amber: #ff8a42;
  --amber-deep: #ffb37e;
  --brand: #35c98d;
  --brand-deep: #7ee9bd;
  --green: #35c98d;
  --green-soft: rgba(53,201,141,.14);
  --red: #ff8570;
  --red-soft: rgba(255,133,112,.14);
  --navy: #0c1220;
  --line: #2a332f;
  --shadow-color: rgba(0,0,0,.4);
  color-scheme: dark;
}
html{ transition: color-scheme .2s; scroll-behavior: smooth; }
body{ transition: background-color .2s ease, color .2s ease; }

*,*::before,*::after{ box-sizing: border-box; }

body{
  margin:0;
  background: var(--paper);
  color: var(--ink);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1,h2,h3,h4{
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  line-height: 1.2;
  margin: 0 0 .5em;
  letter-spacing: -0.015em;
}
h1 em, h2 em, h3 em{ font-style: normal; font-weight: 800; color: var(--brand-deep); }

p{ margin: 0 0 1em; }
a{ color: inherit; }
img,svg{ max-width:100%; display:block; }

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

.mono{ font-family: 'IBM Plex Mono', monospace; }
.tag{
  display:inline-flex; align-items:center; gap:6px;
  font-family:'IBM Plex Mono', monospace;
  font-size: 11px; font-weight:600; letter-spacing: .03em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--paper-2);
  color: var(--ink-soft);
}
.tag.green{ background: var(--green-soft); color: var(--green); }
.tag.red{ background: var(--red-soft); color: var(--red); }
.tag.amber{ background: rgba(255,122,47,.12); color: var(--amber-deep); }

/* ---------- nav ---------- */
.site-nav{
  position: sticky; top:0; z-index: 100;
  background: color-mix(in srgb, var(--paper) 92%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-nav .wrap{
  display:flex; align-items:center; justify-content:space-between;
  height: 68px;
}
.brand{
  display:flex; align-items:center; gap:10px;
  font-weight:800; font-size: 19px;
  text-decoration:none; color: var(--ink);
}
.brand .mark{ width: 26px; height: 26px; flex-shrink:0; }

.nav-right{ display:flex; align-items:center; gap:10px; min-width:0; }
.nav-links{
  display:flex; align-items:center; gap: 18px;
  list-style:none; margin:0; padding:0;
  min-width:0;
}
.nav-links a{
  text-decoration:none; font-weight: 500; font-size: 14px;
  color: var(--ink-soft);
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
  white-space: nowrap;
}
.nav-links a:hover, .nav-links a.active{ color: var(--ink); border-color: var(--brand); }
.nav-cta{
  font-weight:600 !important; color: #fff !important;
  background: var(--ink); border-radius: 999px;
  padding: 8px 16px !important;
  white-space: nowrap;
}
html[data-theme="dark"] .nav-cta{ color: var(--ink) !important; background: var(--brand); }
.nav-toggle{ display:none; background:none; border:1px solid var(--line); border-radius:8px; width:38px; height:38px; flex-shrink:0; cursor:pointer; }
.nav-toggle span{ display:block; width:16px; height:2px; background:var(--ink); margin:4px auto; }

@media (max-width: 1320px){
  .nav-links{
    position:absolute; top:68px; left:0; right:0;
    background: var(--paper); border-bottom: 1px solid var(--line);
    flex-direction:column; align-items:flex-start; padding: 16px 24px 24px;
    gap: 16px;
    display:none;
  }
  .nav-links.open{ display:flex; }
  .nav-toggle{ display:block; }
}

/* Below the hamburger breakpoint the top bar only has room for the logo +
   theme/lang/menu controls (the rest of nav-links, including the "Join the
   waitlist" CTA, is already tucked into the dropdown). Keep that trio from
   crowding the logo on narrow phones by shrinking the lang pill to
   icon-only and tightening gaps, rather than changing what's shown. */
@media (max-width: 480px){
  .site-nav .wrap{ padding-left:16px; padding-right:16px; }
  .nav-right{ gap:6px; }
  .brand{ font-size:16px; gap:7px; }
  .lang-btn{ padding:8px; gap:0; }
  .lang-btn .code{ display:none; }
  .theme-toggle, .nav-toggle{ width:34px; height:34px; }
}

/* ---------- theme + lang toggles ---------- */
.theme-toggle{
  display:flex; align-items:center; justify-content:center;
  width:36px; height:36px; flex-shrink:0; color: var(--ink-soft);
  background: transparent; border:1px solid var(--line); border-radius:999px;
  cursor:pointer;
}
.theme-toggle svg{ width:17px; height:17px; }
.theme-toggle .icon-moon{ display:none; }
html[data-theme="dark"] .theme-toggle .icon-sun{ display:none; }
html[data-theme="dark"] .theme-toggle .icon-moon{ display:block; }

.lang-switch{ position:relative; margin-left: 2px; }
.lang-btn{
  display:flex; align-items:center; gap:6px; color: var(--ink-soft);
  background: transparent; border:1px solid var(--line); border-radius:999px;
  padding: 8px 12px; font-family:'IBM Plex Mono'; font-size:11px; font-weight:600;
  cursor:pointer; text-transform:uppercase; letter-spacing:.03em;
}
.lang-btn svg{ width:14px; height:14px; }
.lang-menu{
  display:none; position:absolute; right:0; top:calc(100% + 8px);
  background: var(--paper-3); border:1px solid var(--line); border-radius:10px;
  box-shadow: var(--shadow); min-width:160px; z-index:200; overflow:hidden;
}
.lang-menu.open{ display:block; }
.lang-menu button{
  display:flex; width:100%; align-items:center; justify-content:space-between;
  gap:10px; padding:10px 14px; background:none; border:none; text-align:left;
  font-family:'Inter'; font-size:14px; font-weight:500; cursor:pointer; color: var(--ink);
  border-bottom:1px solid var(--line);
}
.lang-menu button:last-child{ border-bottom:none; }
.lang-menu button:hover{ background: var(--paper-2); }
.lang-menu button .code{ font-family:'IBM Plex Mono'; font-size:11px; color:var(--ink-soft); }
.lang-menu button.active{ color: var(--brand-deep); font-weight:700; }

/* ---------- buttons ---------- */
.btn{
  display:inline-flex; align-items:center; justify-content:center; gap:8px;
  font-family:'Inter'; font-weight:600; font-size:15px;
  padding: 13px 24px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: var(--paper-2);
  text-decoration:none; color: var(--ink);
  cursor:pointer;
  transition: opacity .15s ease, transform .2s cubic-bezier(.34,1.56,.64,1);
}
.btn:hover{ opacity:.85; transform: scale(1.03); }
.btn:active{ transform: scale(.96); }
.btn.primary{ background: var(--ink); color:#fff; }
html[data-theme="dark"] .btn.primary{ background: var(--brand); color: var(--ink); }
.btn.dark{ background: var(--navy); color: #fff; }
.btn.ghost{ background: transparent; border-color: var(--line); }
.btn.ghost:hover{ background: var(--paper-2); opacity:1; }
.btn.block{ width:100%; }

/* ---------- hero ---------- */
.hero{ padding: 88px 0 56px; }
.hero-grid{
  display:grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items:center;
}
.eyebrow{
  display:inline-block; font-family:'IBM Plex Mono'; font-size:12px; font-weight:600;
  text-transform:uppercase; letter-spacing:.08em;
  color: var(--brand-deep);
  margin-bottom: 16px;
}
.hero h1{ font-size: clamp(32px, 4.6vw, 54px); }
.hero .lede{ font-size: 18px; color: var(--ink-soft); max-width: 46ch; }
.hero-actions{ display:flex; gap:12px; margin-top: 28px; flex-wrap:wrap; align-items:center; }
.hero-note{ font-size: 13px; color: var(--ink-soft); margin-top:14px; }

@media (max-width: 860px){
  .hero-grid{ grid-template-columns: 1fr; }
}

/* ---------- mock map ---------- */
.map-card{
  position:relative;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--navy);
  box-shadow: var(--shadow);
  overflow:hidden;
  aspect-ratio: 4/3.3;
}
.map-card svg{ width:100%; height:100%; display:block; }
.map-card #hero-live-map{ width:100%; height:100%; }
.map-topbar{
  position:absolute; top:0; left:0; right:0;
  display:flex; justify-content:space-between; align-items:center;
  padding: 10px 14px;
  background: rgba(12,15,20,.55);
  color:#fff; font-family:'IBM Plex Mono'; font-size:11px;
  z-index:401; /* above Leaflet's own panes (z-index up to ~400) */
}
.map-topbar a{ color:#fff; text-decoration:none; border-bottom:1px solid rgba(255,255,255,.4); }
.map-topbar a:hover{ border-color:#fff; }
.dot-live{ width:8px; height:8px; border-radius:50%; background:#3ddc84; display:inline-block; margin-right:6px; animation: pulse 1.8s infinite; }
@keyframes pulse{ 0%{opacity:1;} 50%{opacity:.35;} 100%{opacity:1;} }

.pin{ cursor:default; }
.pin circle.ring{ opacity:.3; }
.pin-label{ font-family:'IBM Plex Mono'; font-size: 9px; fill:#fff; font-weight:600; }
.legend{ display:flex; gap:16px; flex-wrap:wrap; margin-top: 14px; font-size: 13px; color: var(--ink-soft); }
.legend span{ display:inline-flex; align-items:center; gap:6px; }
.legend i{ width:9px; height:9px; border-radius:50%; display:inline-block; }
.legend i.g{ background: var(--green); } .legend i.r{ background: var(--red); } .legend i.a{ background: var(--amber); } .legend i.b{ background:#4a8fe7; }

/* ---------- sections ---------- */
section{ padding: 76px 0; }
.section-head{ max-width: 620px; margin-bottom: 40px; }
.section-head .eyebrow{ margin-bottom: 10px; }
.strip{ background: var(--paper-2); }
.strip-dark{ background: var(--navy); color: #fff; }
.strip-dark h2, .strip-dark h3{ color:#fff; }
.strip-dark .eyebrow{ color: var(--brand); }

.grid{ display:grid; gap: 20px; }
.grid.cols-2{ grid-template-columns: repeat(2,1fr); }
.grid.cols-3{ grid-template-columns: repeat(3,1fr); }
.grid.cols-4{ grid-template-columns: repeat(4,1fr); }
@media (max-width: 860px){
  .grid.cols-2, .grid.cols-3, .grid.cols-4{ grid-template-columns: 1fr; }
}

.card{
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper-3);
  padding: 26px;
  box-shadow: var(--shadow-sm);
  transition: transform .25s cubic-bezier(.34,1.56,.64,1), box-shadow .25s ease;
}
.card:hover{ transform: translateY(-5px) scale(1.01); box-shadow: var(--shadow); }
.card h3{ font-size: 19px; margin-bottom:8px; }
.card .icon{ width:32px; height:32px; margin-bottom: 16px; }
.card p{ color: var(--ink-soft); font-size: 15px; margin-bottom:0; }

.quote{
  font-size: clamp(20px, 2.2vw, 26px);
  font-weight: 600;
  line-height:1.45; max-width: 760px;
  color: var(--ink);
}
.quote cite{ display:block; font-family:'IBM Plex Mono'; font-style:normal; font-weight:500; font-size:13px; margin-top:18px; color: var(--ink-soft); }

.note{
  font-family:'IBM Plex Mono'; font-size: 12.5px; color: var(--ink-soft);
  padding-top:10px; margin-top: 10px;
}

/* ---------- annotated example record (how-it-works.html) ---------- */
.example-record .example-record-label{ color:#8996ad; font-size:13px; margin-bottom:16px; }
.example-field{ padding: 10px 0; border-bottom: 1px solid rgba(255,255,255,.08); }
.example-field:last-of-type{ border-bottom:none; }
.example-field .ef-row{ display:flex; justify-content:space-between; align-items:baseline; gap:12px; }
.example-field .ef-key{ font-family:'IBM Plex Mono'; font-size:11px; text-transform:uppercase; letter-spacing:.04em; color:#8996ad; flex-shrink:0; }
.example-field .ef-val{ font-family:'IBM Plex Mono'; font-size:14px; color:#fff; font-weight:600; text-align:right; }
.example-field .ef-why{ font-size:12.5px; color:#a9b3c6; margin:6px 0 0; font-style:italic; }
.example-record-footer{ font-size:13.5px; color:#cdd6e4; margin:16px 0 0; padding-top:16px; border-top:1px solid rgba(255,255,255,.12); }

table.data{ width:100%; border-collapse: collapse; font-size:15px; }
table.data th, table.data td{ border-bottom: 1px solid var(--line); padding: 12px 14px; text-align:left; vertical-align:top; }
table.data th{ font-family:'IBM Plex Mono'; font-size:11px; text-transform:uppercase; letter-spacing:.04em; color: var(--ink-soft); font-weight:600; }
table.data td.num{ font-family:'IBM Plex Mono'; }
.table-scroll{ overflow-x:auto; }

.timeline{ position:relative; padding-left: 24px; border-left: 1px solid var(--line); }
.timeline .step{ position:relative; padding-bottom: 34px; }
.timeline .step:last-child{ padding-bottom:0; }
.timeline .step::before{
  content:""; position:absolute; left:-29px; top:4px;
  width:9px; height:9px; border-radius:50%;
  background: var(--brand);
}
.timeline .step .when{ font-family:'IBM Plex Mono'; font-size:11px; text-transform:uppercase; color: var(--brand-deep); font-weight:600; }

.badge-sticker{
  display:inline-block;
  background: var(--green-soft); color: var(--brand-deep); border-radius: 999px;
  padding: 6px 14px; font-weight:600; font-size:12.5px;
}

.avail-scale{ display:flex; align-items:center; gap:0; height: 8px; border-radius:999px; overflow:hidden; max-width:280px; background: var(--paper-2); }
.avail-scale div{ height:100%; }

.form-card{
  border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper-3);
  padding: 32px; box-shadow: var(--shadow);
}
.form-row{ margin-bottom: 16px; }
.form-row label{ display:block; font-weight:600; font-size:14px; margin-bottom:6px; }
.form-row input, .form-row select, .form-row textarea{
  width:100%; padding: 11px 14px; border:1px solid var(--line); border-radius:8px;
  font-family:'Inter'; font-size:15px; background: var(--paper); color: var(--ink);
}
.form-row textarea{ min-height: 110px; resize: vertical; }
.form-success{
  display:none; border:1px solid var(--green); background: var(--green-soft);
  border-radius:10px; padding:16px 18px; font-weight:600; margin-top: 14px; color: var(--green);
}
.form-success.show{ display:block; }

/* ---------- footer ---------- */
footer{ border-top: 1px solid var(--line); background: var(--paper-2); color: var(--ink); padding: 48px 0 28px; }
footer .foot-grid{ display:grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
footer h4{ color: var(--ink); font-family:'Inter'; font-size:12px; text-transform:uppercase; letter-spacing:.06em; margin-bottom:14px; font-weight:700; }
footer a{ color: var(--ink-soft); text-decoration:none; }
footer a:hover{ color: var(--ink); text-decoration:underline; }
footer ul{ list-style:none; margin:0; padding:0; display:flex; flex-direction:column; gap:10px; font-size:14px; }
footer .foot-bottom{ margin-top:40px; padding-top:20px; border-top:1px solid var(--line); font-size:12.5px; color: var(--ink-soft); display:flex; justify-content:space-between; flex-wrap:wrap; gap:10px; }
@media (max-width: 860px){ footer .foot-grid{ grid-template-columns: 1fr 1fr; } }

/* ---------- misc page bits ---------- */
.page-header{ padding: 56px 0 24px; }
.page-header .eyebrow{ margin-bottom: 10px; }
.two-col{ display:grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items:start; }
@media (max-width:860px){ .two-col{ grid-template-columns:1fr; } }

.stat .num{ font-weight:800; font-size: 36px; color: var(--brand-deep); }
.stat .label{ font-size:14px; color: var(--ink-soft); }

ul.check{ list-style:none; padding:0; margin:0; display:flex; flex-direction:column; gap:12px; }
ul.check li{ padding-left: 28px; position:relative; color: var(--ink-soft); }
ul.check li::before{ content:"✓"; position:absolute; left:0; top:0; color: var(--green); font-weight:800; }

.person-note{
  display:flex; gap:16px; align-items:flex-start;
  border:1px solid var(--line); border-radius:var(--radius); padding:20px; margin: 24px 0;
  background: var(--paper-3);
}
.person-note .pnote-mark{ font-size:22px; font-weight:800; color: var(--brand-deep); flex-shrink:0; }

/* ---------- live map page ---------- */
.map-page-header{ padding: 32px 0 18px; }
.map-shell{
  display:grid; grid-template-columns: 320px 1fr;
  border-top: 1px solid var(--line);
  height: calc(100vh - 68px - 90px);
  min-height: 480px;
}
#live-map{ width:100%; height:100%; background:#dfe6ee; }
/* This #live-map rule must come BEFORE the mobile media query below —
   otherwise it wins the cascade on small screens (equal specificity, later
   source order) and overrides the 62vh mobile height with height:100% of a
   height:auto parent, which collapses the map to 0px. That was the real
   cause of "map doesn't work on mobile": the map wasn't broken, it was
   invisible. */
@media (max-width: 900px){
  .map-shell{ grid-template-columns: 1fr; height:auto; }
  .map-sidebar{ order:2; }
  #live-map{ height: 62vh; order:1; }
}
.map-sidebar{
  border-right: 1px solid var(--line);
  background: var(--paper-3);
  padding: 22px;
  overflow-y:auto;
}
.map-sidebar h3{ font-size:16px; margin-bottom:10px; }
.map-search{ display:flex; gap:8px; margin-bottom:16px; }
.map-search input{
  flex:1; padding:10px 12px; border:1px solid var(--line); border-radius:8px;
  font-family:'Inter'; font-size:14px; background: var(--paper); color: var(--ink);
}
.map-search button{
  border:1px solid var(--line); background: var(--paper-2); border-radius:8px; padding:0 12px; cursor:pointer;
}
.map-filters{ display:flex; flex-direction:column; gap:10px; margin-bottom:20px; }
.map-check{ display:flex; align-items:center; gap:10px; font-size:14px; font-weight:500; cursor:pointer; }
.map-check input{ width:17px; height:17px; accent-color: var(--brand); }
.map-legend-row{ display:flex; align-items:center; gap:8px; font-size:13px; color:var(--ink-soft); margin-bottom:6px; }
.map-legend-row .swatch{ width:10px; height:10px; border-radius:50%; flex-shrink:0; }
.map-status{ font-family:'IBM Plex Mono'; font-size:11.5px; color: var(--ink-soft); padding-top:12px; margin-top:16px; }
.map-disclaimer{
  font-size:13px; color: var(--ink-soft); background: var(--paper-2);
  border-radius:10px; padding:14px; margin-bottom:18px;
}
.mode-tabs{ display:flex; gap:6px; margin-bottom:18px; background: var(--paper-2); padding:4px; border-radius:10px; }
.mode-tab{
  flex:1; padding:8px 10px; border:none; border-radius:8px;
  background: transparent; font-family:'Inter'; font-weight:600; font-size:13px; cursor:pointer;
  color: var(--ink-soft);
}
.mode-tab.active{ background: var(--paper-3); color: var(--ink); box-shadow: var(--shadow-sm); }

.chip-row{ display:flex; flex-wrap:wrap; gap:8px; margin-bottom:6px; }
.route-chip, .priority-btn, .explore-fuel-chip, .report-fuel-chip, .report-queue-chip, .range-unit-chip, .range-style-chip, .explore-open-toggle{
  padding:7px 13px; border:1px solid var(--line); border-radius:999px;
  background: var(--paper-3); font-family:'Inter'; font-weight:500; font-size:12.5px; cursor:pointer;
  color: var(--ink-soft);
  transition: background-color .15s ease, border-color .15s ease, color .15s ease, transform .1s ease;
}
.route-chip:active, .priority-btn:active, .explore-fuel-chip:active, .report-fuel-chip:active, .report-queue-chip:active, .range-unit-chip:active, .range-style-chip:active, .explore-open-toggle:active{ transform: scale(.96); }
.route-chip.active, .explore-fuel-chip.active, .report-fuel-chip.active, .report-queue-chip.active, .range-unit-chip.active, .range-style-chip.active, .explore-open-toggle.active{ background: var(--green-soft); border-color: var(--green); color: var(--green); }
.priority-btn.active{ background: var(--ink); border-color: var(--ink); color: #fff; }
html[data-theme="dark"] .priority-btn.active{ background: var(--brand); border-color: var(--brand); color: var(--ink); }
.report-block, .review-block{ border-top: 1px solid var(--line); margin-top: 10px; padding-top: 10px; }

/* ---------- range calculator / saved stations ---------- */
.range-calc{ border-top: 1px solid var(--line); margin-top: 14px; padding-top: 14px; }
.range-calc-body, .saved-stations-body{ animation: panelFadeIn .2s ease; }
.range-calc-km{ font-size:20px; font-weight:800; margin:0; color: var(--brand-deep); }
.saved-stations-body{ margin-top:10px; }
.saved-station-goto:hover{ color: var(--brand-deep); }
.saved-station-remove{ color: var(--ink-soft); }
.saved-station-remove:hover{ color: var(--busy, #E0483C); }
.popup-actions .btn{ font-weight:600; }
.explore-result-item{ font-family:'Inter'; }

/* ---------- purposeful motion ---------- */
.mode-tab{ transition: background-color .18s ease, color .18s ease, box-shadow .18s ease; }
.theme-toggle svg{ transition: opacity .15s ease; }
.theme-toggle.spin svg{ animation: toggleSpin .35s ease; }
@keyframes toggleSpin{ from{ transform: rotate(-90deg) scale(.55); opacity:.3; } to{ transform: rotate(0) scale(1); opacity:1; } }
.panel-anim{ animation: panelFadeIn .25s ease; }
@keyframes panelFadeIn{ from{ opacity:0; transform: translateY(4px); } to{ opacity:1; transform: translateY(0); } }

@media (prefers-reduced-motion: reduce){
  *, *::before, *::after{
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
}

.pin-badge{
  width:28px; height:28px; border-radius:50% 50% 50% 4px;
  display:flex; align-items:center; justify-content:center;
  transform: rotate(45deg); box-shadow: 0 2px 6px rgba(0,0,0,.25);
}
.pin-badge svg{ transform: rotate(-45deg); width:14px; height:14px; }
.pin-badge.fuel{ background: var(--amber); }
.pin-badge.ev{ background:#4a8fe7; }
.pin-badge.dim{ opacity:.55; }

.search-area-btn{
  position:absolute; top:14px; left:50%; transform:translateX(-50%);
  z-index:401; background: var(--ink); color:#fff;
  border:none; border-radius:999px; padding:9px 18px; font-weight:600; font-size:13px;
  box-shadow: var(--shadow); cursor:pointer; display:none;
}
.search-area-btn.show{ display:block; }
.map-zoom-hint{
  position:absolute; top:14px; left:50%; transform:translateX(-50%);
  z-index:401; background: var(--paper-3); border:1px solid var(--line); border-radius:999px;
  padding:9px 18px; font-size:13px; font-weight:500; box-shadow: var(--shadow-sm); color: var(--ink);
}
.leaflet-popup-content-wrapper{ border-radius:10px; box-shadow: var(--shadow); background: var(--paper-3); color: var(--ink); }
.leaflet-popup-tip{ background: var(--paper-3); }
.popup-card{ font-family:'Inter'; min-width:200px; }
.popup-card h4{ font-size:15px; font-weight:700; margin:0 0 6px; }
.popup-card .ptag{ display:inline-block; font-family:'IBM Plex Mono'; font-size:10px; text-transform:uppercase; background:var(--paper-2); border-radius:999px; padding:2px 8px; margin:0 4px 4px 0; color: var(--ink-soft); }
.popup-card p{ margin:4px 0; font-size:13px; color:var(--ink-soft); }
.popup-card a{ font-size:12px; font-weight:600; text-decoration:underline; }
html[data-theme="dark"] #live-map .leaflet-tile-pane{ filter: invert(1) hue-rotate(180deg) brightness(0.92) contrast(0.92); }

.marker-cluster-small, .marker-cluster-medium, .marker-cluster-large{
  background: rgba(255,122,47,.25) !important;
}
.marker-cluster-small div, .marker-cluster-medium div, .marker-cluster-large div{
  background: var(--amber) !important; border:none !important;
  color: #fff !important; font-weight:700 !important; font-family:'IBM Plex Mono';
}

.busy-dot{ width:8px; height:8px; border-radius:50%; display:inline-block; margin-right:6px; }
.busy-dot.quiet{ background: var(--green); }
.busy-dot.moderate{ background: var(--amber); }
.busy-dot.busy{ background: var(--red); }
