:root {
    color-scheme: light;
}

body {
    font-family: 'Inter', sans-serif;
    background: linear-gradient(135deg, #fdfbfb 0%, #ebedee 100%);
}

body.map-page {
    overflow: hidden;
}

#map {
    height: 100vh;
    width: 100vw;
    z-index: 1;
}

.glass-panel {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.8));
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border: 1px solid rgba(168, 85, 247, 0.2);
    box-shadow: 0 12px 36px rgba(124, 58, 237, 0.18);
}

.glossy-accent {
    background: linear-gradient(135deg, #7c3aed 0%, #ec4899 100%);
    color: #fff;
    box-shadow: 0 12px 30px rgba(124, 58, 237, 0.35);
}

.glossy-accent:hover {
    filter: brightness(1.05);
}

.glossy-outline {
    border: 1px solid rgba(168, 85, 247, 0.35);
    box-shadow: 0 8px 24px rgba(236, 72, 153, 0.18);
}

.severity-card {
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.severity-card:hover {
    transform: translateY(-1px);
    border-color: rgba(236, 72, 153, 0.45);
    box-shadow: 0 10px 26px rgba(124, 58, 237, 0.22);
}

.severity-card:focus-within {
    border-color: rgba(99, 102, 241, 0.55);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15), 0 10px 26px rgba(124, 58, 237, 0.22);
}

.text-gradient {
    background: linear-gradient(135deg, #7c3aed, #ec4899, #f97316);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
}

.custom-pin {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.custom-pin.severity-1 .pin-body { background: #22c55e; }
.custom-pin.severity-2 .pin-body { background: #84cc16; }
.custom-pin.severity-3 .pin-body { background: #f59e0b; }
.custom-pin.severity-4 .pin-body { background: #f97316; }
.custom-pin.severity-5 .pin-body { background: #ef4444; }

.legend-dot {
    width: 12px;
    height: 12px;
    border-radius: 9999px;
    display: inline-block;
    border: 1px solid rgba(0,0,0,0.1);
}

.legend-dot.severity-1 { background: #22c55e; }
.legend-dot.severity-2 { background: #84cc16; }
.legend-dot.severity-3 { background: #f59e0b; }
.legend-dot.severity-4 { background: #f97316; }
.legend-dot.severity-5 { background: #ef4444; }

#legend-widget.legend-minimized {
    opacity: 0.9;
    transform: none;
    width: auto;
    padding: 6px 10px;
    cursor: pointer;
}

#legend-widget.legend-minimized .legend-content {
    display: none;
}

#legend-widget.legend-minimized #legend-minimized-label {
    display: block;
}

#legend-widget.legend-minimized:hover {
    opacity: 1;
}

.pin-body {
    width: 30px;
    height: 30px;
    background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
    border-radius: 50% 50% 50% 0;
    transform: rotate(-45deg);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(194, 65, 12, 0.5);
    border: 2px solid white;
}

.pin-icon {
    transform: rotate(45deg);
    color: white;
    font-size: 14px;
    font-weight: bold;
}

.pin-shadow {
    width: 16px;
    height: 4px;
    background: rgba(0,0,0,0.4);
    border-radius: 50%;
    position: absolute;
    bottom: -5px;
    filter: blur(2px);
}

.leaflet-popup-content-wrapper {
    background: rgba(255, 255, 255, 1);
    color: #0f172a;
    border-radius: 12px;
    border: 1px solid rgba(0,0,0,0.1);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.leaflet-popup-tip {
    background: rgba(255, 255, 255, 1);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.leaflet-popup-content {
    margin: 12px;
    text-align: center;
}

.leaflet-container a.leaflet-popup-close-button {
    color: #475569;
    font-weight: bold;
}

.pothole-popup img {
    width: 100%;
    max-width: 200px;
    height: auto;
    display: block;
}

#image-preview {
    max-width: 240px;
}

#cookie-banner {
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
}

button[disabled],
button[aria-disabled="true"] {
    opacity: 0.6;
    cursor: not-allowed;
    filter: grayscale(0.1);
}

/* Animations from Beta */
@keyframes blob {
    0% { transform: translate(0px, 0px) scale(1); }
    33% { transform: translate(30px, -50px) scale(1.1); }
    66% { transform: translate(-20px, 20px) scale(0.9); }
    100% { transform: translate(0px, 0px) scale(1); }
}

.animate-blob {
    animation: blob 7s infinite;
}

.animation-delay-2000 {
    animation-delay: 2s;
}

.animation-delay-4000 {
    animation-delay: 4s;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.animate-float {
    animation: float 6s ease-in-out infinite;
}
