/*
 * Location de voiture — liste et fiche (templates/front/v3/views/car_rentals).
 * Les cartes reprennent `tour-offer-*` (search.css) et la fiche `tour-*` (tour.css) :
 * ce fichier ne porte que ce qui est propre à la location.
 */

/* ---------- Liste ---------- */
.car-rental-results .results-content { min-width: 0; }
.car-rental-results .filters-sidebar { max-height: calc(100vh - 210px); overflow-y: auto; }
.car-rental-results .filter-group legend { float: none; width: auto; font-size: 12px; font-weight: 700; color: var(--text-muted); text-transform: uppercase; margin-bottom: 15px; }
.car-rental-results .filter-group { min-width: 0; }
.car-rental-results fieldset.filter-group { border: 0; border-bottom: 1px solid #f1f5f9; padding: 0 0 20px; }
.car-rental-results .car-filter-close { display: none; border: 0; background: transparent; font-size: 1.5rem; color: var(--text-dark); padding: 0 4px; }
.car-rental-results .car-rental-capacity-filters label { display: block; font-size: .8rem; font-weight: 700; margin: 12px 0 6px; }
.car-rental-results .compact-search-form select { width: 100%; border: 0; background: transparent; color: var(--text-dark); font-size: 14px; font-weight: 600; }
.car-rental-results .car-rental-location-summary { display: block; margin-top: 6px; color: var(--text-muted); }
.car-rental-results .tour-offer-media img { object-fit: contain; background: #fff; }
.car-rental-results .filters-sidebar { scroll-margin-top: 180px; }
@media (min-width: 993px) {
    .car-rental-results .tour-results-heading { flex-wrap: wrap; gap: 12px; }
    .car-rental-results .tour-offer-card { grid-template-columns: minmax(180px, .9fr) minmax(0, 1.2fr) 170px; }
}
@media (max-width: 992px) {
    .car-rental-results .car-filter-close { display: block; }
    .car-rental-results .main-layout { display: flex; flex-direction: column; }
    .car-rental-results .results-content { order: 1; width: 100%; }
    .car-rental-results .filters-sidebar { order: 2; width: 100%; max-height: none; position: static; }
    .car-rental-results .compact-search-form .search-inputs-wrapper { grid-template-columns: 1fr 1fr; border-radius: 16px; padding: 12px; }
    .car-rental-results .compact-search-form .search-item:first-child { grid-column: 1 / -1; }
    .car-rental-results .compact-search-form .search-item { border: 0; min-width: 0; }
    .car-rental-results .btn-update-search { grid-column: 1 / -1; }
    .car-rental-results .filters-sidebar.is-open { order: 0; display: block; }
}

/* Caractéristiques du véhicule, en pastilles sur la carte comme sur la fiche. */
.car-rental-specs { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 12px; padding: 0; list-style: none; }
.car-rental-specs li { padding: 4px 9px; border-radius: 999px; background: #eff6f4; color: #315e55; font-size: .74rem; font-weight: 700; }
.car-rental-specs i { margin-right: 4px; color: var(--secondary-color, #146b72); }

.car-rental-unavailable { color: #b4532a; font-size: .74rem; font-weight: 700; margin-bottom: 8px; }
.tour-offer-card.is-unavailable { opacity: .82; }

/* ---------- Fiche ---------- */
.car-rental-quote-form label { font-size: .75rem; font-weight: 700; color: #697570; }
.car-rental-breakdown { max-height: 180px; overflow: auto; font-size: .8rem; }
.car-rental-facts dt { font-size: .74rem; font-weight: 700; text-transform: uppercase; color: #7b8783; }
.car-rental-facts dd { margin-bottom: .9rem; font-weight: 600; color: #1d2926; }
