/* Leonida guide map (/leonida-map/). The map has its own Night and Day
   palettes (set on .lm-map[data-theme]); the page around it stays dark like
   the rest of the site. Region colours: --pg Port Gellhorn, --mk Mount
   Kalaga, --am Ambrosia, --gr Grassrivers, --vc Vice City, --lk the Keys.
   Road colours are solid (not see-through) so overlapping lines never show
   darker joins; --road-edge and --hw-edge are the thin edges along them. */

.lm-page, .lm-map[data-theme="night"] {
  --sea-hi: #0F2230; --sea-lo: #070D13; --wave: rgba(130,228,180,.07); --shelf: rgba(95,211,224,.06);
  --land: #161C25; --coast: #82E4B4; --mapink: #F2F4F8; --mapmuted: #9AA3B2; --halo: #0B0D12;
  --gridline: rgba(255,255,255,.05); --card: rgba(11,13,18,.9); --river: #3E8FB0; --lake: #10283A; --town: rgba(242,244,248,.10); --road: #7A808A; --street: #5A606A; --hw: #E7C35F; --road-edge: #0B0F15; --hw-edge: #6E5520;
  --tile-bright: .62; --tile-sat: -.15; --tile-contrast: .3; --tile-sea: #10263D; --bldg: rgba(242,244,248,.16); --wet: #1F4A45;
  --pg: #E8915F; --mk: #5CC491; --am: #E7C35F; --gr: #4CC2B8; --vc: #FF6B9A; --lk: #7FD6F0; --sand: #E9D7A8;
  --fill: .13; --tex: .22;
  --pin-reveal: #F2F4F8; --pin-landmark: #82E4B4; --pin-activity: #FFB347; --pin-player: #8FD3FF;
}
.lm-map[data-theme="day"] {
  --sea-hi: #DCEEF0; --sea-lo: #BFDCE2; --wave: rgba(20,70,90,.10); --shelf: rgba(255,255,255,.28);
  --land: #F4EEE0; --coast: #1B2030; --mapink: #141821; --mapmuted: #5A6372; --halo: #F4EEE0;
  --gridline: rgba(20,24,33,.07); --card: rgba(250,247,240,.94); --river: #4A9CC2; --lake: #A9D3E0; --town: rgba(20,24,33,.08); --road: #FFFFFF; --street: #FFFFFF; --hw: #E9B949; --road-edge: #D6CAB2; --hw-edge: #B8892C;
  --tile-bright: 1; --tile-sat: 0; --tile-contrast: 0; --tile-sea: #2C68A6; --bldg: rgba(20,24,33,.16); --wet: #B9DCCB;
  --pg: #B65A2C; --mk: #2E7D56; --am: #A98314; --gr: #1C8A83; --vc: #D12E66; --lk: #2A9CC0; --sand: #E8D3A0;
  --fill: .15; --tex: .25;
}

.lm-head { padding-top: 34px; }
.lm-head h1 { margin: 10px 0 10px; font-size: clamp(34px, 6vw, 60px); }
.lm-head .lead { margin: 0 0 22px; font-size: 17px; }

.lm-stage { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 20px; align-items: start; padding-bottom: 60px; }

/* ---------- The map frame ---------- */

.lm-map { position: relative; border-radius: var(--radius); overflow: hidden; background: var(--sea-lo); border: 1px solid var(--line); box-shadow: 0 30px 80px -40px rgba(0,0,0,.8); }
.lm-viewport { position: relative; aspect-ratio: 1100 / 1300; max-height: 88vh; width: 100%; overflow: hidden; touch-action: pan-y; cursor: grab; user-select: none; -webkit-user-select: none; background: radial-gradient(120% 90% at 70% 75%, var(--sea-hi), var(--sea-lo)); }
.lm-viewport:active { cursor: grabbing; }
.zoomed .lm-viewport, .placing .lm-viewport { touch-action: none; }
.lm-world { position: absolute; left: 0; top: 0; transform-origin: 0 0; }
.lm-world > svg, .lm-world > img { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }

.lm-tools { position: absolute; z-index: 2; top: 12px; left: 12px; right: 12px; display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; pointer-events: none; }
.lm-tools > * { pointer-events: auto; }
.lm-seg, .lm-zoom { display: flex; gap: 2px; padding: 3px; border-radius: 999px; background: var(--card); border: 1px solid var(--gridline); }
.lm-zoom { flex-direction: column; border-radius: 16px; }
.lm-tools button { min-width: 40px; height: 36px; padding: 0 14px; border: 0; border-radius: 999px; background: transparent; color: var(--mapink); font: 700 13px/1 var(--display); cursor: pointer; }
.lm-zoom button { padding: 0; width: 40px; border-radius: 12px; font-size: 18px; }
.lm-tools button[aria-pressed="true"] { background: var(--accent); color: var(--logo-black); }
.lm-tools button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.lm-strip { position: absolute; z-index: 2; left: 12px; bottom: 12px; margin: 0; max-width: calc(100% - 24px); padding: 7px 12px; border-radius: 999px; background: var(--card); color: var(--mapmuted); font-size: 11.5px; line-height: 1.3; }

/* ---------- Base art ---------- */

.lm-sea-hi { stop-color: var(--sea-hi); }
.lm-sea-lo { stop-color: var(--sea-lo); }
.lm-wave { fill: none; stroke: var(--wave); stroke-width: 1.4; }
.lm-shelf use { fill: none; stroke: var(--shelf); stroke-linejoin: round; stroke-linecap: round; }
.lm-land { fill: var(--land); }
.lm-r-fill { fill: var(--c); fill-opacity: var(--fill); transition: fill-opacity .2s; }
.lm-r-tex { opacity: var(--tex); }
.lm-contours ellipse { fill: none; stroke: var(--mk); stroke-opacity: .45; stroke-width: 1.3; }
.lm-borders path { fill: none; stroke: var(--mapmuted); stroke-opacity: .55; stroke-width: 1.4; stroke-dasharray: 2 6; stroke-linecap: round; }
.lm-rivers path { fill: none; stroke: var(--river); stroke-width: 1.3; stroke-linecap: round; stroke-linejoin: round; opacity: .85; }
.lm-towns path { fill: var(--town); }
.lm-roads path { fill: none; stroke: var(--road); stroke-width: .8; stroke-linecap: round; stroke-linejoin: round; }
.lm-hw path { fill: none; stroke: var(--hw); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; opacity: .9; }
.lm-lake { fill: var(--lake); stroke: var(--river); stroke-width: 1.2; }
.lm-coast { fill: none; stroke: var(--coast); stroke-width: 1.6; stroke-linejoin: round; }
.lm-bridge { stroke: var(--mapmuted); stroke-width: 1.6; stroke-dasharray: 5 5; }

/* Selected region glows; the others step back. */
.lm-region { cursor: pointer; }
.has-sel .lm-region:not(.on) .lm-r-fill { fill-opacity: calc(var(--fill) * .45); }
.lm-region.on .lm-r-fill { fill-opacity: calc(var(--fill) * 2.2); }

/* ---------- Overlay ---------- */

.lm-over { pointer-events: none; }
.lm-over .lm-label { pointer-events: auto; }
.lm-grid path { stroke: var(--gridline); stroke-width: 1; }
.lm-ticks text { fill: var(--mapmuted); font: 700 13px var(--display); text-anchor: middle; opacity: .7; }
.lm-summit path { fill: var(--mapink); opacity: .8; }

.lm-label { cursor: pointer; outline: none; }
.lm-label text { paint-order: stroke; stroke: var(--halo); stroke-width: 5px; stroke-linejoin: round; }
.lm-num-bg { fill: var(--c); stroke: var(--halo); stroke-width: 3; }
.lm-num { fill: var(--halo); stroke: none !important; font: 700 16px var(--display); text-anchor: middle; }
.lm-name { fill: var(--mapink); font: 700 21px var(--display); letter-spacing: .12em; }
.lm-label.on .lm-name, .lm-label:focus-visible .lm-name { fill: var(--c); }
.lm-label.on .lm-num-bg { stroke: var(--mapink); }

.lm-c-ring { fill: var(--card); stroke: var(--mapmuted); stroke-opacity: .5; }
.lm-c-ring2 { fill: none; stroke: var(--mapmuted); stroke-opacity: .3; stroke-dasharray: 1 4; }
.lm-c-n { fill: var(--accent); }
.lm-map[data-theme="day"] .lm-c-n { fill: var(--vc); }
.lm-c-s { fill: var(--mapmuted); }
.lm-c-ew { fill: var(--mapmuted); opacity: .45; }
.lm-compass text { fill: var(--mapink); font: 700 18px var(--display); text-anchor: middle; }

.lm-title rect { fill: var(--card); stroke: var(--gridline); }
.lm-t-kick { fill: var(--accent); font: 700 12px var(--display); letter-spacing: .16em; }
.lm-map[data-theme="day"] .lm-t-kick { fill: #1E7A55; }
.lm-t-name { fill: var(--mapink); font: 700 56px var(--display); letter-spacing: -.01em; }
.lm-t-sub { fill: var(--mapmuted); font: 500 15px var(--text); }
.lm-t-rule { stroke: var(--gridline); stroke-width: 2; }
.lm-t-note { fill: var(--mapink); font: 500 13.5px var(--text); }
.lm-t-note.dim { fill: var(--mapmuted); font-size: 11.5px; }

/* ---------- Side panel ---------- */

.lm-side { display: grid; gap: 14px; }
.lm-panel { padding: 18px; border-radius: var(--radius); background: var(--panel); border: 1px solid var(--line); }
.lm-h { display: flex; align-items: center; gap: 10px; margin: 0 0 12px; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }

.lm-regions { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.lm-regions button { display: flex; align-items: center; gap: 10px; width: 100%; padding: 9px 10px; border: 1px solid transparent; border-radius: 12px; background: none; color: var(--ink); font: 600 15px var(--text); text-align: left; cursor: pointer; }
.lm-regions button:hover { background: var(--panel2); }
.lm-regions button[aria-pressed="true"] { background: var(--panel2); border-color: var(--c); }
.lm-sw { width: 22px; height: 22px; border-radius: 7px; background: var(--c); opacity: .9; }
.lm-n { width: 18px; color: var(--muted); font: 700 13px var(--display); font-variant-numeric: tabular-nums; }

.lm-legal p { margin: 0 0 8px; color: var(--muted); font-size: 12.5px; line-height: 1.5; }
.lm-legal p:last-child { margin: 0; }
.lm-legal strong { color: var(--ink); }

/* ---------- Search and filters ---------- */

.lm-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-bottom: 14px; }
.lm-search { position: relative; flex: 1 1 260px; max-width: 360px; }
.lm-search .input { padding-left: 40px; border-radius: 999px; background: var(--panel) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' fill='none' stroke='%239AA3B2' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='8' cy='8' r='6'/%3E%3Cpath d='m13 13 4 4'/%3E%3C/svg%3E") no-repeat 15px 50%; }
.lm-results { position: absolute; z-index: 5; top: calc(100% + 6px); left: 0; right: 0; margin: 0; padding: 6px; list-style: none; border-radius: 16px; background: var(--panel2); border: 1px solid var(--line); box-shadow: 0 20px 40px -20px rgba(0,0,0,.8); }
.lm-results button { display: grid; width: 100%; padding: 9px 12px; border: 0; border-radius: 10px; background: none; color: var(--ink); text-align: left; cursor: pointer; font: 600 15px var(--text); }
.lm-results button:hover, .lm-results button:focus-visible { background: var(--panel); }
.lm-results span { color: var(--muted); font-size: 12.5px; font-weight: 400; }
.lm-none { padding: 10px 12px; color: var(--muted); font-size: 14px; }
.lm-chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; flex: 1 1 auto; }
.lm-chips::-webkit-scrollbar { display: none; }
.lm-chip { --k: var(--accent); display: inline-flex; align-items: center; gap: 8px; flex: none; padding: 8px 12px; border: 1px solid var(--line); border-radius: 999px; background: var(--panel); color: var(--muted); font: 600 13.5px var(--text); cursor: pointer; }
.lm-chip[data-show="reveal"] { --k: var(--pin-reveal); }
.lm-chip[data-show="landmark"] { --k: var(--pin-landmark); }
.lm-chip[data-show="activity"] { --k: var(--pin-activity); }
.lm-chip[data-show="player"] { --k: var(--pin-player); }
.lm-chip[aria-pressed="true"], .lm-chip[aria-selected="true"] { color: var(--ink); border-color: rgba(255,255,255,.22); background: var(--panel2); }
.lm-chip[aria-pressed="false"] .lm-dot { background: transparent; }
.lm-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--k); box-shadow: inset 0 0 0 2px var(--k); }
.lm-count { color: var(--muted); font: 700 12px var(--display); font-variant-numeric: tabular-nums; }

/* ---------- Pins (screen-sized, above the art) ---------- */

.lm-gl { position: absolute; inset: 0; }
.lm-gl .maplibregl-canvas { outline: none; }
.lm-nogl { position: absolute; inset: 0; display: grid; place-items: center; margin: 0; padding: 24px; text-align: center; color: var(--mapmuted); }
/* Pins are map markers (MapLibre positions them); the pin's tip is the spot. */
.lm-mpin { --k: var(--pin-landmark); width: 34px; height: 34px; padding: 0; border: 0; background: none; cursor: pointer; }
.lm-mpin[hidden] { display: none; }
.lm-mpin[data-kind="reveal"] { --k: var(--pin-reveal); }
.lm-mpin[data-kind="activity"] { --k: var(--pin-activity); }
.lm-mpin[data-kind="player"] { --k: var(--pin-player); }
.lm-mpin span { position: absolute; left: 7px; top: 3px; width: 20px; height: 20px; border-radius: 50% 50% 50% 0; transform: rotate(-45deg); background: var(--k); box-shadow: 0 0 0 2.5px var(--halo), 0 4px 10px rgba(0,0,0,.45); transition: transform .15s; }
.lm-mpin span::after { content: ""; position: absolute; inset: 6px; border-radius: 50%; background: var(--halo); }
.lm-mpin[data-kind="reveal"] span::after { inset: 5px; background: var(--vc); }
.lm-mpin:hover span, .lm-mpin.on span { transform: rotate(-45deg) scale(1.25); }
.lm-mpin:focus-visible { outline: 2px solid var(--accent); border-radius: 8px; }

/* Crosshair for placing a suggestion. */
.lm-cross { display: none; position: absolute; left: 50%; top: 50%; width: 46px; height: 46px; margin: -23px 0 0 -23px; border: 2px solid var(--accent); border-radius: 50%; pointer-events: none; box-shadow: 0 0 0 4px rgba(0,0,0,.35); }
.lm-cross::before, .lm-cross::after { content: ""; position: absolute; background: var(--accent); }
.lm-cross::before { left: 50%; top: -12px; bottom: -12px; width: 2px; margin-left: -1px; }
.lm-cross::after { top: 50%; left: -12px; right: -12px; height: 2px; margin-top: -1px; }
.placing .lm-cross { display: block; }
.placing .lm-mpin, .placing .lm-cluster { opacity: .35; pointer-events: none; }

/* A group of pins: tap to zoom in and split it. */
.lm-cluster { min-width: 36px; height: 36px; padding: 0 8px; border: 0; border-radius: 999px; background: var(--accent); color: var(--logo-black); font: 700 14px/36px var(--display); font-variant-numeric: tabular-nums; box-shadow: 0 0 0 3px var(--halo), 0 0 0 7px rgba(130,228,180,.28), 0 6px 14px rgba(0,0,0,.45); cursor: pointer; transition: transform .15s; }
.lm-cluster:hover { transform: scale(1.08); }
.lm-cluster:focus-visible { outline: 2px solid var(--mapink); outline-offset: 3px; }

/* The map's credit (MapLibre's attribution box), in our colours. */
.lm-map .maplibregl-ctrl-attrib { background: var(--card); color: var(--mapmuted); font: 500 11px/1.4 var(--text); border-radius: 12px; }
.lm-map .maplibregl-ctrl-attrib a { color: var(--mapink); }
.lm-map .maplibregl-ctrl-attrib-button { filter: var(--attrib-icon, invert(1)); }
.lm-map[data-theme="day"] .maplibregl-ctrl-attrib-button { --attrib-icon: none; }
.lm-map .maplibregl-ctrl-bottom-right { bottom: 46px; }
.lm-src { color: var(--muted); font-size: 13px; }

/* ---------- The sheet: a bottom sheet on phones, a card on bigger screens ---------- */

.lm-sheet { position: absolute; z-index: 3; left: 12px; bottom: 56px; width: min(380px, calc(100% - 24px)); max-height: calc(100% - 80px); overflow: auto; border-radius: 20px; background: var(--panel); border: 1px solid rgba(255,255,255,.1); box-shadow: 0 24px 60px -20px rgba(0,0,0,.85); color: var(--ink); animation: lm-up .22s ease-out; }
.lm-sheet[hidden] { display: none; }
@keyframes lm-up { from { transform: translateY(14px); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .lm-sheet { animation: none; } }
.lm-x { position: absolute; z-index: 1; top: 10px; right: 10px; width: 34px; height: 34px; border: 0; border-radius: 50%; background: rgba(5,7,11,.7); color: #fff; font-size: 20px; line-height: 1; cursor: pointer; }
.lm-fig { position: relative; margin: 0; aspect-ratio: 16 / 9; background: var(--panel2); }
.lm-fig img { display: block; width: 100%; height: 100%; object-fit: cover; }
.lm-ph { display: grid; place-items: center; background: repeating-linear-gradient(135deg, rgba(130,228,180,.05) 0 10px, transparent 10px 20px), var(--panel2); }
.lm-ph div { display: grid; justify-items: center; gap: 4px; padding: 12px; text-align: center; }
.lm-ph svg { width: 30px; height: 30px; fill: none; stroke: var(--accent); stroke-width: 1.6; stroke-linejoin: round; }
.lm-ph b { color: var(--ink); font: 700 15px var(--display); }
.lm-ph span { color: var(--muted); font-size: 12.5px; }
.lm-fig figcaption { position: absolute; right: 8px; bottom: 8px; padding: 3px 8px; border-radius: 999px; background: rgba(5,7,11,.72); color: var(--on-image-muted); font-size: 11px; }
.lm-sheet-body { padding: 16px 18px 18px; }
.lm-sheet-k { display: flex; align-items: center; gap: 8px; margin: 0 0 6px; padding-right: 36px; color: var(--muted); font: 700 11px var(--display); letter-spacing: .14em; text-transform: uppercase; }
.lm-sheet-k .lm-dot { --k: inherit; background: var(--k); box-shadow: none; }
.lm-sheet-body[style] .lm-sheet-k { color: var(--k); }
.lm-sheet h3 { margin: 0 0 8px; font-size: 22px; line-height: 1.2; padding-right: 30px; }
.lm-fig + .lm-sheet-body h3 { padding-right: 0; }
.lm-sheet p { margin: 0 0 10px; color: var(--muted); font-size: 14.5px; line-height: 1.5; }
.lm-sheet a:not(.btn) { color: var(--accent); font-weight: 600; font-size: 14px; }
.lm-sheet-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin-top: 12px; }
.lm-share { padding: 0; border: 0; background: none; color: var(--muted); font: 600 14px var(--text); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.lm-first { display: inline-block; padding: 4px 10px; border-radius: 999px; background: rgba(143,211,255,.14); color: #8FD3FF !important; font: 700 12px var(--display) !important; }
.lm-approx { color: var(--mapmuted) !important; font-size: 13px !important; }
.lm-sheet.compact .lm-sheet-body { padding-top: 14px; }

/* Suggest-a-pin form */
.lm-form .input { margin-top: 6px; font-size: 16px; }
.lm-lbl { display: block; margin: 0 0 12px; font-size: 14px; font-weight: 600; }
.lm-kinds { display: flex; gap: 8px; margin: 4px 0 12px; }
.lm-kinds label { flex: 1; display: flex; align-items: center; gap: 8px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; font-size: 14px; font-weight: 600; cursor: pointer; }
.lm-kinds label:has(input:checked) { border-color: var(--accent); background: rgba(130,228,180,.08); }
.lm-check { display: flex; gap: 10px; align-items: flex-start; color: var(--muted); font-size: 13px; line-height: 1.45; }
.lm-check input { margin-top: 3px; accent-color: var(--accent); }
.lm-err { margin: 10px 0 0 !important; color: var(--slop) !important; font-size: 13.5px !important; }
.lm-err:empty { display: none; }

/* Side panel: suggestions */
.lm-suggest p { margin: 0 0 14px; color: var(--muted); font-size: 14px; }
.lm-mine-h { margin: 18px 0 8px; }
.lm-mine { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.lm-mine li { display: grid; gap: 2px; padding: 10px 12px; border-radius: 12px; background: var(--panel2); font-size: 14px; }
.lm-mine span { color: var(--muted); font-size: 12.5px; }
.lm-mine li[data-status="approved"] span { color: var(--accent); }
.lm-mine .lm-share { justify-self: start; font-size: 12.5px; }

/* ---------- Leonida vs real life ---------- */

.lm-vs { padding-bottom: 70px; }
.lm-vs h2 { margin: 10px 0 8px; }
.lm-vs .lead { margin: 0 0 16px; font-size: 16px; }
.lm-vs-tabs { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin-bottom: 14px; }
.lm-vs-tabs .lm-chip[aria-selected="true"] { color: var(--bg); background: var(--accent); border-color: var(--accent); }
.lm-cmp { position: relative; margin: 0; max-width: 960px; aspect-ratio: 16 / 9; overflow: hidden; border-radius: var(--radius); background: var(--panel2); user-select: none; -webkit-user-select: none; }
.lm-cmp > img, .lm-cmp-top img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.lm-cmp-top { position: absolute; inset: 0; clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.lm-cmp-handle { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 3px; margin-left: -1.5px; background: #fff; box-shadow: 0 0 12px rgba(0,0,0,.5); pointer-events: none; }
.lm-cmp-handle::after { content: "‹ ›"; position: absolute; top: 50%; left: 50%; width: 44px; height: 44px; margin: -22px 0 0 -22px; display: grid; place-items: center; border-radius: 50%; background: #fff; color: var(--logo-black); font: 700 16px var(--display); letter-spacing: 2px; }
.lm-cmp input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; touch-action: pan-y; }
.lm-cmp input:focus-visible + * , .lm-cmp:focus-within .lm-cmp-handle::after { outline: 3px solid var(--accent); outline-offset: 2px; }
.lm-cmp-tag { position: absolute; top: 12px; padding: 5px 10px; border-radius: 999px; font: 700 11px var(--display); letter-spacing: .12em; text-transform: uppercase; pointer-events: none; }
.lm-cmp-tag.l { left: 12px; background: var(--accent); color: var(--logo-black); }
.lm-cmp-tag.r { right: 12px; background: rgba(5,7,11,.75); color: #fff; }
.lm-cmp-cap { max-width: 960px; margin: 10px 0 0; color: var(--muted); font-size: 12.5px; line-height: 1.5; }
.lm-cmp-cap b { color: var(--ink); font-weight: 600; }
.lm-cmp-cap a { color: var(--muted); text-decoration: underline; }

/* ---------- Phone first ---------- */

@media (max-width: 960px) {
  .lm-stage { grid-template-columns: 1fr; }
  .lm-side { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 620px) {
  .lm-stage { padding-left: 0; padding-right: 0; }
  .lm-map { border-radius: 0; border-left: 0; border-right: 0; }
  .lm-viewport { aspect-ratio: auto; height: min(74svh, 640px); }
  .lm-side { grid-template-columns: 1fr; padding: 0 18px; }
  .lm-strip { position: static; max-width: none; margin: 0; border-radius: 0; background: var(--sea-lo); font-size: 11px; }
  .lm-bar { padding: 0 18px; }
  .lm-search { max-width: none; flex-basis: 100%; }
  .lm-chips { margin: 0 -18px; padding: 0 18px; }
  .lm-sheet { left: 8px; right: 8px; bottom: 8px; width: auto; max-height: 62%; border-radius: 20px; }
  .lm-fig { aspect-ratio: 2.4 / 1; }
  .lm-sheet-body { padding: 12px 16px 14px; }
  .lm-sheet h3 { font-size: 19px; }
  .lm-cross { top: 36%; }
  .lm-cmp { border-radius: 14px; }
}

/* ---------- Admin: /admin/map/ ---------- */

.am-h { display: flex; align-items: center; gap: 10px; margin: 34px 0 6px; font-size: 22px; }
.am-n { padding: 2px 10px; border-radius: 999px; background: var(--panel2); color: var(--muted); font: 700 13px var(--display); }
.am-list { display: grid; gap: 12px; margin-top: 14px; }
.am-card { display: grid; grid-template-columns: 140px minmax(0, 1fr); gap: 16px; padding: 14px; }
.am-thumb { width: 140px; height: 140px; border-radius: 12px; overflow: hidden; background: var(--sea-lo); }
.am-thumb svg, .am-pick svg { display: block; width: 100%; height: 100%; }
.am-dot circle:first-child { fill: rgba(130,228,180,.25); stroke: var(--accent); stroke-width: 2; }
.am-dot circle:last-child { fill: var(--accent); }
.am-body h3 { margin: 0 0 4px; font-size: 18px; }
.am-body .input { margin-bottom: 8px; }
.am-meta { margin: 0 0 8px; color: var(--muted); font: 700 11px var(--display); letter-spacing: .1em; text-transform: uppercase; }
.am-first { padding: 2px 8px; border-radius: 999px; background: rgba(143,211,255,.14); color: #8FD3FF; font: 700 11px var(--display); vertical-align: middle; }
.am-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.am-form { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 18px; margin-top: 14px; padding: 16px; }
.am-pick { border-radius: 14px; overflow: hidden; background: var(--sea-lo); cursor: crosshair; aspect-ratio: 1100 / 1300; }
.am-fields { display: grid; gap: 10px; align-content: start; }
.am-fields .field { display: grid; gap: 6px; font-size: 14px; font-weight: 600; }
@media (max-width: 760px) {
  .am-form { grid-template-columns: 1fr; }
  .am-card { grid-template-columns: 96px minmax(0, 1fr); }
  .am-thumb { width: 96px; height: 96px; }
}
@media (max-width: 620px) { .lm-map .maplibregl-ctrl-bottom-right { bottom: 0; } }
