/* =========================================
   CARRUSEL DE ITINERARIO
   ========================================= */

.itin-track {
    display: flex;
    gap: 1.25rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding-bottom: 4px;
}
.itin-track::-webkit-scrollbar {
    display: none;
}

.itin-card {
    scroll-snap-align: start;
    flex: 0 0 88%;
}

/* =========================================
   CONTROLES DEL CARRUSEL DE ITINERARIO
   ========================================= */

.itin-carousel {
    position: relative;
}

/* El track ahora permite arrastre con mouse */
.itin-track.is-dragging {
    cursor: grabbing;
    scroll-snap-type: none; /* se desactiva el snap mientras se arrastra, para que no "salte" */
}
.itin-track {
    cursor: grab;
}

.itin-btn {
    display: none; /* oculto en móvil: ahí se usa swipe táctil */
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    align-items: center;
    justify-content: center;
    border: none;
    cursor: pointer;
    background: #fff;
    color: #8e0225;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18);
    transition: background-color 0.2s ease, color 0.2s ease, opacity 0.2s ease;
}
.itin-btn:hover {
    background: #8e0225;
    color: #fff;
}
.itin-btn--prev { left: -18px; }
.itin-btn--next { right: -18px; }

.itin-btn.is-disabled {
    opacity: 0.35;
    pointer-events: none;
}

/* Indicadores (puntos) */
.itin-dots {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1rem;
}

.itin-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #e5e2e1;
    border: none;
    cursor: pointer;
    padding: 0;
    transition: background-color 0.2s ease, width 0.2s ease;
}
.itin-dot.is-active {
    background: #8e0225;
    width: 22px;
    border-radius: 9999px;
}

@media (min-width: 640px) {
    .itin-card {
        flex: 0 0 60%;
    }
}

@media (min-width: 768px) {
    .itin-btn {
        display: flex;
    }
}

@media (min-width: 1024px) {
    .itin-card {
        flex: 0 0 100%;
    }
}