/* ==========================================================================
   DESKTOP DEFAULT RULES (Screens wider than 768px)
   ========================================================================== */
@media screen and (min-width: 769px) {
  .menu-toggle,
  .mobile-menu {
    display: none !important;
  }
}

/* ==========================================================================
   MOBILE RESPONSIVE RULES (Screens 768px and smaller)
   ========================================================================== */
@media screen and (max-width: 768px) {

  /* 1. Hide Desktop Navigation on Mobile */
  .site-header .desktop-nav {
    display: none !important;
  }

  /* 2. Display Hamburger Toggle Button */
  .menu-toggle {
    display: block !important;
    background: transparent;
    border: none;
    font-size: 1.6rem;
    color: #111111;
    cursor: pointer;
  }

  /* 3. Mobile Slide-Out Drawer Setup */
  .mobile-menu {
    position: fixed;
    top: 0;
    right: -100%; /* Hidden off-screen to the right by default */
    width: 85%;
    max-width: 320px;
    height: 100vh;
    background-color: #ffffff;
    box-shadow: -5px 0 25px rgba(0, 0, 0, 0.25);
    z-index: 99999;
    padding: 1.5rem 1.25rem;
    overflow-y: auto;
    transition: right 0.3s ease-in-out;
  }

  /* Active class added via JS to slide drawer in */
  .mobile-menu.active {
    right: 0 !important;
  }

  /* Close X button inside drawer */
  .mobile-menu-close {
    background: transparent;
    border: none;
    font-size: 1.6rem;
    color: #333333;
    cursor: pointer;
    float: right;
    margin-bottom: 1rem;
  }

  /* Mobile Dropdown Styling */
  .mobile-menu .nav-dropdown {
    width: 100%;
    margin-bottom: 0.75rem;
    clear: both;
  }

  .mobile-menu .nav-dropdown-toggle {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    padding: 0.85rem 1rem;
    font-size: 1rem;
    font-weight: 600;
    color: #222222;
    border-radius: 6px;
    cursor: pointer;
  }

  .mobile-menu .nav-dropdown-toggle i {
    transition: transform 0.3s ease;
  }

  /* Rotate Arrow when Dropdown is open */
  .mobile-menu .nav-dropdown.active .nav-dropdown-toggle i {
    transform: rotate(180deg);
  }

  /* Submenus hidden by default on mobile */
  .mobile-menu .nav-dropdown-menu {
    display: none;
    flex-direction: column;
    padding: 0.5rem 0 0.5rem 0.75rem;
    background: #ffffff;
  }

  /* SHOW Submenu items when parent has active class */
  .mobile-menu .nav-dropdown.active .nav-dropdown-menu {
    display: flex !important;
  }

  /* Child links styling inside mobile submenus */
  .mobile-menu .nav-dropdown-menu a {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.6rem 0.75rem;
    font-size: 0.9rem;
    color: #444444;
    text-decoration: none;
    border-bottom: 1px solid #f1f1f1;
  }

  .mobile-menu .nav-dropdown-menu a i {
    width: 18px;
    color: #0056b3; /* Adjust to match theme color */
  }
}
/* =========================================================
   HERO SECTION STYLES
========================================================= */

.hero {
    position: relative;
    width: 100%;
    min-height: 100vh; /* Full screen height */
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 120px 0 60px; /* Space for fixed header */
    color: #ffffff;
}

/* 1. Video Layer */
.hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover; /* Fills container without distorting video */
    z-index: 1;
}

/* 2. Dark Overlay Layer */
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6); /* Adjust transparency if video is too bright/dark */
    z-index: 2;
}

/* 3. Hero Text Content Layer */
.hero-content {
    position: relative;
    z-index: 3;
    width: 100%;
}

.hero-text {
    max-width: 750px;
}

/* Tag Pill */
.hero-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 0.4rem 1rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1.25rem;
    color: #ffffff;
}

/* Typography */
.hero-text h1 {
    font-size: clamp(2.2rem, 5vw, 3.8rem);
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 1.25rem;
}

.hero-text h1 span {
    color: #ffb703; /* Highlight color */
    display: block;
}

.hero-text p {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #e0e0e0;
    margin-bottom: 2rem;
    max-width: 600px;
}

/* Buttons Container */
.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 2.5rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.85rem 1.8rem;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-primary {
    background-color: #0056b3;
    color: #ffffff;
}

.btn-primary:hover {
    background-color: #004085;
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    color: #ffffff;
    border: 2px solid #ffffff;
}

.btn-outline:hover {
    background: #ffffff;
    color: #111111;
    transform: translateY(-2px);
}

/* Trust Badges Bar */
.hero-trust {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.hero-trust div {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: #f0f0f0;
}

.hero-trust i {
    color: #28a745; /* Green checkmark */
}

/* Mobile Responsiveness */
@media screen and (max-width: 768px) {
    .hero {
        padding: 100px 0 40px;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .btn {
        width: 100%;
        justify-content: center;
    }

    .hero-trust {
        flex-direction: column;
        gap: 0.75rem;
    }
}

/* =========================================================
   HERO SECTION - RESPONSIVE STYLES (responsive.css)
========================================================= */

/* Tablets & Smaller Desktops (Max width: 992px) */
@media screen and (max-width: 992px) {
    .hero {
        padding: 130px 0 70px; /* Extra top padding for mobile navbar */
        min-height: 85vh; /* Adjust height slightly on tablet screens */
    }

    .hero-text h1 {
        font-size: 2.8rem;
    }
}

/* Mobile Devices (Max width: 768px) */
@media screen and (max-width: 768px) {
    .hero {
        padding: 110px 0 50px;
        min-height: 100vh; /* Keep full viewport height on phone */
        text-align: left;
    }

    .hero-tag {
        font-size: 0.8rem;
        padding: 0.35rem 0.85rem;
    }

    .hero-text h1 {
        font-size: 2.1rem;
        line-height: 1.25;
    }

    .hero-text p {
        font-size: 0.98rem;
        line-height: 1.5;
        margin-bottom: 1.75rem;
    }

    /* Stack buttons vertically on mobile for easy tapping */
    .hero-buttons {
        flex-direction: column;
        width: 100%;
        gap: 0.85rem;
        margin-bottom: 2rem;
    }

    .hero-buttons .btn {
        width: 100%;
        justify-content: center;
        padding: 0.9rem 1.25rem;
    }

    /* Trust indicators vertical list on phones */
    .hero-trust {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }
}

/* Small Phones (Max width: 480px) */
@media screen and (max-width: 480px) {
    .hero-text h1 {
        font-size: 1.85rem;
    }

    .hero-trust div {
        font-size: 0.85rem;
    }
}
/* =========================================================
   PROPERTY SEARCH - RESPONSIVE STYLES
========================================================= */

@media screen and (max-width: 992px) {
  .property-search {
    margin-top: -30px;
  }

  .property-search-form {
    grid-template-columns: 1fr 1fr;
  }

  .search-action {
    grid-column: span 2;
  }
}

@media screen and (max-width: 576px) {
  .property-search-form {
    grid-template-columns: 1fr;
  }

  .search-action {
    grid-column: span 1;
  }

  .search-box {
    padding: 1.25rem;
  }
}

/* =========================================================
   PROPERTY SEARCH - RESPONSIVE STYLES (responsive.css)
========================================================= */

/* Tablets & Small Laptops (Max width: 992px) */
@media screen and (max-width: 992px) {
    .property-search {
        margin-top: -40px; /* Reduced negative margin to prevent overlap */
    }

    .property-search-form {
        grid-template-columns: repeat(2, 1fr); /* 2 columns layout on tablets */
        gap: 1.25rem;
    }

    .search-action {
        grid-column: span 2; /* Full width button row on tablet */
    }

    .search-button {
        width: 100%;
    }
}

/* Mobile Devices (Max width: 768px) */
@media screen and (max-width: 768px) {
    .property-search {
        margin-top: 0; /* Remove negative margin completely on mobile */
        padding: 20px 1rem 0;
    }

    .search-box {
        padding: 1.5rem 1.25rem;
        border-radius: 12px;
    }

    .search-heading h2 {
        font-size: 1.35rem;
    }

    .property-search-form {
        grid-template-columns: 1fr; /* Stack all fields into 1 single column */
        gap: 1rem;
    }

    .search-action {
        grid-column: span 1;
        margin-top: 0.5rem;
    }

    .search-field select {
        width: 100%;
        font-size: 0.9rem;
    }
}

/* Extra Small Mobile Devices (Max width: 480px) */
@media screen and (max-width: 480px) {
    .search-box {
        padding: 1.25rem 1rem;
    }

    .search-heading span {
        font-size: 0.75rem;
    }

    .search-heading h2 {
        font-size: 1.2rem;
    }
}
/* =========================================================
   FEATURED PROPERTIES MOBILE FIX (responsive.css)
========================================================= */

@media screen and (max-width: 768px) {
  /* Prevent horizontal section squeezing */
  .properties-section {
    padding: 40px 0;
    width: 100%;
    overflow: hidden;
  }

  /* Force grid into a clean single full-width column */
  .property-grid {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    width: 100%;
  }

  /* Ensure cards take full container width */
  .property-card {
    width: 100%;
    margin: 0 auto;
  }

  /* Fixed aspect ratio for mobile card images */
  .property-image {
    height: 220px;
    width: 100%;
  }

  .property-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  /* Stack card metadata elements vertically on very small screens */
  .property-meta {
    flex-direction: column;
    gap: 0.5rem;
  }
}

@media screen and (max-width: 480px) {
  .property-content {
    padding: 1.15rem;
  }

  .property-content h3 {
    font-size: 1.15rem;
  }

  .property-bottom strong {
    font-size: 1.15rem;
  }
}

/* =========================================================
   FEATURED PROPERTIES - RESPONSIVE STYLES
========================================================= */

@media screen and (max-width: 768px) {
  .properties-section {
    padding: 50px 0;
  }

  .section-heading {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  .property-grid {
    grid-template-columns: 1fr; /* Single column on phones */
  }

  .property-image {
    height: 200px;
  }
}

/* =========================================================
   ABOUT US - MOBILE INTERFACE FIX (responsive.css)
========================================================= */

@media screen and (max-width: 768px) {
  /* Prevent horizontal scrolling and section overflow */
  .about-section {
    padding: 40px 0;
    overflow: hidden;
  }

  /* Stack image and text into a clean 1-column layout */
  .about-grid {
    display: flex;
    flex-direction: column;
    gap: 2rem;
  }

  /* Keep image full width with flexible height */
  .about-image-main {
    height: 260px;
    width: 100%;
  }

  .about-image-main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  /* Relocate floating badge so it sits naturally below the image */
  .about-experience {
    position: relative;
    bottom: auto;
    right: auto;
    margin: -25px auto 0 1.25rem; /* Overlaps bottom edge of image cleanly */
    z-index: 5;
    padding: 0.85rem 1.25rem;
    max-width: 85%;
  }

  .about-experience strong {
    font-size: 1.8rem;
  }

  .about-experience span {
    font-size: 0.75rem;
  }

  /* Button alignment for thumb taps */
  .about-content .btn {
    width: 100%;
    justify-content: center;
  }
}

/* =========================================================
   SERVICES SECTION - MOBILE & ANIMATIONS (responsive.css)
========================================================= */

@media screen and (max-width: 768px) {
  .services-section {
    padding: 50px 0;
    overflow: hidden;
  }

  /* Centered Header Text for Mobile */
  .section-heading.centered {
    text-align: center;
    margin-bottom: 2rem;
  }

  .section-heading.centered h2 {
    font-size: 1.75rem;
    margin: 0.5rem 0;
  }

  .section-heading.centered p {
    font-size: 0.95rem;
    color: #666666;
  }

  /* Single Column Stack */
  .services-grid {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    width: 100%;
  }

  /* Mobile Service Card Styling */
  .service-card {
    background: #ffffff;
    padding: 1.75rem 1.25rem;
    border-radius: 14px;
    border: 1px solid #eef0f2;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04);

    /* Initial hidden state for mobile scroll animation */
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
  }

  .service-icon {
    width: 50px;
    height: 50px;
    background-color: rgba(0, 86, 179, 0.1);
    color: #0056b3;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    margin-bottom: 1rem;
  }

  .service-card h3 {
    font-size: 1.2rem;
    color: #111111;
    margin-bottom: 0.5rem;
  }

  .service-card p {
    font-size: 0.92rem;
    color: #555555;
    line-height: 1.5;
    margin-bottom: 1.25rem;
  }

  .service-card a {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #0056b3;
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
  }

  /* Active class applied when visible */
  .services-section.is-visible .service-card {
    opacity: 1;
    transform: translateY(0);
  }

  /* Staggered Delay for Mobile Cards */
  .services-section.is-visible .service-card:nth-child(1) { transition-delay: 0.1s; }
  .services-section.is-visible .service-card:nth-child(2) { transition-delay: 0.25s; }
  .services-section.is-visible .service-card:nth-child(3) { transition-delay: 0.4s; }
  .services-section.is-visible .service-card:nth-child(4) { transition-delay: 0.55s; }
}