/* =============================
   1. Root Variables (Design Tokens)
============================= */
:root {
  /* Colors */
  --primary: #04154b; /* Main dark color */
  --accent: #fdb700; /* Gold / highlight */
  --accent-rgb: 255, 102, 0;
  --muted: #374151; /* Soft text / secondary */
  --white: #ffffff;
  --mildbg: #e8f1f5;
  --bg: white; /* Page background */
  --secondarybg: #f9fafb;

  /* Sizes & Effects */
  --radius: 30px; /* Border radius for cards/buttons */
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  --font-heading: "Manrope", sans-serif;
  --font-body: "Manrope", sans-serif;
}

/* =============================
   2. Global Reset / Body
============================= */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--primary);
  line-height: 1.6;
}

/* =============================
   3. Typography
============================= */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  color: var(--primary);
}

p {
  color: var(--muted);
}

/* =============================
   4. Buttons
============================= */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.75rem 1.5rem;
  border-radius: 50px;
  font-weight: 500;
  font-size: 0.9rem;
  text-decoration: none;
  transition: all 0.2s ease;
  cursor: pointer;
}

.btn-primary {
  position: relative;
  overflow: hidden;
  background: var(--primary);
  color: var(--white);
}

.btn-primary:hover {
  opacity: 0.9;
  transform: translateY(-2px);
}

.btn-primary::before {
  content: "";
  position: absolute;
  top: 0;
  left: -150%;
  width: 50%;
  height: 100%;
  background: linear-gradient(
    to right,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.4) 50%,
    rgba(255, 255, 255, 0) 100%
  );
  transform: skewX(-25deg);
  transition: none;
}

.btn-primary:hover::before {
  left: 150%;
  transition: left 0.8s ease-in-out;
}

.btn-secondary {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
}

.btn-secondary:hover {
  background: var(--primary);
  color: var(--white);
}

/* =============================
   5. Cards (Property Listings)
============================= */
.card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  position: relative;
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease,
    opacity 0.2s ease;
  text-align: left;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.18);
}

.card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.card img:hover {
  transform: scale(1.06);
}

.card-body {
  padding: 1.25rem;
}

.card-title {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.card-location {
  color: var(--muted);
  font-size: 0.9rem;
  margin-bottom: 0.75rem;
}

.card-specs {
  color: var(--muted);
  font-size: 0.9rem;
  margin-bottom: 0.75rem;
}

.card-price {
  color: var(--primary);
  font-weight: 700;
  font-size: 2rem;
}

/* =============================
   6. Listings Grid
============================= */
.listings {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
  margin: 2rem 0;
}

.listings-box {
  width: 100%;
  max-width: 500px;
  justify-self: start;
}

/* =============================
   7. Badges (For Sale / Sold)
============================= */
.badge {
  display: inline-block;
  padding: 0.25rem 0.6rem;
  border-radius: var(--radius);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--white);
  background: var(--accent);
  margin-bottom: 0.5rem;
}

.badge.sold {
  background: #ef4444; /* Red for Sold */
}

/* =============================
   8. Section Wrapper
============================= */
.section {
  padding: clamp(2rem, 5vw, 4rem) clamp(1.5rem, 6vw, 5rem);
}

.section-title {
  font-size: 2rem;
  margin-bottom: 2rem;
}

/* =============================
   9. Utility Helpers
============================= */
.text-center {
  text-align: center;
}

.mb-1 {
  margin-bottom: 0.25rem;
}
.mb-2 {
  margin-bottom: 0.5rem;
}
.mb-3 {
  margin-bottom: 1rem;
}
.mb-4 {
  margin-bottom: 1.5rem;
}

/* =============================
  Colored-background CTA close
============================= */
.colored {
  background: var(--primary);
  padding: 3rem 5rem;
  margin-bottom: 5rem;
}

.colored h2,
.colored p {
  color: var(--white);
}

.navbar {
  position: absolute;
  top: 0;
  width: 100%;
  z-index: 1000;
  transition:
    background-color 0.3s ease,
    box-shadow 0.3s ease;
  transition: all 0.3s ease-in-out;
}

.other-pages {
  background: var(--white);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.navbar a {
  color: white;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: uppercase;
}

.other-pages a {
  color: var(--primary);
}

.navbar.scrolled {
  position: fixed;
  background: white;
  backdrop-filter: blur(10px);
  box-shadow: 0 3px 5px rgba(0, 0, 0, 0.2);
  padding: 0.25rem 0;
}

.navbar.scrolled a {
  color: var(--primary);
}

.navbar.scrolled .btn {
  color: var(--white);
}

.nav-bar-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.4rem clamp(1.5rem, 6vw, 4rem);
}

.other-pages .nav-bar-row {
  padding: 0.3rem clamp(1.5rem, 6vw, 4rem);
}

.other-pages .btn {
  color: var(--white);
}

/* 1. Default State: Hide the dark logo on the homepage */
.navbar .logo-dark {
  display: none;
}

.navbar .logo-white {
  display: block;
}

/* 2. Scrolled State: Swap them */
.navbar.scrolled .logo-white {
  display: none;
}

.navbar.scrolled .logo-dark {
  display: block;
}

/* 3. Other Pages: Since other pages are always white, always show dark logo */
.other-pages .logo-white {
  display: none;
}

.other-pages .logo-dark {
  display: block;
}

/* Ensure the logos maintain the same height to prevent jumping */
.nav-logo {
  height: 70px;
  width: auto;
  display: block;
}

.nav-bar-row .nav-title {
  font-size: 1.3rem;
  font-weight: 700;
  margin-left: 0.5rem;
}

.nav-left {
  display: flex;
  align-items: center;
  gap: 0.2rem;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

/* Container must be relative so the menu can be absolute to it */
.dropdown {
  position: relative;
  display: inline-block;
}

.dropdown-toggle i {
  font-size: 0.8rem;
  vertical-align: middle;
  transition: transform 0.3s ease;
}

/* Hide the menu by default */
.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--white);
  min-width: 240px;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
  border-radius: 10px;
  padding: 1rem 0;
  list-style: none;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.3s ease;
  z-index: 1000;
}

/* Show menu on hover */
.dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown:hover .dropdown-toggle i {
  transform: rotate(180deg);
}

/* Menu Item Styling */
.dropdown-menu li a {
  padding: 0.5rem 1.5rem;
  display: block;
  color: var(--primary);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 400;
  transition: background 0.2s;
}

.dropdown-menu li a:hover {
  background-color: var(--primary);
  color: var(--accent);
}

/* Mobile Submenu Styling */
.mobile-submenu {
  max-height: 0;
  overflow: hidden;
  list-style: none;
  background: rgba(0, 0, 0, 0.05); /* Slight contrast */
  transition: max-height 0.3s ease-out;
}

.mobile-dropdown.active .mobile-submenu {
  max-height: 300px; /* Large enough to fit all items */
}

.mobile-dropdown-header a {
  border-bottom: none !important;
  padding-right: 0; /* Adjust padding so it doesn't double up */
}

.mobile-dropdown-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--mildbg); /* The full-width line */
  cursor: pointer;
}

.toggle-icon {
  padding: 1rem; /* Larger tap target */
  cursor: pointer;
  transition: transform 0.3s ease;
}

.mobile-dropdown.active .toggle-icon {
  transform: rotate(180deg);
}

.dropdown-menu i,
.mobile-submenu i {
  color: var(--accent);
  font-weight: 300;
  margin-right: 8px;
}

.navbar.scrolled .btn {
  color: var(--white) !important;
}

/* Nav links animation and active state */
/* --- DESKTOP NAV UNDERLINE --- */
.nav-right a:not(.btn) {
  position: relative;
  /* Remove the margin I gave you before to fix the spacing */
  transition: color 0.3s ease;
}

/* The bar for Desktop only */
.nav-right a:not(.btn)::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px; /* Positions it slightly below the text */
  width: 0;
  height: 2px;
  background-color: #d4af37; /* Using your gold/accent color */
  transition: width 0.3s ease-in-out;
}

/* Hover & Active state for Desktop */
.nav-right a:not(.btn):hover::after,
.nav-right a.active:not(.btn)::after {
  width: 100%;
}

/* --- MOBILE MENU ACTIVE (No Bar) --- */
/* This highlights the background or text color of the mobile link instead */
.mobile-menu li a.active {
  background-color: var(--accent); /* Matches your hover effect */
  color: white;
}

.hamburger {
  display: none;
  position: relative;
  width: 24px;
  height: 18px;
  cursor: pointer;
  justify-content: center;
  align-items: center;
  z-index: 1001; /* keep above menu */
}

.hamburger span {
  position: absolute;
  width: 100%;
  height: 3px; /* thinner lines */
  background: var(--white);
  border-radius: 3px;
  transition: all 0.3s ease-in-out;
}

.other-pages .hamburger span {
  background: var(--primary);
}

.navbar.scrolled .hamburger span {
  background: var(--primary);
}

.hamburger.active span {
  background: var(--primary);
}

.hamburger span:nth-child(1) {
  transform: translateY(-8px);
}

.hamburger span:nth-child(2) {
  transform: translateY(0);
}

.hamburger span:nth-child(3) {
  transform: translateY(8px);
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg);
}

.mobile-menu {
  display: none; /* Controlled by .active */
  flex-direction: column;
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  width: 100%;
  background-color: var(--white);
  z-index: 998;

  /* FIX 1: Allow scrolling within the menu itself */
  overflow-y: auto;
  /* FIX 2: Ensure content starts at the top and can grow downwards */
  padding-top: 4rem;
  padding-bottom: 3rem; /* Extra space at the bottom so last items aren't cut off */
}

.mobile-menu.active {
  display: flex;
}

.mobile-menu li {
  list-style: none;
  width: 100%;
}

.mobile-menu li a {
  font-family: var(--font-body);
  text-transform: uppercase;
  display: block;
  padding: 1.2rem 1.5rem; /* Slightly reduced vertical padding */
  color: var(--primary);
  text-decoration: none;
  text-align: left;
  font-weight: bold;
  border-bottom: 1px solid var(--mildbg);
}

/* Submenu Link Styling - Making them look distinct from main links */
.mobile-submenu li a {
  text-transform: capitalize; /* Don't yell in all caps for sub-items */
  font-weight: normal;
  padding: 1rem 2.5rem; /* Indent the text further */
  background-color: #fcfcfc; /* Very light tint to show it's a sub-menu */
  border-bottom: 1px solid #eee;
}

.mobile-menu li a:hover {
  color: var(--accent);
}

.hero {
  position: relative;
  min-height: 100svh;
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  padding: 8rem 1rem 2rem 1rem;
  text-align: center;
}

#hero-bg-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -2;
  background-color: #1a1a1a; /* The "Loading" color */
  overflow: hidden;
}

.hero-bg-media {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0; /* Start invisible */
  transition: opacity 0.8s ease-in-out; /* Smooth fade-in */
}

/* This class will be added by JS once the media is ready */
.hero-bg-media.loaded {
  opacity: 1;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.5),
    rgba(0, 0, 0, 0.35),
    rgba(0, 0, 0, 0.6)
  );
  z-index: -1;
}

.hero-content {
  color: var(--white);
  max-width: 1200px;
  width: 100%;
  padding: 0 clamp(1.5rem, 5vw, 4rem);
  z-index: 2;
}

.hero .hero1Tile {
  background: none;
  color: var(--accent);
  border: 1px solid var(--accent);
  border-radius: 50px;
  padding: 0.5rem 1rem;
  font-size: 0.8rem;
  font-weight: 700;
  position: relative;
  display: inline-block;
  margin-bottom: 0.5rem;
}

.heroHead {
  padding: 1rem 0 1rem 0;
}

.hero h1 {
  font-size: clamp(2.5rem, 6vw, 4.2rem);
  line-height: 1.1;
  padding: 0;
  color: var(--white);
  font-family: var(--font-body);
  font-weight: 400;
}

.hero p {
  font-size: clamp(0.9rem, 3vw, 1.1rem);
  color: var(--white);
}

.hero .hero1Tile,
.hero h1,
.hero h2 {
  margin: 0;
}

.hero .heroBtnRow {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin: 2rem 0 0 0;
}

.hero-btn {
  position: relative;
  z-index: 1;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: clamp(0.8rem, 2vh + 0.1rem, 1.5rem) clamp(1.5rem, 5vw + 0.5rem, 3rem);
  font-size: clamp(0.9rem, 2.5vw + 0.1rem, 1rem);
  background: var(--accent);
  color: var(--white);
  border: none;
  gap: 0.5rem;
  border-radius: 50px; /* Increased for a smoother look */
  cursor: pointer;
  text-decoration: none;

  /* Pulse Animation */
  animation: pulse 2s infinite ease-in-out;
}

/* THE ROTATING GRADIENT */
.hero-btn::before {
  content: "";
  position: absolute;
  z-index: -2;
  left: -50%;
  top: -50%;
  width: 200%;
  height: 200%;
  /* White and Yellow rotating light */
  background: conic-gradient(
    #ffffff,
    #04154b,
    transparent 30%,
    transparent 70%,
    #ffffff
  );
  /* Force the animation to run */
  animation: rotateBorder 3s linear infinite !important;
}

/* THE INNER MASK (Fixes the square edges) */
.hero-btn::after {
  content: "";
  position: absolute;
  z-index: -1;
  left: 3px;
  top: 3px;
  /* Subtracting 6px (3px each side) from 100% */
  width: calc(100% - 6px);
  height: calc(100% - 6px);
  background: var(--primary);
  /* Match the outer radius minus the border thickness for smooth corners */
  border-radius: 45px;
}

/* --- ANIMATIONS --- */

@keyframes rotateBorder {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

@keyframes pulse {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

/* Hover fixes */
.hero-btn:hover {
  color: var(--white);
  animation-play-state: paused;
}

.hero-search-container {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 95%;
  max-width: 1000px;
  margin: 30px auto;
  background: white;
  padding: 1rem 1.5rem;
  border-radius: 20px; /* Pill shape for desktop */
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.search-main {
  display: flex;
  flex: 1;
  align-items: center;
  justify-content: space-between;
}

.search-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 0 15px;
}

/* Hero Search Specific Styling */
.search-item select {
  border: 1px solid var(--muted);
  border-radius: 10px;
  background: transparent;
  outline: none;
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--primary);
  width: 100%;
  cursor: pointer;
  appearance: none; /* Removes default browser arrow */
  padding: 0.5rem 0.5rem;
  background-image: url('data:image/svg+xml;charset=US-ASCII,<svg xmlns="http://www.w3.org/2000/svg" width="12" height="12" fill="grey" viewBox="0 0 16 16"><path d="M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z"/></svg>');
  background-repeat: no-repeat;
  background-position: right 10px center;
}

.search-item label {
  display: block;
  font-size: 0.75rem;
  font-family: inherit;
  color: #888;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 2px;
  text-align: left;
}

.search-divider {
  width: 1px;
  height: 40px;
  background: #eee;
}

.hero-search-btn {
  background: var(--primary);
  color: white;
  border: none;
  padding: 15px 30px;
  border-radius: 15px;
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  font-weight: 600;
  font-family: var(--font-body);
  margin-top: 0;
  white-space: nowrap;
  height: 55px; /* Match height of items */
  border-radius: 20px;

  /* FIXES START HERE */
  position: relative; /* Anchor for the shine */
  overflow: hidden; /* Prevents spilling */
  transition:
    transform 0.2s ease,
    background 0.2s ease;
}

.hero-search-btn:hover {
  transform: translateY(-2px);
  /* Use filter or background-color instead of opacity 
     to keep the shine bright while the button dims */
  filter: brightness(1.1);
}

.hero-search-btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%; /* Starting position */
  width: 100%; /* Wider shine for better visibility */
  height: 100%;
  background: linear-gradient(
    to right,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.4) 50%,
    rgba(255, 255, 255, 0) 100%
  );
  transform: skewX(-25deg);
}

.hero-search-btn:hover::before {
  left: 100%; /* Ending position */
  transition: left 0.7s ease-in-out;
}

.search-buttons {
  display: flex;
  gap: 12px;
  align-items: center;
  padding-left: 10px;
}

/* The Reset Button Styling */
.reset-btn {
  background-color: #f8f9fa;
  color: #333;
  border: 1px solid #dcdcdc;
  padding: 12px 20px;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
  font-size: 14px;
  transition: all 0.3s ease;
}

.reset-btn i {
  font-size: 14px;
  color: #666;
}

.reset-btn:hover {
  background-color: #e2e6ea;
  border-color: #adb5bd;
}

/* Loading Spinner Container */
.loader-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 300px;
  grid-column: 1 / -1; /* Makes it span the whole grid */
}

/* The Spinner itself */
.spinner {
  width: 50px;
  height: 50px;
  border: 5px solid #f3f3f3;
  border-top: 5px solid var(--secondary-color, #2c3e50); /* Use your site's accent color */
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

.loader-text {
  margin-top: 15px;
  font-weight: 500;
  color: #666;
}

/* Center the "No Results" message across the whole grid */
.no-results-content {
  grid-column: 1 / -1; /* Spans all columns */
  text-align: center;
  padding: 80px 20px;
  background: #fcfcfc;
  border-radius: 12px;
  border: 2px dashed #eee;
  margin: 20px 0;
}

.no-results-content i {
  font-size: 60px;
  color: #bbb;
  display: block;
  margin-bottom: 15px;
}

.no-results-content h3 {
  font-size: 24px;
  color: #333;
  margin-bottom: 10px;
}

.no-results-content p {
  color: #666;
  margin-bottom: 25px;
}

.no-results-content .btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 30px;
}

/* Featured Section */
.featured-properties {
  text-align: center;
  background: var(--secondarybg);
}

.featured-properties .p1 {
  line-height: 0.5;
}

.p1 {
  color: var(--accent);
  font-weight: 600;
  font-size: 0.9rem;
  margin: 0;
}

.featured-properties h2 {
  font-size: clamp(2rem, 6vw, 3.5rem);
  line-height: 1;
  font-weight: 300;
  margin: 0;
  padding: 1rem 0;
}

.featured-properties p {
  margin: 0;
}

.featured-properties {
  width: 100%;
  overflow: hidden;
  /* Centers the entire section content */
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: clamp(2rem, 5vw, 4rem) clamp(1.5rem, 6vw, 3rem)
    clamp(2rem, 5vw, 3rem) clamp(1.5rem, 6vw, 3rem);
}

.featuredImgRow {
  width: 100%;
  margin: 0 auto;
  overflow: hidden;
  position: relative;
  padding: 1rem 1rem 2rem 1rem;
}

.slider-track {
  display: flex;
  flex-wrap: nowrap;
  gap: 2rem;
  /* Use hardware acceleration for smoother motion */
  will-change: transform;
  transition: transform 0.8s cubic-bezier(0.45, 0, 0.55, 1);
}

.featuredImgRow .card {
  box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
}

.featuredImgRow .card:hover {
  transform: translateY(-6px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.18);
}

.featuredImgBox {
  /* Exactly 1/3 of the container, accounting for the 2 gaps */
  flex: 0 0 calc((100% - 4rem) / 3);
  width: calc((100% - 4rem) / 3);
}

.featured-btn-row {
  padding: 2rem 1rem 0 1rem;
  display: flex;
  gap: 0.3rem;
  align-items: center;
  justify-content: right;
  align-self: stretch;
}

.featured-btn-row button {
  padding: 0.2rem 0.8rem;
  font-size: 0.8rem;
  border: none;
  border-radius: 10px;
  background-color: var(--primary);
  color: var(--white);
  font-family: var(--font-body);
}

.featured-btn-row button:hover {
  background-color: var(--accent);
  cursor: pointer;
}

.similar-investment-box {
  width: 100%;
  max-width: 500px;
  justify-self: start;
}

.featured-pic {
  position: relative;
  overflow: hidden;
  width: 100%;
  height: 260px;
}

.sold-badge {
  position: absolute;
  top: 15px;
  left: 15px; /* Change to right: 15px if you want it on the right side */
  background-color: #dc3545; /* A strong red color */
  color: #ffffff;
  padding: 5px 12px;
  font-size: 14px;
  font-weight: bold;
  letter-spacing: 1px;
  border-radius: 10px;
  z-index: 10;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.featuredText {
  padding: 1.5rem;
}

.featuredImgBox:hover h4,
.listings-box:hover h4,
.similar-investment-box:hover h4 {
  color: var(--accent);
}

.featuredText .btn {
  width: 100%;
  justify-content: center;
}

.card-specs {
  display: flex;
  gap: 0.5rem;
}

.card-specs p {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
}

.card-specs i {
  font-size: 0.7rem;
}

.card-location {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
}

.card-location i {
  font-size: 0.7rem;
}

/* About Section */
.about {
  display: flex;
  gap: 4rem;
  align-items: center;
  justify-content: space-between;
}

.about-photo {
  position: relative;
  width: 100%; /* Default to full width */
  max-width: 550px; /* Only allow it to go up to 550px */
  height: 400px;
}

.about-photo-img {
  overflow: hidden;
  border-radius: 30px;
  width: 100%;
  height: 100%;
}

.about img {
  width: 100%;
  height: 100%;
  border-radius: 30px;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.about img:hover {
  transform: scale(1.05);
}

.about-badge {
  position: absolute;
  background: var(--accent);
  border-radius: 30px;
  padding: 1.5rem 0.5rem;
  bottom: -30px;
  right: -30px;
  z-index: 2;
  width: 180px;
  text-align: center;
  line-height: 1.1;
  transition: transform 0.4s ease;
}

.about-badge:hover {
  transform: scale(1.05);
}

.about-badge .badge-price {
  font-size: 2rem;
  font-weight: 700;
}
.about-badge p {
  font-size: 0.8rem;
  color: var(--primary);
}

.about-text {
  width: 100%;
  max-width: 550px;
}

.about-text p {
  margin: 1rem 0;
}

.about h2 {
  font-size: clamp(2rem, 6vw, 2.8rem);
  line-height: 1.1;
  font-weight: 300;
  display: block;
  letter-spacing: -0.03em;
}

.about-text-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 2rem;
  row-gap: 0.9rem;
  margin-bottom: 1rem;
}

.grid-points {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
}

.grid-points i {
  display: inline-flex;
  width: 35px;
  height: 35px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: 14px;
  background: var(--mildbg);
  color: var(--primary);
  transition: all 0.3s ease;
  text-decoration: none;
}

.about-text-grid .grid-points {
  margin: 0;
}

.about .btn {
  margin: 1rem 0;
}

/* Services Section */
.services {
  text-align: center;
}

.services h2 {
  font-size: clamp(2rem, 6vw, 3rem);
  line-height: 1;
  font-weight: 300;
  margin: 0;
  padding: 1rem 0;
}

.services > p {
  font-size: 1rem;
  padding: 0.2rem 0 3rem 0;
  margin: 0;
}

.services-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}

.service-box h4 {
  font-size: 1.3rem;
  font-weight: 500;
  padding: 0.5rem 0;
}

.service-box p {
  font-size: 0.9rem;
  line-height: 1.5;
}

.services-row .remix {
  display: inline-flex;
  width: 130px;
  height: 130px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: 50px;
  background: var(--mildbg);
  color: var(--primary);
  transition: all 0.3s ease;
  text-decoration: none;
}

.service-box:hover .remix {
  background: var(--accent);
  transform: translateY(-5px);
}

.services-row a {
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  transition: all 0.2s ease;
  cursor: pointer;
  padding: 1rem 0;
}

.service-box:hover a {
  gap: 0.8rem;
}

.services-row a:hover {
  text-decoration: underline;
}

/* Why choose us Section */
.why-choose-us {
  display: flex;
  gap: 3rem;
  justify-content: center;
  align-items: center;
  margin: 0 auto;
  margin-bottom: 2rem;
}

.left-side {
  position: relative;
  flex: 0 0 40%;
  display: flex;
  justify-content: center;
  min-width: 320px;
}

.why-choose-us-photo {
  width: 100%; /* It will now fill its 40% container */
  max-width: 500px;
  height: auto;
  min-height: 400px;
  aspect-ratio: 5 / 6;
  border-radius: 30px;
  overflow: hidden;
}

.why-choose-us-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.why-choose-us-photo img:hover {
  transform: scale(1.05);
}

.badge-row {
  position: absolute;
  display: flex;
  gap: 1rem;
  left: 50%;
  transform: translateX(-50%);
  bottom: 30px;
  z-index: 2;
}

.choose-badge {
  background: var(--white);
  border-radius: 20px;
  padding: 1.5rem 0.5rem;
  width: clamp(85px, 10vw, 120px);
  text-align: center;
  line-height: 1.1;
  transition: transform 0.4s ease;
}

.choose-badge:hover {
  transform: scale(1.05);
}

.choose-badge .badge-bold {
  font-size: 1.5rem;
  font-weight: 600;
  padding-bottom: 0.3rem;
}

.choose-badge p {
  font-size: 0.8rem;
  color: var(--primary);
}

.right-side {
  flex: 1;
}

.right-side h2 {
  font-size: clamp(2rem, 6vw, 2.95rem);
  line-height: 1;
  font-weight: 300;
  padding: 1rem 0;
  max-width: 600px;
}

.qualifications-row {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 1rem 0;
}

.qualificatons-box {
  display: flex;
  padding: 0 1rem;
  gap: 1rem;
  border-left: 2px solid var(--accent);
  transition: all 0.3s ease;
}

.qualificatons-box:hover .q-number,
.qualificatons-box:hover .partner-tick {
  transform: scale(1.05);
}

.qualificatons-box:hover {
  border-left: 4px solid var(--accent);
}

.qualificatons-box:hover .p-title {
  color: var(--accent);
}

.q-number,
.partner-tick {
  display: inline-flex;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: 14px;
  font-weight: 600;
  background: var(--accent);
  color: var(--primary);
  transition: all 0.3s ease;
  text-decoration: none;
  flex-shrink: 0;
}

.qualificatons-box .p-title {
  font-size: 1.2rem;
  font-weight: 500;
  color: var(--primary);
}

.qualificatons-box .p-desc {
  font-size: 0.9rem;
  line-height: 1.5;
}

/* Stats */
.stats {
  background: var(--primary);
}

.stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.stats-box {
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.stats .stats-number {
  font-size: clamp(2.5rem, 6vw, 3.5rem);
  font-weight: 700;
  color: var(--accent);
}

.stats .stats-desc {
  color: var(--white);
}

/* Testimonial Section */
.testimonials {
  text-align: center;
  background: var(--secondarybg);
}

.testimonials h2 {
  font-size: clamp(2rem, 6vw, 3rem);
  font-weight: 400;
}

.testimonial-row {
  padding-top: 2rem;
}

.testimonial-box {
  padding: 1rem 2rem;
}

.name-title {
  line-height: 1.3;
}

.name {
  font-size: 1.2rem;
  color: var(--primary);
  font-weight: 600;
}

.title {
  font-size: 0.8rem;
}

.testimony {
  font-size: 0.9rem;
  padding-top: 1rem;
}

.date {
  font-size: 0.8rem;
  padding: 1rem 0;
  color: #99a9c0;
}

.testimonial-box .tag,
.formContact .tag {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 0;
}

.testimonial-box .initials,
.formContact .initials {
  display: inline-flex;
  width: 50px;
  height: 50px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: 20px;
  font-weight: 600;
  background: var(--mildbg);
  color: var(--primary);
  transition: all 0.3s ease;
  text-decoration: none;
  flex-shrink: 0;
}

.testimonial-box .stars::before {
  content: "★★★★★";
  letter-spacing: 0.4rem;
  color: var(--accent);
  font-size: 1.1rem;
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
}

.testimonial-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  column-gap: 1.5rem;
  row-gap: 1.5rem;
  margin-bottom: 1rem;
}

/* Close CTA */
.close-cta {
  display: flex;
  flex-direction: column;
  text-align: center;
}

.close-cta-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-self: center;
  gap: 1.5rem;
  max-width: 900px;
  padding: 2rem 0;
}

.close-cta h2 {
  font-size: clamp(2rem, 6vw, 3rem);
  font-weight: 400;
  padding: 0.5rem 0;
  line-height: 1.2;
  margin: 0;
  max-width: 900px;
  align-self: center;
}

.close-cta > p {
  padding: 1rem 0;
  font-size: 1.1rem;
  max-width: 900px;
  align-self: center;
}

.close-cta .btn-primary {
  background: var(--accent);
  width: fit-content;
  color: var(--primary);
  font-weight: 600;
  align-self: center;
  margin: 1rem 0;
  padding: 0.9rem 1.8rem;
}

.close-cta .credentials {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.credentials i {
  color: var(--accent);
}

/* ABOUT PAGE */
.about-head,
.service-head,
.property-listings-head,
.partner-head,
.contact-page-head {
  background: var(--primary);
  color: var(--white);
  padding: clamp(7rem, 10vw, 9rem)
    /* Top: Shrinks to 5rem on mobile, grows to 9rem */ clamp(2rem, 5vw, 5rem)
    /* Sides: Shrinks to 1.5rem on mobile, grows to 5rem */
    clamp(3rem, 6vw, 4rem)
    /* Bottom: Shrinks to 3rem on mobile, stays near 4rem */
    clamp(3rem, 5vw, 5rem); /* Sides (Left): Same as Right */
}

.about-head .p1 + h2 + p,
.service-head .p1 + h2 + p,
.property-listings-head .p1 + h2 + p,
.partner-head .p1 + h2 + p,
.contact-page-head .p1 + h2 + p {
  color: var(--white);
  max-width: 700px;
}

.about-head h2,
.service-head h2,
.property-listings-head h2,
.partner-head h2,
.contact-page-head h2 {
  font-size: clamp(2.5rem, 6vw, 3.5rem);
  line-height: 1.2;
  font-weight: 300;
  padding: 1rem 0;
  max-width: 700px;
  color: var(--white);
}

.our-story {
  display: flex;
  align-items: center;
  gap: 3rem;
}

.our-story-left {
  flex: 1.2; /* Let text have a bit more room than the photo */
  width: 100%;
}

.our-story-left h3 {
  font-size: clamp(2rem, 6vw, 2.5rem);
  line-height: 1.1;
  font-weight: 300;
  display: block;
  letter-spacing: -0.03em;
}

.our-story-left p {
  padding: 1rem 0;
}

.our-story-right {
  position: relative;
  flex: 1;
  width: 100%;
  height: 500px;
  max-height: 500px;
  aspect-ratio: 4 / 5;
}

.our-story-photo-img {
  overflow: hidden;
  border-radius: 30px;
  width: 100%;
  height: 100%;
}

.our-story img {
  width: 100%;
  height: 100%;
  border-radius: 30px;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.our-story img:hover {
  transform: scale(1.05);
}

.our-story-badge {
  position: absolute;
  background: var(--accent);
  border-radius: 30px;
  padding: 1.5rem 0.5rem;
  z-index: 2;
  width: 180px;
  text-align: center;
  line-height: 1.1;
  transition: transform 0.4s ease;
  bottom: -30px;
  left: -30px;
}

.our-story-badge:hover {
  transform: scale(1.05);
}

.our-story-badge .badge-price {
  font-size: 2rem;
  font-weight: 700;
}
.our-story-badge p {
  font-size: 0.8rem;
  color: var(--primary);
}

/* Difference Section */
.the-difference {
  text-align: center;
  background: var(--secondarybg);
}

.the-difference h2 {
  font-size: clamp(2rem, 6vw, 3rem);
  font-weight: 300;
}

.difference-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  padding: 2rem 0;
}

.difference-box {
  padding: 1rem 2rem;
}

.difference-row i {
  display: inline-flex;
  width: 70px;
  height: 70px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: 30px;
  background: var(--mildbg);
  color: var(--primary);
  transition: all 0.3s ease;
  text-decoration: none;
  margin-bottom: 1rem;
}

.difference-box:hover i {
  background: var(--accent);
}

/* Vision and Mission Statement */
.vision-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.vision-box {
  background: var(--primary);
  border-radius: 20px;
  padding: 2rem;
  box-shadow: var(--shadow);
}

.vision-box h4 {
  color: var(--white);
  font-size: 1.5rem;
  padding: 1rem 0;
}

.vision-box p {
  color: var(--white);
}

.mission-box {
  border-radius: 20px;
  padding: 2rem;
  box-shadow: var(--shadow);
}

.mission-box h4 {
  font-size: 1.5rem;
  padding: 1rem 0;
}

.vision-row i {
  display: inline-flex;
  width: 70px;
  height: 70px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: 30px;
  background: var(--accent);
  color: var(--primary);
  text-decoration: none;
  margin-bottom: 1rem;
}

/* Values Section */
.core-values {
  text-align: center;
  background: var(--secondarybg);
}

.core-values h2 {
  font-size: clamp(2rem, 6vw, 3rem);
  font-weight: 300;
}

.values-row {
  display: flex;
  justify-content: center;
  gap: 2rem;
  padding: 2rem 0;
}

.values-row i {
  display: inline-flex;
  width: 80px;
  height: 80px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: 40px;
  background: var(--mildbg);
  color: var(--primary);
  transition: all 0.3s ease;
  text-decoration: none;
  margin-top: 1rem;
}

.values-row i:hover {
  background: var(--accent);
}

.values-box .value-point {
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--primary);
  padding: 1rem 0;
}

.values-box p {
  font-size: 0.9rem;
}

.values-box span {
  color: var(--accent);
  font-weight: 800;
}

/* Team section */
.team {
  text-align: center;
}

.team h2 {
  font-size: clamp(2rem, 6vw, 3rem);
  font-weight: 300;
}

.team p {
  font-size: 1.1rem;
}

.team h2,
.team .p1 + h2 + p {
  max-width: 700px;
  justify-self: center;
}

.team-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  padding: 3rem 0 2rem 0;
}

.team-pic {
  position: relative;
  overflow: hidden;
  width: 100%;
  height: 260px;
}

.team-pic img {
  object-position: top;
  object-fit: cover;
}

.team-text {
  padding: 1rem 1rem 1rem 1rem;
}

.team-box .team-name {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--primary);
}

.team-box .team-position {
  font-size: 0.9rem;
  color: var(--accent);
}

/* OUR SERVICES PAGE */

.pic-right {
  display: flex;
  gap: 3rem;
  align-items: center;
  justify-content: center;
  padding: 3rem 0;
}

.pic-left {
  flex-direction: row-reverse;
}

/* --- Base Styles Update --- */
.service-expanded-pic {
  flex: 1;
  width: 100%; /* Change from fixed 550px */
  max-width: 550px;
  height: auto; /* Allow height to be fluid */
  aspect-ratio: 4 / 3; /* Keeps a consistent shape */
  border-radius: 30px;
  overflow: hidden; /* Important for the hover effect */
}

.service-expanded-pic img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.service-expanded-pic img:hover {
  transform: scale(1.05);
}

.service-expanded-text {
  flex: 1;
  width: 100%;
}

.service-expanded-text h4 {
  padding-top: 1rem;
  font-size: clamp(1.8rem, 3vw, 2rem);
  line-height: 1.3;
  font-weight: 600;
}

.service-expanded-text p {
  font-size: clamp(1.1rem, 2vw, 1.15rem);
  padding: 1rem 0;
}

.service-expanded-text .btn {
  margin: 2rem 0;
}

.service-expanded-text > i {
  display: inline-flex;
  width: 60px;
  height: 60px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: 28px;
  background: var(--accent);
  color: var(--primary);
  transition: all 0.3s ease;
  text-decoration: none;
  margin-top: 1rem;
}

.service-expanded-text ul {
  line-height: 2.5;
  color: var(--muted);
  padding-left: 1.5rem;
}

/* .service-expanded .first { 
  padding-top: 0;
}*/

.service-expanded .last {
  padding-bottom: 0;
}

/* INVESTMENT PROCESS SECTION */
.investment-process {
  text-align: center;
  background: var(--secondarybg);
}

.investment-process h2 {
  font-size: clamp(2rem, 6vw, 3rem);
  font-weight: 300;
}

.investment-process p {
  font-size: 1.1rem;
}

.process-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  padding: 2rem 0;
}

.process-box {
  padding: 2rem;
  position: relative;
  overflow: visible;
}

.process-box .process-num {
  font-size: 2.5rem;
  color: rgba(var(--accent-rgb), 0.25);
  font-weight: 700;
  line-height: 1;
}

.process-box .process-box-head {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--primary);
  padding: 0.5rem 0;
}

.process-box p {
  font-size: 0.9rem;
}

.process-box i {
  color: var(--accent);
  font-size: 1.5rem;
  position: absolute;
  z-index: 2;
  top: 50%;
  right: 0;
  transform: translate(50%, -50%);
}

/* PROPERTY LISTINGS PAGE */
/* Container for the Listings Page */
.listings-search-container {
  max-width: 1200px;
  margin: 2rem auto;
  padding: 0 1.5rem;
}

/* The Box containing the filters */
.listings-search-container .search-main {
  display: grid;
  /* 3 equal columns for the 6 items */
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  background: white;
  padding: 30px;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  align-items: end; /* Aligns items to the bottom of their cells */
}

/* Individual Search Items */
.listings-search-container .search-item {
  display: flex;
  flex-direction: column;
  gap: 8px;
  border-right: none; /* We use grid gap instead of dividers */
  padding: 0;
}

/* Hide the old dividers - they break Grid layouts */
.listings-search-container .search-divider {
  display: none;
}

/* The Search Button - Positioned to span the full width at the bottom */
.listings-search-container .hero-search-btn {
  grid-column: span 3; /* Makes the button stretch across all 3 columns */
  margin-top: 10px;
  height: 55px;
  justify-content: center;
  width: 100%;
  border-radius: 12px;
}

.filterTabs {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2rem;
  align-items: center;
  position: relative;
  padding: 2rem 4rem;
}

.filterTabs P {
  font-size: 0.9rem;
  color: var(--primary);
}

#filterCount {
  text-align: left;
  font-weight: 600;
  color: var(--primary);
  width: 100%;
}

.filterTabs button {
  background: none;
  border: none;
  color: var(--primary);
  border-radius: 50px;
  cursor: pointer;
  font-size: 0.8rem;
  font-weight: 600;
  font-family: var(--font-body);
}
.filterTabs button:hover {
  color: var(--accent);
}

.filterBtn.active {
  color: var(--accent);
}

.ppline {
  border-bottom: 1px solid var(--accent);
}

.pagination-container {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  margin-top: 3rem;
  padding-bottom: 2rem;
}

.page-btn {
  padding: 10px 18px;
  font-family: var(--font-body);
  border: 1px solid var(--mildbg);
  background: var(--white);
  color: var(--primary);
  cursor: pointer;
  border-radius: 5px;
  font-weight: bold;
  transition: all 0.3s ease;
}

.page-btn.active {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
}

.page-btn:hover:not(.active) {
  background: var(--secondarybg);
  border-color: var(--accent);
}

/* =============================
   PROPERTY DETAILS PAGE
============================= */

.property-details {
  padding-top: 6rem;
}

/* Styling for the badge on the individual property page */
.details-sold-badge {
  background-color: #dc3545;
  color: white;
  text-align: center;
  padding: 12px;
  font-weight: 800;
  letter-spacing: 2px;
  margin-bottom: 20px;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(220, 53, 69, 0.3);
  border: 2px solid #b02a37;
  animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Gallery Layout */
.gallery-container {
  display: flex;
  gap: 12px;
  height: 550px; /* Adjust height as needed */
  margin: 20px 0;
  width: 100%;
}

/* Main Image - 40% */
.gallery-main {
  flex: 0 0 40%;
  border-radius: 12px 0 0 12px;
  overflow: hidden;
}

/* Grid Wrapper - 60% */
.gallery-grid-wrapper {
  flex: 0 0 calc(60% - 12px); /* Subtracting the gap */
  display: grid;
  grid-template-columns: 1fr 1fr; /* Two equal columns */
  grid-template-rows: 1fr 1fr; /* Two equal rows */
  gap: 12px;
}

.gallery-main img,
.grid-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  cursor: pointer;
  transition:
    transform 0.4s ease,
    filter 0.3s ease;
}

/* Grid Items Styling */
.grid-item {
  position: relative;
  overflow: hidden;
}

/* Rounding the corners for the "outside" images only */
.gallery-grid-wrapper .grid-item:nth-child(2) {
  border-radius: 0 12px 0 0;
}
.gallery-grid-wrapper .grid-item:nth-child(4) {
  border-radius: 0 0 12px 0;
}

.grid-item img:hover,
.gallery-main img:hover {
  filter: brightness(0.9);
  transform: scale(1.03);
}

/* All Photos Button Styling */
.all-photos-btn {
  position: absolute;
  bottom: 15px;
  right: 15px;
  background: white;
  border: none;
  padding: 10px 18px;
  border-radius: 6px;
  font-family: inherit;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
  z-index: 10;
  transition: background 0.2s;
}

.all-photos-btn:hover {
  background: #f0f0f0;
}

/* Modal Styles */
.photo-modal {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: black;
}

.modal-content {
  position: relative;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.slide {
  display: none;
  width: auto;
  max-width: 90vw;
  max-height: 80vh;
  margin: auto;
  object-fit: contain; /* Ensures the photo isn't distorted */
}

.modal-counter {
  position: absolute;
  top: 30px;
  left: 50%;
  transform: translateX(-50%);
  color: white;
  font-size: 1.2rem;
}

.close-modal {
  position: absolute;
  top: 20px;
  right: 35px;
  color: white;
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
  z-index: 999;
}

.modal-prev,
.modal-next {
  display: inline-flex;
  position: absolute;
  top: 50%;
  background: var(--white);
  color: var(--primary);
  border: none;
  cursor: pointer;
  width: 50px;
  height: 50px;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  border-radius: 50%;
  flex-shrink: 0;
}

.modal-prev {
  left: 20px;
}
.modal-next {
  right: 20px;
}

.modal-prev:hover,
.modal-next:hover {
  background: var(--accent);
}

#modalSlides {
  width: 90vw;
  max-width: 600px;
  aspect-ratio: 1 / 1;
  margin: 0 auto;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Update the images to fill that frame */
.slide {
  width: 100%;
  height: 100%;
  object-fit: cover;
  padding: 1rem 0;
}

#propertyTitle {
  font-size: 2.5rem;
  font-weight: 500;
  padding: 0 0 0 2rem;
}

#propertyLocation {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0 0 0 2rem;
}

.property-body {
  display: flex;
  gap: 3rem;
  padding-top: 3rem;
}

.bodyInfo {
  width: 65%;
}

.price-spec-tab {
  background: var(--secondarybg);
  padding: 2rem;
  margin: 1rem 0;
  border-radius: 30px;
  line-height: 0.8;
}

.bodyInfo h2 {
  font-size: 3rem;
}

.bodyInfo #propertyPrice {
  font-size: clamp(2rem, 6vw, 2.5rem);
  font-weight: 700;
  color: var(--primary);
  margin: 1rem 0 2rem 0;
}

.featureTiles {
  display: flex;
  gap: 1.5rem;
}

.featureBox {
  background: var(--white);
  border-radius: 20px;
  padding: 1.5rem 2rem;
  width: 33%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease,
    opacity 0.2s ease;
  text-align: left;
}

.featureBox:hover {
  transform: translateY(-6px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.18);
}

.featureBox i {
  background: var(--secondarybg);
  color: var(--muted);
  border-radius: 50%;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  display: inline-flex;
}

.featureBox .figure {
  font-size: 1.5rem;
  font-weight: 700;
}

/*.property-description {
  white-space: pre-wrap;
  line-height: 1.6;  Makes it easier to read 
  margin-bottom: 20px;
}*/

.property-description h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}
.property-description p {
  white-space: pre-wrap;
  line-height: 1.6; /* Makes it easier to read */
}

.descriptionListWrapper h3 {
  font-size: 1.5rem;
  margin: 1rem 0;
}

.descriptionList {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.5rem 1rem; /* row-gap: 0.5rem, column-gap: 1rem */
  margin-top: 1rem;
}

.descriptionList ul {
  list-style: disc;
  padding-left: 1.2rem;
  margin: 0;
}

.descriptionList li {
  margin: 0; /* spacing between items */
}

/* Each feature item styling */
.featureItem {
  display: flex;
  align-items: center;
  gap: 0.6rem; /* space between tick and text */
  font-size: 1.1rem;
}

/* Optional: make the tick green */
.featureItem i {
  color: #0a7cff;
  font-size: 0.9rem;
}

/*  
.featureItem {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: 1.1rem;
  line-height: 3rem;
}

.featureItem i {
  color: #0a7cff;
  margin-top: 15px;
}
*/

.descriptionList ul {
  list-style-type: disc;
  padding-left: 1.2rem;
  line-height: 3rem;
  font-size: 1.1rem;
}

.property-location {
  padding: 1rem 0;
  font-size: 1.5rem;
}

.map-container {
  overflow: hidden;
  position: relative;
  height: 300px;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.map-container iframe {
  width: 100%;
  height: 100%;
  border: none;
}

.contact-container {
  width: 35%;
  display: flex;
  flex-direction: column;
}

.property-body .formwrapper {
  background: var(--primary);
  padding: 2rem;
  border-radius: 20px;
  height: fit-content;
}

.property-body .formwrapper h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: var(--white);
}

.property-body .formwrapper p {
  color: var(--mildbg);
  font-size: 0.9rem;
  margin-top: 1rem;
}

.formRow {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 1rem;
}

.formwrapper .form-group {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.formwrapper .form-group input,
.formwrapper .form-group select,
.formwrapper .form-group textarea {
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 0.6rem;
  border: 1px solid #bbb9b9;
  border-radius: 15px;
  background: rgba(160, 182, 253, 0.1);
  color: var(--white);
  width: 100%;
  box-sizing: border-box;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.formwrapper .form-group input:focus,
.formwrapper .form-group textarea:focus,
.formwrapper .form-group select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(106, 17, 203, 0.15);
  outline: none;
}

textarea {
  resize: vertical;
}

.formwrapper .submit-btn {
  background-color: var(--accent);
  color: var(--white);
  font-size: 1rem;
  font-weight: 700;
  padding: 0.8rem 2rem;
  border: none;
  border-radius: 20px;
  cursor: pointer;
  transition: 0.3s;
  font-family: var(--font-body);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  width: 100%;
}

.formwrapper input::placeholder,
.formwrapper textarea::placeholder {
  color: #bbb9b9;
  opacity: 1;
  font-size: 0.9rem;
  padding-left: 0.5rem;
}

.formwrapper .submit-btn:hover {
  background-color: #b88f2c;
}

.iti {
  width: 100%;
}

.iti input {
  width: 100%;
}

.formContact {
  background: var(--secondarybg);
  margin-top: 1rem;
  padding: 0 2rem 1rem 2rem;
  border-radius: 20px;
}

.formContact p {
  font-size: 0.9rem;
}

.contact-btn-row {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin: 1rem 0;
}

.formContact .btn {
  width: 50%;
  display: inline-flex;
  justify-content: center;
}

.whatsapp {
  background-color: #03c43d;
}

.formContact a {
  font-size: 1rem;
  color: var(--mildbg);
  text-decoration: none;
  display: flex;
  align-items: center;
}

/* .formContact i { 
  display: inline-flex;
  margin-right: 0.5rem;
  background: #d4af37;
  color: white;
  border-radius: 50%;
  width: 25px;
  height: 25px;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  transition: all 0.3s ease;
  text-decoration: none;
  margin-left: 0.5rem;
  gap: 1rem;
}*/

.similar-investment {
  background-color: var(--secondarybg);
  text-align: center;
}

.similar-investment-row {
  padding: 1rem 0;
}

.similar-investment h2 {
  font-size: clamp(2rem, 6vw, 2.5rem);
  font-weight: 300;
}

.similar-investment .target-btn {
  padding: 1rem 2rem;
}

/* =============================
   PARTNER WITH US PAGE
============================= */
.partnership-opportunities {
  text-align: center;
}

.partnership-opportunities h2 {
  font-size: clamp(2rem, 6vw, 3rem);
  font-weight: 300;
}

.partnership-row {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  padding: 4rem 0 2rem 0;
  align-items: center;
}
.partnership-box {
  display: flex;
  align-items: center;
  gap: 2rem;
  padding: 2rem;
  border-radius: 30px;
}

.partner-text {
  width: 60%;
}

.partner-pic {
  width: 40%;
  height: stretch;
  aspect-ratio: 4 / 3;
}

.partner-pic img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 30px;
  transition: none;
}

.partner-pic img:hover {
  transform: none;
}

.partnership-row .colorChange {
  background: var(--primary);
  color: white;
}

.partnership-row .colorChange h3,
.partnership-row .colorChange p,
.partnership-row .colorChange a {
  color: var(--white);
}

.partnership-box h3 {
  font-size: 1.5rem;
}

.partnership-box .remix {
  display: inline-flex;
  margin-right: 0.5rem;
  background: var(--accent);
  color: var(--primary);
  border-radius: 50%;
  width: 50px;
  height: 50px;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  transition: all 0.3s ease;
  text-decoration: none;
  margin-left: 0.5rem;
  margin-bottom: 1rem;
  gap: 1rem;
}

.partnership-box p {
  padding: 1rem 0;
}

.partnership-box button {
  background: #111;
  color: white;
  border: none;
  border-radius: 50px;
  padding: 1rem 1rem;
  font-size: 1rem;
  cursor: pointer;
  width: 100%;
}

.partnership-row .colorChange button {
  background: #b88f2c;
  color: black;
  font-weight: 600;
}

.partnership-row a {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  transition: all 0.2s ease;
  cursor: pointer;
}

.partnership-row a:hover {
  text-decoration: underline;
}

.why-partner {
  display: flex;
  flex-direction: row-reverse;
  gap: 3rem;
  justify-content: center;
  align-items: left;
  margin: 0 auto;
  margin-bottom: 2rem;
  background-color: var(--secondarybg);
}

.left-side {
  position: relative;
  flex: 0 0 40%;
  display: flex;
  justify-content: center;
  min-width: 320px;
}

.why-partner-photo {
  height: auto;
  min-height: 400px;
  width: 100%;
  max-width: 500px;
  border-radius: 30px;
  overflow: hidden;
  aspect-ratio: 4 / 3;
}

.why-partner-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  transition: transform 0.4s ease;
}

.why-partner-photo img:hover {
  transform: scale(1.05);
}

.right-side {
  flex: 1;
}

.right-side h2 {
  font-size: clamp(2rem, 6vw, 2.95rem);
  line-height: 1;
  font-weight: 300;
  padding: 1rem 0;
  max-width: 600px;
}

.why-partner-row {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 1rem 0;
}

.why-partner-box {
  display: flex;
  padding: 0 1rem;
  gap: 1rem;
  border-left: 2px solid var(--accent);
  transition: all 0.3s ease;
}

.why-partner-box:hover {
  border-left: 4px solid var(--accent);
}

.qualificatons-box:hover .p-title {
  color: var(--accent);
}

.why-partner-box .p-title {
  font-size: 1.2rem;
  font-weight: 500;
  color: var(--primary);
}

.why-partner-box .p-desc {
  font-size: 1.05rem;
  line-height: 1.5;
}

.success-stories {
  text-align: center;
}

.success-stories h2 {
  font-size: clamp(2rem, 6vw, 3rem);
  font-weight: 300;
}

.success-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  padding: 2rem 0 1rem 0;
}

.success-box {
  background-color: var(--secondarybg);
  padding: 1.5rem;
  text-align: left;
  border-radius: 20px;
}

.success-row .success-head {
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--primary);
  padding: 0;
}

.success-row .success-position {
  color: var(--accent);
  font-size: 0.9rem;
  padding: 0;
}

.success-row p {
  font-size: 0.9rem;
  padding: 0.5rem 0;
}

.success-row .result {
  font-size: 1rem;
  color: var(--primary);
  font-weight: 600;
  padding-top: 1rem;
}

.success-row .success-statement {
  font-style: italic;
}

/* =============================
   CONTACT US PAGE
============================= */

.get-in-touch {
  display: flex;
  gap: 3rem;
  background-color: var(--secondarybg);
  justify-content: space-between;
}

.get-in-touch h3 {
  font-size: 2.5rem;
  font-weight: 300;
}

.office-head {
  font-size: 1.2rem;
  font-weight: 500;
  color: var(--primary);
  padding-bottom: 0.5rem;
}

.contact-info i {
  background: var(--accent);
  color: var(--primary);
  border-radius: 50%;
  width: 50px;
  height: 50px;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  display: inline-flex;
  flex-shrink: 0;
}

.office-div {
  display: flex;
  gap: 1rem;
  padding: 1rem 0;
}

.office-socials {
  display: flex;
  gap: 0.5rem;
}

.office-socials i {
  background: var(--mildbg);
  color: var(--muted);
  border-radius: 50%;
  width: 50px;
  height: 50px;
  align-items: center;
  justify-content: center;
  font-size: 25px;
  display: inline-flex;
  transition: all 0.3s ease;
}

.office-socials i:hover {
  background: var(--accent);
}

.get-in-touch .formwrapper {
  background: var(--white);
  padding: 2rem;
  border-radius: 20px;
  height: fit-content;
  width: 100%;
  max-width: 600px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.08);
}

.get-in-touch .formwrapper h4 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: var(--primary);
  font-weight: 600;
}

.get-in-touch .formwrapper p {
  color: var(--mildbg);
  font-size: 0.9rem;
  margin-top: 1rem;
}

.formwrapper .form-group label {
  margin-bottom: 0.4rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--primary);
  text-align: left;
}

.get-in-touch .formwrapper .form-group input,
.get-in-touch .formwrapper .form-group select,
.get-in-touch .formwrapper .form-group textarea {
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 0.6rem;
  border: 1px solid #bbb9b9;
  border-radius: 15px;
  background: transparent;
  color: var(--primary);
  width: 100%;
  box-sizing: border-box;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.formwrapper .form-group select option {
  color: black;
}

textarea {
  resize: vertical;
}

.get-in-touch .formwrapper .submit-btn {
  background-color: var(--primary);
  color: white;
  font-size: 1rem;
  font-weight: 700;
  padding: 0.8rem 2rem;
  border: none;
  border-radius: 20px;
  cursor: pointer;
  transition: 0.3s;
  font-family: var(--font-body);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  width: 100%;
}

.get-in-touch .formwrapper .submit-btn:hover {
  background-color: var(--muted);
}

.office-map {
  text-align: center;
}

.office-map h3 {
  font-size: 2.5rem;
  font-weight: 300;
}

.office-map .map-container {
  height: 450px;
  margin: 3rem 0;
}

/* Hero section animation strictly CSS */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero1Tile {
  animation: fadeInUp 0.4s ease-out forwards;
}
.heroHead {
  animation: fadeInUp 0.6s ease-out forwards;
}
.heroHead + p {
  animation: fadeInUp 0.8s ease-out forwards;
}
.heroBtnRow {
  animation: fadeInUp 1s ease-out forwards;
}

/* =============================
  SCROLL ANIMATION
============================= */
/* Base settings for all reveals */
.reveal {
  opacity: 0;
  /* This bezier curve (0.22, 1, 0.36, 1) is known as 'Ease Out Quart' 
     It feels very premium and smooth */
  transition:
    opacity 1s cubic-bezier(0.22, 1, 0.36, 1),
    transform 1s cubic-bezier(0.22, 1, 0.36, 1);
}

/* Modifier: Fade Up */
.reveal-up {
  transform: translateY(40px);
}

/* Modifier: Fade from Left */
.reveal-left {
  transform: translateX(-60px);
}

/* Modifier: Fade from Right */
.reveal-right {
  transform: translateX(60px);
}

/* THE TRIGGER: This brings everything to center/full opacity */
.reveal.active {
  opacity: 1;
  transform: translate(0, 0);
  pointer-events: auto;
}

/* Card 1: Default delay */
.listings-box:nth-child(2) {
  transition-delay: 0.2s;
}
.listings-box:nth-child(3) {
  transition-delay: 0.4s;
}

/* =============================
   FOOTER SECTION
============================= */
.site-footer {
  border-radius: 40px 40px 0 0;
  background-color: var(--primary);
  color: var(--white);
  width: 100%;
  padding: clamp(2rem, 5vw, 3rem) clamp(1.5rem, 6vw, 5rem);
  line-height: 1rem;
}

.site-footer .foot-head {
  color: var(--accent);
  font-size: 1rem;
}

.site-footer p {
  color: var(--bg);
  font-size: 0.9rem;
}

.site-footer .leftP {
  font-size: 0.9rem;
  padding: 1rem 0 0.5rem 0;
}
.site-footer a {
  font-size: 0.9rem;
  color: var(--white);
  text-decoration: none;
}

.site-footer a:hover {
  text-decoration: underline;
}

.site-footer i {
  display: inline-flex;
  margin-right: 0.5rem;
  background: var(--accent);
  color: var(--primary);
  border-radius: 50%;
  width: 25px;
  height: 25px;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  transition: all 0.3s ease;
  text-decoration: none;
  margin-left: 0.5rem;
  gap: 1rem;
}

.site-footer i:hover {
  background: var(--accent);
  color: var(--primary);
  transform: scale(1.1); /* slight pop effect */
  border: none;
}

.footer-logo {
  width: 90px;
}

.footer-section span {
  font-size: 1.5rem;
  font-weight: 800;
}

.footer-columns {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  justify-content: space-between;
  align-items: flex-start;
}

.align-left {
  display: flex;
  flex-direction: column;
  text-align: left;
  max-width: 400px;
}

.align-left .mailHead {
  font-size: 1.3rem;
  font-weight: 600;
  padding: 1rem 0;
}

.email-form {
  padding: 1rem 0;
}

.site-footer form {
  margin: 1rem 0;
}

.align-center {
  display: flex;
  gap: 1.1rem;
  flex-direction: column;
}

.align-right {
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  min-width: 300px;
}

.socials {
  display: flex;
  padding: 1rem 0;
}

.socials i {
  background: transparent;
  color: var(--white);
  width: 40px;
  height: 40px;
  font-size: 20px;
  border: 1px solid var(--white);
}

.footer-section .form-group {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.form-group input,
.form-group select,
.form-group textarea {
  font-family: var(--font-body);
  font-size: 0.9rem;
  padding: 0.4rem 0.7rem;
  border: 1px solid var(--mildbg);
  border-radius: 20px;
  background: transparent;
  color: var(--white);
  width: 80%;
  box-sizing: border-box;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: #6a11cb;
  box-shadow: 0 0 0 3px rgba(106, 17, 203, 0.15);
  outline: none;
}

input::placeholder,
textarea::placeholder {
  color: var(--mildbg);
  opacity: 1;
}

textarea {
  resize: vertical;
}

.footer-section button {
  background: var(--white);
  border: none;
  border-radius: 50%;
  height: 40px;
  width: 40px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  transition: all 0.3s ease;
}

.footer-section button:hover {
  background: var(--accent);
  transform: scale(1.1);
}

.footer-section button i {
  font-size: 1rem;
  background: none;
  color: var(--primary);
}

.footer-right p {
  margin-top: 1rem; /* space between links and the text */
}

.consent-note {
  font-size: 0.85rem;
  line-height: 1.2rem;
  color: var(--muted);
  margin-top: 0.5rem;
  max-width: 300px;
}

.footLine {
  display: block;
  width: 100%;
  height: 1px;
  background: linear-gradient(
    to right,
    transparent,
    var(--accent),
    var(--white),
    transparent
  );
  margin: 2rem 0;
}

.footer-copy {
  font-size: 0.8rem;
  text-align: left;
}

/* =============================
  SCROLL TO TOP AND WHATSAPP BUTTON
============================= */
/* Container for fixed buttons */
.fixed-actions {
  position: fixed;
  bottom: 30px;
  right: 30px;
  display: flex;
  flex-direction: column;
  gap: 15px;
  z-index: 990; /* Ensure they are above everything */
}

/* Base style for both buttons */
.action-btn {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  text-decoration: none; /* For the link */
}

/* Scroll to Top Specifics */
#scrollTopBtn {
  background: var(--muted); /* Black from your theme */
  color: var(--white);
  opacity: 0; /* Hidden by default */
  visibility: hidden;
  transform: translateY(20px);
}

#scrollTopBtn.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* WhatsApp Specifics */
.whatsapp-btn {
  background: #25d366; /* Official WhatsApp Green */
  color: white;
  position: relative;
}

.whatsapp-btn:hover {
  transform: scale(1.1);
  background: #20ba5a;
}

/* Optional Tooltip for WhatsApp */
.tooltip {
  position: absolute;
  right: 60px;
  background: #333;
  color: white;
  padding: 5px 12px;
  border-radius: 5px;
  font-size: 0.8rem;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: 0.3s;
}

.whatsapp-btn:hover .tooltip {
  opacity: 1;
}

/* =============================
 FORM MODAL
============================= */
/* Modal Overlay */
.modal-overlay {
  display: none; /* Hidden by default */
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
  z-index: 1000;
  justify-content: center;
  align-items: center;
}

/* Modal Content Box */
.form-modal-content {
  background: white;
  padding: 2.5rem;
  border-radius: 12px;
  text-align: center;
  width: min(90%, 400px); /* responsive width */
  max-height: 90vh; /* prevents overflow on small screens */
  overflow-y: auto;
  height: fit-content;
  transition: transform 0.3s ease;
}

.modal-icon {
  font-size: 4rem;
  color: #28a745; /* A nice success green */
  margin-bottom: 1rem;
}

.modal-content h3 {
  margin-bottom: 0.5rem;
  color: #333;
}

.modal-content p {
  color: #666;
  margin-bottom: 1.5rem;
}

/* When modal is active */
.modal-overlay.active {
  display: flex;
}

.no-results-content {
  grid-column: 1 / -1; /* Spans across all grid columns */
  text-align: center;
  padding: 60px 20px;
}
.no-results-content i {
  font-size: 4rem;
  color: var(--secondary-color);
  margin-bottom: 20px;
}

/* ==============================
   RESPONSIVE DESIGN
============================== */
@media (max-width: 1080px) {
  .footer-columns {
    flex-direction: column;
    gap: 2rem;
  }
}
/* ===== Tablets (≤1024px) ===== */
@media (max-width: 1024px) {
  .nav-logo {
    height: 50px;
    width: auto;
    display: block;
  }

  .hero-search-container {
    flex-direction: column; /* Stack button under search */
    border-radius: 20px; /* Less rounded for grid shape */
    padding: 20px;
    gap: 20px;
  }

  .search-main {
    display: grid;
    grid-template-columns: 1fr 1fr; /* The 2x2 Grid */
    gap: 20px;
    width: 100%;
  }

  .search-item {
    padding: 0; /* Remove side padding in grid mode */
    border-bottom: 1px solid #eee; /* Optional: adds separation in grid */
    padding-bottom: 10px;
  }

  .search-divider {
    display: none; /* Hide dividers so they don't break the grid */
  }

  .hero-search-btn {
    width: 100%; /* Full width */
    justify-content: center;
    margin-top: 0;
    border-radius: 12px;
  }

  .search-buttons {
    width: 100%;
    margin-top: 15px;
  }

  .reset-btn,
  .hero-search-btn {
    flex: 1; /* Buttons take equal width on smaller screens */
    justify-content: center;
  }

  .about {
    flex-direction: column;
    gap: 2rem;
  }

  .featuredImgBox {
    flex: 0 0 calc(50% - 1rem); /* Show 2 on tablets */
    min-width: calc(50% - 1rem);
  }

  .property-body,
  .get-in-touch {
    flex-direction: column;
  }

  .get-in-touch .formwrapper {
    max-width: none;
  }

  .footer-columns {
    flex-direction: column;
    gap: 2rem;
  }

  .stats-row,
  .process-row {
    grid-template-columns: repeat(2, 1fr);
  }

  .process-box i {
    display: none;
  }

  .partner-text,
  .partner-pic {
    width: 100%;
  }

  .partner-pic {
    aspect-ratio: 16 / 9;
  }

  .about,
  .why-choose-us,
  .why-partner,
  .our-story,
  .partnership-box {
    flex-direction: column;
  }

  .partnership-row .colorChange {
    flex-direction: column-reverse;
  }

  .pic-right {
    flex-direction: column-reverse;
  }

  .about-photo,
  .about-text {
    max-width: 100%; /* Let them fill the screen */
  }

  .about-badge {
    /* Half-in, Half-out logic */
    bottom: -25px;
    right: 0; /* Align to edge of image */
  }

  .services-row {
    grid-template-columns: repeat(2, 1fr);
  }

  .left-side {
    width: 100%;
    max-width: 100%;
    flex: none;
  }

  .why-choose-us-photo {
    width: 100%;
    max-width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    border-radius: 20px;
  }

  .why-partner-photo {
    width: 100%;
    max-width: 100%;
    min-height: 0;
    height: 500px;
    aspect-ratio: 16 / 9;
    border-radius: 20px;
  }

  .why-partner-photo img {
    object-position: top;
  }

  .choose-badge {
    min-width: 180px;
  }

  .service-expanded-pic {
    aspect-ratio: 16 / 9;
    width: 100%;
    max-width: 100%;
    height: auto;
    min-height: 350px;
  }

  .listings-search-container .search-main {
    grid-template-columns: repeat(2, 1fr);
    align-items: start;
  }

  .listings-search-container .hero-search-btn {
    grid-column: span 2;
  }

  .property-body {
    flex-direction: column; /* Stack info and form vertically */
    align-items: center; /* Center children horizontally */
    gap: 2rem;
  }

  .bodyInfo {
    width: 100%;
  }

  .contact-container {
    width: 100%;
    max-width: 800px;
    margin: 0 auto; /* Mathematical center */
    align-items: center;
  }

  .formwrapper,
  .formContact {
    width: 100%;
  }
}

@media (max-width: 1020px) {
  .nav-right {
    display: none;
  }

  .nav-bar-row {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    padding: 2rem clamp(2rem, 6vw, 4rem); /* increase vertical padding */
    min-height: 60px; /* ensures navbar keeps height */
  }

  .nav-left {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
  }

  .nav-logo {
    height: 80px;
    width: auto;
    display: block;
    grid-column: 2;
    justify-self: center;
  }

  .hamburger {
    display: flex;
    margin-left: auto; /* pushes it to the right */
    grid-column: 1;
    justify-self: start;
  }

  .about-photo {
    height: 500px;
    width: 100%;
  }
}

/* Responsive: Stack them on mobile */
@media (max-width: 992px) {
  .gallery-container {
    flex-direction: column;
    height: auto;
  }
  .gallery-main,
  .gallery-grid-wrapper {
    flex: 0 0 100%;
  }
  .gallery-main {
    height: 350px;
    border-radius: 12px 12px 12px 12px;
  }

  .gallery-grid-wrapper .grid-item:nth-child(1) {
    border-radius: 12px 0 0 0;
  }
  .gallery-grid-wrapper .grid-item:nth-child(3) {
    border-radius: 0 0 0 12px;
  }
}

/* ===== Mobile (≤768px) ===== */
@media (max-width: 768px) {
  .nav-right {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  .hero {
    padding: 7rem 1rem 2rem 1rem;
  }

  .hero-search-container {
    border-radius: 15px;
    padding: 20px;
  }
  .search-main {
    flex-direction: column;
    gap: 20px;
  }
  .search-divider {
    display: none;
  }
  .search-item {
    width: 100%;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
  }
  .hero-search-btn {
    width: 100%;
    justify-content: center;
  }

  .search-buttons {
    flex-direction: column;
    width: 100%;
  }
  .reset-btn,
  .hero-search-btn {
    width: 100%;
    justify-content: center;
  }

  .featured-properties {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  .featured-head {
    padding: 0 2rem !important;
  }

  .featured-btn-row {
    display: none;
  }

  /* 2. The Window: Must be exactly 100% width with no padding */
  .featuredImgRow {
    width: 100% !important;
    padding: 2rem !important;
    margin: 0 !important;
    overflow: hidden;
    height: auto;
  }

  /* 3. The Track: Remove gaps to keep the math simple */
  .slider-track {
    display: flex;
    gap: 0 !important;
    width: 100%;
  }

  /* 4. The Card: Force it to be the EXACT width of the screen */
  .featuredImgBox {
    flex: 0 0 100% !important; /* Uses Viewport Width for a perfect match */
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box;
    height: auto;
    justify-self: center;
    margin: 0 auto;
  }

  /* Hides it in Chrome, Safari, and newer Edge */
  .featuredImgRow::-webkit-scrollbar {
    display: none;
    width: 0 !important;
    height: 0 !important;
  }

  .listings-box,
  .featuredImgBox,
  .similar-investment-box {
    justify-self: center;
  }

  .about-photo-img,
  .our-story-photo-img {
    width: 100%;
  }
  .about-photo {
    width: 100%;
    height: 350px; /* Adjust height for mobile aspect ratio */
    margin-bottom: 20px; /* Space for the "half-out" badge */
  }

  /* 3. The Badge: Half-in, Half-out */
  .about-badge {
    bottom: -25px; /* Half of the badge height (roughly) */
    right: 10px; /* Keep it slightly inside the screen edge to avoid scrollbars */
    padding: 1rem 0.5rem;
    width: 150px; /* Slightly smaller for mobile */
  }

  .about-badge .badge-price {
    font-size: 2rem; /* Scale down the text */
  }

  /* 4. Text container fills the screen */
  .about-text {
    width: 100%;
  }

  /* 5. Ensure the grid fits on one row or stacks */
  .about-text-grid {
    grid-template-columns: 1fr 1fr; /* Keep 2 columns unless names are very long */
    column-gap: 1rem;
  }

  .featureTiles {
    flex-direction: column;
  }

  .featureBox {
    width: 100%;
  }
  .fixed-actions {
    bottom: 20px;
    right: 20px;
  }
  .action-btn {
    width: 50px;
    height: 50px;
  }

  .services-row,
  .process-row {
    grid-template-columns: 1fr;
  }

  #propertyFeatures {
    grid-template-columns: 1fr;
    gap: 0.1rem 0.5rem; /* row-gap: 0.1rem, column-gap: 0.5rem */
  }

  .values-row {
    flex-direction: column;
  }

  .why-choose-us-photo,
  .why-partner-photo,
  .partner-pic {
    aspect-ratio: 4 / 3;
  }

  .partner-pic img {
    border-radius: 15px;
  }

  .badge-row {
    width: 95%; /* Prevents badges from hitting the very edge of the screen */
    gap: 0.5rem; /* Tighter gap to fit all three on one line */
    justify-content: center;
  }

  .choose-badge {
    width: 30%; /* Let them share the width equally */
    min-width: 100px;
    padding: 1rem 0.2rem;
    border-radius: 15px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1); /* Adds depth since it's on top of an image */
  }

  .our-story-badge {
    width: 140px;
    padding: 1rem 0.5rem;
    left: -15px;
  }

  .partnership-box {
    padding: 1rem;
    border-radius: 20px;
    width: 100%;
  }

  .about,
  .why-choose-us,
  .our-story,
  .property-body,
  .why-partner,
  .get-in-touch,
  .contact-container,
  .property-description {
    flex-direction: column;
  }

  .pic-right {
    flex-direction: column-reverse;
  }

  .footer-columns {
    flex-direction: column;
    gap: 2rem;
  }

  /* Adjust Arrows */
  .btn-row {
    padding: 0 1rem;
  }

  .btn-row button {
    width: 40px;
    height: 40px;
    font-size: 1rem;
  }
}

html,
body {
  overflow-x: hidden;
}
