/* =========================================================
   GLOBAL FIXES
========================================================= */
* {
  max-width: 100%;
}

html, body {
  overflow-x: hidden;
}

/* =========================================================
   HEADER & MOBILE NAVIGATION
========================================================= */
@media (max-width: 1024px) {

  /* Hamburger button */
  .menu-toggle {
    display: block;
    z-index: 1001;
  }

  /* Full screen nav */
  .nav {
    position: fixed;
    inset: 0;
    background: #1e40af; /* SOLID BLUE */
    transform: translateX(100%);
    transition: transform 0.35s ease;
    z-index: 1000;
    padding: 90px 24px 24px;
  }

  .nav.active {
    transform: translateX(0);
  }

  /* Nav list */
  .nav-links {
    display: flex;
    flex-direction: column;
    gap: 4px;
    background: transparent;
  }

  .nav-links li {
    width: 100%;
    background: transparent;
  }

  /* All links */
  .nav-links li a {
    display: block;
    width: 100%;
    padding: 14px 16px;
    font-size: 18px;
    color: #ffffff;
    background: transparent;
    text-decoration: none;
  }

  .nav-links li a:hover {
    background: rgba(255, 255, 255, 0.15);
  }

  /* Caret */
  .caret {
    color: #ffffff;
    margin-left: 6px;
  }

  /* Hide desktop right box */
  .right-box {
    display: none;
  }

  /* ---------------- Dropdown Fix ---------------- */
  .has-dropdown {
    background: transparent;
  }

  .dropdown-menu {
    position: static;
    display: none;
    background: #1e40af;
    box-shadow: none;
    margin-top: 4px;
  }

  .has-dropdown.active .dropdown-menu {
    display: block;
  }

  .dropdown-menu li a {
    padding-left: 32px;
    font-size: 16px;
    background: transparent;
  }

  .dropdown-menu li a:hover {
    background: rgba(255, 255, 255, 0.15);
  }
}

/* =========================================================
   HERO SECTION
========================================================= */
@media (max-width: 1024px) {
  .hero {
    height: auto;
    padding: 110px 16px 40px;
  }

  .hero-title {
    font-size: 36px;
    text-align: center;
  }

  .hero-subtitle {
    font-size: 14px;
    text-align: center;
  }
}

@media (max-width: 640px) {
  .hero-title {
    font-size: 28px;
  }

  .hero-cta {
    font-size: 12px;
    padding: 10px 16px;
  }
}

/* =========================================================
   SEARCH CARD
========================================================= */
@media (max-width: 900px) {
  .search-card {
    width: 100%;
  }

  .search-fields {
    flex-direction: column;
    gap: 12px;
  }

  .search-btn {
    width: 100%;
  }
}

/* =========================================================
   HORIZONTAL PROPERTY CARDS
========================================================= */
@media (max-width: 768px) {
  section > div[style*="overflow-x:auto"] {
    gap: 12px;
  }

  section > div[style*="overflow-x:auto"] > div {
    min-width: 200px !important;
    height: 240px !important;
  }
}

/* =========================================================
   DARK PROPERTY SLIDER
========================================================= */
@media (max-width: 1024px) {
  .property-cards {
    flex-direction: column;
  }

  .property-main {
    height: 260px;
  }

  .property-right {
    flex-direction: row;
    gap: 12px;
  }
}

@media (max-width: 640px) {
  .property-right {
    flex-direction: column;
  }

  .property-img,
  .property-video,
  .property-yellow {
    height: 140px;
  }
}

/* =========================================================
   CATEGORY TABS
========================================================= */
@media (max-width: 768px) {
  #tabRow {
    overflow-x: auto;
    flex-wrap: nowrap;
  }

  #tabRow button {
    white-space: nowrap;
  }
}

/* =========================================================
   CITY GRID
========================================================= */
@media (max-width: 1024px) {
  .cities-row {
    flex-wrap: wrap;
    gap: 16px;
  }

  .cities-col {
    width: 100%;
    max-width: 320px;
  }
}

/* =========================================================
   FAQ
========================================================= */
@media (max-width: 640px) {
  .faq-question span {
    font-size: 14px;
  }

  .faq-answer {
    font-size: 13px;
  }
}

/* =========================================================
   JD SLIDER
========================================================= */
@media (max-width: 768px) {
  .jd-slides {
    height: 360px;
  }

  .slide-content h3 {
    font-size: 18px;
  }
}

@media (max-width: 480px) {
  .jd-slides {
    height: 280px;
  }

  .slide-content {
    padding: 16px;
  }
}

/* =========================================================
   BLOGS
========================================================= */
@media (max-width: 1024px) {
  .blogs-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .blogs-grid {
    grid-template-columns: 1fr;
  }
}

/* =========================================================
   TESTIMONIAL
========================================================= */
@media (max-width: 768px) {
  #testimonialBox {
    margin-top: 40px;
  }
}

/* =========================================================
   FOOTER
========================================================= */
@media (max-width: 1024px) {
  .ms-footer-top {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .ms-footer-top {
    grid-template-columns: 1fr;
  }

  .ms-footer-form {
    flex-direction: column;
  }

  .ms-footer-btn {
    width: 100%;
  }
}





