/* Contenedor principal */
#pa-mapa-container {
    position: relative;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
}

/* Filtros */
.pa-filtros {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    flex-wrap: wrap;
    align-items: center;
}

.pa-filtros select {
    padding: 10px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    font-size: 14px;
    min-width: 200px;
    background: white;
    cursor: pointer;
}

.pa-filtros select:focus {
    outline: none;
    border-color: #2196F3;
}

.pa-btn {
    padding: 10px 20px;
    background: #2196F3;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: background 0.3s;
}

.pa-btn:hover {
    background: #1976D2;
}

/* Mapa */
#pa-mapa {
    width: 100%;
    height: 600px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    margin-bottom: 20px;
}

/* Panel de puntos */
.pa-panel {
    background: white;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.pa-panel h3 {
    margin-top: 0;
    color: #333;
    border-bottom: 2px solid #2196F3;
    padding-bottom: 10px;
    margin-bottom: 20px;
}

#pa-lista-cercanos {
    list-style: none;
    padding: 0;
    margin: 0;
}

.pa-item {
    display: flex;
    align-items: flex-start;
    padding: 15px;
    margin-bottom: 10px;
    background: #f8f9fa;
    border-radius: 6px;
    transition: transform 0.2s;
}

.pa-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.pa-posicion {
    background: #2196F3;
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    margin-right: 15px;
    flex-shrink: 0;
}

.pa-item div {
    flex: 1;
}

.pa-item strong {
    display: block;
    color: #333;
    margin-bottom: 5px;
}

.pa-item p {
    margin: 3px 0;
    color: #666;
    font-size: 14px;
}

.pa-distancia {
    color: #4CAF50;
    font-weight: bold;
    font-size: 16px !important;
}

/* Botón de ruta */
.pa-btn-ruta {
    margin-top: 10px;
    padding: 8px 16px;
    background: #4CAF50;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 13px;
    transition: background 0.3s;
    display: inline-block;
}

.pa-btn-ruta:hover {
    background: #388E3C;
}

/* Botón de ruta en InfoWindow */
.pa-info .pa-btn-ruta {
    background: #2196F3;
    width: 100%;
    margin-top: 10px;
}

.pa-info .pa-btn-ruta:hover {
    background: #1976D2;
}

/* InfoWindow */
.pa-info {
    padding: 10px;
    min-width: 200px;
}

.pa-info h4 {
    margin: 0 0 10px;
    color: #333;
    font-size: 16px;
}

.pa-info p {
    margin: 5px 0;
    color: #666;
    font-size: 13px;
}

/* Responsive */
@media (max-width: 768px) {
    .pa-filtros {
        flex-direction: column;
        align-items: stretch;
    }
    
    .pa-filtros select,
    .pa-btn {
        width: 100%;
    }
    
    #pa-mapa {
        height: 400px;
    }
    
    .pa-item {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .pa-posicion {
        margin-bottom: 10px;
    }
}

/* Estado de carga */
.pa-loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(255, 255, 255, 0.9);
    padding: 20px;
    border-radius: 8px;
    z-index: 1000;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}