:root {
    --bg-color: #ffffff;
    --text-color: #333333;
    --header-bg: rgb(240, 245, 250);
    --header-text: #333333;
    --panel-bg: rgb(255, 255, 255);
    --panel-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    --header-border: rgb(225, 235, 245);
}

[data-theme="dark"] {
    --bg-color: #1a1a1a;
    --text-color: #ffffff;
    --header-bg: rgb(45, 45, 45);
    --header-text: #ffffff;
    --panel-bg: rgb(45, 45, 45);
    --panel-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    --header-border: rgb(55, 55, 55);
}

body {
    margin: 0;
    padding: 0;
    background-color: var(--bg-color);
    color: var(--text-color);
    transition: all 0.3s ease;
}

.header {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 80px;
    background: var(--header-bg);
    backdrop-filter: blur(10px);
    padding: 0 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1001;
    box-shadow:
        0 2px 4px rgba(0, 0, 0, 0.02),
        0 1px 2px rgba(0, 0, 0, 0.03);
    border-bottom: 1px solid var(--header-border);
}

.header-title {
    font-size: 20px;
    font-weight: 600;
    color: #1a1a1a;
    padding: 10px 16px;
    border-radius: 10px;
    background: linear-gradient(to right, transparent, transparent);
    transition: all 0.3s ease;
}

.header-title:hover {
    background: linear-gradient(to right, rgba(0, 0, 0, 0.03), transparent);
    transform: translateX(2px);
}

.header-title:active {
    transform: translateY(1px);
    background: rgba(0, 0, 0, 0.08);
}

/* Dark theme adjustments */
[data-theme="dark"] .header-title:hover {
    background: rgba(255, 255, 255, 0.05);
}

[data-theme="dark"] .header-title:active {
    background: rgba(255, 255, 255, 0.08);
}


.theme-toggle {
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s;
}

.theme-toggle:hover {
    background-color: rgba(0, 0, 0, 0.1);
}

#map {
    position: absolute;
    top: 90px !important;
    left: 20px;
    right: 20px;
    bottom: 20px;
    border-radius: 12px;
    box-shadow:
        0 4px 20px rgba(0, 0, 0, 0.08),
        0 2px 8px rgba(0, 0, 0, 0.04);
}

.filter-panel {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 1000;
    background: var(--panel-bg);
    padding: 15px;
    border-radius: 5px;
    box-shadow: var(--panel-shadow);
    min-width: 200px;
}

.info-panel {
    position: absolute;
    top: 110px;
    /* Adjusted to match new map position (90px + 20px) */
    right: 60px;
    z-index: 1000;
    background: var(--panel-bg);
    padding: 20px;
    border-radius: 12px;
    box-shadow: var(--panel-shadow);
}

.filter-select {
    width: 100%;
    padding: 8px;
    margin-top: 5px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

.custom-zoom-control {
    position: absolute;
    bottom: 45px !important;
    /* Position from bottom of map */
    left: 45px !important;
    /* Position from left of map */
    z-index: 1000;
    background: var(--header-bg);
    border-radius: 4px;
    box-shadow: var(--panel-shadow);
    width: fit-content;
}

.zoom-button {
    display: block;
    width: 30px;
    height: 30px;
    line-height: 30px;
    text-align: center;
    background: var(--header-bg);
    border: 1px solid var(--header-border);
    cursor: pointer;
    font-size: 18px;
    font-weight: bold;
    color: var(--text-color);
}

.zoom-button:first-child {
    border-bottom: none;
    border-radius: 4px 4px 0 0;
}

.zoom-button:last-child {
    border-radius: 0 0 4px 4px;
}

.zoom-button:hover {
    background-color: rgba(0, 0, 0, 0.05);
}

#municipalityFilter {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    background-color: #fff;
    cursor: pointer;
    outline: none;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.04);
}

#municipalityFilter:hover {
    border-color: #999;
}

#municipalityFilter:focus {
    border-color: #4a90e2;
    box-shadow: 0 0 0 2px rgba(74, 144, 226, 0.2);
}

/* Filter control at top left */
.filter-control {
    position: absolute;
    top: 100px;
    /* Changed from 200px to 100px */
    left: 10px;
    z-index: 1000;
    background: var(--header-bg);
    padding: 20px;
    border-radius: 12px;
    border: 1px solid var(--header-border);
    box-shadow: var(--panel-shadow);
}

/* Original filter window style */
.filter-container {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 1000;
    background: white;
    padding: 15px;
    border-radius: 4px;
    box-shadow: rgba(17, 12, 46, 0.15) 0px 48px 100px 0px,
        rgba(0, 0, 0, 0.1) 0px 10px 15px -3px,
        rgba(0, 0, 0, 0.05) 0px 4px 6px -2px;
}

.filter-container label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

/* .filter-control:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
} */

.filter-control:hover .filter-header {
    color: #5a78d0;
    background: linear-gradient(to right, rgba(188, 119, 119, 0.1), transparent);
    transform: translateX(3px);
}

#municipalityFilter {
    width: 200px;
    /* Adjust width as needed */
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 14px;
    border-color: #4169E1;
    box-shadow: 0 0 0 2px rgba(65, 105, 225, 0.1);
}

/* Zoom controls style */
.custom-zoom-control {
    position: absolute;
    bottom: 40px;
    /* Adjusted for body padding */
    left: 40px;
    /* Adjusted for body padding */
    z-index: 1000;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.zoom-button {
    display: block;
    width: 30px;
    height: 30px;
    line-height: 30px;
    text-align: center;
    background: white;
    border: 1px solid #ccc;
    cursor: pointer;
    font-size: 18px;
    font-weight: bold;
    color: #333;
}

.zoom-button:first-child {
    border-bottom: none;
    border-radius: 4px 4px 0 0;
}

.zoom-button:last-child {
    border-radius: 0 0 4px 4px;
}

.zoom-button:hover {
    background-color: #f4f4f4;
}

.header-controls {
    display: flex;
    align-items: center;
    gap: 20px;
}

.language-selector {
    display: flex;
    gap: 4px;
}

.lang-btn {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: var(--header-text);
    padding: 6px 10px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.2s ease;
}

.lang-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

.lang-btn.active {
    background: rgba(255, 255, 255, 0.25);
    font-weight: 500;
}

.language-dropdown {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background: transparent;
    color: var(--header-text);
    border: none;
    border-radius: 8px;
    padding: 8px 32px 8px 12px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    margin-right: 12px;
    outline: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 8px center;
    background-size: 16px;
    min-width: 140px;
}

.language-dropdown:hover {
    background-color: rgba(0, 0, 0, 0.05);
}

.language-dropdown:active,
.language-dropdown:focus {
    background-color: rgba(0, 0, 0, 0.08);
}

/* Dark theme adjustments */
[data-theme="dark"] .language-dropdown {
    color: var(--header-text);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
}

[data-theme="dark"] .language-dropdown:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .language-dropdown:active,
[data-theme="dark"] .language-dropdown:focus {
    background-color: rgba(255, 255, 255, 0.15);
}

.language-dropdown option {
    background: var(--bg-color);
    color: var(--text-color);
    padding: 12px;
    font-weight: 500;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .language-dropdown {
        min-width: 120px;
        padding: 6px 28px 6px 10px;
        font-size: 13px;
    }
}

.header-left {
    display: flex;
    align-items: center;
    gap: 16px;
}

.logo {
    font-size: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 8px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    user-select: none;
    background: transparent;
    box-shadow: none;
}

.logo:hover {
    transform: translateY(-2px);
    background-color: rgba(0, 0, 0, 0.08);
}

.logo:active {
    transform: scale(0.95) translateY(1px);
    background-color: rgba(0, 0, 0, 0.12);
    transition-duration: 0.1s;
}

/* Dark theme adjustments */
[data-theme="dark"] .logo:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .logo:active {
    background-color: rgba(255, 255, 255, 0.15);
}

/* Responsive adjustment */
@media (max-width: 768px) {
    .logo {
        font-size: 26px;
        width: 42px;
        height: 42px;
    }
}

.filter-header {
    margin: 0 0 10px 0;
    font-size: 16px;
    font-weight: 600;
    padding: 8px 12px;
    margin-left: -12px;
    margin-right: -12px;
    cursor: default;
    user-select: text;
}

.filter-header:hover,
.filter-header:active {
    background: none;
    transform: none;
}

#municipalityFilter {
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

#municipalityFilter:hover {
    background-color: rgba(0, 0, 0, 0.1);
}

#municipalityFilter:active {
    transform: scale(0.95);
    background-color: rgba(0, 0, 0, 0.15);
}

/* Common transition for all interactive elements */
.logo,
.header-title,
.filter-header {
    will-change: transform;
    backface-visibility: hidden;
}

/* Return animation */
.logo,
.header-title,
.filter-header {
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 0.3s;
    transition-property: transform, background, box-shadow;
}

/* Common styles for clickable items */
.clickable-item {
    cursor: pointer;
    user-select: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform-origin: center;
    will-change: transform;
    backface-visibility: hidden;
}

/* Hover effect for all clickable items */
.clickable-item:hover {
    background-color: rgba(0, 0, 0, 0.05) !important;
}

/* Active state for all clickable items */
.clickable-item:active {
    background-color: rgba(0, 0, 0, 0.08) !important;
}

/* Logo specific hover adjustments */
.logo {
    /* ... existing logo styles ... */
    padding: 8px;
    border-radius: 50%;
}

/* Header title hover adjustments */
.header-title {
    /* ... existing header title styles ... */
    padding: 8px 12px;
    border-radius: 8px;
}

/* Filter header hover adjustments */
.filter-header {
    /* ... existing filter header styles ... */
    padding: 8px 12px;
    border-radius: 8px;
}

/* Dark theme adjustments */
[data-theme="dark"] .clickable-item:hover {
    background-color: rgba(255, 255, 255, 0.1) !important;
}

[data-theme="dark"] .clickable-item:active {
    background-color: rgba(255, 255, 255, 0.15) !important;
}

/* Theme toggle button - for reference */
.theme-toggle {
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s;
}

.theme-toggle:hover {
    background-color: rgba(0, 0, 0, 0.1);
}

/* Ensure consistent hover areas */
.header-left {
    display: flex;
    align-items: center;
    gap: 16px;
}

/* Add padding to create consistent hover areas */
.header-title,
.filter-header {
    padding: 8px 12px;
    margin: 0;
    border-radius: 8px;
}

/* Adjust select dropdown for white background */
#municipalityFilter {
    background-color: var(--panel-bg);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 6px;
}

#municipalityFilter:hover {
    background-color: rgba(0, 0, 0, 0.05);
    border-color: rgba(0, 0, 0, 0.15);
}

#municipalityFilter:focus {
    background-color: var(--panel-bg);
    border-color: rgba(0, 0, 0, 0.2);
    outline: none;
    box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.05);
}

/* Dark theme adjustments */
[data-theme="dark"] #municipalityFilter {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.1);
    color: var(--text-color);
}

[data-theme="dark"] #municipalityFilter:hover {
    background-color: rgba(255, 255, 255, 0.15);
}

[data-theme="dark"] #municipalityFilter:focus {
    background-color: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.2);
}

/* Enhanced Header Styles */
.header {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 80px;
    background: var(--header-bg);
    backdrop-filter: blur(10px);
    padding: 0 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1001;
    box-shadow:
        0 2px 4px rgba(0, 0, 0, 0.02),
        0 1px 2px rgba(0, 0, 0, 0.03);
    border-bottom: 1px solid var(--header-border);
    opacity: 0.7;
}

/* Enhanced Logo Styles */
.logo {
    font-size: 28px;
    width: 45px;
    height: 45px;
    border-radius: 12px;
    background: linear-gradient(135deg, rgb(245, 250, 255) 0%, rgb(235, 245, 255) 100%);
    box-shadow:
        0 2px 4px rgba(0, 0, 0, 0.04),
        0 1px 2px rgba(0, 0, 0, 0.06);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.logo:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow:
        0 4px 6px rgba(0, 0, 0, 0.08),
        0 2px 4px rgba(0, 0, 0, 0.12);
}

/* Enhanced Header Title */
.header-title {
    font-size: 20px;
    font-weight: 600;
    color: #1a1a1a;
    padding: 10px 16px;
    border-radius: 10px;
    background: linear-gradient(to right, transparent, transparent);
    transition: all 0.3s ease;
}

.header-title:hover {
    background: linear-gradient(to right, rgba(0, 0, 0, 0.03), transparent);
    transform: translateX(2px);
}

/* Enhanced Language Dropdown */
.language-dropdown {
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 10px;
    padding: 8px 36px 8px 16px;
    font-size: 15px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    transition: all 0.2s ease;
}

.language-dropdown:hover {
    background: rgba(255, 255, 255, 0.9);
    border-color: rgba(0, 0, 0, 0.12);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Enhanced Theme Toggle */
.theme-toggle {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: linear-gradient(135deg, rgb(245, 250, 255) 0%, rgb(235, 245, 255) 100%);
    box-shadow:
        0 2px 4px rgba(0, 0, 0, 0.04),
        0 1px 2px rgba(0, 0, 0, 0.06);
}

.theme-toggle:hover {
    background: linear-gradient(135deg, rgb(235, 245, 255) 0%, rgb(225, 240, 255) 100%);
    transform: translateY(-2px);
    box-shadow:
        0 4px 6px rgba(0, 0, 0, 0.08),
        0 2px 4px rgba(0, 0, 0, 0.12);
}

/* Dark Theme Adjustments */
[data-theme="dark"] .header {
    background: rgba(33, 33, 33, 0.95);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .logo,
[data-theme="dark"] .theme-toggle {
    background: linear-gradient(135deg, #2d2d2d 0%, #1a1a1a 100%);
    box-shadow:
        0 2px 4px rgba(0, 0, 0, 0.2),
        0 1px 2px rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] .header-title {
    color: #ffffff;
}

[data-theme="dark"] .language-dropdown {
    background: rgba(45, 45, 45, 0.8);
    border-color: rgba(255, 255, 255, 0.1);
    color: #ffffff;
}

/* Responsive Design */
@media (max-width: 768px) {
    .header {
        padding: 0 16px;
        height: 60px;
    }

    .logo {
        width: 40px;
        height: 40px;
        font-size: 24px;
    }

    .header-title {
        font-size: 18px;
        padding: 8px 12px;
    }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    #map {
        top: 80px !important;
        left: 0;
        /* Remove side padding to use full width */
        right: 0;
        bottom: 0;
        height: calc(100vh - 80px) !important;
        /* Full viewport height minus header */
        width: 100% !important;
        position: fixed !important;
    }

    /* Hide filter, QR code, and description on mobile */
    .filter-control,
    .qr-code-container,
    .info-panel {
        display: none !important;
    }

    /* Adjust map controls for better mobile visibility */
    .leaflet-control-zoom {
        margin: 10px !important;
    }

    /* Ensure map container takes full width */
    .map-container {
        width: 100% !important;
        padding: 0 !important;
        margin: 0 !important;
    }

    /* Adjust popup size for mobile */
    .leaflet-popup-content {
        width: auto !important;
        max-width: 280px !important;
        /* Adjust based on your content */
        font-size: 14px !important;
    }
}

/* Add a specific class for mobile zoom level that we'll toggle with JavaScript */
.mobile-view {
    transition: all 0.3s ease;
}

/* Panel color variables */
:root {
    --header-bg: rgb(240, 245, 250);
    /* Light blue background */
    --header-border: rgb(225, 235, 245);
    /* Slightly darker blue for border */
    --panel-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

/* Filter Panel Styles */
.filter-control {
    position: absolute;
    top: 110px;
    left: 40px;
    z-index: 1000;
    background: var(--header-bg);
    /* Matching header background */
    padding: 20px;
    border-radius: 12px;
    opacity: 0.8;
    border: 1px solid var(--header-border);
    /* Matching header border */
    box-shadow: var(--panel-shadow);
}

/* Info Panel Styles - matching filter panel */
.info-panel {
    position: absolute;
    top: 110px;
    right: 40px;
    z-index: 1000;
    background: var(--header-bg);
    /* Matching header background */
    padding: 20px;
    border-radius: 12px;
    opacity: 0.8;
    border: 1px solid var(--header-border);
    /* Matching header border */
    box-shadow: var(--panel-shadow);
}

/* Municipality Filter Select styling */
#municipalityFilter {
    background-color: rgba(255, 255, 255, 0.7);
    border: 1px solid var(--header-border);
    border-radius: 6px;
    padding: 8px 12px;
    width: 100%;
    color: #333;
}

#municipalityFilter:hover {
    background-color: rgba(255, 255, 255, 0.9);
    border-color: rgba(0, 0, 0, 0.15);
}

#municipalityFilter:focus {
    background-color: #ffffff;
    border-color: rgba(0, 0, 0, 0.2);
    outline: none;
    box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.05);
}

/* Dark theme adjustments */
[data-theme="dark"] .filter-control,
[data-theme="dark"] .info-panel {
    background: var(--header-bg);
    border-color: rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] #municipalityFilter {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.1);
    color: var(--text-color);
}

[data-theme="dark"] #municipalityFilter:hover {
    background-color: rgba(255, 255, 255, 0.15);
}

[data-theme="dark"] #municipalityFilter:focus {
    background-color: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.2);
}

/* Common Panel Styles */
.filter-control,
.info-panel {
    background: var(--header-bg);
    /* Matching header background */
    border: 1px solid var(--header-border);
    /* Matching header border */
    box-shadow: var(--panel-shadow);
    border-radius: 12px;
    padding: 20px;
    z-index: 1000;
}

/* Dark theme adjustments */
[data-theme="dark"] {
    --header-bg: rgb(45, 45, 45);
    /* Dark mode background */
    --header-border: rgb(55, 55, 55);
    /* Dark mode border */
    --panel-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

[data-theme="dark"] .filter-control,
[data-theme="dark"] .info-panel {
    background: var(--header-bg);
    /* Using the dark theme variable */
    border-color: var(--header-border);
    /* Using the dark theme variable */
}

[data-theme="dark"] .filter-control h3,
[data-theme="dark"] .info-panel h3 {
    color: #ffffff;
    /* Light text for dark mode */
}

/* Filter Panel Position */
.filter-control {
    position: absolute;
    top: 110px;
    left: 40px;
}

/* Info Panel Position */
.info-panel {
    position: absolute;
    top: 110px;
    right: 40px;
}

/* Panel Headers */
.filter-control h3,
.info-panel h3 {
    color: #333;
    margin-top: 0;
    margin-bottom: 15px;
}

/* Dark theme adjustments */
[data-theme="dark"] .filter-control,
[data-theme="dark"] .info-panel {
    background: var(--header-bg);
    border-color: rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .filter-control h3,
[data-theme="dark"] .info-panel h3 {
    color: var(--text-color);
}

/* Zoom Control Styles */
.custom-zoom-control {
    position: absolute;
    bottom: 90px;
    left: 90px;
    z-index: 1000;
    background: var(--header-bg);
    border-radius: 4px;
    opacity: 0.8;
    box-shadow: var(--panel-shadow);
    width: fit-content;
}

.zoom-button {
    display: block;
    width: 30px;
    height: 30px;
    line-height: 30px;
    text-align: center;
    background: var(--header-bg);
    border: 1px solid var(--header-border);
    cursor: pointer;
    font-size: 18px;
    font-weight: bold;
    opacity: 0.8;
    color: var(--text-color);
}

.zoom-button:first-child {
    border-bottom: none;
    border-radius: 4px 4px 0 0;
}

.zoom-button:last-child {
    border-radius: 0 0 4px 4px;
}

.zoom-button:hover {
    background-color: rgba(0, 0, 0, 0.05);
}

/* Dark theme adjustments */
[data-theme="dark"] .zoom-button {
    background: var(--header-bg);
    border-color: var(--header-border);
    color: var(--text-color);
}

[data-theme="dark"] .zoom-button:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .custom-zoom-control {
        bottom: 20px;
        /* Even closer on mobile */
        left: 20px;
    }
}

/* Theme toggle icon styles */
.theme-toggle svg {
    width: 20px;
    height: 20px;
}

/* Moon icon color in dark mode */
[data-theme="dark"] .theme-toggle svg path {
    fill: white;
    /* Make moon icon white in dark mode */
    stroke: white;
    /* Also update stroke if present */
}

/* Optional hover effect */
[data-theme="dark"] .theme-toggle:hover svg path {
    fill: rgba(255, 255, 255, 0.8);
    /* Slightly dimmed on hover */
}

/* QR Code Container */
.qr-code-container {
    position: absolute;
    top: 280px !important;
    /* Changed from 200px to 100px */
    right: 40px;
    z-index: 1000;
    background: var(--header-bg) !important;
    /* Restored background */
    padding: 15px;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid var(--header-border);
    box-shadow: var(--panel-shadow);
    backdrop-filter: blur(10px);
    opacity: 0.8;
    text-align: center;
    width: 150px;
}

/* QR code title style */
.qr-code-title {
    color: var(--text-color);
    /* Match text color to theme */
    margin-bottom: 5px;
}

/* QR code image styles */
.qr-code-image img {
    width: 100px;
    height: 100px;
    border-radius: 4px;
}

/* Dark theme adjustments */
[data-theme="dark"] .qr-code-container {
    background: var(--header-bg) !important;
}

/* Street View Modal */
.street-view-modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
}

.street-view-modal-content {
    position: relative;
    margin: 5% auto;
    width: 90%;
    height: 80%;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
}

#street-view-container {
    width: 100%;
    height: 100%;
    min-height: 400px;
}

.street-view-close {
    position: absolute;
    right: 20px;
    top: 20px;
    color: white;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    z-index: 10000;
    background: rgba(0, 0, 0, 0.5);
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.view-street-btn {
    background: #4169E1;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    margin-top: 10px;
    width: 100%;
    transition: background-color 0.3s;
}

.view-street-btn:hover {
    background: #3158d3;
}

/* Add this to your existing styles */
.municipality-label {
    background: transparent;
    border: none;
    box-shadow: none;
    font-size: 12px;
    color: #4169E1;
}

/* Add these styles */
/* .leaflet-municipalitiesPane { */
/* pointer-events: none !important; */
/* } */

.municipality-label {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    font-size: 12px !important;
    color: #4169E1 !important;
    text-shadow:
        -1px -1px 0 #fff,
        1px -1px 0 #fff,
        -1px 1px 0 #fff,
        1px 1px 0 #fff;
    /* pointer-events: none !important; */
}

/* .municipality-boundaries { */
/* pointer-events: none !important; */
/* } */

/* Ensure marker pane stays interactive */
/* .leaflet-marker-pane { */
/* pointer-events: auto !important; */
/* } */

.info-button {
    background: transparent;
    border: 2px solid #4169E1;
    color: #4169E1;
    padding: 5px 15px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    margin-right: 10px;
    transition: all 0.3s ease;
}

.info-button:hover {
    background: #4169E1;
    color: white;
}

.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}

.modal-content {
    background-color: var(--bg-color);
    color: var(--text-color);
    margin: 15% auto;
    padding: 20px;
    border: 1px solid var(--header-border);
    border-radius: 8px;
    width: 80%;
    max-width: 600px;
    position: relative;
    box-shadow: var(--panel-shadow);
}

.close {
    color: var(--text-color);
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close:hover {
    color: #4169E1;
}

.modal-body {
    margin-top: 20px;
    line-height: 1.6;
}

.modal-body ul {
    margin-left: 20px;
    margin-top: 10px;
}

[data-theme="dark"] .modal-content {
    background: var(--header-bg);
}