/* PlayMyPS5 Leonida map (GTA VI). Own code; Leaflet is self-hosted under /map-assets/leaflet/. */
.mapapp { --mbg: #0b0a12; --mpanel: rgba(19,17,31,.96); --mline: rgba(255,255,255,.1); --mfg: #f3f1ff; --mdim: #a9a4c4; --macc: #7c5cff;
  position: relative; height: calc(100dvh - 61px); min-height: 420px; display: flex; background: #2f90b0; color: var(--mfg); overflow: hidden; }
body.embed .mapapp { height: 100dvh; }
#lmap { flex: 1; height: 100%; background: #2f90b0; outline: none; }
.leaflet-container { font: 13px/1.4 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }

/* side panel */
.mpanel { width: 320px; flex: none; height: 100%; background: var(--mpanel); border-right: 1px solid var(--mline); display: flex; flex-direction: column; z-index: 500; }
.mpanel .mhead { padding: 12px 12px 8px; border-bottom: 1px solid var(--mline); }
.mpanel h1 { font-size: 16px; line-height: 1.25; margin: 0 0 8px; letter-spacing: 0; }
.msearch { position: relative; }
.msearch input { width: 100%; background: #0f0d1a; border: 1px solid var(--mline); color: var(--mfg); border-radius: 10px; padding: 9px 12px; font-size: 15px; }
.msearch input:focus { outline: 2px solid var(--macc); outline-offset: -1px; }
.mres { list-style: none; margin: 6px 0 0; padding: 0; max-height: 40vh; overflow: auto; }
.mres li button { width: 100%; text-align: left; background: none; border: 0; color: var(--mfg); padding: 6px 8px; border-radius: 8px; cursor: pointer; display: flex; gap: 8px; align-items: center; font-size: 14px; }
.mres li button:hover, .mres li button:focus { background: rgba(255,255,255,.07); }
.mres small { color: var(--mdim); margin-left: auto; white-space: nowrap; }
.mtools { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 8px; align-items: center; }
.mtools button, .mbtn { background: rgba(255,255,255,.07); border: 1px solid var(--mline); color: var(--mfg); border-radius: 999px; padding: 5px 11px; font-size: 13px; font-weight: 600; cursor: pointer; }
.mtools button[aria-pressed="true"] { background: var(--macc); border-color: var(--macc); }
.mtools .mcount { color: var(--mdim); font-size: 12px; margin-left: auto; }
.mcats { overflow: auto; flex: 1; padding: 6px 8px 16px; }
.mgroup { margin: 8px 0 2px; }
.mgroup > button { display: flex; width: 100%; align-items: center; gap: 8px; background: none; border: 0; color: var(--mdim); font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; padding: 4px 4px; cursor: pointer; }
.mgroup > button i { width: 10px; height: 10px; border-radius: 3px; background: var(--gc); }
.mcat { display: flex; align-items: center; gap: 8px; padding: 4px 6px; border-radius: 8px; cursor: pointer; font-size: 14px; user-select: none; }
.mcat:hover { background: rgba(255,255,255,.05); }
.mcat input { accent-color: var(--macc); width: 16px; height: 16px; margin: 0; }
.mcat .e { width: 22px; text-align: center; }
.mcat .n { margin-left: auto; color: var(--mdim); font-size: 12px; }
.mfoot { padding: 8px 12px; border-top: 1px solid var(--mline); font-size: 11px; color: var(--mdim); }
.mfoot a { color: var(--mdim); text-decoration: underline; }

/* markers */
.mk { background: none; border: 0; display: grid; place-items: center; }
.mk span { transition: width .15s, height .15s; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: #16131f; border: 2px solid var(--c); font-size: 14px; line-height: 1; box-shadow: 0 1px 4px rgba(0,0,0,.6); }
.mk.big span { width: 32px; height: 32px; font-size: 17px; border-width: 3px; }
.mk.sel span { outline: 3px solid #fff; }
/* zoomed out: small dots, secrets stay big */
#lmap.z-lo .mk:not(.big) span { width: 11px; height: 11px; font-size: 0; border-width: 2px; background: var(--c); box-shadow: 0 0 0 1px rgba(0,0,0,.55); }
#lmap.z-mid .mk:not(.big) span { width: 20px; height: 20px; font-size: 11px; }
#lmap.z-lo .mk.big span { width: 24px; height: 24px; font-size: 13px; }
.leaflet-popup-content-wrapper, .leaflet-popup-tip { background: #17142a; color: var(--mfg); border: 1px solid var(--mline); }
.leaflet-popup-content { margin: 12px 14px; min-width: 200px; }
.leaflet-container a.leaflet-popup-close-button { color: var(--mdim); }
.pp-cat { font-size: 12px; color: var(--mdim); display: flex; gap: 6px; align-items: center; }
.pp-t { font-size: 16px; font-weight: 700; margin: 2px 0 4px; }
.pp-sq { display: inline-block; background: var(--macc); color: #fff; font-weight: 800; border-radius: 6px; padding: 1px 8px; font-size: 14px; letter-spacing: .04em; }
.pp-note { margin: 6px 0 0; font-size: 13px; color: #d9d5ef; }
.pp-act { display: flex; gap: 6px; margin-top: 8px; }

/* grid rulers */
.mruler { position: absolute; z-index: 450; pointer-events: none; font: 800 12px/1 system-ui, sans-serif; color: #fff; text-shadow: 0 1px 2px #000, 0 0 3px #000; }
.mruler.top { left: 0; right: 0; top: 0; height: 22px; background: linear-gradient(rgba(11,10,18,.55), rgba(11,10,18,0)); }
.mruler.left { top: 0; bottom: 0; left: 0; width: 26px; background: linear-gradient(90deg, rgba(11,10,18,.55), rgba(11,10,18,0)); }
.mruler b { position: absolute; transform: translate(-50%, 0); top: 5px; }
.mruler.left b { left: 13px; transform: translate(-50%, -50%); top: auto; }
.mapapp.nogrid .mruler, .mapapp.nogrid .gridlbl { display: none; }
.gridlbl { background: none; border: 0; color: rgba(255,255,255,.55); font: 800 13px/1 system-ui, sans-serif; text-shadow: 0 1px 2px #000; pointer-events: none; display: grid; place-items: center; }
.mtoast { position: absolute; left: 50%; bottom: 18px; transform: translateX(-50%); z-index: 600; background: rgba(19,17,31,.95); border: 1px solid var(--mline); border-radius: 999px; padding: 8px 10px 8px 16px; display: none; align-items: center; gap: 10px; font-size: 14px; box-shadow: 0 6px 20px rgba(0,0,0,.4); white-space: nowrap; }
.mtoast.on { display: flex; }
.mtoast b { font-size: 18px; color: #fff; }

/* mobile: panel becomes a drawer */
.mpanel-toggle { display: none; }
@media (max-width: 760px) {
  .mapapp { height: calc(100dvh - 61px); }
  .mpanel { position: absolute; left: 0; top: 0; bottom: 0; width: min(88vw, 340px); transform: translateX(-102%); transition: transform .2s; box-shadow: 4px 0 24px rgba(0,0,0,.5); }
  .mapapp.open .mpanel { transform: none; }
  .mpanel-toggle { display: inline-flex; position: absolute; z-index: 520; bottom: 34px; left: 34px; background: var(--macc); color: #fff; border: 0; border-radius: 999px; padding: 9px 14px; font-weight: 700; font-size: 14px; box-shadow: 0 4px 14px rgba(0,0,0,.4); cursor: pointer; }
  .mapapp.open .mpanel-toggle { left: auto; right: 12px; }
  .leaflet-control-attribution { font-size: 9px; max-width: 70vw; }
}
body.embed .site-head, body.embed .mseo, body.embed .site-foot { display: none; }
