/* ===================================================================
   CSS DEDYKOWANY DLA STRONY ZREALIZOWANYCH PROJEKTÓW (zrealizowane.php)
   Atlas Nieruchomości - Zrealizowane projekty
   =================================================================== */

/* SEKCJA ZREALIZOWANYCH PROJEKTÓW */
.sold-properties-section {
    padding: 60px 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.sold-properties-section .section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 15px;
    text-align: center;
}

.sold-properties-section .section-subtitle {
    font-size: 1.2rem;
    color: #6c757d;
    margin-bottom: 40px;
    text-align: center;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Grid sprzedanych nieruchomości */
.sold-properties-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

/* Karty sprzedanych nieruchomości */
.sold-property-card {
    background-color: #fff;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.sold-property-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    border-radius: 15px 15px 0 0;
}

.sold-property-card:hover {
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

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

.sold-property-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.sold-property-card:hover .sold-property-image img {
    transform: scale(1.02);
}

.sold-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: #28a745;
    color: white;
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    box-shadow: 0 2px 10px rgba(40, 167, 69, 0.3);
}

.sold-property-info {
    padding: 25px;
}

.sold-property-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 10px;
    line-height: 1.3;
}

.sold-property-location {
    color: #6c757d;
    font-size: 0.95rem;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.sold-property-price {
    font-size: 1.4rem;
    font-weight: 700;
    color: #28a745;
    margin-bottom: 15px;
}

.sold-property-details {
    display: flex;
    gap: 20px;
    margin-bottom: 15px;
    font-size: 0.9rem;
    color: #6c757d;
}

.sold-property-details span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.sold-date {
    font-size: 0.85rem;
    color: #adb5bd;
    font-style: italic;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid #f1f3f4;
}

/* NAKŁADKA ZREALIZOWANE */
.sold-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    background: rgba(0, 0, 0, 0.4);
}

.sold-text {
    color: white;
    font-size: 1.4rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    padding: 10px 20px;
    border: 2px solid rgba(255, 255, 255, 0.8);
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.3);
}

/* Modyfikacje dla sprzedanych ofert */
.sold-property .offer-price-badge {
    color: white;
}

.sold-status {
    color: white;
    padding: 10px 20px;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.3);
}

/* RESPONSYWNOŚĆ */
@media (max-width: 992px) {
    .sold-properties-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 25px;
    }
}

@media (max-width: 768px) {
    .sold-properties-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .sold-properties-section .section-title {
        font-size: 2rem;
    }
    
    .sold-property-info {
        padding: 20px;
    }
    
    .sold-property-title {
        font-size: 1.2rem;
    }
    
    .sold-property-price {
        font-size: 1.2rem;
    }
    
    .sold-property-details {
        flex-direction: column;
        gap: 10px;
    }
    
    .sold-text {
        font-size: 1.2rem;
        letter-spacing: 1px;
        padding: 8px 16px;
    }
}

@media (max-width: 480px) {
    .sold-property-image {
        height: 180px;
    }
    
    .sold-property-info {
        padding: 15px;
    }
    
    .sold-badge {
        font-size: 0.8rem;
        padding: 6px 12px;
    }
    
    .sold-text {
        font-size: 1rem;
        letter-spacing: 0.5px;
        padding: 6px 12px;
    }
}
