/* =====================================================
   ROOT VARIABLES – SOBHA / MAX LUXURY FEEL
===================================================== */
:root {
  --primary: #0b3b63; /* Blue */
  --accent: #fbb040; /* Orange */
  --accent-soft: #f5a623; /* Orange soft */
  --dark: #111;
  --text: #333;
  --light: #f6f7f5;
  --white: #ffffff;
}

/* =====================================================
   RESET
===================================================== */
/* ========== BASE RESET ========== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Poppins", system-ui, sans-serif;
  background: var(--white);
  color: var(--text);
  line-height: 1.7;
}

/* =====================================================
   HEADER
===================================================== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 72px;
  z-index: 9999;
  background: rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(6px);
  transition: background 0.3s ease;
}

.site-header.scrolled {
  background: rgba(0, 0, 0, 0.85);
}

.nav {
  max-width: 1200px;
  margin: 0 auto;
  height: 72px;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brochure-header-btn {
  background: #fbb040;
  color: #0b3b63;
  padding: 10px 16px;
  border-radius: 6px;
  font-weight: 600;
  margin-left: 15px;
}

.brochure-header-btn:hover {
  background: #f5a623;
}

.menu a {
  position: relative;
  padding: 6px 4px;
  color: #ddd;
  transition: 0.3s;
}

.menu a.active {
  color: #fbb040;
  font-weight: 600;
}

.menu a.active::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 100%;
  height: 2px;
  background: #fbb040;
  border-radius: 2px;
}

/* Brochure button ko active se bachane ke liye */
.menu .brochure-header-btn::after {
  display: none;
}

section {
  scroll-margin-top: 90px;
}

/* ================= BROCHURE MODAL ================= */
.brochure-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.modal-box {
  position: relative;
  background: #eaf2fa;
  padding: 30px 26px 26px;
  border-radius: 10px;
  width: 340px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.4);
}

/* ❌ CLOSE ICON */
.close-modal {
  position: absolute;
  top: 12px;
  right: 14px;
  font-size: 22px;
  color: #060606;
  cursor: pointer;
  font-weight: 600;
  line-height: 1;
}

.close-modal:hover {
  color: #fbb040;
  transform: scale(1.1);
}

/* Inputs */
.modal-box input {
  width: 100%;
  padding: 12px;
  margin-bottom: 12px;
  border: none;
  border-radius: 8px;
  font-size: 14px;
}

/* Button */
.modal-box button {
  width: 100%;
  padding: 12px;
  background: #fbb040;
  color: #0b0b0b;
  border: none;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
}

.modal-box button:hover {
  background: #f5a623;
}

/* LOGO */
.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1;
  color: var(--white);
}

.logo-text .brand {
  font-size: 18px;
  letter-spacing: 4px;
  font-weight: 500;
}

.logo-text .project {
  font-size: 26px;
  letter-spacing: 3px;
  font-weight: 600;
  margin-top: 4px;
}

.logo-text .tagline {
  font-size: 10px;
  letter-spacing: 2px;
  margin-top: 6px;
  opacity: 0.85;
}

/* MENU */
.menu {
  display: flex;
}

.menu a {
  color: var(--white);
  text-decoration: none;
  font-size: 14px;
  margin-left: 22px;
  position: relative;
}

.menu a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: 0.3s;
}

.menu a:hover::after {
  width: 100%;
}
/* =====================================================
   HERO — IMAGE VERSION (COMMON FOR ALL)
===================================================== */

.hero {
  position: relative;
  height: 100vh;
  width: 100%;
  display: flex;
  align-items: flex-end;
  padding: 80px;
  padding-top: calc(80px + 72px);
  color: #fff;
  overflow: hidden;
}

.hero img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.55);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 520px;
}

.hero-content h1 {
  font-size: 30px;
  font-weight: 600;
}

.hero-subtitle {
  font-size: 18px;
  margin: 14px 0 22px;
}

.hero-highlights {
  display: flex;
  gap: 14px;
  margin-bottom: 28px;
}

.hero-highlights span {
  padding: 8px 16px;
  border-radius: 20px;
  background: rgba(255,255,255,0.12);
  font-size: 13px;
}

/* MOBILE */
@media (max-width: 768px) {
  .hero {
    padding: 24px;
    height: 90vh;
  }

  .hero-content h1 {
    font-size: 22px;
  }

  .hero-subtitle {
    font-size: 14px;
  }
}
/* =====================================================
   OVERVIEW — UPDATED SMALLER IMAGE
===================================================== */
.overview {
  background: #fff;
  padding: 80px 20px;
}

.overview-wrap {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 50px;
  align-items: center;
}
.overview-text{
  padding-left: 20px;
}
.overview-list{
  padding-left: 20px;
}

.overview-text h2 {
  font-size: 32px;
  color: var(--primary);
}

.overview-text h2::after {
  content: "";
  width: 46px;
  height: 3px;
  background: var(--accent);
  display: block;
  margin-top: 10px;
}

.overview-points {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px 30px;
  margin: 28px 0;
}

.point-card {
  border-left: 2px solid var(--primary);
  padding-left: 14px;
  transition: 0.3s;
}

.point-card:hover {
  border-left-color: var(--accent);
  background: rgba(251, 176, 64, 0.08);
}

/* === FIXED SMALLER OVERVIEW IMAGE === */
.overview-image {
  position: relative;
  height: 340px;
  max-width: 100%;
  margin-left: auto;
  border-radius: 16px;
  overflow: hidden;
  background: var(--light);
}

.overview-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
/* =====================================================
   RESIDENCES (FINAL – CLEAN & FIXED)
===================================================== */

.residences {
  background: var(--white);
  padding: 80px 20px;
}

/* ===== WRAP ===== */
.residences-wrap {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 60px;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto 80px;
  box-sizing: border-box;
}

/* ===== WEST (REVERSE) ===== */
.residences-wrap.reverse {
  grid-template-columns: 0.95fr 1.05fr;
}

/* ===== CONTENT ===== */
.residences-content {
  padding-left: 40px;   /* controlled spacing */
}

.residences-wrap.reverse .residences-content {
  padding-left: 0;
  padding-right: 40px;
}

.residences-content h2 {
  font-size: 34px;
  color: var(--primary);
  margin-bottom: 10px;
}

.residences-content h2::after {
  content: "";
  display: block;
  width: 46px;
  height: 3px;
  background: var(--accent);
  margin-top: 8px;
  border-radius: 2px;
}

.residences-text {
  font-size: 14px;
  line-height: 1.8;
  color: var(--text);
  max-width: 520px;
  margin: 18px 0 22px;
}

/* ===== LIST ===== */
.residences-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.residences-list li {
  font-size: 14px;
  color: var(--text);
  margin-bottom: 10px;
  padding-left: 18px;
  position: relative;
}

.residences-list li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-size: 18px;
}

/* ===== IMAGES (MAIN FIX HERE) ===== */
.residences-images {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-left: 0;        /* ✅ NEGATIVE MARGIN REMOVED */
}

/* images */
.residences-images img {
  width: 100%;
  height: 300px;
  border-radius: 20px;
  object-fit: cover;
  box-shadow: 0 18px 40px rgba(0,0,0,0.12);
  transition: transform 0.4s ease;
}

.residences-images img:hover {
  transform: scale(1.03);
}

/* ================= MASTER PLAN SECTION ================= */
.apex-masterplan {
  padding: 90px 0;
  background: #fff;
}

.master-wrap {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 40px;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* IMAGE */
.master-image {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.master-thumb {
  width: 100%;
  max-width: 440px;
  border-radius: 14px;
  cursor: zoom-in;
}

.click-note {
  margin-top: 8px;
  font-size: 13px;
  color: #777;
}

/* CONTENT */
.master-heading {
  font-size: 42px;
  font-weight: 700;
  color: #0f1f2d; /* same blue */
  margin-bottom: 10px;
}

.master-line {
  display: block;
  width: 55px;
  height: 4px;
  background: #d4a13a; /* golden line */
  margin-bottom: 22px;
}

.master-text {
  max-width: 520px;
  margin-bottom: 22px;
  color: #333;
}

.master-list {
  padding-left: 18px;
}

.master-list li {
  margin-bottom: 10px;
  color: #333;
}

/* =========================================
   MASTER PLAN MODAL (FULL IMAGE VIEW)
========================================= */
.master-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: 20px;
}

/* FULL IMAGE */
.master-full {
  max-width: 90%;
  max-height: 90%;
  border-radius: 14px;
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.45);
}

/* CLOSE BUTTON */
.master-close {
  position: absolute;
  top: 22px;
  right: 30px;
  font-size: 36px;
  font-weight: 300;
  color: #fff;
  cursor: pointer;
  line-height: 1;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.master-close:hover {
  transform: scale(1.1);
  opacity: 0.8;
}

/* ================= FLOOR PLAN SECTION ================= */
.apex-floorplan {
  padding: 90px 0;
  background: #fafafa;
}

/* MAIN WRAP */
.floorplan-wrap {
  display: grid;
  grid-template-columns: 1fr 1.2fr; /* content | images (images bigger) */
  gap: 40px;
  align-items: flex-start; /* images upar */
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 20px;
}

/* CONTENT */
.floorplan-content {
  padding-top: 20px;
}

.floorplan-heading {
  font-size: 42px;
  font-weight: 700;
  color: #16344e; /* same blue */
  margin-bottom: 10px;
}

.floorplan-line {
  display: block;
  width: 55px;
  height: 4px;
  background: #d4a13a; /* golden line */
  margin-bottom: 22px;
}

.floorplan-text {
  max-width: 520px;
  margin-bottom: 22px;
  color: #333;
}

.floorplan-list {
  padding-left: 18px;
  margin-bottom: 30px;
}

.floorplan-list li {
  margin-bottom: 10px;
  color: #333;
}
/* ================= FLOOR PLAN SLIDER ================= */

.fp-slider {
  width: 100%;
  max-width: 680px;
  overflow: hidden;
}

.fp-track {
  display: flex;
  transition: transform 0.45s ease;
}

.fp-track img {
  width: 100%;
  flex-shrink: 0;
  border-radius: 16px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.18);
}

/* ================= FLOOR PLAN DOWNLOAD BUTTON ================= */
.floorplan-btn {
  display: inline-block;
  padding: 14px 26px;
  background: #f4ad3a;
  color: #111;
  font-size: 15px;
  font-weight: 600;
  border-radius: 6px;
  text-decoration: none;
  transition: all 0.3s ease;
  border: 1px solid #d4a13a;
}

.floorplan-btn:hover {
  background: transparent;
  color: #d4a13a;
}

/* ================= PROJECT GALLERY ================= */

#gallery {
  padding: 60px 0;
  background-color: #f3f6f9;
}

#gallery h2 {
  font-size: 30px;
  color: #0b3b63;
}

#gallery .section-line {
  width: 55px;
  height: 3px;
  background: #fbb040;
  margin: 12px 0 28px;
}

/* ===== CONTAINER CONTROL ===== */
#gallery .container {
  max-width: 1100px;
  /* IMPORTANT */
  margin: 0 auto;
}

/* ===== GRID FIX ===== */
#gallery .gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  /* FIX */
  gap: 20px;
}

/* ===== IMAGE FIX ===== */
#gallery .gallery img {
  width: 100%;
  height: 250px;
  /*  controlled size */
  object-fit: cover;
  border-radius: 14px;
  display: block;
}

/* ================= AMENITIES SECTION ================= */

.apex-amenities {
  padding: 55px 6%;
  background-color: #fbf9f9;
}

.apex-amenities-wrap {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 50px;
  align-items: stretch;
  height: 100%;
}

/* ================= LEFT IMAGE ================= */

.amenities-image {
  position: relative;
  padding: 28px;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 420px;
}

.amenities-image::before {
  content: "";
  position: absolute;
  top: 18px;
  left: 18px;
  width: 85%;
  height: 85%;
  background: #f3f6f9;
  border-radius: 20px;
  z-index: -1;
}

.amenities-image img {
  width: 78%;
  max-width: 459px;
  max-height: none;
  object-fit: cover;
  height: 100%;
  border-radius: 14px;
  object-fit: cover;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.15);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.amenities-image img:hover {
  transform: translateY(-6px);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.18);
}

/* ================= RIGHT CONTENT ================= */

.amenities-content {
  padding-left: 10px;
}

.apex-title {
  font-size: 38px;
  font-weight: 700;
  color: #0b3b63;
}

.apex-line {
  display: block;
  width: 60px;
  height: 3px;
  background: #fbb040;
  margin: 12px 0 35px;
}

/* ================= DIVIDER LIST ================= */
.amenities-divider-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.amenities-divider-list li {
  display: grid;
  grid-template-columns: 50px 1fr;
  align-items: center;
  gap: 20px;
  padding: 16px 0;
  border-bottom: 1px solid #cfcfcf;
  /* 🔥 REAL DIVIDER */
}

.amenities-divider-list li:last-child {
  border-bottom: none;
}

.amenities-divider-list .num {
  font-size: 15px;
  font-weight: 600;
  color: #b5b5b5;
}

.amenities-divider-list .text {
  font-size: 16px;
  color: #333;
}

/* Hover effect */
.amenities-divider-list li:hover {
  border-bottom-color: #fbb040;
}

/* TEXT */
.amenities-divider-list .text {
  font-size: 16px;
  color: #333;
  white-space: normal;
}

/* LINE */
.amenities-divider-list .line {
  display: block;
  width: 100%;
  /**/
  height: 1px;
  background: #dcdcdc;
}

/* Hover effect */
.amenities-divider-list li:hover .line {
  background: #fbb040;
}

/* =========================================
   APEX LANDBASE – FINAL POPUP CSS (SAFE)
========================================= */

/* Overlay – viewport locked */
.apex-popup-bg {
  position: fixed !important;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  display: none;
  justify-content: center;
  align-items: center;
  background: rgba(0, 0, 0, 0.75);
  z-index: 2147483647;
}

/* Active */
.apex-popup-bg.active {
  display: flex !important;
}

/* Popup card */
.apex-popup-box {
  background: #ffffff;
  width: 92%;
  max-width: 440px;
  padding: 36px 34px 38px;
  border-radius: 18px;
  position: relative;
  box-shadow:
    0 30px 80px rgba(0, 0, 0, 0.35),
    0 0 0 1px rgba(255, 255, 255, 0.08);
  animation: apexFadeUp 0.35s ease;
}

/* Close */
.apex-popup-close {
  position: absolute;
  top: 16px;
  right: 18px;
  background: none;
  border: none;
  font-size: 20px;
  cursor: pointer;
  opacity: 0.6;
}

.apex-popup-close:hover {
  opacity: 1;
}

/* Header */
.apex-popup-header {
  text-align: center;
  margin-bottom: 22px;
}

.apex-popup-header img {
  max-width: 150px;
  margin-bottom: 14px;
}

.apex-popup-header h3 {
  font-size: 22px;
  font-weight: 600;
  margin-bottom: 6px;
}

.apex-popup-header p {
  font-size: 14px;
  color: #777;
}

/* Form */
.apex-lead-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.apex-lead-form input {
  width: 100%;
  padding: 14px 16px;
  border-radius: 10px;
  border: 1px solid #e1e1e1;
  background: #fafafa;
  font-size: 14px;
}

.apex-lead-form input:focus {
  outline: none;
  background: #fff;
  border-color: #000;
}

/* Submit */
.apex-submit-btn {
  margin-top: 12px;
  padding: 15px;
  border-radius: 12px;
  border: none;
  background: linear-gradient(135deg, #000000, #1c1c1c);
  color: #fff;
  font-size: 15px;
  letter-spacing: 0.4px;
  cursor: pointer;
}

.apex-submit-btn:hover {
  background: linear-gradient(135deg, #1c1c1c, #000000);
}

.apex-submit-btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

/* Animation */
@keyframes apexFadeUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Mobile */
@media (max-width: 480px) {
  .apex-popup-box {
    padding: 28px 22px 30px;
    border-radius: 16px;
  }

  .apex-popup-header h3 {
    font-size: 20px;
  }
}
.toast {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background: #0b3b63;
  color: #fff;
  padding: 14px 18px;
  border-radius: 8px;
  font-size: 14px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.25);
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: 0.3s ease;
  z-index: 9999;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

.contact-section {
  background: #0b3b63;
  padding: 50px 20px;
  color: #fff;
}

.contact-wrap {
  max-width: 1100px;
  margin: auto;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: center;
}

.contact-text h2 {
  font-size: 34px;
  margin-bottom: 12px;
}

.contact-text p {
  opacity: 0.9;
  margin-bottom: 18px;
  max-width: 420px;
}

.contact-text ul {
  list-style: none;
  padding: 0;
}

.contact-text li {
  margin-bottom: 6px;
  font-size: 14px;
}

.contact-form {
  background: #fff;
  padding: 24px;
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.contact-form input {
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid #ddd;
  font-size: 14px;
}

.contact-form button {
  margin-top: 8px;
  padding: 13px;
  border: none;
  border-radius: 10px;
  background: #fbb040;
  color: #000;
  font-weight: 600;
  cursor: pointer;
  transition: 0.3s;
}

.contact-form button:hover {
  background: #f5a623;
}

/* =====================================================
   FOOTER
===================================================== */
.footer-divider {
  max-width: 1100px;
  height: 1px;
  margin: 40px auto 25px;
  background: linear-gradient(to right,
      transparent,
      #fbb040,
      transparent);
}

.lp-footer {
  background: #0b3b63;
  padding: 20px;
  text-align: center;
}

.lp-footer p {
  color: #ffffff;
  font-size: 11px;
  line-height: 1.6;
  max-width: 900px;
  margin: auto;
  opacity: 0.85;
}
.lp-footer p a {
  color: #ffffff;          
  font-weight: 500;
  text-decoration: underline;
  display: inline-block;
}
.lp-footer a:focus-visible {
  outline: 2px solid #fbb040;
  outline-offset: 3px;
}
/* =====================================================
   MOBILE + TABLET MEDIA CSS (WITH HAMBURGER)
===================================================== */

/* ================== TABLET ================== */
@media (max-width: 1024px) {

  .nav {
    padding: 0 16px;
  }

  .menu a {
    margin-left: 16px;
    font-size: 13px;
  }

  .hero {
    padding: 60px 40px;
    padding-top: calc(60px + 72px);
  }

  .overview-wrap,
  .residences-wrap,
  .apex-amenities-wrap,
  .contact-wrap {
    grid-template-columns: 1fr;
  }

  .residences-content {
    margin-left: 0;
  }

  .residences-images {
    margin-left: 0;
  }
  .overview-image{
    height: 320px;
    margin: 0 auto;
  }
}
/* ================== MOBILE (FINAL FIXED) ================== */
@media (max-width: 768px) {

  /* ================= GLOBAL FIX ================= */
  html, body {
    width: 100%;
    overflow-x: hidden;
  }

  /* ================= HEADER ================= */
  .site-header {
    height: 64px;
  }

  .nav {
    height: 64px;
    padding: 0 14px;
  }

  /* ================= LOGO ================= */
  .logo-text {
    align-items: flex-start;
  }

  .logo-text .brand {
    font-size: 13px;
    letter-spacing: 2.5px;
  }

  .logo-text .project {
    font-size: 19px;
    letter-spacing: 1.8px;
  }

  .logo-text .tagline {
    font-size: 9px;
  }

  /* ================= HAMBURGER ================= */
  .hamburger {
    display: flex;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
  }

  .hamburger span {
    width: 22px;
    height: 2px;
    background: #fff;
  }

  /* ================= MENU ================= */
  .menu {
    position: fixed;
    top: 64px;
    left: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.96);
    backdrop-filter: blur(8px);
    flex-direction: column;
    align-items: flex-start;   /* 🔥 LEFT ALIGN */
    gap: 18px;
    padding: 28px 20px 36px;
    transform: translateY(-120%);
    transition: 0.4s ease;
    z-index: 9998;
  }

  .menu.active {
    transform: translateY(0);
  }

  .menu a {
    font-size: 15px;
    margin: 0;
  }

  .brochure-header-btn {
    margin-top: 12px;
  }

  /* ================= HERO ================= */
  .hero {
    min-height: 100vh;
    padding: 26px 16px;
    padding-top: calc(26px + 64px);
    align-items: flex-end;      /* 🔥 bottom */
    text-align: left;           /* 🔥 LEFT */
  }

  .hero-content {
    max-width: 92%;
    margin: 0;
  }

  .hero-content h1 {
    font-size: 22px;
    line-height: 1.35;
  }

  .hero-subtitle {
    font-size: 14px;
    margin: 10px 0 18px;
  }

  .hero-highlights {
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  .hero-highlights span {
    font-size: 12px;
    padding: 6px 14px;
  }

  /* ================= OVERVIEW ================= */
  .overview {
    padding: 56px 16px;
  }

  .overview-wrap {
    grid-template-columns: 1fr;
  }

  .overview-image {
    height: 260px;
    max-width: 100%;
    margin: 0;
  }
  /* ================= MASTER PLAN ================= */
  .master-wrap {
    grid-template-columns: 1fr;
    text-align: left;
  }

  .master-image {
    align-items: flex-start;
  }

  /* ================= FLOOR PLAN ================= */
  .floorplan-wrap {
    grid-template-columns: 1fr;
  }

  .floorplan-images img {
    max-width: 100%;
  }
#gallery {
    padding: 40px 0;
    width: 100%;
  }
  #gallery .container {
    max-width: 100% !important;
    width: 100%;
    padding-left: 14px;  
    padding-right: 14px;
    margin: 0;
  }

  /* Grid */
  #gallery .gallery {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
  }

  /* Images */
  #gallery .gallery img {
    width: 100%;
    height: 220px;
    border-radius: 16px;
    display: block;
    object-fit: cover;
  }

  /* ================= AMENITIES ================= */
  .apex-amenities {
    padding: 50px 16px;
  }

  .apex-amenities-wrap {
    grid-template-columns: 1fr;
  }

  .amenities-image img {
    width: 100%;
  }

  /* ================= CONTACT ================= */
  .contact-wrap {
    grid-template-columns: 1fr;
  }

  .contact-text h2 {
    font-size: 26px;
  }

  /* ================= FOOTER ================= */
  .lp-footer p {
    font-size: 10px;
  }
  /* =================================================
   RESIDENCES – COMPLETE MEDIA (FINAL)
================================================= */

/* ================== TABLET (<=1024px) ================== */
@media (max-width: 1024px) {

  /* Stack both North & West */
  #residences .residences-wrap {
    grid-template-columns: 1fr;
    gap: 40px;
    margin-bottom: 60px;
  }

  /* Reset content spacing */
  #residences .residences-content {
    padding: 0;
    margin: 0;
  }

  /* Images normal */
  #residences .residences-images {
    margin: 0;
    width: 100%;
  }
}

/* ================== MOBILE (<=768px) ================== */
@media (max-width: 768px) {

  /* Section padding */
  #residences {
    padding: 60px 16px;
  }

  /* Stack layout clean */
  #residences .residences-wrap {
    display: flex;
    flex-direction: column;
    gap: 28px;
    margin-bottom: 50px;
  }

  /* ===== NORTH (default order) ===== */
  #residences .residences-wrap:not(.reverse) {
    flex-direction: column;
  }

  /* ===== WEST (force North-like order) ===== */
  #residences .residences-wrap.reverse {
    flex-direction: column;
  }

  /* Content first */
  #residences .residences-wrap.reverse .residences-content {
    order: 1;
  }

  /* Images after content */
  #residences .residences-wrap.reverse .residences-images {
    order: 2;
    margin-top: 16px;
  }

  /* Images full width */
  #residences .residences-images {
    width: 100%;
    margin: 0 auto;
  }

  /* Image height control */
  #residences .residences-images img {
    height: 230px;
  }
}
}