
/* ═══════════════════════════════════════════════════
   Patch 49a — Sidebar Scroll + Map Fix
   ═══════════════════════════════════════════════════ */

/* ── Sidebar Scroll ── */
.sidebar {
    position: fixed !important;
    top: 0;
    right: 0;
    height: 100vh !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    z-index: 1040;
    scrollbar-width: thin;
    scrollbar-color: rgba(255,255,255,0.3) transparent;
}

.sidebar::-webkit-scrollbar {
    width: 4px;
}
.sidebar::-webkit-scrollbar-track {
    background: transparent;
}
.sidebar::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.3);
    border-radius: 2px;
}

/* ── Main Content Offset ── */
.main-content {
    margin-right: 260px;
}

@media (max-width: 991.98px) {
    .main-content {
        margin-right: 0;
    }
    .sidebar {
        position: fixed !important;
        right: -260px;
        transition: right 0.3s ease;
    }
    .sidebar.show {
        right: 0;
    }
}

/* ── Map Fix — ثابتة مش بتتحرك ── */
#live-map,
#visit-map,
#checkin-map,
.leaflet-map-container,
[id$="-map"] {
    position: relative !important;
    height: 420px !important;
    width: 100% !important;
    z-index: 1 !important;
    border-radius: 12px;
    overflow: hidden;
}

.leaflet-container {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100% !important;
    height: 100% !important;
}

.map-wrapper {
    position: relative !important;
    width: 100%;
    height: 420px;
    overflow: hidden;
    border-radius: 12px;
    border: 1px solid #dee2e6;
}

/* ── منع تحرك الخريطة مع الصفحة ── */
.leaflet-pane,
.leaflet-map-pane {
    transform-origin: 0 0 !important;
}
