/* ═══════════════════════════════════════════════════════════════════
   ONDEMAND — Mobilités page styles
   ═══════════════════════════════════════════════════════════════════ */

/* ─── Hero Stats ─────────────────────────────────── */
.mob-hero {
    text-align: center;
    padding: 120px 40px 60px;
}

.mob-stats {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-top: 40px;
    flex-wrap: wrap;
}

.mob-stat {
    text-align: center;
}

.mob-stat-value {
    font-size: 2.8rem;
    font-weight: 800;
    color: var(--orange);
    font-variant-numeric: tabular-nums;
    line-height: 1;
}

.mob-stat-label {
    font-size: 0.85rem;
    color: var(--text-dim);
    margin-top: 6px;
}

/* ─── Map Section ────────────────────────────────── */
.mob-map-section {
    padding: 0 40px 60px;
    max-width: 1400px;
    margin: 0 auto;
}

.mob-map-container {
    display: flex;
    gap: 0;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.1);
    height: 600px;
}

/* ─── Sidebar filters ────────────────────────────── */
.mob-sidebar {
    width: 300px;
    min-width: 300px;
    background: rgba(20,20,25,0.95);
    padding: 20px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
    border-right: 1px solid rgba(255,255,255,0.08);
}

.mob-search {
    width: 100%;
    padding: 10px 14px;
    border-radius: 8px;
    border: 1px solid rgba(255,255,255,0.1);
    background: rgba(255,255,255,0.05);
    color: #fff;
    font-size: 0.9rem;
    outline: none;
    transition: border-color 0.2s;
}

.mob-search:focus {
    border-color: var(--orange);
}

.mob-filter-group h4 {
    font-size: 0.7rem;
    text-transform: uppercase;
    color: var(--text-dim);
    letter-spacing: 1px;
    margin-bottom: 10px;
}

.mob-filter-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.mob-chip {
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.78rem;
    font-weight: 500;
    border: 1px solid rgba(255,255,255,0.1);
    background: rgba(255,255,255,0.04);
    color: var(--text-dim);
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 5px;
}

.mob-chip:hover {
    border-color: rgba(255,255,255,0.25);
    color: #fff;
}

.mob-chip.active {
    background: rgba(231, 92, 11, 0.15);
    border-color: rgba(231, 92, 11, 0.4);
    color: var(--orange);
}

.mob-chip .chip-count {
    font-size: 0.7rem;
    opacity: 0.6;
}

.mob-toggle {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.85rem;
    color: var(--text-dim);
    cursor: pointer;
    padding: 6px 0;
}

.mob-toggle input[type="checkbox"] {
    accent-color: var(--orange);
    width: 16px;
    height: 16px;
}

.mob-result-count {
    font-size: 0.8rem;
    color: var(--text-dim);
    padding: 4px 0;
    border-top: 1px solid rgba(255,255,255,0.06);
    margin-top: auto;
}

.mob-result-count strong {
    color: var(--orange);
}

/* ─── Reset filters button ──────────────────────── */
.mob-reset-btn {
    width: 100%;
    padding: 8px 14px;
    border-radius: 8px;
    border: 1px solid rgba(231,92,11,0.4);
    background: rgba(231,92,11,0.08);
    color: var(--orange);
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s;
}

.mob-reset-btn:hover {
    background: rgba(231,92,11,0.15);
    border-color: rgba(231,92,11,0.6);
}

/* ─── Network list in sidebar ───────────────────── */
.mob-network-list {
    flex: 1;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-height: 0;
}

.mob-network-item {
    padding: 8px 10px;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.2s;
    font-size: 0.82rem;
}

.mob-network-item:hover {
    background: rgba(255,255,255,0.05);
}

.mob-network-item.active {
    background: rgba(231,92,11,0.12);
}

.mob-network-name {
    font-weight: 600;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.mob-network-meta {
    display: flex;
    gap: 6px;
    margin-top: 3px;
    flex-wrap: wrap;
}

.mob-mode-badge {
    padding: 1px 6px;
    border-radius: 3px;
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: uppercase;
}

.mob-mode-badge.BUS    { background: rgba(76,175,80,0.15); color: #4caf50; }
.mob-mode-badge.TRAM   { background: rgba(33,150,243,0.15); color: #2196f3; }
.mob-mode-badge.RAIL   { background: rgba(255,152,0,0.15); color: #ff9800; }
.mob-mode-badge.SUBWAY { background: rgba(156,39,176,0.15); color: #9c27b0; }
.mob-mode-badge.FERRY  { background: rgba(0,188,212,0.15); color: #00bcd4; }
.mob-mode-badge.VLS    { background: rgba(102,187,106,0.15); color: #66bb6a; }
.mob-mode-badge.ALS    { background: rgba(120,144,156,0.15); color: #90a4ae; }
.mob-mode-badge.P_R_V_lo { background: rgba(141,110,99,0.15); color: #a1887f; }

.mob-rt-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #51cf66;
    display: inline-block;
    animation: pulse-rt 2s infinite;
}

@keyframes pulse-rt {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

/* ─── Map ────────────────────────────────────────── */
.mob-map {
    flex: 1;
    min-height: 100%;
}

/* Leaflet overrides for dark theme */
.mob-map .leaflet-control-zoom a {
    background: rgba(30,30,35,0.9);
    color: #fff;
    border-color: rgba(255,255,255,0.1);
}

.mob-map .leaflet-popup-content-wrapper {
    background: rgba(25,25,30,0.96);
    color: #fff;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.1);
    box-shadow: 0 8px 32px rgba(0,0,0,0.4);
}

.mob-map .leaflet-popup-tip {
    background: rgba(25,25,30,0.96);
    border: 1px solid rgba(255,255,255,0.1);
}

.mob-map .leaflet-popup-close-button {
    color: var(--text-dim);
}

/* ─── Popup content ──────────────────────────────── */
.mob-popup-name {
    font-weight: 700;
    font-size: 0.95rem;
    margin-bottom: 2px;
}

.mob-popup-operator {
    font-size: 0.8rem;
    color: var(--text-dim);
    margin-bottom: 8px;
}

.mob-popup-badges {
    display: flex;
    gap: 4px;
    flex-wrap: wrap;
    margin-bottom: 6px;
}

.mob-popup-rt {
    font-size: 0.75rem;
    color: #51cf66;
    display: flex;
    align-items: center;
    gap: 4px;
}

.mob-popup-btn {
    margin-top: 8px;
    padding: 6px 12px;
    border-radius: 6px;
    background: var(--orange);
    color: #fff;
    border: none;
    font-size: 0.78rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 4px;
    transition: filter 0.2s;
}

.mob-popup-btn:hover {
    filter: brightness(1.15);
}

.mob-popup-loading {
    font-size: 0.78rem;
    color: var(--text-dim);
    margin-top: 6px;
}

/* ─── Modes section ──────────────────────────────── */
.mob-modes-section {
    padding: 60px 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.mob-modes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
    margin-top: 40px;
}

.mob-mode-card {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 14px;
    padding: 24px;
    text-align: center;
    transition: border-color 0.3s, transform 0.2s;
}

.mob-mode-card:hover {
    border-color: rgba(255,255,255,0.2);
    transform: translateY(-2px);
}

.mob-mode-card-icon {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.mob-mode-card h3 {
    font-size: 1rem;
    margin-bottom: 4px;
}

.mob-mode-card .mob-mode-count {
    font-size: 0.85rem;
    color: var(--text-dim);
}

/* ─── Active nav link ───────────────────────────── */
.nav-links a.active {
    color: var(--orange);
    font-weight: 600;
}

/* ─── Fullscreen map toggle ─────────────────────── */
.mob-fullscreen-btn {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: rgba(30,30,35,0.9);
    border: 1px solid rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s;
}

.mob-fullscreen-btn:hover {
    background: rgba(50,50,55,0.95);
    border-color: rgba(255,255,255,0.25);
}

.mob-fullscreen-btn svg {
    display: block;
}

.mob-map-container.mob-fullscreen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 9999;
    border-radius: 0;
    border: none;
    background: #0d0d11;
}

.mob-fs-close {
    position: absolute;
    top: 12px;
    right: 56px;
    z-index: 1001;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    border: 1px solid rgba(255,255,255,0.15);
    background: rgba(30,30,35,0.9);
    color: #fff;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, border-color 0.2s;
}

.mob-fs-close:hover {
    background: rgba(60,60,65,0.95);
    border-color: rgba(255,255,255,0.3);
}

/* ─── Responsive ─────────────────────────────────── */
@media (max-width: 900px) {
    .mob-map-container {
        flex-direction: column;
        height: auto;
    }
    .mob-sidebar {
        width: 100%;
        min-width: unset;
        max-height: 250px;
        border-right: none;
        border-bottom: 1px solid rgba(255,255,255,0.08);
    }
    .mob-map {
        min-height: 400px;
    }
    .mob-stats {
        gap: 24px;
    }
    .mob-stat-value {
        font-size: 2rem;
    }
}
