/**
 * Estilos para el Carrusel de Sucursales Dalton Honda
 * Con soporte para navegación por swipe sin botones de navegación
 */

.honda-locations-carousel-container {
    margin: 20px 0;
    position: relative;
}

/* Contenedor principal del carrusel */
.scroll-container {
    display: flex;
    overflow-x: hidden;
    scroll-behavior: smooth;
    width: 100%;
    position: relative;
    margin-inline: 40px;
    -webkit-overflow-scrolling: touch; /* Para mejor desplazamiento en iOS */
    user-select: none; /* Prevenir selección de texto durante el swipe */
    cursor: grab; /* Indicador de que se puede arrastrar */
    scrollbar-width: none; /* Ocultar scrollbar en Firefox */
    -ms-overflow-style: none; /* Ocultar scrollbar en IE/Edge */
}

/* Ocultar scrollbar en Webkit (Chrome, Safari) */
.scroll-container::-webkit-scrollbar {
    display: none;
}

/* Cambiar cursor cuando se está arrastrando */
.scroll-container.active {
    cursor: grabbing;
}

/* Elementos individuales del carrusel */
.scroll-item {
    flex: 0 0 100%;
    text-align: left;
    border-radius: 8px;
    transition: transform 0.3s ease-in-out;
    padding: 15px;
    box-sizing: border-box;
}

.scroll-item p {
    margin: 10px 0;
}

.scroll-item strong {
    font-weight: bold;
}

/* Contenedor de puntos de navegación */
.dots-container {
    text-align: center;
    margin-top: 10px;
}

.dot {
    height: 10px;
    width: 10px;
    margin: 5px;
    background-color: #bbb;
    border-radius: 50%;
    display: inline-block;
    cursor: pointer;
    transition: background-color 0.3s;
}

.dot.active {
    background-color: white;
}

/* Responsive */
@media (max-width: 768px) {
    .scroll-container {
        margin-inline: 20px;
    }
    
    .scroll-item {
        padding: 12px;
    }
}

/* Indicador visual de swipe */
@media (min-width: 769px) {
    .scroll-container::after {
        content: '';
        position: absolute;
        top: 0;
        right: 0;
        width: 40px;
        height: 100%;
        background: linear-gradient(to right, transparent, rgba(0,0,0,0.1));
        pointer-events: none;
        opacity: 0.5;
    }
    
    .scroll-container::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 40px;
        height: 100%;
        background: linear-gradient(to left, transparent, rgba(0,0,0,0.1));
        pointer-events: none;
        opacity: 0.5;
    }
}