/**
 * Estilos para o carrossel de destinos populares
 * Com animação automática de rolagem horizontal
 */

.destinos-carrossel {
    width: 100%;
    overflow: hidden;
    position: relative;
    padding: 20px 0;
}

.destinos-container {
    display: flex;
    gap: 20px;
    animation: scrollDestinos 40s linear infinite !important;
    width: max-content !important;
    padding: 20px 0;
    transform: translateX(0);
}

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

.destino-card {
    width: 300px;
    height: 300px;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    flex-shrink: 0;
    transition: transform 0.3s ease;
    display: block;
    text-decoration: none;
    color: #fff;
    margin: 0 5px;
}

.destino-card:hover {
    transform: translateY(-10px);
}

.destino-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.destino-card:hover .destino-image {
    transform: scale(1.1);
}

.destino-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 30%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.4), transparent);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 15px;
    color: #fff;
}

.destino-nome {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 0;
    text-align: center;
    
    
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

.destino-passeios {
    display: inline-block;
    background-color: #D71921;
    color: #fff;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 12px;
    margin-top: 10px;
}

/* Controles do carrossel (opcional) */
.destinos-controles {
    position: absolute;
    top: 50%;
    width: 100%;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    padding: 0 20px;
    z-index: 10;
    pointer-events: none;
}

.destino-btn {
    background: rgba(0, 0, 0, 0.5);
    color: #fff;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    pointer-events: auto;
}

.destino-btn:hover {
    background: rgba(215, 25, 33, 0.8);
}

/* Pausar a animação quando o mouse estiver sobre o carrossel */
.destinos-carrossel:hover .destinos-container {
    animation-play-state: paused;
}

/* Versão responsiva */
@media (max-width: 767px) {
    .destino-card {
        width: 220px;
        height: 280px;
        margin-top: -10px !important;
    }
    
    .destino-nome {
        font-size: 20px;
    }
}
