.punti-amico-filtri {
    background: #f8f9fa;
    padding: 30px;
    border-radius: 8px;
    margin-bottom: 30px;
}

.pa-filter-form {
    max-width: 100%;
}

.pa-filter-row {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.pa-filter-field {
    flex: 1;
    min-width: 200px;
}

.pa-filter-field label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
    font-size: 14px;
}

.pa-filter-field input[type="text"],
.pa-filter-field select {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 15px;
    transition: border-color 0.3s;
}

.pa-filter-field input[type="text"]:focus,
.pa-filter-field select:focus {
    outline: none;
    border-color: #E31F24;
    box-shadow: 0 0 0 3px rgba(227, 31, 36, 0.1);
}

.pa-filter-field select:disabled {
    background-color: #e9ecef;
    cursor: not-allowed;
}

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

.pa-btn {
    padding: 12px 24px;
    border: none;
    border-radius: 4px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.pa-btn-primary {
    background: #E31F24;
    color: white;
}

.pa-btn-primary:hover {
    background: #c41a1e;
}

.pa-btn-secondary {
    background: #02923E;
    color: white;
}

.pa-btn-secondary:hover {
    background: #017a33;
}

.pa-loading {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #E31F24;
    font-weight: 600;
    margin-top: 15px;
}

.pa-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(227, 31, 36, 0.3);
    border-top-color: #E31F24;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.punti-amico-elenco {
    margin-top: 30px;
}

.punti-amico-count {
    margin-bottom: 20px;
    font-weight: 600;
    color: #495057;
    font-size: 16px;
}

.punto-amico-card {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    margin-bottom: 20px;
    transition: box-shadow 0.3s;
}

.punto-amico-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.punto-amico-card.pa-card-minimal {
    box-shadow: none;
}

.punto-amico-card.pa-card-minimal:hover {
    box-shadow: none;
    border-color: #E31F24;
}

.punto-amico-card.pa-card-clean {
    border: none;
    box-shadow: none;
    border-bottom: 2px solid #e0e0e0;
    border-radius: 0;
}

.punto-amico-card.pa-card-clean:hover {
    box-shadow: none;
    border-bottom-color: #E31F24;
}

.pa-card-header {
    padding: 20px;
    border-bottom: 1px solid #e0e0e0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.pa-title {
    margin: 0;
    font-size: 20px;
    color: #212529;
    font-weight: 600;
}

.pa-categoria {
    display: inline-block;
    padding: 6px 12px;
    background: #02923E;
    color: white;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 600;
}

.pa-card-body {
    padding: 20px;
}

.pa-info {
    margin-bottom: 12px;
    line-height: 1.6;
    color: #495057;
}

.pa-info:last-child {
    margin-bottom: 0;
}

.pa-info strong {
    color: #212529;
    margin-right: 8px;
}

.pa-info a {
    color: #E31F24;
    text-decoration: none;
}

.pa-info a:hover {
    text-decoration: underline;
}

.pa-conditions {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #e0e0e0;
    font-style: italic;
    color: #02923E;
}

.punti-amico-pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 30px;
    flex-wrap: wrap;
}

.punti-amico-pagination span,
.punti-amico-pagination a {
    display: inline-block;
    padding: 8px 12px;
    background: white;
    border: 1px solid #ddd;
    border-radius: 4px;
    color: #E31F24;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
}

.punti-amico-pagination span:hover,
.punti-amico-pagination a:hover {
    background: #E31F24;
    color: white;
    border-color: #E31F24;
}

.punti-amico-pagination span.active,
.punti-amico-pagination .current {
    background: #E31F24;
    color: white;
    border-color: #E31F24;
}

.punti-amico-empty {
    text-align: center;
    padding: 60px 20px;
    background: #f8f9fa;
    border-radius: 8px;
    color: #6c757d;
    font-size: 18px;
}

@media (max-width: 768px) {
    .punti-amico-filtri {
        padding: 20px;
    }
    
    .pa-filter-row {
        flex-direction: column;
    }
    
    .pa-filter-field {
        min-width: 100%;
    }
    
    .pa-filter-actions {
        flex-direction: column;
    }
    
    .pa-btn {
        width: 100%;
    }
    
    .pa-card-header {
        flex-direction: column;
        align-items: flex-start;
    }
}
