/* ==========================================================================
   Stickers.IO - Obsidian Cyber Map View Stylesheet
   ========================================================================== */

/* Full-bleed edge-to-edge layout for the map */
body:has(#map) .app-content-wrapper main {
    padding: 0 !important;
}
body:has(#map) footer,
footer.footer, .site-footer, body footer {
    display: none !important;
}
body:has(#map) .container-fluid {
    padding: 0 !important;
    max-width: 100% !important;
}

/* Map container & base */
.map-container-wrapper {
    position: relative;
    width: 100%;
    height: 100vh;
    border-radius: 0;
    overflow: hidden;
    border: none;
    background-color: #0b0c10;
    box-shadow: none;
}

#map {
    width: 100%;
    height: 100%;
    z-index: 1;
}

/* Obsidian Dark Map Mode (Sharp House Numbers & White Street Typography) */
.dark-map-tiles .leaflet-tile-pane {
    filter: brightness(0.62) invert(1) contrast(3) hue-rotate(200deg) saturate(0.32) brightness(0.72);
}

/* Floating Category Bar - Desktop: Top Horizontal Bar */
.map-category-bar {
    display: flex !important;
    position: absolute;
    top: 16px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1010;
    max-width: calc(100% - 24px);
    background: rgba(13, 16, 23, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 30px;
    padding: 5px 8px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.65);
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    flex-direction: row;
    align-items: center;
}
.map-category-bar::-webkit-scrollbar {
    display: none;
}

/* Hide Mobile Pull Handle on Desktop */
.map-cat-tab-btn {
    display: none !important;
}

.map-category-bar .twogis-cat-grid {
    display: flex !important;
    flex-direction: row !important;
    gap: 2px !important;
    align-items: center !important;
    padding: 0 !important;
    margin: 0 !important;
    border: none !important;
    background: transparent !important;
    width: auto !important;
}

.map-category-bar .twogis-cat-item {
    height: 28px !important;
    border-radius: 14px !important;
    background: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    padding: 0 5px !important;
    gap: 3px !important;
    display: inline-flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: center !important;
    flex-shrink: 0 !important;
    cursor: pointer !important;
    white-space: nowrap !important;
    transition: all 0.2s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
}

.map-category-bar .twogis-cat-item:hover {
    background: rgba(255, 215, 0, 0.15) !important;
    border-color: rgba(255, 215, 0, 0.4) !important;
    transform: translateY(-2px) !important;
}

.map-category-bar .twogis-cat-item.active {
    background: linear-gradient(135deg, #FFB800 0%, #FF8A00 100%) !important;
    border-color: #FFB800 !important;
    box-shadow: 0 0 16px rgba(255, 184, 0, 0.55) !important;
    transform: scale(1.04) !important;
}

.map-category-bar .twogis-cat-item i {
    font-size: 0.70rem !important;
    color: var(--accent, #FFB800) !important;
    line-height: 1 !important;
}

.map-category-bar .twogis-cat-item span {
    font-size: 0.68rem !important;
    font-weight: 600 !important;
    color: #e2e8f0 !important;
    line-height: 1 !important;
    letter-spacing: -0.15px;
}

.map-category-bar .twogis-cat-item.active i,
.map-category-bar .twogis-cat-item.active span {
    color: #000000 !important;
    font-weight: 800 !important;
}

/* Floating Bottom Dock / Sheet for both Desktop & Mobile */
.twogis-sidebar {
    position: absolute;
    top: auto;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    width: 460px;
    max-width: calc(100% - 100px);
    height: 52%;
    max-height: 480px;
    z-index: 1020;
    background: rgba(15, 17, 26, 0.94);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 20px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.75);
    display: flex;
    flex-direction: column;
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.twogis-sidebar.collapsed {
    transform: translateX(-50%) translateY(calc(100% - 58px));
}

/* Collapse / Expand Toggle Button */
.twogis-toggle-btn {
    position: absolute;
    top: -34px;
    right: 20px;
    width: 44px;
    height: 34px;
    background: rgba(15, 17, 26, 0.94);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-bottom: none;
    border-radius: 12px 12px 0 0;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.4);
    transition: all 0.2s ease;
    z-index: 1021;
}
.twogis-toggle-btn:hover {
    background: var(--accent, #FFB800);
    color: #000;
}

/* Sidebar Header & Search */
.twogis-header {
    padding: 16px 16px 12px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.twogis-search-box {
    position: relative;
}

.twogis-search-input {
    background: rgba(255, 255, 255, 0.06) !important;
    border: 1px solid rgba(255, 255, 255, 0.14) !important;
    color: #fff !important;
    border-radius: 12px !important;
    padding: 9px 36px 9px 38px !important;
    font-size: 0.85rem !important;
    transition: all 0.2s ease !important;
    width: 100%;
}
.twogis-search-input:focus {
    background: rgba(18, 20, 30, 0.98) !important;
    border-color: var(--accent, #f59e0b) !important;
    box-shadow: var(--accent-glow, 0 0 15px rgba(245, 158, 11, 0.3)) !important;
}

.twogis-clear-btn {
    position: absolute;
    top: 8px;
    right: 10px;
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    font-size: 0.85rem;
    display: none;
}
.twogis-clear-btn:hover {
    color: #fff;
}

/* 2GIS Category Grid */
.twogis-cat-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 6px;
    padding: 12px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(0, 0, 0, 0.15);
}

.twogis-cat-item {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    padding: 8px 4px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    text-align: center;
    user-select: none;
}
.twogis-cat-item:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
    border-color: rgba(255, 255, 255, 0.2);
}
.twogis-cat-item.active {
    background: var(--accent, #f59e0b);
    border-color: var(--accent, #f59e0b);
    color: #000 !important;
    box-shadow: 0 0 14px rgba(245, 158, 11, 0.45);
}
.twogis-cat-item.active i, .twogis-cat-item.active span {
    color: #000 !important;
    font-weight: 700;
}
.twogis-cat-item i {
    font-size: 1rem;
    color: var(--accent, #f59e0b);
}
.twogis-cat-item span {
    font-size: 0.68rem;
    font-weight: 600;
    color: #cbd5e1;
    line-height: 1.1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

/* Objects List in Sidebar */
.twogis-list-header {
    padding: 10px 16px 6px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.78rem;
    color: var(--text-secondary, #94a3b8);
}

.twogis-objects-list {
    flex: 1;
    overflow-y: auto;
    padding: 6px 12px 16px 12px;
    scrollbar-width: thin;
    scrollbar-color: rgba(245, 158, 11, 0.4) transparent;
}
.twogis-objects-list::-webkit-scrollbar {
    width: 4px;
}
.twogis-objects-list::-webkit-scrollbar-thumb {
    background: rgba(245, 158, 11, 0.4);
    border-radius: 4px;
}

/* 2GIS Organization Card */
.twogis-card {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 10px;
    margin-bottom: 8px;
    display: flex;
    gap: 10px;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}
.twogis-card:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--accent, #f59e0b);
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.4);
}
.twogis-card.active {
    border-color: var(--accent, #f59e0b);
    background: rgba(245, 158, 11, 0.08);
    box-shadow: 0 0 16px rgba(245, 158, 11, 0.2);
}

.twogis-card-img {
    width: 72px;
    height: 72px;
    border-radius: 8px;
    object-fit: cover;
    background: #000;
    flex-shrink: 0;
}

.twogis-card-body {
    flex: 1;
    min-width: 0;
}

.twogis-card-title {
    font-size: 0.85rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 3px;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.twogis-card-cat {
    font-size: 0.7rem;
    color: var(--accent, #f59e0b);
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.twogis-card-addr {
    font-size: 0.72rem;
    color: #94a3b8;
    line-height: 1.2;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.twogis-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.twogis-card-price {
    font-size: 0.75rem;
    font-weight: 700;
    color: #fff;
    background: var(--accent-gradient, linear-gradient(135deg, #f59e0b, #d97706));
    padding: 1px 6px;
    border-radius: 4px;
}

/* Thematic Custom Pin Marker Styles */
.thematic-marker-container {
    background: transparent !important;
    border: none !important;
}

.thematic-pin {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(18, 20, 29, 0.95);
    border: 2px solid var(--accent, #f59e0b);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.6), 0 0 10px rgba(245, 158, 11, 0.3);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    position: relative;
}

.thematic-pin::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 5px solid var(--accent, #f59e0b);
}

.thematic-pin:hover, .thematic-pin.highlighted {
    transform: scale(1.25) translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.7), 0 0 16px var(--accent, #f59e0b);
    z-index: 9999 !important;
}

/* Category Specific Colors */
.thematic-pin-sto { border-color: #38bdf8; color: #38bdf8; }
.thematic-pin-sto::after { border-top-color: #38bdf8; }
.thematic-pin-restoran { border-color: #f97316; color: #f97316; }
.thematic-pin-restoran::after { border-top-color: #f97316; }
.thematic-pin-bar { border-color: #a855f7; color: #a855f7; }
.thematic-pin-bar::after { border-top-color: #a855f7; }
.thematic-pin-krasota { border-color: #ec4899; color: #ec4899; }
.thematic-pin-krasota::after { border-top-color: #ec4899; }
.thematic-pin-magaziny, .thematic-pin-tovary { border-color: #eab308; color: #eab308; }
.thematic-pin-magaziny::after, .thematic-pin-tovary::after { border-top-color: #eab308; }
.thematic-pin-kafe { border-color: #d97706; color: #d97706; }
.thematic-pin-kafe::after { border-top-color: #d97706; }
.thematic-pin-karaoke { border-color: #8b5cf6; color: #8b5cf6; }
.thematic-pin-karaoke::after { border-top-color: #8b5cf6; }
.thematic-pin-gostinitsy { border-color: #06b6d4; color: #06b6d4; }
.thematic-pin-gostinitsy::after { border-top-color: #06b6d4; }
.thematic-pin-zdorove { border-color: #ef4444; color: #ef4444; }
.thematic-pin-zdorove::after { border-top-color: #ef4444; }
.thematic-pin-puteshestvie { border-color: #14b8a6; color: #14b8a6; }
.thematic-pin-puteshestvie::after { border-top-color: #14b8a6; }
.thematic-pin-dosug { border-color: #10b981; color: #10b981; }
.thematic-pin-dosug::after { border-top-color: #10b981; }
.thematic-pin-uslugi { border-color: #6366f1; color: #6366f1; }
.thematic-pin-uslugi::after { border-top-color: #6366f1; }

/* Custom Popup Styling */
.leaflet-popup-content-wrapper {
    background: rgba(15, 17, 26, 0.96) !important;
    backdrop-filter: blur(16px) !important;
    -webkit-backdrop-filter: blur(16px) !important;
    border: 1px solid rgba(255, 255, 255, 0.14) !important;
    border-radius: 16px !important;
    color: #fff !important;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.7) !important;
    padding: 0 !important;
    overflow: hidden;
}

.leaflet-popup-content {
    margin: 0 !important;
    width: 224px !important;
}

.leaflet-popup-tip {
    background: rgba(15, 17, 26, 0.96) !important;
    border: 1px solid rgba(255, 255, 255, 0.14) !important;
}

.popup-media-container {
    position: relative;
    width: 100%;
    height: 180px;
    background: #000;
    overflow: hidden;
}
.popup-media-container img, .popup-media-container video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.popup-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    background: rgba(15, 17, 26, 0.85);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    color: #fff;
    font-size: 0.68rem;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.12);
}
.popup-price-badge {
    position: absolute;
    bottom: 8px;
    right: 8px;
    background: var(--accent-gradient, linear-gradient(135deg, #f59e0b 0%, #d97706 100%));
    color: #000;
    font-size: 0.75rem;
    font-weight: bold;
    padding: 3px 8px;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.4);
}
.popup-info {
    padding: 12px 14px;
}
.popup-title {
    font-size: 0.92rem;
    font-weight: bold;
    margin-bottom: 4px;
    color: #fff;
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.popup-details {
    font-size: 0.75rem;
    color: var(--text-secondary, #94a3b8);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.popup-actions-row {
    display: flex;
    gap: 6px;
    margin-bottom: 8px;
}
.popup-btn {
    display: block;
    flex: 1;
    text-align: center;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #fff;
    padding: 7px 0;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
}
.popup-btn:hover {
    background: var(--accent-gradient, linear-gradient(135deg, #f59e0b 0%, #d97706 100%));
    color: #000;
    border-color: transparent;
}
.popup-share-btn {
    width: 36px;
    height: 33px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 8px;
    color: var(--accent, #f59e0b);
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
}
.popup-share-btn:hover {
    background: var(--accent, #f59e0b);
    color: #000;
    border-color: var(--accent, #f59e0b);
}

/* Map Toast Notification */
.map-toast {
    position: fixed;
    top: 76px;
    left: 50%;
    transform: translateX(-50%) translateY(-20px);
    background: rgba(15, 17, 26, 0.95);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--accent, #f59e0b);
    color: #fff;
    padding: 9px 18px;
    border-radius: 30px;
    font-size: 0.82rem;
    font-weight: 600;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.6), 0 0 15px rgba(245, 158, 11, 0.3);
    z-index: 99999;
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.map-toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* Floating Quick Control Buttons on Map */
.twogis-map-tools {
    position: absolute;
    top: 18px;
    right: 18px;
    z-index: 1000;
}
.twogis-tool-btn {
    width: 44px;
    height: 44px;
    background: rgba(15, 17, 26, 0.92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 14px;
    color: var(--accent, #f59e0b);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    cursor: pointer;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.5), 0 0 12px rgba(245, 158, 11, 0.2);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}
.twogis-tool-btn:hover {
    background: var(--accent, #f59e0b);
    color: #000;
    transform: scale(1.08);
    box-shadow: 0 8px 25px rgba(245, 158, 11, 0.45);
}
.twogis-tool-btn:active {
    transform: scale(0.92);
}

/* Mobile Overrides (under 768px) */
@media (max-width: 768px) {
    .map-container-wrapper {
        height: calc(100vh - 56px) !important;
    }

    /* Mobile: Slide-out Category Drawer with "Хвостик" Handle */
    .map-category-bar {
        top: 10px !important;
        left: 0 !important;
        transform: translateX(0) !important; /* Starts expanded upon page entry */
        width: 155px !important;
        max-width: 70vw !important;
        max-height: calc(100% - 150px) !important;
        border-radius: 0 16px 16px 0 !important;
        padding: 8px 6px !important;
        flex-direction: column !important;
        overflow: visible !important; /* Allow the tab handle to stick out */
        box-shadow: 10px 10px 35px rgba(0, 0, 0, 0.85) !important;
        background: rgba(13, 16, 23, 0.96) !important;
        backdrop-filter: blur(24px) !important;
        -webkit-backdrop-filter: blur(24px) !important;
        border: 1px solid rgba(255, 215, 0, 0.3) !important;
        border-left: none !important;
        z-index: 1030 !important;
        transition: transform 0.32s cubic-bezier(0.25, 1, 0.5, 1) !important;
    }

    /* Collapsed state: slides left into the side, leaving only the "хвостик" */
    .map-category-bar.collapsed {
        transform: translateX(-100%) !important;
    }

    /* The "Хвостик" Handle Button attached to right edge */
    .map-cat-tab-btn {
        display: inline-flex !important;
        position: absolute !important;
        left: 100% !important; /* Sticks out to the right of drawer */
        top: 8px !important;
        height: 34px !important;
        padding: 0 9px 0 8px !important;
        background: rgba(13, 16, 23, 0.96) !important;
        backdrop-filter: blur(20px) !important;
        -webkit-backdrop-filter: blur(20px) !important;
        border: 1px solid rgba(255, 215, 0, 0.45) !important;
        border-left: none !important;
        border-radius: 0 17px 17px 0 !important;
        box-shadow: 5px 6px 20px rgba(0, 0, 0, 0.75), 0 0 12px rgba(255, 215, 0, 0.25) !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 5px !important;
        cursor: pointer !important;
        z-index: 1035 !important;
        color: #fff !important;
        outline: none !important;
        transition: background 0.2s, box-shadow 0.2s, transform 0.15s !important;
    }

    .map-cat-tab-btn:active {
        transform: scale(0.96);
    }

    .map-cat-tab-btn i#mapCatTabIcon {
        font-size: 0.85rem !important;
        color: var(--accent, #FFB800) !important;
    }

    .map-cat-tab-btn .map-cat-tab-text {
        font-size: 0.72rem !important;
        font-weight: 700 !important;
        color: #f8fafc !important;
        max-width: 60px !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        white-space: nowrap !important;
        letter-spacing: -0.2px !important;
        display: inline-block !important;
    }

    .map-cat-tab-btn i#mapCatTabArrow {
        font-size: 0.65rem !important;
        color: rgba(255, 255, 255, 0.6) !important;
        transition: transform 0.25s ease !important;
    }

    .map-category-bar.collapsed .map-cat-tab-btn i#mapCatTabArrow {
        transform: rotate(180deg) !important;
    }

    .map-category-bar .twogis-cat-grid {
        display: flex !important;
        flex-direction: column !important;
        gap: 3px !important;
        width: 100% !important;
        max-height: calc(100vh - 190px) !important;
        overflow-y: auto !important;
        overflow-x: hidden !important;
        padding-right: 2px !important;
        padding-bottom: 24px !important;
        scrollbar-width: thin !important;
        scrollbar-color: rgba(255, 215, 0, 0.3) transparent !important;
    }

    .map-category-bar .twogis-cat-item {
        width: 100% !important;
        height: 32px !important;
        min-height: 32px !important;
        border-radius: 8px !important;
        padding: 0 8px !important;
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        justify-content: flex-start !important;
        gap: 8px !important;
        background: rgba(255, 255, 255, 0.04) !important;
        border: 1px solid rgba(255, 255, 255, 0.06) !important;
        box-sizing: border-box !important;
        cursor: pointer !important;
        transition: all 0.2s ease !important;
    }

    .map-category-bar .twogis-cat-item:hover {
        background: rgba(255, 215, 0, 0.12) !important;
        border-color: rgba(255, 215, 0, 0.3) !important;
    }

    .map-category-bar .twogis-cat-item.active {
        background: linear-gradient(135deg, #FFB800 0%, #FF8A00 100%) !important;
        border-color: #FFB800 !important;
        box-shadow: 0 3px 12px rgba(255, 184, 0, 0.45) !important;
    }

    .map-category-bar .twogis-cat-item i {
        font-size: 0.82rem !important;
        width: 16px !important;
        text-align: center !important;
        color: var(--accent, #FFB800) !important;
        line-height: 1 !important;
        flex-shrink: 0 !important;
    }

    .map-category-bar .twogis-cat-item span {
        display: inline-block !important;
        font-size: 0.74rem !important;
        font-weight: 600 !important;
        color: #e2e8f0 !important;
        line-height: 1 !important;
        max-width: none !important;
        overflow: visible !important;
        white-space: nowrap !important;
        letter-spacing: 0 !important;
        transform: none !important;
    }

    .map-category-bar .twogis-cat-item.active i,
    .map-category-bar .twogis-cat-item.active span {
        color: #000000 !important;
        font-weight: 800 !important;
    }

    .twogis-sidebar {
        bottom: 84px !important;
        left: 10px !important;
        right: 10px !important;
        transform: none !important;
        width: calc(100% - 20px) !important;
        max-width: 440px !important;
        margin: 0 auto !important;
        height: 48% !important;
    }

    .twogis-sidebar.collapsed {
        transform: translateY(calc(100% - 54px)) !important;
    }
}

/* ==========================================================================
   Cyber Obsidian Full Sticker Preview Card (#mapStickerCard)
   ========================================================================== */
.sticker-preview-card {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 380px;
    max-width: calc(100vw - 40px);
    max-height: calc(100vh - 40px);
    background: rgba(13, 16, 23, 0.96);
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    border: 1px solid rgba(255, 215, 0, 0.3);
    border-radius: 20px;
    box-shadow: 0 16px 45px rgba(0, 0, 0, 0.85), 0 0 25px rgba(255, 215, 0, 0.15);
    z-index: 1060;
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 215, 0, 0.3) transparent;
    opacity: 0;
    pointer-events: none;
    transform: translateX(30px) scale(0.96);
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.sticker-preview-card.show {
    opacity: 1;
    pointer-events: auto;
    transform: translateX(0) scale(1);
}

.sticker-preview-close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: all 0.2s ease;
}
.sticker-preview-close:hover {
    background: #e11d48;
    color: #fff;
    transform: scale(1.1);
}

.sticker-preview-media-box {
    width: 100%;
    min-height: 220px;
    max-height: 380px;
    background: #000;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.sticker-preview-media-box video,
.sticker-preview-media-box img {
    width: 100%;
    height: auto;
    max-height: 380px;
    object-fit: contain;
    background: #000;
    display: block;
}

.sticker-preview-content {
    padding: 16px 18px 20px 18px;
}

.badge-cat-preview {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 8px;
}

.card-price-tag {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--accent, #FFD700);
    font-family: var(--cyber-font-mono, monospace);
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.4);
}

.card-sticker-title {
    font-size: 1.25rem;
    font-weight: 800;
    color: #FFFFFF;
    margin-bottom: 6px;
    line-height: 1.3;
}

.card-location-row {
    font-size: 0.82rem;
    color: #94a3b8;
    margin-bottom: 10px;
}

.card-sticker-desc {
    font-size: 0.86rem;
    line-height: 1.5;
    color: #cbd5e1;
    margin-bottom: 14px;
    max-height: 100px;
    overflow-y: auto;
}

.card-routes-box {
    margin-bottom: 16px;
}

.routes-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: #94a3b8;
    margin-bottom: 6px;
    display: block;
}

.route-chip {
    flex: 1;
    padding: 6px 10px;
    border-radius: 8px;
    font-size: 0.75rem;
    font-weight: 600;
    text-decoration: none;
    text-align: center;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #e2e8f0;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
}
.route-chip:hover {
    background: rgba(255, 255, 255, 0.14);
    color: #fff;
    border-color: var(--accent, #FFD700);
    transform: translateY(-1px);
}

.card-actions-box {
    display: flex;
    gap: 10px;
}

@media (max-width: 768px) {
    .sticker-preview-card {
        top: auto;
        bottom: 80px;
        left: 10px;
        right: 10px;
        width: calc(100% - 20px);
        max-width: 440px;
        margin: 0 auto;
        max-height: 75vh;
        transform: translateY(30px) scale(0.96);
    }
    .sticker-preview-card.show {
        transform: translateY(0) scale(1);
    }
}

/* ==========================================================================
   Obsidian Cyber City Picker Modal / Bottom Sheet
   ========================================================================== */

/* City Trigger Button in Sidebar Header */
.twogis-city-btn {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.14);
    color: #fff;
    border-radius: 10px;
    padding: 5px 10px;
    font-size: 0.78rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 4px;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    max-width: 155px;
}
.twogis-city-btn:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: var(--accent, #f59e0b);
    color: #fff;
    box-shadow: 0 0 10px rgba(245, 158, 11, 0.2);
}
.twogis-city-btn:active {
    transform: scale(0.96);
}
.twogis-city-label {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 95px;
}

/* City Picker Overlay */
.city-picker-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 99999;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.city-picker-overlay.open {
    opacity: 1;
    pointer-events: auto;
}

/* Bottom Sheet on Mobile / Centered Modal on Desktop */
.city-picker-sheet {
    background: rgba(15, 17, 26, 0.98);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-bottom: none;
    border-radius: 24px 24px 0 0;
    width: 100%;
    max-width: 520px;
    max-height: 80vh;
    box-shadow: 0 -12px 40px rgba(0, 0, 0, 0.8), 0 0 30px rgba(245, 158, 11, 0.12);
    display: flex;
    flex-direction: column;
    transform: translateY(100%);
    transition: transform 0.35s cubic-bezier(0.32, 1, 0.23, 1);
    padding: 8px 16px 24px 16px;
}
.city-picker-overlay.open .city-picker-sheet {
    transform: translateY(0);
}

@media (min-width: 769px) {
    .city-picker-overlay {
        align-items: center;
    }
    .city-picker-sheet {
        border-radius: 20px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.14);
        max-height: 70vh;
        transform: scale(0.92) translateY(20px);
        transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.25s ease;
    }
    .city-picker-overlay.open .city-picker-sheet {
        transform: scale(1) translateY(0);
    }
}

.city-picker-handle {
    width: 36px;
    height: 4px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    margin: 4px auto 10px auto;
}
.city-picker-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.city-picker-close {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}
.city-picker-close:hover {
    background: rgba(255, 255, 255, 0.16);
    color: var(--accent, #f59e0b);
}

/* City Search Box */
.city-search-box {
    position: relative;
    margin-top: 12px;
    margin-bottom: 10px;
}
.city-search-icon {
    position: absolute;
    top: 12px;
    left: 14px;
    font-size: 0.85rem;
}
.city-search-input {
    width: 100%;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    padding: 9px 36px 9px 38px;
    color: #fff;
    font-size: 0.88rem;
    transition: all 0.2s ease;
}
.city-search-input:focus {
    background: rgba(18, 20, 30, 0.98);
    border-color: var(--accent, #f59e0b);
    box-shadow: 0 0 16px rgba(245, 158, 11, 0.3);
    outline: none;
}
.city-clear-btn {
    position: absolute;
    top: 8px;
    right: 12px;
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.85rem;
    cursor: pointer;
    display: none;
}

/* Popular Quick Chips */
.city-popular-chips {
    margin-bottom: 10px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.city-popular-label {
    font-size: 0.72rem;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 700;
}
.city-chips-list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}
.city-quick-chip {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #cbd5e1;
    font-size: 0.76rem;
    font-weight: 600;
    padding: 5px 12px;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.2s ease;
}
.city-quick-chip:hover, .city-quick-chip.active {
    background: var(--accent, #f59e0b);
    color: #000;
    border-color: var(--accent, #f59e0b);
    font-weight: 700;
}

/* Cities Scrollable List */
.city-items-list {
    flex: 1;
    overflow-y: auto;
    max-height: 380px;
    scrollbar-width: thin;
    scrollbar-color: rgba(245, 158, 11, 0.3) transparent;
    padding-right: 4px;
}
.city-option-item {
    padding: 10px 12px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    margin-bottom: 4px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid transparent;
    transition: all 0.2s ease;
}
.city-option-item:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.1);
}
.city-option-item.active {
    background: rgba(245, 158, 11, 0.12);
    border-color: rgba(245, 158, 11, 0.4);
}
.city-option-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.04);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
}
.city-option-title {
    font-size: 0.88rem;
    font-weight: 600;
    color: #fff;
}
.city-option-sub {
    font-size: 0.72rem;
    color: #94a3b8;
}
