/* Stili per il frontend del plugin Negozi */

.negozi-lista {
    margin: 30px 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

/* Layout Grid */
.negozi-lista.layout-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 25px;
}

/* Layout List */
.negozi-lista.layout-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.negozi-lista.layout-list .negozio-item {
    border-bottom: 1px solid #eee;
    padding-bottom: 20px;
}

.negozi-lista.layout-list .negozio-item:last-child {
    border-bottom: none;
}

/* Stili per ogni singolo negozio */
.negozio-item {
    background: #fff;
    border: 1px solid #e1e5e9;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.negozio-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    border-color: #0073aa;
}

/* Header del negozio */
.negozio-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 15px;
    flex-wrap: wrap;
    gap: 10px;
}

.negozio-titolo {
    margin: 0;
    font-size: 1.4em;
    font-weight: 600;
    color: #23282d;
    line-height: 1.3;
    flex: 1;
}

.negozio-tipo {
    background: #0073aa;
    color: #fff;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8em;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

/* Immagine del negozio */
.negozio-immagine {
    margin-bottom: 15px;
    text-align: center;
}

.negozio-immagine img {
    max-width: 100%;
    height: auto;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Contenuto del negozio */
.negozio-contenuto {
    line-height: 1.6;
}

.negozio-descrizione {
    color: #555;
    margin-bottom: 15px;
    font-size: 0.95em;
}

.negozio-indirizzo,
.negozio-telefono,
.negozio-email,
.negozio-orari {
    margin-bottom: 8px;
    font-size: 0.9em;
    display: flex;
    align-items: center;
    gap: 8px;
}

.negozio-indirizzo strong,
.negozio-telefono strong,
.negozio-email strong,
.negozio-orari strong {
    color: #333;
    min-width: 80px;
    font-weight: 600;
}

.negozio-telefono a,
.negozio-email a {
    color: #0073aa;
    text-decoration: none;
    transition: color 0.2s ease;
}

.negozio-telefono a:hover,
.negozio-email a:hover {
    color: #005a87;
    text-decoration: underline;
}

/* Pulsante Google Maps */
.negozio-maps {
    margin-top: 15px;
    text-align: center;
}

.btn-maps {
    display: inline-block;
    background: #34a853;
    color: #fff;
    padding: 10px 20px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 0.9em;
}

.btn-maps:hover {
    background: #2d8f47;
    color: #fff;
    text-decoration: none;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(52, 168, 83, 0.3);
}

/* Responsive Design */
@media (max-width: 768px) {
    .negozi-lista.layout-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .negozio-item {
        padding: 15px;
    }
    
    .negozio-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .negozio-tipo {
        align-self: flex-start;
    }
    
    .negozio-indirizzo,
    .negozio-telefono,
    .negozio-email,
    .negozio-orari {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }
    
    .negozio-indirizzo strong,
    .negozio-telefono strong,
    .negozio-email strong,
    .negozio-orari strong {
        min-width: auto;
    }
}

@media (max-width: 480px) {
    .negozi-lista {
        margin: 20px 0;
    }
    
    .negozio-item {
        padding: 12px;
    }
    
    .negozio-titolo {
        font-size: 1.2em;
    }
    
    .btn-maps {
        width: 100%;
        text-align: center;
    }
}

/* Stili per messaggi di errore o nessun risultato */
.negozi-lista p {
    text-align: center;
    color: #666;
    font-style: italic;
    padding: 40px 20px;
    background: #f9f9f9;
    border-radius: 8px;
    border: 1px dashed #ddd;
}

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

.negozio-item {
    animation: fadeInUp 0.6s ease-out;
}

/* Stili per categorie specifiche */
.negozio-item.categoria-ristoranti .negozio-tipo {
    background: #e74c3c;
}

.negozio-item.categoria-farmacie .negozio-tipo {
    background: #3498db;
}

.negozio-item.categoria-supermercati .negozio-tipo {
    background: #f39c12;
}

.negozio-item.categoria-servizi .negozio-tipo {
    background: #9b59b6;
}

/* Hover effects avanzati */
.negozio-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #0073aa, #00a0d2);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.negozio-item:hover::before {
    transform: scaleX(1);
}
