/**
 * Property Card Component - CSS Unificato
 * Estratto da compra.css (CSS ORIGINALE PERFETTO mantenuto identico)
 * 
 * Usato in: Compra, Single Property (related), Archive, Agent
 * 
 * Varianti disponibili tramite classe aggiuntiva:
 * - .property-card.variant-compra (default)
 * - .property-card.variant-related
 * - .property-card.variant-archive
 * - .property-card.variant-agent
 */

/* Assicura che il contenitore stretchi le card */
.properties-grid,
.related-properties-section .properties-grid,
.grid-4-cols {
    align-items: stretch;
    display: flex;
    flex-wrap: wrap;
    gap: 25px;
    justify-content: flex-start;
}

/* Base card style - NON applicare dimensioni fisse allo slider compra */
.property-card {
    background: var(--e-global-color-aa5884c);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: none;
    min-height: 400px; /* Altezza minima fissa per uniformità */
    display: flex;
    flex-direction: column;
}

/* Dimensioni card SOLO per grid, NON per slider compra */
body.tax-property_city .property-card,
body.tax-property_status-compra .city-selected-grid .property-card,
.related-properties-section .property-card,
.grid-4-cols .property-card {
    flex: 0 0 calc(25% - 19px);
    max-width: 280px;
}



.property-card a {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.property-image-wrapper {
    position: relative;
    height: 180px;
    overflow: hidden;
    width: 100%;
}

/* Pillola "Opportunità" dentro le card */
.opportunita-pill {
    position: absolute;
    right: 12px;
    bottom: 12px;
    background: #8d5a20;
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    font-family: var(--e-global-typography-primary-font-family), Sans-serif;
    border-radius: 16px;
    padding: 4px 16px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    z-index: 2;
    letter-spacing: 0.5px;
}

/* Pillola per proprietà vendute */
.venduto-pill {
    position: absolute;
    right: 12px;
    bottom: 12px;
    background: #6c757d; /* grigio scuro */
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    font-family: var(--e-global-typography-primary-font-family), Sans-serif;
    border-radius: 16px;
    padding: 4px 16px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    z-index: 2;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}



.property-images-track {
    display: flex;
    height: 100%;
    transition: transform 0.3s ease;
}

.property-image-slide {
    flex: 0 0 100%;
    height: 100%;
    display: block;
    overflow: hidden;
}

.property-image {
    width: 100%;
    height: 100% !important;
    object-fit: cover;
    object-position: center;
    display: block;
    transition: transform 0.3s ease;
}

.property-card:hover .property-image {
    transform: scale(1.05);
}

/* Image navigation arrows */
.property-image-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 5;
    background: rgba(255,255,255,0.9) !important;
    border: none !important;
    cursor: pointer;
    padding: 8px !important;
    width: 32px !important;
    height: 32px !important;
    border-radius: 50% !important;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease, background 0.3s ease;
    display: flex !important;
    align-items: center;
    justify-content: center;
}

.property-image-nav.hidden {
    display: none !important;
}

.property-image-wrapper:hover .property-image-nav:not(.hidden) {
    opacity: 1;
    visibility: visible;
}

.property-image-nav:hover {
    background: rgba(255,255,255,1) !important;
}

.property-image-nav svg {
    width: 18px !important;
    height: 18px !important;
    color: #333 !important;
}

.property-image-prev {
    left: 8px;
}

.property-image-next {
    right: 8px;
}

.property-info {
    padding: 20px;
    background: #fff;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.property-zone {
    font-size: 12px;
    color: #8B4513;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
    font-family: 'Inter', sans-serif;
}

.property-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 8px;
    line-height: 1.3;
    text-align: left;
    font-family: var(--e-global-typography-primary-font-family), Sans-serif;
    min-height: 48px;
    display: flex;
    align-items: flex-start;
}

.property-title a {
    color: var(--e-global-color-primary);
    text-decoration: none;
}

.property-title a:hover {
    color: var(--e-global-color-secondary);
}

.property-price {
    font-size: 24px;
    font-weight: 700;
    color: var(--e-global-color-secondary);
    text-align: left;
    margin-bottom: 12px;
    font-family: var(--e-global-typography-primary-font-family), Sans-serif;
    margin-top: auto;
}

.property-meta-cards {
    display: flex;
    gap: 15px;
    padding-top: 0;
    border-top: none;
}

.property-meta-cards span {
    display: flex;
    align-items: center;
    gap: 5px;
    color: var(--e-global-color-primary);
    font-size: 14px;
    font-family: 'Inter', sans-serif;
    font-weight: 500;
}

.property-meta-cards .icon-small {
    width: 16px;
    height: 16px;
    color: var(--e-global-color-secondary);
}



/* Responsive */

/* ========================================
   VARIANTI
   ======================================== */

/* 
 * Le classi variant-* vengono aggiunte dinamicamente al markup HTML
 * per identificare il contesto (compra, related, archive, agent).
 * 
 * NON vengono definite regole CSS specifiche per variante per garantire
 * che tutte le card abbiano un aspetto IDENTICO in ogni sezione.
 * 
 * Cambiano solo i dati mostrati (info, filtri), NON lo stile visivo.
 * Questo segue il principio: "un componente, uno stile, ovunque".
 */

 .sold-slider-section h2 {
    font-family: var(--e-global-typography-primary-font-family), Sans-serif;
    font-size: var(--e-global-typography-primary-font-size);
    font-weight: var(--e-global-typography-primary-font-weight);
    text-transform: var(--e-global-typography-primary-text-transform);
    color: var(--e-global-color-aa5884c);
    margin-bottom: 10px;
}

.sold-slider-section .section-subtitle {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 10px;
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    line-height: 1.5;
}

.sold-slider-section .properties-nav svg {
    color: #fff;
    transition: color 0.2s;
}
.sold-slider-section .properties-nav:hover svg,
.sold-slider-section .properties-nav:focus svg {
    color: #8B4513;
}

.sold-slider-section .slider-container {
    position: relative;
    min-height: 280px;
}

.sold-slider-section .section-header {
    text-align: center;
}

