/**
 * Estilos para el Widget de Mapa de Zonarosa
 */

/* Contenedor principal */
.zonarosa-map-wrapper {
    position: relative;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    background: #f5f5f5;
    box-sizing: border-box;
}

/* Asegurar que el widget de Elementor no tenga restricciones */
.elementor-widget-zonarosa_map {
    width: 100%;
    max-width: 100%;
}

.elementor-widget-zonarosa_map .elementor-widget-container {
    width: 100%;
    max-width: 100%;
    padding: 0;
}

/* Contenedor del mapa */
.zonarosa-map-container {
    width: 100%;
    max-width: 100%;
    height: 600px;
    position: relative;
    box-sizing: border-box;
}

/* Controles del mapa */
.zonarosa-map-controls {
    position: absolute;
    top: 20px;
    left: 20px;
    right: 20px;
    z-index: 10;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Barra de búsqueda */
.zonarosa-search-bar {
    background: #ffffff;
    border-radius: 50px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    padding: 12px 20px;
}

.zonarosa-search-container {
    display: flex;
    align-items: center;
    gap: 12px;
}

.zonarosa-search-icon {
    color: #e91e63;
    flex-shrink: 0;
    width: 24px;
    height: 24px;
}

.zonarosa-search-input {
    flex: 1;
    border: none;
    outline: none;
    font-size: 16px;
    color: #333;
    background: transparent;
}

.zonarosa-search-input::placeholder {
    color: #999;
}

.zonarosa-voice-search,
.zonarosa-search-btn {
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    transition: color 0.3s ease;
    flex-shrink: 0;
}

.zonarosa-voice-search:hover,
.zonarosa-search-btn:hover {
    color: #e91e63;
}

/* Filtro de categorías */
.zonarosa-category-filter {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding: 6px 4px;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.zonarosa-category-filter::-webkit-scrollbar {
    display: none;
}

.zonarosa-category-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: #ffffff;
    border-radius: 50px;
    cursor: pointer;
    white-space: nowrap;
    font-size: 15px;
    font-weight: 600;
    color: #333;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.12);
    transition: all 0.3s ease;
    user-select: none;
    min-height: 44px;
}

.zonarosa-category-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.18);
}

.zonarosa-category-item.active {
    background: #e91e63;
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(233, 30, 99, 0.4);
}

.zonarosa-category-icon {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.zonarosa-category-icon img {
    height: 18px;
    object-fit: contain;
}

/* Popup del establecimiento dentro del mapa */
.zonarosa-establishment-popup {
    position: absolute;
    bottom: 20px;
    left: 20px;
    right: 20px;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    max-height: 60vh;
    overflow-y: auto;
    transform: translateY(calc(100% + 40px));
    transition: transform 0.3s ease;
    z-index: 1000;
    display: none;
}

.zonarosa-establishment-popup.active {
    transform: translateY(0);
    display: block;
}

.zonarosa-popup-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: rgba(0, 0, 0, 0.1);
    border: none;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.3s ease;
    z-index: 1;
}

.zonarosa-popup-close:hover {
    background: rgba(0, 0, 0, 0.2);
}

.zonarosa-popup-content {
    padding: 24px;
}

/* Logo del establecimiento */
.zonarosa-establishment-logo {
    width: 100%;
    height: 200px;
    object-fit: contain;
    background: #f5f5f5;
    border-radius: 12px;
    margin-bottom: 20px;
}

/* Nombre del establecimiento */
.zonarosa-establishment-name {
    font-size: 24px;
    font-weight: 700;
    color: #333;
    margin: 0 0 12px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Botón de favorito */
.zonarosa-favorite-btn {
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 8px;
    color: #ccc;
    transition: color 0.3s ease;
}

.zonarosa-favorite-btn:hover,
.zonarosa-favorite-btn.active {
    color: #e91e63;
}

/* Dirección */
.zonarosa-establishment-address {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    color: #666;
    font-size: 14px;
    margin-bottom: 20px;
}

.zonarosa-establishment-address svg {
    flex-shrink: 0;
    margin-top: 2px;
    color: #e91e63;
}

/* Sección de descripción */
.zonarosa-establishment-section {
    margin-bottom: 24px;
}

.zonarosa-section-title {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin: 0 0 12px 0;
}

.zonarosa-establishment-description {
    color: #666;
    font-size: 14px;
    line-height: 1.6;
    font-style: italic;
}

/* Próximos eventos */
.zonarosa-events-list {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding-bottom: 8px;
    scrollbar-width: thin;
}

.zonarosa-event-card {
    flex: 0 0 280px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: transform 0.3s ease;
}

.zonarosa-event-card:hover {
    transform: translateY(-4px);
}

.zonarosa-event-image {
    width: 100%;
    height: 160px;
    object-fit: cover;
}

.zonarosa-event-info {
    padding: 12px;
    background: #fff;
}

.zonarosa-event-title {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin: 0;
}

/* Galería de fotos */
.zonarosa-photo-gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}

.zonarosa-event-image {
    width: 100%;
    height: 160px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: 12px 12px 0 0;
    background-color: #f5f5f5; /* Color de fondo si no hay imagen */
}
.zonarosa-gallery-image:hover {
    transform: scale(1.05);
}

/* Botón de ver en el mapa */
.zonarosa-view-on-map-btn {
    width: 100%;
    padding: 16px;
    background: #e91e63;
    color: #ffffff;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease;
    margin-top: 20px;
}

.zonarosa-view-on-map-btn:hover {
    background: #c2185b;
}

/* Marcadores personalizados */
.zonarosa-marker {
    width: 44px;
    height: 44px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.zonarosa-marker-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.4);
    transition: transform 0.3s ease;
    border: 3px solid #ffffff;
}

.zonarosa-marker:hover .zonarosa-marker-icon {
    transform: scale(1.3);
    z-index: 10;
}

.zonarosa-marker-icon img {
    width: 22px;
    height: 22px;
    object-fit: contain;
}

/* Popup de Mapbox personalizado */
.mapboxgl-popup-content {
    padding: 12px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.zonarosa-marker-popup {
    max-width: 200px;
}

.zonarosa-marker-popup-name {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin: 0 0 4px 0;
}

.zonarosa-marker-popup-address {
    font-size: 12px;
    color: #666;
    margin: 0 0 8px 0;
}

.zonarosa-marker-popup-btn {
    display: block;
    border: none;
    outline: none;
    width: 100%;
    padding: 8px;
    background: #e91e63;
    color: #ffffff;
    text-align: center;
    border-radius: 6px;
    text-decoration: none;
    font-size: 12px;
    font-weight: 600;
    transition: background 0.3s ease;
}

.zonarosa-marker-popup-btn:active {
    border: none;
    outline: none;
}

.zonarosa-marker-popup-btn:focus {
    border: none;
    outline: none;
}

.zonarosa-marker-popup-btn:hover {
    border: none;
    outline: none;
    background: #c2185b;
    color: #ffffff;
}

/* Marcador de ubicación del usuario */
.zonarosa-user-marker {
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.zonarosa-user-marker svg {
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

/* Control de geolocalización personalizado */
.zonarosa-geolocate-control {
    position: absolute;
    bottom: 110px;
    right: 7px;
    background: #ffffff;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
}

.zonarosa-geolocate-control:hover {
    background: #e91e63;
    color: #ffffff;
}

.zonarosa-geolocate-control svg {
    width: 20px;
    height: 20px;
}

/* Responsive */
@media (min-width: 768px) {
    .zonarosa-establishment-popup {
        left: auto;
        right: 20px;
        bottom: 20px;
        width: 400px;
        max-height: calc(100% - 40px);
        border-radius: 16px;
        transform: translateX(120%);
    }
    
    .zonarosa-establishment-popup.active {
        transform: translateX(0);
    }
    
    .zonarosa-map-controls {
        right: auto;
        max-width: 500px;
    }
}

@media (max-width: 767px) {
    .zonarosa-map-controls {
        left: 12px;
        right: 12px;
        top: 12px;
    }
    
    .zonarosa-search-bar {
        padding: 6px 12px;
    }
    
    .zonarosa-search-input {
        font-size: 14px;
    }
    
    .zonarosa-category-item {
        padding: 8px 16px;
        font-size: 13px;
    }
    
    .zonarosa-popup-content {
        padding: 20px 16px;
    }
    
    .zonarosa-establishment-name {
        font-size: 20px;
    }
    
    .zonarosa-geolocate-control {
        bottom: 80px;
        right: 12px;
        width: 44px;
        height: 44px;
    }
}

/* Loading state */
.zonarosa-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    background: #f5f5f5;
}

.zonarosa-spinner {
    width: 48px;
    height: 48px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #e91e63;
    border-radius: 50%;
    animation: zonarosa-spin 1s linear infinite;
}

@keyframes zonarosa-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Empty state */
.zonarosa-empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    text-align: center;
    color: #999;
}

.zonarosa-empty-state svg {
    width: 64px;
    height: 64px;
    margin-bottom: 16px;
    opacity: 0.5;
}

.zonarosa-empty-state p {
    margin: 0;
    font-size: 14px;
}

/* Asegurar ancho completo en contenedores de Elementor */
.elementor-section-full_width .zonarosa-map-wrapper,
.elementor-section-boxed .zonarosa-map-wrapper {
    width: 100%;
    max-width: 100%;
}

/* Eliminar padding del contenedor de Elementor para ancho completo */
.elementor-widget-zonarosa_map .elementor-widget-container {
    margin: 0;
}

/* Ajustar controles en contenedores de ancho completo */
@media (min-width: 1200px) {
    .elementor-section-full_width .zonarosa-map-controls {
        max-width: 600px;
    }
}

/* Asegurar que Mapbox GL se ajuste correctamente */
.zonarosa-map-container .mapboxgl-map {
    width: 100% !important;
    height: 100% !important;
}

.zonarosa-map-container .mapboxgl-canvas {
    width: 100% !important;
    height: 100% !important;
}

/* Carousel de eventos */
.zonarosa-events-carousel {
    position: relative;
    overflow: hidden;
}

.zonarosa-events-carousel-track {
    display: flex;
    gap: 16px;
    transition: transform 0.3s ease;
    padding: 4px;
}

.zonarosa-carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.95);
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    z-index: 10;
    transition: all 0.3s ease;
}

.zonarosa-carousel-btn:hover {
    background: #e91e63;
    color: white;
}

.zonarosa-carousel-btn.prev {
    left: 8px;
}

.zonarosa-carousel-btn.next {
    right: 8px;
}

.zonarosa-carousel-btn svg {
    width: 20px;
    height: 20px;
}

/* Popup de evento */
.zonarosa-event-popup {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    padding: 20px;
}

.zonarosa-event-popup.active {
    display: flex;
}

.zonarosa-event-popup-content {
    background: #ffffff;
    border-radius: 16px;
    max-width: 500px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
}

.zonarosa-event-popup-header {
    position: relative;
    height: 250px;
    overflow: hidden;
    border-radius: 16px 16px 0 0;
}

.zonarosa-event-popup-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.zonarosa-event-popup-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: rgba(255, 255, 255, 0.95);
    border: none;
    border-radius: 50%;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.3);
    z-index: 10;
    transition: all 0.3s ease;
}

.zonarosa-event-popup-close:hover {
    background: #e91e63;
    color: white;
    transform: scale(1.1);
}

.zonarosa-event-popup-close svg {
    width: 24px;
    height: 24px;
}

.zonarosa-event-popup-body {
    padding: 24px;
}

.zonarosa-event-popup-title {
    font-size: 24px;
    font-weight: 700;
    color: #333;
    margin: 0 0 16px 0;
}

.zonarosa-event-popup-info {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 20px;
}

.zonarosa-event-info-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    color: #666;
    font-size: 14px;
}

.zonarosa-event-info-item svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    color: #e91e63;
}

.zonarosa-event-popup-description {
    color: #666;
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 20px;
}

/* Botón de cerrar arriba a la derecha del popup */
.zonarosa-popup-close-top {
    position: absolute;
    top: 16px;
    right: 16px;
    background: rgba(255, 255, 255, 0.95);
    border: none;
    border-radius: 50%;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.2);
    z-index: 100;
    transition: all 0.3s ease;
}

.zonarosa-popup-close-top:hover {
    background: #e91e63;
    color: white;
    transform: scale(1.1);
}

.zonarosa-popup-close-top svg {
    width: 24px;
    height: 24px;
}

/* Scroll con arrastre - SIN scrollbar visible */
.zonarosa-category-filter,
.zonarosa-events-carousel-track,
.zonarosa-photo-gallery {
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE */
}

/* Ocultar scrollbar en Chrome/Safari */
.zonarosa-category-filter::-webkit-scrollbar,
.zonarosa-events-carousel-track::-webkit-scrollbar,
.zonarosa-photo-gallery::-webkit-scrollbar {
    display: none;
}

/* Transición suave al hacer drag */
.zonarosa-category-filter.active,
.zonarosa-events-carousel-track.active,
.zonarosa-photo-gallery.active {
    scroll-behavior: auto;
}

/* Indicador visual durante drag */
.zonarosa-category-item,
.zonarosa-event-card,
.zonarosa-photo-gallery img {
    user-select: none;
    -webkit-user-drag: none;
}

/* Lightbox */
.zonarosa-lightbox {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.95);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 100000;
    padding: 20px;
}

.zonarosa-lightbox.active {
    display: flex;
}

.zonarosa-lightbox-content {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
}

.zonarosa-lightbox-content img {
    max-width: 100%;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 8px;
}

.zonarosa-lightbox-close {
    position: absolute;
    top: -50px;
    right: 0;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    border-radius: 50%;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: white;
    transition: all 0.3s ease;
}

.zonarosa-lightbox-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

/* Botones de navegación del lightbox */
.zonarosa-lightbox-prev,
.zonarosa-lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.2);
    border: none;
    border-radius: 50%;
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: white;
    transition: all 0.3s ease;
    z-index: 10;
}

.zonarosa-lightbox-prev {
    left: 20px;
}

.zonarosa-lightbox-next {
    right: 20px;
}

.zonarosa-lightbox-prev:hover,
.zonarosa-lightbox-next:hover {
    background: rgba(233, 30, 99, 0.9);
    transform: translateY(-50%) scale(1.1);
}

/* Contador de imágenes */
.zonarosa-lightbox-counter {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
}

.zonarosa-photo-gallery img {
    cursor: pointer;
    transition: transform 0.3s ease;
}

.zonarosa-photo-gallery img:hover {
    transform: scale(1.05);
}

/* Responsive para popup dentro del mapa */
@media (max-width: 767px) {
    .zonarosa-establishment-popup {
        bottom: 10px;
        left: 10px;
        right: 10px;
        max-height: 50vh;
    }
    
    .zonarosa-event-card {
        flex: 0 0 240px;
    }
    
    .zonarosa-event-popup-content {
        max-height: 85vh;
    }
    
    .zonarosa-popup-close-top {
        top: 12px;
        right: 12px;
        width: 44px;
        height: 44px;
    }
    
    .zonarosa-popup-close-top svg {
        width: 22px;
        height: 22px;
    }
    
    .zonarosa-event-popup-close {
        width: 44px;
        height: 44px;
    }
    
    .zonarosa-event-popup-close svg {
        width: 22px;
        height: 22px;
    }
    
    /* Botones de navegación del lightbox en móvil */
    .zonarosa-lightbox-prev,
    .zonarosa-lightbox-next {
        width: 48px;
        height: 48px;
    }
    
    .zonarosa-lightbox-prev {
        left: 10px;
    }
    
    .zonarosa-lightbox-next {
        right: 10px;
    }
    
    .zonarosa-lightbox-counter {
        bottom: 10px;
        font-size: 13px;
        padding: 6px 12px;
    }
}
.mapboxgl-ctrl-bottom-left{
    display:none !important;
}