:root {
        --primary-color: #0a2342;
        --accent-color: #b98a4a;
        --accent-color-darker: #b98a4a;
        --accent-gradient: linear-gradient(
          135deg,
          var(--accent-color),
          #b98a4a
        );
        --text-color-light: #fff;
        --text-color-dark: #333;
        --text-color-muted: #666;
        --bg-light: #f9f9f9;
        --bg-section-alt: #f0f4f8; /* Was linear-gradient(135deg, #f8fafc, #e2e8f0) */
        --border-color: #e2e8f0;
        --font-body:  "Urbanist", sans-serif;
        --font-heading: "Urbanist", sans-serif;
        --container-padding: clamp(15px, 4vw, 25px);
        --section-padding: clamp(40px, 8vh, 80px);
      }

      *,
      *::before,
      *::after {
        box-sizing: border-box;
        margin: 0;
        padding: 0;
      }
      html {
        scroll-behavior: smooth;
        font-size: clamp(14px, 2.5vw, 16px);
      }
      body {
        font-family: var(--font-body);
        line-height: 1.6;
        color: var(--text-color-dark);
        background-color: var(--bg-light);
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
        overflow-x: hidden;
      }
      .container {
        width: min(90%, 1200px);
        margin: 0 auto;
        padding: 0 var(--container-padding);
      }

      .sticky-header {
        background-color: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        padding: clamp(8px, 2vw, 15px) 0;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        z-index: 1000;
        box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
        transition: transform 0.3s ease;
      }
      .header-container {
        display: flex;
        justify-content: space-between;
        align-items: center;
      }
      .logo {
        font-weight: 700;
        color: var(--primary-color);
        text-decoration: none;
        letter-spacing: 0.5px;
      }
      .mobile-nav-toggle {
        display: none;
        font-size: 1.5rem;
        background: none;
        border: none;
        color: var(--primary-color);
        cursor: pointer;
        padding: 8px;
        border-radius: 4px;
        transition: background-color 0.2s ease;
      }
      .mobile-nav-toggle:hover {
        background-color: rgba(26, 42, 68, 0.1);
      }
      .main-nav {
        display: flex;
        align-items: center;
      }
      .main-nav ul {
        list-style: none;
        display: contents;
        align-items: center;
        gap: clamp(15px, 3vw, 30px);
      }
      .main-nav a {
        color: var(--primary-color);
        text-decoration: none;
        font-weight: 500;
        font-size: clamp(0.9rem, 2vw, 1rem);
        padding: 8px 12px;
        border-radius: 6px;
        transition: all 0.3s ease;
        position: relative;
      }
      .main-nav a:hover {
        color: var(--accent-color);
        background-color: rgba(192, 149, 83, 0.1);
      }
      .sticky-ctas {
        display: flex;
        align-items: center;
        gap: 10px;
      }

      .hero-section {
        min-height: 100vh;
        /* Using a simpler SVG placeholder for self-containment. A real LQIP/optimized image is better. */
        background-image: linear-gradient(rgb(24 24 24 / 60%), rgb(59 59 59 / 40%)), url(../assets/banner.webp); /* Dark abstract placeholder */
        background-size: cover;
        background-position: center;
        background-attachment: fixed;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        text-align: center;
        padding: clamp(80px, 20vh, 120px) 20px clamp(40px, 2vh, 80px);
        color: var(--text-color-light);
        position: relative;
      }
      .hero-content {
        flex-grow: 1;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        max-width: 900px;
        animation: fadeInUp 1s ease-out;
      }
      @keyframes fadeInUp {
        from {
          opacity: 0;
          transform: translateY(30px);
        }
        to {
          opacity: 1;
          transform: translateY(0);
        }
      }
      .hero-content h1 {
        color: var(--text-color-light);
        font-size: clamp(2rem, 6vw, 4rem);
        margin-bottom: 0.5em;
        font-family: var(--font-heading);
        font-weight: 400;
        line-height: 1.1;
        text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
      }
      .hero-content .subheading {
        color: rgba(255, 255, 255, 0.9);
        font-size: clamp(1rem, 3vw, 1.2rem);
        margin-bottom: 2em;
        max-width: 80%;
        line-height: 1.5;
      }

      .cta-button {
        display: inline-block;
        padding: clamp(12px, 3vw, 16px) clamp(20px, 5vw, 32px);
        background: var(--accent-gradient);
        color: var(--text-color-light);
        border: none;
        border-radius: 50px;
        font-weight: 600;
        text-align: center;
        cursor: pointer;
        transition: all 0.3s ease;
        text-decoration: none;
        font-size: clamp(0.9rem, 2.5vw, 1rem);
        box-shadow: 0 4px 15px rgba(192, 149, 83, 0.3);
        position: relative;
        overflow: hidden;
      }
      .cta-button::before {
        content: "";
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient(
          90deg,
          transparent,
          rgba(255, 255, 255, 0.2),
          transparent
        );
        transition: left 0.5s;
      }
      .cta-button:hover::before {
        left: 100%;
      }
      .cta-button:hover {
        transform: translateY(-2px);
        box-shadow: 0 6px 20px rgba(192, 149, 83, 0.4);
      }
      .cta-button.secondary {
        background: transparent;
        color: var(--text-color-light);
        border: 2px solid rgba(255, 255, 255, 0.8);
        backdrop-filter: blur(10px);
      }
      .cta-button.secondary:hover {
        background: rgba(255, 255, 255, 0.1);
        border-color: var(--text-color-light);
      }
      .hero-ctas {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: clamp(10px, 3vw, 20px);
        margin-top: 20px;
      }

      .scroll-indicator-container {
        width: 100%;
        text-align: center;
        padding-top: clamp(30px, 5vh, 50px);
      }
      .scroll-indicator {
        color: rgba(255, 255, 255, 0.8);
        font-size: 0.9rem;
        display: inline-flex;
        flex-direction: column;
        align-items: center;
        text-decoration: none;
        transition: color 0.3s ease;
      }
      .scroll-indicator:hover {
        color: var(--text-color-light);
      }
      .scroll-indicator i {
        margin-top: 8px;
        animation: bounce 2s infinite;
        font-size: 1.2rem;
      }
      @keyframes bounce {
        0%,
        20%,
        50%,
        80%,
        100% {
          transform: translateY(0);
        }
        40% {
          transform: translateY(-10px);
        }
        60% {
          transform: translateY(-5px);
        }
      }

      .form-only-section {
        padding: var(--section-padding) 0;
        background: var(--bg-section-alt);
      } /* Changed to var */
      .form-container {
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(10px);
        padding: clamp(25px, 5vw, 40px);
        border-radius: 20px;
        box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
        max-width: 600px;
        margin: 0 auto;
        border: 1px solid rgba(255, 255, 255, 0.2);
      }
      .form-container h2 {
        text-align: center;
        color: var(--primary-color);
        font-size: clamp(1.5rem, 4vw, 2.2rem);
        font-family: var(--font-heading);
        margin-bottom: 10px;
      }
      .form-group {
        margin-bottom: 20px;
        position: relative; /* For error messages */
      }
      .form-group label {
        display: block;
        margin-bottom: 8px;
        font-weight: 600;
        color: #444;
        font-size: 0.95rem;
      }
      .form-group input,
      .form-group select {
        width: 100%;
        padding: 15px;
        border: 2px solid var(--border-color);
        border-radius: 12px;
        font-size: 1rem;
        background-color: var(--text-color-light);
        transition: all 0.3s ease;
      }
      .form-group input:focus,
      .form-group select:focus {
        outline: none;
        border-color: var(--accent-color);
        box-shadow: 0 0 0 3px rgba(192, 149, 83, 0.1);
        transform: translateY(-1px);
      }
      /* Inline Error Message Styling */
      .error-message {
        display: none;
        color: red;
        font-size: 0.85rem;
        margin-top: 5px;
      }
      .form-group input.invalid,
      .form-group select.invalid {
        border-color: red;
      }
      .form-container .cta-button {
        width: 100%;
        padding: 16px;
        margin-top: 10px;
      }
      .disclaimer {
        text-align: center;
        font-size: 0.85rem;
        color: var(--text-color-muted);
        margin-top: 15px;
        line-height: 1.4;
      }

      section {
        padding: var(--section-padding) 0;
      }
      h2 {
        font-family: var(--font-heading);
        color: var(--primary-color);
        font-size: clamp(1.8rem, 5vw, 2.5rem);
        margin-bottom: 0.5em;
        text-align: center;
      }
      .subheading {
        font-size: clamp(1rem, 3vw, 1.2rem);
        color: var(--text-color-muted);
        text-align: center;
        margin-bottom: 2em;
        max-width: 600px;
        margin-left: auto;
        margin-right: auto;
      }

      .tabs-navigation {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        margin-bottom: 30px;
        gap: 5px;
      }
      .tab-link {
        padding: 12px 20px;
        cursor: pointer;
        background: none;
        border: 2px solid var(--border-color);
        font-size: clamp(0.9rem, 2.5vw, 1rem);
        font-weight: 500;
        color: #555;
        border-radius: 25px;
        transition: all 0.3s ease;
        flex: 1;
        min-width: 120px;
        max-width: 200px;
        text-align: center;
      }
      .tab-link.active {
        color: var(--text-color-light);
        background: var(--accent-gradient);
        border-color: var(--accent-color);
      }
      .tab-content {
        display: none;
      }
      .tab-content.active {
        display: block;
      }

      .floorplan-showcase {
  display: -ms-grid;      /* (optional) old IE fallback */
  display: grid;
  /* single‐column layout */
  -ms-grid-columns: 1fr;  /* (optional) old IE fallback */
  grid-template-columns: 1fr;

  /* center the card inside that single column */
  justify-items: center;

  /* basic fallback spacing for really old WebKit (pre-clamp) */
  row-gap: 20px;
  column-gap: 20px;

  /* modern Safari (14+) and other browsers */
  row-gap: clamp(20px, 4vw, 30px);
  column-gap: clamp(20px, 4vw, 30px);

  margin-top: 30px;
}

.floorplan-card {
  /* give the card a max-width so it won’t stretch 100% of the grid cell */
  width: 100%;
  max-width: 400px; /* adjust as needed */

  background: var(--text-color-light);
  border-radius: 16px;
  box-shadow: 0 8px 25px #0a2342;
  overflow: hidden;
  transition: all 0.3s ease;

  display: -webkit-flex; /* (optional) old Safari flex fallback */
  display: flex;
  -webkit-flex-direction: column;
  flex-direction: column;
}

.floorplan-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;       /* supported in Safari 10+ */
  background-color: #f0f0f0;
}
      .floorplan-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
      }
     
      .floorplan-card h4 {
        padding: 20px 20px 10px;
        font-size: 1.2rem;
        color: var(--primary-color);
      }
      .floorplan-card ul {
        padding: 0 20px;
        list-style: none;
        flex-grow: 1;
      }
      .floorplan-card li {
        font-size: 0.95rem;
        margin-bottom: 8px;
        color: var(--text-color-muted);
        position: relative;
        padding-left: 20px;
      }
      .floorplan-card li::before {
        content: "✦";
        position: absolute;
        left: 0;
        color: var(--accent-color);
      }
      .floorplan-card .cta-button-small {
        margin: 20px;
        padding: 10px 20px;
        font-size: 0.9rem;
        border-radius: 25px;
      }

      .gallery-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 15px;
        margin-top: 30px;
      }
      .gallery-item {
        position: relative;
        overflow: hidden;
        border-radius: 12px;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
        aspect-ratio: 4/3;
      }
      .gallery-item img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform 0.3s ease;
      }
      .gallery-item:hover img {
        transform: scale(1.05);
      }

      .amenities-section {
        background: var(--bg-section-alt);
      } /* Changed to var */
      .amenities-container {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 25px;
        margin-top: 30px;
      }
      .amenity-item {
        background: rgba(255, 255, 255, 0.9);
        padding: 25px;
        border-radius: 15px;
        box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
        text-align: center;
        transition: transform 0.3s ease;
      }
      .amenity-item:hover {
        transform: translateY(-5px);
      }
      .amenity-item h3 {
        color: var(--primary-color);
        margin-bottom: 15px;
        font-size: 1.2rem;
      }
      .amenity-item p {
        color: var(--text-color-muted);
        line-height: 1.5;
      }

      .site-footer {
        background: linear-gradient(135deg, var(--primary-color), #0a2342);
        color: #e2e8f0;
        padding: clamp(30px, 6vh, 50px) 0;
        text-align: center;
      }
      .footer-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 30px;
        align-items: start;
      }
      .footer-grid h4 {
        color: var(--accent-color);
        margin-bottom: 15px;
      }
      .footer-grid a {
        color: #e2e8f0;
        text-decoration: none;
        transition: color 0.3s ease;
      }
      .footer-grid a:hover {
        color: var(--accent-color);
      }

      @media (max-width: 768px) {
        .mobile-nav-toggle {
          display: block;
        }
        .main-nav {
          display: none;
          position: absolute;
          top: 100%;
          left: 0;
          width: 100%;
          background: rgba(255, 255, 255, 0.98);
          backdrop-filter: blur(10px);
          box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
          border-radius: 0 0 15px 15px;
        }
        .main-nav.active {
          display: block;
        }
        .main-nav ul {
          flex-direction: column;
          padding: 20px 0;
          gap: 0;
        }
        .main-nav li {
          width: 100%;
        }
        .main-nav a {
          display: block;
          padding: 15px 25px;
          border-bottom: 1px solid rgba(0, 0, 0, 0.1);
        }
        .sticky-ctas {
          display: none;
        }
        .hero-section {
          background-attachment: scroll;
          background-position: 53% 45%;
        }
        .hero-ctas {
          flex-direction: column;
          width: 100%;
          max-width: 300px;
        }
        .hero-ctas .cta-button {
          width: 100%;
        }
      }

      .lazy-load {
        opacity: 0;
        transition: opacity 0.3s;
      }
      .lazy-load.loaded {
        opacity: 1;
      }

      @media (prefers-reduced-motion: reduce) {
        * {
          animation-duration: 0.01ms !important;
          animation-iteration-count: 1 !important;
          transition-duration: 0.01ms !important;
        }
      }
      .sr-only {
        position: absolute;
        width: 1px;
        height: 1px;
        padding: 0;
        margin: -1px;
        overflow: hidden;
        clip: rect(0, 0, 0, 0);
        white-space: nowrap;
        border: 0;
      }

      @media (max-width: 480px) {
        .hero-content h1 {
          font-size: 1.8rem;
        }
        .form-container {
          margin: 0 10px;
          padding: 20px;
        }
        .floorplan-showcase {
          grid-template-columns: 1fr;
        }
        .gallery-grid {
          grid-template-columns: 1fr;
          gap: 10px;
        }
      }

      @media print {
        .sticky-header,
        .hero-ctas,
        .sticky-ctas,
        .cta-button {
          display: none;
        }
        body {
          font-size: 12pt;
          line-height: 1.4;
        }
        .hero-section {
          background: none;
          color: #000;
          padding: 20px;
        }
      }

      .residences-floorplans-section {
  /* background-color: var(--bg-light); Optional: different background */
}

.residences-floorplans-section h2,
.residences-floorplans-section .subheading {
  text-align: center;
}

/* Keep existing .tabs-navigation and .tab-link styles */
/* You might want to adjust tab button text or styling slightly */
.tabs-navigation .tab-link {
    min-width: 150px; /* Ensure enough space for " (10 Units)" */
}


.floorplan-teaser-content {
  display: grid;
  grid-template-columns: 1fr; /* Mobile: stack image and text */
  gap: 30px;
  margin-top: 30px;
  align-items: center;
  padding: 20px;
  background-color: var(--text-color-light); /* White background for the teaser card */
  border-radius: 16px;
  box-shadow: 0 8px 25px rgba(10, 35, 66, 0.08);
}

@media (min-width: 769px) {
  .floorplan-teaser-content {
    grid-template-columns: 1fr 1.5fr; /* Desktop: image on left, text on right */
    gap: 40px;
    padding: 40px;
  }
}

.floorplan-teaser-image-area img {
  width: 100%;
  height: auto;
  max-height: 256px; /* Control image height */
  object-fit: cover;
  border-radius: 12px;
  background-color: #f0f0f0; /* Placeholder BG */
}

.floorplan-teaser-details h3 {
  color: var(--primary-color);
  font-size: clamp(1.4rem, 3.5vw, 1.8rem); /* Slightly smaller than section H2 */
  margin-bottom: 15px;
  text-align: left;
}

.floorplan-teaser-details p {
  color: var(--text-color-muted);
  margin-bottom: 15px;
  font-size: clamp(0.9rem, 2.2vw, 1rem);
}

.floorplan-teaser-details ul {
  list-style: none;
  padding-left: 0;
  margin-bottom: 25px;
}

.floorplan-teaser-details li {
  font-size: clamp(0.9rem, 2.2vw, 1rem);
  color: var(--text-color-dark);
  margin-bottom: 10px;
  position: relative;
  padding-left: 25px;
}

.floorplan-teaser-details li::before {
  content: '✦'; /* Or use an SVG icon */
  position: absolute;
  left: 0;
  color: var(--accent-color);
  font-size: 1.1em; /* Adjust icon size */
  top: 2px;
}

.fp-request-cta {
  display: inline-block; /* Or block with margin auto for centering */
  margin-top: 20px;
}

.form-prompt-footer {
    text-align: center;
    margin-top: 40px;
    font-size: clamp(0.95rem, 2.5vw, 1.1rem);
    color: var(--text-color-muted);
}
.form-prompt-footer a {
    color: var(--accent-color);
    font-weight: 600;
    text-decoration: underline;
}
.form-prompt-footer a:hover {
    color: var(--accent-color-darker);
}

/* Remove or hide the old .floorplan-showcase if this new section replaces it */
/* .floorplan-showcase { display: none; } */
.neighborhood-section {
  background-color: var(--bg-light); /* Or keep it white if preferred */
}

.neighborhood-section h2,
.neighborhood-section .subheading {
  text-align: center;
}

.neighborhood-grid {
  display: grid;
  grid-template-columns: 1fr; /* Mobile: stack map and amenities */
  gap: 30px;
  margin-top: 40px;
}

@media (min-width: 992px) { /* Desktop: two columns */
  .neighborhood-grid {
    grid-template-columns: 1fr 1.2fr; /* Map slightly smaller, amenities slightly larger */
    gap: 50px;
    align-items: flex-start; /* Align items to the top */
  }
}

.neighborhood-map-area h3,
.neighborhood-amenities-area h3 {
  font-size: clamp(1.3rem, 3vw, 1.6rem);
  color: var(--primary-color);
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--accent-color);
  display: inline-block; /* To make border only as wide as text */
}

.map-embed-container {
  position: relative;
  overflow: hidden;
  padding-top: 75%; /* Aspect ratio for map (e.g., 4:3). Adjust as needed. */
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.1);
  margin-bottom: 20px;
}

.map-embed-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.map-image-container img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.1);
  background-color: #e0e0e0; /* Placeholder BG if image is transparent */
}
.map-caption {
    font-size: 0.85rem;
    color: var(--text-color-muted);
    text-align: center;
    margin-top: 10px;
}

.neighborhood-cta {
    display: block;
    width: fit-content;
    margin: 25px auto 0;
    text-align: center;
}

.amenity-categories {
  display: grid;
  grid-template-columns: 1fr; /* Mobile: single column for categories */
  gap: 25px;
}

@media (min-width: 576px) { /* Small tablets and up: two columns for categories */
  .amenity-categories {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px; /* Slightly smaller gap for denser info */
  }
}

.amenity-category {
  background-color: #fff; /* var(--text-color-light) */
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.07);
}

.amenity-category h4 {
  font-size: clamp(1.1rem, 2.5vw, 1.25rem);
  color: var(--primary-color);
  margin-bottom: 15px;
  display: flex;
  align-items: center;
}

.amenity-category h4 i {
  color: var(--accent-color);
  margin-right: 10px;
  font-size: 1.3em; /* Make icon slightly larger than text */
}

.amenity-category ul {
  list-style: none;
  padding-left: 0;
  margin-bottom: 15px; /* Space between sub-lists (Schools/Colleges) */
}
.amenity-category ul:last-child {
    margin-bottom: 0;
}

.amenity-category ul li {
  font-size: clamp(0.9rem, 2.2vw, 0.95rem);
  color: var(--text-color-dark);
  margin-bottom: 8px;
  display: flex; /* For aligning name and time */
  justify-content: space-between;
  padding-bottom: 5px;
  border-bottom: 1px dashed var(--border-color);
}
.amenity-category ul li:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.amenity-category ul li strong { /* For sub-headings like "Schools:" */
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 5px;
    display: block;
    width: 100%; /* Take full width */
    border-bottom: none; /* No dash for these */
}


.amenity-category ul li span { /* For the time/distance */
  color: var(--text-color-muted);
  font-weight: 500;
  white-space: nowrap; /* Keep time on one line */
  margin-left: 10px;
}