@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,600;1,500&display=swap');

.serif { font-family: 'Cormorant Garamond', serif; }

.custom-scrollbar::-webkit-scrollbar { width: 6px; }
.custom-scrollbar::-webkit-scrollbar-track { background: transparent; }
.custom-scrollbar::-webkit-scrollbar-thumb { background: #d4cfc7; border-radius: 10px; }
.custom-scrollbar::-webkit-scrollbar-thumb:hover { background: #a39e93; }

/* Customizations for Leaflet Map Popups to match Natural Tones */
.leaflet-popup-content-wrapper {
    background: #ffffff;
    color: #43413e;
    border-radius: 16px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    border: 1px solid #e5e0d8;
    padding: 4px;
}
.leaflet-popup-tip {
    background: #ffffff;
    border: 1px solid #e5e0d8;
    border-top: none;
    border-left: none;
}
.leaflet-container a.leaflet-popup-close-button {
    color: #a39e93;
    padding: 8px 8px 0 0;
}

/* CSS Filters for Map Markers */
.marker-critico { filter: hue-rotate(150deg); }
.marker-alto { filter: hue-rotate(180deg); }
.marker-resuelto { filter: hue-rotate(270deg); }

/* Custom Div Icons for Markers */
.custom-div-icon { background: none; border: none; }
.marker-container {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 2px solid white;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    color: white;
    font-size: 14px;
    position: relative;
    cursor: pointer;
    transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.marker-container:hover { transform: scale(1.4) !important; z-index: 1000 !important; }
.marker-icon { z-index: 2; line-height: 1; }

.pulse-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    border: 3px solid;
    border-radius: 50%;
    animation: pulse 2s infinite;
    opacity: 0;
    z-index: 1;
}

@keyframes pulse {
    0% { width: 100%; height: 100%; opacity: 0.8; }
    100% { width: 250%; height: 250%; opacity: 0; }
}

@keyframes marquee {
    0% { transform: translateX(100%); }
    100% { transform: translateX(-100%); }
}

.animate-marquee {
    display: inline-block;
    padding-left: 100%;
    animation: marquee 30s linear infinite;
}

/* Pulsing for markers */
.pulse-critico { animation: pulse-red 2s infinite; }
@keyframes pulse-red {
    0% { box-shadow: 0 0 0 0 rgba(207, 19, 34, 0.7); }
    70% { box-shadow: 0 0 0 10px rgba(207, 19, 34, 0); }
    100% { box-shadow: 0 0 0 0 rgba(207, 19, 34, 0); }
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}
