/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Blue Ribbon Color Palette */
    --blue-ribbon-50: #edf7ff;
    --blue-ribbon-100: #d7ebff;
    --blue-ribbon-200: #b9ddff;
    --blue-ribbon-300: #88c9ff;
    --blue-ribbon-400: #50aaff;
    --blue-ribbon-500: #2885ff;
    --blue-ribbon-600: #085fff;
    --blue-ribbon-700: #0a4eeb;
    --blue-ribbon-800: #0f3fbe;
    --blue-ribbon-900: #133a95;
    --blue-ribbon-950: #11255a;

    /* Primary Colors */
    --primary-color: var(--blue-ribbon-600);
    --primary-dark: var(--blue-ribbon-700);
    --primary-light: var(--blue-ribbon-400);
    --primary-hover: var(--blue-ribbon-500);

    /* Sidebar Colors */
    --sidebar-bg: #ffffff;
    --sidebar-header-bg: #ffffff;
    --text-primary: #1a1a1a;
    --text-secondary: #6b7280;
    --text-light: #9ca3af;
    --border-color: #e5e7eb;
    --hover-bg: var(--blue-ribbon-50);
    --active-bg: var(--blue-ribbon-100);

    /* Other Colors */
    --success-color: #10b981;
    --warning-color: #f59e0b;
    --danger-color: #ef4444;
    --info-color: #3b82f6;

    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);

    /* Transitions */
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-fast: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
}

[v-cloak] {
    display: none;
}

body {
    font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: var(--text-primary);
    background: #ffffff;
    overflow: hidden;
    height: 100vh;
    font-size: 14px;
    margin: 0;
    padding: 0;
}

#app {
    position: relative;
    height: 100vh;
    width: 100vw;
    overflow: hidden;
}

/* Sidebar Styles - Floating Overlay */
.sidebar {
    width: 320px;
    background: var(--sidebar-bg);
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    transition: var(--transition);
    box-shadow: var(--shadow-xl);
    z-index: 1000;
    position: fixed;
    top: 3.5rem;
    left: 1rem;
    border: 1px solid var(--border-color);
    overflow: hidden;
    height: calc(90vh - 2rem);
    max-height: calc(90vh - 2rem);
}

@media (min-width: 768px) {
    .sidebar.collapsed {
        width: 70px;
        min-width: 70px;
    }

    /* Hide text elements when collapsed */
    .sidebar.collapsed .sidebar-header .header-content .header-text,
    .sidebar.collapsed .sidebar-header .header-content .show-all-link {
        display: none !important;
    }

    .sidebar.collapsed .filter-section-header .filter-section-title,
    .sidebar.collapsed .filter-section-header .choose-all-link,
    .sidebar.collapsed .filter-item .form-check-label .filter-label,
    .sidebar.collapsed .filter-item .form-check-label .filter-count,
    .sidebar.collapsed .filter-subgroup-header .filter-subgroup-title,
    .sidebar.collapsed .filter-subgroup-header .choose-all-link {
        display: none !important;
    }

    .sidebar.collapsed .filter-section-header .d-flex:has(.ti-chevron-up),
    .sidebar.collapsed .filter-section-header .d-flex:has(.ti-chevron-down),
    .sidebar.collapsed .filter-subgroup-header .d-flex:has(.ti-chevron-up),
    .sidebar.collapsed .filter-subgroup-header .d-flex:has(.ti-chevron-down) {
        display: none !important;
    }

    /* Header when collapsed */
    .sidebar.collapsed .sidebar-header {
        padding: 1rem 0.5rem;
        justify-content: center;
    }

    .sidebar.collapsed .sidebar-header .header-content {
        justify-content: center;
        gap: 0;
    }

    .sidebar.collapsed .sidebar-logo {
        width: 36px;
        height: 36px;
        font-size: 1rem;
        margin: 0 auto;
    }

    .sidebar.collapsed .sidebar-logo .ti {
        font-size: 1.1rem;
    }

    .sidebar.collapsed .btn-toggle-collapse {
        position: absolute;
        bottom: -2.5rem;
        left: 50%;
        transform: translateX(-50%);
        width: 28px;
        height: 28px;
    }

    /* Filter section header when collapsed */
    .sidebar.collapsed .filter-section-header {
        justify-content: center;
        padding: 0.75rem 0.5rem;
        cursor: default;
        min-height: 48px;
        background: transparent;
    }

    .sidebar.collapsed .filter-section-header:hover {
        background: var(--hover-bg);
    }

    .sidebar.collapsed .filter-section-header .d-flex:not(:first-child) {
        display: none !important;
    }

    .sidebar.collapsed .filter-section-header .d-flex:first-child {
        justify-content: center;
        width: 100%;
        margin: 0;
    }

    .sidebar.collapsed .filter-section-header .filter-icon {
        margin: 0;
        font-size: 1.25rem;
        width: 32px;
        height: 32px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    /* Filter items when collapsed */
    .sidebar.collapsed .filter-items {
        padding: 0.125rem 0;
        background: transparent;
    }

    .sidebar.collapsed .filter-item {
        padding: 0.5rem;
        justify-content: center;
        display: flex;
        min-height: 44px;
        align-items: center;
    }

    .sidebar.collapsed .filter-item:hover {
        background: var(--blue-ribbon-50);
        border-radius: 8px;
    }

    .sidebar.collapsed .form-check {
        justify-content: center;
        width: 100%;
        margin: 0;
    }

    .sidebar.collapsed .form-check-input {
        display: none;
    }

    .sidebar.collapsed .form-check-label {
        justify-content: center;
        margin: 0;
        width: auto;
        gap: 0;
    }

    .sidebar.collapsed .filter-item .form-check-label .filter-icon {
        margin: 0;
        width: 24px;
        height: 24px;
        font-size: 1.25rem;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .sidebar.collapsed .filter-item .form-check-label .filter-badge {
        width: 20px;
        height: 20px;
        border-radius: 50%;
    }

    /* Subgroup when collapsed */
    .sidebar.collapsed .filter-subgroup {
        margin-bottom: 0;
    }

    .sidebar.collapsed .filter-subgroup-header {
        justify-content: center;
        padding: 0.5rem;
        min-height: 44px;
        cursor: default;
    }

    .sidebar.collapsed .filter-subgroup-header:hover {
        background: transparent;
        border-left-color: transparent;
    }

    .sidebar.collapsed .filter-subgroup-header .filter-icon {
        width: 24px;
        height: 24px;
        font-size: 1.25rem;
        margin: 0;
    }

    .sidebar.collapsed .filter-subgroup-items {
        display: none !important;
    }

    .sidebar.collapsed .filter-subgroup-items .filter-item {
        padding-left: 0.5rem;
        padding-right: 0.5rem;
    }
    
    /* Ensure no background color bleed */
    .sidebar.collapsed .filter-section {
        background: transparent;
    }
}

.sidebar-header {
    background: var(--sidebar-header-bg);
    padding: 1.25rem 1.25rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border-color);
    position: relative;
}

.header-content {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    flex: 1;
    transition: var(--transition);
    min-width: 0;
}

.sidebar-logo {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--blue-ribbon-600), var(--blue-ribbon-500));
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 1.25rem;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(8, 95, 255, 0.3);
}

.sidebar-logo .ti {
    font-size: 1.25rem;
}

.header-text {
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
    flex: 1;
    min-width: 0;
}

.header-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.01em;
    transition: var(--transition);
    line-height: 1.3;
    margin: 0;
}

.sidebar.collapsed .header-text {
    display: none !important;
}

/* Ensure single data items are centered when collapsed */
.sidebar.collapsed .filter-items:has(.filter-item:only-child) {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0.25rem 0;
}

.show-all-link {
    font-size: 0.8125rem;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    white-space: nowrap;
    line-height: 1;
}

.show-all-link:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

.btn-menu-toggle,
.btn-close-sidebar {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    width: 36px;
    height: 36px;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    padding: 0;
    flex-shrink: 0;
}

.btn-menu-toggle:hover,
.btn-close-sidebar:hover {
    background: var(--hover-bg);
    color: var(--text-primary);
}

.btn-toggle-collapse {
    background: var(--blue-ribbon-50);
    border: none;
    color: var(--primary-color);
    width: 32px;
    height: 32px;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    flex-shrink: 0;
    padding: 0;
}

.btn-toggle-collapse .ti {
    font-size: 1rem;
}

.btn-toggle-collapse:hover {
    background: var(--blue-ribbon-100);
    transform: scale(1.05);
}

/* Sidebar Content */
.sidebar-content {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    background: var(--sidebar-bg);
}

.sidebar-content::-webkit-scrollbar {
    width: 6px;
}

.sidebar-content::-webkit-scrollbar-track {
    background: transparent;
}

.sidebar-content::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 3px;
}

.sidebar-content::-webkit-scrollbar-thumb:hover {
    background: var(--text-light);
}

/* Filter Sections */
.filter-sections {
    padding: 0;
}

.filter-section {
    border-bottom: 1px solid var(--border-color);
}

.sidebar.collapsed .filter-section:last-child {
    border-bottom: none;
}

.filter-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.875rem 1.25rem;
    cursor: pointer;
    transition: var(--transition);
    user-select: none;
    position: relative;
    gap: 0.75rem;
}

.filter-section-header:hover {
    background: var(--hover-bg);
}

.filter-section-title {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    transition: var(--transition);
    flex: 1;
    min-width: 0;
}

.sidebar.collapsed .filter-section-title {
    display: none;
}

.choose-all-link {
    font-size: 0.75rem;
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    white-space: nowrap;
    line-height: 1;
}

.choose-all-link:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

.filter-section-header .d-flex {
    gap: 0.5rem;
    align-items: center;
    flex-shrink: 0;
}

.filter-section-header .ti {
    font-size: 0.875rem;
    color: var(--text-light);
    transition: var(--transition);
}

.sidebar.collapsed .choose-all-link {
    display: none;
}

.filter-section-header i {
    font-size: 0.75rem;
    color: var(--text-light);
    transition: var(--transition);
}

.filter-items {
    background: var(--blue-ribbon-50);
    padding: 0.375rem 0;
    animation: slideDown 0.3s ease-out;
}

.sidebar.collapsed .filter-items {
    background: transparent;
}

@keyframes slideDown {
    from {
        opacity: 0;
        max-height: 0;
    }
    to {
        opacity: 1;
        max-height: 1000px;
    }
}

.filter-item {
    padding: 0.5625rem 1.25rem 0.5625rem 1.75rem;
    transition: var(--transition);
    position: relative;
}

.filter-item:hover {
    background: var(--hover-bg);
}

/* Nested Sub-Group Styles */
.filter-subgroup {
    margin-bottom: 0.25rem;
}

.filter-subgroup-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.625rem 1.25rem 0.625rem 1.75rem;
    cursor: pointer;
    transition: var(--transition);
    background: rgba(255, 255, 255, 0.5);
    border-left: 3px solid transparent;
}

.filter-subgroup-header:hover {
    background: rgba(255, 255, 255, 0.8);
    border-left-color: var(--primary-color);
}

.filter-subgroup-title {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--text-primary);
}

.filter-subgroup-items {
    background: rgba(255, 255, 255, 0.3);
    padding: 0.25rem 0;
    animation: slideDown 0.2s ease-out;
}

.filter-subgroup-items .filter-item {
    padding-left: 2.5rem;
    padding-right: 1.25rem;
}

/* Tooltip for collapsed sidebar items */
.sidebar.collapsed .filter-item {
    position: relative;
}

.sidebar.collapsed .filter-item:hover::after,
.sidebar.collapsed .filter-section-header:hover::after,
.sidebar.collapsed .filter-subgroup-header:hover::after {
    content: attr(data-tooltip);
    position: absolute;
    left: calc(100% + 0.75rem);
    top: 50%;
    transform: translateY(-50%);
    background: var(--text-primary);
    color: white;
    padding: 0.5rem 0.75rem;
    border-radius: 8px;
    font-size: 0.8125rem;
    white-space: nowrap;
    z-index: 10000;
    box-shadow: var(--shadow-lg);
    pointer-events: none;
    animation: tooltipFadeIn 0.2s ease-out;
}

@keyframes tooltipFadeIn {
    from {
        opacity: 0;
        transform: translateY(-50%) translateX(-5px);
    }
    to {
        opacity: 1;
        transform: translateY(-50%) translateX(0);
    }
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.spinning {
    animation: spin 1s linear infinite;
}

.form-check {
    margin: 0;
    display: flex;
    align-items: center;
    width: 100%;
}

.form-check-input {
    margin-top: 0;
    margin-right: 0.75rem;
    cursor: pointer;
    width: 16px;
    height: 16px;
    border: 2px solid var(--border-color);
    border-radius: 4px;
    flex-shrink: 0;
    margin-left: 0;
}

.form-check-input:checked {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.form-check-input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(99, 102, 241, 0.25);
}

.form-check-label {
    cursor: pointer;
    display: flex;
    align-items: center;
    width: 100%;
    font-size: 0.875rem;
    color: var(--text-primary);
    font-weight: 500;
    transition: var(--transition);
    gap: 0.5rem;
    line-height: 1.4;
    min-width: 0;
}

.sidebar.collapsed .form-check-label {
    justify-content: center;
}

.filter-badge {
    width: 12px;
    height: 12px;
    border-radius: 3px;
    display: inline-block;
    flex-shrink: 0;
}

.filter-icon {
    font-size: 1rem;
    width: 18px;
    text-align: center;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.sidebar.collapsed .filter-icon {
    width: 24px;
    height: 24px;
    font-size: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Hide search in sidebar when collapsed */
.sidebar.collapsed .sidebar-content .d-md-none {
    display: none !important;
}

/* Single data items when collapsed */
.sidebar.collapsed .filter-section:has(.filter-items:has(.filter-item:only-child)) {
    border-bottom: 1px solid var(--border-color);
}

.sidebar.collapsed .filter-section:has(.filter-items:has(.filter-item:only-child)) .filter-item {
    padding: 0.5rem;
    min-height: 44px;
}

/* Ensure proper spacing for collapsed sidebar */
.sidebar.collapsed .sidebar-content {
    padding: 0;
}

.sidebar.collapsed .filter-sections {
    padding: 0.25rem 0;
}

/* Tabler Icons Base Styles */
.ti {
    font-size: inherit;
    line-height: 1;
    display: inline-block;
    vertical-align: middle;
}

.filter-label {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.filter-count {
    font-size: 0.8125rem;
    flex-shrink: 0;
    font-weight: 400;
    color: var(--text-light);
    white-space: nowrap;
}

/* Map Container - Full Screen */
.map-container {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    background: white;
    z-index: 1;
}

.map {
    width: 100%;
    height: 100%;
    z-index: 1;
    flex: 1;
}

/* Top Bar (Mobile) */
.top-bar {
    background: #ffffff;
    border-bottom: 1px solid var(--border-color);
    padding: 0.75rem 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    z-index: 1000;
    box-shadow: var(--shadow-sm);
}

.top-bar-content {
    flex: 1;
    display: flex;
    justify-content: center;
}

.status-badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.375rem 0.75rem;
    border-radius: 6px;
    background: var(--success-color);
    color: white;
    font-size: 0.8125rem;
    font-weight: 500;
}

.status-badge .status-time {
    font-weight: 600;
}

.status-badge.warning {
    background: var(--warning-color);
    color: var(--text-primary);
}

.status-badge.danger {
    background: var(--danger-color);
}

.top-bar-actions {
    display: flex;
    gap: 0.5rem;
}

.btn-icon {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    width: 36px;
    height: 36px;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.btn-icon:hover {
    background: var(--hover-bg);
    color: var(--text-primary);
}

/* Map Search Container */
.map-search-container {
    position: absolute;
    top: 1rem;
    left: 1rem;
    right: 1rem;
    z-index: 1000;
    max-width: 600px;
}

.map-search {
    box-shadow: var(--shadow-lg);
    border-radius: 8px;
    overflow: hidden;
}

.map-search .form-control,
.map-search .input-group-text,
.map-search .form-select {
    border: none;
    font-size: 0.875rem;
}

.map-search .form-control:focus,
.map-search .form-select:focus {
    box-shadow: none;
    border: none;
}

.map-layer-select {
    max-width: 120px;
    font-size: 0.875rem;
}

/* Map Controls */
.map-controls {
    position: absolute;
    top: 1rem;
    right: 1rem;
    z-index: 1000;
    flex-direction: column;
    gap: 0.5rem;
}

.control-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1rem;
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

.control-btn:hover {
    background: var(--hover-bg);
    box-shadow: var(--shadow-lg);
    transform: translateY(-1px);
}

.control-btn i {
    font-size: 0.875rem;
}

/* Map Info Bar */
.map-info-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-top: 1px solid var(--border-color);
    padding: 0.75rem 1.5rem;
    display: flex;
    gap: 2rem;
    z-index: 1000;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.05);
    flex-wrap: wrap;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.info-item i {
    color: var(--primary-color);
    font-size: 0.875rem;
}

.info-item i.spinning {
    color: var(--primary-color);
}

/* Sidebar Overlay (Mobile) */
.sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.sidebar-overlay.show {
    opacity: 1;
    visibility: visible;
}

/* Mobile Responsive */
@media (max-width: 767.98px) {
    .sidebar {
        position: fixed;
        left: 0.5rem;
        top: 0.5rem;
        bottom: 0.5rem;
        z-index: 2000;
        box-shadow: var(--shadow-xl);
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        width: 300px;
        height: calc(100vh - 1rem);
        max-height: calc(100vh - 1rem);
    }

    .sidebar.mobile-open {
        transform: translateX(0);
    }

    /* Remove problematic rule that hides sidebar when collapsed on mobile */
    .sidebar.collapsed {
        width: 300px;
    }

    .btn-toggle-collapse {
        display: none !important;
    }

    .map-container {
        width: 100%;
        height: 100vh;
    }

    .map-search-container {
        top: 74px;
        left: 1.5rem;
        right: 1.5rem;
    }

    .map-controls {
        top: auto;
        bottom: 80px;
        right: 0.5rem;
    }

    .control-btn span {
        display: none;
    }

    .control-btn {
        width: 40px;
        height: 40px;
        padding: 0;
        justify-content: center;
    }

    .map-info-bar {
        flex-direction: column;
        gap: 0.5rem;
        padding: 0.75rem 1rem;
        font-size: 0.8125rem;
    }

    .filter-section-header {
        padding: 0.875rem 1rem;
    }

    .filter-item {
        padding: 0.5rem 1rem 0.5rem 2rem;
    }
}

/* Leaflet Custom Styles */
.leaflet-container {
    font-family: "Inter", sans-serif;
}

.leaflet-control-zoom {
    border: none !important;
    box-shadow: var(--shadow-md) !important;
}

.leaflet-control-zoom a {
    background: #ffffff !important;
    border: 1px solid var(--border-color) !important;
    color: var(--text-primary) !important;
    border-radius: 6px !important;
    width: 32px !important;
    height: 32px !important;
    line-height: 32px !important;
    transition: var(--transition) !important;
}

.leaflet-control-zoom a:hover {
    background: var(--hover-bg) !important;
    border-color: var(--primary-color) !important;
    color: var(--primary-color) !important;
}

.leaflet-popup-content-wrapper {
    border-radius: 8px !important;
    box-shadow: var(--shadow-lg) !important;
    padding: 0 !important;
}

.leaflet-popup-content {
    margin: 0 !important;
    min-width: 280px;
}

.leaflet-bottom {
    bottom: 2rem !important;
}

.popup-content {
    padding: 1rem;
}

.popup-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--border-color);
}

.popup-icon {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.25rem;
}

.popup-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
}

.popup-body {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.popup-info-item {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.popup-info-item i {
    color: var(--primary-color);
    margin-top: 0.125rem;
    width: 16px;
    flex-shrink: 0;
}

.popup-info-item span {
    flex: 1;
}

.popup-footer {
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid var(--border-color);
}

.btn-more {
    width: 100%;
    padding: 0.5rem;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
}

.btn-more:hover {
    background: var(--primary-dark);
}

.custom-marker {
    background: transparent !important;
    border: none !important;
}

/* Filter Summary Panel */
.filter-summary-panel {
    position: fixed;
    top: 1rem;
    right: -2%;
    transform: translateX(-50%);
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 20px;
    padding: 1.25rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    z-index: 1100;
    min-width: 380px;
    max-width: 15vw;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    animation: summarySlideUp 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    border: 1px solid var(--border-color);
}

@keyframes summarySlideUp {
    from {
        transform: translate(-50%, 100%) scale(0.95);
        opacity: 0;
    }
    to {
        transform: translate(-50%, 0) scale(1);
        opacity: 1;
    }
}

.summary-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--border-color);
}

.summary-title {
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.summary-title i {
    color: var(--primary-color);
    font-size: 1.125rem;
}

.summary-stats {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.stat-item {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.stat-label {
    font-size: 0.75rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
}

.stat-value {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--primary-color);
}

.active-filters-scroll {
    overflow-y: auto;
    padding-right: 0.5rem;
}

.active-filters-scroll::-webkit-scrollbar {
    width: 4px;
}

.active-filters-scroll::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 2px;
}

.active-chips-container {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.filter-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.375rem 0.75rem;
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 99px;
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--text-primary);
    transition: var(--transition-fast);
}

.filter-chip:hover {
    background: var(--hover-bg);
    border-color: var(--primary-light);
}

.filter-chip i.remove-filter {
    cursor: pointer;
    font-size: 0.875rem;
    color: var(--text-light);
    transition: var(--transition-fast);
}

.filter-chip i.remove-filter:hover {
    color: var(--danger-color);
}

.btn-clear-all {
    font-size: 0.75rem;
    color: var(--danger-color);
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    font-weight: 600;
}

.btn-clear-all:hover {
    text-decoration: underline;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .filter-summary-panel {
        bottom: 0;
        left: 0;
        right: 0;
        transform: none;
        width: 100%;
        min-width: 100%;
        border-radius: 24px 24px 0 0;
        padding: 1.5rem;
        box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.1);
    }

    @keyframes summarySlideUp {
        from {
            transform: translateY(100%);
            opacity: 0;
        }
        to {
            transform: translateY(0);
            opacity: 1;
        }
    }
}
