/* ============================================================
   CSS VARIABLES & RESET
   ============================================================ */
:root {
    --navy: #1a2332;
    --navy-light: #2d4059;
    --gold: #c9a84c;
    --gold-light: #dbb95c;
    --gold-dark: #b8973c;
    --white: #ffffff;
    --light-gray: #f8f9fa;
    --gray: #6c757d;
    --dark: #2c3e50;
    --shadow: 0 4px 20px rgba(0,0,0,0.08);
    --shadow-hover: 0 8px 40px rgba(0,0,0,0.15);
    --radius: 12px;
    --transition: all 0.3s ease;
    --font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font);
    color: var(--dark);
    background: var(--white);
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
}

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

.highlight {
    color: var(--gold);
}

.section {
    padding: 80px 0;
}

.section-tag {
    display: inline-block;
    font-size: 14px;
    font-weight: 600;
    color: var(--gold);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 10px;
}

.section-title {
    font-size: 36px;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 12px;
}

.section-subtitle {
    font-size: 18px;
    color: var(--gray);
    max-width: 600px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 40px;
    flex-wrap: wrap;
    gap: 20px;
}

.text-center {
    text-align: center;
}

.text-center .section-subtitle {
    margin: 0 auto;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 30px;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    font-family: var(--font);
    font-size: 16px;
}

.btn-primary {
    background: var(--gold);
    color: var(--white);
}

.btn-primary:hover {
    background: var(--gold-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(201, 168, 76, 0.3);
}

.btn-outline {
    background: transparent;
    color: var(--navy);
    border: 2px solid var(--navy);
}

.btn-outline:hover {
    background: var(--navy);
    color: var(--white);
    transform: translateY(-2px);
}


/* ============================================================
   HEADER - FIXED
   ============================================================ */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    background: rgba(26, 35, 50, 0.95);
    backdrop-filter: blur(10px);
    padding: 16px 0;
    transition: all 0.3s ease;
    border-bottom: none;
    /* Remove any border that might be causing the line */

}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 24px;
    font-weight: 700;
    color: var(--white);
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo i {
    font-size: 28px;
}

.logo span {
    color: var(--gold);
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav-menu a {
    color: rgba(255,255,255,0.8);
    font-size: 15px;
    font-weight: 500;
    transition: var(--transition);
    position: relative;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: var(--white);
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gold);
    transition: var(--transition);
}

.nav-menu a:hover::after,
.nav-menu a.active::after {
    width: 100%;
}

.nav-btn {
    background: var(--gold);
    color: var(--white) !important;
    padding: 8px 20px;
    border-radius: 6px;
}

.nav-btn:hover {
    background: var(--gold-dark) !important;
}

.nav-btn::after {
    display: none !important;
}

.mobile-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--white);
    font-size: 24px;
    cursor: pointer;
}

/* ============================================================
   HERO
   ============================================================ */
/* ============================================================
   HERO - FIXED (No Line at Top)
   ============================================================ */
.hero {
    min-height: 100vh;
    width: 100%;
    background: url('../images/hero-bg.jpg') center/cover no-repeat;
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: center;
    margin-top: 0;
    padding-top: 0;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(26, 35, 50, 0.85) 0%, rgba(26, 35, 50, 0.6) 100%);
    display: flex;
    align-items: center;
    padding: 80px 0 60px;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    padding: 20px;
    width: 100%;

}

.hero-title {
    font-size: 52px;
    font-weight: 800;
    color: var(--white);
    margin-bottom: 16px;
    line-height: 1.1;
}

.hero-subtitle {
    font-size: 20px;
    color: rgba(255,255,255,0.8);
    margin-bottom: 40px;
    line-height: 1.6;
}

/* Hero Search */
.hero-search {
    background: var(--white);
    border-radius: var(--radius);
    padding: 20px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    margin-bottom: 40px;
}

/* ============================================================
   HERO SLIDESHOW - FIXED
   ============================================================ */
.hero {
    position: relative;
    overflow: hidden;
    min-height: 100vh;
    width: 100%;
    margin-top: 0;
    padding-top: 0;
}

.hero-slideshow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.hero-slideshow .slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
}

.hero-slideshow .slide.active {
    opacity: 1;
}

.hero-slideshow .slide::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(26, 35, 50, 0.75) 0%, rgba(26, 35, 50, 0.4) 100%);
}

.hero-overlay {
    position: relative;
    z-index: 1;
    width: 100%;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 80px 0 60px;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    padding: 20px;
    width: 100%;

}

/* Slide Dots */
.slide-dots {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    display: flex;
    gap: 12px;
}

.slide-dots .dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255,255,255,0.4);
    cursor: pointer;
    transition: all 0.3s ease;
}

.slide-dots .dot:hover {
    background: rgba(255,255,255,0.7);
}

.slide-dots .dot.active {
    background: var(--gold);
    transform: scale(1.2);
}

/* ============================================================
   FALLBACK: If no images, show gradient
   ============================================================ */
.hero-slideshow .slide:first-child {
    background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
}

.search-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 18px;
}

.search-tab {
    padding: 8px 24px;
    border: none;
    background: transparent;
    font-weight: 600;
    color: var(--gray);
    cursor: pointer;
    border-radius: 6px;
    transition: var(--transition);
    font-family: var(--font);
}

.search-tab.active {
    background: var(--navy);
    color: var(--white);
}

.search-tab:hover:not(.active) {
    background: var(--light-gray);
}

.search-fields {
    display: grid;
    grid-template-columns: 1fr 1fr 1.5fr 0.8fr;
    gap: 12px;
}

.search-field {
    display: flex;
    align-items: center;
    background: var(--light-gray);
    border-radius: 8px;
    padding: 0 14px;
    border: 2px solid transparent;
    transition: var(--transition);
}

.search-field:focus-within {
    border-color: var(--gold);
}

.search-field i {
    color: var(--gray);
    margin-right: 10px;
}

.search-field input,
.search-field select {
    width: 100%;
    padding: 12px 0;
    border: none;
    background: transparent;
    font-size: 15px;
    font-family: var(--font);
    color: var(--dark);
    outline: none;
}

.search-field select {
    cursor: pointer;
}

.price-range {
    display: flex;
    gap: 6px;
    padding: 0 14px;
}

.price-range span {
    color: var(--gray);
    display: flex;
    align-items: center;
}

.price-range select {
    width: auto;
    flex: 1;
    min-width: 70px;
}

.search-btn {
    padding: 12px 24px;
    background: var(--gold);
    color: var(--white);
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.search-btn:hover {
    background: var(--gold-dark);
}

/* Trust Badges */
.trust-badges {
    display: flex;
    justify-content: center;
    gap: 50px;
}

.trust-item {
    text-align: center;
}

.trust-number {
    display: block;
    font-size: 28px;
    font-weight: 700;
    color: var(--gold);
}

.trust-label {
    font-size: 14px;
    color: rgba(255,255,255,0.7);
}

/* ============================================================
   PROPERTY CARDS
   ============================================================ */
   
   /* ============================================================
   GALLERY - FIXED (No White Space)
   ============================================================ */
.gallery-main {
    background: var(--light-gray);
    border-radius: var(--radius);
    overflow: hidden;
    margin-bottom: 20px;
    box-shadow: var(--shadow);
    width: 100%;
    height: 450px;
    position: relative;
}

.gallery-main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    position: absolute;
    top: 0;
    left: 0;
}

/* If no image, show placeholder */
.gallery-main .no-image-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--light-gray);
    color: var(--gray);
    font-size: 18px;
}

.property-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.property-card {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    position: relative;
}

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

.property-image {
    position: relative;
    height: 220px;
    overflow: hidden;
    background: var(--light-gray);
}

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

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

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

.property-badge.new {
    background: #27ae60;
}

.property-fav {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255,255,255,0.9);
    border: none;
    cursor: pointer;
    transition: var(--transition);
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.property-fav i {
    color: #e74c3c;
}

.no-image {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: var(--gray);
    background: var(--light-gray);
    font-size: 14px;
}

.property-body {
    padding: 20px;
}

.property-price {
    font-size: 22px;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 6px;
}

.property-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 6px;
}

.property-title a:hover {
    color: var(--gold);
}

.property-location {
    color: var(--gray);
    font-size: 14px;
    margin-bottom: 12px;
}

.property-location i {
    color: var(--gold);
    margin-right: 4px;
}

.property-features {
    display: flex;
    gap: 20px;
    padding-top: 12px;
    border-top: 1px solid #eee;
}

.property-features span {
    font-size: 14px;
    color: var(--gray);
}

.property-features i {
    margin-right: 4px;
    color: var(--navy-light);
}

.empty-state {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    background: var(--light-gray);
    border-radius: var(--radius);
}

.empty-state h3 {
    margin: 16px 0 8px;
    color: var(--navy);
}

.empty-state p {
    color: var(--gray);
}

/* ============================================================
   PROPERTY TYPES
   ============================================================ */
.types-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
}

.type-card {
    background: var(--white);
    padding: 35px 20px;
    text-align: center;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 2px solid transparent;
}

.type-card:hover {
    border-color: var(--gold);
    transform: translateY(-6px);
    box-shadow: var(--shadow-hover);
}

.type-icon {
    font-size: 40px;
    color: var(--gold);
    margin-bottom: 14px;
}

.type-card h3 {
    font-size: 20px;
    color: var(--navy);
    margin-bottom: 4px;
}

.type-card p {
    color: var(--gray);
    font-size: 14px;
}

/* ============================================================
   WHY CHOOSE US
   ============================================================ */
.why-section {
    background: var(--light-gray);
}

.why-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 50px;
    align-items: stretch; /* Changed from 'center' to 'stretch' */
}

.why-content {
    flex: 1 1 45%;
    min-width: 300px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.why-features {
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin-top: 30px;
}

.why-feature {
    display: flex;
    gap: 18px;
    align-items: flex-start;
}

.why-icon {
    width: 50px;
    height: 50px;
    min-width: 50px;
    background: var(--gold);
    color: var(--white);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.why-feature h4 {
    font-size: 18px;
    color: var(--navy);
    margin-bottom: 2px;
}

.why-feature p {
    color: var(--gray);
    font-size: 15px;
}

.why-image {
    flex: 1 1 45%;
    min-width: 300px;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-hover);
    /* Remove fixed height */
    height: auto;
    min-height: 350px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--light-gray);
}

.why-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    min-height: 350px;

}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
    background: var(--navy);
    color: rgba(255,255,255,0.8);
    padding: 60px 0 30px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer .logo {
    margin-bottom: 14px;
}

.footer-col p {
    line-height: 1.7;
    font-size: 15px;
}

.footer-socials {
    display: flex;
    gap: 12px;
    margin-top: 16px;
}

.footer-socials a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255,255,255,0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    color: var(--white);
}

.footer-socials a:hover {
    background: var(--gold);
    transform: translateY(-3px);
}

.footer-col h4 {
    color: var(--white);
    font-size: 18px;
    margin-bottom: 16px;
}

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col ul li a:hover {
    color: var(--gold);
}

.footer-col ul li i {
    width: 20px;
    color: var(--gold);
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.08);
    padding-top: 24px;
    text-align: center;
    font-size: 14px;
}

/* ============================================================
   RESPONSIVE - FIXED GRID SYNTAX
   ============================================================ */
@media (max-width: 992px) {
    .hero-title {
        font-size: 40px;
    }
    
    .search-fields {
        grid-template-columns: 1fr;
    }
    
    .price-range {
        flex-wrap: wrap;
    }
    
    .types-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .why-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }

    .property-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .mobile-toggle {
        display: block;
    }
    
    .nav-menu {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--navy);
        padding: 20px;
        border-top: 1px solid rgba(255,255,255,0.05);
    }
    
    .nav-menu.active {
        display: flex;
    }
    
    .hero-title {
        font-size: 32px;
    }
    
    .hero-subtitle {
        font-size: 17px;
    }
    
    .trust-badges {
        flex-wrap: wrap;
        gap: 20px;
    }
    
    .property-grid {
        grid-template-columns: 1fr;
    }
    
    .section-title {
        font-size: 28px;
    }
    
    .section-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

@media (max-width: 576px) {
    .types-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .hero {
        padding-top: 60px;
    }
    
    .hero-search {
        padding: 16px;
    }
    
    .search-tabs {
        justify-content: center;
    }

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

.gallery-main img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    display: block !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
}

/* ============================================================
   CONTACT PAGE MAP - FIXED
   ============================================================ */
.map-container {
    width: 100%;
    height: 250px;
    border-radius: 8px;
    overflow: hidden;
}

.map-container iframe {
    width: 100% !important;
    height: 100% !important;
    border: 0 !important;
    display: block !important;
}

/* Mobile */
@media (max-width: 768px) {
    .map-container {
        height: 200px;
    }
}