/*
 * ============================================================
 * HONFLEUR INSIDER
 * REPÉRAGE VISITE — UI V2
 * ============================================================
 *
 * Le moteur n'est pas concerné par ce fichier.
 * ============================================================
 */

:root {
    --rdh-navy: #172750;
    --rdh-navy-soft: #263c6c;
    --rdh-blue: #5379a9;
    --rdh-bg: #f3f6fa;
    --rdh-card: #ffffff;
    --rdh-line: #dde4ed;
    --rdh-muted: #717b90;
    --rdh-soft: #f5f7fa;
    --rdh-shadow: 0 12px 30px rgba(20, 39, 80, .075);
}


/* ============================================================
 * PAGE
 * ============================================================ */

.rdh-v2 {
    width: min(1040px, calc(100% - 28px));
    margin: 0 auto;
    padding: 22px 0 64px;
    color: var(--rdh-navy);
}

.rdh-v2,
.rdh-v2 * {
    box-sizing: border-box;
}

.rdh-v2 button {
    font: inherit;
}


/* ============================================================
 * CARTES GENERALES
 * ============================================================ */

.rdh-v2-hero,
.rdh-v2-map-card,
.rdh-v2-panel,
.rdh-v2-route-card {
    background: var(--rdh-card);
    border: 1px solid var(--rdh-line);
    border-radius: 22px;
    box-shadow: var(--rdh-shadow);
}


/* ============================================================
 * INTRODUCTION
 * ============================================================ */

.rdh-v2-hero {
    max-width: 900px;
    margin: 0 auto 32px;
    padding: 30px 32px 30px;
    text-align: center;

    background:
        linear-gradient(
            180deg,
            #fff8f5 0%,
            #f7f4fb 46%,
            #eef6fc 100%
        );

    border: 1px solid #dde6f1;
    border-radius: 28px;

    box-shadow:
        0 14px 36px rgba(23, 39, 80, 0.08),
        0 1px 0 rgba(255, 255, 255, 0.85) inset;
}

.rdh-v2-heart {
    width: 86px;
    height: 86px;
    padding: 0;
    border: 0;
    border-radius: 50%;

    background:
        linear-gradient(
            180deg,
            #22325a 0%,
            #1c2943 100%
        );

    color: #fff;
    cursor: pointer;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    font-size: 0;

    box-shadow:
        0 12px 28px rgba(18, 38, 79, .16);
}

.rdh-v2-heart::before {
    content: "♡";
    font-size: 43px;
    line-height: 1;
    font-weight: 400;
}

.rdh-v2-heart:hover {
    transform: translateY(-1px);
}

.rdh-v2-heart:disabled {
    opacity: .5;
    cursor: wait;
    transform: none;
}

.rdh-v2-hero h1 {
    margin: 18px 0 8px;
    font-size: clamp(31px, 4vw, 44px);
    line-height: 1.04;
    letter-spacing: -.025em;
    color: var(--rdh-navy);
}

.rdh-v2-hero p {
    max-width: 720px;
    margin: 0 auto;
    font-size: clamp(17px, 2vw, 21px);
    line-height: 1.4;
    color: var(--rdh-muted);
}

.rdh-v2-info {
    max-width: 760px;
    margin: 24px auto 0;
    padding: 15px 18px;

    border-radius: 16px;

    background:
        linear-gradient(
            180deg,
            #f3f7fc 0%,
            #edf3fa 100%
        );

    border: 1px solid #dce5f0;

    color: #283650;
    text-align: center;
    font-size: 15px;
    line-height: 1.35;

    box-shadow:
        0 6px 18px rgba(23, 39, 80, 0.04);
}

.rdh-v2-sim {
    margin-top: 16px;
    padding: 8px 15px;

    border: 1px dashed #9baac0;
    border-radius: 999px;

    background: transparent;
    color: #68758b;

    font-size: 14px;
    cursor: pointer;
}


/* ============================================================
 * SECTIONS
 * ============================================================ */

.rdh-v2-section {
    margin-top: 28px;
}

.rdh-v2-section-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 18px;

    margin: 0 4px 13px;
}

.rdh-v2-section-head h2 {
    margin: 0;
    font-size: clamp(27px, 3vw, 34px);
    line-height: 1.05;
    letter-spacing: -.015em;
    color: var(--rdh-navy);
}

.rdh-v2-section-head p {
    max-width: 440px;
    margin: 0;

    color: var(--rdh-muted);
    font-size: 15px;
    line-height: 1.3;
    text-align: right;
}


/* ============================================================
 * CARTE
 * ============================================================ */

.rdh-v2-map-card {
    position: relative;
    overflow: hidden;
    border-radius: 20px;
}

#rdh-v2-map {
    width: 100%;
    height: 430px;
    background: #eef2f6;
}

.rdh-v2-map-placeholder {
    position: absolute;
    inset: 0;
    z-index: 500;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 25px;

    background: #f5f7fa;
    color: var(--rdh-muted);

    text-align: center;
    font-size: 16px;
}

.rdh-v2-count {
    position: absolute;
    z-index: 700;
    top: 18px;
    right: 18px;

    padding: 11px 17px;

    border: 1px solid rgba(221, 228, 237, .8);
    border-radius: 999px;

    background: rgba(255, 255, 255, .94);
    color: var(--rdh-navy);

    font-size: 16px;
    font-weight: 800;

    box-shadow:
        0 7px 20px rgba(20, 38, 83, .10);

    backdrop-filter: blur(5px);
}

.rdh-v2-status {
    min-height: 20px;
    margin: 10px 4px 0;

    color: var(--rdh-muted);

    font-size: 14px;
    line-height: 1.35;
}


/* ============================================================
 * PANNEAUX / LISTES
 * ============================================================ */

.rdh-v2-panel {
    margin-top: 20px;
    padding: 21px;
}

.rdh-v2-panel[hidden],
.rdh-v2-route-card[hidden] {
    display: none !important;
}

.rdh-v2-list {
    display: grid;
    gap: 10px;
}

.rdh-v2-place,
.rdh-v2-saved,
.rdh-v2-picker-row,
.rdh-v2-route-row {
    width: 100%;

    border: 1px solid var(--rdh-line);
    border-radius: 17px;

    background: #fff;
    color: var(--rdh-navy);
}

.rdh-v2-place {
    display: grid;
    grid-template-columns: 48px 1fr;
    gap: 13px;
    align-items: center;

    padding: 13px 15px;

    text-align: left;
    cursor: pointer;
}

.rdh-v2-number {
    width: 46px;
    height: 46px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 14px;

    background: var(--rdh-navy);
    color: #fff;

    font-size: 19px;
    font-weight: 900;
}

.rdh-v2-place strong,
.rdh-v2-saved strong,
.rdh-v2-picker-row strong,
.rdh-v2-route-row strong {
    display: block;

    font-size: 17px;
    line-height: 1.15;
}

.rdh-v2-meta {
    display: block;
    margin-top: 4px;

    color: var(--rdh-muted);

    font-size: 14px;
    line-height: 1.3;
}

.rdh-v2-saved {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 12px;
    align-items: center;

    padding: 13px 15px;
}


/* ============================================================
 * BOUTONS
 * ============================================================ */

.rdh-v2-icon-button {
    min-width: 38px;
    min-height: 38px;

    border: 1px solid var(--rdh-line);
    border-radius: 12px;

    background: #fff;
    color: var(--rdh-navy);

    cursor: pointer;
    font-weight: 800;
}

.rdh-v2-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;

    margin-top: 17px;
}

.rdh-v2-primary,
.rdh-v2-secondary {
    min-height: 45px;
    padding: 10px 18px;

    border-radius: 13px;

    font-size: 14px;
    font-weight: 800;

    cursor: pointer;
}

.rdh-v2-primary {
    border: 0;
    background: var(--rdh-navy);
    color: #fff;
}

.rdh-v2-primary:disabled {
    opacity: .4;
    cursor: default;
}

.rdh-v2-secondary {
    border: 1px solid var(--rdh-line);
    background: #fff;
    color: var(--rdh-navy);
}


/* ============================================================
 * SELECTEUR D'ITINERAIRE
 * ============================================================ */

.rdh-v2-picker-row {
    display: grid;
    grid-template-columns: 35px 1fr;
    gap: 12px;
    align-items: center;

    padding: 13px 15px;

    cursor: pointer;
    text-align: left;
}

.rdh-v2-picker-row::before {
    content: "";

    width: 25px;
    height: 25px;

    border: 2px solid #929db0;
    border-radius: 8px;

    background: #fff;
}

.rdh-v2-picker-row.is-selected::before {
    content: "✓";

    display: flex;
    align-items: center;
    justify-content: center;

    border-color: var(--rdh-navy);
    background: var(--rdh-navy);
    color: #fff;

    font-size: 15px;
    font-weight: 900;
}


/* ============================================================
 * RESULTAT ITINERAIRE
 * ============================================================ */

.rdh-v2-route-card {
    margin-top: 18px;
    padding: 22px;
}

.rdh-v2-summary-main {
    font-size: clamp(23px, 3vw, 31px);
    font-weight: 900;
    line-height: 1.1;
    color: var(--rdh-navy);
}

.rdh-v2-summary-sub {
    margin-top: 6px;

    color: var(--rdh-muted);

    font-size: 15px;
    line-height: 1.35;
}

.rdh-v2-route-list {
    display: grid;
    gap: 10px;

    margin-top: 18px;
}

.rdh-v2-route-row {
    display: grid;
    grid-template-columns: 46px 1fr auto;
    gap: 12px;
    align-items: center;

    padding: 13px 14px;
}

.rdh-v2-route-row.is-disabled {
    opacity: .48;
}

.rdh-v2-route-number {
    width: 42px;
    height: 42px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background: var(--rdh-navy);
    color: #fff;

    font-size: 17px;
    font-weight: 900;
}

.rdh-v2-route-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 5px 11px;

    margin-top: 5px;

    color: var(--rdh-muted);

    font-size: 13px;
}

.rdh-v2-hours[data-status="open"],
.rdh-v2-hours[data-status="open_until"],
.rdh-v2-hours[data-status="closed"] {
    font-weight: 800;
}


/* ============================================================
 * MARQUEURS LEAFLET
 * ============================================================ */

.rdh-v2-pin-user,
.rdh-v2-pin-candidate,
.rdh-v2-pin-saved,
.rdh-v2-pin-stop {
    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;
    border: 4px solid #fff;

    box-shadow:
        0 4px 13px rgba(15, 30, 65, .24);

    font-weight: 900;
}

.rdh-v2-pin-user {
    width: 26px;
    height: 26px;
    background: #548bd1;
}

.rdh-v2-pin-candidate {
    width: 34px;
    height: 34px;

    background: var(--rdh-blue);
    color: #fff;

    font-size: 14px;
}

.rdh-v2-pin-saved {
    width: 32px;
    height: 32px;

    background: #fff;
    color: var(--rdh-navy);

    font-size: 17px;
}

.rdh-v2-pin-stop {
    width: 38px;
    height: 38px;

    background: var(--rdh-navy);
    color: #fff;

    font-size: 16px;
}


/* ============================================================
 * MODE ITINERAIRE
 *
 * Une fois le parcours créé :
 * - on retire l'introduction
 * - on retire les panneaux de repérage
 * - la carte devient l'élément principal
 * - le résultat apparaît immédiatement dessous.
 * ============================================================ */

.rdh-v2.is-route-active {
    padding-top: 14px;
}

.rdh-v2.is-route-active > .rdh-v2-hero,
.rdh-v2.is-route-active
    > .rdh-v2-section:not(.rdh-v2-map-section),
.rdh-v2.is-route-active > .rdh-v2-panel {
    display: none !important;
}

.rdh-v2.is-route-active
    .rdh-v2-map-section {
    margin-top: 0;
}

.rdh-v2.is-route-active
    #rdh-v2-map {
    height: min(56vh, 520px);
    min-height: 390px;
}

.rdh-v2.is-route-active
    .rdh-v2-count {
    opacity: .88;
}

.rdh-v2.is-route-active
    .rdh-v2-route-card {
    margin-top: 14px;
}


/* ============================================================
 * MOBILE
 * ============================================================ */

@media (max-width: 700px) {

    .rdh-v2 {
        width: calc(100% - 16px);
        padding: 12px 0 42px;
    }

    .rdh-v2-hero {
        margin-bottom: 22px;
        padding: 22px 16px;
        border-radius: 18px;
    }

    .rdh-v2-heart {
        width: 76px;
        height: 76px;
    }

    .rdh-v2-heart::before {
        font-size: 37px;
    }

    .rdh-v2-hero h1 {
        margin-top: 15px;
        font-size: 31px;
    }

    .rdh-v2-info {
        margin-top: 17px;
        padding: 11px 13px;
        font-size: 14px;
    }

    .rdh-v2-section {
        margin-top: 22px;
    }

    .rdh-v2-section-head {
        align-items: flex-start;
        flex-direction: column;
        gap: 4px;

        margin-left: 2px;
        margin-right: 2px;
    }

    .rdh-v2-section-head h2 {
        font-size: 27px;
    }

    .rdh-v2-section-head p {
        text-align: left;
        font-size: 14px;
    }

    #rdh-v2-map {
        height: 355px;
    }

    .rdh-v2-map-card {
        border-radius: 17px;
    }

    .rdh-v2-count {
        top: 11px;
        right: 11px;

        padding: 9px 13px;

        font-size: 14px;
    }

    .rdh-v2-panel,
    .rdh-v2-route-card {
        padding: 14px;
        border-radius: 18px;
    }

    .rdh-v2-route-row {
        grid-template-columns: 40px 1fr auto;
        gap: 8px;

        padding: 11px 9px;
    }

    .rdh-v2-route-number {
        width: 37px;
        height: 37px;
    }

    .rdh-v2-place strong,
    .rdh-v2-saved strong,
    .rdh-v2-picker-row strong,
    .rdh-v2-route-row strong {
        font-size: 16px;
    }

    .rdh-v2.is-route-active
        #rdh-v2-map {
        height: 390px;
        min-height: 390px;
    }

    .rdh-v2-actions {
        width: 100%;
    }

    .rdh-v2-primary,
    .rdh-v2-secondary {
        flex: 1 1 auto;
    }
}


/* ============================================================
 * RDH_REPERAGE_UNIQUE_PICKER_V3
 * ============================================================ */

.rdh-v2-occurrence-note {
    margin-top: 5px;
    color: var(--rdh-blue);
    font-weight: 700;
}


/*
 * Une fois l'itinéraire créé, le message provenant
 * de la phase de repérage n'a plus de rôle.
 *
 * On masque uniquement le statut attaché à la carte.
 * Le statut de l'itinéraire reste visible dans sa carte.
 */
.rdh-v2.is-route-active
.rdh-v2-map-section
> .rdh-v2-status {
    display: none;
}


/* ============================================================
 * RDH_REPERAGE_DUAL_ACTION_V4
 * ============================================================ */

.rdh-v2-page-top-action {
    display: flex;
    justify-content: flex-start;
    margin: 0 0 14px;
}

.rdh-v2-page-top-action[hidden] {
    display: none !important;
}

.rdh-v2-visit-action {
    min-width: 245px;
}

.rdh-v2-page-top-action
.rdh-v2-visit-action {
    min-height: 42px;
    padding: 9px 17px;
    font-size: 14px;
}


/*
 * Le bouton du bas reste l'action naturelle
 * après lecture de toute la liste.
 */
#rdh-v2-end-visit {
    min-width: 245px;
}


@media (max-width: 700px) {

    .rdh-v2-page-top-action {
        margin-bottom: 11px;
    }

    .rdh-v2-page-top-action
    .rdh-v2-visit-action,
    #rdh-v2-end-visit {
        width: 100%;
        min-width: 0;
    }
}


/* ============================================================
 * RDH_REPERAGE_PAGE_TOP_ACTION_V5
 * ============================================================ */

.rdh-v2-page-top-action {
    width: 100%;
    display: flex;
    justify-content: center;
    margin: 0 0 14px;
}

.rdh-v2-page-top-action[hidden] {
    display: none !important;
}

.rdh-v2-page-top-action
.rdh-v2-visit-action {
    min-width: 290px;
}


/*
 * Quand l'itinéraire est lui-même affiché,
 * le raccourci supérieur disparaît.
 */
.rdh-v2.is-route-active
> .rdh-v2-page-top-action {
    display: none !important;
}


@media (max-width: 700px) {

    .rdh-v2-page-top-action {
        margin-bottom: 10px;
    }

    .rdh-v2-page-top-action
    .rdh-v2-visit-action {
        width: 100%;
        min-width: 0;
    }
}


/* ============================================================
 * RDH_REPERAGE_TOP_NAV_V6
 *
 * Navigation rapide en tête de page :
 *
 * [ Voir la liste ] [ Voir mon itinéraire ]
 * ============================================================ */

.rdh-v2-page-top-action {
    max-width: 620px;
    margin-left: auto;
    margin-right: auto;
    gap: 10px;
    align-items: stretch;
}

.rdh-v2-page-top-action
.rdh-v2-top-list-action,
.rdh-v2-page-top-action
.rdh-v2-visit-action {
    flex: 1 1 0;
    width: auto;
    min-width: 0;
    min-height: 45px;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 10px 17px;
    text-align: center;
}


/*
 * "Voir la liste" est une navigation secondaire.
 */
.rdh-v2-page-top-action
.rdh-v2-top-list-action {
    background: #fff;
}


/*
 * L'itinéraire reste l'action principale.
 */
.rdh-v2-page-top-action
.rdh-v2-visit-action {
    background: var(--rdh-navy);
    color: #fff;
}


@media (max-width: 700px) {

    .rdh-v2-page-top-action {
        display: flex;
        flex-direction: row;
        gap: 8px;
        max-width: none;
    }

    .rdh-v2-page-top-action
    .rdh-v2-top-list-action,
    .rdh-v2-page-top-action
    .rdh-v2-visit-action {
        flex: 1 1 50%;
        width: auto;
        min-width: 0;
        padding-left: 8px;
        padding-right: 8px;
        font-size: 13px;
    }
}


/* ============================================================
 * RDH_REPERAGE_PLACE_INFO_V7
 * ============================================================ */

.rdh-v2-place-extra {
    width: 100%;
    flex: 1 0 100%;
    grid-column: 1 / -1;

    display: flex;
    flex-direction: column;
    gap: 3px;

    margin-top: 7px;

    font-size: 13px;
    line-height: 1.35;
}

.rdh-v2-place-extra-activity {
    font-weight: 700;
    color: var(--rdh-blue);
}

.rdh-v2-place-extra-phone {
    font-weight: 600;
}

.rdh-v2-place-extra-phone a {
    color: inherit;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.rdh-v2-place-extra-hours {
    margin-top: 2px;
    font-weight: 700;
}

.rdh-v2-place-extra-hours[data-status="closed"],
.rdh-v2-place-extra-hours[data-status="ferme"],
.rdh-v2-place-extra-hours[data-status="closing_soon"],
.rdh-v2-place-extra-hours[data-status="closing-soon"] {
    font-weight: 800;
}

@media (max-width: 700px) {

    .rdh-v2-place-extra {
        font-size: 12.5px;
        gap: 2px;
        margin-top: 6px;
    }
}


/* ============================================================
 * RDH_REPERAGE_COMPACT_CARDS_V8
 *
 * Fiches Mes repérages :
 * - moins de hauteur
 * - activité / téléphone / horaires sur une ligne
 * - suppression compacte en haut à droite
 * ============================================================ */


/*
 * Bloc activité / téléphone / horaires.
 */
.rdh-v2-place-extra {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: wrap !important;
    align-items: center !important;

    width: auto !important;

    gap: 0 !important;

    margin-top: 5px !important;

    font-size: 12.5px !important;
    line-height: 1.35 !important;
}


/*
 * Toutes les métadonnées deviennent des éléments
 * de la même ligne quand la largeur le permet.
 */
.rdh-v2-place-extra > * {
    display: inline !important;
    width: auto !important;
    margin: 0 !important;
}


/*
 * Séparateurs discrets.
 */
.rdh-v2-place-extra > * + *::before {
    content: " · ";
    font-weight: 400;
    opacity: .55;
}


/*
 * Activité :
 * moins lourde et première lettre en capitale.
 */
.rdh-v2-place-extra-activity {
    font-size: 12.5px !important;
    font-weight: 700 !important;
    text-transform: capitalize;
}


/*
 * Téléphone.
 */
.rdh-v2-place-extra-phone {
    font-size: 12.5px !important;
    font-weight: 600 !important;
}

.rdh-v2-place-extra-phone a {
    text-decoration-thickness: 1px;
    text-underline-offset: 2px;
}


/*
 * Horaires.
 */
.rdh-v2-place-extra-hours {
    margin: 0 !important;
    font-size: 12.5px !important;
    font-weight: 600 !important;
}


/*
 * ============================================================
 * FICHE SAVED
 *
 * createPlaceInfoBlock() est inséré juste avant
 * le bouton de suppression existant.
 *
 * On peut donc reconnaître la fiche sans dépendre
 * de son ancien nom de classe.
 * ============================================================
 */

.rdh-v2
*:has(
    > .rdh-v2-place-extra + button
) {
    position: relative;
}


/*
 * On réserve simplement un petit espace à droite
 * pour la croix.
 */
.rdh-v2
*:has(
    > .rdh-v2-place-extra + button
) {
    padding-right: 52px !important;
}


/*
 * Ancien énorme bouton X :
 * devient une petite action en haut à droite.
 */
.rdh-v2
*:has(
    > .rdh-v2-place-extra + button
)
> .rdh-v2-place-extra
+ button {

    position: absolute !important;

    top: 12px !important;
    right: 12px !important;

    width: 30px !important;
    min-width: 30px !important;
    max-width: 30px !important;

    height: 30px !important;
    min-height: 30px !important;
    max-height: 30px !important;

    padding: 0 !important;
    margin: 0 !important;

    display: flex !important;
    align-items: center !important;
    justify-content: center !important;

    border-radius: 50% !important;

    font-size: 16px !important;
    line-height: 1 !important;

    box-shadow: none !important;
}


/*
 * Evite tout espace résiduel inutile sous
 * les métadonnées.
 */
.rdh-v2
*:has(
    > .rdh-v2-place-extra + button
)
> .rdh-v2-place-extra {
    margin-bottom: 0 !important;
}


/*
 * ============================================================
 * MOBILE
 * ============================================================
 */

@media (max-width: 700px) {

    .rdh-v2-place-extra {
        margin-top: 4px !important;

        font-size: 11.5px !important;
        line-height: 1.3 !important;
    }

    .rdh-v2-place-extra-activity,
    .rdh-v2-place-extra-phone,
    .rdh-v2-place-extra-hours {
        font-size: 11.5px !important;
    }

    .rdh-v2
    *:has(
        > .rdh-v2-place-extra + button
    ) {
        padding-right: 46px !important;
    }

    .rdh-v2
    *:has(
        > .rdh-v2-place-extra + button
    )
    > .rdh-v2-place-extra
    + button {

        top: 10px !important;
        right: 10px !important;

        width: 28px !important;
        min-width: 28px !important;
        max-width: 28px !important;

        height: 28px !important;
        min-height: 28px !important;
        max-height: 28px !important;

        font-size: 15px !important;
    }
}



/* ============================================================
 * RDH_REPERAGE_SAVED_ROUTE_CHECKBOX_V9
 *
 * Mes repérages :
 * - croix supprimée visuellement
 * - case à cocher élégante à droite
 * - le repérage reste conservé
 * ============================================================ */


/*
 * Les anciens boutons de suppression deviennent invisibles.
 */
.rdh-v2-legacy-remove-button {
    display: none !important;
}


/*
 * Les fiches saved gardent une réserve à droite
 * pour la case à cocher.
 */
.rdh-v2
*:has(> .rdh-v2-saved-route-toggle) {
    position: relative;
    padding-right: 54px !important;
}


/*
 * Case à cocher itinéraire.
 */
.rdh-v2-saved-route-toggle {
    position: absolute;
    top: 12px;
    right: 12px;

    width: 28px;
    min-width: 28px;
    max-width: 28px;

    height: 28px;
    min-height: 28px;
    max-height: 28px;

    padding: 0;
    margin: 0;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    border: 1.5px solid rgba(28, 42, 92, 0.28);
    border-radius: 7px;

    background: #fff;
    color: var(--rdh-navy);

    box-shadow: none;
    cursor: pointer;
}

.rdh-v2-saved-route-toggle:hover {
    border-color: rgba(28, 42, 92, 0.5);
}

.rdh-v2-saved-route-toggle:focus-visible {
    outline: 2px solid rgba(28, 42, 92, 0.25);
    outline-offset: 2px;
}

.rdh-v2-saved-route-toggle-mark {
    position: relative;
    width: 14px;
    height: 14px;
    display: block;
}


/*
 * Case cochée : petit ✓ élégant.
 */
.rdh-v2-saved-route-toggle[data-checked="1"] {
    background: var(--rdh-navy);
    border-color: var(--rdh-navy);
    color: #fff;
}

.rdh-v2-saved-route-toggle[data-checked="1"]
.rdh-v2-saved-route-toggle-mark::before {
    content: "✓";
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    line-height: 1;
    font-weight: 700;
}


/*
 * Case décochée : vide, discrète.
 */
.rdh-v2-saved-route-toggle[data-checked="0"] {
    background: #fff;
    border-color: rgba(28, 42, 92, 0.35);
    color: transparent;
}


/*
 * Un léger adoucissement du bloc compact.
 */
.rdh-v2-place-extra {
    margin-top: 6px !important;
}

.rdh-v2-place-extra-activity,
.rdh-v2-place-extra-phone,
.rdh-v2-place-extra-hours {
    line-height: 1.3;
}


/*
 * MOBILE
 */
@media (max-width: 700px) {

    .rdh-v2
    *:has(> .rdh-v2-saved-route-toggle) {
        padding-right: 48px !important;
    }

    .rdh-v2-saved-route-toggle {
        top: 10px;
        right: 10px;

        width: 26px;
        min-width: 26px;
        max-width: 26px;

        height: 26px;
        min-height: 26px;
        max-height: 26px;
    }

    .rdh-v2-saved-route-toggle[data-checked="1"]
    .rdh-v2-saved-route-toggle-mark::before {
        font-size: 12px;
    }
}



/* ============================================================
 * RDH_REPERAGE_LANGUAGE_CONTROL_V10
 *
 * Contrôle temporaire FR / EN.
 * ============================================================ */

.rdh-v2-language-control {
    width: 100%;

    display: flex;
    align-items: center;
    justify-content: flex-end;

    gap: 6px;

    margin: 0 0 8px;

    font-size: 12px;
    font-weight: 700;
    line-height: 1;
}

.rdh-v2-language-link {
    min-width: 30px;

    padding: 6px 8px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    border: 1px solid rgba(28, 42, 92, 0.16);
    border-radius: 8px;

    background: #fff;
    color: var(--rdh-navy);

    text-decoration: none;
}

.rdh-v2-language-link:hover {
    border-color: rgba(28, 42, 92, 0.35);
}

.rdh-v2-language-link.is-active {
    background: var(--rdh-navy);
    border-color: var(--rdh-navy);
    color: #fff;
}

.rdh-v2-language-separator {
    color: rgba(28, 42, 92, 0.35);
}


/*
 * Le sélecteur reste disponible pendant nos tests,
 * y compris lorsqu'un itinéraire est affiché.
 */
.rdh-v2.is-route-active
> .rdh-v2-language-control {
    display: flex !important;
}


@media (max-width: 700px) {

    .rdh-v2-language-control {
        margin-bottom: 7px;
    }

    .rdh-v2-language-link {
        min-width: 28px;
        padding: 6px 7px;
    }
}
