/* Sidebar */
.sidebar {
    height: 100vh;
    overflow-y: auto;
    border-right: 1px solid #dee2e6;
    position: fixed;
    z-index: 1000;
    padding: 0;
}

.sidebar .list-group {
    max-height: calc(100vh - 250px);
    overflow-y: auto;
}

.sidebar .list-group-item {
    cursor: pointer;
    transition: all 0.3s;
    border-left: 4px solid transparent;
}

.sidebar .list-group-item:hover {
    background-color: #e9ecef;
    border-left-color: #0d6efd;
}

.sidebar .list-group-item.active {
    background-color: #0d6efd;
    color: white;
    border-left-color: #0056b3;
}

/* Mapa */
#map {
    width: 100%;
    z-index: 1;
}

/* Badge para contador */
#countBadge {
    font-size: 0.75em;
    padding: 0.4em 0.6em;
}

/* Estilos para tarjetas de paradas */
.parada-card {
    border-left: 4px solid #0d6efd;
    margin-bottom: 10px;
    padding: 10px;
    cursor: pointer;
    transition: all 0.3s;
}

.parada-card:hover {
    background-color: #f8f9fa;
    transform: translateX(5px);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.parada-card.active {
    background-color: #e7f3ff;
    border-left-color: #0056b3;
}

/* Estilos para el modal */
#paradaModal .modal-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

#paradaModal .card {
    border: none;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

/* Spinner */
.spinner-border {
    width: 3rem;
    height: 3rem;
}

/* Responsive */
@media (max-width: 768px) {
    .sidebar {
        position: relative;
        height: auto;
        border-right: none;
        border-bottom: 1px solid #dee2e6;
    }
    
    .sidebar .list-group {
        max-height: 300px;
    }
    
    #map {
        height: 60vh;
    }
}

/* Estilos para el buscador */
#searchInput {
    transition: all 0.3s;
}

#searchInput:focus {
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

/* Estilos para filtros */
.form-select:focus,
.form-control:focus {
    border-color: #0d6efd;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

/* Estilos para botones */
.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

/* Animaciones */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.fade-in {
    animation: fadeIn 0.5s ease-in;
}

/* Estilos para información en modal */
.info-item {
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #e9ecef;
}

.info-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.info-label {
    font-weight: 600;
    color: #495057;
    display: block;
    margin-bottom: 5px;
}

.info-value {
    color: #212529;
    font-size: 1.1em;
}

.info-icon {
    color: #0d6efd;
    margin-right: 10px;
    font-size: 1.2em;
}

/* Estilos para enlaces */
.link-primary {
    color: #0d6efd !important;
    text-decoration: none;
}

.link-primary:hover {
    text-decoration: underline;
}