/* GTA6Gang Leonida map (v1). Used by the home page hero and /pages/gta6-interactive-map.html.
   Loads after leaflet-1.9.4.css and style.css. Script: /js/leonida-map.js. */
.lmap{position:relative;margin-top:64px;color:var(--cloud);font-family:var(--font-body);font-size:17px;line-height:1.5}
.lmap *{box-sizing:border-box}
.lmap button{font:inherit;color:inherit;cursor:pointer;border:0;background:none;padding:0}
.lmap svg.ic{display:block;flex:none;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}

/* stage */
.lmap-stage{position:relative;height:clamp(480px,72vh,680px);overflow:hidden;background:#33EED3}
.lmap--page .lmap-stage{height:clamp(520px,calc(100vh - 150px),860px)}
.lmap-stage picture{position:absolute;inset:0}
.lmap-poster{position:absolute;inset:0;width:100%;height:100%;max-width:none;object-fit:cover;transition:opacity .4s}
.lmap.is-live .lmap-poster{opacity:0;pointer-events:none}
@media (prefers-reduced-motion:reduce){.lmap-poster{transition:none}}
.lmap-canvas{position:absolute;inset:0;z-index:1;background:transparent}
.lmap .leaflet-container{background:transparent;font-family:var(--font-body);outline-offset:-3px}
/* the script overlaps tiles by a pixel to hide hairlines between them; Leaflet's additive blend would light that pixel up */
.lmap .leaflet-container img.leaflet-tile{mix-blend-mode:normal}

/* pins */
.lmap-pin{--s:28px;width:var(--s);height:var(--s);margin:calc(var(--s)/-2) 0 0 calc(var(--s)/-2);display:grid!important;place-items:center;border-radius:50%;background:#D92B45;border:2px solid #fff;color:#fff;font:700 14px/1 var(--font-body);box-shadow:0 2px 6px rgba(13,17,38,.4);cursor:pointer}
.lmap-pin::after{content:"";position:absolute;inset:-9px;border-radius:50%}
.lmap-pin.lg{--s:36px;font-size:16px}
.lmap-pin.xl{--s:46px;font-size:17px}
.lmap-pin.sm{--s:22px;font-size:12px}
/* v2: once the printed name of its district can be read, a pin sits beside the name (above, right, left or below), not on it */
.lmap-pin.at-t{margin-top:calc(-1*var(--s) - 3px)}
.lmap-pin.at-b{margin-top:3px}
.lmap-pin.at-r{margin-left:3px}
.lmap-pin.at-l{margin-left:calc(-1*var(--s) - 3px)}
/* v2: a square pin = places the guides list for the county without naming a district. The marker itself is a point;
   the label inside it is placed around that point, so it can be any width. */
.lmap-cpin{width:0;height:0}
.lmap-cpin b{position:absolute;left:0;top:0;transform:translate(-50%,-50%);display:grid;place-items:center;min-width:30px;height:28px;padding:0 7px;border-radius:7px;background:#0D1126;border:2px solid #fff;color:#fff;font:700 14px/1 var(--font-body);white-space:nowrap;box-shadow:0 2px 6px rgba(13,17,38,.4);cursor:pointer}
.lmap-cpin b::after{content:"";position:absolute;inset:-9px}
.lmap-cpin.at-t b{transform:translate(-50%,calc(-100% - 3px))}
.lmap-cpin.at-b b{transform:translate(-50%,3px)}
.lmap-cpin.at-r b{transform:translate(3px,-50%)}
.lmap-cpin.at-l b{transform:translate(calc(-100% - 3px),-50%)}
.lmap-cpin.on b{background:#fff;color:#0D1126;border-color:#0D1126;box-shadow:0 0 0 4px #0D1126,0 8px 16px rgba(13,17,38,.5)}
.lmap-sub{margin:14px 8px 2px;font-size:13px;font-weight:700;color:var(--dim)}
.lmap-group+.lmap-sub{margin-top:4px}
.lmap-key{display:grid;gap:6px;margin:16px 8px 6px;padding-top:12px;border-top:1px solid var(--line);font-size:13.5px;line-height:1.35;color:var(--mist)}
.lmap-key span{display:flex;align-items:center;gap:9px}
.lmap-key i{flex:none;width:14px;height:14px;border:2px solid #fff}
.lmap-key .k1{border-radius:50%;background:#D92B45}
.lmap-key .k2{border-radius:4px;background:#0D1126}
/* v2, Places: a readable name is underlined in the colour of its kind and is itself the thing to click */
.lmap path.lmap-name{cursor:pointer;transition:stroke-opacity .12s,fill-opacity .12s}
.lmap path.lmap-name:hover{stroke-opacity:.95;fill-opacity:.16}
.lmap path.lmap-name.on{stroke:#0D1126;stroke-opacity:1;stroke-width:3px;fill-opacity:.22}
.lmap-pin.on{background:#0D1126;border-width:3px;box-shadow:0 0 0 4px #D92B45,0 8px 16px rgba(13,17,38,.5)}
.lmap-dot{width:16px;height:16px;margin:-8px 0 0 -8px;cursor:pointer}
.lmap-dot::after{content:"";position:absolute;inset:-10px;border-radius:50%}
.lmap-dot i{display:block;width:16px;height:16px;border-radius:50%;border:2px solid #fff;box-shadow:0 1px 4px rgba(13,17,38,.45)}
.lmap-dot.on i{box-shadow:0 0 0 4px #0D1126}
.lmap.is-far .lmap-dot i{width:10px;height:10px;margin:3px;border-width:1.5px}

/* finder panel */
.lmap-finder{position:absolute;z-index:5;left:32px;top:32px;width:400px;max-height:calc(100% - 64px);overflow:auto;scrollbar-width:thin;padding:24px 24px 20px;border-radius:14px;background:var(--ink);border:1px solid var(--line);box-shadow:0 18px 44px rgba(6,9,24,.38)}
.lmap-finder h1{margin:0;font-family:var(--font-display);font-weight:700;font-size:42px;line-height:1;letter-spacing:.2px;color:var(--cloud)}
.lmap-lede{margin:10px 0 0;font-size:16px;line-height:1.4;color:var(--mist)}
.lmap-search{position:relative;margin-top:16px}
.lmap-field{display:flex;align-items:center;gap:10px;height:50px;padding:0 14px;border-radius:9px;background:#fff;color:#59607F}
.lmap-field input{flex:1;min-width:0;height:100%;border:0;outline:0;background:transparent;font:inherit;font-size:16.5px;color:#0D1126;-webkit-appearance:none;appearance:none}
.lmap-field input::placeholder{color:#59607F}
.lmap-field input::-webkit-search-cancel-button{-webkit-appearance:none}
.lmap-field:focus-within{outline:3px solid var(--aqua);outline-offset:2px}
.lmap-results{position:absolute;z-index:6;left:0;right:0;top:56px;max-height:300px;overflow:auto;border-radius:10px;background:#fff;box-shadow:0 16px 36px rgba(13,17,38,.45)}
.lmap-results[hidden]{display:none}
.lmap-results button{display:block;width:100%;padding:10px 14px;text-align:left;border-top:1px solid #E6E9F4;color:#0D1126;font-size:16px;font-weight:600;line-height:1.25}
.lmap-results button:first-child{border-top:0}
.lmap-results button span{display:block;font-size:14px;font-weight:400;color:#4E5677}
.lmap-results button:hover,.lmap-results button:focus{background:#EEF1FA}
.lmap-results p{margin:0;padding:12px 14px;font-size:15px;color:#4E5677}
.lmap-seg{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));margin-top:16px;border:1px solid var(--line);border-radius:9px;overflow:hidden}
.lmap-seg button{height:58px;padding:6px 4px;text-align:center;font-size:14.5px;font-weight:600;line-height:1.15;color:var(--mist)}
.lmap-seg button b{display:block;font-family:var(--font-display);font-weight:700;font-size:23px;line-height:1.05;color:var(--cloud)}
.lmap-seg button+button{border-left:1px solid var(--line)}
.lmap-seg button[aria-pressed="true"]{background:var(--cloud);color:#3D4466}
.lmap-seg button[aria-pressed="true"] b{color:var(--ink)}
.lmap-chips{display:flex;flex-wrap:wrap;gap:8px;margin-top:14px}
.lmap-chip{display:inline-flex;align-items:center;gap:8px;height:44px;padding:0 13px;border-radius:999px;background:var(--deck);border:1px solid var(--line);font-size:15px;font-weight:600;color:var(--cloud);white-space:nowrap}
.lmap .lmap-chip{background:var(--deck);border:1px solid var(--line);padding:0 13px}
.lmap-chip i{width:10px;height:10px;border-radius:50%;flex:none}
/* v2: store kinds and collectible sets carry an icon (one drawing each from Tabler Icons, MIT) in the text colour; places keep their dot */
.lmap svg.ki{flex:none;width:18px;height:18px;color:var(--mist)}
.lmap-chip svg.ki{margin-left:-2px}
.lmap .lmap-chip.on svg.ki{color:var(--ink)}
.lmap-chip span{font-weight:500;color:var(--dim)}
.lmap .lmap-chip.on{background:var(--cloud);border-color:var(--cloud);color:var(--ink)}
.lmap-chip.on span{color:#4A5170}
.lmap-layers{display:none}
.lmap-note{margin:12px 0 0;font-size:14px;line-height:1.4;color:var(--dim)}
.lmap-note a{color:var(--aqua)}

/* stage controls */
.lmap-full{position:absolute;z-index:5;right:32px;top:32px;display:inline-flex;align-items:center;gap:10px;height:54px;padding:0 22px;border-radius:10px;background:var(--grad);color:#fff;font-weight:700;font-size:18px;text-decoration:none;box-shadow:0 12px 28px rgba(13,17,38,.4)}
.lmap .lmap-exit{display:none}
.lmap-zoom{position:absolute;z-index:5;right:32px;top:98px;display:flex;flex-direction:column;border-radius:10px;overflow:hidden;background:var(--ink);border:1px solid var(--line)}
.lmap .lmap-zoom button{display:grid;place-items:center;width:48px;height:48px;color:var(--cloud)}
.lmap .lmap-zoom button+button{border-top:1px solid var(--line)}
.lmap-credit{position:absolute;z-index:5;right:32px;bottom:14px;padding:3px 8px;border-radius:6px;background:rgba(255,255,255,.8);font-size:13px;color:#0D1126}

/* callout (Leaflet popup) and its content */
/* the 1px of padding keeps the card's own margins inside the bubble (with none they collapse through it) */
.lmap .leaflet-popup-content-wrapper{padding:1px;border-radius:12px;background:#fff;color:#0D1126;box-shadow:0 16px 36px rgba(13,17,38,.4)}
.lmap .leaflet-popup-content{margin:15px 17px 15px;max-height:310px;overflow:auto;font:400 15px/1.45 var(--font-body);
  /* a long card scrolls inside the bubble: a soft shadow shows at whichever end has more to read */
  background:linear-gradient(#fff 40%,rgba(255,255,255,0)) top/100% 30px no-repeat local,linear-gradient(rgba(255,255,255,0),#fff 60%) bottom/100% 30px no-repeat local,
    radial-gradient(farthest-side at 50% 0,rgba(13,17,38,.22),rgba(13,17,38,0)) 0 1px/100% 10px no-repeat scroll,radial-gradient(farthest-side at 50% 100%,rgba(13,17,38,.22),rgba(13,17,38,0)) 0 calc(100% - 1px)/100% 10px no-repeat scroll}
.lmap.is-full .leaflet-popup-content{max-height:min(560px,calc(100vh - 250px))}
.lmap .leaflet-popup-tip{background:#fff}
.lmap .leaflet-container a.leaflet-popup-close-button{top:4px;right:4px;width:36px;height:36px;font:400 24px/34px var(--font-body);color:#4E5677}
.lmap-card h3{margin:0 30px 0 0;font-family:var(--font-display);font-weight:700;font-size:28px;line-height:1;letter-spacing:.2px;color:#0D1126}
.lmap-card .sub{margin:4px 0 0;font-size:14.5px;line-height:1.35;color:#4E5677}
.lmap-card ul{list-style:none;margin:12px 0 0;padding:0}
.lmap-card li{padding:7px 0;border-top:1px solid #E6E9F4;font-size:15px}
.lmap-card li b{display:flex;align-items:center;gap:8px;font-weight:700}
.lmap-card li b i{width:9px;height:9px;border-radius:50%;flex:none}
.lmap-card svg.ki{color:#4E5677}
.lmap-sheet .lmap-card svg.ki{color:var(--mist)}
.lmap-card li b a{margin-left:auto;font-size:14px;font-weight:600;color:#5B34D6;text-decoration:none}
.lmap-card li span{display:block;margin-top:2px;font-size:14.5px;line-height:1.35;color:#3D4466}
.lmap-card ul.two{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 14px}
.lmap-card ul.two li{display:flex;align-items:center;gap:7px;padding:6px 0;font-weight:500}
.lmap-card ul.two li i{width:9px;height:9px;border-radius:50%;flex:none}
.lmap-card ul.two li a{color:inherit;text-decoration:underline;text-underline-offset:2px}
.lmap-card ul.two li em{margin-left:auto;font-style:normal;font-weight:700}
.lmap-card .pic{margin:12px 0 0}
.lmap-card .pic img{display:block;width:100%;height:auto;aspect-ratio:16/9;object-fit:cover;border-radius:8px;background:#E6E9F4}
.lmap-card .pic figcaption{margin-top:5px;font-size:13px;line-height:1.35;color:#4E5677}
.lmap-card .fact{margin:10px 0 0;font-size:14.5px;line-height:1.4;color:#0D1126}
.lmap-card .fact b{display:block;font-size:13px;font-weight:700;color:#4E5677}
.lmap-card .near,.lmap-card .pgs{margin-top:12px;padding-top:10px;border-top:1px solid #E6E9F4}
.lmap-card .near span,.lmap-card .pgs span{display:block;margin-bottom:6px;font-size:13px;font-weight:700;color:#4E5677}
.lmap .lmap-card .near a{display:inline-flex;align-items:center;min-height:32px;margin:0 6px 6px 0;padding:0 11px;border-radius:999px;border:1px solid #CDD3E6;font-size:14.5px;font-weight:600;color:#0D1126;text-decoration:none}
.lmap .lmap-card .near a:hover{border-color:#0D1126}
.lmap .lmap-card .pgs a{display:block;padding:5px 0;font-size:15px;font-weight:600;color:#5B34D6;text-decoration:none}
.lmap .lmap-card .pgs a:hover{text-decoration:underline}
.lmap .lmap-card a.go{display:flex;align-items:center;justify-content:center;height:44px;margin-top:12px;border-radius:8px;background:#0D1126;color:#fff;font-weight:700;font-size:15.5px;text-decoration:none}
.lmap .lmap-card a.alt{display:block;margin-top:10px;text-align:center;font-size:15px;font-weight:600;color:#5B34D6;text-decoration:none}
/* reader check row (js/g6vote.js) inside the light desktop card; the phone sheet is dark and uses the script's own colours */
.lmap .g6v-b{padding:0 13px;border:1px solid var(--line);color:var(--cloud)}
.lmap .g6v-b[aria-pressed="true"]{background:var(--aqua);border-color:var(--aqua);color:var(--ink)}
.lmap-pop .g6v{border-top-color:#E6E9F4;color:#4E5677}
.lmap-pop .g6v-q{color:#0D1126}
.lmap .lmap-pop .g6v-b{border-color:#CDD3E6;color:#0D1126}
.lmap .lmap-pop .g6v-b[aria-pressed="true"]{background:#0D1126;border-color:#0D1126;color:#fff}
.lmap-pop .g6v-b:focus-visible,.lmap-pop .g6v-fix:focus-visible{outline-color:#5B34D6}
.lmap .lmap-pop .g6v-fix{color:#5B34D6}
.lmap-sheet{display:none;position:absolute;z-index:6;left:0;right:0;bottom:0;max-height:72%;overflow:auto;padding:18px 16px 18px;border-radius:18px 18px 0 0;background:var(--ink);border-top:1px solid var(--line);box-shadow:0 -10px 30px rgba(13,17,38,.4)}
.lmap .lmap-sheet .close{position:absolute;right:6px;top:6px;display:grid;place-items:center;width:44px;height:44px;color:var(--mist)}
.lmap-sheet .lmap-card h3{margin-right:40px;font-size:30px;color:var(--cloud)}
.lmap-sheet .lmap-card .sub{color:var(--mist)}
.lmap-sheet .lmap-card li{border-color:var(--line);font-size:15.5px}
.lmap-sheet .lmap-card li span{color:var(--mist)}
.lmap-sheet .lmap-card li b a,.lmap .lmap-sheet .lmap-card a.alt{color:var(--aqua)}
.lmap .lmap-sheet .lmap-card a.go{height:48px;background:var(--cloud);color:var(--ink)}
.lmap-sheet .lmap-card .pic img{background:var(--deck)}
.lmap-sheet .lmap-card .pic figcaption,.lmap-sheet .lmap-card .fact b,.lmap-sheet .lmap-card .near span,.lmap-sheet .lmap-card .pgs span{color:var(--mist)}
.lmap-sheet .lmap-card .fact{color:var(--cloud)}
.lmap-sheet .lmap-card .near,.lmap-sheet .lmap-card .pgs{border-color:var(--line)}
.lmap .lmap-sheet .lmap-card .near a{min-height:38px;border-color:var(--line);color:var(--cloud)}
.lmap .lmap-sheet .lmap-card .pgs a{padding:8px 0;color:var(--aqua)}

/* ---- full screen: the whole window ---- */
html.lmap-lock,html.lmap-lock body{overflow:hidden}
.lmap.is-full{position:fixed;inset:0;z-index:2000;margin:0;height:100vh;height:100dvh;background:#33EED3}
.lmap.is-full .lmap-stage{position:absolute;left:372px;right:0;top:0;bottom:0;height:auto}
.lmap.is-full .lmap-finder{position:absolute;left:0;top:0;bottom:0;display:flex;flex-direction:column;width:372px;max-height:none;overflow:visible;padding:18px 20px 14px;border:0;border-right:1px solid var(--line);border-radius:0;box-shadow:none}
.lmap.is-full .lmap-finder h1{font-size:30px}
.lmap.is-full .lmap-lede,.lmap.is-full .lmap-chips,.lmap.is-full .lmap-full{display:none}
.lmap.is-full .lmap-layers{display:block;flex:1;min-height:0;overflow:auto;scrollbar-width:thin;margin:12px -8px 0}
.lmap.is-full .lmap-exit{position:absolute;z-index:5;right:24px;top:24px;display:inline-flex;align-items:center;gap:10px;height:50px;padding:0 18px;border-radius:10px;background:var(--ink);border:1px solid var(--line);font-weight:700;font-size:16.5px;color:var(--cloud)}
.lmap.is-full .lmap-zoom{right:24px;top:86px}
.lmap.is-full .lmap-credit{right:24px}
.lmap-group{display:flex;align-items:center;justify-content:space-between;padding:0 8px;font-size:14px;font-weight:700;color:var(--dim)}
.lmap .lmap-group button{height:44px;padding:0 8px;font-size:14.5px;font-weight:600;color:var(--aqua)}
.lmap .lmap-layer{display:grid;grid-template-columns:22px 18px minmax(0,1fr) auto;gap:10px;align-items:center;width:100%;min-height:44px;padding:0 8px;border-radius:8px;text-align:left;font-size:16px;font-weight:500;color:var(--cloud)}
.lmap .lmap-layer:hover{background:var(--deck)}
.lmap-layer .tick{display:grid;place-items:center;width:22px;height:22px;border-radius:5px;border:2px solid var(--border-hover);color:transparent}
.lmap-layer[aria-pressed="true"] .tick{background:#7A4BEA;border-color:#7A4BEA;color:#fff}
.lmap-layer i{width:11px;height:11px;border-radius:50%;justify-self:center}
.lmap-layer[aria-pressed="false"] svg.ki{opacity:.55}
.lmap-layer b{font-size:15px;font-weight:600;color:var(--dim)}

/* ---- phones ---- */
@media (max-width:760px){
  .lmap{font-size:16px}
  .lmap-finder{position:static;width:auto;max-height:none;overflow:visible;padding:16px 16px 14px;border:0;border-radius:0;box-shadow:none}
  .lmap-finder h1{font-size:34px}
  .lmap-lede{display:none}
  .lmap-search,.lmap-seg{margin-top:12px}
  .lmap-seg button{height:54px;font-size:14px}
  .lmap-seg button b{font-size:21px}
  .lmap-chips{flex-wrap:nowrap;overflow-x:auto;scrollbar-width:none;margin:12px -16px 0;padding:0 16px}
  .lmap-chips::-webkit-scrollbar{display:none}
  .lmap-note{display:none}
  .lmap-stage,.lmap--page .lmap-stage{height:auto;aspect-ratio:1000/1384;max-height:76vh}
  .lmap-zoom{display:none}
  .lmap-full{top:auto;right:12px;bottom:12px;height:50px;padding:0 18px;font-size:16.5px}
  .lmap-credit{right:auto;left:12px;bottom:12px}
  .lmap-sheet{display:block}
  .lmap-sheet[hidden]{display:none}
}

/* ---- tablets and narrow windows held upright: a taller hero ---- */
@media (min-width:761px) and (max-width:1100px) and (orientation:portrait){
  .lmap-stage{height:clamp(560px,74vh,880px)}
}

/* ---- full screen, compact layout: phones, and tablets held upright. The script sets is-compact. ---- */
.lmap.is-full.is-compact .lmap-stage{left:0;aspect-ratio:auto;max-height:none}
.lmap.is-full.is-compact .lmap-finder{z-index:6;right:0;bottom:auto;display:block;width:auto;padding:12px;background:none;border:0;pointer-events:none}
.lmap.is-full.is-compact .lmap-finder>*{pointer-events:auto}
.lmap.is-full.is-compact .lmap-finder h1{display:none}
.lmap.is-full.is-compact .lmap-search{margin:0 56px 0 0}
.lmap.is-full.is-compact .lmap-field{height:48px;box-shadow:0 6px 16px rgba(13,17,38,.3)}
.lmap.is-full.is-compact .lmap-seg{margin-top:8px;background:var(--ink);box-shadow:0 6px 16px rgba(13,17,38,.3)}
.lmap.is-full.is-compact .lmap-seg button{height:52px}
.lmap.is-full.is-compact .lmap-chips{display:flex;flex-wrap:nowrap;overflow-x:auto;scrollbar-width:none;margin:8px -12px 0;padding:0 12px}
.lmap.is-full.is-compact .lmap-chips::-webkit-scrollbar{display:none}
.lmap.is-full.is-compact .lmap-chip{background:var(--ink);box-shadow:0 4px 12px rgba(13,17,38,.3)}
.lmap.is-full.is-compact .lmap-chip.on{background:var(--cloud)}
.lmap.is-full.is-compact .lmap-layers,.lmap.is-full.is-compact .lmap-zoom{display:none}
.lmap.is-full.is-compact .lmap-exit{position:fixed;z-index:7;right:12px;top:12px;width:48px;height:48px;padding:0;justify-content:center;border-radius:9px;box-shadow:0 6px 16px rgba(13,17,38,.3)}
.lmap.is-full.is-compact .lmap-exit span{display:none}
.lmap.is-full.is-compact .lmap-credit{left:12px;right:auto;bottom:10px}
.lmap.is-full.is-compact .lmap-sheet{display:block;position:fixed;max-height:56%}
.lmap.is-full.is-compact .lmap-sheet[hidden]{display:none}
@media (min-width:761px){
  .lmap.is-full.is-compact .lmap-search,.lmap.is-full.is-compact .lmap-seg{max-width:440px}
  .lmap.is-full.is-compact .lmap-sheet{left:16px;right:auto;bottom:16px;width:440px;max-height:60%;border-radius:16px;border:1px solid var(--line)}
}
}
