@charset "UTF-8";

/* Service Card (Property Listing) */
.card {
    background: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
    display: flex;
    flex-direction: column;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

/* --- Sold Listings Style (Best Option) --- */

/* 1. Card Container */
.card.sold {
    background-color: #f8f9fa;
    border: 1px solid #e9ecef;
    pointer-events: none;
}

/* 2. Make image grayscale and slightly transparent */
.card.sold img {
    filter: grayscale(100%);
    opacity: 0.7; 
    transition: none;
}

/* 3. Make text lighter (reduce contrast) */
.card.sold .card__title, 
.card.sold .card__price, 
.card.sold p {
    color: #adb5bd;
}

/* 4. IMPORTANT: Keep the "Sold" badge bright and visible */
.card.sold .card__badge {
    opacity: 1;
    background: rgba(220, 53, 69, 0.15);
    color: #dc3545;
    font-weight: 800;
    border: 1px solid rgba(220, 53, 69, 0.2);
}

/* 5. Disable hover effects (shadows and lift) so the card remains static */
.card.sold:hover {
    transform: none;
    box-shadow: none; 
}

.card__content {
    padding: var(--space-4);
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

/* Pragmatic BEM: targeting descendants to avoid touching every H3/P in HTML */
.card__content h3,
.card__title {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: var(--text-dark);
}

.card__price {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.card__content p,
.card__text {
    margin-bottom: 5px;
    color: var(--text-gray);
    font-size: 0.95rem;
}

.card__badge {
    margin-top: auto;
    color: #dc3545;
    font-weight: bold;
    text-align: center;
    padding: var(--space-2);
    background: rgba(220, 53, 69, 0.1);
    border-radius: 5px;
}

/* Blog Card */
.blog-card {
    background: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: transform var(--transition-fast);
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.blog-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.blog-content {
    padding: var(--space-4);
}

.blog-date {
    font-size: 0.85rem;
    color: #888;
    margin-bottom: 10px;
    display: block;
}

.blog-card h3 {
    margin-bottom: 10px;
    color: var(--text-dark);
}

.blog-card p {
    color: var(--text-gray);
    line-height: 1.5;
}

/* Review Item (Testimonials) */
.review-item {
    background: var(--white);
    padding: var(--space-5);
    border-radius: 10px;
    box-shadow: var(--shadow-sm);
    transition: transform var(--transition-fast);
}

.review-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.review-item p {
    font-style: italic;
    margin-bottom: 20px;
    color: #555;
}

/* Stat Item (About Page) */
.stat-item {
    text-align: center;
    padding: var(--space-4);
    background: var(--white);
    border-radius: 10px;
    box-shadow: var(--shadow-sm);
}

/* Contact Card */
.contact-card {
    background: var(--white);
    padding: var(--space-6);
    border-radius: 10px;
    box-shadow: var(--shadow-sm);
    text-align: center;
    transition: transform var(--transition-fast);
}

.contact-card:hover {
    transform: translateY(-5px);
}

.contact-card h3 {
    margin-bottom: 15px;
    color: var(--text-dark);
}

.contact-card p,
.contact-card a {
    color: var(--text-gray);
    font-size: 1.1rem;
    text-decoration: none;
    line-height: 1.6;
}

.contact-card a:hover {
    color: var(--primary-color);
}