/* Page Transferts : complète dispo-page.css (mise en page) et transfers.css (formulaire) */

/* Choix Aéroport / Ville à ville */
.bw-tp-hero { align-items: stretch; }
.bw-tp-choice { display: grid; gap: 16px; align-content: center; }
.bw-tp-pick {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 4px 16px;
    align-items: center;
    padding: 24px;
    border: 1px solid #e8e1d3;
    border-radius: 16px;
    background: #fff;
    color: #171717;
    font: inherit;
    text-align: left;
    cursor: pointer;
    transition: border-color .2s, box-shadow .2s, transform .3s;
}
.bw-tp-pick svg { grid-row: span 2; color: var(--bw-gold, #a88447); }
.bw-tp-pick strong { font-family: Outfit, sans-serif; font-size: 20px; font-weight: 500; }
.bw-tp-pick span { color: #57534b; font-size: 15px; line-height: 1.5; }
.bw-tp-pick:hover { transform: translateY(-2px); box-shadow: 0 10px 30px rgba(23, 23, 23, .07); }
.bw-tp-pick.on { border-color: var(--bw-orange, #f46b32); box-shadow: 0 0 0 1px var(--bw-orange, #f46b32); }
.bw-tp-pick.on svg { color: var(--bw-orange, #f46b32); }

/* Onglets du tableau */
.bw-tp-tabs { display: inline-flex; gap: 4px; margin: 0 0 20px; padding: 4px; border: 1px solid #e8e1d3; border-radius: 999px; background: #fff; }
.bw-tp-tabs button { padding: 9px 20px; border: 0; border-radius: 999px; background: none; color: #57534b; font: inherit; font-size: 15px; font-weight: 500; cursor: pointer; transition: background-color .2s, color .2s; }
.bw-tp-tabs button.on { background: #171717; color: #fcfaf5; }

/* Tableau des tarifs */
.bw-tp-table-wrap { overflow: hidden; border: 1px solid #e8e1d3; border-radius: 16px; background: #fff; }
.bw-tp-table { width: 100%; margin: 0; border-collapse: collapse; font-size: 15px; }
.bw-tp-table th, .bw-tp-table td { padding: 16px 20px; border: 0; border-bottom: 1px solid #f0ebe1; background: transparent !important; text-align: left; vertical-align: middle; }
.bw-tp-table td::before, .bw-tp-table th::before { content: none !important; }
.bw-tp-table thead th { background: #f8f4ec; color: #57534b; font-size: 13px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; }
.bw-tp-table tbody tr { cursor: pointer; transition: background-color .2s; }
.bw-tp-table tbody tr:last-child th, .bw-tp-table tbody tr:last-child td { border-bottom: 0; }
.bw-tp-table tbody tr:hover, .bw-tp-table tbody tr.is-current { background: #fbf7f0; }
.bw-tp-table tbody tr.is-current th { box-shadow: inset 3px 0 0 var(--bw-orange, #f46b32); }
.bw-tp-table tbody th { font-weight: 500; }
.bw-tp-route { display: block; color: #171717; }
.bw-tp-route b { color: var(--bw-orange, #f46b32); font-weight: 600; }
.bw-tp-more { display: inline-block; margin-top: 4px; color: #57534b; font-size: 13px; font-weight: 400; text-decoration: underline; text-underline-offset: 3px; }
.bw-tp-table td { color: #57534b; white-space: nowrap; }
.bw-tp-table td strong { color: #171717; font-size: 17px; }
.bw-tp-quote { color: #8e887c; }
.bw-tp-book { padding: 8px 18px; border: 1px solid var(--bw-orange, #f46b32); border-radius: 999px; background: #fff; color: var(--bw-orange, #f46b32); font: inherit; font-size: 14px; font-weight: 500; cursor: pointer; transition: background-color .2s, color .2s; }
.bw-tp-book:hover, tr.is-current .bw-tp-book { background: var(--bw-orange, #f46b32); color: #171717; }
.bw-tp-table-note { margin: 16px 0 0; color: #8e887c; font-size: 14px; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); }

/* Carte à droite du formulaire */
.bw-tp-mapbox { display: grid; gap: 0; overflow: hidden; border: 1px solid #e8e1d3; border-radius: 16px; background: #fff; box-shadow: 0 5px 20px rgba(0, 0, 0, .05); }
.bw-tp-map { width: 100%; height: 440px; background: #eee9df; }
.bw-tp-map .leaflet-tile-pane { filter: saturate(.55) sepia(.12) brightness(1.03); }
.bw-tp-sum { padding: 20px 24px; border-top: 1px solid #e8e1d3; }
.bw-tp-sum p { margin: 0; }
.bw-tp-sum-route { color: #171717; font-family: Outfit, sans-serif; font-size: 20px; font-weight: 500; line-height: 1.3; }
.bw-tp-sum-route b { color: var(--bw-orange, #f46b32); }
.bw-tp-sum-meta { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 8px !important; color: #57534b; font-size: 15px; }
.bw-tp-sum-meta span:empty { display: none; }
.bw-tp-sum-meta b { color: var(--bw-orange, #f46b32); font-size: 18px; }
.bw-tp-sum-note { margin-top: 10px !important; color: #8e887c; font-size: 13px; }
.bw-tp-pin span { display: block; width: 18px; height: 18px; border: 3px solid #fff; border-radius: 50%; background: #171717; box-shadow: 0 2px 8px rgba(0, 0, 0, .3); }
.bw-tp-pin.is-to span { background: var(--bw-orange, #f46b32); }
.leaflet-container { font-family: "DM Sans", sans-serif; }

/* Aéroports desservis */
.bw-tp-airports { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin: 24px 0 0; padding: 0; list-style: none; }
.bw-tp-airports li { display: flex; align-items: center; gap: 10px; margin: 0; padding: 16px 18px; border: 1px solid #e8e1d3; border-radius: 12px; background: #fff; color: #171717; font-size: 15px; }
.bw-tp-airports svg { flex: none; color: var(--bw-gold, #a88447); }

@media (max-width: 1024px) {
    .bw-tp-airports { grid-template-columns: repeat(2, 1fr); }
    .bw-tp-map { height: 360px; }
}
@media (max-width: 767px) {
    .bw-tp-pick { padding: 18px; }
    .bw-tp-tabs { display: flex; }
    .bw-tp-tabs button { flex: 1; padding: 9px 10px; font-size: 14px; }
    /* tableau en cartes sur mobile */
    .bw-tp-table thead { display: none; }
    .bw-tp-table, .bw-tp-table tbody, .bw-tp-table tr, .bw-tp-table th, .bw-tp-table td { display: block; }
    .bw-tp-table tbody tr { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; padding: 16px; border-bottom: 1px solid #f0ebe1; }
    .bw-tp-table tbody tr[hidden] { display: none; }
    .bw-tp-table tbody tr:last-child { border-bottom: 0; }
    .bw-tp-table th, .bw-tp-table td { padding: 0; border: 0; }
    .bw-tp-table tbody th { grid-column: 1 / -1; }
    .bw-tp-table td { font-size: 14px; }
    .bw-tp-table td[data-col="km"] { grid-column: 1; grid-row: 2; }
    .bw-tp-table td[data-col="time"] { grid-column: 1; grid-row: 3; }
    .bw-tp-table td[data-col="price"] { grid-column: 2; grid-row: 2; text-align: right; }
    .bw-tp-table td[data-col="book"] { grid-column: 2; grid-row: 3; text-align: right; }
    .bw-tp-map { height: 300px; }
    .bw-tp-airports { grid-template-columns: 1fr 1fr; gap: 8px; }
    .bw-tp-airports li { padding: 12px; font-size: 14px; }
}
