:root {
    --uber-black: #121212;
    --uber-white: #FFFFFF;
    --uber-gray: #F6F6F6;
    --uber-blue: #3461E3;
    --uber-green: #10b981;
    --uber-entrada: #8B5CF6; /* Purple for entrada */
    --uber-price: #64748B; /* Neutral slate for price */
    --uber-slate: #64748b;
    --uber-border: #E8ECEF;
    /* UNIFIED PREMIUM SHADOWS */
    --uber-shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.04);
    --uber-shadow-md: 0 10px 30px -5px rgba(0, 0, 0, 0.08);
    --uber-radius: 16px;
}

/* RESET & FULL SCREEN */
body,
html {
    margin: 0;
    padding: 0;
    height: 100%;
    width: 100%;
    font-family: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
    overflow: hidden;
    background: var(--uber-white);
    color: var(--uber-black);
    -webkit-font-smoothing: antialiased;
}

#app-container {
    position: relative;
    width: 100vw;
    height: 100vh;
    display: flex;
    flex-direction: column;
}

/* SEO HELPER: ELEMENTO VISIBLE SOLO PARA MOTORES DE BÚSQUEDA */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* 1. MAP FILLING THE ENTIRE BACKGROUND */
#map {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    /* Lowest layer */
}

/* 2. SEARCH FLOATING ON TOP */
.search-overlay {
    position: absolute;
    top: 15px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 450px;
    z-index: 1000;
    /* High layer */
    pointer-events: none;
    /* Let clicks pass to map if not on a box */
}

.search-card {
    background: white;
    border-radius: var(--uber-radius);
    padding: 25px 18px;
    /* Sincronizado con el margen interno para simetría total */
    box-shadow: var(--uber-shadow-md);
    display: flex;
    flex-direction: column;
    gap: 0;
    /* Desactivado para que el margen de 25px sea el único que dicte el espacio */
    pointer-events: auto;
    border: 1px solid var(--uber-border);
    transition: all 0.3s ease;
}

.search-card-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
    user-select: none;
}

.search-card-brand-icon {
    width: 28px;
    height: 28px;
    flex-shrink: 0;
    display: block;
    border-radius: 7px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
}

.search-card-brand-text {
    font-size: 18px;
    font-weight: 700;
    color: var(--uber-black);
    letter-spacing: -0.03em;
}

.search-box {
    position: relative;
    background: #F9FAFB;
    border-radius: 12px;
    padding: 10px 14px;
    display: flex;
    align-items: center;
    border: 1px solid transparent;
    transition: all 0.2s ease;
}

.search-box:focus-within {
    background: white;
    border-color: var(--uber-blue);
    box-shadow: 0 0 0 3px rgba(52, 97, 227, 0.1);
}

.aurora-tooltip {
    background: rgba(18, 18, 18, 0.85);
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
    font-weight: 600;
    font-size: 11px;
    padding: 4px 10px;
    border-radius: 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.aurora-tooltip::before {
    border-top-color: rgba(18, 18, 18, 0.85) !important;
}

/* --- ANIMACIONES DE RUTA PREMIUM: PHOTON PULSE SWEEP --- */
@keyframes route-flow {
    from { stroke-dashoffset: 2300; } /* Suma de dash(300) + gap(2000) */
    to { stroke-dashoffset: 0; }
}

.route-line-main {
    stroke-dasharray: 300, 2000; /* Pulso de 300px con gap masivo */
    animation: route-flow 4s cubic-bezier(0.4, 0, 0.2, 1) infinite;
    stroke-linecap: round;
    filter: drop-shadow(0 0 3px var(--uber-blue)); /* Glow azulado para contraste */
    stroke-width: 4px !important;
    opacity: 1;
}

@keyframes marker-pulse {
    0% { transform: scale(1); opacity: 0.8; box-shadow: 0 0 0 0 rgba(39, 110, 241, 0.4); }
    70% { transform: scale(1.15); opacity: 1; box-shadow: 0 0 0 18px rgba(39, 110, 241, 0); }
    100% { transform: scale(1); opacity: 0.8; box-shadow: 0 0 0 0 rgba(39, 110, 241, 0); }
}

.premium-arrival-pulse {
    animation: marker-pulse 2s infinite ease-out;
}

.suggestions-container {
    position: absolute;
    top: calc(100% + 5px);
    /* Justo debajo de cada wrapper */
    left: 0;
    right: 0;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    z-index: 10000;
    max-height: 250px;
    overflow-y: auto;
    border: 1px solid #eee;
    display: none;
    animation: slideDownFade 0.2s ease-out;
}

@keyframes slideDownFade {
    0% {
        transform: translateY(-10px);
        opacity: 0;
    }

    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

.suggestion-item {
    padding: 12px 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 12px;
    border-bottom: 1px solid #f8f9fa;
    transition: all 0.2s;
}

.suggestion-item:last-child {
    border-bottom: none;
}

.suggestion-item:hover {
    background: #f1f3f4;
}

.ride-card {
    background: var(--uber-white);
    margin-bottom: 16px;
    border-radius: var(--uber-radius);
    padding: 0 18px 0 18px;
    /* AÑADIDO PADDING LATERAL DE 18PX */
    border: 1px solid var(--uber-border);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    box-shadow: var(--uber-shadow-sm);
}

.ride-card:hover {
    /* Eliminamos el borde negro/slate ruidoso, usamos lift y sombra */
    transform: translateY(-3px);
    box-shadow: var(--uber-shadow-md);
}

.ride-card.expanded {
    /* Eliminamos el borde azul redundante, usamos solo sombra para profundidad */
    box-shadow: var(--uber-shadow-md);
    z-index: 10;
    transform: translateY(-2px); /* Un pequeño lift adicional */
}

/* DISEÑO DE HORA PROMINENTE */
.price-time {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: center;
    min-width: 90px;
}

.time-highlight {
    font-size: 16px;
    font-weight: 800;
    color: var(--uber-blue);
    line-height: 1;
    margin-bottom: 4px;
    background: rgba(39, 110, 241, 0.05);
    padding: 6px 10px;
    border-radius: 8px;
    border: 1px solid rgba(39, 110, 241, 0.1);
}

.message-content {
    background: #F8F9FA;
    margin: 0 0 16px 0;
    padding: 16px;
    border-radius: 14px;
    font-size: 14px;
    color: #333;
    line-height: 1.5;
    display: none;
    animation: slideDown 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.ride-card.expanded .message-content {
    display: block;
}

/* TIMELINE DE ACTUALIZACIONES MINIMALISTA */
.history-container {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px dashed #DDD;
}

.history-summary {
    font-size: 12px;
    font-weight: 600;
    color: var(--uber-blue);
    cursor: pointer;
    list-style: none;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    opacity: 0.8;
    transition: opacity 0.2s;
}

.history-summary:hover {
    opacity: 1;
}

.history-item {
    margin-top: 10px;
    padding: 0 0 0 12px;
    border-left: 2px solid #EEE;
    font-size: 13px;
    color: #666;
}

.history-timestamp {
    font-size: 11px;
    color: var(--uber-slate);
    font-weight: 600;
    margin-bottom: 2px;
    display: block;
}

.action-area {
    display: block;
    /* SIEMPRE VISIBLE PARA ACCIÓN RÁPIDA */
    padding: 0 18px 20px 18px;
    animation: fadeIn 0.4s ease;
}

.ride-card.expanded .action-area {
    padding-bottom: 12px;
    /* Ajuste al expandirse */
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-15px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes dropdownIn {
    from {
        opacity: 0;
        transform: translateY(-10px) scale(0.95);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes cardIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* CUSTOM SELECT STYLES */
.custom-select {
    position: relative;
    user-select: none;
    min-width: 140px;
    flex: 1;
}

.select-trigger {
    background: #f8f9fa;
    padding: 8px 14px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: 1px solid transparent;
    transition: all 0.2s ease;
}

.select-trigger:hover {
    background: #edf0f2;
    border-color: #dee2e6;
}

.select-trigger::after {
    content: "";
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 5px solid #666;
    margin-left: 10px;
    transition: transform 0.3s ease;
}

.custom-select.active .select-trigger::after {
    transform: rotate(180deg);
}

.select-options {
    position: absolute;
    top: calc(100% + 5px);
    left: 0;
    right: 0;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    z-index: 2000;
    display: none;
    padding: 8px;
    list-style: none;
    margin: 0;
    max-height: 280px;
    overflow-y: auto;
    animation: dropdownIn 0.25s cubic-bezier(0.1, 0.9, 0.2, 1) forwards;
}

.custom-select.active .select-options {
    display: block;
}

.option-item {
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 13px;
    cursor: pointer;
    transition: background 0.2s;
}

.option-item:hover {
    background: #f0f4f8;
    color: var(--uber-blue);
}

.option-item.selected {
    background: #eef4ff;
    color: var(--uber-blue);
    font-weight: bold;
}

.ride-card {
    animation: cardIn 0.4s cubic-bezier(0.4, 0, 0.2, 1) both;
}

.search-input-wrapper {
    position: relative;
    background: #f6f7f8;
    border-radius: 12px;
    padding: 0 12px;
    display: grid;
    grid-template-columns: 24px 1fr auto;
    align-items: center;
    height: 48px;
    margin-bottom: 12px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid transparent;
    box-sizing: border-box;
    overflow: hidden !important;
    /* CRÍTICO: Contener el Shimmer */
}

.search-input-wrapper:focus-within {
    background: white;
    border-color: #276ef1;
    box-shadow: 0 6px 15px rgba(39, 110, 241, 0.1);
}

.search-input {
    width: 100%;
    border: none !important;
    background: transparent !important;
    outline: none !important;
    font-size: 15px;
    font-weight: 500;
    color: #000 !important;
    padding: 0 4px;
    height: 100%;
    /* Ahora llena el contenedor y se centra vía grid */
    line-height: normal;
    /* Evita desplazamientos forzados */
    caret-color: #276ef1;
}

.search-box-icon {
    font-size: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: inherit;
    height: 48px;
    /* Altura fija */
}

.gps-button {
    background: none;
    border: none;
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--uber-blue);
    opacity: 0.8;
    transition: all 0.2s ease;
    border-radius: 50%;
    flex-shrink: 0;
    margin: auto 0;
    /* Centrado vertical absoluto dentro del grid */
}

.auth-input {
    width: 100%;
    padding: 12px;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    margin-bottom: 12px;
    box-sizing: border-box;
    font-size: 16px;
    transition: all 0.2s ease;
    outline: none;
}

.auth-input:focus {
    border-color: var(--uber-blue);
    box-shadow: 0 0 0 3px rgba(39, 110, 241, 0.1);
}

.auth-btn {
    width: 100%;
    padding: 14px;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 700;
    font-size: 14px;
    transition: transform 0.1s active;
}

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

.search-row {
    display: flex;
    gap: 8px;
    align-items: center;
}

.search-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin-right: 10px;
}

.dot-origin {
    background: var(--uber-blue);
}

.dot-dest {
    background: black;
}

.gps-button:hover {
    color: #276ef1;
    background: rgba(39, 110, 241, 0.08);
}

/* PREMIUM SHIMMER EFFECT (LAYOUT-SAFE OVERLAY) */
.shimmer-search {
    position: relative;
    overflow: hidden !important;
    background: #f0f1f2 !important;
}

.shimmer-search::after {
    content: "";
    position: absolute;
    top: 0;
    left: -150%;
    width: 150%;
    height: 100%;
    background: linear-gradient(90deg,
            transparent 0%,
            rgba(255, 255, 255, 0.45) 50%,
            transparent 100%);
    animation: shimmerSwipe 1.5s infinite;
    z-index: 1;
    pointer-events: none;
}

@keyframes shimmerSwipe {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(200%);
    }
}

/* Bloquear movimiento: Asegurar que hijos estén sobre el shimmer */
.search-input-wrapper > * {
    position: relative;
    z-index: 2;
}

.gps-pulse {
    animation: gpsPulse 1.5s ease-out infinite;
}

@keyframes gpsPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(39, 110, 241, 0.4);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(39, 110, 241, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(39, 110, 241, 0);
    }
}

/* FADE-IN DEL PULSO: Evita el flash en [0,0] */
@keyframes pulseInitialFade {
    0% {
        opacity: 0;
    }

    80% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}

/* ANIMACIÓN: ONDA RADIAL EN EL MAPA (ENTRY) */
@keyframes radialRipple {
    0% {
        transform: scale(0);
        opacity: 0.8;
        border-width: 8px;
    }

    100% {
        transform: scale(2.5);
        opacity: 0;
        border-width: 1px;
    }
}

.ripple-marker {
    width: 40px;
    height: 40px;
    border: 4px solid #276ef1;
    background: rgba(39, 110, 241, 0.2);
    border-radius: 50%;
    animation: radialRipple 2s ease-out infinite, pulseInitialFade 1s forwards;
    opacity: 0;
    /* Empieza invisible */
}

/* PHANTOM CLOAK: Ocultar marcadores que aparezcan en la esquina [0,0] por error de proyección */
.leaflet-marker-pane > [style*="left: 0px; top: 0px;"],
.leaflet-marker-pane > [style*="transform: translate3d(0px, 0px, 0px)"],
.ripple-marker[style*="left: 0px; top: 0px;"] {
    display: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
}

/* PREMIUM SCALABLE SELECTORS */
.time-filter-container {
    display: flex;
    gap: 10px;
    margin-top: 0;
    width: 100%;
}

.time-selector {
    flex: 1;
    background: #F9FAFB;
    border-radius: 12px;
    padding: 12px 34px 12px 14px;
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    border: 1px solid transparent;
    color: var(--uber-black);
    appearance: none;
    -webkit-appearance: none;
    cursor: pointer;
    outline: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23121212' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 14px;
    transition: all 0.2s ease;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.time-selector:hover {
    background-color: #F3F4F6;
}

.time-selector:focus {
    background-color: white;
    border-color: var(--uber-blue);
    box-shadow: 0 0 0 3px rgba(52, 97, 227, 0.1);
}

/* Ride Card UI Cleanup */
.ride-title {
    font-weight: 700;
    font-size: 16px;
    margin-bottom: 2px;
    color: #111;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    line-clamp: 2;
    /* Compatibility */
    overflow: hidden;
    line-height: 1.2;
}

/* 3. BOTTOM SHEET FOR LIST */
#bottom-sheet {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 320px;
    /* Default height */
    background: white;
    z-index: 1000;
    box-shadow: 0 -5px 25px rgba(0, 0, 0, 0.1);
    border-radius: 20px 20px 0 0;
    display: flex;
    flex-direction: column;
    pointer-events: auto;
    transition: height 0.4s cubic-bezier(0.19, 1, 0.22, 1);
    will-change: height;
    /* SAFARI FIX: Safe area padding and box-sizing */
    padding-bottom: env(safe-area-inset-bottom, 25px);
    box-sizing: border-box;
}

#bottom-sheet.is-dragging {
    transition: none !important;
}

.sheet-header {
    padding: 18px 20px 12px 20px;
    /* MÁS AIRE SUPERIOR */
    text-align: left;
    border-bottom: 1px solid #F1F3F4;
    flex-shrink: 0;
    background: white;
    border-radius: 20px 20px 0 0;
}

.handle {
    width: 44px;
    height: 5px;
    background: #E8E8E8;
    border-radius: 3px;
    margin: -6px auto 14px;
    cursor: grab;
    transition: background 0.2s;
}

.handle:active {
    background: #D0D0D0;
    cursor: grabbing;
}

#ride-list-content {
    flex: 1;
    overflow-y: auto;
    padding: 15px 18px 30px 18px;
    /* MÁS ESPACIO SUPERIOR E INFERIOR */
    -webkit-overflow-scrolling: touch;
}

.ride-card:hover {
    background: #FAFAFA;
}

.ride-main-info {
    display: flex;
    align-items: flex-start;
    width: 100%;
}

.ride-icon {
    width: 40px;
    height: 40px;
    background: var(--uber-gray);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    font-size: 18px;
}

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

.ride-title {
    font-size: 15px;
    font-weight: 600;
}

.ride-subtitle {
    font-size: 12px;
    color: #888;
}

.ride-right {
    text-align: right;
}

.ride-price {
    font-size: 15px;
    font-weight: bold;
    color: var(--uber-price);
}

.ride-time {
    font-size: 12px;
    font-weight: bold;
    color: var(--uber-blue);
}

.unprocessed-card {
    opacity: 0.6;
    background: #fafafa;
}

.unprocessed-card .ride-icon {
    background: #e0e0e0;
    filter: grayscale(100%);
}

.wa-link {
    display: block;
    background: var(--uber-green);
    color: white;
    text-align: center;
    padding: 10px;
    border-radius: 8px;
    text-decoration: none;
    margin-top: 12px;
    font-weight: bold;
    font-size: 14px;
}

@media (min-width: 768px) {
    #bottom-sheet {
        width: 380px;
        height: calc(100% - 40px);
        top: 20px;
        left: 20px;
        bottom: 20px;
        border-radius: 15px;
    }

    .search-overlay {
        left: 415px;
        transform: none;
        top: 20px;
    }
}

@media (max-width: 767px) {
    #bottom-sheet {
        position: relative;
        height: auto;
        bottom: auto;
        border-radius: 0;
        box-shadow: none;
        margin-top: 160px;
        transition: none;
    }
}

/* HEADER CAROUSEL ANIMATIONS */
.header-carousel-viewport {
    width: 100%;
    overflow: hidden;
    position: relative;
    padding-bottom: 2px;
    touch-action: pan-y;
}

.header-carousel-track {
    display: flex;
    width: 200%;
    /* 2 slides */
    transition: transform 0.8s cubic-bezier(0.65, 0, 0.35, 1);
}

.header-slide {
    width: 50%;
    /* Each slide is half of the 200% track */
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 4px 0;
    cursor: pointer;
}

.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-top: 4px;
}

.dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #e2e8f0;
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot.active {
    width: 16px;
    border-radius: 4px;
    background: var(--uber-blue);
}

/* PREMIUM SEGMENTED CONTROL */
.segmented-control {
    display: flex;
    background: #F3F4F6;
    padding: 4px;
    border-radius: 14px;
    position: relative;
    margin-bottom: 10px;
    user-select: none;
}

.segmented-option {
    flex: 1;
    text-align: center;
    padding: 10px 0;
    font-size: 13px;
    font-weight: 700;
    color: #6B7280;
    cursor: pointer;
    z-index: 2;
    transition: color 0.3s ease;
    position: relative;
}

.segmented-option.active {
    color: var(--uber-black);
}

.segmented-slider {
    position: absolute;
    top: 4px;
    left: 4px;
    /* Se asume que hay 3 opciones por defecto */
    width: calc(33.33% - 5.33px);
    height: calc(100% - 8px);
    background: white;
    border-radius: 11px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1;
}

.segmented-control[data-active="todos"] .segmented-slider {
    transform: translateX(0);
}

.segmented-control[data-active="entrada"] .segmented-slider {
    transform: translateX(100%);
}

.segmented-control[data-active="salida"] .segmented-slider {
    transform: translateX(200%);
}

.dev-avatar-circle {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #eef2ff;
    border: 1px solid #e0e7ff;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #4f46e5;
    flex-shrink: 0;
}

/* UNIFIED SEGMENTED BADGE STYLING */
.segmented-badge {
    display: inline-flex;
    border-radius: 6px;
    overflow: hidden;
    font-size: 11px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.2s ease;
    height: 22px;
}

.badge-side-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    /* ANCHO FIJO PARA SIMETRÍA INTERNA */
    height: 100%;
    color: white;
    flex-shrink: 0;
}

.badge-side-label {
    display: flex;
    align-items: center;
    justify-content: center;
    /* CENTRADO PARA SIMETRÍA INTERNA */
    width: 75px;
    /* ANCHO FIJO PARA ALINEAR CON EL OTRO BADGE */
    height: 100%;
    white-space: nowrap;
}

/* Color Variants: Green Muted (Members count) */
.sb-green-muted .badge-side-icon {
    background: #10b981;
}

.sb-green-muted .badge-side-label {
    background: rgba(16, 185, 129, 0.15);
    color: #059669;
}

/* Color Variants: Blue (LinkedIn) */
.sb-blue .badge-side-icon {
    background: var(--uber-blue);
}

.sb-blue .badge-side-label {
    background: var(--uber-blue);
    color: white;
}

/* Color Variants: Blue Muted (Viajes count) */
.sb-blue-muted .badge-side-icon {
    background: var(--uber-blue);
}

.sb-blue-muted .badge-side-label {
    background: rgba(52, 97, 227, 0.15);
    color: var(--uber-blue);
}

/* Color Variants: Orange (Support) */
.sb-orange .badge-side-icon {
    background: #f59e0b;
}

.sb-orange .badge-side-label {
    background: #f59e0b;
    color: white;
}

/* PREMIUM MARKER DESIGN */
.premium-marker {
    background: transparent;
    border: none;
}

.marker-container {
    position: relative;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.marker-dot {
    width: 10px;
    height: 10px;
    border: 2px solid white;
    border-radius: 50%;
    /* Por defecto círculo (Origen) */
    box-shadow: 0 0 8px rgba(0, 0, 0, 0.3);
    z-index: 2;
}

.premium-marker.dest .marker-dot {
    border-radius: 2px !important;
    /* Cuadrado negro con aro blanco (misma familia que el origen azul) */
}

.marker-pulse {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    animation: markerPulse 2s ease-out infinite, pulseInitialFade 1s forwards;
    opacity: 0;
    /* Empieza invisible para evitar el fantasma en [0,0] */
    z-index: 1;
}

@keyframes markerPulse {
    0% {
        transform: scale(0.5);
        opacity: 1;
    }

    100% {
        transform: scale(1.5);
        opacity: 0;
    }
}

/* PREMIUM TOOLTIP */
.premium-tooltip {
    background: white !important;
    border: 1px solid var(--uber-border) !important;
    border-radius: 8px !important;
    padding: 4px 10px !important;
    font-family: 'Outfit', sans-serif !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    color: var(--uber-black) !important;
    box-shadow: var(--uber-shadow-md) !important;
}

.premium-tooltip::before {
    display: none !important;
    /* Quitar flecha por defecto */
}
