/* Componente de ruta */
.route-component {
    margin-bottom: 20px;
    background-color: white;
    border-radius: 4px;
    box-shadow: var(--card-shadow);
    overflow: hidden;
}

.route-header {
    padding: 15px;
    border-bottom: 2px solid var(--secondary-color);
}

.route-title {
    margin: 0 0 10px 0;
    font-weight: 600;
}

.route-direction {
    margin: 0;
    font-size: 0.9rem;
    color: #666;
}

.route-stops {
    padding: 15px;
}

.route-stops h6 {
    margin-top: 0;
    margin-bottom: 10px;
    font-weight: 600;
}

.route-stops-list {
    max-height: 300px;
    overflow-y: auto;
    border: 1px solid #e9ecef;
    border-radius: 4px;
    padding: 10px;
    background-color: #f8f9fa;
    position: relative;
}

/* Línea vertical que conecta las paradas */
.route-stops-list::before {
    content: '';
    position: absolute;
    top: 10px;
    bottom: 10px;
    left: 15px;
    width: 2px;
    background-color: var(--secondary-color);
    z-index: 1;
}

.route-stops-list ol {
    padding-left: 30px;
    margin-bottom: 0;
}

.route-stop-item {
    padding: 5px 0;
    border-bottom: 1px dashed #e9ecef;
    display: flex;
    align-items: flex-start;
    margin-bottom: 15px;
    position: relative;
    z-index: 2;
}

.route-stop-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.route-stop-name {
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 2px;
}

.route-stop-address {
    font-size: 0.85rem;
    color: #666;
}

.route-stop-number {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background-color: var(--primary-color);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    margin-right: 15px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.route-stop-details {
    flex: 1;
    padding: 5px 0;
}

/* Para pestaña de rutas */
.routes-container {
    margin-top: 20px;
}

.routes-tabs {
    display: flex;
    flex-wrap: wrap;
    margin-bottom: 15px;
    border-bottom: 1px solid #dee2e6;
}

.route-tab {
    padding: 10px 15px;
    border: none;
    background: none;
    cursor: pointer;
    font-weight: 500;
    color: #495057;
    position: relative;
    transition: color 0.3s;
    margin-right: 5px;
}

.route-tab:hover {
    color: var(--primary-color);
}

.route-tab.active {
    color: var(--primary-color);
}

.route-tab.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: var(--primary-color);
}

.route-content {
    display: none;
}

.route-content.active {
    display: block;
}

/* Estilos para el componente de rutas */
.route-viewer {
    padding: 15px 0;
}

.route-selector {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.route-selector-item {
    padding: 8px 15px;
    background-color: white;
    border: 1px solid #ddd;
    border-radius: 20px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.2s ease;
}

.route-selector-item:hover {
    background-color: #f0f0f0;
}

.route-selector-item.active {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.route-info .card-header {
    padding: 12px 15px;
}

.route-info .badge {
    padding: 6px 10px;
    font-weight: 500;
    font-size: 0.85rem;
}

/* Estilos para la lista de paradas */
.stops-container {
    border-left: 3px solid var(--primary-color);
    margin-left: 15px;
    padding-left: 0;
}

.stop-item {
    display: flex;
    align-items: flex-start;
    padding: 12px 0;
    position: relative;
}

.stop-item:not(:last-child) {
    border-bottom: 1px dashed #e0e0e0;
}

.stop-order {
    background-color: var(--primary-color);
    color: white;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    margin-right: 15px;
    margin-left: -16px;
    font-size: 0.9rem;
    border: 2px solid white;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.stop-info {
    flex: 1;
}

.stop-info h6 {
    margin-bottom: 3px;
    font-weight: 600;
}

.stop-info small {
    color: #666;
    display: block;
}

/* Estilos para el mapa de rutas */
.route-map-container {
    margin-top: 20px;
    border: 1px solid #ddd;
    border-radius: 5px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

/* Estilos para los marcadores con número de orden */
.bus-stop-marker-with-order {
    background: transparent;
}

.stop-marker-order {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 30px;
    height: 30px;
    background-color: var(--primary-color);
    color: white;
    border-radius: 50%;
    font-weight: bold;
    border: 2px solid white;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* Estilos responsivos */
@media (min-width: 768px) {
    .route-selector {
        justify-content: center;
    }
}