/* Homepage 3D Liberia map: controls, county panel, search bar and the lightweight 2D map. Uses the site's navy, blue, purple and cyan. */
.lcmap-canvas { touch-action: pan-y; outline-offset: -4px; }
.lcmap-canvas:focus-visible { outline: 2px solid var(--cyan); }
.hero.has-lcmap .hero-spacer { position: relative; min-height: 400px; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 6px; }
.hero.has-lcmap { min-height: 520px; }
.hero.has-lcmap .hero-inner { min-height: 520px; }
.lcmap-controls { display: flex; gap: 6px; padding: 6px; border-radius: 999px; background: rgba(6, 13, 43, .72); border: 1px solid rgba(80, 160, 255, .55); backdrop-filter: blur(6px); box-shadow: 0 0 18px rgba(47, 139, 255, .35); pointer-events: auto; }
.lcmap-btn { width: 44px; height: 44px; border: 0; border-radius: 50%; display: grid; place-items: center; cursor: pointer; font-size: 15px; color: #fff; background: rgba(47, 139, 255, .22); transition: background .15s, transform .15s; }
.lcmap-btn[hidden] { display: none; }
.lcmap-btn:hover { background: linear-gradient(135deg, #2f8bff, #8b3dff); transform: translateY(-1px); }
.lcmap-btn:focus-visible { outline: 2px solid var(--cyan); outline-offset: 2px; }
.lcmap-hint { margin: 0; font-size: 12px; color: #d5e2ff; text-shadow: 0 1px 4px rgba(0, 0, 0, .8); pointer-events: none; text-align: center; }

.county-card.lcmap-open { max-height: 470px; overflow-y: auto; }
.lcmap-state { display: inline-block; margin-top: 6px; padding: 2px 9px; border-radius: 999px; font-size: 11.5px; font-weight: 600; background: rgba(255, 194, 26, .16); color: #ffe08a; border: 1px solid rgba(255, 194, 26, .4); }
.lcmap-state.verified { background: rgba(24, 201, 100, .16); color: #a8f1c6; border-color: rgba(24, 201, 100, .45); }
.lcmap-over { font-size: 12.5px; line-height: 1.4; opacity: .9; margin: 8px 0 0; }
.county-card .lcmap-counts li a { justify-content: flex-start; }
.county-card .lcmap-counts li a b { margin-left: auto; font-family: var(--font-d); color: var(--cyan); }
.county-card .lcmap-counts li a.on { color: var(--cyan); font-weight: 700; }
.lcmap-items { margin: 0 0 10px; font-size: 13px; }
.lcmap-items h4 { margin: 0 0 4px; font-size: 14px; font-family: var(--font-d); }
.lcmap-items a { display: block; padding: 4px 0; border-bottom: 1px solid rgba(255, 255, 255, .08); }
.lcmap-items a:hover { color: var(--cyan); }
.lcmap-items small { font-size: 11px; opacity: .8; }
.lcmap-items .muted { display: block; margin-top: 5px; color: #b9c8ee; }
.lcmap-clear { width: 100%; margin-top: 7px; min-height: 36px; background: none; border: 1px solid rgba(255, 255, 255, .28); border-radius: 10px; color: #fff; cursor: pointer; font-size: 13px; }
.lcmap-clear:hover { border-color: var(--cyan); color: var(--cyan); }

/* Test package notice (only shown when the server is in test mode) */
.lc-testbar { position: relative; z-index: 2000; padding: 7px 14px; text-align: center; font-size: 12.5px; line-height: 1.35; color: #1b1300; background: #ffc21a; border-bottom: 2px solid #e08a00; }

/* Search and filters under the map */
.lcmap-bar { position: relative; z-index: 3; color: #fff; background: linear-gradient(100deg, #081447, #1a1c74 60%, #2a1a80); border-top: 1px solid rgba(80, 160, 255, .5); border-bottom: 1px solid rgba(80, 160, 255, .25); padding: 12px 70px; }
.lcmap-search { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.lcmap-search label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.lcmap-search select, .lcmap-search input { min-height: 44px; padding: 8px 12px; border-radius: 10px; color: #fff; background: rgba(6, 13, 43, .65); border: 1px solid rgba(120, 170, 255, .5); font: inherit; font-size: 14px; }
.lcmap-search select option { color: #0a1650; background: #fff; }
.lcmap-search input { flex: 1 1 200px; min-width: 150px; }
.lcmap-search input::placeholder { color: #b9c8ee; }
.lcmap-search select:focus-visible, .lcmap-search input:focus-visible { outline: 2px solid var(--cyan); outline-offset: 1px; }
.lcmap-search .btn { min-height: 44px; }
.lcmap-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 9px; align-items: center; }
.lcmap-chips .chip { min-height: 36px; background: rgba(255, 255, 255, .08); color: #d5e2ff; border: 1px solid rgba(255, 255, 255, .22); }
.lcmap-chips .chip.on { background: linear-gradient(135deg, #2f8bff, #8b3dff); color: #fff; border-color: transparent; }
.lcmap-chips .chip:focus-visible { outline: 2px solid var(--cyan); outline-offset: 1px; }
.lcmap-note { margin: 8px 0 0; font-size: 11.5px; color: #aebde6; }
.lcmap-status { margin: 8px 0 0; font-size: 13px; min-height: 0; }
.lcmap-status:empty { display: none; }
.lcmap-status.warn { color: #ffe08a; }
.lcmap-status.ok { color: #a8f1c6; }
.lcmap-link { background: none; border: 0; padding: 4px 2px; color: var(--cyan); text-decoration: underline; cursor: pointer; font: inherit; }
.lcmap-bar + .ai-strip { margin-top: 12px; }
.lcmap-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* Lightweight 2D map */
.lcmap-svgwrap { position: absolute; inset: 14px 0 74px; display: flex; justify-content: center; align-items: center; pointer-events: none; }
.lcmap-svg { height: 100%; max-width: 100%; pointer-events: auto; filter: drop-shadow(0 0 16px rgba(25, 182, 255, .45)); }
.lcmap-county { fill: var(--fill); stroke: #bff4ff; stroke-width: 1; cursor: pointer; transition: fill .25s; vector-effect: non-scaling-stroke; }
.lcmap-county:hover, .lcmap-county.soft { fill: #6fe6ff; }
.lcmap-county.on { fill: #19d3ff; stroke: #fff; stroke-width: 2; }
.lcmap-county:focus-visible { outline: none; stroke: #ffc21a; stroke-width: 3; }
.lcmap-svglabel { fill: #fff; font: 700 13px var(--font-d); text-anchor: middle; dominant-baseline: middle; paint-order: stroke; stroke: rgba(6, 13, 43, .9); stroke-width: 3px; pointer-events: none; }
.lcmap-svgmark { cursor: pointer; }
.lcmap-svgmark circle { stroke-width: 1.5; }
.lcmap-svgmark:focus-visible circle { stroke: #ffc21a; stroke-width: 3; }
.lcmap-svguser { fill: #ffc21a; stroke: #fff; stroke-width: 2; }

@media (min-width: 1181px) {
  /* Laptop widths: keep the text, map and county card side by side (the site's own rule would hide the map column here). */
  .hero.has-lcmap .hero-inner { grid-template-columns: minmax(280px, 1fr) minmax(0, 1.05fr) 250px; padding: 30px 64px 34px; }
}
@media (max-width: 1180px) {
  /* The map gets its own area instead of sitting behind the text. */
  .hero.has-lcmap .hero-spacer { display: flex; min-height: 400px; order: 2; }
  .hero.has-lcmap .hero-inner { grid-template-columns: 1fr; padding: 28px 22px 26px; }
  .hero.has-lcmap .county-card { display: block; order: 3; }
  .hero.has-lcmap .js-hero-text { order: 1; }
  .hero.has-lcmap canvas.three { bottom: auto; }
  .hero.has-lcmap .arrow, .hero.has-lcmap .dots { display: none; }
  .hero.has-lcmap .lcmap-svgwrap { inset: auto 0; }
  .county-card.lcmap-open { max-height: none; }
  .lcmap-bar { padding: 12px 22px; }
}
@media (max-width: 480px) {
  .lcmap-btn { width: 40px; height: 40px; font-size: 14px; }
  .lcmap-controls { gap: 3px; padding: 4px; }
  .lcmap-search select, .lcmap-search input, .lcmap-search .btn { flex: 1 1 100%; }
  .lcmap-hint { font-size: 11px; }
}
@media (prefers-reduced-motion: reduce) {
  .lcmap-btn, .lcmap-county { transition: none; }
}
