/* Stage 2: make the catalogue and checkout easier to scan and operate. */

.car-card[tabindex="0"]:focus-visible {
    outline: 3px solid color-mix(in srgb, var(--primary) 72%, #ffffff);
    outline-offset: 4px;
    box-shadow: 0 0 0 6px color-mix(in srgb, var(--primary) 16%, transparent), var(--shadow-md);
}

.car-card[aria-disabled="true"] {
    cursor: default;
}

.booking-summary-strip {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(150px, auto);
    gap: 12px;
    align-items: center;
    margin: -2px 0 16px;
    padding: 11px 14px;
    border: 1px solid color-mix(in srgb, var(--primary) 18%, var(--border));
    border-radius: 14px;
    background: linear-gradient(135deg, color-mix(in srgb, var(--primary) 8%, var(--bg-card)), var(--bg-card));
}

.booking-summary-strip__item {
    min-width: 0;
}

.booking-summary-strip__item small,
.booking-summary-strip__item b {
    display: block;
}

.booking-summary-strip__item small {
    margin-bottom: 3px;
    color: var(--text-muted);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.booking-summary-strip__item b {
    overflow: hidden;
    color: var(--text-main);
    font-size: 15px;
    line-height: 1.25;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.booking-summary-strip__item--total {
    text-align: right;
}

.booking-summary-strip__item--total b {
    color: var(--primary);
    font-size: 18px;
}

.booking-summary-strip__item--total b[data-state="pending"] {
    color: var(--text-muted);
    font-size: 14px;
}

/* Keep the map context label away from Leaflet zoom controls on every catalogue mode. */
body.catalog-reference-upgrade #map-wrapper .leaflet-top.leaflet-left,
body.marketplace-experience #map-wrapper .leaflet-top.leaflet-left {
    z-index: 1001;
}

body.catalog-reference-upgrade #map-wrapper .map-context,
body.marketplace-experience #map-wrapper .map-context {
    z-index: 850 !important;
    pointer-events: none;
}

@media (max-width: 760px) {
    .booking-summary-strip {
        grid-template-columns: minmax(0, 1fr) minmax(120px, auto);
        margin-bottom: 12px;
        padding: 10px 12px;
    }

    .booking-summary-strip__item b {
        font-size: 14px;
    }

    .booking-summary-strip__item--total b {
        font-size: 16px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .car-card[tabindex="0"]:focus-visible {
        box-shadow: 0 0 0 4px color-mix(in srgb, var(--primary) 18%, transparent);
    }
}
