@font-face { font-family:Leonida Display; src:url('../fonts/BarlowCondensed-ExtraBold.ttf') format('truetype'); font-weight:800; font-display:swap; }
@font-face { font-family:Leonida Text; src:url('../fonts/DMSans.ttf') format('truetype'); font-weight:100 1000; font-display:swap; }
.leonida-embedded { margin:0; background:#0b0714; color:#f7edf6; color-scheme:dark; }
.leonida, .leonida * { box-sizing:border-box; }
.leonida { --ink:#f7edf6; --muted:#c7b8cc; --edge:#51364e; --panel:#1c1223; --pink:#ff7db3; --peach:#ffc491; width:min(1560px,100%); margin:auto; padding:18px clamp(10px,2vw,28px) 24px; color:var(--ink); font:400 14px/1.45 DM,system-ui,sans-serif; color-scheme:dark; }
.leonida h1,.leonida h2,.leonida p { margin:0; }
.leonida button,.leonida input,.leonida select { font:inherit; }
.leonida button { color:var(--ink); background:#2b1b32; border:1px solid var(--edge); border-radius:8px; cursor:pointer; }
.leonida button:hover,.leonida button[aria-pressed="true"] { border-color:var(--pink); background:#47233c; }
.leonida :focus-visible { outline:2px solid var(--peach); outline-offset:2px; }
.leonida a { color:var(--peach); }
.leonida [hidden] { display:none !important; }
.leonida-mast { display:flex; align-items:end; gap:14px; margin-bottom:10px; }
.leonida-mast span { color:var(--pink); font-size:.72rem; font-weight:800; letter-spacing:.14em; }
.leonida-mast h1 { font:800 clamp(2rem,5vw,4rem)/.97 Barlow,'Arial Narrow',system-ui,sans-serif; }
.leonida-mast p { flex:1; color:var(--muted); font-size:.83rem; }
.leonida-mast button { min-height:44px; padding:0 13px; }
.leonida-shell { display:grid; grid-template-columns:minmax(220px,292px) minmax(0,1fr); min-height:390px; height:74dvh; overflow:hidden; border:1px solid var(--edge); border-radius:15px; background:#2c67a4; position:relative; }
.leonida-shell.panel-closed { grid-template-columns:minmax(0,1fr); }
.leonida-sidebar { z-index:2; overflow:auto; overscroll-behavior:contain; background:var(--panel); padding:15px; box-shadow:0 0 18px #0007; }
.leonida-search { display:grid; gap:5px; margin-bottom:13px; }
.leonida-search label,.leonida-group h2 { color:var(--ink); font-weight:750; font-size:.87rem; }
.leonida-search input,.leonida-search select { width:100%; min-height:43px; padding:7px 9px; color:var(--ink); background:#100b16; border:1px solid var(--edge); border-radius:8px; }
.leonida-group { display:flex; align-items:center; justify-content:space-between; gap:6px; margin-bottom:4px; }
.leonida-group button,.leonida-progress button { min-height:38px; padding:4px 9px; }
.leonida-categories { display:grid; }
.leonida-category { display:grid; grid-template-columns:auto 1.15em minmax(0,1fr) auto; align-items:center; gap:7px; min-height:38px; border-bottom:1px solid #ffffff16; }
.leonida input[type="checkbox"] { margin:0; width:17px; height:17px; accent-color:#ff85ba; }
.leonida-category-icon { color:var(--peach); text-align:center; }
.leonida-count { color:var(--muted); font-variant-numeric:tabular-nums; font-size:.77rem; }
.leonida-progress { display:grid; gap:5px; margin:12px 0; }
.leonida-progress label { display:flex; align-items:center; gap:8px; min-height:34px; }
.leonida-results { display:grid; gap:4px; }
.leonida-results button { min-height:38px; padding:5px 8px; text-align:left; }
.leonida-stage,.leonida-canvas { min-width:0; min-height:0; width:100%; height:100%; position:relative; }
.leonida-canvas { z-index:1; background:#2c67a4; }
.leonida-tools { position:absolute; z-index:2; display:grid; gap:6px; top:10px; right:10px; }
.leonida-tools button { width:44px; height:44px; font-size:1.2rem; box-shadow:0 2px 10px #0006; }
.leonida-credit,.leonida-status { position:absolute; z-index:2; bottom:0; padding:4px 8px; background:#130c20ec; font-size:.71rem; }
.leonida-credit { right:0; border-radius:8px 0 0 0; }
.leonida-credit summary { cursor:pointer; padding:2px 3px; }
.leonida-credit[open] { max-width:min(290px,calc(100% - 16px)); padding:7px 10px; }
.leonida-credit p { margin:4px 0; }
.leonida-status { left:0; border-radius:0 8px 0 0; }
.leonida-status:has([hidden]):not(:has(button:not([hidden]))) { pointer-events:none; }
.leonida-status button { min-height:30px; }
.leonida-pin { border:0; background:transparent; text-align:center; }
.leonida-pin span { display:grid; place-items:center; width:100%; height:100%; border-radius:50%; border:2px solid #fff2e9; color:#130a1a; background:#ffb584; box-shadow:0 2px 6px #0009; font-weight:850; font-size:14px; }
.leonida-pin.cat-regions span { background:#ff87ba; }
.leonida-pin.cat-shops span { background:#91d8f3; }
.leonida-pin.cat-garages span,.leonida-pin.cat-vehicles span { background:#b3a5fd; }
.leonida-pin.cat-activities span { background:#fbcf83; }
.leonida-pin.cat-properties span { background:#f6a9ae; }
.leonida-pin.is-found span { background:#b5e8be; }
.leonida-pin.is-cluster span { border-color:#edbbdf; background:#522755; color:#fff2e9; box-shadow:0 0 0 5px #e08bd95e,0 3px 8px #16071a95; }
.leonida-pin.is-large span { border-color:#f4c28d; background:#694049; box-shadow:0 0 0 5px #f3ae695e,0 3px 8px #16071a95; }
.leonida .leaflet-popup-content-wrapper,.leonida .leaflet-popup-tip { color:var(--ink); background:#1d1326; }
.leonida .leaflet-popup-content { margin:14px; font:400 .87rem/1.4 DM,system-ui,sans-serif; }
.leonida .leaflet-popup-content h2 { margin-right:12px; font-size:1.12rem; }
.leonida .leaflet-popup-content p { margin:5px 0 9px; }
.leonida .leaflet-popup-content a,.leonida .leaflet-popup-close-button { color:var(--peach); }
.leonida-popup-actions { display:flex; flex-wrap:wrap; gap:5px; margin-top:9px; }
.leonida-popup-actions button { padding:5px 8px; min-height:38px; }
.leonida-popup-list { display:grid; gap:4px; max-height:150px; overflow:auto; margin-top:5px; }
.leonida-popup-list button { text-align:left; min-height:32px; }
.leonida .leonida-marker-popup .leaflet-popup-content-wrapper { padding:0; overflow:hidden; border:1px solid #6f4866; border-radius:16px; box-shadow:0 13px 36px #080517ad; }
.leonida .leonida-marker-popup .leaflet-popup-content { width:min(310px,calc(100vw - 45px)) !important; margin:0; }
.leonida .leonida-marker-popup .leaflet-popup-scrolled { border:0; overscroll-behavior:contain; }
.leonida .leonida-marker-popup.is-fixed { position:absolute; z-index:4; left:50% !important; top:12px; bottom:auto !important; margin:0; transform:translateX(-50%) !important; }
.leonida .leonida-marker-popup.is-fixed .leaflet-popup-tip-container { display:none; }
.leonida .leonida-marker-popup.is-constrained .leaflet-popup-tip-container { display:none; }
.leonida .leonida-marker-popup .leaflet-popup-close-button { position:absolute; display:block; z-index:1; top:8px; right:8px; width:32px; height:32px; padding:0; border:0; font-size:18px; line-height:30px; text-align:center; text-decoration:none; border-radius:50%; color:var(--ink); background:#160e1cee; }
.leonida-marker-hero { display:block; height:105px; position:relative; isolation:isolate; background:linear-gradient(150deg,#322145,#102632); overflow:hidden; }
.leonida-marker-hero img { position:absolute; inset:0; width:100%; height:100%; object-fit:cover; z-index:-2; }
.leonida-marker-hero::after { content:""; position:absolute; inset:0; z-index:-1; background:linear-gradient(transparent,#110b20cc); }
.leonida-marker-region { position:absolute; bottom:9px; left:13px; font-size:.7rem; font-weight:800; letter-spacing:.08em; text-transform:uppercase; color:#fff4ea; }
.leonida-marker-body { padding:12px 13px 13px; }
.leonida-marker-title { display:flex; justify-content:space-between; align-items:start; gap:8px; margin-bottom:5px; }
.leonida .leonida-marker-title h2 { margin:0; color:var(--ink); font:800 1.15rem/1.2 DM,system-ui,sans-serif; }
.leonida .leonida-marker-title a { color:var(--ink); text-decoration:none; }
.leonida .leonida-marker-title a:hover { color:var(--peach); }
.leonida-marker-arrow { display:inline-block; margin-left:4px; color:var(--peach); font-size:.85em; }
.leonida-marker-title button { min-height:34px; padding:3px 7px; white-space:nowrap; font-size:.72rem; }
.leonida-marker-badge { display:inline-block; margin:0 5px 3px 0; border-radius:20px; padding:2px 7px; font-size:.72rem; }
.leonida-marker-badge { background:#482339; color:#ffcf9d; font-weight:750; }
.leonida .leonida-marker-description { margin:4px 0 8px; color:#f1e4ef; }
.leonida .leonida-marker-credit { color:var(--muted); font-size:.68rem; }
.leonida-confirm { max-width:calc(100% - 24px); padding:20px; border:1px solid var(--edge); border-radius:12px; background:var(--panel); color:var(--ink); }
.leonida-confirm::backdrop { background:#0c0714be; }
.leonida-confirm button { padding:8px; margin-top:9px; }
.leonida.is-expanded { position:fixed; z-index:100000; inset:0; max-width:none; width:100%; height:100dvh; margin:0; background:#0b0714; }
body:has(.leonida.is-expanded) { overflow:hidden; }
.leonida.is-expanded .leonida-shell { height:calc(100dvh - 100px); min-height:0; }
.leonida-embedded .leonida { padding:9px; height:100dvh; display:flex; flex-direction:column; font-family:Leonida Text,system-ui,sans-serif; }
.leonida-embedded .leonida-mast { flex:none; }
.leonida-embedded .leonida-mast h1 { font-family:Leonida Display,'Arial Narrow',system-ui,sans-serif; }
.leonida-embedded .leonida .leaflet-popup-content { font-family:Leonida Text,system-ui,sans-serif; }
.leonida-embedded .leonida-shell { flex:1; height:auto; min-height:0; }
@media(max-width:740px) {
  .leonida { padding:11px 8px 15px; }
  .leonida-mast { display:grid; grid-template-columns:minmax(0,1fr) auto; align-items:center; gap:4px 8px; }
  .leonida-mast p { grid-area:2 / 1 / 3 / 3; font-size:.74rem; }
  .leonida-mast button { grid-area:1 / 2 / 2 / 3; }
  .leonida-shell,.leonida-shell.panel-closed { grid-template-columns:minmax(0,1fr); min-height:320px; height:72dvh; }
  .leonida-sidebar { position:absolute; z-index:5; inset:auto 0 0; max-height:58%; border-top:1px solid var(--edge); border-radius:13px 13px 0 0; padding:12px; }
  .leonida-tools { top:8px; right:8px; }
  .leonida-stage.has-marker .leonida-tools { top:auto; bottom:31px; display:flex; }
  .leonida-status { bottom:20px; }
  .leonida-marker-hero { height:83px; }
  .leonida.is-expanded .leonida-shell { height:calc(100dvh - 88px); }
}
@media(prefers-reduced-motion:reduce) {
  .leonida .leaflet-zoom-animated,.leonida .leaflet-fade-anim .leaflet-popup { transition:none !important; }
}
@media(max-height:500px) {
  .leonida-tools { display:flex; }
  .leonida-marker-hero { height:56px; }
  .leonida-stage.has-marker .leonida-tools { display:none; }
}
@media(max-height:320px) {
  .leonida-embedded .leonida-mast h1,.leonida-embedded .leonida-mast p { display:none; }
  .leonida-embedded .leonida-mast button { min-height:32px; }
  .leonida-embedded .leonida-marker-hero { height:40px; }
}
