/**
 * MBCDI Bottom Sheet
 * Styles du composant bottom sheet
 * @package MBCDI
 */

/* Bottom sheet base */
.mbcdi-bottomsheet {
    position: absolute !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    z-index: 9999 !important;
    background: #fff !important;
    border-radius: 16px 16px 0 0 !important;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.15) !important;
    max-height: 70vh !important;
    display: flex !important;
    flex-direction: column !important;
    padding-bottom: env(safe-area-inset-bottom) !important;
    overflow: hidden !important;
    min-height: 200px !important;
    visibility: visible !important;
    opacity: 1 !important;
    transform: translateY(calc(100% - 120px)) !important;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.mbcdi-bottomsheet.mbcdi-expanded {
    transform: translateY(0) !important;
}

/* Handle */
.mbcdi-bottomsheet-handle {
    padding: 12px !important;
    cursor: pointer !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    flex-shrink: 0 !important;
}

.mbcdi-bottomsheet-handle::before {
    content: '' !important;
    width: 36px !important;
    height: 4px !important;
    background: #C7C7CC !important;
    border-radius: 2px !important;
    transition: background 0.2s !important;
}

.mbcdi-bottomsheet-handle:hover::before {
    background: #8E8E93 !important;
}

.mbcdi-bottomsheet-body {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    padding: 0 !important;
}

/* Boutons */
.mbcdi-bs-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 20px;
    border: none;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 600;
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Roboto, sans-serif;
    cursor: pointer;
    transition: all 0.2s ease;
}

.mbcdi-bs-btn:active {
    transform: scale(0.98);
}

.mbcdi-bs-btn-primary {
    background: #007AFF;
    color: #fff;
}

.mbcdi-bs-btn-primary:hover {
    background: #0051D5;
}

.mbcdi-bs-btn-secondary {
    background: #F6F6F6;
    color: #1D1D1F;
}

.mbcdi-bs-btn-secondary:hover {
    background: #E5E5EA;
}

.mbcdi-bs-btn-danger {
    background: #FF3B30;
    color: #fff;
}

.mbcdi-bs-btn-danger:hover {
    background: #D32F2F;
}

.mbcdi-bs-btn-full {
    width: 100%;
}

.mbcdi-bs-btn-icon {
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.mbcdi-bs-btn-icon svg {
    width: 100%;
    height: 100%;
}

/* Icônes */
.mbcdi-bs-icon {
    width: 20px;
    height: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: #8E8E93;
}

.mbcdi-bs-icon svg {
    width: 100%;
    height: 100%;
}

/* Liste */
.mbcdi-bs-list {
    padding: 0 16px 16px;
}

/* Champ de recherche (style iOS) */
.mbcdi-bs-search-wrapper {
    padding: 16px 0 12px 0;
    position: sticky;
    top: 0;
    background: #fff;
    z-index: 10;
    /* Éviter que le champ ne soit caché par le clavier mobile */
    min-height: 64px;
}

.mbcdi-bs-search-input-container {
    position: relative;
    display: flex;
    align-items: center;
    background: #F6F6F6;
    border-radius: 12px;
    padding: 10px 14px;
    transition: background 0.2s ease;
}

.mbcdi-bs-search-input-container:focus-within {
    background: #EBEBEB;
}

.mbcdi-bs-search-icon {
    width: 20px;
    height: 20px;
    color: #8E8E93;
    margin-right: 8px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mbcdi-bs-search-icon svg {
    width: 100%;
    height: 100%;
}

.mbcdi-bs-search-input {
    flex: 1;
    border: none;
    background: transparent;
    font-size: 16px;
    color: #1D1D1F;
    outline: none;
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Roboto, sans-serif;
}

.mbcdi-bs-search-input::placeholder {
    color: #8E8E93;
}

.mbcdi-bs-search-clear {
    width: 20px;
    height: 20px;
    border: none;
    background: #C7C7CC;
    border-radius: 50%;
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    padding: 2px;
    margin-left: 8px;
    transition: background 0.2s ease;
}

.mbcdi-bs-search-clear svg {
    width: 12px;
    height: 12px;
}

.mbcdi-bs-search-clear:hover {
    background: #8E8E93;
}

.mbcdi-bs-search-clear:active {
    transform: scale(0.95);
}

/* Message "Aucun résultat" */
.mbcdi-bs-no-results {
    padding: 40px 20px;
    text-align: center;
}

.mbcdi-bs-no-results-icon {
    width: 48px;
    height: 48px;
    margin: 0 auto 16px;
    color: #C7C7CC;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mbcdi-bs-no-results-icon svg {
    width: 100%;
    height: 100%;
}

.mbcdi-bs-no-results p {
    font-size: 16px;
    color: #8E8E93;
    margin: 8px 0;
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Roboto, sans-serif;
}

.mbcdi-bs-no-results p:first-of-type {
    font-size: 18px;
    color: #1D1D1F;
    font-weight: 600;
}

.mbcdi-bs-suggestion {
    font-size: 14px !important;
}

.mbcdi-bs-btn-clear-search {
    margin-top: 16px;
    padding: 10px 20px;
    background: #F6F6F6;
    border: none;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    color: #007AFF;
    cursor: pointer;
    transition: background 0.2s ease;
}

.mbcdi-bs-btn-clear-search:hover {
    background: #E5E5EA;
}

.mbcdi-bs-btn-clear-search:active {
    transform: scale(0.98);
}

.mbcdi-bs-list-title {
    font-size: 20px;
    font-weight: 700;
    color: #1D1D1F;
    margin: 0 0 8px 0;
    padding-top: 8px;
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Roboto, sans-serif;
}

.mbcdi-bs-list-description {
    font-size: 14px;
    color: #8E8E93;
    margin: 0 0 16px 0;
    line-height: 1.4;
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, sans-serif;
}

.mbcdi-bs-list-items {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.mbcdi-bs-commerce-item {
    background: #F9F9F9;
    border-radius: 12px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.mbcdi-bs-commerce-info {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.mbcdi-bs-commerce-logo {
    width: 48px;
    height: 48px;
    border-radius: 8px;
    object-fit: cover;
    flex-shrink: 0;
}

.mbcdi-bs-commerce-logo-placeholder {
    background: #E5E5EA;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #8E8E93;
}

.mbcdi-bs-commerce-logo-placeholder svg {
    width: 24px;
    height: 24px;
}

.mbcdi-bs-commerce-text {
    flex: 1;
    min-width: 0;
}

.mbcdi-bs-commerce-name {
    font-size: 17px;
    font-weight: 600;
    color: #1D1D1F;
    margin: 0 0 4px 0;
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Roboto, sans-serif;
}

.mbcdi-bs-commerce-address {
    font-size: 14px;
    font-weight: 400;
    color: #8E8E93;
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Roboto, sans-serif;
}

.mbcdi-bs-commerce-actions {
    display: flex;
    gap: 8px;
}

.mbcdi-bs-commerce-actions .mbcdi-bs-btn {
    flex: 1;
}

/* Détail */
.mbcdi-bs-detail {
    padding: 0px 16px 16px 16px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.mbcdi-bs-detail-logo-wrapper {
    display: flex;
    justify-content: center;
    margin-bottom: 8px;
}

.mbcdi-bs-detail-logo {
    width: 80px;
    height: 80px;
    border-radius: 16px;
    object-fit: cover;
}

.mbcdi-bs-detail-logo-placeholder {
    background: #E5E5EA;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #8E8E93;
}

.mbcdi-bs-detail-logo-placeholder svg {
    width: 48px;
    height: 48px;
}

.mbcdi-bs-detail-name {
    font-size: 24px;
    font-weight: 700;
    color: #1D1D1F;
    text-align: center;
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Roboto, sans-serif;
}

.mbcdi-bs-detail-address {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 15px;
    color: #8E8E93;
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Roboto, sans-serif;
}

.mbcdi-bs-detail-infos {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 8px;
}

.mbcdi-bs-detail-info-row {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 15px;
    color: #1D1D1F;
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Roboto, sans-serif;
}

.mbcdi-bs-link {
    color: #007AFF;
    text-decoration: none;
}

.mbcdi-bs-link:hover {
    text-decoration: underline;
}

.mbcdi-bs-detail-description {
    margin-top: 8px;
}

.mbcdi-bs-detail-description p {
    font-size: 15px;
    line-height: 1.5;
    color: #3C3C43;
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Roboto, sans-serif;
}

.mbcdi-bs-detail-actions {
    margin-top: 8px;
    display: flex;
    gap: 8px;
}

.mbcdi-bs-detail-actions .mbcdi-bs-btn {
    flex: 1;
}

/* Trajet mini */
.mbcdi-bs-route-mini {
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.mbcdi-bs-route-status {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.mbcdi-bs-route-label {
    font-size: 13px;
    font-weight: 500;
    color: #8E8E93;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Roboto, sans-serif;
}

.mbcdi-bs-route-animation {
    height: 4px;
    background: #E5E5EA;
    border-radius: 2px;
    overflow: hidden;
    position: relative;
}

.mbcdi-bs-route-line {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 30%;
    background: linear-gradient(90deg, #007AFF 0%, #00C7FF 100%);
    border-radius: 2px;
    animation: mbcdi-route-progress 1.5s ease-in-out infinite;
}

@keyframes mbcdi-route-progress {
    0% {
        left: -30%;
    }
    100% {
        left: 100%;
    }
}

.mbcdi-bs-route-mini-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.mbcdi-bs-route-mini-name {
    font-size: 20px;
    font-weight: 600;
    color: #1D1D1F;
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Roboto, sans-serif;
}

.mbcdi-bs-route-mini-address {
    font-size: 14px;
    color: #8E8E93;
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Roboto, sans-serif;
}

.mbcdi-bs-route-mini-actions {
    display: flex;
    gap: 8px;
}

.mbcdi-bs-route-mini-actions .mbcdi-bs-btn {
    flex: 1;
}

/* Trajet détail */
.mbcdi-bs-route-detail {
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.mbcdi-bs-route-detail .mbcdi-bs-route-status {
    margin: 8px 0;
}

.mbcdi-bs-route-detail-actions {
    margin-top: 8px;
    display: flex;
    gap: 8px;
}

.mbcdi-bs-route-detail-actions .mbcdi-bs-btn {
    flex: 1;
}

/* Responsive */
@media (max-width: 768px) {
    .mbcdi-bs-btn {
        padding: 10px 16px;
        font-size: 14px;
    }
    
    .mbcdi-bs-detail-name,
    .mbcdi-bs-route-mini-name {
        font-size: 20px;
    }
    
    .mbcdi-bottomsheet {
        max-height: 80vh !important;
    }
}

/* ========================================
   TITRE ET ANIMATION TRAJET EN COURS v5.5.8
   ======================================== */

/* Titre "Trajet en cours" au même niveau que "Commerces à proximité" */
.mbcdi-bs-route-title {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 16px 12px 16px;
    margin: 0;
    font-size: 22px;
    font-weight: 700;
    color: #000;
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Roboto, sans-serif;
}

/* Conteneur icône animée */
.mbcdi-bs-route-icon-animated {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
}

/* Icône de navigation avec animation pulse + rotation */
.mbcdi-bs-navigation-pulse {
    width: 24px;
    height: 24px;
    color: #007AFF;
    animation: mbcdi-navigation-pulse 2s ease-in-out infinite;
}

/* Animation pulse + rotation pour l'icône de navigation */
@keyframes mbcdi-navigation-pulse {
    0% {
        transform: scale(1) rotate(0deg);
        opacity: 1;
    }
    25% {
        transform: scale(1.1) rotate(90deg);
        opacity: 0.8;
    }
    50% {
        transform: scale(1) rotate(180deg);
        opacity: 1;
    }
    75% {
        transform: scale(1.1) rotate(270deg);
        opacity: 0.8;
    }
    100% {
        transform: scale(1) rotate(360deg);
        opacity: 1;
    }
}

/* Sur mobile, réduire légèrement la taille */
@media (max-width: 768px) {
    .mbcdi-bs-route-title {
        font-size: 20px;
        padding: 14px 14px 10px 14px;
    }
    
    .mbcdi-bs-route-icon-animated {
        width: 28px;
        height: 28px;
    }
    
    .mbcdi-bs-navigation-pulse {
        width: 22px;
        height: 22px;
    }
}

/* ========================================
   ANIMATION TRANSITION TITRE v5.5.9
   ======================================== */

/* Transition fluide lors du changement de titre (liste <-> trajet) */
.mbcdi-bs-list-title,
.mbcdi-bs-route-title {
    animation: mbcdi-title-fade-in 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Animation apparition du titre avec fondu + slide */
@keyframes mbcdi-title-fade-in {
    0% {
        opacity: 0;
        transform: translateY(-8px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Animation disparition (pour transition fluide) */
.mbcdi-bs-title-fade-out {
    animation: mbcdi-title-fade-out 0.3s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes mbcdi-title-fade-out {
    0% {
        opacity: 1;
        transform: translateY(0);
    }
    100% {
        opacity: 0;
        transform: translateY(8px);
    }
}

/* ========================================
   ÉTAT 2 : DÉTAIL COMMERCE V2 - v5.5.9
   ======================================== */

/* Bouton Retour en haut à gauche */
.mbcdi-bs-btn-back {
    position: absolute;
    top: 16px;
    left: 16px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #F6F6F6;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.2s ease;
    z-index: 1000;
}

.mbcdi-bs-btn-back:hover {
    background: #E5E5EA;
    transform: scale(1.05);
}

.mbcdi-bs-btn-back:active {
    transform: scale(0.95);
}

.mbcdi-bs-btn-back .mbcdi-bs-btn-icon {
    width: 20px;
    height: 20px;
    color: #1D1D1F;
}

/* Logo centré au-dessus du titre */
.mbcdi-bs-detail-logo-wrapper-centered {
    display: flex;
    justify-content: center;
    padding: 56px 16px 16px 16px;
}

.mbcdi-bs-detail-logo-centered {
    width: 50px;
    height: 50px;
    border-radius: 16px;
    object-fit: cover;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.mbcdi-bs-detail-logo-centered.mbcdi-bs-detail-logo-placeholder {
    background: #F2F2F7;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #8E8E93;
}

.mbcdi-bs-detail-logo-centered.mbcdi-bs-detail-logo-placeholder svg {
    width: 48px;
    height: 48px;
}

/* Titre centré */
.mbcdi-bs-detail-title-centered {
    text-align: center;
    font-size: 24px;
    font-weight: 700;
    color: #000;
    margin: 0 0 8px 0;
    padding: 0 16px;
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Roboto, sans-serif;
}

/* Adresse centrée en gris */
.mbcdi-bs-detail-address-centered {
    text-align: center;
    font-size: 15px;
    color: #8E8E93;
    margin: 0 0 16px 0;
    padding: 0 16px;
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Roboto, sans-serif;
}

/* Boutons Appeler + Site web côte à côte */
.mbcdi-bs-detail-contact-buttons {
    display: flex;
    gap: 8px;
    padding: 0 16px 16px 16px;
}

.mbcdi-bs-detail-contact-buttons .mbcdi-bs-btn {
    flex: 1;
    justify-content: center;
}

/* Labels de section (DESCRIPTION, HORAIRES) */
.mbcdi-bs-section {
    padding: 16px;
    border-top: 1px solid #E5E5EA;
}

.mbcdi-bs-section-label {
    font-size: 11px;
    font-weight: 700;
    color: #8E8E93;
    letter-spacing: 0.5px;
    margin: 0 0 4px 0;
    text-transform: uppercase;
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Roboto, sans-serif;
}

.mbcdi-bs-route-destination {
    font-size: 17px;
    font-weight: 600;
    color: #1D1D1F;
    margin: 0 0 12px 0;
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Roboto, sans-serif;
}

.mbcdi-bs-section-text {
    font-size: 15px;
    line-height: 1.5;
    color: #000;
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Roboto, sans-serif;
}

/* Liste des horaires */
.mbcdi-bs-hours-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.mbcdi-bs-hours-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 15px;
    line-height: 1.4;
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Roboto, sans-serif;
}

.mbcdi-bs-hours-day {
    color: #000;
    font-weight: 500;
}

.mbcdi-bs-hours-time {
    color: #8E8E93;
    text-align: right;
}

.mbcdi-bs-hours-text {
    color: #000;
}

/* Actions avec un seul bouton (pleine largeur) */
.mbcdi-bs-detail-actions-single {
    padding: 16px;
    border-top: 1px solid #E5E5EA;
}

.mbcdi-bs-detail-actions-single .mbcdi-bs-btn {
    width: 100%;
    justify-content: center;
    font-size: 17px;
    font-weight: 600;
    padding: 14px 20px;
}

.mbcdi-bs-btn-goto {
    /* Bouton "Y aller" - déjà stylé avec mbcdi-bs-btn-primary */
}

/* ========================================
   ÉTAT 4 : TRAJET DÉTAIL V2 - v5.5.9
   ======================================== */

/* Logo centré en haut */
.mbcdi-bs-route-detail-logo-wrapper {
    display: flex;
    justify-content: center;
    padding: 16px;
}

.mbcdi-bs-route-detail-logo {
    width: 80px;
    height: 80px;
    border-radius: 16px;
    object-fit: cover;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.mbcdi-bs-route-detail-logo-placeholder {
    width: 80px;
    height: 80px;
    border-radius: 16px;
    background: #F2F2F7;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
}

/* Nom commerce (trajet) */
.mbcdi-bs-route-detail-name {
    text-align: center;
    font-size: 22px;
    font-weight: 700;
    color: #000;
    margin: 0 0 8px 0;
    padding: 0 16px;
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Roboto, sans-serif;
}

/* Adresse (trajet) */
.mbcdi-bs-route-detail-address {
    text-align: center;
    font-size: 14px;
    color: #8E8E93;
    margin: 0 0 16px 0;
    padding: 0 16px;
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Roboto, sans-serif;
}

/* Section "TRAJET EN COURS" */
.mbcdi-bs-route-status-section {
    background: #F2F2F7;
    border-top: none;
}

/* Section "TRAJET EN COURS" pour État 3 (mini) */
.mbcdi-bs-route-status-section-mini {
    border-top: none;
    margin: 0;
    padding: 12px 16px;
}

/* Animation Lottie - ligne qui bouge */
.mbcdi-bs-route-animation {
    position: relative;
    height: 4px;
    background: #E5E5EA;
    border-radius: 2px;
    overflow: hidden;
    margin-top: 8px;
}

.mbcdi-bs-route-line {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 30%;
    background: linear-gradient(90deg, #007AFF 0%, #00C7FF 100%);
    border-radius: 2px;
    animation: mbcdi-route-progress 1.5s ease-in-out infinite;
}

@keyframes mbcdi-route-progress {
    0% {
        left: -30%;
    }
    100% {
        left: 100%;
    }
}

/* Infos de contact (trajet) */
.mbcdi-bs-route-detail-infos {
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.mbcdi-bs-route-detail-info-row {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 15px;
    line-height: 1.4;
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Roboto, sans-serif;
}

.mbcdi-bs-route-detail-info-row .mbcdi-bs-icon {
    width: 20px;
    height: 20px;
    color: #8E8E93;
    flex-shrink: 0;
}

.mbcdi-bs-route-detail-info-row a.mbcdi-bs-link {
    color: #007AFF;
    text-decoration: none;
}

.mbcdi-bs-route-detail-info-row a.mbcdi-bs-link:hover {
    text-decoration: underline;
}

/* Bouton Arrêter pleine largeur */
.mbcdi-bs-btn-stop-full {
    /* Déjà stylé avec mbcdi-bs-btn-danger et mbcdi-bs-detail-actions-single */
}

/* ========================================
   RESPONSIVE v5.5.9
   ======================================== */

/* ========================================
   MODALE DE SÉLECTION DU POINT DE DÉPART
   ======================================== */

.mbcdi-startpoint-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10000;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    animation: mbcdi-modal-fade-in 0.3s ease;
}

@keyframes mbcdi-modal-fade-in {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes mbcdi-modal-fade-out {
    from {
        opacity: 1;
    }
    to {
        opacity: 0;
    }
}

.mbcdi-startpoint-modal__overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.mbcdi-startpoint-modal__content {
    position: relative;
    width: 100%;
    max-width: 500px;
    background: #fff;
    border-radius: 16px 16px 0 0;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.2);
    padding: 0;
    padding-bottom: env(safe-area-inset-bottom, 20px);
    animation: mbcdi-modal-slide-up 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    max-height: 80vh;
    overflow-y: auto;
}

@keyframes mbcdi-modal-slide-up {
    from {
        transform: translateY(100%);
    }
    to {
        transform: translateY(0);
    }
}

.mbcdi-startpoint-modal__header {
    position: sticky;
    top: 0;
    background: #fff;
    z-index: 10;
    padding: 20px 20px 16px;
    border-bottom: 0.5px solid rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.mbcdi-startpoint-modal__title {
    font-size: 20px;
    font-weight: 700;
    color: #1D1D1F;
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Roboto, sans-serif;
}

.mbcdi-startpoint-modal__close {
    width: 32px;
    height: 32px;
    border: none;
    background: #F2F2F7;
    border-radius: 50%;
    color: #1D1D1F;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    transition: background 0.2s ease;
}

.mbcdi-startpoint-modal__close svg {
    width: 16px;
    height: 16px;
}

.mbcdi-startpoint-modal__close:hover {
    background: #E5E5EA;
}

.mbcdi-startpoint-modal__close:active {
    transform: scale(0.95);
}

.mbcdi-startpoint-modal__subtitle {
    padding: 16px 20px;
    font-size: 15px;
    color: #8E8E93;
    margin: 0;
    line-height: 1.5;
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Roboto, sans-serif;
}

.mbcdi-startpoint-modal__subtitle strong {
    color: #1D1D1F;
    font-weight: 600;
}

.mbcdi-startpoint-modal__options {
    padding: 0 20px 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.mbcdi-startpoint-modal__option {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    background: #F6F6F6;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: left;
    width: 100%;
}

.mbcdi-startpoint-modal__option:hover {
    background: #EBEBEB;
    transform: scale(1.02);
}

.mbcdi-startpoint-modal__option:active {
    transform: scale(0.98);
}

.mbcdi-startpoint-modal__option-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #8E8E93;
    flex-shrink: 0;
}

.mbcdi-startpoint-modal__option-icon svg {
    width: 24px;
    height: 24px;
}

.mbcdi-startpoint-modal__option-icon--primary {
    background: #007AFF;
    color: #fff;
}

.mbcdi-startpoint-modal__option-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.mbcdi-startpoint-modal__option-label {
    font-size: 16px;
    font-weight: 600;
    color: #1D1D1F;
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Roboto, sans-serif;
}

.mbcdi-startpoint-modal__option-desc {
    font-size: 14px;
    color: #8E8E93;
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Roboto, sans-serif;
}

@media (max-width: 768px) {
    .mbcdi-bs-detail-title-centered {
        font-size: 22px;
    }

    .mbcdi-bs-route-detail-name {
        font-size: 20px;
    }

    .mbcdi-bs-route-detail-logo,
    .mbcdi-bs-route-detail-logo-placeholder {
        width: 70px;
        height: 70px;
    }

    .mbcdi-startpoint-modal__content {
        max-width: 100%;
        border-radius: 20px 20px 0 0;
    }
}
