/* ===== ESTILOS DEL CARRUSEL PARA POPUPS ===== */

.popup-carousel {
    position: relative;
    width: 100%;
    margin: -12px -12px 0 -12px;
    border-radius: 8px 8px 0 0;
    overflow: hidden;
    width: calc(100% + 24px);
}

.carousel-container {
    width: 100%;
    height: 150px;
    position: relative;
    background-color: #1a1a1a;
}

.carousel-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
}

.carousel-arrow {
    position: absolute;
    top: 75px;
    transform: translateY(-50%);
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    transition: all 0.3s ease;
    z-index: 10;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    padding-bottom: 5px; 
}

/* ===== FLECHAS URBANO ===== */
.carousel-arrow.urban-arrow {
    background-color: #ffffff !important;
    color: #FF69B4 !important;
    border: 2px solid #FF69B4 !important;
}

.carousel-arrow.urban-arrow:hover {
    background-color: #f4f4f4 !important;
    opacity: 0.9;
    transform: translateY(-50%) scale(1.1);
}

.carousel-arrow.urban-arrow:active {
    background-color: #e0e0e0 !important;
}

/* ===== FLECHAS ESPECTRAL ===== */
.carousel-arrow.spectral-arrow {
    background-color: #333333 !important;
    color: #87CEEB !important;
    border: 2px solid #666666 !important;
}

.carousel-arrow.spectral-arrow:hover {
    background-color: #444444 !important;
    color: #a3d9f5 !important;
    transform: translateY(-50%) scale(1.1);
}

.carousel-arrow.spectral-arrow:active {
    background-color: #555555 !important;
}

.carousel-arrow-left { left: 10px; }
.carousel-arrow-right { right: 10px; }

/* ===== DOTS - NUEVO CONTENEDOR CON FONDO GRIS ===== */
.carousel-dots {
    position: absolute;
    top: 125px;  /* Ligeramente ajustado para mejor posición */
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
    background: rgba(0, 0, 0, 0.5);  /* Fondo negro semitransparente */
    padding: 6px 12px;  /* Espaciado interno para crear el contenedor */
    border-radius: 20px;  /* Bordes redondeados para el contenedor */
    backdrop-filter: blur(2px);  /* Efecto de desenfoque sutil (opcional) */
    border: 1px solid rgba(255, 255, 255, 0.2);  /* Borde sutil */
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.7);  /* Dots blancos con opacidad */
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.dot:hover {
    background: rgba(255, 255, 255, 1);  /* Más brillante al hacer hover */
    transform: scale(1.2);
}

/* Urbano - dot activo */
.popup-carousel[data-mode="urban"] .dot.active {
    background: #FF69B4;  /* Rosa para el dot activo */
    border-color: #FF69B4;
    box-shadow: 0 0 5px rgba(255, 105, 180, 0.5);  /* Brillo sutil */
}

/* Espectral - dot activo */
.popup-carousel[data-mode="spectral"] .dot.active {
    background: #87CEEB;  /* Azul para el dot activo */
    border-color: #87CEEB;
    box-shadow: 0 0 5px rgba(135, 206, 235, 0.5);  /* Brillo sutil */
}

/* ===== INFORMACIÓN ===== */
.carousel-info {
    padding: 10px 12px;
    border-top: 1px solid rgba(0,0,0,0.1);
}

/* Urbano */
.popup-carousel[data-mode="urban"] .carousel-info {
    background: #ffffff;
    border-top-color: #cccccc;
}

/* Espectral */
.popup-carousel[data-mode="spectral"] .carousel-info {
    background: #2d3436;
    border-top-color: #444444;
}

.carousel-title {
    font-weight: bold;
    font-size: 13px;
    margin-bottom: 4px;
    font-family: sans-serif;
}

.popup-carousel[data-mode="urban"] .carousel-title { color: #333333; }
.popup-carousel[data-mode="spectral"] .carousel-title { color: #ffffff; }

.carousel-source {
    font-size: 11px;
    font-style: italic;
    font-family: sans-serif;
}

.popup-carousel[data-mode="urban"] .carousel-source { color: #666666; }
.popup-carousel[data-mode="spectral"] .carousel-source { color: #cccccc; }

/* ===== CONTENIDO DEL POPUP ===== */
.popup-content {
    padding: 0 12px 12px 12px;
    max-height: 200px;
    overflow-y: auto;
    font-family: sans-serif;
    font-size: 13px;
    line-height: 1.4;
}

.popup-content b {
    display: block;
    margin-bottom: 5px;
    font-size: 14px;
}

/* ===== WRAPPER URBANO ===== */
.leaflet-popup-content-wrapper {
    border-radius: 8px;
    padding: 12px;
    background: #ffffff;
    color: #333333;
    box-shadow: 0 3px 14px rgba(0,0,0,0.2);
}

.leaflet-popup-content {
    margin: 0;
}

/* ===== ESPECTRAL ===== */
.spectral-popup .leaflet-popup-content-wrapper {
    background: #2d3436;
    color: #ffffff;
    border-radius: 8px;
}

.spectral-popup .leaflet-popup-content {
    color: #ffffff;
    margin: 0;
}

.spectral-popup .leaflet-popup-tip {
    background: #2d3436;
}