/* ========== GENERAL ========== */
body {
    font-family:  -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    background: aliceblue;
    margin: 0;
    padding: 0;
}

#map {
    height: 100vh;
    width: 100%;
}

.flex-1 {
    flex: 1;
}

/* ========== DESKTOP: LEFT SIDEBAR MENU (Google Maps Style) ========== */
.left-sidebar-menu {
    position: fixed;
    left: 10px;
    top: 10px;
    bottom: 10px;
    width: 70px;
    background: #ffffff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.15);
    border-radius: 8px;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    padding: 8px 0;
}

.left-sidebar-menu .dropdown {
    width: 100%;
    display: flex;
}

.sidebar-menu-btn {
    width: 100%;
    height: auto;
    min-height: 44px;
    background: transparent;
    border: none;
    color: #5f6368;
    font-size: 14px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 6px 4px;
    margin: 2px 0;
    border-radius: 0;
    transition: background-color 0.2s, color 0.2s;
    text-align: center;
}

.sidebar-menu-btn i {
    font-size: 20px;
    margin-bottom: 4px;
}

.sidebar-menu-text {
    font-size: 13px;
    line-height: 1.2;
    font-weight: 500;
}

.sidebar-menu-btn:hover,
.sidebar-menu-btn:focus {
    background-color: #f1f3f4;
    color: #202124;
    text-decoration: none;
    outline: none;
}

.sidebar-menu-btn:active {
    background-color: #e8eaed;
}

/* Dropdown arrow hidden for sidebar */
.sidebar-menu-btn.dropdown-toggle::after {
    display: none;
}

/* Dropdown menu positioning for sidebar */
.left-sidebar-menu .dropdown-menu {
    left: 100%;
    top: 0;
    margin-left: 8px;
    max-height: 400px;
    overflow-y: auto;
}

/* Dropdown no after arrow utility */
.dropdown-toggle.dropdown-no-after::after {
    content: inherit;
}

.sidebar-menu-spacer {
    flex: 1;
}

/* ========== DRAWERS ========== */
/* List Drawer */
.list-drawer {
    position: fixed;
    left: -400px;
    top: 0;
    bottom: 0;
    width: 380px;
    background: #ffffff;
    box-shadow: 2px 0 10px rgba(0,0,0,0.2);
    z-index: 999;
    transition: left 0.3s ease;
}

.list-drawer-content {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.list-drawer-header {
    padding: 16px 20px;
    border-bottom: 1px solid #e0e0e0;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.list-drawer-body {
    flex: 1;
    overflow-y: auto;
}


/* ========== DESKTOP: TOP BAR (Search & Statistics) ========== */
.top-bar {
    position: fixed;
    left: 85px;
    top: 10px;
    right: 10px;
    height: 48px;
    z-index: 998;
    display: flex;
    align-items: center;
    padding: 0 10px;
}

.top-bar .search-wapper {
    width: 400px;
    position: relative;
}

.top-bar .search-wapper .input-group {
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
    border-radius: 4px;
    overflow: hidden;
}

.top-bar .search-wapper input {
    border: none;
    height: 40px;
}

.top-bar .search-wapper .btn {
    height: 40px;
    border: none;
    background: #ffffff;
}

.statistics-wrapper {
    display: flex;
    gap: 8px;
}

.statistics-wrapper .btn {
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
    border-radius: 4px;
    font-size: 13px;
    padding: 8px 12px;
}

.statistics-wrapper .unactive {
    opacity: 0.5;
}

/* ========== MOBILE: TOP BAR ========== */
.mobile-top-bar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 998;
    padding: 8px 12px;
}

.mobile-top-bar .search-wapper {
    position: relative;
}

.mobile-top-bar .statistics-wrapper {
    display: flex;
    gap: 6px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.mobile-top-bar .statistics-wrapper .btn {
    font-size: 11px;
    padding: 4px 8px;
    white-space: nowrap;
}

/* ========== MOBILE: BOTTOM NAVIGATION ========== */
.mobile-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 8px 0px;
    background: #ffffff;
    box-shadow: 0 -2px 6px rgba(0,0,0,0.1);
    z-index: 998;
    display: flex;
    justify-content: space-around;
    align-items: center;
}

.mobile-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    color: #5f6368;
    cursor: pointer;
    padding: 0;
    min-width: 60px;
    transition: color 0.2s;
}

.mobile-nav-item:hover,
.mobile-nav-item:active {
    color: #1a73e8;
}

.mobile-nav-item i {
    font-size: 20px;
    margin-bottom: 4px;
}

.mobile-nav-label {
    font-size: 11px;
    text-align: center;
}

/* ========== MOBILE: INFO DRAWER ========== */
.mobile-info-drawer {
    position: fixed;
    left: 0;
    right: 0;
    bottom: -100%;
    height: 80vh;
    background: #ffffff;
    box-shadow: 0 -4px 16px rgba(0,0,0,0.2);
    z-index: 999;
    transition: bottom 0.3s ease;
    border-radius: 16px 16px 0 0;
}

.mobile-info-drawer.active {
    bottom: 0;
}

.mobile-info-drawer-content {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.mobile-info-drawer-header {
    padding: 16px 20px;
    border-bottom: 1px solid #e0e0e0;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.mobile-info-drawer-body {
    flex: 1;
    overflow-y: auto;
    padding: 16px 20px;
}

/* ========== MOBILE: FILTER DRAWER ========== */
.mobile-filter-drawer {
    position: fixed;
    left: 0;
    right: 0;
    bottom: -100%;
    height: 85vh;
    background: #ffffff;
    box-shadow: 0 -4px 16px rgba(0,0,0,0.2);
    z-index: 999;
    transition: bottom 0.3s ease;
    border-radius: 16px 16px 0 0;
}

.mobile-filter-drawer.active {
    bottom: 0;
}

.mobile-filter-drawer-content {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.mobile-filter-drawer-header {
    padding: 16px 20px;
    border-bottom: 1px solid #e0e0e0;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.mobile-filter-drawer-body {
    flex: 1;
    overflow-y: auto;
}

.mobile-filter-drawer-body .sidebar-filter-content {
    width: 100%;
    height: 100%;
}

/* ========== ADVANCED FILTER SIDEBAR ========== */
#sidebar {
    width: 350px;
    max-width: 100%;
    background: #fff;
    color: rgba(0,0,0,.85);
    transition: all 0.3s;
    position: fixed;
    z-index: 999;
    height: 100vh;
    top: 0;
    left: -350px;
}

#sidebar.active {
    left: 85px;
}

.sidebar-mask {
    position: fixed;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,.3);
    left: 0;
    top: 0;
    z-index: 1;
    display: none;
}

#sidebar.active .sidebar-mask {
    display: block;
}

.sidebar-wapper {
    position: relative;
    z-index: 2;
    background: #fff;
    height: 100%;
    width: 100%;
    display: flex;
    flex-direction: column;
}

#sidebar .sidebar-header {
    padding: 16px 24px;
    background: #fff;
    border-bottom: 1px solid #f0f0f0;
}

#sidebar ul.components {
    padding: 24px;
    overflow-y: auto;
    overflow-x: hidden;
    margin: 0;
    flex: 1;
}

/* ========== SEARCH WRAPPER ========== */
.search-wapper {
    position: relative;
}

.search-wapper .search-results {
    position: absolute;
    width: 100%;
    left: 0;
    top: 100%;
    z-index: 2;
    display: none;
    background: #ffffff;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
    border-radius: 0 0 4px 4px;
    max-height: 300px;
    overflow-y: auto;
}

.search-wapper .search-results.active {
    display: block !important;
}

/* ========== MAP CONTROLS ========== */
.rootmap-current-location {
    position: fixed;
    bottom: 10px;
    right: 45px;
    z-index: 996;
    padding: 6px;
    height: 40px;
    width: 40px;
    background: #ffffff;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
    border-radius: 4px;
}

.modelmap-current-location {
    position: absolute;
    bottom: 8px;
    right: 8px;
    z-index: 2;
    padding: 6px;
    height: 34px;
    width: 34px;
}

/* ========== MODAL MAP ========== */
#modalMap {
    width: 100%;
}

/* ========== REQUEST IMAGES ========== */
.request-image {
    height: auto;
    border: 1px solid rgba(0,0,0,.7);
    border-radius: 5px;
    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
    cursor: pointer;
}

.request-image:hover {
    opacity: 0.7;
}

/* ========== REQUEST LIST ITEMS ========== */
.request-list {
    padding: 0;
}

.request-item {
    cursor: pointer;
    transition: all 0.2s;
}

.request-item:hover {
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    border-color: #d0d0d0;
}

.request-item:active {
    transform: scale(0.98);
}

.request-item .card-body {
    padding: 12px;
}

.request-item-image {
    flex-shrink: 0;
}

/* ========== SUPPORT TABLE ========== */
.support-table th, 
.support-table td {
    white-space: nowrap;
}

/* ========== HIDE GOONG/MAPBOX ATTRIBUTIONS ========== */
.mapboxgl-ctrl-logo, 
.mapboxgl-ctrl-attrib.mapboxgl-compact {
    display: none !important;
}

.list-drawer.active {
    left: 85px;
}

/* List drawer handle for mobile expand/collapse */
.list-drawer-handle {
    display: none;
    width: 100%;
    border: none;
    padding: 0;
    margin: 0;
    cursor: pointer;
    font-size: 13px;
    background: transparent;
}

.list-drawer-handle:hover,
.list-drawer-handle:active {
    outline: none;
    box-shadow: none;
}

.list-drawer-handle i {
    font-size: 18px;
    margin-right: 8px;
}

.list-drawer-handle span {
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ========== MOBILE RESPONSIVE ========== */
@media (max-width: 767px) {
    .list-drawer {
        left: 0;
        right: 0;
        top: auto;
        bottom: -100%;
        width: 100%;
        max-width: 100%;
        height: 40vh;
        border-radius: 16px 16px 0 0;
        transition: bottom 0.3s ease, height 0.3s ease;
    }

    .list-drawer.active {
        bottom: 0;
        left: 0;
    }
    
    .list-drawer.expanded {
        height: 80vh;
    }
    
    .list-drawer-handle {
        display: flex;
        align-items: center;
    }
    
    #sidebar {
        left: -100%;
        width: 85%;
        max-width: 350px;
    }
    
    #sidebar.active {
        left: 0;
    }
    
    .rootmap-current-location {
        bottom: 60px;
    }
    .mapboxgl-ctrl-bottom-right{
        bottom: 50px;
    }
}
.mapboxgl-ctrl.mapboxgl-ctrl-attrib{
    display: none;
}

/* Item Categories Accordion */
#itemCategoriesAccordion .card {
    border: 1px solid rgba(0,0,0,.125);
    border-radius: 0.25rem;
}

#itemCategoriesAccordion .card-header {
    background-color: #f8f9fa;
}

#itemCategoriesAccordion .card-header .btn-link {
    text-decoration: none;
    color: #007bff;
    padding: 0.75rem 1rem;
}

#itemCategoriesAccordion .card-header .btn-link:hover {
    text-decoration: none;
    background-color: #e9ecef;
}

#itemCategoriesAccordion .card-header .btn-link i {
    transition: transform 0.3s ease;
}

#itemCategoriesAccordion .card-header .btn-link[aria-expanded="true"] i {
    transform: rotate(180deg);
}
.modal{
    overflow: auto !important;
}