/**
 * improvements.css - Property Detail Page Visual Hierarchy Improvements
 * 
 * Enhanced spacing, typography, and visual hierarchy for property detail page.
 * Applied after refactoring to improve overall readability and aesthetics.
 */

/* ==========================================================================
   Property Section Spacing
   ========================================================================== */

.property-section {
    margin-bottom: 2rem;
    padding: 1.5rem 0;
    border-bottom: 1px solid var(--color-border, #e5e7eb);
}

.property-section:last-child {
    border-bottom: none;
}

/* ==========================================================================
   Section Titles - Improved Visual Hierarchy
   ========================================================================== */

.section-title {
    font-size: clamp(1.25rem, 2.5vw, 1.5rem);
    font-weight: 700;
    margin-bottom: 1.25rem;
    color: var(--primary-color, #0c2340);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    line-height: 1.3;
    letter-spacing: -0.02em;
}

.section-title i {
    color: var(--accent-color, #007bff);
    font-size: 1.25rem;
    flex-shrink: 0;
}

/* ==========================================================================
   Typography Improvements
   ========================================================================== */

.property-description {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--color-text, #333);
    margin-bottom: 1.5rem;
}

.property-description p {
    margin-bottom: 1rem;
}

.property-description p:last-child {
    margin-bottom: 0;
}

/* ==========================================================================
   Features Grid - Improved Spacing
   ========================================================================== */

/* REMOVED: Feature styles consolidated to info-components.css
 * All .features-grid, .feature-item styles moved to info-components.css
 * to prevent conflicts and ensure single source of truth
 */

/* ==========================================================================
   Map Container - Better Proportions
   ========================================================================== */

#property-map {
    width: 100%;
    height: 400px;
    border-radius: var(--radius-lg, 12px);
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--color-border, #e5e7eb);
}

/* ==========================================================================
   Sidebar Improvements
   ========================================================================== */

.property-sidebar {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.sidebar-card {
    background: var(--color-background, #fff);
    border: 1px solid var(--color-border, #e5e7eb);
    border-radius: var(--radius-lg, 12px);
    padding: 1.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: box-shadow 0.3s ease;
}

.sidebar-card:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.sidebar-card h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--primary-color, #0c2340);
}

/* ==========================================================================
   Responsive Adjustments
   ========================================================================== */

/* Tablet */
@media (max-width: 992px) {
    .property-section {
        margin-bottom: 1.5rem;
        padding: 1.25rem 0;
    }
    
    .section-title {
        font-size: 1.25rem;
        margin-bottom: 1rem;
    }
    
    #property-map {
        height: 350px;
    }
    
    /* REMOVED: Feature grid responsive styles moved to info-components.css */
}

/* Mobile */
@media (max-width: 768px) {
    .property-section {
        margin-bottom: 1.25rem;
        padding: 1rem 0;
    }
    
    .section-title {
        font-size: 1.15rem;
        margin-bottom: 0.875rem;
        gap: 0.5rem;
    }
    
    .section-title i {
        font-size: 1.1rem;
    }
    
    #property-map {
        height: 300px;
        border-radius: var(--radius-md, 8px);
    }
    
    /* REMOVED: Feature grid mobile styles moved to info-components.css */
    
    .sidebar-card {
        padding: 1.25rem;
    }
}

/* Small Mobile */
@media (max-width: 576px) {
    .property-section {
        margin-bottom: 1rem;
        padding: 0.75rem 0;
    }
    
    #property-map {
        height: 250px;
    }
}

/* ==========================================================================
   Dark Mode Support
   ========================================================================== */

html[data-theme="dark"] .property-section {
    border-bottom-color: var(--color-dark-border, #374151);
}

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

html[data-theme="dark"] .section-title i {
    color: var(--accent-color-dark, #3b82f6);
}

/* REMOVED: Feature dark mode styles moved to info-components.css */

html[data-theme="dark"] .sidebar-card {
    background: var(--color-dark-bg, #111827);
    border-color: var(--color-dark-border, #374151);
}

html[data-theme="dark"] .sidebar-card h3 {
    color: var(--color-text-dark, #f9fafb);
}

