/* Estilos generales del localizador de tiendas */

.store-locator-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

/* Sección de búsqueda */
.search-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 16px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    color: white;
}

.search-section h2 {
    margin-top: 0;
    margin-bottom: 20px;
    font-size: 28px;
    font-weight: 700;
    color: white;
    text-align: center;
}

.search-form {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.search-input-group {
    flex: 1;
    min-width: 250px;
    position: relative;
}

.search-input-group i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
    font-size: 16px;
}

#search_input {
    width: 100%;
    padding: 14px 15px 14px 45px;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    transition: all 0.3s;
}

#search_input:focus {
    outline: none;
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
    transform: translateY(-2px);
}

.search-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.btn {
    padding: 14px 24px;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}

.btn-primary {
    background: white;
    color: #667eea;
    box-shadow: 0 4px 15px rgba(255,255,255,0.3);
}

.btn-primary:hover {
    background: #f8f9fa;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255,255,255,0.4);
}

.btn-secondary {
    background: rgba(255,255,255,0.2);
    color: white;
    border: 2px solid white;
}

.btn-secondary:hover {
    background: rgba(255,255,255,0.3);
    transform: translateY(-2px);
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Controles de filtro */
.filter-controls {
    display: flex;
    align-items: center;
    gap: 15px;
    background: rgba(255,255,255,0.1);
    padding: 15px;
    border-radius: 10px;
    backdrop-filter: blur(10px);
    flex-wrap: wrap;
}

.filter-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

.filter-group label {
    font-weight: 600;
    margin: 0;
}

#radius {
    width: 150px;
    padding: 8px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
}

#radius_value {
    font-weight: 700;
    min-width: 60px;
}

#show_all {
    margin-left: auto;
}

/* Contenedor principal */
.locator-content {
    display: block;
    width: 100%;
}

/* Mapa */
.map-container {
    position: sticky;
    top: 100px;
    height: 600px;
}

#store_map {
    width: 100%;
    height: 100%;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    overflow: hidden;
}

.store-marker,
.user-marker,
.search-marker,
.custom-marker {
    background: transparent;
    border: none;
}

/* Popup del mapa */
.store-popup {
    min-width: 200px;
}

.store-popup h3 {
    margin: 0 0 10px 0;
    font-size: 16px;
    color: #2c3e50;
}

.store-popup p {
    margin: 5px 0;
    font-size: 13px;
    color: #555;
}

.store-popup i {
    margin-right: 5px;
    color: #667eea;
}

/* Sin resultados */
.no-results {
    background: white;
    border-radius: 12px;
    padding: 40px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    color: #777;
    font-size: 16px;
}

.no-results i {
    font-size: 48px;
    color: #ddd;
    margin-bottom: 15px;
    display: block;
}

/* Responsive */
@media (max-width: 1024px) {
    .map-container {
        position: relative;
        top: 0;
        height: 400px;
    }
}

@media (max-width: 768px) {
    .search-section {
        padding: 20px;
    }
    
    .search-section h2 {
        font-size: 22px;
    }
    
    .search-form {
        flex-direction: column;
    }
    
    .search-input-group {
        min-width: 100%;
    }
    
    .search-buttons {
        flex-direction: column;
    }
    
    .btn {
        width: 100%;
        justify-content: center;
    }
    
    .filter-controls {
        flex-direction: column;
        align-items: stretch;
    }
    
    #show_all {
        margin-left: 0;
        width: 100%;
    }
    
    .store-header {
        flex-direction: column;
        gap: 10px;
    }
    
    .distance {
        align-self: flex-start;
    }
    
    .store-actions {
        flex-direction: column;
    }
    
    .btn-view-map,
    .btn-directions {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .store-locator-container {
        padding: 10px;
    }
    
    .search-section {
        padding: 15px;
    }
    
    #search_input {
        font-size: 14px;
        padding: 12px 12px 12px 40px;
    }
}

/* Animaciones */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}