
:root {
    /* Light Theme */
    --primary-color: #d59553;  
    --primary-color-hover: #d59553;
    --secondary-color: #2c3e50; 
    --secondary-color-hover: #1a252f;
    --accent-color: #ff8c00; 

    --bg-color: #f8f9fa;  
    --bg-section-alt: #ffffff;  
    --bg-section-primary: #eef3f9; 
    
    --text-color: #5a6a7a;
    --heading-color: #2c3e50; 
    --text-dark: #2c3e50;  
    --text-navlink: #495057;  
    --text-light: #7f8c9a; 
    --border-color: #dee2e6;
    --input-bg: #ffffff;
    --input-border-color: #ced4da;
    --card-shadow: 0 8px 25px rgba(0, 0, 0, 0.07);
    --card-shadow-hover: 0 12px 30px rgba(0, 0, 0, 0.1);
    --text-muted: #7f8c9a;
    --placeholder-icon-color: #adb5bd;
    --secondary-btn-bg: var(--secondary-color); 


    --nav-link-color: #495057;
    --nav-link-hover-color: var(--primary-color);
    --footer-bg: var(--secondary-color);
    --footer-text-color: #bdc3c7;
    --footer-link-hover-color: #ffffff;
    --footer-heading-color: #ffffff;  
    
    --project-faq-border: #dcdcdc;
    --project-faq-border: #555555;
}

html[data-theme="dark"] {
    --primary-color: #d59553;  
    --primary-color-hover: #d59553;
    --secondary-color: #ecf0f1; 
    --accent-color: #f39c12;  
    --bg-color: #1c1e22; 
    --bg-section-alt: #282c31;  
    --bg-section-primary: #22262a;  
    
    --text-color: #adb5bd;
    --heading-color: #ffffff;  
    --text-dark: #ffffff;  
    --text-navlink: #adb5bd; 
    --text-light: #909da9;  
    --border-color: #495057;
    --input-bg: #2f343a;
    --input-border-color: #505860;
    --card-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    --card-shadow-hover: 0 12px 30px rgba(0, 0, 0, 0.25);
    --text-muted: #909da9;
    --placeholder-icon-color: #7f8c9a;
    --secondary-btn-bg: var(--primary-color); 


    --nav-link-color: #FFFFFF;
    --nav-link-hover-color: var(--primary-color);
    --footer-bg: #17191c;
    --footer-text-color: #95a0aa;
    --footer-link-hover-color: var(--primary-color);
    --footer-heading-color: var(--primary-color); 
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    color: var(--text-color);
    background-color: var(--bg-color);
    line-height: 1.7;
    transition: background-color 0.3s ease, color 0.3s ease;
    overflow-x: hidden; 
}

html[data-theme="dark"] .main-nav li .dropdown{
    background-color:  #282c31;
    color: #adb5bd;
}

html[data-theme="dark"] .hero-content .hero-tabs .btn .active {
    background-color:  #d59553;
    color: #adb5bd;
}

html[data-theme="dark"] .hero-content .hero-tabs .btn {
    background-color:  #282c31;
    color: #adb5bd;
}

.faq-item { border-bottom: 1px solid var(--project-faq-border); }
.faq-question {
    padding: 15px 0; display: flex; justify-content: space-between; align-items: center;
    cursor: pointer; font-weight: 500; font-size: 0.9em; color: var(--project-text-color);
}
.faq-question i { color: var(--project-text-light-color); }
.faq-answer { padding: 0 0 15px 0; font-size: 0.85em; color: var(--project-text-secondary-color); line-height: 1.7; }
.see-more-faqs { text-align: center; margin-top: 30px; }

.hero-section {
    background-image: url('/asset/image/dubai-marina-with-luxury-yachts-uae.jpg');
    background-size: cover;
    background-position: center;
    height: 70vh;
    position: relative;
    padding-left: 10px;
}

.hero-section .discover { padding-left: 22px;}
.hero-section .explore {padding-left: 22px; padding-bottom: 0 !important;}

.hero-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 70vh;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 2;
    pointer-events: none;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 25px 0;  
} 
.hero-section .container, 
.about-stats-section .container,
.portfolio-section .container,
.solutions-section .container,
.testimonials-section .container,
.cta-section .container,
.property-portfolio-section .container {
    padding-top: 0; 
    padding-bottom: 0;  
}

/* Dark mode popup form styling */
html[data-theme="dark"] #popupForm {
  background-color: rgba(0, 0, 0, 0.8); /* Overlay dark */
}

html[data-theme="dark"] #popupForm .popup {
  background-color: #22262a !important;  /* Main form background */
  color: white;
}

/* Input & Select fields */
html[data-theme="dark"] #popupForm input,
html[data-theme="dark"] #popupForm select {
  background-color: #22262a;
  color: white;
  border: 1px solid #fff;
}

/* Placeholder text in input */
html[data-theme="dark"] #popupForm input::placeholder {
  color: #aaa;
}

/* Labels */
html[data-theme="dark"] #popupForm label {
  color: #eee;
}

/* Headings and paragraph */
html[data-theme="dark"] #popupForm h2,
html[data-theme="dark"] #popupForm h4,
html[data-theme="dark"] #popupForm p {
  color: white;
}

/* Close button (×) */
html[data-theme="dark"] #popupForm span {
  color: white;
}

html[data-theme="dark"] #popupForm .popup form select {
  background-color: #22262a !important;  /* Main form background */
  color: white;
}

h1, h2, h3, h4 {
    color: var(--heading-color);
    margin-bottom: 0.7em;
    font-weight: 600;
}
h1 { font-size: 2.8em; line-height: 1.2;}
h2 { font-size: 2.2em; }
h3 { font-size: 1.5em; }
h4 { font-size: 1.2em; }


p {
    margin-bottom: 1.2em;
    color: var(--text-color);
}

img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;  
    display: block; 
}

.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    text-align: center;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
}
.btn-primary:hover {
    background-color: var(--primary-color-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 97, 255, 0.2);
}

.btn-dark { 
    background-color: var(--secondary-color); 
    color: var(--bg-section-alt);  
}
html[data-theme="dark"] .btn-dark {
        background-color: var(--primary-color);  
        color: white;
}
.btn-dark:hover {
    background-color: var(--secondary-color-hover);
    transform: translateY(-2px);
}
html[data-theme="dark"] .btn-dark:hover {
    background-color: var(--primary-color-hover);
}


.btn-light {
    background-color: var(--bg-section-alt);
    color: var(--heading-color);  
    border: 1px solid var(--border-color);
}
.btn-light:hover {
    background-color: var(--border-color);  
    border-color: var(--text-muted);
}
.btn-light.active {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}


/* Header */
.main-header {
    background-color: var(--bg-section-alt);
    /*padding: 15px 0;*/
    border-bottom: 1px solid var(--border-color);
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

.main-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 15px; 
}

/*.logo {*/
/*    font-size: 2em;*/
/*    font-weight: 700;*/
/*    color: var(--primary-color);*/
/*    text-decoration: none;*/
/*}*/

.main-nav ul {
    list-style: none;
    display: flex;
    align-items: center;
}

.main-nav ul li a {
    text-decoration: none;
    color: var(--nav-link-color);
    font-weight: 500;
    transition: color 0.3s ease;
    padding: 0px;
}
.main-nav ul li a:hover, .main-nav ul li a.active {
    color: var(--nav-link-hover-color);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}
.header-actions .search-icon, .theme-toggle-btn {
    font-size: 1.2em; 
    color: var(--text-muted);
    cursor: pointer;
    background: none;
    border: none;
    padding: 5px;
    line-height: 1; 
    transition: color 0.3s ease;
}
.header-actions .search-icon:hover, .theme-toggle-btn:hover {
    color: var(--primary-color);
}
.mobile-menu-toggle { display: none; } 

.mobile-nav-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: var(--bg-section-alt);
    z-index: 999;
    padding-top: 70px;  
    overflow-y: auto;
    transform: translateX(-100%);
    transition: transform 0.3s ease-in-out, visibility 0s linear 0.3s; 
    visibility: hidden;
}
.mobile-nav-menu.open {
    transform: translateX(0);
    visibility: visible;
    transition: transform 0.3s ease-in-out, visibility 0s linear 0s;
}
.mobile-nav-menu ul { list-style: none; padding: 20px; }
.mobile-nav-menu ul li { margin-bottom: 25px; }
.mobile-nav-menu ul li a {
    text-decoration: none;
    color: var(--heading-color);
    font-size: 1.4em;
    font-weight: 500;
    display: block;
    padding: 10px;
}
.mobile-nav-menu ul li a:hover { color: var(--primary-color); }
.mobile-nav-menu .login-btn-mobile { margin-top: 20px; display: inline-block; width: auto; }


.hero-section {
    background-color: var(--bg-section-primary);
    padding: 70px 0;
    /*text-align: left;*/
}
.hero-section .container {
    display: flex;
    gap: 40px;
    align-items: center;
    padding: 0 15px;
}
.hero-content { flex: 1.2; }
.hero-tabs { 
    margin-bottom: 20px;
    margin-top: 50px;
}
.hero-tabs {
    margin-left: 25px;
}
.hero-tabs .btn {
    position: relative; 
    z-index: 3; 
    margin-right: 10px;
    background-color: white;
    color: var(--text-color);
    border: 1px solid var(--border-color);
    padding: 8px 18px;
}
.hero-tabs .btn.active, .hero-tabs .btn:hover {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.hero-content h1 { margin-bottom: 0.6em; font-weight: 700; }
/*.hero-content p { font-size: 1.15em; margin-bottom: 2em; max-width: 550px;}*/
.hero-content p { font-size: 1.15em; margin-bottom: 2em; max-width: 100%;}

.search-form-container {
    position: relative; 
    z-index: 3; 
    background-color: transparent;
    padding: 25px;
    border-radius: 12px;
    /*box-shadow: var(--card-shadow);*/
}
.search-form {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 20px;
    align-items: flex-end;  
}
.form-group label {
    display: block;
    font-size: 0.9em;
    margin-bottom: 8px;
    color: var(--text-muted);
    font-weight: 500;
}
.form-group input, .form-group select {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--input-border-color);
    border-radius: 8px;
    background-color: var(--input-bg);
    color: var(--text-color);
    font-size: 1em;
}
.form-group input::placeholder { color: var(--text-muted); }
.search-form .btn-primary {
    padding: 14px; 
    width: 100%;
}
@media (min-width: 992px) { 
    .search-form { grid-template-columns: 2fr 1.5fr 1.5fr auto; }
    .search-form .btn-primary { width: auto; }
}

.hero-media {
    flex: 0.9;
    position: relative;
    min-height: 350px; 
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}
.hero-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 70px;
    height: 70px;
    background-color: rgba(255,255,255,0.9);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 2em;
    color: var(--primary-color);
    cursor: pointer;
    box-shadow: 0 0 25px rgba(0,0,0,0.2);
    transition: transform 0.3s ease;
}
.play-button:hover { transform: translate(-50%, -50%) scale(1.1); }

/* About/Stats Section */
.about-stats-section {
    padding: 80px 0;
    background-color: var(--bg-section-alt);
}
.about-stats-section .container {
    display: flex;
    gap: 50px;
    padding: 0 15px;
    flex-wrap: wrap; /* ensures stacking on small screens */
}

.about-image-placeholder {
    flex: 1;
    height: 450px;
    border-radius: 12px;
    overflow: hidden;
}
.about-image-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.about-content {
    flex: 1.1;
}
.about-content h2 {
    font-size: 2.4em;
}

.dream-property-box {
    display: flex;
    align-items: center;
    gap: 20px;
    margin: 30px 0;
    padding: 20px;
    background-color: var(--bg-section-primary);
    border-radius: 12px;
}
.dream-property-box img {
    /*width: 70px;*/
    /*height: 70px;*/
    width: 300px;
    height: auto;
    border-radius: 8px;
    object-fit: cover;
}
.dream-property-box h4 {
    margin-bottom: 0.3em;
}

/* ✅ Wrapper for stats - so it's full width below content */
.stats-grid-wrapper {
    margin-top: 40px;
    padding: 0 15px;
}

/* Grid for stats */
.stats-grid {
    width: 100%;
    /*display: grid;*/
    display: flex;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
}
.stat-item {
    background-color: var(--bg-section-primary);
    padding: 25px;
    border-radius: 12px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    width: 500px;
}
.stat-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--card-shadow-hover);
}
.stat-item .number {
    font-size: 2.5em;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 5px;
}
.stat-item .label {
    font-size: 1em;
    color: var(--text-muted);
}


.portfolio-section {
    padding: 80px 0;
    background-color: var(--bg-section-primary);
}
.portfolio-section .container { padding: 0 15px; }

/* Make the header text centered */
.section-header {
    text-align: center;
}

/* Make the heading centered (optional if above is applied) */
.section-header h2 {
    text-align: center;
    margin-bottom: 0.4em;
}

.section-subtitle {
    text-align: center;
    max-width: 650px;
    margin: 0 auto 25px auto;
    font-size: 1.1em;
}
.portfolio-section .section-header h2 { font-size: 2.5em; margin-bottom: 0.4em;}
.portfolio-section .section-header p { max-width: 650px; margin: 0 auto 25px auto; font-size: 1.1em;}

.portfolio-nav {
    display: flex;
    justify-content: center;  
    align-items: center;
    margin-bottom: 35px;
    flex-wrap: wrap; 
}
.portfolio-filters {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;  
    justify-content: center;
}
.portfolio-filters .btn { padding: 8px 18px; }



.portfolio-section .property-grid {  
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;

}
.property-card { 
    background-color: var(--bg-section-alt);
    border-radius: 12px;
    box-shadow: var(--card-shadow);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;  
}
.property-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--card-shadow-hover);
}
.property-card-image-wrapper {
    height: 220px;
    overflow: hidden;
}
.property-card-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}
.property-card:hover .property-card-image-wrapper img {
    transform: scale(1.05);
}
.property-card-content { 
    padding: 25px; 
    flex-grow: 1; 
    display: flex;
    flex-direction: column;
}
.property-card-content h3 {
    font-size: 1.4em;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--heading-color);
}
.property-location {
    font-size: 0.95em;
    color: var(--text-muted);
    margin-bottom: 15px;
}
.property-location i { margin-right: 6px; }
.property-amenities {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    font-size: 0.9em;
    margin-bottom: 18px;
    color: var(--text-color);
}
.property-amenities span i { margin-right: 6px; color: var(--primary-color); }
.property-price {
    font-size: 1.6em;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 20px;
}
.property-card-content .btn-primary {
    margin-top: auto;  
}

.map-view-container {
    margin-top: 50px;
    height: 450px;
    border-radius: 12px;
    overflow: hidden;
    background-size: cover;
    background-position: center;
}
.view-all-btn-container { text-align: center; margin-top: 40px; }

.commission-banner {
    background-color: #d59553;
    color: white;
    text-align: center;
    padding: 25px 0;
    font-size: 1.6em;
    font-weight: 700;
    letter-spacing: 1px;
}
html[data-theme="dark"] .commission-banner {
    background-color: var(--primary-color);  
}
.commission-banner.alt-style {  
    background-color: var(--bg-section-primary);
    color: var(--secondary-color);
}
    html[data-theme="dark"] .commission-banner.alt-style {
    background-color: var(--bg-section-alt);
    color: var(--heading-color);
}


.solutions-section {
    padding: 80px 0;
    background-color: var(--bg-section-alt);
}
.solutions-section .container {
    display: flex;
    gap: 50px;
    align-items: center;
        padding: 0 15px;
}
.solutions-content { flex: 1; }
.solutions-content h2 { font-size: 2.4em; }
.solutions-list {
    flex: 1.1;
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.solution-item {
    background-color: var(--bg-section-primary);
    padding: 25px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
}
.solution-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--card-shadow-hover);
    background-color: var(--bg-section-alt);  
}
.solution-item-info { display: flex; align-items: center; gap: 18px; }
.solution-item-info i {
    font-size: 1.8em;
    color: var(--primary-color);
    width: 35px; 
    text-align: center;
}
.solution-item-info span { font-weight: 500; font-size: 1.1em; color: var(--heading-color); }
.solution-item .arrow-icon i { color: var(--text-muted); font-size: 1.2em; }


/* Testimonials Section */
.testimonials-section {
    /*padding: 20px 0;*/
    background-color: var(--bg-section-primary);
}
.testimonials-section .container { padding: 0 15px; }
.testimonial-slider {
    position: relative;
    max-width: 850px;
    margin: 0 auto;
    background-color: var(--bg-section-alt);
    padding: 40px;
    border-radius: 12px;
    box-shadow: var(--card-shadow);
    overflow: hidden; 
}
.testimonial-slides {
    display: flex; 
    transition: transform 0.5s ease-in-out; /* For slide effect if used */
    min-height: 200px; /* Ensure container has height for absolutely positioned items */
    position: relative;
}
.testimonial-item {
    min-width: 100%; 
    display: flex;
    gap: 30px;
    align-items: center;
    padding: 0 20px; 
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s ease, visibility 0s linear 0.5s;
    position: absolute; 
    top: 0; left: 0;
    width: calc(100% - 40px); /* Account for parent horizontal padding */
}
.testimonial-item.active {
    opacity: 1;
    visibility: visible;
    position: relative; 
    transition: opacity 0.5s ease, visibility 0s linear 0s;
}
.testimonial-image {
    flex-shrink: 0; 
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--primary-color);
}
.testimonial-content blockquote {
    font-size: 1.1em;
    margin-bottom: 20px;
    font-style: italic;
    color: var(--text-color);
    border-left: 4px solid var(--primary-color);
    padding-left: 20px;
    line-height: 1.6;
}
.testimonial-author { font-weight: 600; color: var(--heading-color); font-size: 1.1em;}
.testimonial-author span {
    display: block;
    font-weight: 400;
    font-size: 0.9em;
    color: var(--text-muted);
    margin-top: 4px;
}
.slider-nav {
    position: absolute;
    top: 50%;
    left: 15px; 
    right: 15px; 
    display: flex;
    justify-content: space-between;
    transform: translateY(-50%);
    z-index: 10; 
}
    .slider-nav .nav-arrow {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 0;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.1em;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.15);
}
.slider-nav .nav-arrow:hover { background: var(--primary-color-hover); }
.slider-dots { text-align: center; margin-top: 30px; }
.slider-dots .dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    background-color: var(--border-color);
    border-radius: 50%;
    margin: 0 6px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}
.slider-dots .dot.active { background-color: var(--primary-color); }


/* CTA Section */
.cta-section {
    padding: 80px 0;
    background-color: var(--bg-section-alt);
}
.cta-section .container { padding: 0 15px; }
.cta-section .container-inner { 
    display: flex;
    align-items: center;
    gap: 40px;
    background-color: var(--bg-section-primary); 
    padding: 50px;
    border-radius: 12px;
}
.cta-content { flex: 1.5; }
.cta-content h2 { font-size: 2.4em; }
.cta-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
    margin-top: 25px;
}
.cta-form input {
    padding: 14px 18px;
    border: 1px solid var(--input-border-color);
    border-radius: 8px;
    background-color: var(--input-bg);
    color: var(--text-color);
    font-size: 1em;
}
.cta-icon-placeholder {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}
.cta-icon-placeholder i {
    font-size: 7em;
    color: var(--primary-color);
    opacity: 0.15;
}


/* Footer */
.main-footer {
    background-color: var(--footer-bg);
    color: var(--footer-text-color);
    padding: 70px 0 25px 0;
}
.main-footer .container { padding: 0 15px; }
.footer-top {
    display: flex;
    justify-content: space-between;
    gap: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255,255,255,0.1);  
    html[data-theme="dark"] & { border-bottom-color: var(--border-color); }  
    margin-bottom: 30px;
}
.footer-about { flex: 1.5; }
.footer-about .logo {  
    margin-bottom: 15px; 
}
html[data-theme="light"] .footer-about .logo { color: #ffffff; } 
html[data-theme="dark"] .footer-about .logo { color: var(--primary-color); }

.footer-about p { font-size: 0.95em; margin-bottom: 20px; line-height: 1.6; }

.footer-links-grid {
    flex: 2.5;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 30px;
}
.footer-column h4 {
    color: var(--footer-heading-color);
    margin-bottom: 20px;
    font-size: 1.15em;
    font-weight: 600;
    /*padding-left: 30px;*/
}
.footer-column ul { list-style: none; }
.footer-column ul li { margin-bottom: 12px; }
.footer-column ul li a {
    text-decoration: none;
    color: var(--footer-text-color);
    font-size: 0.95em;
    transition: color 0.3s ease;
}
.footer-column ul li a:hover { color: var(--footer-link-hover-color); }

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9em;
    padding-top: 20px; 
}
.social-icons a {
    color: var(--footer-text-color);
    margin-left: 18px;
    font-size: 1.4em;
    transition: color 0.3s ease;
}
.social-icons a:hover { color: var(--footer-link-hover-color); }



.property-portfolio-section {
    padding: 80px 0;
    background-color: var(--bg-color); 
}
.property-portfolio-section .container { padding: 0 15px; }
.property-portfolio-section .section-header {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 15px;  
    flex-wrap: wrap; 
}
.property-portfolio-section .section-header h2 {
    font-size: 2.25rem; 
    font-weight: 700;
    color: var(--text-dark);  
    margin-bottom: 0;
    /*text-align: center;*/
}
.property-portfolio-section .header-controls {
    display: flex;
    gap: 10px;  
    flex-wrap: wrap;
}
.property-portfolio-section .header-controls .btn-filter {
    background-color: var(--bg-section-alt);  
    color: var(--text-navlink);  
    border: 1px solid var(--border-color);
    padding: 8px 18px;
    font-size: 0.9rem;
    border-radius: 8px; 
}
.property-portfolio-section .header-controls .btn-filter.active,
.property-portfolio-section .header-controls .btn-filter:hover {
    background-color: var(--secondary-btn-bg);  
    color: white;  
    border-color: var(--secondary-btn-bg);
}
.property-portfolio-section .section-subtitle {
    color: var(--text-color); 
    margin-bottom: 40px;
    max-width: 720px;
    font-size: 0.95rem;
    line-height: 1.5; 
}
.property-portfolio-section .property-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px; 
}
.property-portfolio-section .property-card {
    background-color: var(--card-bg);  
    border-radius: 8px;
    overflow: visible; 
    box-shadow: var(--card-shadow); 
    padding: 20px;
    position: relative; 
    display: flex;
    flex-direction: column;
}
.property-portfolio-section .card-image-placeholder {
    height: 220px; 
    background-color: var(--input-bg);  
    margin: -20px -20px 20px -20px;  
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--placeholder-icon-color); 
    position: relative; 
    border-top-left-radius: 8px; 
    border-top-right-radius: 8px;
    overflow: hidden;  
}
.property-portfolio-section .card-image-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0;  
}

.property-portfolio-section .card-image-placeholder svg {  
    width: 50px;
    height: 50px;
}
.property-portfolio-section .expand-btn {
    position: absolute;
    top: 15px; 
    right: 15px;
    background-color: rgba(255, 255, 255, 0.8);
    border: none;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--text-navlink);
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    z-index: 2;   
}
html[data-theme="dark"] .property-portfolio-section .expand-btn {
    background-color: rgba(40, 44, 49, 0.8); 
    color: var(--text-color);
}
.property-portfolio-section .expand-btn:hover {
    background-color: var(--white);
}
html[data-theme="dark"] .property-portfolio-section .expand-btn:hover {
    background-color: var(--input-bg);
}

.property-portfolio-section .expand-btn svg {
    width: 16px; height: 16px;
}

.property-portfolio-section .internal-tag {
    position: absolute;
    bottom: 12px; 
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--primary-color);
    color: white; 
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 0.75rem;
    font-weight: 500;
    z-index: 1;
}

.property-portfolio-section .property-card h4 {
    font-size: 1.15rem; 
    font-weight: 600;
    color: var(--text-dark); 
    margin-bottom: 4px;
}
.property-portfolio-section .property-type {
    font-size: 0.85rem; 
    color: var(--text-light);  
    margin-bottom: 15px;
}
.property-portfolio-section .property-tags {
    margin-top: auto; 
    display: flex;  
    flex-wrap: wrap;
    gap: 6px;
}
.property-portfolio-section .property-tags span {
    background-color: var(--input-bg);  
    color: var(--text-navlink);  
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 0.75rem; 
    
    display: inline-block;
    font-weight: 500;
}

.nearby-properties-map {
    padding: 50px 0;
    background-color: var(--header-bg);  
    transition: background-color 0.3s ease;
}

.section-header-map {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    max-width: 1080px;
    margin-left: auto;
    margin-right: auto;
}

.title-with-icon {
    display: flex;
    align-items: center;
    gap: 10px;
}
.title-with-icon i {
    font-size: 1.8em;
    color: var(--logo-color);  
    transition: color 0.3s ease;
}
.title-with-icon h3 {
    font-size: 1.6em;
    font-weight: 600;
    color: var(--text-color);
    transition: color 0.3s ease;
}
.btn-icon-only {
    background: none;
    border: none;
    font-size: 1.4em;
    color: var(--text-muted-color);
    cursor: pointer;
    transition: color 0.3s ease;
}

.map-placeholder {
    height: 450px;
    background-color: var(--placeholder-bg);
    border-radius: var(--border-radius-md);
    display: flex;
    justify-content: center;
    align-items: center;
    max-width: 1080px;
    margin: 0 auto;
    transition: background-color 0.3s ease;
}
.map-placeholder img, .map-placeholder iframe {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--border-radius-md);
    transition: filter 0.3s ease;
}
body.dark-mode .map-placeholder iframe {
    filter: invert(90%) hue-rotate(180deg) contrast(0.9) brightness(1.1);
}


@media (max-width: 992px) {
    h1 { font-size: 2.4em; }
    h2 { font-size: 2em; }
    .container { width: 95%; }  
    .hero-section .hero-tabs { margin-bottom: 0px; margin-left: 5px;}
    .hero-section .container, .about-stats-section .container, .solutions-section .container, .cta-section .container-inner {
        flex-direction: column;
        text-align: center;
    }
    .hero-content p, .about-content p, .solutions-content p, .cta-content p { max-width: 100%; }
    .hero-media { margin-top: 40px; width: 100%; min-height: 300px; }
    .about-stats-section {
        padding: 60px 15px;
      }
    
      .about-stats-section .container {
        flex-direction: column;
        text-align: center;
        gap: 40px;
      }
    
      .about-image-placeholder {
        width: 100%;
        height: 350px;
        order: -1;
        margin-bottom: 30px;
      }
    
      .about-image-placeholder img {
        height: 100%;
        object-fit: cover;
        border-radius: 12px;
      }
    
      .about-content {
        width: 100%;
      }
    
      .about-content h2 {
        font-size: 2em;
      }
    
      .about-content p {
        font-size: 1em;
      }
    
      .dream-property-box {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 25px;
        gap: 20px;
      }
    
      .dream-property-box img {
        width: 100%;
        max-width: 320px;
        height: auto;
        border-radius: 8px;
      }
    
      .dream-property-box h4 {
        font-size: 1.2em;
      }
    
      .dream-property-box p {
        font-size: 0.95em;
      }
    
      .stats-grid-wrapper {
        padding: 0 15px;
        margin-top: 40px;
      }
    
      .stats-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
      }
    
      .stat-item {
        width: 100%;
        padding: 20px;
        text-align: center;
      }
    
      .stat-item .number {
        font-size: 2em;
      }
    
      .stat-item .label {
        font-size: 1em;
      }
    .solutions-list { margin-top: 30px; }
    .cta-icon-placeholder { display: none; } 
    .footer-top { flex-direction: column; }
    .footer-links-grid { grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); margin-top: 30px; text-align: left;}
    
    .portfolio-nav { flex-direction: column; gap: 20px; }
    .portfolio-filters { justify-content: center; }

    .property-portfolio-section .section-header {
        flex-direction: column;
        align-items: center;  
        gap: 10px;
    }
    .property-portfolio-section .header-controls {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .hero-section {
        height: 90vh; /* Add this */
        padding: 50px 0;
    }

    .hero-section::before {
        height: 100%; /* Use full height */
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        background-color: rgba(0, 0, 0, 0.3);
        z-index: 2;
        pointer-events: none;
    }
    .main-header .container { padding: 0 10px; }
    /*.logo img{ width: 100px; height: 50px; }*/
    /*.main-nav ul { display: none; } */
    .header-actions .login-btn { display: none; } 
    .mobile-menu-toggle {
        display: block;
        font-size: 1.5em;
        color: var(--text-muted);
        cursor: pointer;
        background: none;
        border: none;
    }
    .main-nav{ display:none;}
    .header-actions .connect-button{  font-size: 12px; }
    .mobile-menu-toggle:hover { color: var(--primary-color); }
    h1 { font-size: 2em; }
    h2 { font-size: 1.8em; }
    h3 { font-size: 1.3em; }
    

    .hero-section { padding: 50px 0; }
    .hero-tabs { margin-left: 8px;}
    .search-form-container { padding: 20px; }
    .search-form { grid-template-columns: 1fr; }
    .about-stats-section {
    padding: 50px 15px;
    }
    
    .about-stats-section .container {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 40px;
    }
    
    .about-image-placeholder,
    .about-content {
    width: 100%;
    }
    
    .about-content h2 {
    font-size: 2em;
    }
    
    .dream-property-box {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 20px;
    gap: 20px;
    }
    
    .dream-property-box img {
    width: 100%;
    max-width: 300px;
    height: auto;
    border-radius: 8px;
    }
    
    .stats-grid-wrapper {
    padding: 0 15px;
    }
    
    .stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    }
    
    .stat-item {
    width: 100%;
    padding: 20px;
    }
    
    .stat-item .number {
    font-size: 2em;
    }
    
    .stat-item .label {
    font-size: 1em;
    }
    .portfolio-section .property-grid { grid-template-columns: 1fr; }  
    
    .testimonial-item { flex-direction: column; text-align: center; padding: 0; width:100%; }
    .testimonial-image { margin-bottom: 20px; width: 80px; height: 80px;}
    .testimonial-slider { padding: 30px 15px; }  
    .testimonial-content blockquote { font-size: 1em; }
    .slider-nav { display: none; } 
    
    .footer-bottom { flex-direction: column; text-align: center; gap: 15px; }
    .social-icons { margin-top: 10px; }
    .social-icons a:first-child { margin-left: 0; }

    .commission-banner { font-size: 1.2em; padding: 20px 10px; }
    .cta-section .container-inner { padding: 30px 20px; }
    .property-card-content { padding: 20px; }
    .property-price { font-size: 1.4em; }

    .property-portfolio-section .property-grid {
        grid-template-columns: 1fr;  
    }
    .property-portfolio-section .section-header h2 {
        font-size: 1.8rem;
    }
    .property-portfolio-section .section-subtitle {
        font-size: 0.9rem;
        text-align: center;  
    }
    .property-portfolio-section .card-image-placeholder {
        height: 200px;  
    }
}
@media (max-width: 480px) {
    .hero-section {
        height: 85vh; /* Slightly less if needed */
    }
    .container { width: 95%; }
    .hero-section::before {
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0, 0, 0, 0.3);
        z-index: 2;
        pointer-events: none;
    }
    .main-header .container { padding: 0 10px; }
    .logo img{ width: 50px; height: 30px; }
    .header-actions { gap: 10px; }
    .header-actions .theme-toggle-btn, .mobile-menu-toggle { font-size: 1.1em; }
    .hero-tabs .btn { padding: 6px 12px; font-size: 0.9em; margin-left: 0px; margin-right: 5px; }
    .btn { padding: 10px 20px; font-size: 0.95em; }
    .about-stats-section {
    padding: 30px 10px;
    }
    
    .about-stats-section .container {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 30px;
    }
    
    .about-image-placeholder,
    .about-content {
    width: 100%;
    }
    
    .about-content h2 {
    font-size: 1.6em;
    }
    
    .dream-property-box {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 15px;
    gap: 15px;
    }
    
    .dream-property-box img {
    width: 100%;
    max-width: 250px;
    height: auto;
    border-radius: 8px;
    }
    
    .stats-grid-wrapper {
    padding: 0 10px;
    }
    
    .stats-grid {
    display: flex;
    flex-direction: column;
    gap: 15px;
    align-items: center;
    }
    
    .stat-item {
    width: 100%;
    padding: 20px;
    }
    
    .stat-item .number {
    font-size: 1.8em;
    }
    
    .stat-item .label {
    font-size: 1em;
    }
    .solution-item { padding: 20px; }
    .solution-item-info span { font-size: 1em; }
    .portfolio-filters .btn { padding: 6px 12px; font-size: 0.9em; }
    .property-portfolio-section .header-controls .btn-filter {
        padding: 6px 12px; font-size: 0.85rem;
    }

}

@media (max-width: 430px) {
    .hero-section::before {
        height: 100%;
        background-color: rgba(0, 0, 0, 0.3);
    } 
}



