/**
 * Modern Component Styles - HouseSigma Inspired
 * @package RealEstate_Hub_Theme
 */

/* ============================================
   HERO SECTION - Modern, full-screen
   ============================================ */

.hero-section {
    position: relative;
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #5dade2 0%, #3498db 100%);
    background-size: cover;
    background-position: center;
    color: var(--bg-white);
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(93, 173, 226, 0.75) 0%, rgba(52, 152, 219, 0.80) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    margin: 0 auto;
    padding: var(--spacing-2xl) var(--spacing-lg);
    text-align: center;
}

.hero-title {
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 700;
    margin-bottom: var(--spacing-lg);
    color: var(--bg-white);
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    letter-spacing: -0.02em;
    line-height: 1.1;
}

.hero-subtitle {
    font-size: clamp(1.125rem, 2vw, 1.5rem);
    margin-bottom: var(--spacing-2xl);
    opacity: 0.95;
    font-weight: 400;
    line-height: 1.5;
}

.hero-cta {
    margin-bottom: var(--spacing-2xl);
}

.hero-search-box {
    background: var(--bg-white);
    padding: var(--spacing-2xl);
    border-radius: var(--radius-2xl);
    box-shadow: var(--shadow-2xl);
    max-width: 800px;
    margin: 0 auto;
}

.hero-search-box h3 {
    color: var(--text-primary);
    margin-bottom: var(--spacing-lg);
    font-size: 1.5rem;
}

/* ============================================
   PROPERTY CARDS - Modern card design
   ============================================ */

.properties-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: var(--spacing-2xl);
    margin-top: var(--spacing-2xl);
}

.property-card {
    background: var(--bg-white);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all var(--transition-base);
    cursor: pointer;
    position: relative;
}

.property-card:hover {
    box-shadow: var(--shadow-2xl);
    transform: translateY(-8px);
}

.property-card-image {
    position: relative;
    width: 100%;
    height: 240px;
    overflow: hidden;
    background: var(--bg-gray);
}

.property-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

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

.property-badge {
    position: absolute;
    top: var(--spacing-md);
    right: var(--spacing-md);
    background: var(--primary-color);
    color: var(--bg-white);
    padding: var(--spacing-sm) var(--spacing-md);
    border-radius: var(--radius-full);
    font-size: 0.813rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    box-shadow: var(--shadow-lg);
}

.property-badge.featured {
    background: var(--secondary-color);
}

.property-badge.new {
    background: var(--success);
}

.property-favorite {
    position: absolute;
    top: var(--spacing-md);
    left: var(--spacing-md);
    background: var(--bg-white);
    color: var(--text-muted);
    width: 40px;
    height: 40px;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    cursor: pointer;
    transition: all var(--transition-fast);
    box-shadow: var(--shadow-sm);
}

.property-favorite:hover {
    color: var(--secondary-color);
    transform: scale(1.1);
}

.property-favorite.active {
    color: var(--secondary-color);
}

.property-card-body {
    padding: var(--spacing-lg);
}

.property-price {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: var(--spacing-sm);
}

.property-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: var(--spacing-sm);
    line-height: 1.3;
}

.property-address {
    color: var(--text-light);
    font-size: 0.938rem;
    margin-bottom: var(--spacing-md);
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
}

.property-features {
    display: flex;
    gap: var(--spacing-lg);
    padding-top: var(--spacing-md);
    border-top: 1px solid var(--border-light);
}

.property-feature {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.property-feature i {
    color: var(--primary-color);
}

/* ============================================
   AGENT CARDS
   ============================================ */

.agents-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: var(--spacing-xl);
    margin-top: var(--spacing-xl);
}

.agent-card {
    background: var(--bg-white);
    border-radius: var(--radius-xl);
    padding: var(--spacing-xl);
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-base);
}

.agent-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}

.agent-photo {
    width: 120px;
    height: 120px;
    margin: 0 auto var(--spacing-lg);
    border-radius: var(--radius-full);
    overflow: hidden;
    border: 4px solid var(--primary-light);
}

.agent-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.agent-name {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: var(--spacing-xs);
    color: var(--text-primary);
}

.agent-specialties {
    color: var(--primary-color);
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: var(--spacing-md);
}

.agent-bio {
    color: var(--text-secondary);
    font-size: 0.938rem;
    margin-bottom: var(--spacing-lg);
    line-height: 1.6;
}

.agent-contact {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

.agent-contact a {
    color: var(--text-light);
    font-size: 0.875rem;
    transition: color var(--transition-fast);
}

.agent-contact a:hover {
    color: var(--primary-color);
}

/* ============================================
   TESTIMONIALS
   ============================================ */

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: var(--spacing-2xl);
    margin-top: var(--spacing-2xl);
}

.testimonial-card {
    background: var(--bg-white);
    padding: var(--spacing-2xl);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
    position: relative;
    transition: all var(--transition-base);
}

.testimonial-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}

.testimonial-card::before {
    content: '"';
    position: absolute;
    top: var(--spacing-md);
    left: var(--spacing-lg);
    font-size: 4rem;
    color: var(--primary-light);
    opacity: 0.2;
    font-family: Georgia, serif;
    line-height: 1;
}

.rating {
    display: flex;
    gap: var(--spacing-xs);
    margin-bottom: var(--spacing-md);
    font-size: 1.25rem;
    color: var(--warning);
}

.testimonial-text {
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: var(--spacing-lg);
    font-style: italic;
}

.client-name {
    color: var(--text-primary);
    font-weight: 600;
    margin-bottom: var(--spacing-xs);
}

.client-info {
    color: var(--text-light);
    font-size: 0.875rem;
}

/* ============================================
   SEARCH FORMS - Modern design
   ============================================ */

.property-search-form {
    background: var(--bg-white);
    padding: var(--spacing-2xl);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
}

.search-form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-lg);
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    margin-bottom: var(--spacing-xs);
    font-weight: 500;
    color: var(--text-primary);
    font-size: 0.875rem;
}

.search-submit {
    grid-column: 1 / -1;
    padding: 1rem;
    font-size: 1rem;
}

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

.section-header {
    text-align: center;
    margin-bottom: var(--spacing-3xl);
}

.section-header h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: var(--spacing-md);
    color: var(--text-primary);
}

.section-header p {
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: var(--text-light);
    max-width: 700px;
    margin: 0 auto;
}

.section-header.left {
    text-align: left;
}

.section-cta {
    text-align: center;
    margin-top: var(--spacing-2xl);
}

/* ============================================
   STATS / FEATURES SECTION
   ============================================ */

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--spacing-2xl);
}

.stat-card {
    text-align: center;
    padding: var(--spacing-xl);
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: var(--spacing-sm);
    line-height: 1;
}

.stat-label {
    color: var(--text-secondary);
    font-size: 1rem;
}

/* ============================================
   MAP SECTION
   ============================================ */

.property-map-section {
    background: var(--bg-light);
    padding: var(--spacing-3xl) 0;
}

.map-container {
    height: 600px;
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

/* ============================================
   PAGE LAYOUTS
   ============================================ */

.content-area {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-2xl);
}

.content-area.has-sidebar {
    grid-template-columns: 1fr 350px;
}

@media (max-width: 992px) {
    .content-area.has-sidebar {
        grid-template-columns: 1fr;
    }
}

.sidebar {
    background: var(--bg-light);
    padding: var(--spacing-xl);
    border-radius: var(--radius-xl);
    height: fit-content;
    position: sticky;
    top: calc(var(--spacing-xl) + 80px);
}

.widget {
    margin-bottom: var(--spacing-2xl);
}

.widget:last-child {
    margin-bottom: 0;
}

.widget-title {
    font-size: 1.25rem;
    margin-bottom: var(--spacing-lg);
    color: var(--text-primary);
    font-weight: 600;
}

/* ============================================
   ENTRY CONTENT / BLOG POSTS
   ============================================ */

.entry-header {
    margin-bottom: var(--spacing-2xl);
}

.entry-title {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: var(--spacing-md);
}

.entry-meta {
    color: var(--text-light);
    font-size: 0.938rem;
    display: flex;
    gap: var(--spacing-md);
    flex-wrap: wrap;
}

.entry-content {
    line-height: 1.8;
}

.entry-content h2,
.entry-content h3,
.entry-content h4 {
    margin-top: var(--spacing-2xl);
    margin-bottom: var(--spacing-md);
}

.entry-content img {
    border-radius: var(--radius-lg);
    margin: var(--spacing-xl) 0;
}

.entry-content ul,
.entry-content ol {
    margin: var(--spacing-lg) 0;
    padding-left: var(--spacing-xl);
}

.entry-content li {
    margin-bottom: var(--spacing-sm);
}

/* ============================================
   PAGINATION
   ============================================ */

.pagination {
    display: flex;
    gap: var(--spacing-sm);
    justify-content: center;
    margin-top: var(--spacing-2xl);
    flex-wrap: wrap;
}

.page-numbers {
    min-width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    font-weight: 500;
    transition: all var(--transition-fast);
}

.page-numbers:hover {
    background: var(--primary-light);
    color: var(--bg-white);
}

.page-numbers.current {
    background: var(--primary-color);
    color: var(--bg-white);
}

/* ============================================
   RESPONSIVE OVERRIDES
   ============================================ */

@media (max-width: 768px) {
    .hero-section {
        min-height: 60vh;
    }

    .hero-search-box {
        padding: var(--spacing-lg);
    }

    .properties-grid {
        grid-template-columns: 1fr;
    }

    .agents-grid {
        grid-template-columns: 1fr;
    }

    .testimonials-grid {
        grid-template-columns: 1fr;
    }

    .search-form-grid {
        grid-template-columns: 1fr;
    }

    .map-container {
        height: 400px;
    }

    .stats-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 480px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }

    .property-features {
        flex-direction: column;
        gap: var(--spacing-sm);
    }
}
