* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    height: 100vh;
    display: flex;
    flex-direction: column;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #333;
}

.menu-bar {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    padding: 1rem 2rem;
    color: white;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.menu-bar ul {
    list-style: none;
    display: flex;
    gap: 2rem;
    align-items: center;
}

.menu-bar a {
    color: white;
    text-decoration: none;
    font-weight: 600;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.menu-bar a:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.filter-bar {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    padding: 1rem 2rem;
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    align-items: center;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.05);
}

.toolbar-section {
    display: flex;
    gap: 0.75rem;
    align-items: center;
}

.toolbar-section:not(:last-child) {
    border-right: 1px solid rgba(0, 0, 0, 0.1);
    padding-right: 1rem;
    margin-right: 0.5rem;
}

.edit-button, .filter-button {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    border: 2px solid transparent;
    border-radius: 12px;
    background: white;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    color: #6c757d;
    font-weight: 500;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.edit-button::before, .filter-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left 0.5s;
}

.edit-button:hover::before, .filter-button:hover::before {
    left: 100%;
}

.edit-button:hover, .filter-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    color: #495057;
}

.edit-button.active, .filter-button.active {
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    color: white;
    border-color: #0056b3;
    transform: translateY(-1px);
    box-shadow: 0 6px 25px rgba(0, 123, 255, 0.3);
}

.edit-button.active:hover, .filter-button.active:hover {
    background: linear-gradient(135deg, #0056b3 0%, #004085 100%);
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(0, 123, 255, 0.4);
}

.toggle-all {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
    border: none;
}

.toggle-all:hover {
    background: linear-gradient(135deg, #20c997 0%, #17a2b8 100%);
}

.main-content {
    display: flex;
    flex: 1;
    overflow: hidden;
    position: relative;
}

#map {
    flex: 1;
    width: 100%;
    border-radius: 0;
    position: relative;
}

.preview-panel {
    width: 350px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-left: 1px solid rgba(0, 0, 0, 0.1);
    overflow-y: auto;
    padding: 1.5rem;
    display: none;
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.1);
}

.preview-panel.active {
    display: block;
    animation: slideInRight 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.preview-item {
    margin-bottom: 1.5rem;
    padding: 1.5rem;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 16px;
    background: white;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.preview-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #007bff, #28a745, #ffc107, #dc3545);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.preview-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.preview-item:hover::before {
    opacity: 1;
}

.preview-item h3 {
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 600;
    color: #2c3e50;
}

.preview-item img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    margin: 0.75rem 0;
    border-radius: 12px;
    transition: transform 0.3s ease;
}

.preview-item:hover img {
    transform: scale(1.02);
}

.preview-item .live-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
    color: white;
    text-decoration: none;
    border-radius: 10px;
    margin-top: 0.75rem;
    font-weight: 500;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 15px rgba(220, 53, 69, 0.3);
}

.preview-item .live-button:hover {
    background: linear-gradient(135deg, #c82333 0%, #a71e2a 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(220, 53, 69, 0.4);
}

.preview-item .distance {
    margin-top: 0.75rem;
    color: #6c757d;
    font-size: 0.9rem;
    font-weight: 500;
}

.search-container {
    position: absolute;
    top: 20px;
    left: 20px;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    padding: 1rem;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    width: 320px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.search-container input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid transparent;
    border-radius: 12px;
    background: white;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.search-container input:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 4px 20px rgba(0, 123, 255, 0.2);
    transform: translateY(-1px);
}

.edit-panel {
    position: fixed;
    top: 0;
    right: -400px;
    width: 400px;
    height: 100vh;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    padding: 2rem;
    overflow-y: auto;
    z-index: 1000;
    transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: -8px 0 32px rgba(0, 0, 0, 0.1);
    border-left: 1px solid rgba(0, 0, 0, 0.1);
}

.edit-panel.active {
    right: 0;
}

.edit-form {
    display: none;
    animation: fadeIn 0.3s ease;
}

.edit-form.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.edit-panel .type-buttons {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-bottom: 2rem;
}

.edit-panel .type-button {
    padding: 1.5rem 1rem;
    border: 2px solid #e9ecef;
    border-radius: 16px;
    background: white;
    cursor: pointer;
    text-align: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-weight: 500;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.edit-panel .type-button:hover {
    border-color: #007bff;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 123, 255, 0.15);
}

.edit-panel .type-button.active {
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    color: white;
    border-color: #0056b3;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 123, 255, 0.3);
}

.edit-form input,
.edit-form textarea {
    width: 100%;
    padding: 1rem;
    margin-bottom: 1rem;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.edit-form input:focus,
.edit-form textarea:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 4px 20px rgba(0, 123, 255, 0.15);
    transform: translateY(-1px);
}

.edit-form .coordinates {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1rem;
}

.edit-form .coordinates input {
    margin-bottom: 0;
}

.edit-form .buttons {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.edit-form button {
    flex: 1;
    padding: 1rem;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.edit-form .save-button {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.3);
}

.edit-form .save-button:hover {
    background: linear-gradient(135deg, #20c997 0%, #17a2b8 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(40, 167, 69, 0.4);
}

.edit-form .save-button:disabled {
    background: #6c757d;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.edit-form .cancel-button {
    background: linear-gradient(135deg, #6c757d 0%, #5a6268 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(108, 117, 125, 0.3);
}

.edit-form .cancel-button:hover {
    background: linear-gradient(135deg, #5a6268 0%, #495057 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(108, 117, 125, 0.4);
}

.location-button {
    position: absolute;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    z-index: 1000;
    font-size: 1.5rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 8px 25px rgba(0, 123, 255, 0.3);
}

.location-button:hover {
    background: linear-gradient(135deg, #0056b3 0%, #004085 100%);
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 12px 35px rgba(0, 123, 255, 0.4);
}

/* Enhanced notification styles */
.notification {
    position: fixed;
    bottom: 30px;
    right: 30px;
    padding: 1rem 1.5rem;
    border-radius: 12px;
    color: white;
    font-weight: 500;
    z-index: 10000;
    animation: slideInUp 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

@keyframes slideInUp {
    from {
        transform: translateY(100px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes slideOutDown {
    from {
        transform: translateY(0);
        opacity: 1;
    }
    to {
        transform: translateY(100px);
        opacity: 0;
    }
}

.notification.success {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
}

.notification.error {
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
}

.notification.info {
    background: linear-gradient(135deg, #17a2b8 0%, #138496 100%);
}

.filter-button i,
.type-button i {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    color: white;
    margin-right: 4px;
}

/* Icon circle colors */
.filter-button[data-type="live-cameras"] i,
.type-button[data-type="live-cameras"] i {
    background-color: #dc3545;
}

.filter-button[data-type="still-cameras"] i,
.type-button[data-type="still-cameras"] i {
    background-color: #6c757d;
}

.filter-button[data-type="marinas"] i,
.type-button[data-type="marinas"] i {
    background-color: #0d6efd;
}

.filter-button[data-type="fuel"] i,
.type-button[data-type="fuel"] i {
    background-color: #ffc107;
}

.filter-button[data-type="harbors"] i,
.type-button[data-type="harbors"] i {
    background-color: #198754;
}

.filter-button[data-type="bridges"] i,
.type-button[data-type="bridges"] i {
    background-color: #6610f2;
}

.filter-button[data-type="landmarks"] i,
.type-button[data-type="landmarks"] i {
    background-color: #fd7e14;
}

.filter-button[data-type="ramps"] i,
.type-button[data-type="ramps"] i {
    background-color: #20c997;
}

.filter-button[data-type="storage"] i,
.type-button[data-type="storage"] i {
    background-color: #795548;
}

.filter-button[data-type="craft-services"] i,
.type-button[data-type="craft-services"] i {
    background-color: #ff5722;
}

/* Adjust icon size in type buttons */
.type-button i {
    width: 32px;
    height: 32px;
    font-size: 1.2em;
}

/* Adjust icon size in filter buttons */
.filter-button i {
    width: 24px;
    height: 24px;
    font-size: 1em;
}

/* Adjust preview panel icons */
.preview-item h3 i {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    color: white;
    margin-right: 8px;
}

/* Preview panel icon colors */
.preview-item[data-type="live-cameras"] h3 i {
    background-color: #dc3545;
}

.preview-item[data-type="still-cameras"] h3 i {
    background-color: #6c757d;
}

.preview-item[data-type="marinas"] h3 i {
    background-color: #0d6efd;
}

.preview-item[data-type="fuel"] h3 i {
    background-color: #ffc107;
}

.preview-item[data-type="harbors"] h3 i {
    background-color: #198754;
}

.preview-item[data-type="bridges"] h3 i {
    background-color: #6610f2;
}

.preview-item[data-type="landmarks"] h3 i {
    background-color: #fd7e14;
}

.preview-item[data-type="ramps"] h3 i {
    background-color: #20c997;
}

.preview-item[data-type="storage"] h3 i {
    background-color: #795548;
}

.preview-item[data-type="craft-services"] h3 i {
    background-color: #ff5722;
}

/* Add styles for map markers */
.map-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px !important;
    height: 32px !important;
    border-radius: 50% !important;
    color: white;
    border: 2px solid white;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    transform: none !important;
}

.map-icon i {
    font-size: 16px;
    width: auto !important;
    height: auto !important;
    margin: 0 !important;
}

.map-icon[data-type="live-cameras"] {
    background-color: #dc3545;
}

.map-icon[data-type="still-cameras"] {
    background-color: #6c757d;
}

.map-icon[data-type="marinas"] {
    background-color: #0d6efd;
}

.map-icon[data-type="fuel"] {
    background-color: #ffc107;
}

.map-icon[data-type="harbors"] {
    background-color: #198754;
}

.map-icon[data-type="bridges"] {
    background-color: #6610f2;
}

.map-icon[data-type="landmarks"] {
    background-color: #fd7e14;
}

.map-icon[data-type="ramps"] {
    background-color: #20c997;
}

.map-icon[data-type="storage"] {
    background-color: #795548;
}

.map-icon[data-type="craft-services"] {
    background-color: #ff5722;
}

.custom-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px !important;
    height: 32px !important;
}

.leaflet-marker-icon {
    width: 32px !important;
    height: 32px !important;
    margin-left: -16px !important;
    margin-top: -16px !important;
}

/* Popup edit button styles */
.marker-info .edit-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    margin-top: 1rem;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    background-color: #007bff;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
}

.marker-info .edit-button:hover {
    background-color: #0056b3;
}

.marker-info .edit-button i {
    font-size: 1em;
    width: auto;
    height: auto;
    background: none;
    color: white;
    margin: 0;
}

.marker-info {
    padding: 1.5rem;
    background: white;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(0, 0, 0, 0.1);
    min-width: 280px;
    max-width: 350px;
}

.marker-info h3 {
    margin-bottom: 1rem;
    color: #2c3e50;
    font-weight: 600;
    font-size: 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.marker-info p {
    margin-bottom: 0.75rem;
    color: #6c757d;
    line-height: 1.5;
}

.marker-info img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 12px;
    margin: 1rem 0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.marker-info .live-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
    color: white;
    text-decoration: none;
    border-radius: 10px;
    font-weight: 500;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 15px rgba(220, 53, 69, 0.3);
    margin: 0.5rem 0;
}

.marker-info .live-button:hover {
    background: linear-gradient(135deg, #c82333 0%, #a71e2a 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(220, 53, 69, 0.4);
}

.marker-actions {
    display: flex;
    gap: 0.75rem;
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid #e9ecef;
}

.marker-actions button {
    flex: 1;
    padding: 0.75rem 1rem;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.marker-actions .edit-button {
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(0, 123, 255, 0.3);
}

.marker-actions .edit-button:hover {
    background: linear-gradient(135deg, #0056b3 0%, #004085 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 123, 255, 0.4);
}

.marker-actions .delete-button {
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(220, 53, 69, 0.3);
}

.marker-actions .delete-button:hover {
    background: linear-gradient(135deg, #c82333 0%, #a71e2a 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(220, 53, 69, 0.4);
}

.polygon-popup {
    padding: 1.5rem;
    background: white;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(0, 0, 0, 0.1);
    min-width: 280px;
    max-width: 350px;
}

.polygon-info h3 {
    margin-bottom: 1rem;
    color: #2c3e50;
    font-weight: 600;
    font-size: 1.25rem;
}

.polygon-info p {
    margin-bottom: 0.75rem;
    color: #6c757d;
    line-height: 1.5;
}

.polygon-actions {
    display: flex;
    gap: 8px;
    margin-top: 10px;
}

.delete-polygon-btn {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 8px 12px;
    background-color: #dc3545;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.3s;
}

.delete-polygon-btn:hover {
    background-color: #c82333;
}

.delete-polygon-btn i {
    font-size: 14px;
}

/* Enhanced visual grouping for polygon filters */
.polygon-filters::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, #667eea, #764ba2, #667eea);
    border-radius: 12px 12px 0 0;
}

.polygon-filters {
    display: none !important; /* Hide the old inline polygon filters */
}

/* Add subtle category grouping */
.polygon-filters .filter-button[data-shape-type*="parking"] {
    order: 1;
}

.polygon-filters .filter-button[data-shape-type*="access"] {
    order: 2;
}

.polygon-filters .filter-button[data-shape-type*="pfd"] {
    order: 3;
}

.polygon-filters .filter-button[data-shape-type*="float"] {
    order: 4;
}

.polygon-filters .filter-button[data-shape-type*="danger"] {
    order: 5;
}

/* Enhanced tooltip-like labels on hover */
.polygon-filters .filter-button {
    position: relative;
}

.polygon-filters .filter-button::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.9);
    color: white;
    padding: 6px 10px;
    border-radius: 6px;
    font-size: 12px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
    z-index: 1000;
    margin-bottom: 5px;
}

.polygon-filters .filter-button:hover::after {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(-5px);
}

/* Enhanced Leaflet popup styles */
.leaflet-popup-content-wrapper {
    background: transparent;
    border-radius: 16px;
    box-shadow: none;
    padding: 0;
}

.leaflet-popup-content {
    margin: 0;
    padding: 0;
    border-radius: 16px;
    overflow: hidden;
}

.leaflet-popup-tip {
    background: white;
    border: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* Enhanced map icons */
.map-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.25rem;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    border: 3px solid white;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.map-icon:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.polygon-center-icon {
    background: transparent;
    border: none;
}

.polygon-icon {
    width: 32px;
    height: 32px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    border: 2px solid white;
    transition: all 0.3s ease;
}

.polygon-icon:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.polygon-filters {
    display: none !important; /* Hide the old inline polygon filters */
}

.polygon-filters-panel {
    position: fixed;
    top: 120px;
    right: -350px;
    width: 320px;
    height: calc(100vh - 140px);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.9));
    backdrop-filter: blur(20px);
    border-left: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 15px 0 0 15px;
    box-shadow: -5px 0 25px rgba(0, 0, 0, 0.1);
    z-index: 999;
    padding: 20px;
    overflow-y: auto;
    transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    display: none !important; /* Completely hide polygon filters panel */
}

.polygon-filters-panel.active {
    right: 0;
    display: block;
    animation: slideInRight 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.polygon-filters-panel h3 {
    margin: 0 0 20px 0;
    font-size: 20px;
    font-weight: 700;
    color: #2c3e50;
    text-align: center;
    padding-bottom: 15px;
    border-bottom: 2px solid rgba(102, 126, 234, 0.2);
    background: linear-gradient(135deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Style the polygon filters inside the panel */
.polygon-filters-panel .polygon-filters {
    display: flex !important;
    flex-direction: column;
    gap: 8px;
}

.polygon-filters-panel .filter-button {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.8));
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 12px;
    color: #2c3e50;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    min-height: 44px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(5px);
}

.polygon-filters-panel .filter-button:hover {
    transform: translateX(5px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    border-color: rgba(102, 126, 234, 0.3);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.85));
}

.polygon-filters-panel .filter-button.active {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
    transform: translateX(8px);
}

.polygon-filters-panel .color-preview {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.8);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    flex-shrink: 0;
}

/* Responsive design */
@media (max-width: 768px) {
    .polygon-edit-panel {
        width: 100%;
        left: -100%;
        padding: 20px;
    }
    
    .polygon-edit-panel.active {
        left: 0;
    }
    
    .polygon-type-options {
        max-height: 250px;
    }
    
    .polygon-type-options label {
        padding: 10px 14px;
        font-size: 13px;
    }
}

/* Enhanced accessibility */
.polygon-edit-panel input[type="radio"]:focus {
    outline: 2px solid #667eea;
    outline-offset: 2px;
}

.polygon-edit-panel .save-btn:focus,
.polygon-edit-panel .cancel-btn:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.3);
}

/* Removed polygon-filters-panel focus and scrollbar styles
.polygon-filters-panel .filter-button:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.3), 0 4px 15px rgba(0, 0, 0, 0.1);
}

.polygon-filters-panel .filter-button.active:focus {
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.4), 0 4px 15px rgba(102, 126, 234, 0.3);
}
*/

/* Notification System */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.9));
    backdrop-filter: blur(20px);
    border-radius: 12px;
    padding: 16px 20px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.2);
    z-index: 10000;
    transform: translateX(400px);
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    min-width: 300px;
    max-width: 400px;
}

.notification.show {
    transform: translateX(0);
    opacity: 1;
}

.notification-content {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    font-weight: 500;
    color: #2c3e50;
}

.notification-success {
    border-left: 4px solid #4CAF50;
}

.notification-success .notification-content i {
    color: #4CAF50;
    font-size: 16px;
}

.notification-error {
    border-left: 4px solid #F44336;
}

.notification-error .notification-content i {
    color: #F44336;
    font-size: 16px;
}

.notification-info {
    border-left: 4px solid #2196F3;
}

.notification-info .notification-content i {
    color: #2196F3;
    font-size: 16px;
}

/* Animation for notification slide in */
@keyframes slideInRight {
    from {
        transform: translateX(400px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Hide polygon filters in the filter bar to prevent map height issues */
.filter-bar .polygon-filters {
    display: none !important;
}

@keyframes slideInRight {
    from {
        right: -350px;
        opacity: 0;
    }
    to {
        right: 0;
        opacity: 1;
    }
}

/* Removed polygon-filters-panel scrollbar styles
.polygon-filters-panel::-webkit-scrollbar {
    width: 8px;
}

.polygon-filters-panel::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

.polygon-filters-panel::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 4px;
}
*/

/* Move polygon filters to the new panel */
.polygon-filters {
    display: none !important; /* Hide the old inline polygon filters */
}

/* Polygon Edit Panel Styles - Compact Drawer */
.polygon-edit-panel {
    position: fixed;
    top: 140px;
    left: -220px;
    width: 200px;
    height: auto;
    max-height: calc(100vh - 160px);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.9));
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-left: none;
    border-radius: 0 12px 12px 0;
    box-shadow: 5px 0 25px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    padding: 20px;
    overflow-y: auto;
    transition: left 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    display: none;
}

.polygon-edit-panel.active {
    left: 0;
    display: block;
    animation: slideInLeft 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.polygon-edit-panel h3 {
    margin: 0 0 15px 0;
    font-size: 16px;
    font-weight: 700;
    color: #2c3e50;
    text-align: center;
    padding-bottom: 10px;
    border-bottom: 2px solid rgba(102, 126, 234, 0.2);
    background: linear-gradient(135deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.polygon-type-options {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 15px;
    max-height: 200px;
    overflow-y: auto;
    padding-right: 5px;
}

.polygon-type-options::-webkit-scrollbar {
    width: 3px;
}

.polygon-type-options::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
}

.polygon-type-options::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 2px;
}

.polygon-type-options label {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 8px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.8), rgba(255, 255, 255, 0.6));
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 10px;
    font-weight: 500;
    color: #2c3e50;
    position: relative;
    overflow: hidden;
}

.polygon-type-options label:hover {
    transform: translateX(2px);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    border-color: rgba(102, 126, 234, 0.3);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.7));
}

.polygon-type-options input[type="radio"] {
    width: 14px;
    height: 14px;
    margin: 0;
    accent-color: #667eea;
    cursor: pointer;
    flex-shrink: 0;
}

.polygon-type-options label:has(input:checked) {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateX(3px);
    box-shadow: 0 3px 10px rgba(102, 126, 234, 0.3);
}

.polygon-type-options .color-preview {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.8);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
    flex-shrink: 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.polygon-edit-panel input[type="text"],
.polygon-edit-panel textarea {
    width: 100%;
    padding: 6px 10px;
    margin-bottom: 10px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 6px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.7));
    backdrop-filter: blur(10px);
    font-size: 11px;
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    color: #2c3e50;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-sizing: border-box;
}

.polygon-edit-panel input[type="text"]:focus,
.polygon-edit-panel textarea:focus {
    outline: none;
    border-color: #667eea;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.85));
    box-shadow: 0 0 0 2px rgba(102, 126, 234, 0.2), 0 2px 6px rgba(0, 0, 0, 0.1);
    transform: translateY(-1px);
}

.polygon-edit-panel textarea {
    min-height: 50px;
    resize: vertical;
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
}

.polygon-edit-panel .buttons {
    display: flex;
    gap: 6px;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.polygon-edit-panel .save-btn,
.polygon-edit-panel .cancel-btn {
    flex: 1;
    padding: 8px 10px;
    border: none;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 3px;
    position: relative;
    overflow: hidden;
}

.polygon-edit-panel .save-btn {
    background: linear-gradient(135deg, #4CAF50, #45a049);
    color: white;
    box-shadow: 0 2px 6px rgba(76, 175, 80, 0.3);
}

.polygon-edit-panel .save-btn:hover {
    background: linear-gradient(135deg, #45a049, #3d8b40);
    transform: translateY(-1px);
    box-shadow: 0 3px 10px rgba(76, 175, 80, 0.4);
}

.polygon-edit-panel .cancel-btn {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.7));
    color: #2c3e50;
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.polygon-edit-panel .cancel-btn:hover {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    transform: translateY(-1px);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.15);
    border-color: rgba(108, 117, 125, 0.3);
}

@keyframes slideInLeft {
    from {
        left: -220px;
        opacity: 0;
    }
    to {
        left: 0;
        opacity: 1;
    }
}

/* Enhanced polygon filters styling */
.polygon-filters {
    display: none !important; /* Hide the old inline polygon filters */
}

/* Polygon toggle button */
.polygon-toggle {
    position: relative;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.polygon-toggle .toggle-icon {
    margin-left: 0.5rem;
    font-size: 0.8rem;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.polygon-toggle.active .toggle-icon {
    transform: rotate(180deg);
}

/* Polygon filters container */
.polygon-filters-container {
    width: 100%;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    max-height: 0;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    z-index: 1000;
}

.polygon-filters-container.active {
    max-height: 400px;
    overflow-y: auto;
}

/* Grid layout for filter groups */
.polygon-filters-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    padding: 1.5rem;
}

/* Filter groups */
.filter-group {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(248, 249, 250, 0.9));
    border-radius: 12px;
    padding: 1rem;
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.filter-group:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.filter-group h4 {
    margin: 0 0 0.75rem 0;
    font-size: 0.9rem;
    font-weight: 700;
    color: #2c3e50;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 2px solid rgba(102, 126, 234, 0.2);
    padding-bottom: 0.5rem;
    text-align: center;
}

/* Polygon filter buttons in groups */
.polygon-filter {
    width: 100%;
    margin-bottom: 0.5rem;
    font-size: 0.85rem;
    padding: 0.6rem 1rem;
    justify-content: flex-start;
    text-align: left;
    border-radius: 8px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.polygon-filter:last-child {
    margin-bottom: 0;
}

.polygon-filter .color-preview {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    margin-right: 0.5rem;
    border: 2px solid white;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
    flex-shrink: 0;
}

.polygon-filter:hover {
    transform: translateX(4px);
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.15);
}

.polygon-filter.active {
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    color: white;
    transform: translateX(4px);
    box-shadow: 0 4px 20px rgba(0, 123, 255, 0.3);
}

.polygon-filter.active .color-preview {
    border-color: rgba(255, 255, 255, 0.8);
}

/* Responsive adjustments */
@media (max-width: 1200px) {
    .polygon-filters-grid {
        grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
        gap: 1rem;
    }
}

@media (max-width: 768px) {
    .polygon-filters-grid {
        grid-template-columns: 1fr;
        padding: 1rem;
    }
    
    .filter-group {
        padding: 0.75rem;
    }
    
    .polygon-filter {
        font-size: 0.8rem;
        padding: 0.5rem 0.75rem;
    }
    
    .polygon-filters-container.active {
        max-height: 300px;
    }
}

/* Smooth scroll for container */
.polygon-filters-container::-webkit-scrollbar {
    width: 6px;
}

.polygon-filters-container::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.1);
    border-radius: 3px;
}

.polygon-filters-container::-webkit-scrollbar-thumb {
    background: rgba(102, 126, 234, 0.5);
    border-radius: 3px;
}

.polygon-filters-container::-webkit-scrollbar-thumb:hover {
    background: rgba(102, 126, 234, 0.7);
}

/* Camera-specific form fields */
.camera-specific-fields {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #eee;
}

.camera-specific-fields input[type="url"] {
    width: 100%;
    margin-bottom: 10px;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.slider-group {
    margin-bottom: 15px;
}

.slider-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
    color: #333;
    font-size: 14px;
}

.slider-group input[type="range"] {
    width: 100%;
    height: 6px;
    border-radius: 3px;
    background: #ddd;
    outline: none;
    -webkit-appearance: none;
    margin-bottom: 5px;
}

.slider-group input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #007bff;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    transition: all 0.2s ease;
}

.slider-group input[type="range"]::-webkit-slider-thumb:hover {
    background: #0056b3;
    transform: scale(1.1);
}

.slider-group input[type="range"]::-moz-range-thumb {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #007bff;
    cursor: pointer;
    border: none;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    transition: all 0.2s ease;
}

.slider-group input[type="range"]::-moz-range-thumb:hover {
    background: #0056b3;
    transform: scale(1.1);
}

/* Camera direction indicator */
.camera-direction-indicator {
    position: absolute;
    pointer-events: none;
    z-index: 1000;
}

.camera-cone {
    fill: rgba(255, 215, 0, 0.3);
    stroke: rgba(255, 215, 0, 0.8);
    stroke-width: 2;
}

.camera-arrow {
    fill: rgba(255, 215, 0, 0.9);
    stroke: rgba(255, 165, 0, 1);
    stroke-width: 1;
}

/* Camera preview tooltip */
.camera-preview {
    position: absolute;
    background: white;
    border: 2px solid #333;
    border-radius: 8px;
    padding: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    z-index: 2000;
    max-width: 300px;
    pointer-events: none;
}

.camera-preview img {
    width: 100%;
    height: auto;
    border-radius: 4px;
    display: block;
}

.camera-preview .preview-title {
    font-weight: bold;
    margin-bottom: 5px;
    font-size: 14px;
}

.camera-preview .preview-loading {
    text-align: center;
    padding: 20px;
    color: #666;
}

/* Hide preview on mobile/touch devices */
@media (hover: none) {
    .camera-preview {
        display: none !important;
    }
}

/* Profile menu styles */
.profile-menu {
    margin-left: auto;
}

.profile-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: rgba(255, 255, 255, 0.1);
}

.profile-link:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-1px);
}

.profile-picture-small {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.3);
    transition: border-color 0.3s ease;
}

.profile-link:hover .profile-picture-small {
    border-color: rgba(255, 255, 255, 0.6);
}

.profile-name {
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
}

.sign-out, .sign-in {
    padding: 0.5rem 1rem;
    border-radius: 8px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.sign-out {
    background: rgba(220, 53, 69, 0.1);
    border: 1px solid rgba(220, 53, 69, 0.3);
}

.sign-out:hover {
    background: rgba(220, 53, 69, 0.2);
    border-color: rgba(220, 53, 69, 0.5);
}

.sign-in {
    background: rgba(66, 133, 244, 0.1);
    border: 1px solid rgba(66, 133, 244, 0.3);
}

.sign-in:hover {
    background: rgba(66, 133, 244, 0.2);
    border-color: rgba(66, 133, 244, 0.5);
}

/* Zoom level display */
.zoom-display {
    position: absolute;
    bottom: 100px;
    right: 30px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    padding: 12px 16px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.2);
    z-index: 1000;
    font-size: 14px;
    font-weight: 500;
    color: #2c3e50;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    min-width: 140px;
    transition: all 0.3s ease;
}

.zoom-display i {
    color: #007bff;
    font-size: 16px;
    margin-bottom: 4px;
}

.zoom-display .zoom-note {
    font-size: 11px;
    color: #6c757d;
    text-align: center;
    line-height: 1.3;
    margin-top: 4px;
    padding-top: 6px;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.zoom-display .zoom-note span {
    font-weight: 600;
    color: #007bff;
}

/* Map layer toggle button */
.map-layer-button {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border: none;
    border-radius: 12px;
    padding: 12px 16px;
    cursor: pointer;
    z-index: 1000;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 500;
    color: #2c3e50;
    min-width: 120px;
}

.map-layer-button:hover {
    background: rgba(255, 255, 255, 1);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.map-layer-button i {
    color: #007bff;
    font-size: 16px;
}

.map-layer-button .layer-name {
    font-weight: 600;
    color: #2c3e50;
}

/* Adjust leaflet controls position to avoid overlap */
.leaflet-top.leaflet-right {
    top: 80px !important;
}

/* Stream content styles */
.stream-content {
    margin: 1rem 0;
    border-radius: 8px;
    overflow: hidden;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
}

.stream-content iframe {
    width: 100%;
    height: 200px;
    border: none;
    display: block;
}

.stream-content video {
    width: 100%;
    height: auto;
    display: block;
}

/* Responsive iframe container */
.stream-content .iframe-container {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
}

.stream-content .iframe-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Final override for storage and craft-services marker colors */
button.filter-button[data-type="storage"] i,
button.type-button[data-type="storage"] i,
.preview-item[data-type="storage"] h3 i,
.map-icon[data-type="storage"] {
    background-color: #795548 !important;
}

button.filter-button[data-type="craft-services"] i,
button.type-button[data-type="craft-services"] i,
.preview-item[data-type="craft-services"] h3 i,
.map-icon[data-type="craft-services"] {
    background-color: #ff5722 !important;
} 