/* Mira Group Real Estate Styles */
/* Extends the main site styles with RE-specific components */

/* Import Montserrat font */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;600;700&display=swap');

/* Variables (inherited from main site) */
:root {
    --mira-gold: #d9a963;
    --mira-gold-rgb: 217, 169, 99;
    --white: #ffffff;
    --black: #1a1a1a;
    --gray-light: #f8f8f8;
    --gray-medium: #e0e0e0;
    --gray-text: #666666;
    --gray-dark: #333333;
}

/* Real Estate Hero */
.re-hero {
    position: relative;
    height: 70vh;
    min-height: 500px;
    width: 100%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.re-hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 130%;
    background-size: cover;
    background-position: center;
    z-index: 1;
    will-change: transform;
}

.re-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.2) 0%,
        rgba(0, 0, 0, 0.4) 50%,
        rgba(0, 0, 0, 0.7) 100%
    );
    z-index: 2;
}

.re-hero-content {
    position: relative;
    z-index: 3;
    text-align: center;
    padding: 0 24px;
    max-width: 800px;
}

.re-hero-brand {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-bottom: 32px;
    filter: drop-shadow(0 4px 20px rgba(0, 0, 0, 0.6)) drop-shadow(0 2px 8px rgba(0, 0, 0, 0.4));
}

.re-hero-logo {
    width: 80px;
    height: auto;
}

.re-hero-brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.15;
    text-align: left;
}

.re-hero-brand-main {
    font-size: 24px;
    font-weight: 700;
    color: var(--white);
    letter-spacing: 0.15em;
    font-family: 'Montserrat', sans-serif;
}

.re-hero-brand-sub {
    font-size: 16px;
    font-weight: 600;
    color: var(--mira-gold);
    letter-spacing: 0.2em;
    font-family: 'Montserrat', sans-serif;
}

.re-hero-title {
    font-size: 48px;
    font-weight: 600;
    color: var(--white);
    margin-bottom: 16px;
    line-height: 1.2;
}

.re-hero-subtitle {
    font-size: 18px;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
}

/* Search & Filter Section */
.search-section {
    background: var(--white);
    padding: 24px 0;
    border-bottom: 1px solid var(--gray-medium);
    position: sticky;
    top: 70px;
    z-index: 100;
}

.search-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.search-bar {
    display: flex;
    gap: 16px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.search-input-wrapper {
    flex: 1;
    min-width: 250px;
    position: relative;
}

.search-input {
    width: 100%;
    padding: 14px 20px 14px 48px;
    border: 1px solid var(--gray-medium);
    border-radius: 10px;
    font-size: 15px;
    font-family: inherit;
    transition: all 0.2s ease;
}

.search-input:focus {
    outline: none;
    border-color: var(--mira-gold);
    box-shadow: 0 0 0 3px rgba(var(--mira-gold-rgb), 0.1);
}

.search-input-wrapper svg {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    color: var(--gray-text);
}

.search-btn {
    padding: 14px 32px;
    background: var(--mira-gold);
    color: var(--white);
    border: none;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.search-btn:hover {
    background: #c99a55;
    transform: translateY(-2px);
}

/* Filter Tabs */
.filter-tabs {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.filter-tab {
    padding: 10px 20px;
    background: transparent;
    border: 1px solid var(--gray-medium);
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    color: var(--gray-text);
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
}

.filter-tab:hover {
    border-color: var(--mira-gold);
    color: var(--mira-gold);
}

.filter-tab.active {
    background: var(--mira-gold);
    border-color: var(--mira-gold);
    color: var(--white);
}

/* Property Listings Section */
.listings-section {
    padding: 60px 24px;
    background: var(--gray-light);
    min-height: 600px;
}

.listings-container {
    max-width: 1200px;
    margin: 0 auto;
}

.listings-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
}

.listings-title {
    font-size: 28px;
    font-weight: 600;
    color: var(--black);
}

.listings-title span {
    color: var(--mira-gold);
}

.listings-count {
    font-size: 14px;
    color: var(--gray-text);
}

/* Property Grid */
.property-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

/* Property Card (extended from main site) */
.property-card {
    background: var(--white);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
    cursor: pointer;
}

.property-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.12);
}

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

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

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

.property-badge {
    position: absolute;
    top: 16px;
    left: 16px;
    padding: 6px 14px;
    background: var(--mira-gold);
    color: var(--white);
    font-size: 12px;
    font-weight: 600;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.property-badge.sold {
    background: var(--gray-dark);
}

.property-badge.rent {
    background: #2d7d46;
}

.property-save {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.property-save:hover {
    background: var(--white);
    transform: scale(1.1);
}

.property-save svg {
    width: 18px;
    height: 18px;
    color: var(--gray-text);
    transition: color 0.2s ease;
}

.property-save:hover svg,
.property-save.active svg {
    color: #e74c3c;
    fill: #e74c3c;
}

.property-info {
    padding: 20px;
}

.property-price {
    font-size: 20px;
    font-weight: 600;
    color: var(--mira-gold);
    margin-bottom: 8px;
}

.property-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--black);
    margin-bottom: 8px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.property-location {
    font-size: 14px;
    color: var(--gray-text);
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 16px;
}

.property-location svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.property-features {
    display: flex;
    gap: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--gray-medium);
}

.property-feature {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: var(--gray-text);
}

.property-feature svg {
    width: 16px;
    height: 16px;
    color: var(--mira-gold);
}

/* Services Section */
.services-section {
    padding: 80px 24px;
    background: var(--white);
}

.services-container {
    max-width: 1200px;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: 48px;
}

.section-title {
    font-size: 32px;
    font-weight: 600;
    color: var(--black);
    margin-bottom: 12px;
}

.section-title span {
    color: var(--mira-gold);
}

.section-subtitle {
    font-size: 16px;
    color: var(--gray-text);
    max-width: 600px;
    margin: 0 auto;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.service-item {
    background: var(--gray-light);
    border-radius: 16px;
    padding: 32px 24px;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
}

.service-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
}

.service-icon {
    width: 64px;
    height: 64px;
    background: rgba(var(--mira-gold-rgb), 0.1);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.service-icon svg {
    width: 28px;
    height: 28px;
    color: var(--mira-gold);
}

.service-name {
    font-size: 16px;
    font-weight: 600;
    color: var(--black);
    margin-bottom: 8px;
}

.service-desc {
    font-size: 14px;
    color: var(--gray-text);
    line-height: 1.5;
}

/* CTA Section */
.cta-section {
    padding: 100px 24px;
    background: var(--black);
    position: relative;
    overflow: hidden;
}

.cta-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0.3;
}

.cta-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.cta-title {
    font-size: 36px;
    font-weight: 600;
    color: var(--white);
    margin-bottom: 16px;
}

.cta-title span {
    color: var(--mira-gold);
}

.cta-text {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 32px;
    line-height: 1.6;
}

.cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 16px 32px;
    background: var(--mira-gold);
    color: var(--white);
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.cta-btn:hover {
    background: #c99a55;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(var(--mira-gold-rgb), 0.3);
}

.cta-btn svg {
    width: 16px;
    height: 16px;
    transition: transform 0.3s ease;
}

.cta-btn:hover svg {
    transform: translateX(4px);
}

/* Contact Section */
.contact-section {
    padding: 80px 24px;
    background: var(--gray-light);
}

.contact-container {
    max-width: 800px;
    margin: 0 auto;
}

.contact-form {
    background: var(--white);
    padding: 40px;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

.form-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group.full {
    grid-column: 1 / -1;
}

.form-label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: var(--black);
    margin-bottom: 8px;
}

.form-input,
.form-textarea {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid var(--gray-medium);
    border-radius: 8px;
    font-size: 15px;
    font-family: inherit;
    transition: all 0.2s ease;
}

.form-input:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--mira-gold);
    box-shadow: 0 0 0 3px rgba(var(--mira-gold-rgb), 0.1);
}

.form-textarea {
    min-height: 120px;
    resize: vertical;
}

.form-submit {
    width: 100%;
    padding: 16px;
    background: var(--mira-gold);
    color: var(--white);
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.form-submit:hover {
    background: #c99a55;
}

/* Responsive */
@media (max-width: 1024px) {
    .property-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .re-hero-brand {
        gap: 12px;
        margin-bottom: 24px;
    }
    
    .re-hero-logo {
        width: 60px;
    }
    
    .re-hero-brand-main {
        font-size: 18px;
    }
    
    .re-hero-brand-sub {
        font-size: 13px;
    }
    
    .re-hero-title {
        font-size: 32px;
    }
    
    .re-hero-subtitle {
        font-size: 16px;
    }
    
    .search-bar {
        flex-direction: column;
    }
    
    .search-input-wrapper {
        min-width: 100%;
    }
    
    .filter-tabs {
        overflow-x: auto;
        flex-wrap: nowrap;
        padding-bottom: 8px;
    }
    
    .filter-tab {
        white-space: nowrap;
    }
    
    .property-grid {
        grid-template-columns: 1fr;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .listings-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .contact-form {
        padding: 24px;
    }
    
    .cta-title {
        font-size: 28px;
    }
}

@media (max-width: 480px) {
    .re-hero {
        height: 60vh;
        min-height: 400px;
    }
    
    .re-hero-title {
        font-size: 28px;
    }
    
    .section-title {
        font-size: 24px;
    }
}
