.p24-claim {
    margin: 5px 0 0 0;
    color: #4a5568;
    font-size: 15px;
}
.p24-content-layout {
    display: flex;
    gap: 40px;
    align-items: flex-start;
    margin-top: 20px;
}
.p24-text-side {
    flex: 1;
}
.p24-lead {
    font-size: 18px;
    color: #2d3748;
    line-height: 1.6;
    margin-bottom: 15px;
}
.p24-image-side {
    flex: 0 0 350px;
}
.p24-img-responsive {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.05);
}
@media (max-width: 768px) {
    .p24-content-layout {
        flex-direction: column;
    }
    .p24-image-side {
        flex: 1;
        width: 100%;
    }
}

/* ======================================================================
   NUOVI STILI PER GRIGLIA E CARD ANNUNCI (LISTA)
   ====================================================================== */
.p24-grid-annunci {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 20px;
}
.p24-card-annuncio {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0,0,0,0.02);
    display: flex;
    flex-direction: column;
}
.p24-card-thumb {
    position: relative;
    height: 200px;
    background: #edf2f7;
}
.p24-card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.p24-badge-contratto {
    position: absolute;
    top: 10px;
    left: 10px;
    background: #3182ce;
    color: #fff;
    padding: 4px 10px;
    font-size: 12px;
    font-weight: bold;
    border-radius: 4px;
    text-transform: uppercase;
}
.p24-card-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex: 1;
}
.p24-card-content h4 {
    margin: 0 0 10px 0;
    font-size: 18px;
    color: #2d3748;
}
.p24-descrizione-breve {
    font-size: 14px;
    color: #718096;
    line-height: 1.5;
    margin-bottom: 15px;
    flex: 1;
}
/* Elenco caratteristiche compatte nella card */
.p24-features-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding: 10px 0;
    border-top: 1px solid #edf2f7;
    border-bottom: 1px solid #edf2f7;
    margin-bottom: 15px;
}
.p24-feature-item {
    font-size: 13px;
    color: #4a5568;
    background: #f7fafc;
    padding: 4px 8px;
    border-radius: 4px;
    flex: 1 1 calc(50% - 10px); /* Due elementi per riga */
}
.p24-btn-dettaglio {
    display: block;
    width: 100%;
    text-align: center;
    background: #2b6cb0;
    color: #fff !important;
    padding: 10px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: bold;
    transition: background 0.2s;
}
.p24-btn-dettaglio:hover {
    background: #2c5282;
}
/* Paginazione */
.p24-paginazione {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 40px;
}
.p24-paginazione a {
    padding: 8px 16px;
    border: 1px solid #e2e8f0;
    border-radius: 4px;
    text-decoration: none;
    color: #4a5568;
}
.p24-paginazione a.current {
    background: #2b6cb0;
    color: #fff;
    border-color: #2b6cb0;
}

/* FORM RICERCA AVANZATA */
.p24-form-ricerca {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 30px;
}
.p24-search-row {
    margin-bottom: 15px;
}
.p24-main-search input {
    width: 100%;
    padding: 12px 15px;
    font-size: 16px;
    border: 1px solid #cbd5e0;
    border-radius: 6px;
}
.p24-grid-filters {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    align-items: end;
}
.p24-filter-group label {
    display: block;
    font-size: 13px;
    font-weight: bold;
    color: #4a5568;
    margin-bottom: 5px;
}
.p24-range-inputs {
    display: flex;
    gap: 5px;
}
.p24-range-inputs input, .p24-autocomplete-wrapper input {
    width: 100%;
    padding: 8px 10px;
    border: 1px solid #cbd5e0;
    border-radius: 4px;
}
.p24-actions-group {
    display: flex;
    gap: 10px;
    align-items: center;
}
.p24-btn-search {
    background: #2b6cb0;
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
}
.p24-btn-reset {
    color: #718096;
    text-decoration: underline;
    font-size: 13px;
}
/* AUTOCOMPLETE COMUNI */
.p24-autocomplete-wrapper {
    position: relative;
}
.p24-autocomplete-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border: 1px solid #cbd5e0;
    border-top: none;
    border-radius: 0 0 4px 4px;
    max-height: 200px;
    overflow-y: auto;
    z-index: 1000;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    display: none;
}
.p24-autocomplete-item {
    padding: 8px 12px;
    cursor: pointer;
    font-size: 14px;
}
.p24-autocomplete-item:hover {
    background: #ebf8ff;
    color: #2b6cb0;
}