/* Leaflet map overrides */
.leaflet-container {
    background: #f0edef !important; /* surface-container */
    font-family: 'Inter', sans-serif !important;
}

.leaflet-popup-content-wrapper {
    background: #ffffff !important;
    color: #1b1b1d !important;
    border-radius: 8px !important;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1) !important;
}

.leaflet-popup-tip {
    background: #ffffff !important;
}

/* Dual slider trick */
.dual-slider {
    position: relative;
    height: 30px;
}
.dual-slider input[type="range"] {
    -webkit-appearance: none;
    appearance: none;
    position: absolute;
    width: 100%;
    pointer-events: none;
    background: transparent;
    z-index: 2;
    height: 100%;
    margin: 0;
    top: 0;
    left: 0;
}
.dual-slider input[type="range"]::-webkit-slider-runnable-track {
    -webkit-appearance: none;
    height: 100%;
    background: transparent;
    border: none;
}
.dual-slider input[type="range"]::-webkit-slider-thumb {
    pointer-events: auto;
    -webkit-appearance: none;
    width: 16px;
    height: 16px;
    background: #091426;
    border-radius: 50%;
    cursor: pointer;
    position: relative;
    top: 50%;
    transform: translateY(-50%);
}
.dual-slider-track {
    position: absolute;
    width: 100%;
    height: 4px;
    background: #c5c6cd;
    top: 50%;
    transform: translateY(-50%);
    border-radius: 2px;
    z-index: 1;
}
.dual-slider-fill {
    position: absolute;
    height: 4px;
    background: #006a61;
    top: 50%;
    transform: translateY(-50%);
    border-radius: 2px;
    z-index: 1;
}

/* Custom scrollbar for webkit */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
::-webkit-scrollbar-track {
    background: transparent;
}
::-webkit-scrollbar-thumb {
    background: #c5c6cd;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #75777d;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(15px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
.animate-fade-in-up {
    opacity: 0;
    animation: fadeInUp 0.4s ease-out forwards;
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-15px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}
.animate-fade-in-left {
    opacity: 0;
    animation: fadeInLeft 0.4s ease-out forwards;
}