:root,.sidebar{color-scheme:dark;--vi-top:60px;--vi-bottom:0px;--vi-panel:370px;--gtavi-ui-font:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;--gtavi-display-font:var(--gtavi-ui-font);--theme-bg:#18191f;--theme-bg-strong:#14151a;--theme-bg-soft:#1c1d24f9;--theme-panel:#25262f;--theme-panel-light:#30303d;--theme-border:#3e3e4b;--theme-border-strong:#696378;--theme-text:#f4f3fa;--theme-text-muted:#b3b1c1;--theme-accent:#c2aaff;--theme-accent-soft:#b79aff25;--theme-accent-strong:#a388ed;--map-scrollbar-thumb:#514e60;--map-scrollbar-track:#1b1c23}
html,body{height:100%;overflow:hidden;background:var(--theme-bg-strong);font-family:var(--gtavi-ui-font)}body{display:flex;flex-direction:column;height:100dvh;min-height:0}
#map-container{flex:1;min-width:0;min-height:0;height:auto;width:100%;isolation:isolate;background:#252836}
#map{inset:0;height:100%;width:100%;font-family:var(--gtavi-ui-font)}
.vi-bar,.vi-mobile-actions,.vi-instructions,#vi-help-dialog,.vi-search-heading,.vi-visit-field,#vi-feedback{font-family:var(--gtavi-ui-font);color:#f4f3fc}
.vi-bar,.vi-mobile-actions{z-index:35;flex:none;background:#191a20;box-sizing:border-box;display:flex;align-items:center}
.vi-bar{height:calc(var(--vi-top) + env(safe-area-inset-top));padding:env(safe-area-inset-top) max(18px,env(safe-area-inset-right)) 0 max(18px,env(safe-area-inset-left));gap:17px;border-bottom:1px solid #33343e}
.vi-brand,.vi-region,.vi-header-end,.vi-desktop-actions,.vi-bar button,.vi-mobile-actions button{display:flex;align-items:center}
.vi-brand{gap:9px;white-space:nowrap;user-select:none}.vi-brand img{width:34px;height:34px}.vi-brand span{font-weight:740;font-size:25px;letter-spacing:-1.1px;line-height:1}.vi-brand b{color:#b99dff;font-weight:700}
.vi-region{font-size:13px;color:#bcbcc8;gap:4px;border-left:1px solid #40404c;padding-left:15px}.vi-region svg{width:15px;height:15px}
.vi-bar i[data-vi-icon],.vi-mobile-actions i[data-vi-icon],#vi-help-dialog i[data-vi-icon],.vi-close-filters i[data-vi-icon],.vi-search-icon{display:inline-flex;align-items:center;justify-content:center;flex:none}
.vi-bar button,.vi-mobile-actions button,.vi-close-filters,#vi-help-dialog button{cursor:pointer;touch-action:manipulation;-webkit-tap-highlight-color:transparent;color:inherit;font:inherit;line-height:1.3;border:0;background:none}
.vi-desktop-actions{margin-left:15px;gap:5px}.vi-bar button{gap:8px;min-height:38px;border-radius:8px;padding:0 12px;font-size:14px;font-weight:550}
.vi-desktop-actions button{color:#c3c2ce}.vi-desktop-actions button[aria-expanded=true],.vi-desktop-actions button:hover,.vi-bar .vi-help:hover{background:#302c3d;color:#d8c9ff}
.vi-bar button svg{width:18px;height:18px}.vi-header-end{margin-left:auto;gap:8px}.vi-bar .vi-help{padding:0;justify-content:center;width:38px;color:#b0afbf}.vi-bar .vi-add,.vi-mobile-actions [data-vi-action=add]{background:#7854d7;border:1px solid #9f80e7;color:#fff}.vi-bar .vi-add:hover,.vi-mobile-actions [data-vi-action=add]:hover{background:#8967e2}
.vi-mobile-actions{display:none}.sidebar{height:100%;width:var(--vi-panel);border-right:1px solid #393846;background:#1b1c23;box-shadow:3px 0 16px #06061140}
.sidebar-header{position:relative;border:0;border-image:none;background:linear-gradient(0deg,#161622ed,#28243145 58%,#2625360d),url(vice-city.webp) center 44%/cover;padding:0 18px;min-height:114px;flex:none;display:flex;align-items:end;box-sizing:border-box}
.vi-hero-text{color:#fff;padding:0 0 12px;text-shadow:0 1px 8px #0d0d19}.vi-hero-text small{font-size:11px;letter-spacing:1.4px;font-weight:660}.vi-hero-text h1{font-size:28px;font-weight:680;letter-spacing:-.9px;line-height:1.15;margin:3px 0 0}.vi-close-filters{position:absolute;top:9px;right:10px;background:#181923d9;border:1px solid #88869878;border-radius:8px;width:34px;height:34px;display:grid;place-items:center;color:#fff}.vi-close-filters svg{width:18px;height:18px}
#toggle-sidebar{display:none}.sidebar-search{position:relative;background:#1b1c23;padding:12px 13px 7px;border:0;order:0}.sidebar-search input{display:block;width:100%;height:42px;padding:0 12px 0 38px;box-sizing:border-box;background:#272830;border:1px solid #42434e;border-radius:8px;color:#fbfaff;font-size:15px}.sidebar-search input::placeholder{color:#aaaaba}.sidebar-search input:focus{outline:2px solid #b29ae0;outline-offset:-1px}.vi-search-icon{position:absolute;left:25px;top:25px;color:#a7a6b9;pointer-events:none}.vi-search-icon svg{width:17px;height:17px}
.vi-search-heading{font-size:16px;font-weight:650;letter-spacing:-.3px;margin:13px 14px 0;line-height:1.3}.vi-visit-field{margin:0 14px;display:flex;align-items:center;justify-content:space-between;gap:9px;height:37px;font-size:13px;color:#b9b8c8}.vi-visit-field select{max-width:67%;font:inherit;min-height:30px;border-radius:6px;padding:3px 8px;background:#292a33;color:#f4f3fb;border:1px solid #444453}
.sidebar>.menu-bulk-actions{background:none;gap:8px;padding:6px 13px 11px;border-bottom:1px solid #36353f}.sidebar .menu-bulk-actions button{min-height:33px;font-family:var(--gtavi-ui-font);font-size:13px;color:#d2ccdf;background:#292831;border:1px solid #403e4b;border-radius:7px}.sidebar .menu-bulk-actions button:hover{color:#eee6ff;background:#3b3449}.sidebar .sidebar-content{scrollbar-width:thin;scrollbar-color:#595566 #1b1c23;line-height:1.35}.sidebar .menu-section-title,.sidebar .category-name,.sidebar .wildlife-group>summary,.sidebar .wildlife-section .wildlife-animal,#map .popup-content h3{font-family:var(--gtavi-ui-font);font-weight:600}
.sidebar .menu-section-title{letter-spacing:0;text-transform:none;color:#d1c4ed;font-size:15px;line-height:1.35;background:none}.sidebar .category-accordion-header{background:#26252f}.sidebar .category-name{letter-spacing:0;text-transform:none;font-size:14px;line-height:1.35}.sidebar .accordion-child .category-name{font-size:13px;line-height:1.3}.sidebar .category-count{font:500 12px/1.3 var(--gtavi-ui-font)}
.sidebar .category-accordion-content{background:#15161b}.sidebar .category-item.active{background:#ffffff07}.sidebar .category-item:hover,.sidebar .category-item:focus-visible,.marker-search-result:hover,.marker-search-result:focus-visible{background:#3a334b;color:#fff}.sidebar .filter-section-caret{color:#bfb0de}.sidebar input:checked+.slider{background:#9678d5}.sidebar :is(button,select,input,.category-item,.setting-item):focus-visible,.vi-bar button:focus-visible,.vi-mobile-actions button:focus-visible,#vi-help-dialog button:focus-visible{outline:2px solid #d4beff;outline-offset:-2px}
#map .maplibregl-popup-content{--popup-bg:#202128f7;background:var(--popup-bg);color:#f5f3fc;border-radius:10px;box-shadow:0 8px 28px #0a08134d;font-family:var(--gtavi-ui-font)}#map .popup-content h3{letter-spacing:-.2px;line-height:1.25}.maplibregl-popup-close-button{font-size:23px!important;color:#e5deec;min-width:33px;min-height:33px}.tileset-control,.game-conditions,.native-3d-status,.map-context-menu,.maplibregl-ctrl-group,.collectible-routes{border-radius:9px}.tileset-control{top:12px;right:12px}.tileset-control-button{width:42px;height:42px}.tileset-option{min-height:38px;font-size:14px}
.maplibregl-ctrl-group{background:#282932!important;border:1px solid #686374;overflow:visible;box-shadow:0 2px 10px #0c0d1440!important}.maplibregl-ctrl-group button{width:37px;height:37px;color:#f3efff;font-family:var(--gtavi-ui-font)}.maplibregl-ctrl-group button .maplibregl-ctrl-icon{filter:invert(1) grayscale(1)}.maplibregl-ctrl-group button+button{border-top-color:#4a4856}.maplibregl-ctrl-group button:hover{background-color:#42404e}.maplibregl-ctrl-group button[aria-pressed=true]{background:#594578;color:#f7efff}.native-3d-control button{font-size:13px;font-weight:700;color:#eadeff}.native-3d-status{font:13px/1.4 var(--gtavi-ui-font);color:#e1d5f8;z-index:3}
.user-marker-dialog,.confirm-dialog,.delete-marker-dialog{padding:10px;box-sizing:border-box;overflow:auto;overscroll-behavior:contain}.user-marker-form,.delete-marker-modal,.confirm-modal{box-sizing:border-box;background:#212129;border-color:#4b4858;border-radius:13px;max-height:100%;overflow:auto;overscroll-behavior:contain;font:14px/1.4 var(--gtavi-ui-font)}.user-marker-form input,.user-marker-form textarea,.user-marker-form select{font-size:16px;border-radius:7px}.user-marker-form h3,.confirm-modal h3,.delete-marker-modal h3{font-weight:650;color:#eee8fa}.user-marker-form footer button,.confirm-modal footer button,.delete-marker-modal footer button{min-height:42px;border-radius:7px}
#vi-help-dialog{box-sizing:border-box;max-width:490px;width:calc(100% - 24px);max-height:88dvh;overflow:auto;border:1px solid #4e4b5b;border-radius:14px;background:#202128;color:#f6f5fb;padding:21px;box-shadow:0 20px 50px #06051078}#vi-help-dialog::backdrop{background:#0b0912a8}.vi-dialog-heading{display:flex;align-items:center;justify-content:space-between;gap:10px}.vi-dialog-heading h2{font-size:21px;letter-spacing:-.6px;margin:0}.vi-dialog-heading button{display:grid;place-items:center;min-height:34px;min-width:34px}.vi-instructions{margin:14px 0}.vi-instructions dt{margin:13px 0 3px;font-size:15px;font-weight:620}.vi-instructions dd,.vi-sources p{color:#c4c1cf;font-size:14px;line-height:1.55;margin:0}.vi-sources{border-top:1px solid #403c4b;margin-top:16px;padding-top:12px}.vi-sources h3{margin:0 0 6px;font-size:15px}.vi-sources p+p{margin-top:8px}.vi-sources a{color:#c9b3ff;text-underline-offset:3px}#vi-old-export{margin-top:11px;color:#d0baff;padding:0;text-decoration:underline}#vi-help-dialog [hidden],#vi-feedback[hidden]{display:none}
#vi-feedback{position:fixed;left:50%;transform:translateX(-50%);bottom:calc(var(--vi-bottom) + 14px);z-index:1000;color:#f4edf9;background:#373140f5;border:1px solid #695c79;padding:10px 14px;border-radius:8px;font-size:14px;max-width:calc(100% - 30px);width:max-content;pointer-events:none}
@media(min-width:761px){#map-container:has(.sidebar:not(.closed)) #map{left:var(--vi-panel);width:calc(100% - var(--vi-panel))}.sidebar{transform:none}.sidebar.closed{visibility:hidden}.vi-close-filters{height:30px;width:30px}}
@media(max-width:760px){:root,.sidebar{--vi-top:48px;--vi-bottom:calc(55px + env(safe-area-inset-bottom));--vi-panel:min(100%,420px)}.vi-bar{padding-left:max(12px,env(safe-area-inset-left));padding-right:max(12px,env(safe-area-inset-right));gap:11px}.vi-brand{gap:7px}.vi-brand img{height:28px;width:28px}.vi-brand span{font-size:21px}.vi-region{font-size:13px;padding-left:10px}.vi-region svg{width:13px;height:13px}.vi-desktop-actions,.vi-bar .vi-add{display:none}.vi-mobile-actions{height:var(--vi-bottom);padding:5px max(8px,env(safe-area-inset-right)) calc(5px + env(safe-area-inset-bottom)) max(8px,env(safe-area-inset-left));display:flex;gap:5px;border-top:1px solid #373743}.vi-mobile-actions button{justify-content:center;gap:6px;flex:1;min-width:0;min-height:42px;border-radius:8px;font-size:13px;font-weight:580;color:#d4d3df}.vi-mobile-actions button[aria-expanded=true]{color:#decaff;background:#352e43}.vi-mobile-actions i svg{width:17px;height:17px}.vi-mobile-actions button[data-vi-action=add]{flex:.85}.sidebar{height:100%;max-height:100%;max-width:100%;transition:transform .18s ease}.sidebar-header{min-height:80px}.vi-hero-text{padding-bottom:9px}.vi-hero-text h1{font-size:24px}.vi-search-heading{margin:10px 14px 0}.sidebar-search input{font-size:16px}.sidebar-search{padding-top:8px}.vi-search-icon{top:21px}.sidebar .category-item.accordion-child{min-height:42px}.sidebar .filter-section-header,.sidebar .wildlife-group>summary{min-height:42px}.vi-close-filters{width:40px;height:40px}.maplibregl-ctrl-group button{height:42px;width:42px}.tileset-control-button{width:42px;height:42px}.tileset-control{top:9px;right:9px}#map .marker-popup-main .maplibregl-popup-content{max-height:calc(100dvh - var(--vi-bottom) - var(--vi-top) - 28px)}.user-marker-form{width:min(440px,100%);max-height:100%}.user-marker-form textarea{max-height:16dvh}.vi-dialog-heading h2{font-size:19px}}
@media(max-height:450px){.sidebar-header{min-height:44px}.vi-hero-text{padding:0 0 5px}.vi-hero-text small{display:none}.vi-hero-text h1{font-size:21px}.vi-search-heading{display:none}.sidebar-search{padding-block:5px}.vi-search-icon{top:18px}.vi-bar{--vi-top:40px}.vi-close-filters{top:3px}.user-marker-dialog,.confirm-dialog{align-items:center}}
@media(prefers-reduced-motion:reduce){.sidebar{transition:none}}
.vi-bar button.vi-region{border-left:1px solid #41414c;border-radius:0;padding-left:14px;font-size:13px;font-weight:500;min-height:26px;gap:4px;color:#bcbcca}.vi-bar button.vi-region:hover{color:#e4d6fc}.vi-bar button.vi-region svg{width:15px;height:15px}
.sidebar .marker-section-groups .category-accordion-header{padding:2px 10px;min-height:37px}.sidebar .marker-section-groups .category-accordion-header .category-name{font:550 15px/1.35 var(--gtavi-ui-font)}.sidebar .marker-section-groups .category-caret-button{width:35px;height:34px}
@media(max-width:760px){.vi-bar button.vi-region{padding-left:10px;font-size:12px}.sidebar .marker-section-groups .category-accordion-header{min-height:42px}}
#tileset-control{overflow:visible;border-radius:9px}
#tileset-control .tileset-control-button{display:flex;border-radius:8px}
#tileset-control #tileset-options{position:absolute;top:calc(100% + 6px);right:-1px;display:none;border:1px solid var(--theme-border-strong);border-radius:9px;background:var(--theme-bg-soft);padding:5px;min-width:140px;box-shadow:0 5px 18px #100d1b66}
#tileset-control.open #tileset-options{display:block}
#tileset-control .tileset-option{font:14px/1.4 var(--gtavi-ui-font);border-radius:6px}
.maplibregl-ctrl-attrib{font-family:var(--gtavi-ui-font)!important}
