/* --- Emaar-Inspired Theme (Concept 2) --- */
:root {
    --primary: #1a1a1a;
    --accent: #bfa37c;
    /* Subtle Gold/Beige */
    --bg-white: #ffffff;
    --bg-light: #f9f9f9;
    --text-main: #2c3e50;
    --text-light: #7f8c8d;
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Montserrat', sans-serif;
    --font-logo: 'Cinzel', serif;
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    color: var(--text-main);
    background-color: var(--bg-white);
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

/* --- Header --- */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 1.5rem 0;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.7), transparent);
    transition: background 0.3s, padding 0.3s;
}

.header.scrolled {
    background: #fff;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
    padding: 1rem 0;
}

.header.scrolled .logo-text,
.header.scrolled .nav-link,
.header.scrolled .action-icon,
.header.scrolled .lang-selector {
    color: var(--text-main);
}

.header.scrolled .nav-link::after {
    background-color: var(--text-main);
}

.header.scrolled .btn-contact {
    background-color: #002147;
    color: #fff;
    border-color: #002147;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Logo Styles */
.logo-link {
    display: flex;
    align-items: center;
    gap: 1rem;
    line-height: 0;
}

.nav-logo {
    height: 50px;
    width: auto;
    max-width: 150px;
    object-fit: contain;
    transition: opacity 0.3s ease;
}

.header-logo-text {
    font-family: var(--font-logo);
    font-size: 1.8rem;
    letter-spacing: 2px;
    color: #fff;
    transition: color 0.3s ease;
    line-height: 1;
}

.header.scrolled .nav-logo {
    opacity: 1;
    /* Original colors when scrolled */
}

.header.scrolled .header-logo-text {
    color: var(--text-main);
}

.nav-menu {
    display: flex;
    gap: 2.5rem;
}

.nav-link {
    color: #fff;
    font-weight: 500;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    padding-bottom: 5px;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #fff;
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.lang-selector {
    color: #fff;
    font-size: 0.85rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.3rem;
    font-weight: 600;
}

.action-icon {
    color: #fff;
    font-size: 1.3rem;
}

.btn-contact {
    padding: 0.7rem 1.8rem;
    border: 1px solid #fff;
    color: #fff;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    transition: var(--transition);
}

.btn-contact:hover {
    background-color: #fff;
    color: var(--text-main);
}

.mobile-toggle {
    display: none;
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
}

/* --- Hero Section --- */
.hero {
    position: relative;
    height: 100vh;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
    overflow: hidden;
    padding-bottom: 5vh;
}

.hero-video-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.hero-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
}

/* Stadium Info Box */
.stadium-info-box {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    max-width: 800px;
    width: 90%;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    padding: 2.5rem;
    z-index: 10;
    animation: fadeInFromLeft 1s ease-out forwards;
    opacity: 0;
    display: none;
}

.stadium-info-box.hide {
    animation: fadeOutToRight 1s ease-out forwards;
}

.stadium-info-content h3 {
    color: #fff;
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    text-align: center;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.stadium-info-content p {
    color: #fff;
    font-size: 1rem;
    line-height: 1.8;
    margin-bottom: 1rem;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

.stadium-info-content p:last-child {
    margin-bottom: 0;
}

.stadium-info-content strong {
    color: #ffd700;
    font-weight: 600;
}

@keyframes fadeInFromLeft {
    from {
        opacity: 0;
        transform: translate(-150%, -50%);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%);
    }
}

@keyframes fadeOutToRight {
    from {
        opacity: 1;
        transform: translate(-50%, -50%);
    }
    to {
        opacity: 0;
        transform: translate(150%, -50%);
    }
}

/* Stadium Design Images */
.stadium-design-img {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 600px;
    height: 400px;
    object-fit: cover;
    border-radius: 20px;
    filter: grayscale(70%) brightness(0.8);
    opacity: 0;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    border: 2px solid rgba(255, 255, 255, 0.2);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    z-index: 5;
}

#stadium-img-1 {
    transform: translate(-60%, -50%) rotateY(-15deg) scale(0.85);
    transform-origin: right center;
}

#stadium-img-2 {
    transform: translate(-40%, -50%) rotateY(15deg) scale(0.85);
    transform-origin: left center;
    z-index: 6;
}

.stadium-design-img.show-perspective {
    animation: perspectiveSlideIn 1.2s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

#stadium-img-1.show-perspective {
    animation-delay: 0.2s;
}

#stadium-img-2.show-perspective {
    animation-delay: 0.5s;
}

.stadium-design-img.hide-perspective {
    animation: perspectiveSlideOut 1s ease-in forwards;
}

.stadium-design-img:hover {
    filter: grayscale(0%) brightness(1);
    transform: translate(-50%, -50%) rotateY(0deg) scale(1) !important;
    z-index: 10 !important;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.7);
}

@keyframes perspectiveSlideIn {
    0% {
        opacity: 0;
        transform: translate(-50%, -30%) scale(0.5) rotateX(-20deg);
    }
    100% {
        opacity: 0.7;
        transform: translate(-50%, -50%) scale(1) rotateX(0deg);
    }
}

@keyframes perspectiveSlideOut {
    0% {
        opacity: 0.7;
        transform: translate(-50%, -50%) scale(1);
    }
    100% {
        opacity: 0;
        transform: translate(-50%, -80%) scale(0.3);
    }
}

.hero-content {
    width: 100%;
    max-width: 1200px;
    padding: 0 2rem;
    z-index: 1;
    display: flex;
    justify-content: center;
}

/* --- Advanced Search Bar --- */
.advanced-search-container {
    width: 100%;
    max-width: 1100px;
    margin-bottom: 3rem;
}

.search-top-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.search-tabs {
    display: flex;
    gap: 0.5rem;
}

.search-tab {
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    border: none;
    padding: 0.6rem 1.5rem;
    font-family: var(--font-body);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    backdrop-filter: blur(20px);
    transition: var(--transition);
    font-size: 0.8rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.search-tab.active,
.search-tab:hover {
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(25px);
    color: #fff;
    border-color: rgba(255, 255, 255, 0.4);
}

/* Text Search Input */
.text-search-wrapper {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(20px);
    padding: 0.4rem 1rem;
    border-radius: 2px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    width: 300px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.text-search-wrapper i {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.9rem;
}

.text-search-input {
    border: none;
    background: transparent;
    width: 100%;
    font-family: var(--font-body);
    font-size: 0.9rem;
    color: #fff;
    outline: none;
}

.text-search-input::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.advanced-search-bar {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(25px);
    padding: 0;
    display: flex;
    align-items: stretch;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
    border-radius: 2px;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.search-item {
    flex: 1;
    padding: 1rem 1.5rem;
    /* Reduced padding */
    border-right: 1px solid rgba(255, 255, 255, 0.2);
    cursor: pointer;
    position: relative;
    /* For dropdown positioning */
    transition: background-color 0.3s;
}

.search-item:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

/* Bridge to prevent hover gap */
.search-item::after {
    content: '';
    position: absolute;
    bottom: -10px;
    /* Bridge gap */
    left: 0;
    width: 100%;
    height: 10px;
    background: transparent;
}

.search-label {
    font-size: 0.65rem;
    color: rgba(255, 255, 255, 0.85);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.2rem;
}

.search-value {
    font-size: 0.95rem;
    font-weight: 600;
    color: #fff;
}

.search-item i {
    position: absolute;
    right: 1.5rem;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.8rem;
    transition: transform 0.3s;
}

.search-item:hover i {
    transform: translateY(-50%) rotate(180deg);
}

.search-divider {
    display: none;
}

.search-btn-large {
    background: rgba(107, 114, 128, 0.3);
    backdrop-filter: blur(20px);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.3);
    width: 80px;
    /* Slightly smaller width */
    font-size: 1.3rem;
    cursor: pointer;
    transition: var(--transition);
}

.search-btn-large:hover {
    background: rgba(107, 114, 128, 0.5);
    backdrop-filter: blur(25px);
    border-color: rgba(255, 255, 255, 0.5);
}

/* --- Dropdown Panels --- */
.dropdown-panel {
    position: absolute;
    bottom: 100%;
    /* Opens upwards */
    left: 0;
    width: 300px;
    background: #f5f5f5;
    box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.15);
    padding: 1rem;
    display: none;
    /* Hidden by default */
    z-index: 100;
    border-radius: 0;
    margin-bottom: 0;
    /* Removed margin to fix gap */
    border: 1px solid #e0e0e0;
    border-bottom: none;
}

/* Show panel on hover/active */
.search-item:hover .dropdown-panel {
    display: block;
    animation: fadeInUp 0.2s ease forwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(5px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Location Panel Specifics */
.location-panel {
    width: 600px;
    display: none;
    padding: 0;
    overflow: hidden;
    border-radius: 0;
}

.search-item:hover .location-panel {
    display: flex;
}

.location-list {
    width: 40%;
    background: #f9f9f9;
    border-right: 1px solid #e0e0e0;
}

.dropdown-item {
    padding: 0.8rem 1.2rem;
    cursor: pointer;
    transition: background 0.2s;
    border-bottom: 1px solid #e5e5e5;
    color: #333;
}

.dropdown-item:hover {
    background: #e8e8e8;
    color: #000;
}

.dropdown-item span {
    display: block;
    font-weight: 600;
    font-size: 0.9rem;
}

.dropdown-item small {
    color: #666;
    font-size: 0.7rem;
}

.map-preview {
    width: 60%;
    position: relative;
    background: #f0f0f0;
}

.map-placeholder {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #666;
    font-size: 0.8rem;
    text-align: center;
    pointer-events: none;
}

/* Type Panel Specifics */
.type-panel {
    width: 500px;
    left: -100px;
}

.type-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.8rem;
}

.type-card {
    position: relative;
    height: 80px;
    /* Reduced height */
    border-radius: 0;
    overflow: hidden;
    cursor: pointer;
}

.type-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.type-card span {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 0.3rem;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    color: #fff;
    font-size: 0.8rem;
    font-weight: 600;
    text-align: center;
}

.type-card:hover img {
    transform: scale(1.1);
}

/* Simple List Panel */
.simple-list {
    width: 100%;
    padding: 0.5rem 0;
}

.simple-list .dropdown-item {
    padding: 0.6rem 1.5rem;
    border: none;
}

/* --- Stats Strip --- */
.stats-strip {
    background-color: #fff;
    padding: 3rem 0;
    border-bottom: 1px solid #eee;
}

.stats-strip .container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 4rem;
    flex-wrap: wrap;
}

.stat-item {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 400;
    color: var(--text-main);
    font-family: var(--font-heading);
}

.stat-label {
    font-size: 0.75rem;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-top: 0.5rem;
    display: block;
}

.stat-divider {
    width: 1px;
    height: 50px;
    background-color: #eee;
}

/* --- General Layout --- */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section {
    padding: 8rem 0;
}

.bg-light {
    background-color: var(--bg-light);
}

/* --- About Section --- */
.about-section {
    background: #fff;
    position: relative;
    overflow: hidden;
}

.about-section::before {
    display: none;
}

.about-hero {
    text-align: center;
    margin-bottom: 6rem;
    position: relative;
}

.about-badge {
    display: inline-block;
    padding: 0.5rem 1.5rem;
    background: #e5e7eb;
    color: #4b5563;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    border-radius: 0;
    margin-bottom: 2rem;
}

.about-main-title {
    font-family: var(--font-logo);
    font-size: 4rem;
    color: var(--text-main);
    margin-bottom: 1rem;
    letter-spacing: 3px;
    font-weight: 400;
}

.about-subtitle {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    color: var(--text-main);
    font-weight: 400;
    margin-bottom: 2rem;
    line-height: 1.4;
}

.about-intro {
    font-size: 1.15rem;
    line-height: 1.9;
    color: var(--text-light);
    max-width: 800px;
    margin: 0 auto;
}

.about-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 3rem;
    margin-bottom: 5rem;
}

.about-feature-card {
    background: #fff;
    padding: 3rem;
    border-radius: 0;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
    border: 1px solid #e5e7eb;
}

.about-feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: #9ca3af;
    transform: scaleY(0);
    transition: transform 0.3s ease;
}

.about-feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 35px rgba(0, 0, 0, 0.12);
}

.about-feature-card:hover::before {
    transform: scaleY(1);
}

.feature-icon {
    width: 70px;
    height: 70px;
    background: #e5e7eb;
    border-radius: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2rem;
    font-size: 2rem;
    color: #4b5563;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.about-feature-card h4 {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    color: var(--text-main);
    margin-bottom: 1.5rem;
    font-weight: 400;
}

.about-feature-card p {
    line-height: 1.9;
    color: var(--text-light);
    margin-bottom: 1.5rem;
}

.about-feature-card p:last-child {
    margin-bottom: 0;
}

.about-feature-card strong {
    color: var(--text-main);
    font-weight: 600;
}

.about-cta {
    background: #f9fafb;
    padding: 5rem 4rem;
    border-radius: 0;
    text-align: center;
    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.08);
    position: relative;
    overflow: hidden;
    margin-top: 5rem;
    border: 1px solid #e5e7eb;
}

.about-cta::before {
    display: none;
}

@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }
    100% {
        background-position: 200% 0;
    }
}

.about-cta::after {
    display: none;
}

.cta-icon-wrapper {
    margin-bottom: 2rem;
    position: relative;
    z-index: 1;
}

.cta-icon-wrapper i {
    font-size: 3.5rem;
    color: #6b7280;
    opacity: 0.9;
    display: inline-block;
    padding: 1.5rem;
    background: #f3f4f6;
    border-radius: 0;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.05);
}

.cta-content {
    position: relative;
    z-index: 1;
}

.about-cta h3 {
    font-family: var(--font-heading);
    font-size: 3rem;
    margin-bottom: 2.5rem;
    font-weight: 400;
    color: var(--text-main);
    position: relative;
    display: inline-block;
    letter-spacing: -0.5px;
}

.about-cta h3::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: linear-gradient(90deg, transparent 0%, #9ca3af 50%, transparent 100%);
    border-radius: 0;
}

.about-cta p {
    font-size: 1.25rem;
    line-height: 2;
    max-width: 900px;
    margin: 0 auto;
    color: var(--text-light);
    font-weight: 400;
    letter-spacing: 0.2px;
}

@media (max-width: 992px) {
    .about-main-title {
        font-size: 3rem;
    }

    .about-subtitle {
        font-size: 1.5rem;
    }

    .about-features {
        grid-template-columns: 1fr;
    }

    .about-feature-card {
        padding: 2rem;
    }

    .about-cta {
        padding: 3.5rem 2rem;
        margin-top: 3rem;
    }

    .about-cta h3 {
        font-size: 2.2rem;
    }

    .about-cta p {
        font-size: 1.1rem;
        line-height: 1.9;
    }

    .cta-icon-wrapper i {
        font-size: 2.5rem;
        padding: 1.2rem;
    }

    .stats-strip .container {
        gap: 2rem;
    }
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 4rem;
}

.section-header.center {
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.section-title {
    font-size: 2.5rem;
    font-family: var(--font-heading);
    color: var(--text-main);
    font-weight: 400;
}

.section-subtitle {
    color: var(--text-light);
    margin-top: 1rem;
    font-size: 1.1rem;
}

.view-all-link {
    font-size: 0.8rem;
    font-weight: 600;
    border-bottom: 1px solid var(--text-main);
    padding-bottom: 5px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* --- Project Cards (Expandable) --- */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2.5rem;
    transition: all 0.5s ease;
}

.project-card {
    background: #fff;
    transition: all 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
    cursor: pointer;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    position: relative;
}

/* Hidden State */
.project-card.hidden {
    display: none;
}

/* Expanded State */
.project-card.expanded {
    grid-column: 1 / -1;
    /* Take full width */
    display: flex;
    flex-direction: row;
    /* Keep side by side */
    height: 550px;
    /* Reduced height */
    cursor: default;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.15);
}

.btn-close-floating {
    position: absolute;
    bottom: 20px;
    left: 20px;
    background: rgba(255, 255, 255, 0.9);
    color: var(--primary);
    border: none;
    padding: 0.6rem 1.2rem;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    z-index: 10;
    display: none;
    /* Hidden by default */
    align-items: center;
    gap: 0.5rem;
    border-radius: 2px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
}

.btn-close-floating:hover {
    background: #fff;
    transform: translateY(-2px);
}

.project-card.expanded .btn-close-floating {
    display: flex;
}

.project-card.expanded .card-image-wrapper {
    width: 50%;
    height: 100%;
}

.project-card.expanded .card-content {
    display: none;
    /* Hide summary content in expanded view */
}

.project-card.expanded .card-details {
    display: block;
    /* Show details */
    width: 50%;
    padding: 3rem;
    overflow-y: auto;
    animation: fadeIn 0.5s ease 0.2s forwards;
    opacity: 0;
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

.project-card:hover:not(.expanded) {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.card-image-wrapper {
    position: relative;
    height: 280px;
    overflow: hidden;
    transition: all 0.5s ease;
}

.card-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s ease;
}

.project-card:hover:not(.expanded) .card-image-wrapper img {
    transform: scale(1.1);
}

.card-overlay {
    position: absolute;
    top: 1rem;
    left: 1rem;
    z-index: 2;
}

.card-category {
    background: rgba(255, 255, 255, 0.9);
    padding: 0.4rem 1rem;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-main);
}

.card-content {
    padding: 2rem;
}

.card-content h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    font-family: var(--font-heading);
    font-weight: 400;
    color: var(--text-main);
}

.location {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.card-meta {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #eee;
}

.meta-item {
    font-size: 0.85rem;
    color: var(--text-light);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.card-action {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.price {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-main);
    font-family: var(--font-heading);
}

.btn-text {
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--accent);
    letter-spacing: 1px;
}

/* --- Expanded Details Styling --- */
.card-details {
    display: none;
}

.details-grid {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    height: 100%;
}

.details-info h4 {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: var(--text-main);
}

.details-info p {
    color: var(--text-light);
    margin-bottom: 2rem;
    line-height: 1.8;
}

.features-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 2rem;
}

.features-list li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-main);
    font-weight: 500;
    font-size: 0.9rem;
}

.features-list li i {
    color: var(--accent);
}

.details-gallery {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-top: auto;
}

.details-gallery img {
    width: 100%;
    height: 120px;
    object-fit: cover;
    border-radius: 2px;
}

.details-map {
    grid-column: 1 / -1;
    /* Full width */
    height: 300px;
    border-radius: 2px;
    overflow: hidden;
    margin-top: 1rem;
}

/* --- Communities Grid --- */
.communities-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    grid-template-rows: 350px 350px;
    gap: 2rem;
}

.community-item {
    position: relative;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: flex-end;
    padding: 3rem;
    color: #fff;
    overflow: hidden;
}

.community-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.6), transparent);
    transition: opacity 0.3s;
}

.community-item:hover::before {
    opacity: 0.4;
}

.community-item.large {
    grid-row: span 2;
}

.community-content {
    position: relative;
    z-index: 1;
}

.community-content h3 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    font-family: var(--font-heading);
    font-weight: 400;
}

/* --- Footer --- */
.footer {
    background-color: #111;
    color: #fff;
    padding: 6rem 0 2rem;
    font-size: 0.9rem;
}

.footer-top {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 4rem;
    margin-bottom: 5rem;
}

.footer-logo-text {
    font-family: var(--font-logo);
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    letter-spacing: 2px;
}

.footer-desc {
    color: #888;
    max-width: 300px;
    line-height: 1.8;
}

.footer-col h4 {
    margin-bottom: 2rem;
    font-size: 0.8rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #fff;
}

.footer-col ul li {
    margin-bottom: 1rem;
}

.footer-col ul li a {
    color: #888;
    transition: color 0.3s;
}

.footer-col ul li a:hover {
    color: #fff;
}

.contact-list li {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: #888;
}

.footer-bottom {
    border-top: 1px solid #222;
    padding-top: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #555;
    font-size: 0.8rem;
}

.social-links a {
    color: #fff;
    margin-left: 2rem;
    font-size: 1.1rem;
    opacity: 0.5;
    transition: opacity 0.3s;
}

.social-links a:hover {
    opacity: 1;
}

/* --- Mobile Responsiveness --- */
@media (max-width: 992px) {
    .nav-menu {
        display: none;
    }

    .mobile-toggle {
        display: block;
    }

    .advanced-search-container {
        width: 90%;
    }

    .search-top-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .text-search-wrapper {
        width: 100%;
    }

    .advanced-search-bar {
        flex-direction: column;
    }

    .search-item {
        border-right: none;
        border-bottom: 1px solid #eee;
        padding: 1rem;
    }

    .search-btn-large {
        width: 100%;
        padding: 1rem;
    }

    .dropdown-panel {
        position: static;
        width: 100%;
        box-shadow: none;
        border: 1px solid #eee;
        display: none !important;
        /* Simplified for mobile */
    }

    .stats-strip .container {
        flex-direction: column;
        gap: 2rem;
    }

    .stat-divider {
        width: 50px;
        height: 1px;
    }

    .communities-grid {
        grid-template-columns: 1fr;
        grid-template-rows: 300px 300px 300px;
    }

    .community-item.large {
        grid-row: span 1;
    }

    .footer-top {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    /* Expanded Card Mobile */
    .project-card.expanded {
        flex-direction: column;
        height: auto;
    }

    .project-card.expanded .card-image-wrapper {
        width: 100%;
        height: 250px;
    }

    .project-card.expanded .card-details {
        width: 100%;
        padding: 1.5rem;
    }
}

/* --- Search Results Modal --- */
.search-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    animation: fadeIn 0.3s ease;
}

.search-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
}

.search-modal-content {
    position: relative;
    background: #fff;
    width: 90%;
    max-width: 1200px;
    max-height: 90vh;
    border-radius: 8px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    z-index: 1;
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.search-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem;
    border-bottom: 1px solid #eee;
}

.search-modal-header h2 {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    color: var(--text-main);
    margin: 0;
}

.search-modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-light);
    cursor: pointer;
    padding: 0.5rem;
    transition: var(--transition);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.search-modal-close:hover {
    background: #f5f5f5;
    color: var(--text-main);
}

.search-modal-body {
    padding: 2rem;
    overflow-y: auto;
    flex: 1;
}

.search-results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

.search-result-item {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 4px;
    overflow: hidden;
    transition: var(--transition);
    cursor: pointer;
}

.search-result-item:hover {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transform: translateY(-5px);
}

.search-result-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.search-result-content {
    padding: 1.5rem;
}

.search-result-content h3 {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    color: var(--text-main);
}

.search-result-content .location {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.search-result-meta {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    font-size: 0.85rem;
    color: var(--text-light);
}

.search-result-price {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--accent);
    font-family: var(--font-heading);
}

.no-results {
    text-align: center;
    padding: 4rem 2rem;
    color: var(--text-light);
}

.no-results i {
    font-size: 4rem;
    margin-bottom: 1rem;
    opacity: 0.3;
}

.no-results h3 {
    font-family: var(--font-heading);
    margin-bottom: 0.5rem;
    color: var(--text-main);
}

@media (max-width: 768px) {
    .search-modal-content {
        width: 95%;
        max-height: 95vh;
    }

    .search-modal-header {
        padding: 1.5rem;
    }

    .search-modal-body {
        padding: 1.5rem;
    }

    .search-results-grid {
        grid-template-columns: 1fr;
    }
}