/* Reset and Base Styles */
html, body { margin: 0; padding: 0; font-family: Tahoma, Arial, sans-serif; font-size: 13px; overflow: hidden; height: 100vh; }
a { text-decoration: none; }

/* Layout Containers */
#s_top { position: fixed; top: 0; left: 0; width: 100%; height: 30px; background: #f0f0f0; border-bottom: 1px solid #ccc; z-index: 1000; }
#s_bootom { position: fixed; bottom: 0; left: 0; width: 100%; height: 26px; background: #f0f0f0; border-top: 1px solid #ccc; z-index: 1000; }
#s_giua { position: fixed; top: 30px; bottom: 26px; left: 0; width: 100%; display: flex; }

/* Running Text Animation */
#runDIV1, #runDIV2 { overflow: hidden; background: transparent; width: auto; white-space: nowrap; position: absolute; top: 50%; transform: translateY(-50%); animation: marquee 60s linear infinite; }
@keyframes marquee { 0% { left: 100%; } 100% { left: -100%; } }

/* Panels */
#s_thongtin { width: 20%; background: #fff; border-right: 1px solid #ccc; overflow-y: auto; padding: 10px; }
#s_bando { width: 80%; position: relative; min-height: 500px; }
#map { width: 100%; height: 100%; min-height: 500px; background: #f0f0f0; border: 1px solid #ccc; z-index: 1; position: relative; }

/* Controls */
#nhomcongcu1 { padding-top: 10px; display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 12px; z-index: 1001; }
#nhomcongcu2 { position: absolute; top: 6px; right: 6px; z-index: 1001; background: rgba(255, 255, 255, 0.9); padding: 10px; border-radius: 5px; box-shadow: 0 2px 5px rgba(0,0,0,0.2); }

.toolbar-btn {
    padding: 5px 12px;
    border: none;
    border-radius: 4px;
    color: #fff;
    cursor: pointer;
    font-size: 12px;
    background: #1552c3;
    transition: filter 0.2s ease;
}
.toolbar-btn:hover { filter: brightness(0.92); }
.toolbar-btn--primary { background: #007cba; }
.toolbar-btn--gray { background: #6b7280; }
.toolbar-btn--danger { background: #dc2626; }
.toolbar-btn--accent { background: #d32159; }
#nutdanhmuc,
#toggle-mask-btn { display: none !important; visibility: hidden; }

/* Section Headers */
.section-header { background: #e8f4f8; padding: 8px; margin: 10px 0 5px 0; border-left: 4px solid #007cba; font-weight: bold; display: flex; align-items: center; justify-content: space-between; }

/* Tables & Controls */
#bangtinh, #bangxa { margin: 10px 0; border: 1px solid #ddd; }
#bangtinh { height: 170px; }
#bangxa { height: 300px; }
.info-box { background: #f9f9f9; border: 1px solid #ddd; padding: 10px; margin: 10px 0; border-radius: 3px; font-size: 12px; line-height: 1.4; }
#opacity-control { display: flex; align-items: center; gap: 10px; font-size: 12px; }
#opacity-input { width: 100px; }

/* Contest styles removed - focusing on CCN (Cụm Công Nghiệp) */

/* Enhanced Responsive Layout */
@media (min-width: 769px) {
    #s_giua { flex-direction: row; height: calc(100vh - 1px); }
    #s_thongtin {
        position: fixed; top: 60px; right: 0; width: 400px; height: calc(100vh - 1px);
        background: white; border-left: 2px solid #ddd; box-shadow: -2px 0 15px rgba(0, 0, 0, 0.2);
        z-index: 1000; overflow-y: auto; transform: translateX(100%); transition: transform 0.3s ease-in-out; padding: 20px;
    }
    #s_thongtin.desktop-visible { transform: translateX(0); }
    #s_bando { width: 100% !important; height: 100%; position: relative; }
    .mobile-toggle-btn { display: none; }
    .desktop-controls { display: flex; justify-content: space-between; align-items: center; }
    #nutdanhmuc { display: inline-block; }
    .desktop-toggle-bubble { display: none; } /* áº¨n desktop bubble khi panel hiá»ƒn thá»‹ */
}

@media (max-width: 768px) {
    #s_giua { flex-direction: column; height: calc(100vh - 1px); }

    /* Hide desktop elements on mobile */
    #nutdanhmuc { display: none !important; }
    .desktop-toggle-bubble { display: none !important; }
    #toggle-mask-btn { display: none !important; }

    /* Mobile panel */
    #s_thongtin {
        position: fixed;
        top: 60px;
        left: 0;
        right: 0;
        bottom: 0;
        width: 100% !important;
        height: calc(100vh - 60px) !important;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(10px);
        z-index: 3000;
        overflow-y: auto;
        padding: 20px;
        box-shadow: -2px 0 15px rgba(0, 0, 0, 0.2);


        display: none;
        opacity: 0;
        transform: translateX(100%);
        transition: all 0.3s ease-in-out;
    }


    #s_thongtin.mobile-show {
        display: block !important;
        opacity: 1 !important;
        transform: translateX(0) !important;
    }

    #s_bando {
        width: 100% !important;
        height: calc(100vh - 1px);
        position: fixed;
        top: 30px;
        left: 0;
        right: 0;
        bottom: 0;
    }
    #map { height: 100% !important; width: 100% !important; }

    #nhomcongcu1 { position: relative; margin-bottom: 10px; }
    #bangtinh { height: 150px; }
    #bangxa { height: 200px; }
}

/* Stats Grid Responsive */
@media (max-width: 480px) {
    .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; margin: 15px 0; }
    .stat-card { padding: 12px 8px; }
    .stat-label { font-size: 10px; margin-bottom: 6px; }
    .stat-value { font-size: 16px; }
}

@media (max-width: 320px) {
    .stats-grid { grid-template-columns: 1fr; gap: 8px; }
    .stat-card { padding: 14px 12px; }
    .stat-label { font-size: 11px; }
    .stat-value { font-size: 18px; }
}

/* Tabulator Customization */
.tabulator {
    font-size: 12px;
}
.tabulator-header { background: #f8f9fa; border-bottom: 2px solid #007cba; }
.tabulator-row.tabulator-selected { background: #e3f2fd !important; }
.tabulator-row:hover { background: #f8f9fa !important; cursor: pointer; }
.tabulator-cell { font-size: 13px; }

/* Fix tabulator virtual scrolling padding issues */
.tabulator-tableholder {
    overflow-y: auto !important;
    overflow-x: hidden !important;
}

.tabulator-table {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}

/* Ensure fixed heights for table containers */
#bangtinh {
    height: 150px !important;
    overflow: auto;
}

#bangxa {
    height: 200px !important;
    overflow: auto;
}

/* Outside Mask Layer */
.outside-mask-layer {
    transition: opacity 0.3s ease-in-out;
}

/* Custom Scrollbar */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #f1f1f1; }
::-webkit-scrollbar-thumb { background: #888; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #555; }

/* Ward Info Panel */
.ward-info-panel {
    position: fixed;
    top: 20px;
    right: 20px;
    width: 320px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    z-index: 2000;
    display: none;
    transform: translateX(100%);
    transition: transform 0.3s ease-out;
    border: 2px solid #dc2626;
}

.ward-info-panel.show {
    transform: translateX(0);
}

.ward-info-header {
    background: #dc2626;
    color: white;
    padding: 15px 20px;
    border-radius: 6px 6px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.ward-info-header h3 {
    margin: 0;
    font-size: 16px;
    font-weight: bold;
}

.ward-info-header .close-btn {
    background: none;
    border: none;
    color: white;
    font-size: 20px;
    cursor: pointer;
    padding: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background-color 0.2s;
}

.ward-info-header .close-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

.ward-info-content {
    padding: 20px;
}

.info-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid #f3f4f6;
}

.info-row:last-child {
    margin-bottom: 0;
    border-bottom: none;
}

.info-row .label {
    font-weight: 600;
    color: #374151;
    flex-shrink: 0;
    margin-right: 10px;
}

.info-row .value {
    color: #6b7280;
    text-align: right;
    word-break: break-word;
}

/* Ward Tooltip */
.ward-tooltip {
    background: rgba(220, 38, 38, 0.9) !important;
    border: none !important;
    border-radius: 4px !important;
    color: white !important;
    font-size: 12px !important;
    padding: 8px !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3) !important;
}

.ward-tooltip::before {
    border-top-color: rgba(220, 38, 38, 0.9) !important;
}

/* Leaflet Map Enhancements */
.leaflet-popup-content-wrapper { border-radius: 8px; box-shadow: 0 4px 12px rgba(0,0,0,0.15); }
.boundary-popup { font-family: 'Segoe UI', sans-serif; line-height: 1.4; }
.boundary-popup h4 { font-size: 16px; font-weight: 600; margin: 0 0 10px 0; padding-bottom: 5px; border-bottom: 2px solid currentColor; }
.boundary-popup p { margin: 5px 0; font-size: 13px; }
.boundary-popup strong { color: #333; }

/* Map Styles - Only for white map */
.white-map-active .leaflet-map { background-color: rgba(255, 255, 255, 0.8) !important; }
.white-map-active .leaflet-container { background-color: rgba(255, 255, 255, 0.5) !important; }
.white-map-active .leaflet-tile-pane { opacity: 0.6 !important; filter: grayscale(30%) brightness(0.8); }

/* Default map styles - natural colors */
.leaflet-map { background-color: transparent !important; }
.leaflet-container { background-color: transparent !important; }
.leaflet-tile-pane { opacity: 1 !important; filter: none !important; }
.leaflet-overlay-pane svg path.city-boundary {
    filter: drop-shadow(0 0 4px rgba(255, 0, 0, 0.6)) drop-shadow(0 0 8px rgba(255, 0, 0, 0.3));
    stroke-linecap: round; stroke-linejoin: round;
}
.leaflet-overlay-pane svg path:not(.city-boundary) { stroke-width: 1px; opacity: 0.95; }

/* Enhanced Ward Popup */
.detailed-ward-popup-container .leaflet-popup-content-wrapper {
    border-radius: 12px; box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15); border: 1px solid #e0e0e0;
    max-width: 360px; width: 100%;
}
.detailed-ward-popup-container .leaflet-popup-content { margin: 10px; line-height: 1.5; }
.detailed-ward-popup-container .leaflet-popup-tip { background: white; border: 1px solid #e0e0e0; }
.detailed-ward-popup__extra { margin-top: 12px; display: grid; gap: 10px; }
.detailed-ward-popup__extra.is-hidden { display: none; }
.popup-actions {
    margin-top: 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}
.popup-actions--single { justify-content: center; }
.popup-toggle-extra {
    background: transparent;
    border: none;
    padding: 0;
    font-size: 12px;
    font-weight: 600;
    color: #2563eb;
    text-decoration: underline;
    cursor: pointer;
}
.popup-toggle-extra:hover { color: #1d4ed8; }
.popup-subsection {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 10px 12px;
}
.popup-close-btn {
    background: #ef4444;
    border: 1px solid #dc2626;
    color: #fff;
    border-radius: 999px;
    padding: 6px 16px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: filter 0.2s ease, transform 0.2s ease;
}
.popup-close-btn:hover {
    filter: brightness(0.9);
    transform: translateY(-1px);
}

/* Status Styles */
.province-status { transition: all 0.3s ease; }
.province-status.success { background: #d4edda !important; border-left-color: #28a745 !important; color: #155724; }
.province-status.warning { background: #fff3cd !important; border-left-color: #ffc107 !important; color: #856404; }
.province-status.info { background: #d1ecf1 !important; border-left-color: #17a2b8 !important; color: #0c5460; }

/* User Location Animation */
@keyframes pulse { 0% { transform: scale(0.8); opacity: 1; } 50% { transform: scale(1.2); opacity: 0.5; } 100% { transform: scale(0.8); opacity: 1; } }
.user-location-marker { z-index: 1000; }

/* Center Marker - ÄÆ¡n giáº£n vá»›i hÃ¬nh trÃ²n vÃ  ngÃ´i sao */
.center-marker { z-index: 999; }

/* Style cho city center Ä‘Æ¡n giáº£n */
.city-center-simple {
    width: 15px;
    height: 15px;
    background: linear-gradient(135deg, #dc2626, #b91c1c);
    border: 3px solid white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    color: #ffd700;
    text-shadow:
        0 0 3px rgba(255, 215, 0, 0.8),
        1px 1px 2px rgba(0,0,0,0.8);
    box-shadow:
        0 3px 8px rgba(0,0,0,0.4),
        0 0 0 4px rgba(220, 38, 38, 0.2);
    animation: centerZoom 2s infinite ease-in-out;
}

/* Animation zoom to/nhá» cho trung tÃ¢m */
@keyframes centerZoom {
    0%, 100% {
        transform: scale(1);
        box-shadow:
            0 3px 8px rgba(0,0,0,0.4),
            0 0 0 4px rgba(220, 38, 38, 0.2);
    }
    50% {
        transform: scale(1.2);
        box-shadow:
            0 4px 12px rgba(0,0,0,0.5),
            0 0 0 6px rgba(220, 38, 38, 0.3);
    }
}

/* Hover effect */
.city-center-simple:hover {
    animation-duration: 0.5s;
    transform: scale(1.3);
}

/* Stats Grid */
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 12px; margin: 20px 0; padding: 0; }
.stat-card {
    border-radius: 12px; padding: 18px 14px; text-align: center; transition: all 0.3s ease;
    position: relative; overflow: hidden; border: 2px solid transparent;
}
.stat-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 4px; }
.stat-card:hover { transform: translateY(-3px); }

/* Stats Card Colors */
.stat-card:nth-child(1) { background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%); box-shadow: 0 4px 12px rgba(33, 150, 243, 0.15); }
.stat-card:nth-child(1)::before { background: linear-gradient(90deg, #2196f3, #1976d2); }
.stat-card:nth-child(1):hover { box-shadow: 0 8px 25px rgba(33, 150, 243, 0.25); border-color: #2196f3; }

.stat-card:nth-child(2) { background: linear-gradient(135deg, #e8f5e8 0%, #c8e6c9 100%); box-shadow: 0 4px 12px rgba(76, 175, 80, 0.15); }
.stat-card:nth-child(2)::before { background: linear-gradient(90deg, #4caf50, #388e3c); }
.stat-card:nth-child(2):hover { box-shadow: 0 8px 25px rgba(76, 175, 80, 0.25); border-color: #4caf50; }

.stat-card:nth-child(3) { background: linear-gradient(135deg, #fff3e0 0%, #ffcc02 100%); box-shadow: 0 4px 12px rgba(255, 152, 0, 0.15); }
.stat-card:nth-child(3)::before { background: linear-gradient(90deg, #ff9800, #f57c00); }
.stat-card:nth-child(3):hover { box-shadow: 0 8px 25px rgba(255, 152, 0, 0.25); border-color: #ff9800; }

.stat-card:nth-child(4) { background: linear-gradient(135deg, #f3e5f5 0%, #e1bee7 100%); box-shadow: 0 4px 12px rgba(156, 39, 176, 0.15); }
.stat-card:nth-child(4)::before { background: linear-gradient(90deg, #9c27b0, #7b1fa2); }
.stat-card:nth-child(4):hover { box-shadow: 0 8px 25px rgba(156, 39, 176, 0.25); border-color: #9c27b0; }

.stat-label {
    font-size: 11px; font-weight: 500; color: #6c757d; text-transform: uppercase;
    letter-spacing: 0.5px; margin-bottom: 8px; line-height: 1.3;
}
.stat-value { font-size: 18px; font-weight: 700; color: #212529; line-height: 1.2; font-family: 'Segoe UI', sans-serif; }

/* Mobile Controls */
.mobile-toggle-bubble {
    position: fixed; top: 40px; right: 15px; z-index: 3000; background: #007cba; color: white;
    border: none; border-radius: 25px; padding: 12px 20px; font-size: 14px; font-weight: 600;
    box-shadow: 0 4px 12px rgba(0, 124, 186, 0.3); cursor: pointer; transition: all 0.3s ease; display: none;
}
.mobile-toggle-bubble:hover { background: #005a8b; transform: translateY(-2px); box-shadow: 0 6px 16px rgba(0, 124, 186, 0.4); }
.mobile-toggle-bubble:active { transform: translateY(0); }

/* Desktop Toggle Bubble */
.desktop-toggle-bubble {
    position: fixed; top: 30px; right: 15px; z-index: 3000; background: #007cba; color: white;
    border: none; border-radius: 25px; padding: 12px 20px; font-size: 14px; font-weight: 600;
    box-shadow: 0 4px 12px rgba(0, 124, 186, 0.3); cursor: pointer; transition: all 0.3s ease; display: none;
}
.desktop-toggle-bubble:hover { background: #005a8b; transform: translateY(-2px); box-shadow: 0 6px 16px rgba(0, 124, 186, 0.4); }
.desktop-toggle-bubble:active { transform: translateY(0); }

.mobile-panel-header {
    display: flex; justify-content: space-between; align-items: center; position: sticky; top: 0;
    background: #007cba; color: white; padding: 15px 20px; margin: -20px -20px 20px -20px;
    font-size: 16px; font-weight: 600; z-index: 100;
}

.mobile-close-btn {
    background: none; border: none; color: white; font-size: 20px; font-weight: bold;
    cursor: pointer; padding: 5px 10px; border-radius: 50%; transition: background 0.2s;
}
.mobile-close-btn:hover { background: rgba(255, 255, 255, 0.2); }

.mobile-close-btn {
    background: none; border: none; color: white; font-size: 24px; cursor: pointer; padding: 0;
    width: 30px; height: 30px; display: flex; align-items: center; justify-content: center;
    border-radius: 50%; transition: background 0.2s ease;
}
.mobile-close-btn:hover { background: rgba(255, 255, 255, 0.2); }

/* CCN Marker Styles */
.ccn-marker-container {
    z-index: 800;
}
.ccn-marker:hover {
    transform: scale(1.2) !important;
}

/* CCN Popup Styles */
.ccn-popup-container .leaflet-popup-content-wrapper {
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    border: 1px solid #e0e0e0;
    max-width: 400px;
}
.ccn-popup-container .leaflet-popup-content {
    margin: 10px;
    line-height: 1.5;
}
.ccn-popup__extra {
    margin-top: 12px;
    display: grid;
    gap: 10px;
}
.ccn-popup__extra.is-hidden {
    display: none;
}

/* CCN Table */
#bangccn {
    margin: 10px 0;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    height: calc(100vh - 250px);
    min-height: 400px;
}

#bangccn .tabulator-tableholder {
    overflow-y: auto !important;
    overflow-x: hidden !important;
}

#bangccn .tabulator {
    font-size: 11px;
    border: none;
}

#bangccn .tabulator-header {
    background: linear-gradient(135deg, #1e40af 0%, #1e3a8a 100%);
    color: white;
    font-weight: 600;
    border: none;
}

#bangccn .tabulator-col-title {
    color: white;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

#bangccn .tabulator-header-filter input,
#bangccn .tabulator-header-filter select {
    background: rgba(255,255,255,0.95);
    border: 1px solid #cbd5e1;
    border-radius: 4px;
    padding: 3px 6px;
    font-size: 10px;
}

#bangccn .tabulator-row {
    border-bottom: 1px solid #f1f5f9;
    transition: background 0.2s ease;
}

#bangccn .tabulator-row:hover {
    background: #f8fafc !important;
    cursor: pointer;
}

#bangccn .tabulator-row.tabulator-selected {
    background: #dbeafe !important;
}

#bangccn .tabulator-cell {
    padding: 6px 8px;
    vertical-align: middle;
    font-size: 11px;
    line-height: 1.3;
}

/* Toolbar button active state */
.toolbar-btn--active {
    background: #dc2626 !important;
}

/* Mobile ward info panel */
@media (max-width: 768px) {
    .ward-info-panel {
        top: 10px; right: 10px; left: 10px; width: auto; max-height: 70vh; overflow-y: auto;
    }
    .mobile-toggle-bubble { display: block; }
    #nhomcongcu1 #nutdanhmuc { display: none; }
    #s_thongtin { padding: 20px; }
}

/* Province Labels Styles - Static */
.province-label {
    pointer-events: none !important;
    cursor: default;
}

/* White Background Map Tiles - Only for white map */
.white-map-active .leaflet-tile-container {
    background-color: rgb(255, 255, 255) !important;
}

.white-map-active .leaflet-tile {
    background-color: rgb(255, 255, 255) !important;
}

.white-map-active #map {
    background-color: rgb(255, 255, 255) !important;
}

/* Mobile-specific white background */
@media (max-width: 768px) {
    .white-map-active .leaflet-tile-container {
        background-color: rgb(255, 255, 255) !important;
        background: rgb(255, 255, 255) !important;
    }

    .white-map-active .leaflet-tile {
        background-color: rgb(255, 255, 255) !important;
        background: rgb(255, 255, 255) !important;
    }

    .white-map-active #map {
        background-color: rgb(255, 255, 255) !important;
        background: rgb(255, 255, 255) !important;
    }

    .white-map-active .leaflet-map-pane {
        background-color: rgb(255, 255, 255) !important;
        background: rgb(255, 255, 255) !important;
    }

    .white-map-active .leaflet-tile-pane {
        background-color: rgb(255, 255, 255) !important;
        background: rgb(255, 255, 255) !important;
    }

    /* Force white background on all possible mobile elements */
    .white-map-active .leaflet-container {
        background-color: rgb(255, 255, 255) !important;
        background: rgb(255, 255, 255) !important;
    }

    .white-map-active .leaflet-overlay-pane {
        background-color: transparent !important;
    }

    /* Ensure mobile viewport shows white */
    .white-map-active body {
        background-color: rgb(255, 255, 255) !important;
    }

    .white-map-active #s_bando {
        background-color: rgb(255, 255, 255) !important;
    }
}

/* Layer Control Styles - Bottom Left Position */
.leaflet-bottom.leaflet-left .leaflet-control-layers {
    margin-bottom: 60px !important;
    margin-left: 20px !important;
    background: rgba(255, 255, 255, 0.95) !important;
    border-radius: 8px !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
    border: 1px solid #ddd !important;
    font-family: Arial, sans-serif !important;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    pointer-events: auto !important;
}

.leaflet-control-layers-expanded {
    padding: 12px !important;
    min-width: 200px !important;
    max-height: 300px !important;
    overflow-y: auto !important;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    pointer-events: auto !important;
    background: rgba(255, 255, 255, 0.98) !important;
}

.leaflet-control-layers-base label {
    font-size: 13px !important;
    font-weight: 500 !important;
    color: #333 !important;
    margin-bottom: 8px !important;
    display: flex !important;
    align-items: center !important;
    cursor: pointer !important;
    padding: 6px 4px !important;
    border-radius: 4px !important;
    transition: all 0.2s ease !important;
}

.leaflet-control-layers-base label:hover {
    color: #007cba !important;
    background: rgba(0, 124, 186, 0.1) !important;
}

.leaflet-control-layers-base input[type="radio"] {
    margin-right: 10px !important;
    transform: scale(1.2) !important;
    accent-color: #007cba !important;
}

/* Custom Layer Control Toggle Icon - Map Layers */
.leaflet-control-layers-toggle {
    background-image: url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjQiIGhlaWdodD0iMjQiIHZpZXdCb3g9IjAgMCAyNCAyNCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTIgNEwyMiA0VjZIMlY0WiIgZmlsbD0iIzMzNyIvPgo8cGF0aCBkPSJNMiA4TDIyIDhWMTBIMlY4WiIgZmlsbD0iIzU1NyIvPgo8cGF0aCBkPSJNMiAxMkwyMiAxMlYxNEgyVjEyWiIgZmlsbD0iIzMzNyIvPgo8cGF0aCBkPSJNMiAxNkwyMiAxNlYxOEgyVjE2WiIgZmlsbD0iIzU1NyIvPgo8cGF0aCBkPSJNMiAyMEwyMiAyMFYyMkgyVjIwWiIgZmlsbD0iIzMzNyIvPgo8L3N2Zz4=') !important;
    background-size: 20px 20px !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
    width: 40px !important;
    height: 40px !important;
    border-radius: 6px !important;
    border: 2px solid #ddd !important;
    background-color: rgba(255, 255, 255, 0.95) !important;
    transition: all 0.2s ease !important;
}

.leaflet-control-layers-toggle:hover {
    background-color: rgba(0, 124, 186, 0.1) !important;
    border-color: #007cba !important;
    transform: scale(1.05) !important;
}

/* Title for layer control */
.leaflet-control-layers-base::before {
    content: "ðŸ—ºï¸ Chá»n báº£n Ä‘á»“ ná»n:";
    display: block;
    font-weight: bold;
    color: #007cba;
    margin-bottom: 10px;
    padding-bottom: 8px;
    border-bottom: 1px solid #eee;
    font-size: 14px;
}

/* Mobile-specific Layer Control - Compact Size */
@media (max-width: 768px) {
    .leaflet-bottom.leaflet-left .leaflet-control-layers {
        margin-bottom: 50px !important;
        margin-left: 10px !important;
        z-index: 4000 !important;
    }

    .leaflet-control-layers-expanded {
        min-width: 180px !important;
        max-width: calc(100vw - 30px) !important;
        padding: 10px !important;
        font-size: 13px !important;
        max-height: 250px !important;
        overflow-y: auto !important;
    }

    .leaflet-control-layers-base label {
        font-size: 13px !important;
        padding: 6px 4px !important;
        margin-bottom: 6px !important;
        min-height: 36px !important;
        display: flex !important;
        align-items: center !important;
        touch-action: manipulation !important;
        -webkit-tap-highlight-color: rgba(0, 124, 186, 0.2) !important;
    }

    .leaflet-control-layers-base input[type="radio"] {
        margin-right: 8px !important;
        transform: scale(1.2) !important;
        min-width: 16px !important;
        min-height: 16px !important;
    }

    .leaflet-control-layers-toggle {
        width: 40px !important;
        height: 40px !important;
        background-size: 20px 20px !important;
        touch-action: manipulation !important;
        -webkit-tap-highlight-color: rgba(0, 124, 186, 0.2) !important;
    }

    .leaflet-control-layers-base::before {
        font-size: 13px !important;
        margin-bottom: 8px !important;
        padding-bottom: 6px !important;
    }
}
