/* Précise la classe cta et btn-reserver avec custom-btn */
.cta.btn-reserver.custom-btn {
    font-size: 15px;
    padding: 10px 25px 10px 25px;
    cursor: pointer;
    font-weight: bold;
    text-align: center;
    color: #fff;
    background: linear-gradient(#6caefa, #6caefa);
    border-radius: 30px;
    text-shadow: 0 2px 0 black;
    box-shadow: rgba(0, 0, 0, 0.4) 0 2px 4px, rgba(0, 0, 0, 0.3) 0 7px 13px -3px, rgba(0, 0, 0, 0.2) 0 -3px 0 inset;
}

/* Style du bouton au survol */
.cta.btn-reserver.custom-btn:hover {
    background: #4a9bcf;
    background: linear-gradient(#4a9bcf, #4a9bcf);
    text-decoration: none;
}

.cta.btn-reserver.custom-btn:active {
    background: linear-gradient(#6caefa, #6caefa);
    box-shadow: rgba(0, 0, 0, 0.17) 0 -23px 25px 0 inset, rgba(0, 0, 0, 0.15) 0 -36px 30px 0 inset, rgba(0, 0, 0, 0.1) 0 -79px 40px 0 inset,
        rgba(0, 0, 0, 0.06) 0 2px 1px, rgba(0, 0, 0, 0.09) 0 4px 2px, rgba(0, 0, 0, 0.09) 0 8px 4px, rgba(0, 0, 0, 0.09) 0 16px 8px,
        rgba(0, 0, 0, 0.09) 0 32px 16px;
}

input,
textarea,
input,
textarea,
select {
    border: 1px solid #ccc !important;
    /* Remplace la variable trop claire */
}

.rechearch-btn {
    font-size: 15px;
    padding: 12px 25px;
    /* largeur contrôlée par le padding horizontal */
    cursor: pointer;
    font-weight: bold;
    text-align: center;
    color: #fff;
    background: linear-gradient(to bottom, #6DB7FF, #3689c9);
    border-radius: 30px;
    width: auto;
    /* largeur adaptée au contenu */
    border: none;
    margin: 20px auto 0 auto;
    /* centré horizontalement */
    display: block;
    /* nécessaire pour centrer avec margin auto */
    transition: background 0.3s ease;
}

.rechearch-btn:hover {
    background: linear-gradient(to bottom, #4a9bcf, #2d76b1);
}


.rechearch-btn:active {
    background: linear-gradient(#6caefa, #6caefa);
    box-shadow: rgba(0, 0, 0, 0.17) 0 -23px 25px 0 inset, rgba(0, 0, 0, 0.15) 0 -36px 30px 0 inset, rgba(0, 0, 0, 0.1) 0 -79px 40px 0 inset,
        rgba(0, 0, 0, 0.06) 0 2px 1px, rgba(0, 0, 0, 0.09) 0 4px 2px, rgba(0, 0, 0, 0.09) 0 8px 4px, rgba(0, 0, 0, 0.09) 0 16px 8px,
        rgba(0, 0, 0, 0.09) 0 32px 16px;
}



.text-custom-blue {
    color: #6caefa !important;
}

body {
    font-family: 'Poppins', sans-serif;
    background: #f0f2f5;
    margin: 0;
    padding: 0;
}

.bus-ticket {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.05);
    padding: 25px;
    max-width: 700px;
    margin: auto;
    transition: transform 0.3s ease;
    max-width: 100%;
    width: 100%;

}


@media (min-width: 992px) {
    .bus-ticket {
        max-width: 1000px;
    }
}

.bus-ticket:hover {
    transform: scale(1.01);
}

.company {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.company img {
    width: 48px;
    height: 48px;
    object-fit: contain;
    border-radius: 8px;
    margin-right: 15px;
}

.company-name {
    font-size: 20px;
    font-weight: 600;
    color: #222;
}

.trip {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: nowrap;
    margin-bottom: 20px;
}

.trip-info {
    text-align: center;
    flex: 1;
    min-width: 100px;
}

.trip-info span {
    display: block;
    font-size: 14px;
    color: #666;
    margin-top: 4px;
}

.trip-info strong {
    font-size: 22px;
    color: #111;
}

.separator {
    flex: 0 0 60px;
    text-align: center;
    font-size: 20px;
    animation: bounce 2s infinite;
}

.duration {
    font-size: 13px;
    color: #888;
    margin-top: 5px;
}

.price-box {
    border-top: 1px dashed #ccc;
    padding-top: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.price {
    font-size: 24px;
    font-weight: 600;
    color: #0073e6;
}

.availability {
    font-size: 14px;
    color: #4caf50;
    display: flex;
    align-items: center;
    gap: 6px;
    background: #e8f5e9;
    padding: 6px 12px;
    border-radius: 8px;
    font-weight: 500;
}

.ticket-icon {
    width: 20px;
    height: 20px;
    object-fit: contain;
}


.availability::before {
    font-size: 16px;
}

.cta {
    background: #6caefa;
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 12px 24px;
    cursor: pointer;
    font-weight: 600;
    font-size: 16px;
    transition: background 0.3s ease;
}

.cta:hover {
    background: #6caefa;
}

@media (max-width: 600px) {
    .trip {
        flex-wrap: nowrap;
    }

    .price-box {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .cta {
        width: 100%;
        text-align: center;
    }
}

@keyframes bounce {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-3px);
    }
}

.custom-tabs {
    border-bottom: 2px solid #dee2e6;
    justify-content: center;
    margin-top: 20px;
}

.custom-tab-button {
    color: #495057;
    background-color: #f8f9fa;
    border: none;
    border-radius: 50px;
    padding: 10px 20px;
    margin: 0 10px;
    transition: all 0.3s ease;
    font-weight: 500;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.custom-tab-button:hover {
    background-color: #e2e6ea;
    color: #0d6efd;
}

.custom-tab-button.active {
    background-color: #0d6efd;
    color: white;
    font-weight: 600;
    box-shadow: 0 4px 10px rgba(13, 110, 253, 0.3);
}

#explore_area {
    scroll-margin-top: 1000px;
    /* pour les ancrages */
}

/* Style par défaut */
#theme_search_form.default-margin {
    margin-top: -50px;
}

/* Style quand un checkbox est coché */
#theme_search_form.active-margin {
    margin-top: 40px;
    transition: margin-top 0.3s ease;
}

/* Par défaut pour les petits écrans */
@media (max-width: 767px) {
    #explore_area {
        margin-top: -60px;
    }
}

/* Sinon (écrasement pour les écrans plus grands) */
@media (min-width: 768px) {
    #explore_area {
        margin-top: 0;
    }
}

/* Version mobile */
@media (max-width: 600px) {
    .price-box {
        flex-direction: row;           /* Forcer en ligne */
        justify-content: space-between; /* Prix à gauche, billets à droite */
        align-items: center;
        width: 100%;
    }

    .availability {
        text-align: right;
        justify-content: flex-end;
    }
}
