/* gta6legit.com · interactive map v2 (only loaded on /gta-6-map/ pages) */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.map-app { position: relative; display: grid; grid-template-columns: 356px 1fr; height: calc(100vh - 66px); height: calc(100svh - 66px); min-height: 540px; border-bottom: 1px solid var(--line); }
.map-app:fullscreen { height: 100vh; }
/* GTA 6 pause-map tactical crosshair cursor on the map canvas */
.map-canvas, .map-canvas.leaflet-grab {
  cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32' viewBox='0 0 32 32'%3E%3Cg fill='none' stroke='%230d0d0c' stroke-width='3.2' stroke-linecap='round'%3E%3Ccircle cx='16' cy='16' r='8.5'/%3E%3Cpath d='M16 2.5v5M16 24.5v5M2.5 16h5M24.5 16h5'/%3E%3C/g%3E%3Cg fill='none' stroke='%23ffffff' stroke-width='1.6' stroke-linecap='round'%3E%3Ccircle cx='16' cy='16' r='8.5'/%3E%3Cpath d='M16 2.5v5M16 24.5v5M2.5 16h5M24.5 16h5'/%3E%3C/g%3E%3Ccircle cx='16' cy='16' r='2' fill='%23ff4f9a' stroke='%230d0d0c' stroke-width='1'/%3E%3C/svg%3E") 16 16, crosshair !important;
}
.map-canvas.leaflet-dragging, .map-canvas.leaflet-dragging * {
  cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32' viewBox='0 0 32 32'%3E%3Cg fill='none' stroke='%230d0d0c' stroke-width='3.2' stroke-linecap='round'%3E%3Ccircle cx='16' cy='16' r='7'/%3E%3Cpath d='M16 4v4M16 24v4M4 16h4M24 16h4'/%3E%3C/g%3E%3Cg fill='none' stroke='%23c8f53c' stroke-width='1.8' stroke-linecap='round'%3E%3Ccircle cx='16' cy='16' r='7'/%3E%3Cpath d='M16 4v4M16 24v4M4 16h4M24 16h4'/%3E%3C/g%3E%3Ccircle cx='16' cy='16' r='2.2' fill='%23c8f53c'/%3E%3C/svg%3E") 16 16, grabbing !important;
}
.map-app.drop-mode .map-canvas {
  cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32' viewBox='0 0 32 32'%3E%3Cg fill='none' stroke='%230d0d0c' stroke-width='3.5' stroke-linecap='round'%3E%3Ccircle cx='16' cy='16' r='10'/%3E%3Cpath d='M16 2v7M16 23v7M2 16h7M23 16h7'/%3E%3C/g%3E%3Cg fill='none' stroke='%23c8f53c' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='16' cy='16' r='10'/%3E%3Cpath d='M16 2v7M16 23v7M2 16h7M23 16h7'/%3E%3C/g%3E%3Ccircle cx='16' cy='16' r='2.5' fill='%23c8f53c'/%3E%3C/svg%3E") 16 16, crosshair !important;
}
.map-app.drop-mode .leaflet-marker-pane, .map-app.drop-mode .leaflet-marker-pane * { pointer-events: none !important; }
.map-canvas .leaflet-interactive { cursor: pointer !important; }
.map-canvas { grid-column: 2; grid-row: 1; background: #2f90b0; z-index: 0; }
.map-panel { grid-column: 1; grid-row: 1; overflow-y: auto; background: #121211; border-right: 1px solid var(--line); padding: 16px 15px 24px; z-index: 2; }
.map-panel-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.map-h1 { font-size: 28px; line-height: 1; margin: 0 0 12px; }
.map-close { display: none; background: none; border: 0; color: var(--text); font-size: 30px; line-height: 1; cursor: pointer; padding: 0 4px; }
.map-search input { width: 100%; font: inherit; font-size: 15px; padding: 10px 12px; border-radius: var(--radius); border: 1px solid var(--line); background: #1c1c1a; color: var(--text); }
.map-search input:focus { outline: 2px solid var(--lime); border-color: transparent; }
.map-results { margin-top: 6px; border: 1px solid var(--line); border-radius: var(--radius); max-height: 260px; overflow-y: auto; background: #161614; }
.map-results button { display: block; width: 100%; text-align: left; background: none; border: 0; border-bottom: 1px solid var(--line); color: var(--text); padding: 9px 11px; font: inherit; cursor: pointer; }
.map-results button:hover, .map-results button:focus { background: #23231f; }
.map-results b { display: block; font-size: 15px; }
.map-results span { color: var(--mute); font-size: 13px; }
.mr-none { color: var(--mute); font-size: 14px; padding: 10px; margin: 0; }

/* Play Mode presets + Source pills + Region filter + Group quick-jump */
.map-presets { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 10px; }
.map-presets button { font: inherit; font-size: 11px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; padding: 5px 9px; border-radius: 99px; border: 1px solid var(--line); background: #1c1c1a; color: var(--text); cursor: pointer; transition: background .12s, color .12s, border-color .12s; }
.map-presets button:hover { border-color: var(--lime); }
.map-presets button.on { background: var(--lime); border-color: var(--lime); color: var(--ink); }

.map-filters-row { margin-top: 10px; display: grid; gap: 7px; }
.map-sources { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; background: #181816; padding: 3px; border-radius: 6px; border: 1px solid var(--line); }
.map-sources button { font: inherit; font-size: 11px; font-weight: 800; padding: 5px 3px; border-radius: 4px; border: 0; background: none; color: var(--mute); cursor: pointer; white-space: nowrap; }
.map-sources button:hover { color: var(--text); }
.map-sources button.on { background: #2b2b26; color: var(--lime); }

.map-region-bar { display: flex; gap: 6px; align-items: center; }
.map-region-bar select { flex: 1; font: inherit; font-size: 13px; font-weight: 700; padding: 6px 9px; border-radius: 5px; border: 1px solid var(--line); background: #1c1c1a; color: var(--text); cursor: pointer; }
.map-region-bar select:focus { outline: 2px solid var(--lime); border-color: transparent; }
.map-reset { font: inherit; font-size: 11px; font-weight: 900; text-transform: uppercase; letter-spacing: .05em; padding: 6px 10px; border-radius: 5px; border: 1px solid #ff4f9a; background: rgba(255,79,154,.14); color: #ff7ab8; cursor: pointer; }
.map-reset:hover { background: #ff4f9a; color: #0d0d0c; }
.map-reset[hidden] { display: none; }

.map-progress { margin: 11px 0 6px; }
.map-progress p { margin: 5px 0 0; color: var(--mute); font-size: 12px; }
.map-progress b { color: var(--text); }
.mp-bar { height: 6px; background: #26261f; border-radius: 6px; overflow: hidden; }
.mp-bar span { display: block; height: 100%; background: var(--lime); transition: width .3s ease; }

.map-bulk { display: flex; gap: 6px; margin: 7px 0 6px; }
.map-bulk button { flex: 1; font: inherit; font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; padding: 5px 8px; border-radius: 4px; border: 1px solid var(--line); background: #191917; color: var(--mute); cursor: pointer; }
.map-bulk button:hover { color: var(--text); border-color: var(--mute); }

.map-jump { display: flex; gap: 4px; overflow-x: auto; padding: 4px 0 6px; border-bottom: 1px solid var(--line); scrollbar-width: none; }
.map-jump::-webkit-scrollbar { display: none; }
.map-jump button { display: inline-flex; align-items: center; gap: 4px; flex: none; font: inherit; font-size: 11px; font-weight: 800; padding: 4px 7px; border-radius: 4px; border: 1px solid var(--line); background: #171715; color: var(--mute); cursor: pointer; }
.map-jump button svg { width: 12px; height: 12px; fill: currentColor; }
.map-jump button:hover { color: var(--lime); border-color: var(--lime); }

.mr-cat { background: rgba(200,245,60,.08) !important; }
.mr-cat b { color: var(--lime); }

/* Category groups & rows */
.mc-group { margin-top: 12px; }
.mc-gh { display: flex; align-items: center; justify-content: space-between; margin-bottom: 4px; }
.mc-gbtn { display: inline-flex; align-items: center; gap: 5px; background: none; border: 0; padding: 2px 0; cursor: pointer; font: inherit; color: var(--mute); }
.mc-gbtn:hover .mc-g { color: var(--text); }
.mc-chev { font-size: 11px; width: 10px; color: var(--mute); }
.mc-g { margin: 0; color: var(--mute); font-weight: 800; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; }
.mc-gcnt { font-size: 11px; color: #7e7b70; font-variant-numeric: tabular-nums; }
.mc-gtog { background: none; border: 0; color: var(--mute); font: inherit; font-size: 11px; font-weight: 700; text-transform: uppercase; cursor: pointer; padding: 2px 4px; }
.mc-gtog:hover { color: var(--lime); }
.mc-row { display: flex; align-items: center; gap: 6px; padding: 4px 4px; border-radius: var(--radius); font-size: 14px; transition: opacity .12s; }
.mc-row:hover { background: #1c1c1a; }
.mc-row.is-off { opacity: .52; }
.mc-row.is-off:hover { opacity: .9; }
.mc-row.is-solo { background: rgba(200,245,60,.1); outline: 1px solid rgba(200,245,60,.45); }
.mc-lbl { display: flex; align-items: center; gap: 7px; flex: 1; min-width: 0; cursor: pointer; }
.mc-lbl input { accent-color: var(--lime); width: 15px; height: 15px; margin: 0; flex: none; }
.mc-ico { display: grid; place-items: center; width: 22px; height: 22px; padding: 0; border-radius: 50%; background: #0d0d0c; border: 2px solid var(--c); flex: none; cursor: pointer; transition: transform .12s; }
.mc-ico:hover { transform: scale(1.16); box-shadow: 0 0 0 2px var(--lime); }
.mc-ico svg { width: 12px; height: 12px; fill: var(--c); }
.mc-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mc-n { color: var(--mute); font-size: 12px; font-variant-numeric: tabular-nums; flex: none; }
.mc-next { background: #1e1e1a; border: 1px solid var(--line); color: var(--lime); border-radius: 4px; width: 24px; height: 22px; font-size: 13px; font-weight: 900; line-height: 1; cursor: pointer; flex: none; display: grid; place-items: center; }
.mc-next:hover { background: var(--lime); color: var(--ink); border-color: var(--lime); }
.mc-page { font-size: 11px; color: var(--mute); flex: none; text-decoration: none; }
.mc-page:hover { color: var(--lime); }

.map-opts { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); display: grid; gap: 8px; font-size: 14px; }
.map-opts input { accent-color: var(--lime); margin-right: 6px; }
.map-sync { display: flex; gap: 8px; margin-top: 8px; }
.map-sync-codes { margin-top: 12px; }
.map-sync button { flex: 1; font: inherit; font-size: 12px; font-weight: 800; padding: 7px 8px; border-radius: 4px; border: 1px solid var(--line); background: #1a1a17; color: var(--text); cursor: pointer; }
.map-sync-codes button { border-color: rgba(200,245,60,.45); color: var(--lime); background: rgba(200,245,60,.07); }
.map-sync button:hover { border-color: var(--lime); color: var(--lime); }
.map-sync-codes button:hover { background: var(--lime); color: var(--ink); }
.map-presets button[data-preset="missable"] { border-color: rgba(255,176,46,.55); color: #ffb347; }
.map-presets button[data-preset="missable"].on { background: #ffb02e; border-color: #ffb02e; color: #0d0d0c; }
.map-legend { margin-top: 14px; color: var(--mute); font-size: 12px; line-height: 1.5; }
.ok { color: var(--lime); font-weight: 700; }
.map-fab, .map-qbar { display: none; }

/* Inline category page embedded mini-map */
.map-embed-wrap { margin: 22px 0 28px; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; background: #121211; }
.map-embed-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 14px; border-bottom: 1px solid var(--line); background: #161614; }
.meb-stat { font-size: 14px; color: var(--mute); }
.meb-stat b { color: var(--lime); }
.meb-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.meb-chk { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 700; color: var(--text); cursor: pointer; margin-right: 4px; }
.meb-chk input { accent-color: var(--lime); }
.meb-btn { font-size: 13px !important; padding: 7px 12px 6px !important; }
.map-app.map-embed { grid-template-columns: 1fr; height: 56vh; height: 56svh; min-height: 410px; max-height: 580px; border-bottom: 0; }
.map-app.map-embed .map-canvas { grid-column: 1; }
.map-app.map-embed:fullscreen { height: 100vh; max-height: none; }

/* Floating canvas toolbar + route HUD + toast */
.map-tools { position: absolute; top: 12px; right: 12px; z-index: 800; display: flex; gap: 6px; }
.map-tools button { font: inherit; font-size: 13px; font-weight: 800; padding: 8px 11px; border-radius: 6px; border: 1px solid var(--line); background: rgba(18,18,17,.92); color: var(--text); cursor: pointer; box-shadow: 0 2px 10px rgba(0,0,0,.4); }
.map-tools button:hover, .map-tools button.on { background: var(--lime); color: var(--ink); border-color: var(--lime); }
.map-route-hud, .map-measure-hud { position: absolute; top: 12px; left: 50%; transform: translateX(-50%); z-index: 800; display: flex; align-items: center; gap: 10px; background: rgba(18,18,17,.96); border: 1px solid var(--lime); color: var(--text); padding: 7px 12px; border-radius: 99px; font-size: 13px; font-weight: 700; box-shadow: 0 3px 12px rgba(0,0,0,.5); white-space: nowrap; }
.map-measure-hud { border-color: #2ee6d6; }
.map-route-hud[hidden], .map-measure-hud[hidden] { display: none; }
.map-route-hud button, .map-measure-hud button { background: var(--lime); color: var(--ink); border: 0; border-radius: 4px; padding: 3px 8px; font: inherit; font-size: 12px; font-weight: 900; cursor: pointer; }
.map-measure-hud button { background: #2ee6d6; }
.map-toast { position: absolute; left: 50%; bottom: 20px; transform: translateX(-50%); z-index: 1100; background: #0d0d0c; color: var(--lime); border: 1px solid var(--lime); padding: 9px 16px; border-radius: 99px; font-size: 14px; font-weight: 800; box-shadow: 0 4px 18px rgba(0,0,0,.55); pointer-events: none; }
.map-toast[hidden] { display: none; }

/* pins */
.gl-pin { background: none; border: 0; }
.gl-pin span { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: #0d0d0c; border: 3px solid var(--c); box-shadow: 0 2px 8px rgba(0,0,0,.5); transition: transform .12s ease; }
.gl-pin svg { width: 18px; height: 18px; fill: var(--c); }
.gl-pin:hover span { transform: scale(1.14); }
.gl-pin.is-found span { opacity: .42; border-style: dashed; }
.gl-pin.is-rep span { border-style: dashed; border-width: 2px; background: rgba(13,13,12,.8); width: 28px; height: 28px; }
.gl-pin.is-rep svg { width: 15px; height: 15px; }
.gl-pin.is-custom span { background: #1b2408; border: 3px solid #c8f53c; box-shadow: 0 0 0 2px #0d0d0c, 0 3px 10px rgba(0,0,0,.55); }
.gl-step { background: none; border: 0; }
.gl-step span { display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: var(--lime); color: var(--ink); font: 900 11px/1 var(--cond); box-shadow: 0 1px 5px rgba(0,0,0,.6); }

/* popups */
.gl-popup .leaflet-popup-content-wrapper { background: #121211 !important; color: var(--text); border: 1px solid var(--line); border-radius: 6px; box-shadow: 0 8px 28px rgba(0,0,0,.65); }
.gl-popup .leaflet-popup-tip { background: #121211 !important; }
.leaflet-popup-pane { z-index: 850 !important; }
.gl-popup .leaflet-popup-content { margin: 12px 14px; font-size: 14px; line-height: 1.45; }
.gl-popup h3 { font-size: 21px; margin: 2px 0 4px; }
.gl-popup p { margin: 6px 0; }
.gl-popup a { color: var(--lime); }
.gl-popup .leaflet-popup-close-button { color: var(--text); }
.pp-img { display: block; width: 100%; height: auto; border-radius: 4px; margin-bottom: 8px; }
.pp-cat { display: flex; align-items: center; gap: 6px; color: var(--c); font-weight: 800; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; margin: 0 !important; }
.pp-ico { display: inline-grid; place-items: center; width: 16px; height: 16px; }
.pp-ico svg { width: 15px; height: 15px; fill: var(--c); }
.pp-area, .pp-src { color: var(--mute); font-size: 13px; }
.pp-code { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.pp-code code { background: #26261f; padding: 2px 6px; border-radius: 3px; font-size: 14px; color: var(--lime); }
.pp-copy { font: inherit; font-size: 12px; font-weight: 800; padding: 2px 7px; border-radius: 3px; border: 1px solid var(--lime); background: none; color: var(--lime); cursor: pointer; }
.pp-copy:hover { background: var(--lime); color: var(--ink); }
.pp-steps { margin: 6px 0; padding-left: 18px; }
.pp-steps li { margin: 3px 0; }
.pp-btns { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.pp-btns button, .pp-btns a { font: inherit; font-size: 13px; font-weight: 800; padding: 6px 10px; border-radius: 4px; border: 1px solid var(--text); background: none; color: var(--text) !important; cursor: pointer; text-decoration: none; }
.pp-btns .pp-found.on, .pp-btns .pp-found-next { background: var(--lime); border-color: var(--lime); color: var(--ink) !important; }
.pp-btns .pp-found-next:hover { filter: brightness(1.06); }
.cp-form { display: grid; gap: 8px; margin-top: 8px; }
.cp-form input, .cp-form textarea { width: 100%; font: inherit; font-size: 14px; padding: 7px 9px; border-radius: 4px; border: 1px solid var(--line); background: #1c1c1a; color: var(--text); }
.leaflet-container { font-family: var(--cond); }
.leaflet-control-attribution { font-size: 11px; background: rgba(13,13,12,.75) !important; color: var(--mute); }
.leaflet-control-attribution a { color: var(--text); }
.leaflet-bar a { background: #121211; color: var(--text); border-color: var(--line); }
.leaflet-bar a:hover { background: #23231f; color: var(--lime); }
.marker-cluster { background: rgba(13,13,12,.38); border-radius: 50%; }
.marker-cluster div { width: 28px; height: 28px; margin: 6px 0 0 6px; border-radius: 50%; background: #141412; border: 2px solid #f1ede2; color: #f1ede2; font: 900 12px/24px var(--cond); text-align: center; box-shadow: 0 2px 8px rgba(0,0,0,.55); }
.marker-cluster span { line-height: 24px; }
.marker-cluster:hover div { border-color: var(--lime); color: var(--lime); }

/* Leonida map terrain labels (County / City / District) */
.gl-map-label { background: none; border: 0; pointer-events: none; text-align: center; }
.gl-map-label span { display: inline-block; font-family: var(--cond); font-weight: 900; text-transform: uppercase; color: rgba(255,255,255,.92); text-shadow: 0 1px 3px rgba(0,0,0,.95), 0 0 8px rgba(0,0,0,.85); line-height: 1.05; white-space: nowrap; }
.gl-map-label .ml-t1 { font-size: 13px; letter-spacing: .12em; color: rgba(255,255,255,.88); }
.gl-map-label .ml-t2 { font-size: 11px; letter-spacing: .09em; color: #f1ede2; background: rgba(13,13,12,.42); padding: 1px 6px; border-radius: 3px; }
.gl-map-label .ml-t3 { font-size: 10px; letter-spacing: .07em; color: rgba(241,237,226,.85); }
.seen-gtadb { color: #b7c2be; font-weight: 700; }

/* guide under the map + category / location pages */
.map-guide { padding-top: 34px; padding-bottom: 48px; max-width: 880px; }
.map-guide h2 { font-size: 34px; margin: 30px 0 12px; }
.map-guide p { max-width: 70ch; }
.map-credit { margin-top: 26px; }
.mk-list { list-style: none; padding: 0; margin: 26px 0; display: grid; gap: 20px; }
.mk-card { display: grid; grid-template-columns: 280px 1fr; gap: 18px; padding: 16px; border: 1px solid var(--line); border-radius: 6px; background: #121211; }
.mk-card img { width: 100%; height: auto; border-radius: 4px; }
.mk-card h3 { font-size: 26px; margin: 0 0 4px; }
.mk-card h3 a { color: var(--text); }
.mk-area { color: var(--mute); font-size: 14px; margin: 0 0 8px; }
.mk-card code { background: #26261f; padding: 2px 6px; border-radius: 3px; color: var(--lime); }
.mk-links .btn { font-size: 15px; padding: 10px 14px 8px; }
.map-loc .photo img { width: 100%; height: auto; border-radius: 6px; }
.map-loc .photo figcaption { color: var(--mute); font-size: 13px; margin-top: 6px; }
.map-loc .steps li { margin: 6px 0; }

@media (max-width: 860px) {
  .map-app { grid-template-columns: 1fr; overflow: hidden; height: 82vh; height: 82svh; min-height: 460px; }
  .map-app.map-embed { height: 52vh; height: 52svh; min-height: 360px; }
  .map-canvas { grid-column: 1; }
  .map-panel { grid-column: 1; position: absolute; inset: auto 0 0 0; max-height: 84%; border-right: 0; border-top: 2px solid var(--lime); border-radius: 14px 14px 0 0; transform: translateY(105%); transition: transform .25s ease; z-index: 1000; box-shadow: 0 -10px 30px rgba(0,0,0,.55); }
  .map-app.panel-open .map-panel { transform: none; }
  .map-close { display: block; }
  .map-h1 { font-size: 24px; }
  .map-qbar { display: grid; grid-template-columns: 1.25fr 1fr 1.1fr .95fr; gap: 6px; position: absolute; left: 10px; right: 10px; bottom: 12px; z-index: 900; padding: 6px; background: rgba(18,18,17,.95); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 6px 20px rgba(0,0,0,.6); }
  .map-qbar button { font: inherit; font-weight: 800; font-size: 13px; padding: 10px 6px 9px; border-radius: 8px; border: 1px solid var(--line); background: #1d1d1a; color: var(--text); cursor: pointer; white-space: nowrap; }
  .map-qbar button.qb-primary { background: var(--lime); border-color: var(--lime); color: var(--ink); font-weight: 900; }
  .map-qbar button.on { border-color: var(--lime); color: var(--lime); background: rgba(200,245,60,.12); }
  .map-toast { bottom: 74px; }
  .map-tools { top: 10px; right: 10px; }
  .mk-card { grid-template-columns: 1fr; }
  .map-guide h2 { font-size: 28px; }
}

.seen-map { color: var(--sea); font-weight: 700; }
.approx { color: var(--amber); }
.leaflet-container img, .leaflet-container .leaflet-tile { max-width: none !important; max-height: none !important; }
.leaflet-container { background: #2f90b0 !important; }
.leaflet-container .leaflet-tile { mix-blend-mode: normal !important; }
.seen-rep { color: var(--orange); font-weight: 700; }
.pp-watch { display: inline-block; font-weight: 800; color: var(--ink) !important; background: var(--lime); padding: 6px 10px; border-radius: 4px; text-decoration: none; }
.pp-how { color: var(--mute); }
.mk-region { font-size: 24px; margin: 26px 0 0; }
.mk-list-rep .mk-card { grid-template-columns: 1fr; padding: 12px 14px; }
.mk-list-rep .mk-card h3 { font-size: 20px; }
.mk-how { color: var(--mute); }
.map-rel { margin-top: 30px; } .glance th { width: 160px; }

/* Guide card popup */
.pp-vid { position: relative; display: block; width: 100%; padding: 0; margin: 0 0 8px; border: 0; border-radius: 4px; overflow: hidden; background: #000; cursor: pointer; aspect-ratio: 16 / 9; }
.pp-vid img { display: block; width: 100%; height: 100%; object-fit: cover; opacity: .85; }
.pp-vid:hover img { opacity: 1; }
.pp-play { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 52px; height: 52px; border-radius: 50%; background: rgba(0,0,0,.7); color: #fff; font-size: 22px; line-height: 52px; text-align: center; }
.pp-vlab { position: absolute; left: 0; right: 0; bottom: 0; padding: 4px 8px; background: linear-gradient(transparent, rgba(0,0,0,.85)); color: #fff; font-size: 12px; font-weight: 800; text-align: left; }
.pp-frame { display: block; width: 100%; aspect-ratio: 16 / 9; border: 0; border-radius: 4px; margin: 0 0 8px; background: #000; }
.pp-card { display: grid; gap: 4px; margin: 8px 0; padding: 8px 10px; background: #1b1b18; border: 1px solid var(--line); border-radius: 5px; }
.pp-row { display: grid; grid-template-columns: 78px 1fr; gap: 8px; font-size: 13px; }
.pp-row b { color: var(--mute); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; padding-top: 2px; }
.pp-get span { color: var(--lime); font-weight: 800; }
.pp-warn span { color: #ffb347; }
.pp-h { margin: 10px 0 2px !important; font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--mute); }
.pp-none { color: var(--mute); font-size: 13px; font-style: italic; }
.pp-tip { font-size: 13px; }
.pp-conflict { font-size: 12px; color: #ffb347; border-left: 3px solid #ffb347; padding-left: 8px; }

/* ---------- nudges: welcome back, what are you hunting, milestones, install ---------- */
.map-nudge { position: absolute; right: 12px; bottom: 34px; z-index: 950; width: min(340px, calc(100% - 24px)); padding: 14px 16px 14px; background: #121211; border: 1px solid var(--lime); border-radius: 10px; box-shadow: 0 10px 30px rgba(0,0,0,.6); font-size: 14px; line-height: 1.4; }
.map-nudge[hidden] { display: none; }
.map-nudge b { font-size: 16px; }
.map-nudge p { margin: 4px 0 0; color: var(--text); }
.map-nudge .nd-new { color: var(--lime); font-weight: 800; }
.map-nudge .nd-x { position: absolute; top: 4px; right: 6px; border: 0; background: none; color: var(--mute); font-size: 22px; line-height: 1; cursor: pointer; padding: 4px 6px; }
.nd-btns { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.nd-btns.nd-grid { display: grid; grid-template-columns: 1fr 1fr; }
.nd-btns button { font: inherit; font-weight: 800; font-size: 13px; padding: 9px 10px; border-radius: 6px; border: 1px solid var(--line); background: #1d1d1a; color: var(--text); cursor: pointer; }
.nd-btns button:hover, .nd-btns .nd-go { background: var(--lime); border-color: var(--lime); color: var(--ink); }
.map-share button[data-share-progress] { border-color: var(--lime); color: var(--lime); }
@media (max-width: 860px) {
  .map-nudge { left: 10px; right: 10px; bottom: 78px; width: auto; }
  .map-app { height: 88vh; height: 88svh; }
  /* popup: short picture, scroll inside, action buttons always in reach */
  .gl-popup .leaflet-popup-content { max-height: 58vh; max-height: 58svh; overflow-y: auto; overscroll-behavior: contain; }
  .gl-popup .pp-img, .gl-popup .pp-vid, .gl-popup .pp-frame { max-height: 150px; width: 100%; object-fit: cover; }
  .gl-popup .pp-btns { position: sticky; bottom: -1px; background: #121211; padding: 8px 0 4px; margin-top: 8px; box-shadow: 0 -10px 12px #121211; }
}

/* "Watch to get the spot": our own video of this pin, opened at the exact second */
.pp-watch { display: flex; gap: 10px; align-items: center; margin: 8px 0; padding: 9px 11px; border-radius: 6px; background: var(--lime, #c8f53c); color: #0d0d0c !important; text-decoration: none !important; line-height: 1.25; }
.pp-watch:hover { filter: brightness(1.06); }
.pp-watch-ico { flex: none; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: #0d0d0c; color: var(--lime, #c8f53c); font-size: 13px; }
.pp-watch b { display: block; font-size: 14px; }
.pp-watch small { display: block; font-size: 12px; opacity: .78; }

/* Honest subscribe link inside the map panel (no reward, no pop-up) */
.map-sub { display: flex; gap: 10px; align-items: center; margin: 10px 0; padding: 9px 11px; border: 1px solid var(--line); border-radius: 6px; color: inherit; text-decoration: none; }
.map-sub:hover { border-color: #ff3b30; }
.map-sub-ico { flex: none; display: grid; place-items: center; width: 30px; height: 22px; border-radius: 6px; background: #ff0033; color: #fff; font-size: 11px; }
.map-sub b { display: block; font-size: 14px; }
.map-sub small { display: block; font-size: 12px; color: #bdb9ae; }
.pp-spoil { margin: 8px 0; padding: 8px 10px; border: 1px dashed var(--line); border-radius: 5px; color: #bdb9ae; font-size: 13px; }

/* Save-your-progress nudge: first found tick and at 10. Not a modal; "Not now" always closes it. */
.save-nudge { position: fixed; left: 50%; bottom: 76px; transform: translateX(-50%); z-index: 1200; width: min(560px, calc(100vw - 24px));
  display: flex; flex-wrap: wrap; gap: 8px 10px; align-items: center; padding: 12px 14px; border-radius: 8px; background: #161614; border: 1px solid var(--lime, #c8f53c); box-shadow: 0 8px 30px rgba(0,0,0,.5); }
.save-nudge p { flex: 1 1 260px; margin: 0; font-size: 14px; line-height: 1.3; }
.save-nudge small { display: block; margin-top: 2px; color: #bdb9ae; font-size: 12px; }
.save-nudge .sn-go { padding: 8px 12px; border-radius: 6px; background: var(--lime, #c8f53c); color: #0d0d0c; font-weight: 800; font-size: 14px; text-decoration: none; white-space: nowrap; }
.save-nudge .sn-no { padding: 8px 10px; background: none; border: 1px solid var(--line); border-radius: 6px; color: inherit; font-size: 14px; cursor: pointer; }
.mk-spoil { margin: 6px 0; border: 1px dashed var(--line); border-radius: 5px; padding: 6px 10px; }
.mk-spoil summary { cursor: pointer; color: #bdb9ae; font-size: 14px; }
.mk-spoil[open] summary { margin-bottom: 6px; }

/* "Your chapter" switch: same look as the source switch above it */
.map-ch-lbl { margin: 10px 0 4px; font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: var(--mute); }
.map-chapter { grid-template-columns: 1.4fr repeat(5, 1fr); }
.map-chapter button { font-size: 12px; }
/* Locked categories stay in the list, greyed, with the chapter they open in */
.mc-row.is-locked .mc-name, .mc-row.is-locked .mc-ico { opacity: .45; }
.mc-lock { font-size: 11px; font-weight: 800; color: var(--mute); white-space: nowrap; }
/* Banner over the map while a chapter is picked */
.map-chbar { position: absolute; top: 12px; left: 50%; transform: translateX(-50%); z-index: 950; display: flex; align-items: center; gap: 10px;
  padding: 8px 8px 8px 14px; border-radius: 999px; background: rgba(18,18,17,.95); border: 1px solid var(--lime, #c8f53c); box-shadow: 0 6px 20px rgba(0,0,0,.5);
  font-size: 14px; white-space: nowrap; }
.map-chbar[hidden] { display: none; }
.map-chbar b { color: var(--lime, #c8f53c); }
.map-chbar .mcb-later { color: var(--mute); }
.map-chbar button { border: 0; background: #2b2b26; color: inherit; border-radius: 999px; width: 26px; height: 26px; cursor: pointer; font-size: 14px; line-height: 1; }
@media (max-width: 860px) { .map-chbar { top: 62px; font-size: 13px; } }

/* Phone: pin details in a bottom sheet (the map no longer jumps to fit a tall popup) */
.pp-sheet { position: fixed; left: 0; right: 0; bottom: 0; z-index: 1150; max-height: 62vh; overflow-y: auto; -webkit-overflow-scrolling: touch;
  background: #151513; border-top: 2px solid var(--lime, #c8f53c); border-radius: 16px 16px 0 0; box-shadow: 0 -10px 30px rgba(0,0,0,.55);
  padding: 4px 0 calc(8px + env(safe-area-inset-bottom)); }
.pp-sheet[hidden] { display: none; }
.pp-grab { width: 44px; height: 5px; border-radius: 3px; background: #3a3a36; margin: 6px auto 2px; }
.pp-sheet .leaflet-popup { position: relative !important; transform: none !important; left: auto !important; top: auto !important; bottom: auto !important; margin: 0; opacity: 1; }
.pp-sheet .leaflet-popup-tip-container { display: none; }
.pp-sheet .leaflet-popup-content-wrapper { background: transparent; box-shadow: none; border: 0; border-radius: 0; }
.pp-sheet .leaflet-popup-content { width: auto !important; margin: 6px 16px 10px; }
.pp-sheet .leaflet-popup-close-button { top: 2px !important; right: 8px !important; font-size: 26px !important; width: 36px !important; height: 36px !important; }
.pp-sheet:not([hidden]) ~ .save-nudge { top: 70px; bottom: auto; }
