.transport-directory-search-form {
    background: #f9f9f9;
    padding: 20px;
    border-radius: 5px;
    margin-bottom: 30px;
}

.transport-search-row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -10px 15px;
}

.transport-search-field {
    flex: 1;
    min-width: 200px;
    padding: 0 10px;
    margin-bottom: 10px;
}

.transport-search-field label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

.transport-search-field select,
.transport-search-field input[type="text"],
.transport-search-field input[type="date"],
.transport-search-field input[type="url"],
.transport-search-field input[type="tel"],
.transport-search-field input[type="email"],
.transport-search-field textarea {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.transport-search-submit {
    text-align: center;
    margin-top: 15px;
}

.transport-search-submit button {
    padding: 10px 20px;
    background: #0073aa;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.transport-search-submit button:hover {
    background: #005177;
}

.transport-results {
    margin-top: 30px;
}

.transport-results-header {
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.transport-company-results {
    margin-bottom: 30px;
    border: 1px solid #ddd;
    border-radius: 5px;
    overflow: hidden;
}

.transport-company-header {
    background: #f5f5f5;
    padding: 15px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid #ddd;
}

.transport-company-logo {
    max-height: 40px;
    margin-right: 15px;
}

.transport-schedules-table {
    width: 100%;
    border-collapse: collapse;
    display: block;
    overflow-x: auto;
}

.transport-schedules-table th,
.transport-schedules-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

.transport-schedules-table th {
    background: #f9f9f9;
    font-weight: bold;
}

.transport-schedules-table tr:hover {
    background: #f5f5f5;
}

.transport-book-button {
    background: #4CAF50;
    color: white;
    padding: 6px 12px;
    text-decoration: none;
    border-radius: 4px;
}

.transport-book-button:hover {
    background: #45a049;
}

.transport-no-results {
    padding: 20px;
    background: #fff8e1;
    border-left: 4px solid #ffc107;
    margin: 20px 0;
} 

    /* Indicateur visuel pour le défilement */
    .transport-schedules-table::-webkit-scrollbar {
        height: 8px;
    }
    
    .transport-schedules-table::-webkit-scrollbar-track {
        background: #f1f1f1;
        border-radius: 4px;
    }
    
    .transport-schedules-table::-webkit-scrollbar-thumb {
        background: #c1c1c1;
        border-radius: 4px;
    }
    
    .transport-schedules-table::-webkit-scrollbar-thumb:hover {
        background: #a8a8a8;
    }

/* Responsive */
@media (max-width: 768px) {
    .transport-schedules-table {
        display: block;
        overflow-x: auto;
    }
    
    .transport-search-field {
        flex: 100%;
    }
    
}

#transport-results-container {
    margin-top: 20px;
    padding: 15px;
    background: #f9f9f9;
    border: 1px solid #ddd;
}

.transport-loading {
    text-align: center;
    padding: 20px;
    font-style: italic;
    color: #666;
}

/* Modals */
.transport-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.transport-modal > div {
    background: #fff;
    padding: 20px;
    max-width: 800px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
}

.transport-modal .close-details,
.transport-modal .close-modal {
    position: absolute;
    top: 10px;
    right: 10px;
}

/* Boutons de réservation */
.booking-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 20px 0;
}

.booking-options a {
    text-align: center;
    padding: 10px;
}

.booking-options .whatsapp {
    background: #25D366;
    color: white;
}

.booking-options .email {
    background: #4285F4;
    color: white;
}

.booking-options .phone {
    background: #34B7F1;
    color: white;
}

/* Détails compagnie */
.transport-company-details .company-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
}

.transport-company-details img {
    max-height: 80px;
} 

.transport-company-details .company-description {
    margin-bottom: 15px;
}

.transport-company-details .company-description strong {
    display: block;
    margin-bottom: 5px;
    color: #333;
}

.transport-company-details .company-description p {
    margin: 8px 0;
    line-height: 1.6;
    color: #555;
}

.transport-company-details .company-description ul,
.transport-company-details .company-description ol {
    margin: 10px 0 10px 20px;
}

.transport-company-details .company-description li {
    margin-bottom: 5px;
}

.transport-company-details .company-info p {
    margin: 10px 0;
    line-height: 1.5;
}

/* Filtres */
.transport-filters {
    background: #f5f5f5;
    padding: 15px;
    margin: 20px 0;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.transport-filters label {
    margin-right: 10px;
    font-weight: bold;
}

.transport-filters input[type="text"],
.transport-filters select {
    margin-right: 15px;
    padding: 5px;
    min-width: 200px;
}

.transport-filters .button {
    margin-right: 10px;
}

/* Responsive */
@media (max-width: 782px) {
    .transport-filters input[type="text"],
    .transport-filters select {
        display: block;
        margin-bottom: 10px;
        width: 100%;
    }
    
    .transport-filters .button {
        margin-bottom: 10px;
    }
}

/* horaires, carte */
.transport-company-schedules,
.transport-stations-map,
.transport-price-comparison {
    margin: 20px 0;
    padding: 20px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    background: #fff;
}

.filter-row {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 15px;
}

.filter-group {
    flex: 1;
    min-width: 200px;
}

.filter-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

.filter-group select {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.schedules-results {
    margin-top: 20px;
}

.company-schedules {
    margin-bottom: 30px;
}

.transport-schedules-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
}

.transport-schedules-table th,
.transport-schedules-table td {
    padding: 10px;
    border: 1px solid #ddd;
    text-align: left;
}

.transport-schedules-table th {
    background-color: #f5f5f5;
    font-weight: bold;
}

.price-comparison-results {
    margin-top: 20px;
}

/* Styles le comparateur de prix  */
.company-profile-link {
    color: #2271b1;
    text-decoration: none;
    font-weight: 500;
}

.company-profile-link:hover {
    text-decoration: underline;
    color: #135e96;
}

.amenities-info {
    margin-top: 8px;
    padding: 8px 12px;
    background-color: #f8f9fa;
    border-radius: 4px;
    border-left: 3px solid #4CAF50;
    font-size: 0.9em;
}

.amenities-info strong {
    color: #333;
}

.amenities-cell {
    max-width: 200px;
}

.amenities-list {
    margin: 0;
    padding-left: 20px;
    font-size: 0.9em;
}

.amenities-list li {
    margin-bottom: 3px;
    color: #555;
}

.amenities-list li:before {
    content: "✓ ";
    color: #4CAF50;
    font-weight: bold;
}

.no-amenities {
    color: #999;
    font-style: italic;
}

/* styles pour les cartes de prix */
.price-card {
    position: relative;
    padding: 20px;
    margin-bottom: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.price-card.min-price {
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
    border-left: 4px solid #2196F3;
}

.price-card.max-price {
    background: linear-gradient(135deg, #f3e5f5 0%, #e1bee7 100%);
    border-left: 4px solid #9C27B0;
}

.price-card .price {
    font-size: 1.8em;
    font-weight: bold;
    color: #333;
    margin: 10px 0;
}

.price-card h5 {
    margin-top: 0;
    font-size: 1.2em;
    color: #333;
}

/* Conteneur du tableau scrollable */
.all-prices {
    margin-top: 20px;
    overflow-x: auto; /* Permet le défilement horizontal */
    -webkit-overflow-scrolling: touch; /* Défilement fluide sur iOS */
    max-width: 100%; /* Empêche le dépassement */
}

/* Styles pour le tableau des prix */
.transport-prices-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
}

.transport-prices-table th {
    background-color: #f1f1f1;
    padding: 12px;
    text-align: left;
    font-weight: 600;
    border-bottom: 2px solid #ddd;
}

.transport-prices-table td {
    padding: 12px;
    border-bottom: 1px solid #eee;
    vertical-align: top;
}

.transport-prices-table tr:hover {
    background-color: #f9f9f9;
}

.transport-prices-table tr:nth-child(even) {
    background-color: #fafafa;
}

.transport-prices-table tr:nth-child(even):hover {
    background-color: #f5f5f5;
}

/* Style responsive pour mobile */
@media screen and (max-width: 768px) {
    .all-prices {
        border: 1px solid #e0e0e0;
        border-radius: 8px;
        background: linear-gradient(to right, white 30%, rgba(255,255,255,0)),
                    linear-gradient(to left, white 30%, rgba(255,255,255,0)) 100% 0,
                    radial-gradient(farthest-side at 0% 50%, rgba(0,0,0,0.1), transparent),
                    radial-gradient(farthest-side at 100% 50%, rgba(0,0,0,0.1), transparent);
        background-repeat: no-repeat;
        background-size: 40px 100%, 40px 100%, 14px 100%, 14px 100%;
        background-position: 0 0, 100% 0, 0 0, 100% 0;
        background-attachment: local, local, scroll, scroll;
    }
    
    .transport-prices-table {
        min-width: 650px; /* Ajuste selon le nombre de colonnes */
    }
    
    .transport-prices-table th,
    .transport-prices-table td {
        padding: 10px 8px;
        font-size: 14px;
    }
    
    /* Indicateur visuel pour le défilement */
    .all-prices::-webkit-scrollbar {
        height: 8px;
    }
    
    .all-prices::-webkit-scrollbar-track {
        background: #f1f1f1;
        border-radius: 4px;
    }
    
    .all-prices::-webkit-scrollbar-thumb {
        background: #c1c1c1;
        border-radius: 4px;
    }
    
    .all-prices::-webkit-scrollbar-thumb:hover {
        background: #a8a8a8;
    }
}

/* Amélioration de l'affichage sur très petits écrans */
@media screen and (max-width: 480px) {
    .transport-prices-table th,
    .transport-prices-table td {
        padding: 8px 6px;
        font-size: 13px;
    }
    
    .transport-prices-table {
        min-width: 550px;
    }
}

/* Style pour l'en-tête fixe lors du défilement */
.transport-prices-table thead {
    position: sticky;
    top: 0;
    z-index: 100;
}

.transport-prices-table th {
    background-color: #2c3e50;
    color: white;
    border-bottom: 2px solid #34495e;
}

.transport-prices-table tr:nth-child(even) {
    background-color: #f9f9f9;
}

.transport-prices-table tr:hover {
    background-color: #f5f5f5;
}

.station-popup {
    min-width: 200px;
    text-align: center;
    padding: 15px;
}


/* leaflet */
.station-popup .button {
    margin-top: 10px;
    display: inline-block;
    padding: 8px 15px;
    background: #0073aa;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    font-size: 14px;
}

.leaflet-popup-content {
    margin: 10px;
}

.station-popup h4 {
    color: #2c3e50;
    margin: 0 0 10px 0;
    border-bottom: 2px solid #3498db;
    padding-bottom: 5px;
}

.station-popup h5 {
    margin: 0 0 10px 0;
    color: #2c3e50;
    font-size: 16px;
}

.station-popup p {
    margin: 5px 0;
    font-size: 14px;
    line-height: 1.4;
    color: #555;
}

.station-popup a.button {
    display: inline-block;
    padding: 8px 15px;
    background: #3498db;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    margin-top: 10px;
    font-size: 14px;
}

.station-popup a.button:hover {
    background: #2980b9;
}

.google-maps-link {
    display: inline-block;
    margin-top: 12px;
    padding: 10px 18px;
    background: #4285f4;
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    transition: background-color 0.3s ease;
}

.google-maps-link:hover {
    background: #3367d6;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

/* Styles pour la fiche compagnie */
.transport-company-profile {
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px;
}

.company-selection {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 30px;
}

.company-profile-form {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 15px;
    align-items: end;
}

.company-profile-form .form-group {
    min-width: 0; /* Important pour le responsive */
}

.company-profile-form .form-submit {
    white-space: nowrap;
}

.company-profile-form label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

.company-profile-form select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
}

.company-header {
    display: flex;
    gap: 30px;
    align-items: flex-start;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #e9ecef;
}

.company-logo-large {
    width: 150px;
    height: 150px;
    object-fit: contain;
    border-radius: 8px;
    background: white;
    padding: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.company-info h2 {
    margin: 0 0 15px 0;
    color: #2c3e50;
    font-size: 28px;
}

.company-description {
    font-size: 16px;
    line-height: 1.6;
    color: #555;
}

.company-contact-info {
    margin-bottom: 30px;
}

.company-contact-info h4 {
    color: #2c3e50;
    margin-bottom: 15px;
    border-bottom: 1px solid #e9ecef;
    padding-bottom: 10px;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 15px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px;
    background: #f8f9fa;
    border-radius: 6px;
}

.contact-icon {
    font-size: 20px;
}

.company-destinations,
.company-stations {
    margin-bottom: 30px;
}

.company-destinations h4,
.company-stations h4 {
    color: #2c3e50;
    margin-bottom: 15px;
    border-bottom: 1px solid #e9ecef;
    padding-bottom: 10px;
}

.destinations-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.destination-tag {
    background: #e3f2fd;
    color: #1976d2;
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 14px;
    border: 1px solid #bbdefb;
}

.destination-tag small {
    opacity: 0.7;
    font-size: 12px;
}

.stations-list {
    list-style: none;
    padding: 0;
}

.stations-list li {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 12px;
    border-bottom: 1px solid #f1f3f4;
}

.stations-list li:last-child {
    border-bottom: none;
}

.station-city {
    color: #666;
    font-style: italic;
}

.route-count {
    margin-left: auto;
    background: #4caf50;
    color: white;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 12px;
}

.company-actions {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 2px solid #e9ecef;
}

.whatsapp-button {
    background: #25d366 !important;
    border-color: #25d366 !important;
}

.whatsapp-button:hover {
    background: #128c7e !important;
    border-color: #128c7e !important;
}

/* Responsive */
@media (max-width: 768px) {
    .company-header {
        flex-direction: column;
        text-align: center;
    }
    
    .company-logo-large {
        align-self: center;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
    }
    
    .company-actions {
        flex-direction: column;
    }
    
    .company-profile-form {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .company-profile-form .form-submit {
        display: flex;
        justify-content: center;
    }
    
    .company-profile-form .button {
        width: 100%;
        max-width: 200px;
    }
}

@media (max-width: 480px) {
    .company-selection {
        padding: 15px;
    }
    
    .company-profile-form {
        gap: 10px;
    }
    
    .company-profile-form label {
        font-size: 14px;
    }
    
    .company-profile-form select {
        padding: 12px;
        font-size: 16px; /* Évite le zoom sur iOS */
    }
    
    .company-profile-form .button {
        padding: 12px 20px;
        font-size: 16px;
    }
}

/* Pour les très petits écrans */
@media (max-width: 360px) {
    .company-profile-form select {
        font-size: 14px;
    }
    
    .company-profile-form .button {
        font-size: 14px;
        padding: 10px 16px;
    }
} 

/* affichage trip details */
.transport-trip-details {
    max-width: 800px;
    margin: 0 auto;
}

.trip-info {
    background: white;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin-bottom: 25px;
}

.pricing, .schedule {
    margin-top: 20px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 6px;
    border-left: 4px solid #4285f4;
}

.pricing h4, .schedule h4 {
    margin-top: 0;
    color: #2c3e50;
    border-bottom: 1px solid #e0e0e0;
    padding-bottom: 8px;
}

/* Styles pour les informations non spécifiées */
.not-specified {
    color: #999;
    font-style: italic;
}

.not-available {
    color: #999;
    font-style: italic;
    text-align: center;
    padding: 20px;
}

/* escales et commodités */
.stops-timeline {
    border-left: 3px solid #4285f4;
    margin-left: 15px;
    padding-left: 25px;
}
.stop-item {
    position: relative;
    margin-bottom: 25px;
}
.stop-marker {
    position: absolute;
    left: -33px;
    top: 0;
    width: 25px;
    height: 25px;
    border-radius: 50%;
    background: #4285f4;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 12px;
}
.stop-content {
    background: white;
    padding: 15px;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
}
.amenities-list {
    margin: 10px 0;
}
.amenity-badge {
    display: inline-block;
    background: #e8f5e8;
    color: #2e7d32;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 12px;
    margin: 2px;
}
.stop-duration {
    color: #666;
    font-style: italic;
    margin: 5px 0;
}
.stop-notes {
    background: #fff3e0;
    padding: 8px;
    border-radius: 4px;
    margin: 8px 0 0 0;
    font-size: 14px;
}

.general-amenity {
    border-left: 4px solid #4CAF50 !important;
}

.general-amenity h4 {
    color: #2e7d32 !important;
}

.general-amenities-section {
    background: #f0f9f0;
    padding: 15px;
    border-radius: 8px;
    border: 1px solid #4CAF50;
    margin-bottom: 20px;
}

.general-amenities-section h4 {
    color: #2e7d32;
    margin-top: 0;
}

.amenity-notes {
    background: #e8f5e8;
    padding: 8px;
    border-radius: 4px;
    margin: 10px 0 0 0;
}

/* Styles améliorés pour Select2 */
.select2-container--default .select2-selection--single {
    border: 1px solid #ddd;
    border-radius: 4px;
    height: 44px;
    display: flex !important;
    align-items: center !important;
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
    line-height: 1.2 !important;
    padding-left: 12px;
    padding-right: 30px;
    color: #495057;
    font-size: 14px;
    width: 100% !important;
    display: flex !important;
    align-items: center !important;
    position: relative;
    top: 0 !important;
}

/* Style spécifique pour le placeholder centré */
.select2-container--default .select2-selection__placeholder {
    color: #6c757d !important;
    line-height: 1.2 !important;
    display: flex !important;
    align-items: center !important;
    width: 100% !important;
    height: 100% !important;
}

.centered-placeholder {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    height: 100% !important;
    line-height: 1.2 !important;
}

/* Style pour les placeholders personnalisés */
.select2-placeholder {
    color: #6c757d !important;
    font-style: italic;
    opacity: 0.8;
}

.select2-placeholder-option {
    color: #6c757d !important;
    font-style: italic;
}

/* Correction de la flèche */
.select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 42px !important;
    right: 6px;
    display: flex !important;
    align-items: center !important;
}

.select2-container--default .select2-selection--single .select2-selection__arrow b {
    border-color: #495057 transparent transparent transparent;
    border-style: solid;
    border-width: 6px 6px 0 6px;
    margin-top: 0 !important;
    position: relative;
    top: 0 !important;
}

.select2-container--default.select2-container--open .select2-selection--single .select2-selection__arrow b {
    border-color: transparent transparent #495057 transparent;
    border-width: 0 6px 6px 6px;
    margin-top: -3px !important;
}

/* Pour les écrans mobiles */
@media (max-width: 768px) {
    .select2-container--default .select2-selection--single .select2-selection__rendered {
        font-size: 16px !important;
    }
    
    .select2-container--default .select2-selection--single {
        height: 48px !important;
    }
    
    .select2-container--default .select2-selection--single .select2-selection__arrow {
        height: 46px !important;
    }
}

/* Assurer que tous les selects ont la même apparence */
.transport-search-field .select2-container .select2-selection--single,
.filter-group .select2-container .select2-selection--single,
.form-group .select2-container .select2-selection--single {
    height: 44px !important;
    display: flex !important;
    align-items: center !important;
}

.transport-search-field .select2-container .select2-selection__rendered,
.filter-group .select2-container .select2-selection__rendered,
.form-group .select2-container .select2-selection__rendered {
    display: flex !important;
    align-items: center !important;
    height: 100% !important;
}

/* Adaptation pour les formulaires de transport */
.transport-search-field .select2-container {
    margin-bottom: 0;
}

/* Assurer la cohérence avec les autres champs */
.transport-search-field input,
.transport-search-field select,
.transport-search-field .select2-container {
    height: 44px;
}

/* Style pour les labels */
.transport-search-field label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
}

/* Amélioration du responsive */
@media (max-width: 768px) {
    .select2-container--default .select2-selection--single .select2-selection__rendered {
        font-size: 16px; /* Évite le zoom sur iOS */
    }
}

/* Style pour le nouveau champ Gare */
.transport-schedules-filter .filter-row {
    display: flex;
    gap: 20px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.transport-schedules-filter .filter-group {
    flex: 1;
    min-width: 250px;
}

.transport-schedules-filter .filter-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
}

/* Responsive */
@media (max-width: 768px) {
    .transport-schedules-filter .filter-row {
        flex-direction: column;
        gap: 15px;
    }
    
    .transport-schedules-filter .filter-group {
        min-width: 100%;
    }
}

