html, body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    margin: 0;
    padding: 0;
    overflow-x: clip;
    -webkit-text-size-adjust: 100%;
    /* overflow:visible on Y so position:fixed children (bottom-sheet) are never clipped */
    overflow-y: auto;
}

/* ?????? Global responsive utilities ?????? */
*, *::before, *::after {
    box-sizing: border-box;
}

:root {
    --content-pad-mobile: 0.5rem;
    --content-pad-tablet: 1rem;
    --content-pad-desktop: 2rem;
}

h1:focus {
    outline: none;
}

a, .btn-link {
    color: var(--z-blue-dk);
}

.btn-primary {
    color: #fff;
    background-color: var(--z-blue);
    border-color: var(--z-blue-dk);
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
    box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem var(--z-cyan);
}

.content {
    padding: 0;
}

@media (min-width: 641px) {
    .content {
        padding: 0;
    }
}

@media (min-width: 1025px) {
    .content {
        padding: 0;
    }
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid red;
}

.validation-message {
    color: red;
}

#blazor-error-ui {
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

    #blazor-error-ui .dismiss {
        cursor: pointer;
        position: absolute;
        right: 0.75rem;
        top: 0.5rem;
    }

.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,...) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

    .blazor-error-boundary::after {
        content: "An error has occurred.";
    }

.loading-progress {
    position: relative;
    display: block;
    width: 8rem;
    height: 8rem;
    margin: 20vh auto 1rem auto;
}

    .loading-progress circle {
        fill: none;
        stroke: #e0e0e0;
        stroke-width: 0.6rem;
        transform-origin: 50% 50%;
        transform: rotate(-90deg);
    }

        .loading-progress circle:last-child {
            stroke: var(--z-blue);
            stroke-dasharray: calc(3.141 * var(--blazor-load-percentage, 0%) * 0.8), 500%;
            transition: stroke-dasharray 0.05s ease-in-out;
        }

.loading-progress-text {
    position: absolute;
    text-align: center;
    font-weight: bold;
    inset: calc(20vh + 3.25rem) 0 auto 0.2rem;
}

    .loading-progress-text:after {
        content: var(--blazor-load-percentage-text, "Loading");
    }

code {
    color: #c02d76;
}

.map-container {
    position: relative;
    height: 100vh;
    width: 100%;
}

.map-view {
    height: 100%;
    width: 100%;
}

/* Styles pour fixer l'indicateur de position é l'écran */
#fixed-car-indicator {
    position: absolute;
    top: 30%; /* Fixé é 30% de la hauteur de la fenétre */
    left: 50%; /* Centré horizontalement */
    z-index: 1000; /* Assurez-vous qu'il est au-dessus de la carte */
    /* Crée une simple fléche rouge pointant vers le haut */
    width: 0;
    height: 0;
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-bottom: 20px solid #D63300; /* Fléche rouge/orange pour l'indicateur */
    /* Centre l'élément lui-méme pour que la rotation soit correcte */
    transform: translate(-50%, -50%);
    transform-origin: 50% 50%;
    /* Ajouté pour donner une transition fluide é la rotation */
    transition: transform 0.2s ease-out;
}

/*.search-bar {
    display: block;
    margin-bottom: 10px;
    width: 300px;
}*/

/*.suggestions {
    list-style-type: none;
    padding: 0;
    margin: 0;
    background: white;
    border: 1px solid #ccc;
    max-height: 150px;
    overflow-y: auto;
}*/

/*    .suggestions li {
        padding: 5px;
        cursor: pointer;
    }

        .suggestions li:hover {
            background: #eee;
        }*/

/* Selection bar — chips horizontaux superposés à la carte */
.selection-bar {
    position: absolute;
    top: 12px;
    left: 12px;
    right: 12px;
    display: flex;
    flex-direction: row;
    justify-content: flex-end;
    gap: 8px;
    overflow-x: auto;
    -ms-overflow-style: none;
    scrollbar-width: none;
    padding: 0;
    background: transparent;
    z-index: 1000;
}

    .selection-bar::-webkit-scrollbar {
        display: none;
    }

.selection-item {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 6px 14px;
    background: rgba(255, 255, 255, 0.95);
    color: #1a1a1a;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    white-space: nowrap;
    cursor: pointer;
    box-shadow: 0 1px 5px rgba(0, 0, 0, 0.18);
    transition: background 0.15s, box-shadow 0.15s;
    user-select: none;
}

    .selection-item:hover {
        background: rgba(255, 255, 255, 1);
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
    }

    .selection-item:active {
        background: rgba(10,79,196,.08);
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
    }

.slideview {
    position: fixed;
    right: -300px;
    top: 0;
    width: 300px;
    height: 100%;
    background: #fff;
    box-shadow: -2px 0 8px rgba(0,0,0,0.2);
    transition: right 0.3s;
    z-index: 1000;
}

    .slideview.open {
        right: 0;
    }
/* Arrival modal */
.arrival-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.45);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2147483646;
}

.arrival-modal {
    background: #fff;
    border-radius: 8px;
    padding: 16px;
    max-width: 360px;
    width: calc(100% - 32px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.2);
}

.arrival-modal-body {
    font-size: 16px;
    margin-bottom: 12px;
}

.arrival-modal-footer {
    text-align: right;
}
/* ── Carte adresses flottante : cachée par défaut (desktop) ── */
.mob-addr-card {
    display: none;
}

/* ── Pastille de statut de course : cachée par défaut (desktop) ── */
.ride-status-pill {
    display: none;
    position: absolute;
    top: 54px;
    left: 12px;                       /* aligné à gauche de l'écran */
    z-index: 1002;
    align-items: center;
    gap: 8px;
    max-width: calc(100vw - 24px);
    padding: 10px 14px;
    background: #FFFFFF;
    border: none;
    border-radius: 24px;
    box-shadow: 0 4px 24px rgba(0,0,0,.22);
    font-family: 'Poppins', 'Inter', system-ui, sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: var(--z-ink);
    cursor: pointer;
}

    .ride-status-pill .rsp-icon { font-size: 16px; flex-shrink: 0; }

    /* Colonne titre + détail. min-width:0 est INDISPENSABLE : sans lui, un enfant flex
       refuse de rétrécir sous sa largeur de contenu et l'ellipse ne se déclenche jamais. */
    .ride-status-pill .rsp-body {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        min-width: 0;
        line-height: 1.25;
    }

    .ride-status-pill .rsp-text {
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 100%;
    }

    /* 2ᵉ ligne : temps + distance restants. Plus petite et atténuée pour rester secondaire. */
    .ride-status-pill .rsp-detail {
        font-size: 12px;
        font-weight: 500;
        color: #5a6b85;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 100%;
        font-variant-numeric: tabular-nums;   /* évite que la pastille « respire » à chaque tick */
    }

    .ride-status-pill .rsp-chevron {
        color: #9aa0a6;
        font-size: 18px;
        font-weight: 700;
    }

/* ══════════════════════════════════════════════════════════════
   Styles gm-* en GLOBAL — utilisés par BottomSheet ET la carte
   mobile flottante dans MaCarte.
   ══════════════════════════════════════════════════════════════ */
.gm-route-builder {
    display: flex;
    flex-direction: column;
    position: relative;
}

.gm-stop-row {
    display: flex;
    align-items: center;
    gap: 0;
    min-height: 48px;
    position: relative;
}

.gm-timeline-col {
    width: 28px;
    position: relative;        /* point centré en absolu ; lignes ancrées au centre */
    flex-shrink: 0;
    align-self: stretch;
}

.gm-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2.5px solid;
    z-index: 2;
    position: absolute;             /* centré verticalement (et horizontalement) dans la colonne */
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    flex-shrink: 0;
}

.gm-dot-origin {
    border-color: var(--z-green);
    background: var(--z-green);
}

.gm-dot-dest {
    border-color: #EA4335;
    background: #EA4335;
}

.gm-dot-mid {
    border-color: var(--z-blue);
    background: var(--z-blue);
}

.gm-dot-add {
    border-color: #bbb;
    background: transparent;
    width: 10px;
    height: 10px;
    border-width: 2px;
}

.gm-line {
    position: absolute;         /* ligne au-DESSUS du point : du haut jusqu'au centre */
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    background: #d0d0d0;
    top: 0;
    bottom: 50%;
}

.gm-line-below {
    top: 50%;                   /* ligne en DESSOUS du point : du centre jusqu'au bas */
    bottom: 0;
}

.gm-input-col {
    flex: 1;
    padding: 4px 0;
}

.gm-input {
    width: 100%;
    padding: 10px 12px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    color: var(--z-ink);
    background: #f2f3f5;
    transition: background .15s, box-shadow .15s;
    outline: none;
    font-family: 'Poppins','Inter',system-ui,sans-serif;
}

    .gm-input::placeholder {
        color: #9aa0a6;
    }

    .gm-input:focus {
        background: #fff;
        box-shadow: 0 1px 4px rgba(0,0,0,.12);
    }

.gm-remove-btn {
    width: 26px;
    height: 26px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    color: #bbb;
    font-size: 14px;
    cursor: pointer;
    border-radius: 50%;
    transition: all .12s;
    margin-left: 4px;
}

    .gm-remove-btn:hover {
        color: #EA4335;
        background: rgba(234,67,53,.08);
    }

.gm-add-row {
    min-height: 40px;
}

.gm-add-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border: none;
    background: none;
    color: var(--z-blue);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    border-radius: 6px;
    font-family: inherit;
    transition: background .12s;
}

    .gm-add-btn:hover:not(:disabled) {
        background: rgba(var(--z-blue-rgb),.06);
    }

    .gm-add-btn:disabled {
        color: #bbb;
        cursor: not-allowed;
    }

.gm-max-hint {
    color: #999;
    font-size: 12px;
    margin-left: 4px;
}

.gm-suggestions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
    padding-top: 10px;
    border-top: 1px solid rgba(0,0,0,.06);
}

.gm-chip {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 7px 14px;
    border-radius: 20px;
    border: 1px solid #dadce0;
    background: #fff;
    color: var(--z-ink);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all .15s;
    white-space: nowrap;
    font-family: inherit;
}

    .gm-chip i {
        color: var(--z-blue);
        font-size: 14px;
    }

    .gm-chip:hover {
        background: rgba(var(--z-blue-rgb),.06);
        border-color: var(--z-blue);
    }

.gm-swap-btn {
    position: absolute;
    right: 2px;
    top: 35%;
    transform: translateY(-50%);
    width: 26px;
    height: 26px;
    border-radius: 50%;
    border: 1.5px solid #dadce0;
    background: #fff;
    color: #6b7280;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 1px 3px rgba(0,0,0,.08);
    transition: all .15s;
    z-index: 3;
}

    .gm-swap-btn:hover {
        background: var(--z-blue);
        color: #fff;
        border-color: var(--z-blue);
        box-shadow: 0 2px 6px rgba(var(--z-blue-rgb),.25);
    }

    .gm-swap-btn:active {
        transform: translateY(-50%) scale(.9);
    }

/* ======================================================
   Mobile adjustments (≤ 640 px)
   ====================================================== */
@media (max-width: 640px) {

    .slideview {
        width: 100%;
        right: -100%;
    }

        .slideview.open {
            right: 0;
        }

    .map-container {
        height: 100vh;
    }

    .selection-bar {
        top: 8px;
        left: 8px;
        right: 8px;
        gap: 6px;
        /* Petit écran : les chips débordent → on aligne à GAUCHE (au lieu de flex-end) pour
           que le débordement parte vers la droite et reste atteignable au défilement horizontal.
           Avec flex-end, les premiers chips passaient sous le bord gauche, inaccessibles. */
        justify-content: flex-start;
        flex-wrap: nowrap;
        -webkit-overflow-scrolling: touch; /* défilement fluide (momentum) sur mobile */
    }

    .selection-item {
        padding: 5px 12px;
        font-size: 12px;
    }
}

/* ════════════════════════════════════════════════════
   Carte adresses flottante : visible jusqu'à 1024px,
   masquée uniquement au-delà (largeur d'écran > 1024px)
   ════════════════════════════════════════════════════ */
@media (max-width: 1024px) {

    /* Pastille de statut visible en mode mobile (course active, sheet replié) */
    .ride-status-pill {
        display: inline-flex;
    }

    /* Conteneur carte */
    .mob-addr-card {
        display: block;
        position: absolute;
        top: 54px;
        left: 12px;
        right: 12px;
        max-width: 500px;
        margin-left: 0;
        margin-right: auto;   /* aligné à gauche de l'écran */
        background: #FFFFFF;
        border-radius: 12px;
        padding: 10px 14px 10px;
        z-index: 1002;
        box-shadow: 0 4px 24px rgba(0,0,0,.22);
        font-family: 'Poppins', 'Inter', system-ui, sans-serif;
        opacity: 1;
        transform: translateY(0);
        transition: opacity .25s ease, transform .25s ease;
        max-height: calc(100vh - 80px);
        overflow-y: auto;
        scrollbar-width: none;
    }

        .mob-addr-card::-webkit-scrollbar {
            display: none;
        }

    /* Header : masqué en mobile */
    .mob-addr-header {
        display: none;
    }

    /* Bouton « réduire » (chevron) — coin haut-droit de la carte d'adresses.
       sticky : reste visible même si la carte défile. */
    .mob-addr-collapse {
        position: sticky;
        top: 0;
        float: right;
        z-index: 6;
        width: 30px;
        height: 30px;
        margin: -4px -6px 2px 8px;
        padding: 0;
        border: none;
        border-radius: 50%;
        /* Couleurs du bouton primaire (btn btn-primary) */
        background: linear-gradient(135deg, var(--vtc-primary, var(--z-blue)), var(--vtc-primary-dark, var(--z-blue-dk)));
        color: #ffffff;
        font-size: 22px;
        line-height: 1;
        font-weight: 700;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        box-shadow: 0 2px 8px rgba(var(--z-blue-rgb),.35);
    }

        .mob-addr-collapse:hover { filter: brightness(1.06); }
        .mob-addr-collapse:active { transform: scale(.92); }

    /* Disparaît quand BottomSheet monte */
    .mob-addr-hidden {
        opacity: 0 !important;
        pointer-events: none !important;
        transform: translateY(-10px) !important;
    }

    /* ── Timeline mob-* ── */
    .mob-timeline {
        display: flex;
        flex-direction: column;
    }

    .mob-addr-row {
        display: flex;
        align-items: stretch;
        gap: 0;
        min-height: 46px;
        position: relative;
    }

    /* Colonne timeline : dot centré verticalement, lignes en absolu */
    .mob-timeline-col {
        width: 28px;
        display: flex;
        align-items: center; /* centre le dot horizontalement */
        justify-content: center; /* centre le dot verticalement */
        flex-shrink: 0;
        align-self: stretch;
        position: relative;
    }

    /* Dot toujours centré dans sa cellule */
    .mob-dot {
        width: 12px;
        height: 12px;
        border-radius: 50%;
        border: 2.5px solid;
        position: relative;
        z-index: 2;
        flex-shrink: 0;
    }

    .mob-dot-origin {
        border-color: var(--z-green);
        background: var(--z-green);
    }

    .mob-dot-dest {
        border-color: #EA4335;
        background: #EA4335;
    }

    .mob-dot-mid {
        border-color: var(--z-blue);
        background: var(--z-blue);
    }

    .mob-dot-add {
        border-color: #bbb;
        background: transparent;
        width: 10px;
        height: 10px;
        border-width: 2px;
    }

    /* Lignes en position absolue : s'étendent vers le haut ou le bas depuis le centre */
    .mob-line {
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
        width: 2px;
        background: #d0d0d0;
        /* ligne du dessus : du bord haut jusqu'au centre */
        top: 0;
        bottom: 50%;
    }

        .mob-line.mob-line-below {
            /* ligne du dessous : du centre jusqu'au bord bas */
            top: 50%;
            bottom: 0;
        }

    .mob-input-col {
        flex: 1;
        padding: 4px 0;
    }

    /* Centrage vertical du bouton supprimer dans la rangée */
    .mob-addr-row .gm-remove-btn {
        align-self: center;
    }

    .mob-addr-input {
        width: 100%;
        padding: 10px 12px;
        border: none;
        border-radius: 8px;
        font-size: 14px;
        color: var(--z-ink);
        background: #f2f3f5;
        transition: background .15s, box-shadow .15s;
        outline: none;
        font-family: inherit;
    }

        .mob-addr-input::placeholder {
            color: #9aa0a6;
        }

        .mob-addr-input:focus {
            background: #fff;
            box-shadow: 0 1px 4px rgba(0,0,0,.12);
        }

    .mob-add-row {
        min-height: 40px;
    }

    /* Bouton swap adapté au style mob */
    .mob-swap-btn {
        position: absolute;
        right: 4px;
        top: 37%;
        transform: translateY(-50%);
        width: 26px;
        height: 26px;
        border-radius: 50%;
        border: 1.5px solid #dadce0;
        background: #fff;
        color: #6b7280;
        font-size: 12px;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        box-shadow: 0 1px 3px rgba(0,0,0,.08);
        transition: all .15s;
        z-index: 3;
    }

        .mob-swap-btn:hover {
            background: var(--z-blue);
            color: #fff;
            border-color: var(--z-blue);
        }

        .mob-swap-btn:active {
            transform: translateY(-50%) scale(.9);
        }

    /* Masquer la section adresses dans le BottomSheet sur mobile */
    .bottom-sheet .section-card:first-of-type {
        display: none;
    }
}

/* ?????? Tablet ?????? */
@media (min-width: 641px) and (max-width: 1024px) {
    .map-container {
        height: 100vh;
    }
}

/* ?????? Desktop ?????? */
@media (min-width: 1025px) {
    .map-container {
        height: 100vh;
    }
}

/* ???????????????????????????????????????????
   VTC Affectation tab é styles épurés
   ??????????????????????????????????????????? */
.affectation-vtc {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 4px 0 8px;
}

/* ?? Barre de statut ?? */
.vtc-status-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 7px 12px;
    background: rgba(10,79,196,.05);
    border-radius: 8px;
    border-left: 3px solid var(--z-blue);
    font-size: 13px;
    font-weight: 600;
    color: var(--z-blue);
}

.vtc-status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--z-blue);
    flex-shrink: 0;
    animation: vtcPulse 1.5s ease-in-out infinite;
}

@keyframes vtcPulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.5;
        transform: scale(1.3);
    }
}

.vtc-status-label {
    flex: 1;
}

.vtc-ride-id {
    font-size: 11px;
    color: #888;
    font-weight: 400;
}

/* ?? Carte chauffeur ?? */
.vtc-driver-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: #fff;
    border-radius: 10px;
    border: 1px solid #e8eaf0;
    box-shadow: 0 1px 4px rgba(0,0,0,0.07);
}

.vtc-driver-photo img,
.vtc-driver-photo-placeholder {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    border: 2px solid #e0e4ea;
}

.vtc-driver-photo-placeholder {
    background: #e8eaf6;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: var(--z-blue);
}

.vtc-driver-info {
    flex: 1;
    min-width: 0;
}

.vtc-driver-name {
    font-weight: 700;
    font-size: 15px;
    color: var(--z-ink);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.vtc-driver-company {
    font-size: 12px;
    color: #666;
    margin-top: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.vtc-contact-btns {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
}

.vtc-btn-call,
.vtc-btn-whatsapp {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    cursor: pointer;
    transition: opacity .15s;
}

.vtc-btn-call {
    background: #e8f5e9;
    color: #2e7d32;
}

.vtc-btn-whatsapp {
    background: #e8f5e9;
    color: #25D366;
}

    .vtc-btn-call:hover, .vtc-btn-whatsapp:hover {
        opacity: .75;
    }

/* ?? Carte véhicule ?? */
.vtc-vehicle-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    background: #f8f9fc;
    border-radius: 10px;
    border: 1px solid #e0e4ea;
}

.vtc-vehicle-photo {
    width: 52px;
    height: 40px;
    border-radius: 6px;
    object-fit: cover;
    border: 1px solid #ddd;
    flex-shrink: 0;
}

.vtc-vehicle-icon {
    width: 52px;
    height: 40px;
    border-radius: 6px;
    background: #e8eaf6;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    color: #555;
    flex-shrink: 0;
}

.vtc-vehicle-details {
    flex: 1;
    min-width: 0;
}

.vtc-vehicle-name {
    font-weight: 600;
    font-size: 14px;
    color: var(--z-ink);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.vtc-vehicle-meta {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    font-size: 12px;
    color: #777;
    margin-top: 3px;
}

.vtc-vehicle-plate {
    margin-top: 4px;
    display: inline-block;
    background: #fff;
    border: 1px solid #ccc;
    border-radius: 4px;
    padding: 1px 8px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 1.5px;
    color: #333;
}

/* ?? Résumé course ?? */
.vtc-ride-summary {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 10px 12px;
    background: #fff;
    border-radius: 10px;
    border: 1px solid #e8eaf0;
}

.vtc-ride-row {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #333;
}

.vtc-dest-icon {
    color: #d32f2f;
    font-size: 14px;
    flex-shrink: 0;
}

.vtc-price-icon {
    color: #2e7d32;
    font-size: 14px;
    flex-shrink: 0;
}

.vtc-price {
    font-weight: 700;
    color: #2e7d32;
}

/* ?? Bouton annulation ?? */
.vtc-btn-cancel {
    width: 100%;
    padding: 9px;
    border-radius: 8px;
    border: 1.5px solid #d32f2f;
    background: #fff;
    color: #d32f2f;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: background .15s;
}

    .vtc-btn-cancel:hover:not(:disabled) {
        background: #ffebee;
    }

    .vtc-btn-cancel:disabled {
        opacity: .55;
        cursor: not-allowed;
    }

/* ?? Bandeau notation (fallback) ?? */
.vtc-rate-banner {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    background: #fff8e1;
    border-radius: 8px;
    border: 1px solid #ffe082;
    font-size: 13px;
    font-weight: 500;
    color: #5d4037;
}

    .vtc-rate-banner span {
        flex: 1;
    }

.vtc-btn-rate {
    background: #f9a825;
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 5px 12px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
}

.vtc-btn-dismiss {
    background: none;
    border: none;
    color: #888;
    cursor: pointer;
    font-size: 16px;
    padding: 0 2px;
}

/* ?? état vide ?? */
.vtc-empty-state {
    text-align: center;
    color: #aaa;
    padding: 32px 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

    .vtc-empty-state i {
        font-size: 44px;
        color: #dde;
    }

    .vtc-empty-state div {
        font-weight: 600;
        font-size: 14px;
        color: #999;
    }

    .vtc-empty-state small {
        font-size: 12px;
    }

/* ── AdToast — publicités partenaires ── */
.ad-toast {
    position: fixed;
    top: 16px;
    right: 16px;
    width: 300px;
    max-width: calc(100vw - 32px);
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 8px 32px rgba(0,0,0,.16), 0 2px 8px rgba(0,0,0,.10);
    overflow: hidden;
    z-index: 300000;
    transform: translateY(-130%);
    opacity: 0;
    transition: transform .38s cubic-bezier(.34,1.45,.64,1), opacity .25s ease;
    pointer-events: auto;
}

    .ad-toast.ad-toast--in {
        transform: translateY(0);
        opacity: 1;
    }

    .ad-toast.ad-toast--out {
        transform: translateY(-130%);
        opacity: 0;
        transition: transform .28s ease-in, opacity .22s ease-in;
    }

.ad-toast-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 10px 8px;
    border-bottom: 1px solid #f2f2f2;
}

.ad-toast-logo {
    width: 30px;
    height: 30px;
    border-radius: 7px;
    object-fit: contain;
    flex-shrink: 0;
    background: #f8f8f8;
}

.ad-toast-meta {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.ad-toast-partner {
    font-size: 12.5px;
    font-weight: 700;
    color: #1a1a1a;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ad-toast-sponsored {
    font-size: 10px;
    color: #999;
    text-transform: uppercase;
    letter-spacing: .5px;
}

.ad-toast-close {
    background: none;
    border: none;
    font-size: 20px;
    line-height: 1;
    color: #bbb;
    cursor: pointer;
    padding: 2px 5px;
    border-radius: 5px;
    flex-shrink: 0;
    transition: color .15s, background .15s;
}

    .ad-toast-close:hover {
        color: #555;
        background: #f0f0f0;
    }

.ad-toast-image {
    width: 100%;
    max-height: 150px;
    object-fit: cover;
    display: block;
}

.ad-toast-body {
    padding: 10px 12px;
}

.ad-toast-title {
    font-size: 13px;
    font-weight: 700;
    color: #111;
    margin: 0 0 4px;
    line-height: 1.35;
}

.ad-toast-text {
    font-size: 12px;
    color: #555;
    margin: 0 0 9px;
    line-height: 1.45;
}

.ad-toast-link {
    display: inline-block;
    font-size: 12px;
    padding: 5px 16px;
    border-radius: 20px;
    text-decoration: none;
    background: var(--z-blue);
    color: #fff;
    font-weight: 600;
    transition: background .15s;
}

    .ad-toast-link:hover {
        background: var(--z-blue-dk);
        color: #fff;
        text-decoration: none;
    }

.ad-toast-progress-track {
    height: 3px;
    background: #f0f0f0;
    overflow: hidden;
}

.ad-toast-progress-bar {
    height: 100%;
    width: 100%;
    background: linear-gradient(90deg,var(--z-blue),var(--z-green));
    animation: ad-progress-shrink linear 1 forwards;
}

@keyframes ad-progress-shrink {
    from {
        width: 100%;
    }

    to {
        width: 0%;
    }
}

/* ── BottomSheet : variables globales (ne fonctionne pas dans CSS scopé Blazor) ── */
:root {
    --sheet-handle-h: 100px;
}

@media (max-width: 1024px) {
    :root {
        --sheet-handle-h: 18px;
    }
}

@media (orientation: landscape) and (max-height: 500px) {
    :root {
        --sheet-handle-h: 10px;
    }
}
