 /* ================= VARIABLES ================= */
:root {
  --primary: #0A2A43;
  --secondary: #C9A44C;
  --light: #F3F5F8;
  --dark: #1A1A1A;
  --gray: #777;
}

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

/* ================= GLOBAL ================= */
body {
  font-family: 'Inter', sans-serif;
  background: var(--light);
  color: var(--dark);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: 'Poppins', sans-serif;
  letter-spacing: -0.02em;
}

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

.container {
  width: 90%;
  max-width: 1280px;
  margin: auto;
}

.section {
  padding: 100px 0;
}

.light-bg {
  background: #fff;
}

.section-title {
  text-align: center;
  margin-bottom: 50px;
  font-size: 36px;
  font-weight: 600;
}

/* ================= BUTTON ================= */
.btn {
  background: var(--primary);
  color: #fff;
  padding: 14px 28px;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn:hover {
  background: var(--secondary);
}

/* ================= HEADER ================= */
.header {
  background: #fff;
  box-shadow: 0 4px 20px rgba(0,0,0,0.06);
  position: sticky;
  top: 0;
  z-index: 4000;
}

.nav {
  height: 72px;
  display: flex;
  align-items: center;
  gap: 20px;
}

/* LOGO */
.logo {
  font-size: 22px;
  font-weight: 600;
  margin-left: 10px;
}

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

/* ================= HAMBURGER (MOBILE) ================= */
.menu-toggle {
  width: 28px;
  height: 22px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  cursor: pointer;
  z-index: 5000;
}

.menu-toggle span {
  height: 3px;
  width: 100%;
  background: var(--dark);
  border-radius: 2px;
  transition: all 0.35s ease;
}

.menu-toggle.active span:nth-child(1) {
  transform: translateY(9px) rotate(45deg);
}

.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
  transform: translateY(-9px) rotate(-45deg);
}

/* ================= NAV LINKS (DESKTOP DEFAULT) ================= */
.nav-links {
  margin-left: auto;
  display: none;
  gap: 28px;
}

.nav-links a {
  font-weight: 500;
}

/* ================= HERO ================= */
.hero {
  height: 92vh;
  background:
    linear-gradient(to bottom, rgba(10,42,67,0.75), rgba(10,42,67,0.55)),
    url("../images/hero.jpg") center / cover no-repeat;
  display: flex;
  align-items: center;
  color: #fff;
}

.hero-content {
  max-width: 720px;
  margin: auto;
  text-align: center;
}

.hero h1 {
  font-size: clamp(42px, 6vw, 64px);
  margin-bottom: 14px;
}

.hero p {
  font-size: 18px;
  color: #E5E9EF;
}

/* ================= SEARCH ================= */
.search-box {
  margin-top: 40px;
  background: #fff;
  padding: 24px;
  border-radius: 12px;
  display: grid;
  gap: 12px;
  box-shadow: 0 30px 60px rgba(0,0,0,0.12);
}

.search-box input,
.search-box select {
  padding: 14px;
  border: 1px solid #ddd;
  border-radius: 6px;
}

/* ================= GRID ================= */
.grid-3 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
}

/* ================= PROPERTY CARD ================= */
.property-card {
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0,0,0,0.08);
  transition: all 0.35s ease;
}

.property-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 30px 60px rgba(0,0,0,0.12);
}

.property-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.property-info {
  padding: 22px;
}

.property-info h3 {
  font-size: 20px;
  margin-bottom: 6px;
}

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

.property-info span {
  display: block;
  margin-top: 10px;
  font-size: 18px;
  color: var(--secondary);
  font-weight: 600;
}

/* ================= FEATURES ================= */
.feature-box {
  background: #fff;
  padding: 40px;
  border-radius: 14px;
  text-align: center;
  box-shadow: 0 20px 40px rgba(0,0,0,0.06);
}

/* ================= FOOTER ================= */
.footer {
  background: var(--primary);
  color: #fff;
  padding: 70px 0 30px;
}

.footer-grid {
  display: grid;
  gap: 30px;
}

.footer a {
  display: block;
  margin-top: 8px;
  color: #ddd;
}

.footer a:hover {
  color: var(--secondary);
}

.copyright {
  text-align: center;
  margin-top: 40px;
  font-size: 14px;
  color: #ccc;
}

/* ================= MOBILE SIDE MENU ================= */
@media (max-width: 767px) {

  .nav-links {
    position: fixed;
    top: 0;
    left: -260px;
    width: 260px;
    height: 100vh;
    background: #fff;
    display: flex;
    flex-direction: column;
    padding-top: 90px;
    transition: left 0.35s ease;
    z-index: 3000;
  }

  .nav-links.active {
    left: 0;
  }

  .nav-links a {
    padding: 16px 24px;
    border-bottom: 1px solid #eee;
    font-weight: 500;
  }

  .menu-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.35);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.35s ease;
    z-index: 2000;
  }

  .menu-overlay.active {
    opacity: 1;
    pointer-events: auto;
  }
}

/* ================= DESKTOP ================= */
@media (min-width: 768px) {

  .menu-toggle {
    display: none;
  }

  .nav-links {
    position: static;
    display: flex;
    height: auto;
    background: transparent;
    padding: 0;
  }

  .search-box {
    grid-template-columns: repeat(4, 1fr);
  }

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

  .footer-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (max-width: 767px) {

  .nav-links {
    background: #ffffff;
    box-shadow: 12px 0 40px rgba(0,0,0,0.12);
    border-top-right-radius: 16px;
    border-bottom-right-radius: 16px;
  }
}
/* ================= MOBILE HEADER CTA FIX ================= */
@media (max-width: 767px) {

  /* Ensure header layout stays tight */
  .nav {
    justify-content: space-between;
    gap: 10px;
  }

  /* Mobile List Property button */
  .desktop-only {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;

    padding: 8px 14px;
    font-size: 13px;
    font-weight: 600;

    border-radius: 8px;
    white-space: nowrap;

    height: 36px;
    min-width: unset;

    box-shadow: 0 6px 18px rgba(10,42,67,0.18);
  }

  /* Prevent button overpowering header */
  .btn.desktop-only {
    margin-left: auto;
  }

  /* Logo scaling for balance */
  .logo {
    font-size: 18px;
  }
}
/* ================= PROPERTY GRID (SUPABASE READY) ================= */
.grid-properties {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 32px;
}

/* Tablet */
@media (min-width: 768px) {
  .grid-properties {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Desktop */
@media (min-width: 1024px) {
  .grid-properties {
    grid-template-columns: repeat(4, 1fr);
  }
}
.grid-4 {
  display: grid;
  gap: 30px;
}

@media (min-width: 768px) {
  .grid-4 {
    grid-template-columns: repeat(4, 1fr);
  }
}
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
}

.gallery img {
  width: 100%;
  border-radius: 12px;
  object-fit: cover;
}
.property-card {
  background: #fff;
  border-radius: 18px;
  padding: 30px;
  box-shadow: 0 20px 40px rgba(0,0,0,.08);
}

.property-card img {
  width: 100%;
  height: 360px;
  object-fit: cover;
  border-radius: 14px;
}
@media (max-width: 900px) {
  .property-card > div {
    grid-template-columns: 1fr !important;
  }

  .property-card img {
    height: 260px;
  }
}
#relatedProperties {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 30px;
  margin-top: 30px;
}

#relatedProperties .property-card {
  padding: 0;
  overflow: hidden;
}

#relatedProperties img {
  height: 200px;
  object-fit: cover;
}
.btn {
  display: inline-block;
  padding: 12px 22px;
  border-radius: 10px;
  background: #0a2a43;
  color: #fff;
  text-decoration: none;
  font-weight: 500;
  transition: .25s;
}

.btn:hover {
  background: #143f63;
}
/* ================= PREMIUM PROPERTIES GRID OVERRIDE ================= */

/* GRID LAYOUT */
.grid-properties {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 28px;
  align-items: stretch;
}

/* PROPERTY CARD */
.property-card {
  background: #fff;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 12px 40px rgba(0,0,0,0.08);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
  display: flex;
  flex-direction: column;
}

.property-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 22px 60px rgba(0,0,0,0.14);
}

/* IMAGE – FORCE PREMIUM RATIO */
.property-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}

/* CARD CONTENT */
.property-info {
  padding: 18px 18px 22px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

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

.property-info p {
  font-size: 14px;
  color: #777;
  margin-bottom: 10px;
}

.property-info span {
  font-size: 18px;
  font-weight: 600;
  color: var(--secondary);
  margin-bottom: 14px;
}

/* BUTTON */
.property-info .btn {
  margin-top: auto;
  align-self: flex-start;
  padding: 10px 18px;
  font-size: 14px;
  border-radius: 8px;
}

/* ================= RESPONSIVE TUNING ================= */

@media (max-width: 768px) {
  .grid-properties {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  .property-card img {
    height: 180px;
  }
}

@media (max-width: 480px) {
  .grid-properties {
    grid-template-columns: 1fr;
  }

  .property-card img {
    height: 200px;
  }
}
/* ================= PROPERTY DETAILS – PREMIUM OVERRIDE ================= */

/* MAIN DETAIL CARD */
#propertyDetails .property-card {
  background: #fff;
  border-radius: 20px;
  padding: 36px;
  box-shadow: 0 30px 80px rgba(0,0,0,0.12);
}

/* GRID LAYOUT */
#propertyDetails .property-card > div {
  display: grid !important;
  grid-template-columns: 1.2fr 1fr;
  gap: 48px;
  align-items: start;
}

/* IMAGE GALLERY */
#propertyDetails img {
  width: 100%;
  height: 360px;
  object-fit: cover;
  border-radius: 16px;
  box-shadow: 0 20px 50px rgba(0,0,0,0.18);
}

/* TITLE */
#propertyDetails h1 {
  font-size: clamp(28px, 3vw, 38px);
  margin-bottom: 8px;
  line-height: 1.2;
}

/* LOCATION */
#propertyDetails p:first-of-type {
  color: #777;
  font-size: 15px;
  margin-bottom: 14px;
}

/* PRICE */
#propertyDetails h2 {
  font-size: 32px;
  color: var(--secondary);
  margin-bottom: 22px;
}

/* PROPERTY META (Beds, Baths, Area) */
.property-meta {
  display: flex;
  gap: 28px;
  padding: 16px 0 22px;
  border-top: 1px solid #eee;
  border-bottom: 1px solid #eee;
  margin-bottom: 22px;
}

.property-meta span {
  font-size: 15px;
  color: #333;
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
}

.property-meta i {
  color: var(--primary);
  font-size: 16px;
}

/* LABEL ROWS */
#propertyDetails p b {
  display: inline-block;
  min-width: 90px;
  color: #111;
}

/* DESCRIPTION */
#propertyDetails p:last-of-type {
  margin-top: 18px;
  color: #555;
  line-height: 1.75;
}

/* CALL AGENT BUTTON */
#propertyDetails .btn {
  margin-top: 28px;
  padding: 14px 28px;
  font-size: 15px;
  border-radius: 10px;
  box-shadow: 0 14px 30px rgba(10,42,67,0.35);
}

/* ================= RELATED PROPERTIES ================= */

#relatedProperties {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 28px;
}

#relatedProperties .property-card {
  padding: 0;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 16px 40px rgba(0,0,0,0.1);
}

#relatedProperties img {
  height: 200px;
  object-fit: cover;
}

/* ================= RESPONSIVE ================= */

@media (max-width: 900px) {
  #propertyDetails .property-card > div {
    grid-template-columns: 1fr;
  }

  #propertyDetails img {
    height: 280px;
  }
}

@media (max-width: 480px) {
  #propertyDetails .property-card {
    padding: 24px;
  }

  .property-meta {
    flex-direction: column;
    gap: 12px;
  }
}
.form-msg {
  font-size: 14px;
  margin-top: 10px;
  display: none;
}

.form-msg.success {
  display: block;
  color: #16a34a;
}

.form-msg.error {
  display: block;
  color: #dc2626;
}
/* ================= BUTTON LOADER ================= */
.btn-loading {
  position: relative;
  overflow: hidden;
}

.btn-loading .spinner {
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255,255,255,0.4);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  display: none;
  margin: auto;
}

.btn-loading.loading .btn-text {
  visibility: hidden;
}

.btn-loading.loading .spinner {
  display: block;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ================= POPUP ================= */
.popup {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.popup.hidden {
  display: none;
}

.popup-card {
  background: #fff;
  color: #111;
  padding: 32px;
  border-radius: 16px;
  max-width: 420px;
  width: 90%;
  text-align: center;
  box-shadow: 0 30px 80px rgba(0,0,0,0.35);
  animation: popIn 0.3s ease;
  position: relative;
}

.popup-card.success {
  border-top: 6px solid #16a34a;
}

.popup-card.error {
  border-top: 6px solid #dc2626;
}

.popup-close {
  position: absolute;
  top: 10px;
  right: 14px;
  background: none;
  border: none;
  font-size: 22px;
  cursor: pointer;
}

@keyframes popIn {
  from {
    transform: scale(0.9);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}
/* ================= POPUP ICONS ================= */
.popup-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  margin: 0 auto 18px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.popup-icon.success-icon {
  background: rgba(22,163,74,0.15);
}

.popup-icon.error-icon {
  background: rgba(220,38,38,0.15);
}

/* CHECK ICON */
.popup-icon.success-icon::before {
  content: "";
  width: 22px;
  height: 12px;
  border-left: 4px solid #16a34a;
  border-bottom: 4px solid #16a34a;
  transform: rotate(-45deg);
}

/* ERROR ICON */
.popup-icon.error-icon::before {
  content: "×";
  font-size: 28px;
  font-weight: 700;
  color: #dc2626;
}
/* ================= POPUP ICON BASE ================= */
.popup-icon {
  font-size: 48px;
  margin-bottom: 12px;
}

/* SUCCESS */
.popup-icon.success {
  color: #22c55e; /* green */
}

/* ERROR */
.popup-icon.error {
  color: #ef4444; /* red */
}
/* ================= PROPERTY TABS (PREMIUM) ================= */

.property-tabs {
  display: flex;
  justify-content: center;
  gap: 14px;
  margin-bottom: 50px;
}

.tab-btn {
  background: transparent;
  border: 1px solid #ddd;
  padding: 14px 34px;
  font-size: 15px;
  font-weight: 500;
  border-radius: 40px;
  cursor: pointer;
  color: #444;
  transition: all 0.3s ease;
}

.tab-btn:hover {
  border-color: var(--secondary);
  color: var(--secondary);
}

.tab-btn.active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
  box-shadow: 0 14px 40px rgba(10,42,67,0.35);
}
/* ================= INDEX TABS SPACING FIX ================= */

.tabs-section {
  padding-top: 40px;   /* reduced from 100px */
  padding-bottom: 70px;
}

/* Even tighter on mobile */
@media (max-width: 768px) {
  .tabs-section {
    padding-top: 28px;
    padding-bottom: 50px;
  }
}
/* ================= RESPONSIVE PROPERTY LAYOUT ================= */

/* Hide helpers */
.mobile-only {
  display: block;
}

.desktop-split {
  display: none;
}

/* Section titles (desktop) */
.split-title {
  font-size: 22px;
  font-weight: 600;
  margin-bottom: 26px;
  letter-spacing: -0.02em;
}

/* DESKTOP SPLIT VIEW */
@media (min-width: 1024px) {

  .mobile-only {
    display: none;
  }

  .desktop-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
  }

  .split-column {
    display: flex;
    flex-direction: column;
  }

  .grid-properties {
    grid-template-columns: repeat(2, 1fr);
  }
}
/* ================= MOBILE 2-COLUMN FIX ================= */

@media (max-width: 768px) {

  .container {
    width: 94%;
  }

  .mobile-mix-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
  }

  .mobile-mix-grid .property-card {
    padding: 0;
    border-radius: 14px;
  }

  .mobile-mix-grid img {
    height: 150px;
    border-radius: 14px 14px 0 0;
  }

  .mobile-mix-grid .property-info {
    padding: 14px;
  }

  .mobile-mix-grid h3 {
    font-size: 14px;
    line-height: 1.3;
  }

  .mobile-mix-grid span {
    font-size: 15px;
  }
}
/* =====================================================
   FINAL PROPERTY GRID OVERRIDE (DO NOT EDIT ABOVE)
   PURPOSE:
   - Desktop: 2 sections side by side
   - Mobile: 2-column interleaved grid
   ===================================================== */

/* ---------- DESKTOP / GLOBAL ---------- */
.grid-properties {
  display: grid !important;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
}

.property-card {
  padding: 0 !important;
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.property-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.property-info {
  padding: 16px 18px 20px;
}

.property-info h3 {
  font-size: 16px;
  line-height: 1.35;
}

.property-info p {
  font-size: 13px;
}

.property-info span {
  font-size: 16px;
  margin-bottom: 12px;
}

/* ---------- TABLET ---------- */
@media (max-width: 1024px) {
  .grid-properties {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ---------- MOBILE (CRITICAL FIX) ---------- */
@media (max-width: 768px) {

  /* container width */
  .container {
    width: 94%;
  }

  /* hide desktop blocks */
  .desktop-only {
    display: none !important;
  }

  /* show mobile grid */
  .mobile-only {
    display: block !important;
  }

  /* FORCE 2 PER ROW */
  .mobile-mix-grid {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 14px;
  }

  /* CARD FIX */
  .mobile-mix-grid .property-card {
    border-radius: 14px;
    box-shadow: 0 10px 26px rgba(0,0,0,0.08);
  }

  /* IMAGE FIX (NO GIANT HEIGHT) */
  .mobile-mix-grid .property-card img {
    height: 140px !important;
    border-radius: 14px 14px 0 0;
  }

  /* TEXT SCALE */
  .mobile-mix-grid .property-info {
    padding: 12px;
  }

  .mobile-mix-grid h3 {
    font-size: 14px;
    line-height: 1.25;
  }

  .mobile-mix-grid p {
    font-size: 12px;
  }

  .mobile-mix-grid span {
    font-size: 14px;
  }

  .mobile-mix-grid .btn {
    font-size: 12px;
    padding: 8px 14px;
    border-radius: 6px;
  }
}

/* ---------- VERY SMALL PHONES ---------- */
@media (max-width: 360px) {
  .mobile-mix-grid {
    grid-template-columns: 1fr !important;
  }
}
/* =====================================================
   FINAL DESKTOP + MOBILE MIXED GRID (AUTHORITATIVE)
   This block OVERRIDES everything above it
   ===================================================== */

/* ❌ KILL OLD DESKTOP SPLIT SYSTEM */
.desktop-only,
.property-sections,
.property-section,
#housesGrid,
#plotsGrid {
  display: none !important;
}

/* ✅ USE MIXED GRID EVERYWHERE */
.mobile-only {
  display: block !important;
}

/* ---------- BASE MIXED GRID ---------- */
.mobile-mix-grid {
  display: grid !important;
  gap: 22px;
}

/* ---------- DESKTOP (4 PER ROW) ---------- */
@media (min-width: 1024px) {
  .mobile-mix-grid {
    grid-template-columns: repeat(4, 1fr) !important;
  }

  .mobile-mix-grid .property-card img {
    height: 220px !important;
  }

  .mobile-mix-grid h3 {
    font-size: 16px;
  }

  .mobile-mix-grid span {
    font-size: 16px;
  }
}

/* ---------- TABLET (2 PER ROW) ---------- */
@media (max-width: 1023px) {
  .mobile-mix-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }

  .mobile-mix-grid .property-card img {
    height: 170px !important;
  }
}

/* ---------- SMALL MOBILE ---------- */
@media (max-width: 480px) {
  .mobile-mix-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 14px;
  }

  .mobile-mix-grid .property-card img {
    height: 140px !important;
  }

  .mobile-mix-grid h3 {
    font-size: 14px;
  }
}

/* ---------- CARD NORMALIZATION ---------- */
.mobile-mix-grid .property-card {
  padding: 0 !important;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 12px 32px rgba(0,0,0,0.08);
  display: flex;
  flex-direction: column;
}

.mobile-mix-grid .property-info {
  padding: 14px 16px 18px;
}

.mobile-mix-grid .btn {
  margin-top: auto;
  font-size: 13px;
  padding: 9px 16px;
}
/* =====================================================
   FINAL PREMIUM SPLIT GRID (2 HOUSES | 2 PLOTS)
   ONE TITLE ROW — NO SECTIONS
   ===================================================== */

/* kill old layouts */
.desktop-only,
.property-sections,
#housesGrid,
#plotsGrid {
  display: none !important;
}

/* one grid everywhere */
.mobile-only {
  display: block !important;
}

/* ---------- GRID BASE ---------- */
.mobile-mix-grid {
  display: grid !important;
  gap: 22px;
}

/* ---------- TITLE ROW (SIDE BY SIDE) ---------- */
.mobile-mix-grid::before {
  content: "Homes for Rent";
  grid-column: 1 / 3;
  font-family: 'Poppins', sans-serif;
  font-size: 26px;
  font-weight: 600;
  color: var(--primary);
  letter-spacing: -0.02em;
}

.mobile-mix-grid::after {
  content: "Plots for Sale";
  grid-column: 3 / 5;
  font-family: 'Poppins', sans-serif;
  font-size: 26px;
  font-weight: 600;
  color: var(--primary);
  letter-spacing: -0.02em;
  text-align: left;
}

/* small premium underline */
.mobile-mix-grid::before,
.mobile-mix-grid::after {
  padding-bottom: 6px;
  border-bottom: 3px solid var(--secondary);
  margin-bottom: 6px;
}

/* ---------- DESKTOP (4 PER ROW) ---------- */
@media (min-width: 1024px) {
  .mobile-mix-grid {
    grid-template-columns: repeat(4, 1fr) !important;
  }

  .mobile-mix-grid .property-card img {
    height: 220px !important;
  }
}

/* ---------- TABLET + MOBILE (2 PER ROW) ---------- */
@media (max-width: 1023px) {

  .mobile-mix-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }

  /* titles stack cleanly */
  .mobile-mix-grid::before {
    grid-column: 1 / -1;
    font-size: 22px;
  }

  .mobile-mix-grid::after {
    grid-column: 1 / -1;
    font-size: 22px;
    margin-top: 14px;
  }

  .mobile-mix-grid .property-card img {
    height: 160px !important;
  }
}

/* ---------- CARD NORMALIZATION ---------- */
.mobile-mix-grid .property-card {
  padding: 0 !important;
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 14px 36px rgba(0,0,0,0.08);
}

.mobile-mix-grid .property-info {
  padding: 14px 16px 18px;
}

.mobile-mix-grid h3 {
  font-size: 15px;
  line-height: 1.3;
}

.mobile-mix-grid span {
  font-size: 16px;
  color: var(--secondary);
}

.mobile-mix-grid .btn {
  margin-top: auto;
  font-size: 13px;
  padding: 9px 16px;
  border-radius: 7px;
}
/* =====================================================
   FINAL GRID AND PROPERTY STYLES
   ===================================================== */

/* Mobile 2-column grid (Houses | Plots) */
.mobile-mix-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

/* Desktop 4-column grid */
@media (min-width: 1024px) {
  .mobile-mix-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
  }
}

/* Card Image fix (Responsive height) */
.mobile-mix-grid .property-card img {
  width: 100%;
  height: 220px; /* Maintain fixed height for cards */
  object-fit: cover;
}

/* Property card content */
.mobile-mix-grid .property-card .property-info {
  padding: 14px;
}

.mobile-mix-grid .property-info h3 {
  font-size: 16px;
}

.mobile-mix-grid .property-info span {
  font-size: 18px;
  color: var(--secondary);
}

.mobile-mix-grid .btn {
  font-size: 13px;
  padding: 9px 16px;
  border-radius: 7px;
}

/* ===== PROPERTY TITLES (ALWAYS SIDE BY SIDE) ===== */
.property-headings {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 20px;
}

.property-headings h2 {
  font-family: 'Poppins', sans-serif;
  font-size: 20px;
  font-weight: 600;
  border-bottom: 3px solid var(--secondary);
  padding-bottom: 6px;
  white-space: nowrap;
}

/* Mobile tuning (DO NOT STACK) */
@media (max-width: 768px) {
  .property-headings {
    grid-template-columns: 1fr 1fr; /* force side-by-side */
    gap: 14px;
  }

  .property-headings h2 {
    font-size: 16px;
  }
}
/* =====================================================
   🔒 FORCED PROPERTY GRID — FINAL AUTHORITATIVE FIX
   This OVERRIDES all previous property/grid styles
   ===================================================== */

/* ---------- TITLES (ALWAYS SIDE BY SIDE) ---------- */
.property-headings {
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
  gap: 24px;
  margin-bottom: 24px;
}

.property-headings h2 {
  font-family: 'Poppins', sans-serif;
  font-size: 20px;
  font-weight: 600;
  padding-bottom: 6px;
  border-bottom: 3px solid var(--secondary);
  white-space: nowrap;
}

/* ---------- GRID BASE ---------- */
.property-grid {
  display: grid !important;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
  align-items: stretch;
}

/* ---------- PROPERTY CARD ---------- */
.property-grid .property-card {
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 14px 36px rgba(0,0,0,0.08);
  display: flex;
  flex-direction: column;
  padding: 0 !important;
}

/* ---------- IMAGE FIX (CRITICAL) ---------- */
.property-grid .property-card img {
  width: 100% !important;
  height: 200px !important;
  object-fit: cover !important;
  display: block;
}

/* ---------- CONTENT ---------- */
.property-grid .property-info {
  padding: 14px 16px 18px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.property-grid .property-info h3 {
  font-size: 15px;
  line-height: 1.3;
}

.property-grid .property-info p {
  font-size: 13px;
  color: #777;
}

.property-grid .property-info span {
  font-size: 16px;
  font-weight: 600;
  color: var(--secondary);
  margin: 8px 0 12px;
}

.property-grid .btn {
  margin-top: auto;
  font-size: 13px;
  padding: 9px 16px;
  border-radius: 7px;
}

/* ---------- TABLET + MOBILE ---------- */
@media (max-width: 1023px) {

  .property-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 14px;
  }

  .property-grid .property-card img {
    height: 140px !important;
  }

  .property-headings h2 {
    font-size: 16px;
  }
}

/* ---------- VERY SMALL DEVICES ---------- */
@media (max-width: 360px) {
  .property-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}
/* =========================================
   🎯 Controlled spacing after header
   ========================================= */

/* Section wrapper that holds the titles */
.property-section {
  padding-top: 18px !important;
}

/* Fine tuning for titles */
.property-headings {
  margin-top: 0 !important;
  padding-top: 24px !important;
}

/* Mobile adjustment */
@media (max-width: 768px) {
  .property-section {
    padding-top: 14px !important;
  }
}
/* ===============================
   FINAL IMAGE GAP FIX (FORCED)
================================ */

/* Slider must not create empty space */
.property-slider {
  height: auto !important;
  min-height: unset !important;
  background: transparent !important;
}

/* Image must define height */
.property-slider img {
  width: 100%;
  height: auto !important;
  max-height: 520px;
  object-fit: cover;
  display: block;
}

/* Desktop banner look */
@media (min-width: 768px) {
  .property-slider img {
    height: 520px !important;
  }
}

/* Mobile banner */
@media (max-width: 767px) {
  .property-slider img {
    height: 260px !important;
  }
}

/* REMOVE ANY GAP BELOW IMAGE */
.property-wrapper,
.property-details-card {
  overflow: hidden !important;
  background: #fff !important;
}

/* Body must not overlap */
.property-body {
  margin-top: 0 !important;
  padding-top: 24px;
}

/* Kill black background anywhere */
.property-slider::after,
.property-slider::before {
  display: none !important;
  content: none !important;
}
/* ================================
FORCE PROPERTY DETAILS PREMIUM
================================ */

#propertyDetails .property-wrapper{
max-width:1100px;
margin:auto;
background:#fff;
border-radius:22px;
overflow:hidden;
box-shadow:0 20px 50px rgba(0,0,0,.08);
}

/* IMAGE SLIDER */
#propertyDetails .property-slider{
position:relative;
width:100%;
height:420px;
overflow:hidden;
}

#propertyDetails .property-slider img{
width:100%;
height:100%;
object-fit:cover;
display:block;
}

/* SLIDER ARROWS */
#propertyDetails .slider-btn{
position:absolute;
top:50%;
transform:translateY(-50%);
width:46px;
height:46px;
border-radius:50%;
border:none;
background:rgba(0,0,0,.55);
color:#fff;
font-size:18px;
cursor:pointer;
display:flex;
align-items:center;
justify-content:center;
z-index:2;
}

#propertyDetails .slider-btn.left{ left:16px; }
#propertyDetails .slider-btn.right{ right:16px; }

/* BODY */
#propertyDetails .property-body{
padding:28px;
}

#propertyDetails h1{
font-size:28px;
margin-bottom:6px;
}

#propertyDetails .property-location{
color:#777;
margin-bottom:12px;
}

#propertyDetails .property-price{
font-size:26px;
font-weight:700;
color:#d4a017;
margin-bottom:18px;
}

#propertyDetails .property-meta{
display:flex;
gap:14px;
flex-wrap:wrap;
margin-bottom:20px;
}

#propertyDetails .property-meta span{
background:#f4f4f4;
padding:10px 16px;
border-radius:999px;
font-weight:600;
font-size:14px;
}

/* RELATED */
#relatedProperties{
display:grid;
grid-template-columns:repeat(auto-fill,minmax(260px,1fr));
gap:20px;
}

#relatedProperties .related-card{
background:#fff;
border-radius:18px;
overflow:hidden;
box-shadow:0 10px 30px rgba(0,0,0,.08);
}

#relatedProperties img{
width:100%;
height:180px;
object-fit:cover;
}

#relatedProperties .info{
padding:14px;
}

#relatedProperties a{
display:inline-block;
margin-top:10px;
padding:10px 22px;
border-radius:999px;
background:linear-gradient(135deg,#111,#333);
color:#fff;
text-decoration:none;
font-weight:600;
}

/* MOBILE */
@media(max-width:768px){
#propertyDetails .property-slider{ height:260px; }
#propertyDetails h1{ font-size:22px; }
}
/* ===============================
   FULL IMAGE MODAL (FORCED)
   =============================== */

.image-modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.92);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.image-modal img {
  max-width: 95vw;
  max-height: 90vh;
  object-fit: contain;
  border-radius: 12px;
}

.image-modal.active {
  display: flex;
}

.close-modal {
  position: absolute;
  top: 20px;
  right: 26px;
  font-size: 42px;
  color: #fff;
  cursor: pointer;
  z-index: 10000;
}

.modal-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 54px;
  height: 54px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,.15);
  color: #fff;
  font-size: 30px;
  cursor: pointer;
}

.modal-nav:hover {
  background: #c89b3c;
}

.modal-nav.prev {
  left: 30px;
}

.modal-nav.next {
  right: 30px;
}

@media (max-width: 768px) {
  .modal-nav {
    width: 44px;
    height: 44px;
    font-size: 24px;
  }
}
/* ================= CONTACT INFO MODAL ================= */

.contact-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.contact-modal.active {
  display: flex;
}

.contact-modal .modal-content {
  background: #fff;
  padding: 28px;
  border-radius: 16px;
  max-width: 420px;
  width: 90%;
  position: relative;
  box-shadow: 0 30px 80px rgba(0,0,0,0.35);
  animation: popIn 0.3s ease;
}

.contact-modal h2 {
  margin-bottom: 16px;
}

.contact-modal .contact-info p {
  margin-bottom: 12px;
  font-size: 15px;
}

.contact-modal .contact-info a {
  color: #0a2a43;
  font-weight: 500;
}

.contact-modal .close-modal {
  position: absolute;
  top: 10px;
  right: 14px;
  font-size: 26px;
  cursor: pointer;
}
/* Custom styling for WhatsApp image */
.whatsapp-logo {
  width: 24px; /* Adjust size */
  height: 24px;
  margin-right: 10px; /* Space between icon and text */
  vertical-align: middle; /* Align the logo with text */
}
.fa-whatsapp {
  color: #25D366;
  font-size: 18px;
}

.fa-phone {
  color: #000;
}
/* ================= FINAL HEADER FORCE FIX ================= */

/* HEADER BASE */
.header .nav{
  display:flex !important;
  align-items:center !important;
  justify-content:space-between !important;
  height:78px !important;
  position:relative !important;
}

/* ================= MENU TOGGLE ================= */
.menu-toggle{
  width:44px !important;
  height:44px !important;
  display:none !important;              /* ❌ desktop pe hide */
  flex-direction:column !important;
  justify-content:center !important;
  align-items:center !important;
  gap:5px !important;
  background:#f4f4f4 !important;
  border:none !important;
  border-radius:10px !important;
  box-shadow:0 4px 10px rgba(0,0,0,.15) !important;
  cursor:pointer !important;
}

/* Show toggle ONLY on mobile */
@media(max-width:767px){
  .menu-toggle{
    display:flex !important;
  }
}

/* Hamburger lines */
.menu-toggle span{
  width:20px !important;
  height:2px !important;
  background:#111 !important;
  border-radius:2px !important;
  transition:all .3s ease !important;
}

/* Active (X) */
.menu-toggle.active span:nth-child(1){
  transform:translateY(7px) rotate(45deg) !important;
}
.menu-toggle.active span:nth-child(2){
  opacity:0 !important;
}
.menu-toggle.active span:nth-child(3){
  transform:translateY(-7px) rotate(-45deg) !important;
}

/* ================= LOGO ================= */
/* Logo SAME SIZE as menu toggle */
.logo{
  display:flex !important;
  align-items:center !important;
}

.logo img{
  height:44px !important;   /* 👈 EXACT same as toggle */
  width:44px !important;
  object-fit:contain !important;
}

/* Desktop thora sa bigger (optional but clean) */
@media(min-width:768px){
  .logo img{
    height:52px !important;
    width:52px !important;
  }
}
/* ===== PREMIUM SEARCH BAR ===== */

.property-search-wrapper {
  margin: 30px auto;
  padding: 0 15px;
}

.property-search {
  display: grid;
  grid-template-columns: 2fr 1.2fr 1fr 1fr auto;
  gap: 12px;
  background: #fff;
  padding: 16px;
  border-radius: 14px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
  align-items: center;
}

.search-field input,
.search-field select {
  width: 100%;
  padding: 14px 14px;
  border-radius: 10px;
  border: 1px solid #ddd;
  font-size: 15px;
  outline: none;
  background: #fafafa;
}

.search-field input:focus,
.search-field select:focus {
  border-color: #2b6cff;
  background: #fff;
}

.search-btn {
  background: #2b6cff;
  color: #fff;
  border: none;
  padding: 14px 22px;
  font-size: 15px;
  border-radius: 10px;
  cursor: pointer;
  white-space: nowrap;
  transition: all .2s ease;
}

.search-btn:hover {
  background: #1f55d5;
  transform: translateY(-1px);
}

/* ===== MOBILE OPTIMIZATION ===== */
@media (max-width: 900px) {
  .property-search {
    grid-template-columns: 1fr 1fr;
  }

  .search-btn {
    grid-column: span 2;
    width: 100%;
  }
}

@media (max-width: 480px) {
  .property-search {
    grid-template-columns: 1fr;
  }

  .search-btn {
    width: 100%;
  }
}
/* ===== FORCE SEARCH BUTTON THEME ===== */
.search-btn {
  background: #2b6cff !important;   /* theme color */
  color: #fff !important;
  border: none !important;
  border-radius: 10px !important;
  padding: 14px 22px !important;
  font-size: 15px !important;
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  transition: all 0.25s ease;
}

.search-btn i {
  font-size: 14px;
}

.search-btn:hover {
  background: #1f55d5 !important;
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(43,108,255,0.35);
}
.pagination {
  display: flex;
  gap: 6px;
  justify-content: center;
  margin: 30px 0;
}

.pagination button {
  padding: 8px 14px;
  border: 1px solid #ddd;
  background: #fff;
  cursor: pointer;
}

.pagination button.active {
  background: #000;
  color: #fff;
}
#pagination {
  margin-top: 40px;
}
/* ===== SECTION TITLE RESPONSIVE FIX ===== */
.section-title {
  font-size: 28px;
  line-height: 1.3;
  margin-bottom: 20px;
}

@media (max-width: 768px) {
  .section-title {
    font-size: 20px;
    line-height: 1.25;
    margin-bottom: 14px;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .section-title {
    font-size: 18px;
    line-height: 1.2;
  }
}
.contact-modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.contact-modal.active {
  display: flex;
}

.contact-modal .modal-content {
  background: #fff;
  padding: 20px 24px;
  border-radius: 14px;
  max-width: 320px;
  width: 90%;
  position: relative;
}

/* X button */
.close-contact-modal {
  position: absolute;
  top: 10px;
  right: 14px;
  font-size: 22px;
  cursor: pointer;
  color: #333;
}

