/* ── SEÇİLİ SEFER ROTA PANELİ ── */
.rp-route-panel {
    margin: 6px 8px 2px;
    border-radius: 10px;
    background: linear-gradient(135deg, rgba(6,14,30,0.97), rgba(10,20,40,0.93));
    border: 1px solid rgba(99,102,241,0.4);
    box-shadow: 0 4px 20px rgba(0,0,0,0.45), 0 0 0 1px rgba(99,102,241,0.08);
    overflow: hidden;
    animation: slideDown 0.22s ease;
    flex-shrink: 0;
}

.rp-route-panel.hidden { display: none !important; }

.rp-route-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 7px 10px 6px;
    border-bottom: 1px solid rgba(99,102,241,0.18);
    gap: 6px;
}

.rp-route-title {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 10px;
    font-weight: 700;
    color: #c7d2fe;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    min-width: 0;
}

.rp-route-title span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

#rpRouteClose {
    width: 20px; height: 20px;
    border-radius: 5px;
    background: rgba(239,68,68,0.12);
    border: 1px solid rgba(239,68,68,0.28);
    color: #fca5a5;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
    transition: all 0.15s;
    padding: 0;
}
#rpRouteClose:hover { background: rgba(239,68,68,0.28); color: #fee2e2; }

.rp-route-businfo {
    padding: 5px 10px;
    font-size: 9.5px;
    color: #94a3b8;
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    border-bottom: 1px solid rgba(99,102,241,0.1);
    min-height: 28px;
}

.rp-route-businfo strong { color: #e2e8f0; }

.rp-route-businfo .rbi-code {
    background: rgba(99,102,241,0.18);
    border: 1px solid rgba(99,102,241,0.38);
    border-radius: 4px;
    padding: 0 5px;
    color: #a5b4fc;
    font-weight: 700;
    font-size: 9px;
}

.rp-route-progress-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 10px 5px;
}

.rp-route-progress-bg {
    flex: 1;
    height: 4px;
    background: rgba(30,41,59,0.9);
    border-radius: 999px;
    overflow: hidden;
}

.rp-route-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #6366f1, #22d3ee);
    border-radius: 999px;
    transition: width 0.6s ease;
    min-width: 2px;
}

.rp-route-pct {
    font-size: 9px;
    font-weight: 700;
    color: #818cf8;
    flex-shrink: 0;
    width: 28px;
    text-align: right;
}

/* ── DURAK LİSTESİ ── */
.rp-route-stops {
    padding: 4px 10px 10px;
    display: flex;
    flex-direction: column;
}

.rp-stop-item {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    min-height: 24px;
}

.rp-stop-track {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 12px;
    flex-shrink: 0;
}

.rp-stop-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 2px solid rgba(99,102,241,0.3);
    background: rgba(99,102,241,0.08);
    flex-shrink: 0;
    margin-top: 3px;
    position: relative;
    z-index: 1;
    transition: all 0.3s;
}

.rp-stop-line {
    width: 2px;
    flex: 1;
    min-height: 12px;
    background: rgba(99,102,241,0.18);
    margin: 1px 0;
}

.rp-stop-content {
    flex: 1;
    padding-bottom: 6px;
    padding-top: 1px;
    min-width: 0;
}

.rp-stop-name {
    font-size: 10.5px;
    font-weight: 600;
    color: #374151;
    line-height: 1.3;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.rp-stop-badge {
    font-size: 8.5px;
    color: #374151;
    margin-top: 1px;
}

/* Geçildi */
.rp-stop-item--done .rp-stop-dot {
    background: rgba(34,197,94,0.25);
    border-color: #22c55e;
}
.rp-stop-item--done .rp-stop-name { color: #4ade80; }
.rp-stop-item--done .rp-stop-line { background: rgba(34,197,94,0.35); }
.rp-stop-item--done .rp-stop-badge { color: #15803d; }

/* Yakınında (şu an) */
.rp-stop-item--current .rp-stop-dot {
    background: #4f46e5;
    border-color: #818cf8;
    box-shadow: 0 0 8px rgba(99,102,241,0.7);
    animation: rpStopPulse 1.6s ease-in-out infinite;
}
.rp-stop-item--current .rp-stop-line { background: rgba(99,102,241,0.4); }
.rp-stop-item--current .rp-stop-name { color: #c7d2fe; font-weight: 700; font-size: 11.5px; }
.rp-stop-item--current .rp-stop-badge { color: #818cf8; }

/* Sonraki durak */
.rp-stop-item--next .rp-stop-dot {
    background: rgba(251,191,36,0.2);
    border-color: #fbbf24;
}
.rp-stop-item--next .rp-stop-name { color: #fde68a; font-weight: 700; }
.rp-stop-item--next .rp-stop-badge { color: #b45309; }

/* Gelecek */
.rp-stop-item--future .rp-stop-dot {
    background: transparent;
    border-color: rgba(55,65,81,0.8);
}

@keyframes rpStopPulse {
    0%, 100% { box-shadow: 0 0 5px rgba(99,102,241,0.5); }
    50% { box-shadow: 0 0 14px rgba(99,102,241,0.9), 0 0 5px rgba(34,211,238,0.35); }
}

/* Otobüs yolda göstergesi */
.rp-bus-between {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 1px 0 4px 5px;
    min-height: 18px;
}

.rp-bus-indicator {
    font-size: 9px;
    color: #22d3ee;
    display: flex;
    align-items: center;
    gap: 4px;
}

.rp-bus-indicator-dot {
    width: 6px; height: 6px;
    background: #22d3ee;
    border-radius: 50%;
    box-shadow: 0 0 5px rgba(34,211,238,0.7);
    animation: rpBusDot 1s ease-in-out infinite;
    flex-shrink: 0;
}

@keyframes rpBusDot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.4; transform: scale(0.7); }
}
