/**
 * Residence Detail Page Styles
 * 
 * Main page styles for residence detail pages including section headers.
 * Follows BEM naming convention.
 */

/* ============================================
   SECTION HEADERS
   ============================================ */

.section-header {
    margin-bottom: 5rem;
}

.section-header .section-title {
    font-size: 3rem;
    font-weight: 300;
    color: #111827;
    margin-bottom: 1.5rem;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    letter-spacing: -0.025em;
}

.section-header .section-subtitle {
    font-size: 1.25rem;
    color: #6b7280;
    max-width: 700px;
    margin: 0 auto;
    font-weight: 400;
    line-height: 1.6;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* ============================================
   PROPERTY CARDS (Residence Page Specific)
   ============================================ */

.property-card {
    border: none;
    border-radius: 24px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
    background: white;
    position: relative;
}

.property-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, transparent, rgba(var(--primary-color-rgb, 12, 35, 64), 0.02));
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.property-card:hover::before {
    opacity: 1;
}

.property-card:hover {
    transform: translateY(-12px) scale(1.01);
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.12);
}

.property-image {
    position: relative;
    overflow: hidden;
    height: 250px;
}

.property-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

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

/* ============================================
   DARK MODE SUPPORT
   ============================================ */

[data-theme="dark"] .section-header .section-title {
    color: var(--color-dark-text, #f8fafc);
}

[data-theme="dark"] .section-header .section-subtitle {
    color: var(--color-dark-text-secondary, #cbd5e1);
}

[data-theme="dark"] .property-card {
    background: var(--color-dark-bg-light, #1e293b);
    box-shadow: var(--shadow-dark, 0 4px 24px rgba(0, 0, 0, 0.3));
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

@media (max-width: 768px) {
    .section-header {
        margin-bottom: 3rem;
    }
    
    .section-header .section-title {
        font-size: 2rem;
        margin-bottom: 1rem;
    }
    
    .section-header .section-subtitle {
        font-size: 1rem;
        padding: 0 1rem;
    }
}

