/* === Transport BRT/TER Premium Styles === */

/* No max-width restriction — matches other service pages */

/* Section header */
.section-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
}
.section-icon {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    font-weight: 800;
    color: #fff;
    flex-shrink: 0;
    font-family: "Oswald", sans-serif;
}
.brt-icon { background: linear-gradient(135deg, #00CC00, #009900); }
.ter-icon { background: linear-gradient(135deg, #1565c0, #0d47a1); }
.section-header h2 { font-size: 1.4rem; margin: 0; }
.section-subtitle { color: #666; font-size: 0.9rem; margin: 4px 0 0; }

/* BRT Lines */
.brt-lines {
    display: flex;
    gap: 12px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}
.brt-line {
    padding: 10px 16px;
    background: #f8f8f8;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.line-badge {
    color: #fff;
    padding: 3px 10px;
    border-radius: 4px;
    font-weight: 700;
    font-size: 0.85rem;
}
.line-type { font-size: 0.85rem; color: #555; }

/* Station selector */
.station-selector {
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}
.station-selector label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    font-size: 0.95rem;
}

/* Search input */
.station-search-wrapper {
    position: relative;
    width: 100%;
    max-width: 500px;
    margin: 0 auto 10px;
}
.station-search-input {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    font-size: 1rem;
    background: #fff;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.station-search-input:focus {
    outline: none;
    border-color: var(--color-primary, #ff9900);
    box-shadow: 0 0 0 3px rgba(255, 153, 0, 0.15);
}
.station-search-input::placeholder {
    color: #aaa;
}

/* Search results dropdown */
.station-search-results {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-top: none;
    border-radius: 0 0 12px 12px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.1);
    z-index: 100;
    max-height: 280px;
    overflow-y: auto;
}
.search-result-item {
    padding: 12px 18px;
    cursor: pointer;
    font-size: 0.95rem;
    border-bottom: 1px solid #f5f5f5;
    transition: background 0.12s;
}
.search-result-item:last-child { border-bottom: none; }
.search-result-item:hover {
    background: #fff5e6;
    color: var(--color-primary, #ff9900);
}
.search-no-result {
    padding: 14px 18px;
    color: #999;
    font-size: 0.9rem;
    text-align: center;
}

/* Fallback select */
.station-select-fallback {
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
    padding: 12px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 0.95rem;
    background: #fff;
    cursor: pointer;
    transition: border-color 0.2s;
    color: #888;
}
.station-select-fallback:focus {
    outline: none;
    border-color: var(--color-primary, #ff9900);
}

/* Departures */
.departures-container {
    min-height: 120px;
    margin-bottom: 24px;
}
.departures-placeholder {
    text-align: center;
    padding: 40px 20px;
    background: #f9f9f9;
    border-radius: 12px;
    color: #999;
}
.placeholder-icon { font-size: 3rem; margin-bottom: 10px; }
.loading-departures {
    text-align: center;
    padding: 30px;
    color: #666;
}
.spinner {
    display: inline-block;
    width: 24px;
    height: 24px;
    border: 3px solid #e0e0e0;
    border-top-color: var(--color-primary, #ff9900);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    vertical-align: middle;
    margin-right: 8px;
}
@keyframes spin { to { transform: rotate(360deg); } }

.departures-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}
.departures-header h3 { font-size: 1.1rem; margin: 0; }
.live-badge {
    background: #d32f2f;
    color: #fff;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    animation: pulse-live 2s infinite;
}
@keyframes pulse-live {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}

.departures-list {
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 10px;
    overflow: hidden;
}
.departure-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-bottom: 1px solid #f2f2f2;
    transition: background 0.15s;
}
.departure-row:last-child { border-bottom: none; }
.departure-row:hover { background: #fafafa; }
.departure-row.next-bus {
    background: #fff8e1;
    border-left: 4px solid var(--color-primary, #ff9900);
}
.dep-line {
    color: #fff;
    padding: 3px 8px;
    border-radius: 4px;
    font-weight: 700;
    font-size: 0.8rem;
    min-width: 30px;
    text-align: center;
}
.dep-direction {
    flex: 1;
    font-size: 0.9rem;
    color: #333;
}
.dep-time {
    font-weight: 700;
    font-size: 1.1rem;
    color: #222;
    font-family: "Oswald", monospace;
}
.dep-next-label {
    background: var(--color-primary, #ff9900);
    color: #fff;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
}

/* Stations map (linear) */
.brt-stations-map {
    margin: 30px 0;
    padding: 20px;
    background: #f8f8f8;
    border-radius: 12px;
}
.brt-stations-map h3 { font-size: 1rem; margin: 0 0 20px; }
.stations-line {
    display: flex;
    overflow-x: auto;
    gap: 0;
    padding: 10px 0 20px;
    -webkit-overflow-scrolling: touch;
}
.station-dot {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 70px;
    cursor: pointer;
    position: relative;
}
.station-dot::after {
    content: "";
    position: absolute;
    top: 8px;
    left: 50%;
    width: 100%;
    height: 3px;
    background: #00CC00;
    z-index: 0;
}
.station-dot:last-child::after { display: none; }
.dot {
    width: 16px;
    height: 16px;
    background: #fff;
    border: 3px solid #00CC00;
    border-radius: 50%;
    z-index: 1;
    transition: all 0.2s;
}
.station-dot:hover .dot,
.station-dot.active .dot {
    background: #00CC00;
    transform: scale(1.3);
}
.station-label {
    font-size: 0.65rem;
    text-align: center;
    margin-top: 6px;
    color: #555;
    max-width: 65px;
    line-height: 1.2;
}
.station-dot.active .station-label { color: #00CC00; font-weight: 700; }

/* Tarifs */
.tarifs-box {
    margin: 24px 0;
}
.tarifs-box h3 { font-size: 1.1rem; margin: 0 0 14px; }
.tarifs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 12px;
}
.tarif-card {
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 10px;
    padding: 16px;
    text-align: center;
}
.tarif-card.tarif-abo { background: #fff8e1; border-color: #ffe082; }
.tarif-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: #222;
    font-family: "Oswald", sans-serif;
}
.tarif-price small { font-size: 0.8rem; color: #888; }
.tarif-label { font-size: 0.8rem; color: #666; margin-top: 4px; }

/* TER Stations */
.ter-stations { margin: 24px 0; }
.ter-stations h3 { font-size: 1.1rem; margin: 0 0 14px; }
.ter-stations-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 8px;
}
.ter-station-card {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 8px;
    border-left: 3px solid #1565c0;
}
.ter-station-num {
    width: 28px;
    height: 28px;
    background: #1565c0;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
    flex-shrink: 0;
}
.ter-station-info { flex: 1; }
.ter-station-name { display: block; font-weight: 600; font-size: 0.9rem; }
.ter-station-km { font-size: 0.75rem; color: #888; }
.ter-zone-badge {
    font-size: 0.7rem;
    padding: 2px 8px;
    border-radius: 10px;
    background: #e3f2fd;
    color: #1565c0;
    font-weight: 600;
}

/* TER Horaires */
.ter-horaires { margin: 24px 0; }
.ter-horaires h3 { font-size: 1.1rem; margin: 0 0 14px; }
.horaires-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}
.horaire-card {
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 10px;
    padding: 16px;
    border-top: 3px solid #1565c0;
}
.horaire-card h4 { margin: 0 0 12px; font-size: 1rem; }
.horaire-detail div { margin-bottom: 6px; font-size: 0.88rem; }
.horaire-pointe {
    display: inline-block;
    padding: 2px 8px;
    background: #fff3e0;
    border-radius: 4px;
    font-size: 0.8rem;
    color: #e65100;
}

/* Tarifs table */
.tarifs-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid #e8e8e8;
}
.tarifs-table th {
    background: #1565c0;
    color: #fff;
    padding: 12px 16px;
    text-align: left;
    font-size: 0.85rem;
}
.tarifs-table td {
    padding: 12px 16px;
    border-bottom: 1px solid #f2f2f2;
    font-size: 0.9rem;
}
.tarifs-table tr:last-child td { border-bottom: none; }

/* SEO content */
.transport-page .seo-content { margin: 30px 0; line-height: 1.8; }
.transport-page .seo-content p { margin-bottom: 12px; }
.transport-page .seo-content h3 { margin-top: 20px; font-size: 1.1rem; }

/* Mobile */
@media (max-width: 767px) {
    .brt-lines { flex-direction: column; }
    .horaires-grid { grid-template-columns: 1fr; }
    .ter-stations-list { grid-template-columns: 1fr; }
    .tarifs-grid { grid-template-columns: repeat(2, 1fr); }
    .section-header { flex-direction: column; text-align: center; }
    .departures-header { flex-direction: column; gap: 8px; }
}

/* FAQ */
.transport-page .faq-section { margin: 30px 0; }
.transport-page .faq-item { border-bottom: 1px solid #eee; }
.transport-page .faq-question {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 0;
    background: none;
    border: none;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    text-align: left;
}
.transport-page .faq-toggle { font-size: 1.2rem; color: var(--color-primary, #ff9900); }
.transport-page .faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s;
    line-height: 1.6;
    color: #555;
}
.transport-page .faq-item.open .faq-answer { padding-bottom: 14px; }
