/* Location Picker Styles para LucaQuibo.Web */

#location-map {
    position: relative;
    z-index: 1;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Asegurar que Leaflet se renderice correctamente */
#location-map .leaflet-container {
    height: 100%;
    width: 100%;
    border-radius: 0.375rem;
}

/* Estilo para el marcador personalizado */
.leaflet-marker-icon {
    transition: transform 0.3s ease;
}

.leaflet-marker-icon:hover {
    transform: scale(1.1);
}

/* Estilo para el popup */
.leaflet-popup-content-wrapper {
    border-radius: 0.5rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.leaflet-popup-content {
    margin: 0.75rem;
    font-size: 0.875rem;
}

/* Controles del mapa */
.leaflet-control-zoom {
    border: none !important;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15) !important;
}

.leaflet-control-zoom a {
    border-radius: 0.25rem;
    transition: background-color 0.2s ease;
}

.leaflet-control-zoom a:hover {
    background-color: #f8f9fa;
}

/* Animación de carga del mapa */
#location-map.loading::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

/* Estilo para resultados de búsqueda */
.address-search-results {
    max-height: 250px;
    overflow-y: auto;
    border: 1px solid #dee2e6;
    border-radius: 0.375rem;
    background: white;
}

.address-search-results .list-group-item {
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.address-search-results .list-group-item:hover {
    background-color: #f8f9fa;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    #location-map {
        height: 300px !important;
    }
}

/* Dark mode support (opcional) */
@media (prefers-color-scheme: dark) {
    .leaflet-control-zoom a {
        background-color: #2d3748;
        color: white;
    }
    
    .leaflet-control-zoom a:hover {
        background-color: #4a5568;
    }
    
    .leaflet-popup-content-wrapper {
        background-color: #2d3748;
        color: white;
    }
}
