/* Custom styles for the static (non-React) rebuild of this page.
   Everything else comes from the original compiled Tailwind stylesheet
   (index-D1M5vlms.css), loaded before this file. */

/* Native <button> defaults to cursor:default in most browsers (only <a>
   gets pointer for free) — this site has dozens of buttons across static
   markup and JS-rendered components, so one base rule beats adding
   cursor-pointer to every one individually. Excludes disabled buttons,
   which should keep showing they are not clickable. */
button:not(:disabled) {
  cursor: pointer;
}

/* ---------- Maduram brand palette (Navy/Gold) ----------
   tailwind.css is statically pre-compiled from the original build and has
   no rule for any hex value that wasn't used back then. These are brand-new
   colors introduced later, so their utility classes need hand-written rules
   here or they're inert (class present in the HTML, zero visual effect). */
.bg-\[\#14291a\] {
  background-color: #14291a;
}
.bg-\[\#C19F40\] {
  background-color: #C19F40;
}
.bg-\[\#F5F2E6\] {
  background-color: #F5F2E6;
}
.bg-\[\#DFCFB4\] {
  background-color: #DFCFB4;
}
.border-\[\#14291a\] {
  border-color: #14291a;
}
.border-\[\#C19F40\] {
  border-color: #C19F40;
}
.border-\[\#C19F40\]\/50 {
  border-color: #C19F4080;
}
.focus\:border-\[\#C19F40\]:focus {
  border-color: #C19F40;
}
.hover\:bg-\[\#a8863a\]:hover {
  background-color: #a8863a;
}
.bg-\[\#0d1e11\]\/36 {
  /* Amenities 2 mobile overlay, dimmed 20% relative from the original
     /45 (0.45 * 0.8 = 0.36 -> #0d1e115c). */
  background-color: #0d1e115c;
}
.text-\[\#14291a\] {
  color: #14291a;
}
.text-\[\#14291a\]\/60 {
  color: #14291a99;
}
.text-\[\#C19F40\] {
  color: #C19F40;
}
.border-\[\#67748C\] {
  border-color: #67748C;
}
.text-\[\#67748C\] {
  color: #67748C;
}
.bg-\[\#8DB5DF\] {
  background-color: #8DB5DF;
}
.text-\[\#93C5FD\] {
  color: #93C5FD;
}

/* ---------- Policy modal (also inert-arbitrary-class classes) ---------- */
.max-w-2xl {
  max-width: 42rem;
}
.max-h-\[85vh\] {
  max-height: 85vh;
}
.bg-black\/60 {
  background-color: rgb(0 0 0 / 0.6);
}
.bg-white\/10 {
  background-color: rgb(255 255 255 / 0.1);
}
.hover\:bg-white\/20:hover {
  background-color: rgb(255 255 255 / 0.2);
}

/* ---------- Artistic-impression disclaimer ---------- */
.artistic-disclaimer {
  position: absolute;
  right: 8px;
  bottom: 6px;
  left: 8px;
  z-index: 10;
  background: none;
  color: rgba(255, 255, 255, 0.8);
  font-family: 'Montserrat', sans-serif;
  font-style: italic;
  font-size: 8px;
  letter-spacing: 0.2px;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6);
  text-align: right;
  pointer-events: none;
}


/* ---------- Scroll-reveal (replaces the original Framer Motion entrance
   animations; elements are tagged with class="reveal" during the build). ---------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  .reveal {
    transition: none;
    opacity: 1;
    transform: none;
  }
}

/* ---------- Building Features hotspot tooltips ---------- */
.hotspot-tooltip {
  visibility: hidden;
  opacity: 0;
  transform: translateX(-8px);
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s;
}
[data-hotspot].is-open .hotspot-tooltip {
  visibility: visible;
  opacity: 1;
  transform: none;
}
[data-hotspot] > div:first-child {
  transition: transform 0.2s ease;
}
[data-hotspot].is-open > div:first-child {
  transform: scale(1.25);
}

/* ---------- Building Features: mobile hotspot dots <-> card linking ---------- */
.feature-hotspot-dot {
  position: absolute;
  transform: translate(-50%, -50%);
  width: 14px;
  height: 14px;
  border-radius: 9999px;
  background: #1e4620;
  border: 2px solid #fff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
  cursor: pointer;
  z-index: 20;
}
.feature-hotspot-dot.is-pulsing {
  animation: feature-hotspot-pulse 0.9s ease-out 2;
}
@keyframes feature-hotspot-pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(193, 122, 74, 0.55);
  }
  100% {
    box-shadow: 0 0 0 16px rgba(193, 122, 74, 0);
  }
}

/* ---------- Clubhouse drag-to-scroll ---------- */
#clubhouse-scroll {
  scroll-snap-type: x proximity;
  scroll-behavior: smooth;
}
#clubhouse-scroll > div > * {
  scroll-snap-align: start;
}
#clubhouse-scroll.is-dragging {
  cursor: grabbing;
  scroll-behavior: auto;
  scroll-snap-type: none;
}
/* On mobile, every card matches the "tall" 240px card height so the strip
   reads as one even row instead of the jagged tall/short masonry stagger.
   The alternating short cards come back at md: for the desktop mosaic look. */
.ch-card-short {
  height: 240px;
}
@media (min-width: 768px) {
  .ch-card-short {
    height: 157.5px;
  }
}

/* ---------- Gallery / Video Gallery + Master Plan / Unit Plan tab underline ---------- */
[data-gallery-tabbtn] p,
[data-mp-tabbtn] span {
  color: rgba(26, 26, 26, 0.4);
  transition: color 0.2s ease;
}
[data-gallery-tabbtn].is-active p,
[data-mp-tabbtn].is-active span {
  color: rgb(26, 26, 26);
}
[data-gallery-tabbtn]::after,
[data-mp-tabbtn]::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1.5px;
  background: #1a1a1a;
  transform: scaleX(0);
  transition: transform 0.25s ease;
}
[data-gallery-tabbtn].is-active::after,
[data-mp-tabbtn].is-active::after {
  transform: scaleX(1);
}

/* ---------- Fixes for utility classes that aren't in the pre-compiled
   Tailwind stylesheet (it only contains classes the original app actually
   used at build time -- any new combination we introduce needs plain CSS). ---------- */
#testimonials-desktop-grid {
  display: none;
  gap: 20px;
}
@media (min-width: 768px) {
  #testimonials-desktop-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (min-width: 1024px) {
  #testimonials-desktop-grid {
    gap: 24px;
  }
}
/* Name/role + star-rating footer row: at narrow card widths (the 768-900px
   band where the grid is 3 columns but each card is still fairly narrow)
   the fixed-width 5-star row doesn't fit next to the avatar/name and
   overflows past the card's right edge. Letting it wrap keeps the stars
   on their own line instead of spilling out. */
#testimonials-desktop-grid > div > .flex.items-center.justify-between,
#testimonials-mobile-card > .flex.items-center.justify-between {
  flex-wrap: wrap;
  row-gap: 8px;
}

/* ---------- Mosaic tile reveal (Project Highlights) ---------- */
.mosaic-tile {
  background-repeat: no-repeat;
}

/* ---------- Project Highlights (desktop scroll-driven) ---------- */
#project-highlights {
  height: 400vh;
}
.ph-crossfade {
  transition: opacity 0.35s ease, transform 0.35s ease;
}
.ph-dot {
  width: 8px;
  background-color: rgba(26, 26, 26, 0.2);
  transition: width 0.3s ease, background-color 0.3s ease;
}

/* ---------- Location Highlights ---------- */
.loc-map-bg {
  background: url("../images/location-map.webp") center center / cover
    no-repeat;
}
/* pins are absolutely positioned in px against this frame */
.loc-map-frame {
  position: relative;
}
.loc-pin {
  position: absolute;
  transform: translate(-50%, -50%);
}
/* The project marker isn't interactive (no hover card, no click) — without this,
   its ~64px pulse-ring wrapper sits on top (z-30) and swallows clicks/hovers
   meant for any real POI pin that lands underneath it after decluttering. */
.loc-pin.is-project {
  pointer-events: none;
}

/* ---- numbered summary pins (mobile map -> matching card list below) ---- */
/* Enlarges the tap target to 40x40 via a centered pseudo-element instead of
   padding/margin on .loc-pin itself, which would throw off the translate(-50%,-50%)
   centering math that positions the pin against the calibrated lat/lng point. */
.loc-pin.is-summary::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 40px;
  height: 40px;
  transform: translate(-50%, -50%);
}
.loc-pin-badge {
  position: absolute;
  top: -7px;
  right: -9px;
  width: 16px;
  height: 16px;
  border-radius: 9999px;
  background: #1a1a1a;
  border: 2px solid #fff;
  color: #fff;
  font-family: "Montserrat", sans-serif;
  font-size: 8px;
  font-weight: 700;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}
.loc-summary-card-flash {
  border-color: #1e4620 !important;
  box-shadow: 0 0 0 3px rgba(193, 122, 74, 0.35), 0 10px 24px rgba(0, 0, 0, 0.12) !important;
}
[data-loc-card-name] {
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
[data-loc-card-name]:active {
  transform: scale(0.98);
}

/* ---- off-map edge marker (Chennai International Airport) ---- */
.loc-pin.is-offmap {
  z-index: 28;
}
.loc-pin.is-offmap .loc-dot {
  width: 18px;
  height: 18px;
  background: #fff !important;
  border: 2.5px solid #1e4620;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.28);
}
.loc-offmap-arrow {
  position: absolute;
  left: 50%;
  bottom: 16px;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  pointer-events: none;
  white-space: nowrap;
}
.loc-offmap-arrow svg {
  width: 15px;
  height: 15px;
  display: block;
}
.loc-offmap-arrow span {
  font: 700 8.5px/1 "Montserrat", sans-serif;
  letter-spacing: 0.9px;
  color: #1e4620;
  background: rgba(255, 255, 255, 0.92);
  padding: 3px 7px;
  border-radius: 20px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.14);
  white-space: nowrap;
}
@media (prefers-reduced-motion: no-preference) {
  .loc-pin.is-offmap .loc-offmap-arrow svg {
    animation: loc-nudge 2.4s ease-in-out infinite;
  }
}
@keyframes loc-nudge {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-3px);
  }
}

/* hover cards on right-edge pins flip to open leftwards */
.loc-pin.loc-card-left .loc-card {
  left: auto;
  right: 32px;
}
.loc-pin.loc-card-left .loc-card > div:last-child {
  left: auto;
  right: 0;
  transform: translateX(100%) translateY(-50%) rotate(180deg);
}

@keyframes loc-pulse {
  0%,
  100% {
    transform: scale(1);
    opacity: 0.6;
  }
  50% {
    transform: scale(1.3);
    opacity: 0.2;
  }
}
.loc-pulse-ring {
  animation: loc-pulse 2.5s ease-in-out infinite;
  pointer-events: none;
}
@keyframes loc-pulse-mobile {
  0%,
  100% {
    transform: scale(1);
    opacity: 0.7;
  }
  50% {
    transform: scale(1.4);
    opacity: 0.2;
  }
}
.loc-pulse-ring-mobile {
  animation: loc-pulse-mobile 2.5s ease-in-out infinite;
}
.loc-dot {
  transition: transform 0.2s ease;
}
.loc-pin.is-hovered .loc-dot {
  transform: scale(1.3);
}
/* All POI pins share z-20, so ties break by DOM/array order — whichever pin
   happens to come later can render its dot on top of an open card from an
   earlier one. Jump the hovered pin above every sibling while its card is
   open so the card is never covered by a nearby dot. */
.loc-pin.is-hovered {
  z-index: 40;
}
.loc-card {
  position: absolute;
  left: 32px;
  top: 50%;
  min-width: 0;
  width: 0;
  overflow: hidden;
  transform: translateY(-50%) translateX(-10px) scale(0.95);
  opacity: 0;
  pointer-events: none;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
  transition: opacity 0.2s ease, transform 0.2s ease, min-width 0.2s ease;
  z-index: 20;
}
.loc-pin.is-hovered .loc-card {
  opacity: 1;
  min-width: 280px;
  transform: translateY(-50%) translateX(0) scale(1);
}
.reveal-scale {
  opacity: 0;
  transform: scale(0);
  transition: opacity 0.4s ease, transform 0.4s ease;
}
.reveal-scale.is-visible {
  opacity: 1;
  transform: scale(1);
}

/* ---------- Testimonials mobile carousel ---------- */
#testimonials-mobile-card {
  transition: opacity 0.4s ease, transform 0.4s ease;
}
.testi-dot {
  width: 8px;
  background-color: rgba(26, 26, 26, 0.2);
  transition: width 0.3s ease, background-color 0.3s ease;
}

/* ---------- Form submit feedback ---------- */
.form-feedback {
  display: none;
  font-family: 'Montserrat', sans-serif;
  font-size: 13px;
  border-radius: 8px;
  padding: 10px 14px;
  margin-top: 10px;
}
.form-feedback.is-visible {
  display: block;
}
.form-feedback.is-success {
  background: rgba(34, 139, 34, 0.12);
  color: #1f6b1f;
}
.form-feedback.is-error {
  background: rgba(200, 40, 40, 0.1);
  color: #ff0000;
}

/* ---------- jQuery Validate inline field errors ----------
   jQuery Validate's errorClass ("field-error") is applied to BOTH the
   generated <span> message AND the invalid input/textarea itself (its
   default highlight() behavior) — so these rules must stay split. A bare
   `.field-error{font-size:12px}` here previously matched the input too,
   shrinking its text/line-height and therefore its own rendered height,
   which then made CSS Grid's row-stretch inflate every other field sharing
   that grid row (e.g. the untouched Appointment picker growing taller to
   match a shrunken, error-bearing sibling). Scope the message styling to
   the <span> only; inputs get nothing but the red border. */
span.field-error {
    display: block;
    font-family: 'Montserrat', sans-serif;
    font-size: 9px;
    color: #ff0f0f;
    margin-top: 4px;
    font-weight: bold;
}
form#hero-form span.field-error {
    position: absolute;
    bottom: -15px;
    left: 5px;
}
/* Positioning context for the absolute error span above -- each input in
   #hero-form sits in its own .flex-1.min-w-0 wrapper, which otherwise has
   no position set, so the error would anchor to the next positioned
   ancestor up (the form, or further) instead of sitting under its own
   field. */
#hero-form .flex-1.min-w-0 {
  position: relative;
}
input.field-error,
textarea.field-error {
  border-color: #a02020 !important;
}

/* ---------- Clubhouse card hover reveal ---------- */
#clubhouse-scroll .flex > div > div {
  transition: opacity 0.35s ease, transform 0.4s ease;
}

/* ---------- Building Features: circle reveal on enter-viewport ---------- */
#building-features-img {
  clip-path: circle(10% at 50% 50%);
  transform: scale(1.15);
  transition: clip-path 8s cubic-bezier(0.22, 1, 0.36, 1), transform 8s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: clip-path, transform;
}
#building-features-img.is-open {
  clip-path: circle(150% at 50% 50%);
  transform: scale(1);
}
@media (prefers-reduced-motion: reduce) {
  #building-features-img {
    transition: none;
  }
}

/* ---------- 4-option architecture ---------- */
#page-root {
  min-height: 100vh;
}
template {
  display: none;
}

/* ---------- Design toggle (Option 1-4 switcher) ---------- */
#design-toggle [data-option-pill] {
  position: absolute;
  inset: 0;
  background: #1e4620;
  border-radius: 9999px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
  transition: opacity 0.2s ease;
}
#design-toggle button {
  position: relative;
}
#design-toggle span {
  position: relative;
  z-index: 10;
  transition: color 0.2s ease;
}

/* ---------- Kenyt chat bubble + Book Site Visit tab entrance ---------- */
/* Kenyt injects its own #kenytChatBubble; nudge it up so it clears the
   mobile bottom-cta bar (lg:hidden fixed bar) the same way the old
   chat-widget placeholder used to (bottom-[72px] mobile / bottom-6 desktop). */
div#kenytChatBubble {
  bottom: 24px !important;
}
@media (max-width: 1023px) {
  div#kenytChatBubble {
    bottom: 76px !important;
  }
}
#book-site-visit-tab {
  opacity: 0;
  transition: opacity 0.5s cubic-bezier(0.22, 1, 0.36, 1);
  /* "BOOK A SITE VISIT" in vertical-rl only just fits the old 130px/210px
     box under Chrome's own metrics for the custom Montserrat font, with
     barely any margin — a different rendering engine (this was reported
     from what looks like an actual iPad/Safari screenshot) with slightly
     wider glyph advances, or the brief window before that web font swaps
     in, pushes it over and the text clips. Extra height here is a safety
     margin, not a redesign. */
  height: 150px;
}
@media (min-width: 768px) {
  #book-site-visit-tab {
    height: 230px;
  }
}
/* writing-mode: vertical-rl (previously on the button itself, now removed
   from its class list) renders inconsistently across engines — both the
   text metrics and how flex align-items/justify-content interact with a
   swapped main/cross axis differ browser to browser. Keeping the text in
   normal horizontal flow and rotating the whole span with `transform`
   sidesteps all of that: rotation is plain geometry, universally
   consistent, and the span stays a normal flex child that
   items-center/justify-center on the button centers exactly as it would
   any other content. */
#book-site-visit-tab span {
  transform: rotate(-90deg);
}
#book-site-visit-tab.is-visible {
  opacity: 1;
}

/* Hide the mobile Call Now / Download Brochure bar while a lead form is
   already visible in the viewport, so it doesn't compete with the form. */
#bottom-cta {
  transition: transform 0.3s ease;
  z-index: 9999;
}
#bottom-cta.bottom-cta-hidden {
  transform: translateY(100%);
}

/* ---------- Site visit modal: right-side slide-in drawer, not a centered
   popup. The modal stays display:flex at all times (no `hidden` toggle,
   since display can't transition) and is invisible via opacity + pointer-
   events until .is-open is added; the panel itself slides in/out with a
   translateX transform independent of the backdrop fade. ---------- */
#site-visit-modal {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
#site-visit-modal.is-open {
  opacity: 1;
  pointer-events: auto;
  z-index: 99;
}
#site-visit-modal .book-visit-panel {
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}
#site-visit-modal.is-open .book-visit-panel {
  transform: translateX(0);
}

/* ---------- Book a Site Visit panel: compact resize ----------
   Plain CSS rather than new Tailwind arbitrary classes: this page's
   tailwind.css only ships classes already present elsewhere at build
   time, and text-[22px]/text-[24px]/text-[14px]/text-[11px]/py-3.5/
   gap-1.5 all came back with zero matches when checked -- they would
   have silently done nothing. Higher-specificity plain selectors here
   (id + class, or id + class + tag) beat the existing Tailwind classes
   without needing !important, though it is kept anyway for the same
   belt-and-suspenders reason the rest of this file uses it. */
#site-visit-modal .book-visit-panel {
  max-width: 400px !important;
}
#site-visit-modal .book-visit-panel > div {
  padding: 20px !important;
}
#site-visit-modal .book-visit-panel h2 {
  font-size: 22px !important;
}
#site-visit-modal .book-visit-panel > div > div:first-child {
  margin-bottom: 18px !important;
}
#site-visit-modal .book-visit-panel > div > div:first-child button svg {
  width: 18px !important;
  height: 18px !important;
}
#site-visit-modal .book-visit-panel .grid.grid-cols-3 {
  margin-bottom: 18px !important;
}
#site-visit-modal .book-visit-panel .grid.grid-cols-3 svg {
  width: 20px !important;
  height: 20px !important;
}
#site-visit-modal .book-visit-panel .grid.grid-cols-3 span {
  font-size: 11px !important;
}
#site-visit-modal .book-visit-panel input[type="text"],
#site-visit-modal .book-visit-panel input[type="tel"],
#site-visit-modal .book-visit-panel input[type="email"] {
  padding-top: 12px !important;
  padding-bottom: 12px !important;
  font-size: 14px !important;
}
#site-visit-modal .book-visit-panel label {
  margin-top: 14px !important;
}
#site-visit-modal .book-visit-panel label p {
  font-size: 11px !important;
}
#site-visit-modal .book-visit-panel button[type="submit"] {
  margin-top: 18px !important;
  padding-top: 12px !important;
  padding-bottom: 12px !important;
  font-size: 14px !important;
}
@media (min-width: 768px) {
  #site-visit-modal .book-visit-panel > div {
    padding: 24px !important;
  }
  #site-visit-modal .book-visit-panel h2 {
    font-size: 24px !important;
  }
  #site-visit-modal .book-visit-panel .grid.grid-cols-3 span,
  #site-visit-modal .book-visit-panel label p {
    font-size: 12px !important;
  }
}
#site-visit-modal [data-agree-toggle] svg {
  visibility: hidden;
}
#site-visit-modal [data-agree-toggle].is-agreed svg {
  visibility: visible;
}

/* intl-tel-input's country dropdown (appended to <body> via
   dropdownContainer, so it escapes clipping ancestors) has no width rule
   of its own outside of a "mobile mode" the library never enables here —
   it just shrink-to-fits the longest country name ("United Arab
   Emirates..."), which comes out ~360px, wider than the phone field it's
   anchored to. That's always spilled past the input; it only became
   glaring once the site-visit drawer moved the field close to the right
   edge of the screen. Capping the width forces the long names to wrap
   instead (list already has white-space:normal) so it stays inside the
   field's field of view. */
.iti--container {
  max-width: min(300px, calc(100vw - 32px));
}

/* Unit Plan prev/next arrows: on mobile they sit below the floor-plan
   image instead of overlaid on top of it (where they cover plan details
   on a narrow screen). Desktop keeps the original absolute-over-image
   layout untouched.
   Sitting in normal flow means they now scroll through the same screen
   band as #bottom-cta (position:fixed, z-50, always visible on this
   section since it has no lead form) — without their own stacking
   context they'd render underneath it and look half cut-off while
   scrolling past. position:relative + a higher z-index keeps them fully
   visible/clickable through that overlap. */
/* Below 1024px (phones AND tablets) the arrows sit in a centred row under
   the plans, like the other sections' arrows (e.g. data-pricing-prev); only
   the position changes, the buttons keep their own sizes. 1023.98 so a
   fractional 1023.x viewport, which misses both max-width:1023px and lg
   min-width:1024px, is covered too. */
@media (max-width: 1023.98px) {
  .unit-plan-nav-wrap {
    display: flex;
    justify-content: center;
    gap: 24px;
    margin-top: 16px;
    padding-top: 30px;
    position: relative;
    z-index: 51;
  }
  .unit-plan-nav-wrap button {
    position: static;
    transform: none;
  }
}

/* On short viewports (e.g. a browser window resized down to ~550px tall)
   the form's normal spacing adds up to more than fits on screen, pushing
   the submit button below the fold with no visible cue that the panel
   still scrolls. Tightening the vertical rhythm here keeps the whole form
   on screen without needing an internal scroll. */
@media (max-height: 620px) {
  #site-visit-modal .book-visit-panel {
    max-height: 96vh;
  }
  #site-visit-modal .book-visit-panel > div {
    padding-top: 16px;
    padding-bottom: 16px;
  }
  #site-visit-modal .book-visit-panel > div > div:first-child {
    margin-bottom: 10px;
  }
  #site-visit-modal .book-visit-panel .grid.grid-cols-3 {
    margin-bottom: 10px;
  }
  #site-visit-modal input[type="text"],
  #site-visit-modal input[type="tel"],
  #site-visit-modal input[type="email"] {
    padding-top: 8px;
    padding-bottom: 8px;
  }
  #site-visit-modal label {
    margin-top: 10px;
  }
  #site-visit-modal button[type="submit"] {
    margin-top: 10px;
    padding-top: 10px;
    padding-bottom: 10px;
  }
}

/* ---------- Hero 2 (Option 2): static image, no reveal animation ---------- */

/* ---------- Amenities carousel (Option 1/3) ---------- */
#amenities [data-amenities-title-wrap],
#amenities [data-amenities-dots],
#amenities [data-amenities-prev],
#amenities [data-amenities-next] {
  opacity: 0;
  transition: opacity 0.3s ease;
}
#amenities [data-amenities-title-wrap].is-visible {
  opacity: 1;
  transform: translateY(0);
}
#amenities [data-amenities-dots].is-visible,
#amenities [data-amenities-prev].is-visible,
#amenities [data-amenities-next].is-visible {
  opacity: 1;
}
.amenities-dot {
  width: 6px;
  background-color: rgba(255, 251, 245, 0.4);
  transition: width 0.3s ease, background-color 0.3s ease;
}
.amenities-dot:hover {
  background-color: rgba(255, 251, 245, 0.6);
}

/* ---------- Amenities 2 (Option 2/4): hover-expand panels ---------- */
#amenities2 [data-am2-panel],
#project-highlights-section [data-am2-panel] {
  transition: flex-grow 0.6s cubic-bezier(0.22, 1, 0.36, 1);
  flex-basis: 0;
  min-width: 0;
}
#amenities2-mobile-card,
#project-highlights-section-mobile-card {
  transition: opacity 0.4s ease;
}

/* ---------- Project Highlights 2 (Option 2/3/4): accordion + slider ---------- */
#project-highlights2 [data-ph2-item] {
  transition: border-color 0.3s ease;
}
#project-highlights2 [data-ph2-panel] {
  overflow: hidden;
  transition: height 0.4s ease, opacity 0.4s ease;
}
#project-highlights2 [data-ph2-image],
#project-highlights2 [data-ph2-mobile-image] {
  transition: opacity 0.5s ease;
}
#project-highlights2 [data-ph2-num],
#project-highlights2 [data-ph2-title] {
  transition: color 0.2s ease;
}

/* ---------- Location 2 (Option 2): accordion ---------- */
#location-highlights2 [data-loc2-panel] {
  overflow: hidden;
  transition: height 0.35s ease, opacity 0.35s ease;
}
#location-highlights2 [data-loc2-chevron] {
  transition: transform 0.3s ease, color 0.2s ease;
}
#location-highlights2 [data-loc2-title] {
  transition: color 0.2s ease;
}

/* ---------- Clubhouse 2 (Option 2/4): infinite marquee ---------- */
.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee-scroll 28s linear infinite;
  /* Force an immediate GPU layer so the animation starts painting on load
     instead of waiting for a scroll/repaint to kick the compositor. */
  will-change: transform;
  transform: translateZ(0);
}
.marquee-track.marquee-reverse {
  animation-direction: reverse;
}
@keyframes marquee-scroll {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}
.marquee-tile {
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
}
.marquee-tile img {
  transition: transform 0.7s ease;
}
.marquee-tile:hover img {
  transform: scale(1.1);
}
.marquee-tile .marquee-label {
  opacity: 1;
  transition: opacity 0.3s ease;
}
@media (min-width: 768px) {
  .marquee-tile .marquee-overlay {
    background-color: transparent;
    transition: background-color 0.3s ease;
  }
  .marquee-tile:hover .marquee-overlay {
    background-color: rgba(0, 0, 0, 0.45);
  }
  .marquee-tile .marquee-label {
    opacity: 0;
  }
  .marquee-tile:hover .marquee-label {
    opacity: 1;
  }
}

/* ---------- Gallery 2 (Option 2) ---------- */
#gallery2 [data-g2-tabbtn]::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: #2b2b2b;
  transform: scaleX(0);
  transition: transform 0.25s ease;
}
#gallery2 [data-g2-tabbtn].is-active::after {
  transform: scaleX(1);
}
#gallery2 [data-g2-item] img {
  transition: transform 0.7s ease;
}
#gallery2 [data-g2-item]:hover img {
  transform: scale(1.1);
}
#gallery2 [data-g2-item] .g2-overlay {
  transition: background-color 0.3s ease;
}
#gallery2 [data-g2-item]:hover .g2-overlay {
  background-color: rgba(0, 0, 0, 0.25);
}
#gallery2 [data-g2-item] .g2-play-circle {
  transition: transform 0.3s ease;
}
#gallery2 [data-g2-item]:hover .g2-play-circle {
  transform: scale(1.1);
}

/* ---------- Master Plan 2 (Option 2) ---------- */
#master-plan2 [data-mp2-tabbtn] {
  position: relative;
}
#master-plan2 [data-mp2-tabbtn]::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1.5px;
  background: #2b2b2b;
  transform: scaleX(0);
  transition: transform 0.3s ease;
}
#master-plan2 [data-mp2-tabbtn].is-active::after {
  transform: scaleX(1);
}

/* ---------- Pricing 2 card hover (Option 2) ---------- */
#pricing2 [data-price2-card] {
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
#pricing2 [data-price2-card]:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 38px rgba(122, 55, 20, 0.2);
}
#pricing2 [data-price2-card] button {
  transition: background-color 0.18s ease;
}
#pricing2 [data-price2-card] button:hover {
  background-color: #153417;
}

/* ---------- Project Highlights (Option 1): mosaic image ---------- */
.ph-mosaic-wrap {
  height: 480px;
}

/* ---------- Short-viewport support (landscape phones, short windows) ----------
   These sections size themselves off 100vh/height:calc(100vh-64px), which gets
   cramped once the viewport itself is short rather than narrow. Cap them to a
   fixed height instead of letting them shrink to whatever the viewport allows. */
@media (max-height: 600px) {
  .lg\:h-\[calc\(100vh-64px\)\] {
    height: 460px;
  }
  .lg\:min-h-\[440px\] {
    min-height: 380px;
  }
  .lg\:max-h-\[640px\] {
    max-height: 520px;
  }

  /* Hero banner card + form (all options): at ~551px-tall viewports the
     bottom-anchored hero-form overlaps the card's meta line ("200 Ft
     Radial Road..." / "2 & 3 Bed Premium Homes"). Shrink the card's
     padding/divider spacing so it sits shorter, and shrink the form's
     input text/padding so the form itself takes less height. */
  #hero-banner-b .py-8 {
    padding-top: 16px;
    padding-bottom: 16px;
  }
  #hero-banner-b .md\:py-11 {
    padding-top: 24px;
    padding-bottom: 24px;
  }
  #hero-banner-b .mt-6 {
    margin-top: 10px;
  }
  #hero-banner-b .pt-5 {
    padding-top: 10px;
  }
  #hero-form.py-3 {
    padding-top: 6px;
    padding-bottom: 6px;
  }
  #hero-form .py-3\.5 {
    padding-top: 6px;
    padding-bottom: 6px;
  }
  #hero-form .text-\[15px\] {
    font-size: 12px;
  }
  #project-highlights .h-screen {
    height: 480px;
  }
  #project-highlights .ph-mosaic-wrap {
    height: 260px;
  }
  #project-highlights .gap-6 {
    gap: 12px;
  }
  #project-highlights .gap-10 {
    gap: 20px;
  }

  /* Hero marquee strip (all options): with the hero banner already clamped
     to 460px above, only ~27px of vertical room is left before the 551px
     viewport target ends. The strip's own py-3 (24px) padding plus its text
     line pushes it past that, clipping the bottom edge. Tighten padding so
     it fits comfortably instead of just barely. */
  #hero-marquee-strip.py-3 {
    padding-top: 4px;
    padding-bottom: 4px;
  }

  /* About Us (Options 1, 3, 4): tighten spacing so the block fits without
     needing a scroll on short windows. */
  #about-us {
    padding-top: 32px;
    padding-bottom: 32px;
  }
  #about-us .lg\:h-\[380px\] {
    height: 220px;
  }
  #about-us .lg\:gap-5 {
    gap: 10px;
  }
  #about-us .lg\:leading-\[1\.55\] {
    line-height: 1.3;
  }

  /* Building Features (all options): the showcase image is w-full/h-auto
     (sized by its own aspect ratio), so on short viewports it can dwarf the
     rest of the page. Cap it and let object-cover (already applied) crop it. */
  #building-features .lg\:mb-20 {
    margin-bottom: 16px;
  }
  #building-features-img {
    height: 530px;
  }

  /* Amenities / Gym (Options 2 & 4 grid layout). Option 1/3's carousel is
     already covered by the .lg\:h-\[calc\(100vh-64px\)\] rule above.
     Tightens the image frame heights so the section fits under the fixed
     64px nav on ~551px-tall viewports (1280x551 target). */
  #amenities2 .h-\[520px\],
  #project-highlights-section .h-\[520px\] {
    height: 340px;
  }
  #amenities2 .md\:h-\[620px\],
  #project-highlights-section .md\:h-\[620px\] {
    height: 360px;
  }
  #amenities2 .h-\[420px\],
  #project-highlights-section .h-\[420px\] {
    height: 320px;
  }

  /* Location map (Options 1, 3, 4: static map image, byte-identical markup).
     The frame was being squeezed to only 300/340px tall here, cropping out
     ~30% of the image height and making the pin cluster look wrong even
     though the underlying calibrated positions are correct. Tighten the
     section's own padding/heading gap so more of the freed space goes to
     the map itself instead. */
  #location-highlights .lg\:py-16 {
    padding-top: 14px;
    padding-bottom: 14px;
  }
  #location-highlights .lg\:mb-14 {
    margin-bottom: 12px;
  }
  #location-highlights .h-\[500px\] {
    height: 320px;
  }
  #location-highlights .xl\:h-\[600px\] {
    height: 360px;
  }
  /* option4-stage's Leaflet map adds a category-tabs bar above the frame that
     didn't exist when the budget above was first tuned — tighten its margin
     too so it doesn't push the map further out of the viewport. */
  #location-map-tabs {
    margin-bottom: 8px;
  }
  #location-map-tabs .real-loc-tab {
    padding-top: 5px;
    padding-bottom: 5px;
  }

  /* Location map + accordion (Option 2: real map iframe). Tighten this one
     specifically for ~551px-tall viewports. */
  #location-highlights2 {
    padding-top: 32px;
    padding-bottom: 32px;
  }
  #location-highlights2 .lg\:gap-12 {
    gap: 24px;
  }
  #location-highlights2 .lg\:h-full {
    height: 340px;
  }
  #location-highlights2 .lg\:min-h-\[420px\] {
    min-height: 260px;
  }

  /* About Us images (Option 4 / option4-stage only — after the permanent
     resize in style rule above, these use lg:h-[260px]/lg:gap-3, distinct
     from Options 1/3's still-original lg:h-[380px]/lg:gap-5, so this scopes
     cleanly without touching them). Taller images, narrower side columns so
     the text column gets more room, for ~551px-tall viewports specifically. */
  #about-us .lg\:h-\[260px\] {
    height: 300px;
  }
  #about-us .lg\:grid-cols-\[1fr_1\.5fr_1fr\] {
    grid-template-columns: 0.8fr 1.8fr 0.8fr;
  }
}

/* About Us (all options): at tablet widths (767-1024px) the third grid
   column is too narrow for the .lg:grid-cols-[1fr_1.5fr_1fr] split — Tailwind
   itself only applies that class from 1024px up, so this range otherwise
   falls back to the unprefixed single-column layout. Force 2 columns here
   instead. */
@media (min-width: 767px) and (max-width: 1024px) {
  #about-us .lg\:grid-cols-\[1fr_1\.5fr_1fr\] {
    grid-template-columns: 1fr 1fr;
  }
}

/* About Us (all options): below 767px, explicit single column — Tailwind's
   own unprefixed grid-cols-1 already does this, but stated here directly so
   this element's three breakpoints (mobile/tablet/lg) are defined in one
   place rather than two relying on the base Tailwind class. */
@media (max-width: 766px) {
  #about-us .lg\:grid-cols-\[1fr_1\.5fr_1fr\] {
    grid-template-columns: 1fr;
  }
}

/* ---------- Appointment date/time picker (Schedule a Site Visit) ---------- */
#appt-picker-wrap {
  position: relative;
}
.appt-dropdown {
  display: none;
  position: absolute;
  bottom: calc(100% + 6px);
  left: 0;
  z-index: 1050;
  background: #fff;
  border: 1px solid #e5ddd0;
  border-radius: 10px;
  box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.15);
  width: 290px;
  padding: 14px;
  font-family: 'Montserrat', sans-serif;
}
.appt-dropdown.open {
  display: block;
}
.appt-cal-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
  font-weight: 600;
  font-size: 14px;
  color: #14291a;
}
.appt-nav-btn {
  background: none;
  border: 1px solid #e5ddd0;
  border-radius: 4px;
  width: 28px;
  height: 28px;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  color: #14291a;
  display: flex;
  align-items: center;
  justify-content: center;
}
.appt-nav-btn:hover {
  background: #fdf8ef;
}
.appt-dow-row {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  margin-bottom: 4px;
}
.appt-dow-row span {
  text-align: center;
  font-size: 11px;
  font-weight: 600;
  color: #888;
  padding: 2px 0;
}
.appt-days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
}
.appt-day {
  text-align: center;
  padding: 6px 0;
  font-size: 12px;
  border-radius: 4px;
  cursor: pointer;
  color: #333;
}
.appt-day:hover:not(.appt-day-disabled):not(.appt-day-empty) {
  background: #fdf8ef;
  color: #c19f40;
}
.appt-day-selected {
  background: #c19f40 !important;
  color: #14291a !important;
  border-radius: 4px;
  font-weight: 600;
}
.appt-day-today {
  font-weight: 700;
  color: #c19f40;
  border: 1.5px solid #c19f40;
  border-radius: 4px;
}
.appt-day-disabled {
  color: #ccc;
  cursor: default;
}
.appt-day-empty {
  cursor: default;
}
.appt-time-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
  font-size: 13px;
  font-weight: 600;
  color: #14291a;
}
.appt-back-btn {
  background: none;
  border: none;
  color: #c19f40;
  font-size: 12px;
  cursor: pointer;
  padding: 0;
}
.appt-back-btn:hover {
  text-decoration: underline;
}
.appt-slots {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 5px;
  max-height: 220px;
  overflow-y: auto;
}
.appt-slot {
  padding: 6px 4px;
  text-align: center;
  font-size: 11px;
  border: 1px solid #e5ddd0;
  border-radius: 4px;
  cursor: pointer;
  color: #333;
  white-space: nowrap;
}
.appt-slot:hover {
  background: #fdf8ef;
  border-color: #c19f40;
  color: #c19f40;
}
.appt-slot-selected {
  background: #c19f40;
  color: #14291a;
  border-color: #c19f40;
  font-weight: 600;
}
.appt-slot-disabled {
  color: #ccc;
  background: #f9f9f9;
  border-color: #eee;
  cursor: default;
  pointer-events: none;
}

/* ---------- Gallery hover name label (matches Clubhouse Facilities style) ---------- */
.gallery-hover-name {
  opacity: 0;
  transition: opacity 0.3s ease;
}
.group:hover .gallery-hover-name {
  opacity: 1;
}

/* ---------- Real location map (Leaflet + Google tiles) ---------- */
#location-map {
  background: #e5e3df; /* Google Maps' own idle background, avoids a flash of white while tiles load */
}
.real-loc-marker {
  background: transparent;
  border: none;
}
.real-loc-dot {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #ff0000;
  border: 2px solid #fff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
}
.real-loc-dot svg {
  width: 12px;
  height: 12px;
}
.real-loc-dot--project {
  width: 26px;
  height: 26px;
  background: #14291a;
  border: 3px solid #c19f40;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.4);
}
.real-loc-dot--project svg {
  width: 14px;
  height: 14px;
}
.real-loc-pulse {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 46px;
  height: 46px;
  margin: -23px 0 0 -23px;
  border-radius: 50%;
  background: rgba(193, 122, 74, 0.25);
  border: 2px solid rgba(193, 122, 74, 0.4);
  animation: loc-pulse 2.5s ease-in-out infinite;
}
.real-loc-tooltip {
  background: #14291a !important;
  color: #fffbf5 !important;
  border: none !important;
  font-family: 'Montserrat', sans-serif;
  font-size: 11px !important;
  font-weight: 700;
  padding: 4px 10px !important;
  border-radius: 20px !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25) !important;
}
.real-loc-tooltip::before {
  border-top-color: #14291a !important;
}

/* ---------- Project marker place card (mimics Google's native business-listing popup) ---------- */
.real-loc-place-popup .leaflet-popup-content-wrapper {
  border-radius: 8px;
  padding: 0;
}
.real-loc-place-popup .leaflet-popup-content {
  margin: 0;
  width: auto !important;
}
.real-loc-place-card {
  font-family: Roboto, Arial, sans-serif;
  padding: 14px 16px;
  min-width: 200px;
}
.real-loc-place-card h3 {
  margin: 0 0 4px;
  font-size: 16px;
  font-weight: 500;
  color: #202124;
}
.real-loc-place-address {
  margin: 0 0 6px;
  font-size: 13px;
  line-height: 1.4;
  color: #202124;
}
.real-loc-place-rating {
  margin: 0 0 12px;
  font-size: 13px;
  color: #202124;
}
.real-loc-star {
  color: #fbbc04;
}
.real-loc-place-rating a {
  color: #1a73e8;
  text-decoration: none;
}
.real-loc-place-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}
.real-loc-place-open {
  flex: 1;
  text-align: center;
  background: #1a73e8;
  color: #fff !important;
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  padding: 9px 14px;
  border-radius: 20px;
}
.real-loc-place-open:hover {
  background: #1765cc;
}
.real-loc-place-dir {
  width: 34px;
  height: 34px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #e8f0fe;
  color: #1a73e8 !important;
  font-size: 16px;
  text-decoration: none;
}
.real-loc-place-dir:hover {
  background: #d2e3fc;
}

/* ---------- Location map category tabs (pill filters) ---------- */
.real-loc-tab {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: 'Montserrat', sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: #1a1a1a;
  background: #fff;
  border: 1.5px solid #e0d9cc;
  border-radius: 999px;
  padding: 7px 14px;
  cursor: pointer;
  opacity: 0.5;
  transition: opacity 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.real-loc-tab.is-active {
  opacity: 1;
  border-color: var(--tab-color, #1e4620);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
}
.real-loc-tab:hover {
  opacity: 0.85;
}
.real-loc-tab.is-active:hover {
  opacity: 1;
}
.real-loc-tab-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--tab-color, #1e4620);
  flex-shrink: 0;
}
.real-loc-tab-count {
  color: var(--tab-color, #1e4620);
  font-weight: 700;
}

/* ---------- Magnific Popup caption fix ----------
   Our captions ("Multi Court — Artistic Impression. Not an Actual Site
   Image.") are far longer than the short titles Magnific Popup expects, so
   the stock layout's title + counter (absolutely positioned in the same
   corner) overlap when the title wraps to 2 lines.

   position:static on the bar can't work — it adds real document-flow height
   below the image, which Magnific's JS doesn't know about when it sizes the
   image to fit the viewport, so the caption spills past the dimmed backdrop
   into the page below. And a scrim overlaid on the image bottom (the
   previous fix here) covered plan details on the unit-plan lightboxes.

   Fix: use Magnific's own reserved-space trick. The image keeps bottom
   padding of its own (stock Magnific reserves 40px this way — the sizing
   math includes the img's padding), and the bar is absolutely positioned
   into that padding band below the visible image: top:100% is the bottom of
   .mfp-content (which includes the padding), and the negative margin pulls
   the bar up into the reserved band. Title and counter stack as separate
   lines. Magnific's own CSS loads dynamically at runtime (after this
   stylesheet), so !important is needed to still win. */
.mfp-bottom-bar {
  position: absolute !important;
  left: 0 !important;
  right: 0 !important;
  top: 100% !important;
  bottom: auto !important;
  margin-top: -68px !important;
  background: none;
  padding: 10px 14px 0 !important;
}
.mfp-title {
  padding-right: 0 !important;
  color: #f3f3f3 !important;
}
.mfp-counter {
  position: static !important;
  display: block !important;
  top: auto !important;
  right: auto !important;
  margin-top: 6px !important;
  text-align: left !important;
  color: rgba(255, 255, 255, 0.75) !important;
}
/* img.mfp-img reserves 40px of top AND bottom padding by default. Top
   clearance isn't needed (the close button has its own row), and 40px is
   too little for our stacked title + counter, so: no top padding, 76px
   bottom padding as the caption band. The .mfp-figure:after shadow layer
   (background:#444) must be inset to match, or it shows as a pale strip
   in the padding zones.

   max-width gives every popup the same side gap the Master Plan lightbox
   already had for free (it happens to be height-constrained by mlp-zoom.css,
   which narrows it well short of the viewport) -- a wide gallery photo has
   no such constraint and was going edge-to-edge with none. */
img.mfp-img {
  height: 80vh !important;
  padding: 0 0 76px !important;
  max-width: calc(100vw - 200px) !important;
}
@media (max-width: 767px) {
  img.mfp-img {
    height: auto !important;
    max-width: calc(100vw - 100px) !important;
  }
}
.mfp-figure:after {
  top: 0 !important;
  bottom: 76px !important;
}
/* The master-plan lightbox (.mfp-mlp) hides the bottom bar entirely and
   zooms via transforms on the image — padding would sit inside the
   transformed box and drift the picture on every zoom step, so it gets
   no caption band. */
.mfp-mlp img.mfp-img {
  padding: 0 !important;
}
.mfp-mlp .mfp-figure:after {
  bottom: 0 !important;
}

/* intl-tel-input's own iti.css loads before this file, so no !important
   needed to win here -- rounds the flag/dial-code box's left corners to
   match the pill-style phone inputs it now sits inside (hero form,
   callback modal). */
.iti__selected-flag {
  border-radius: 10px 0px 0px 10px;
}
/* site-visit-form's phone input isn't the pill style the rule above was
   written for, so it overrides back to square corners for this form only. */
form#site-visit-form .iti__selected-flag {
  border-radius: 0px;
}
/* iti.css gives .iti__country-list no width at all (white-space: nowrap,
   sized to its own widest row -- "United Arab Emirates (الإمارات
   العربية المتحدة) +971" is the culprit), so it
   overflows past its own .iti wrapper (and the modal/form around it)
   instead of matching the phone input it drops down from. .iti__country-
   list is position:absolute inside .iti (position:relative), so width:
   100% ties it to that input's own rendered width at every breakpoint --
   same fix .iti-mobile already gets natively, just not below that. white-
   space: normal lets long country names wrap onto a second line instead
   of forcing the box wider again; iti.css already does this under 500px
   on its own, this just makes it universal so nothing depends on that
   breakpoint any more. */
.iti__country-list {
  width: 100% !important;
  white-space: normal !important;
}
/* Mobile: intl-tel-input v18 opens the country list as a fixed popup that
   runs from 30px below the top to 30px above the bottom of the screen
   (.iti-mobile .iti--container + list max-height:100%), covering the whole
   form. Let it size to its content instead, capped at half the screen;
   the list still scrolls inside. */
.iti-mobile .iti--container {
  bottom: auto;
}
.iti-mobile .iti__country-list {
  max-height: 50vh;
}
/* The 76px caption band is part of .mfp-content, so its midpoint (where
   Magnific hangs the gallery arrows: top 50%, stock margin-top -55px)
   sits 38px below the visible image's own center — noticeably low on
   short mobile images. Pull the arrows up by half the band. */
.mfp-arrow {
  margin-top: -93px !important;
}
/* Magnific's own CSS gives left/right different transform-origins
   (0 0 for left, 100% i.e. 100% 50% for right) under the shared
   scale(0.75), so the left arrow shrinks toward its top-left corner while
   the right one shrinks from its vertical center -- the two end up sitting
   at visibly different heights even though both use the same top/margin-top
   above. Centering both removes the drift. */
.mfp-arrow-left,
.mfp-arrow-right {
  transform-origin: center center !important;
}

/* Mobile browsers resolve height:100% on a fixed element (Magnific's stock
   .mfp-bg / .mfp-wrap) against a layout viewport that doesn't shrink when
   the address bar is showing, so the dark backdrop falls short of the real
   visible screen and page content shows through underneath. 100dvh tracks
   the actual visible viewport; the plain 100vh above it is the fallback for
   browsers that don't support dvh. */
/* .mfp-bg,
.mfp-wrap {
  height: 100vh !important;
  height: 100dvh !important;
} */

/* Privacy Policy/Terms links live inside #site-visit-modal and #brochure-modal
   (both z-[60]), but the policy modal itself was only z-50 — opening it from
   inside either of those put it behind the modal you opened it from. ID
   selector beats the .z-50 utility class on specificity, no !important needed. */
#policy-modal {
  z-index: 70;
}

/* The master plan lightbox (opened with mainClass: "mfp-mlp") shows the same
   transparent-background webp used inline, so on Magnific's near-black
   backdrop the plan's dark labels would sit on dark. Paint the image itself
   the section's cream so it reads exactly like the inline version. */
.mfp-mlp img.mfp-img {
  background: #fffbf5;
}

/* ---------- Magnific Popup close button ----------
   Sits over the image's own top-right corner as a round brand-coloured badge
   rather than the stock bare glyph floated above the frame. Three stock rules
   have to be beaten, and Magnific's CSS loads at runtime after this sheet, so
   every declaration needs !important:
     - .mfp-close { width:44px; padding:0 0 18px 10px; opacity:.65 } - the
       asymmetric padding pushes the glyph off-centre once there's a visible
       background behind it, so padding resets to 0 and line-height does the
       vertical centring instead.
     - .mfp-image-holder .mfp-close { width:100%; right:-6px; text-align:right }
       - a full-bleed hit area, which as a styled badge would paint a bar across
       the whole image top; pinned back to a square box inset from the corner.
   Radius is 9999px, the CSS-practical equivalent of the design's
   3.40282e38px "fully rounded" (max 32-bit float): both round a 38px box to a
   circle, but a real float-max length is clamped unpredictably per engine. */
.mfp-image-holder .mfp-close {
  top: -40px !important;
  right: 0px !important;
  left: auto !important;
  width: 38px !important;
  height: 38px !important;
  line-height: 38px !important;
  padding: 0 !important;
  margin: 0 !important;
  text-align: center !important;
  background: #1e4620 !important;
  color: #fff !important;
  border-radius: 9999px !important;
  opacity: 1 !important;
  font-size: 26px !important;
  transition: background-color 0.2s ease;
}
.mfp-image-holder .mfp-close:hover,
.mfp-image-holder .mfp-close:focus {
  background: #a9663a !important;
}

/* On phones the image fills nearly the full width, so a badge inset into its
   top-right corner covers actual plan/photo content. Lift it clear of the
   frame onto the backdrop instead. Safe despite img.mfp-img having its stock
   40px padding removed: Magnific fits the image to the viewport, and at this
   width these landscape assets are width-constrained, so the space above the
   frame is free. 767px matches the max-width breakpoint already used above
   (Tailwind's md boundary, the same split the markup's md: classes use). */
@media (max-width: 767px) {
  .mfp-image-holder .mfp-close {
    top: -35px !important;
    width: 30px !important;
    height: 30px !important;
    line-height: 30px !important;
    font-size: 20px !important;
  }
}

/* Unit Plan: two plans per tab, side by side on md+ (option4 / option4-stage) */
@media (min-width: 768px) {
  .unit-plan-pair-img {
    width: 50%;
    max-width: 440px;
  }
}

/* Unit Plan arrows on desktop: the two side-by-side plans now fill the
   whole 900px box, so the overlaid arrows covered plan details. Push
   them just outside the box edges; the min() clamp slides them back
   inward on in-between viewport widths instead of past the screen edge. */
@media (min-width: 768px) {
  #master-plan [data-unit-prev] {
    left: calc(-1 * min(64px, (100vw - 932px) / 2));
  }
  #master-plan [data-unit-next] {
    right: calc(-1 * min(64px, (100vw - 932px) / 2));
  }
}

/* Unit Plan on mobile: the two plans per tab become a horizontal
   swipe slider (one plan per view) instead of stacking. Slides are 94%
   wide so a sliver of the next plan peeks in as the swipe cue — there
   are no dot indicators. !important is needed to beat the Tailwind
   flex-col/justify-center utilities already on the element. */
@media (max-width: 767px) {
  .unit-plan-slider {
    flex-direction: row !important;
    justify-content: flex-start !important;
    align-items: center;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .unit-plan-slider::-webkit-scrollbar {
    display: none;
  }
  .unit-plan-slider .unit-plan-pair-img {
    flex: 0 0 94%;
    width: 94%;
    scroll-snap-align: start;
  }
}

/* Hero title card (option4 + option4-stage — #hero-title-card exists in
   both pages' markup, so no separate page-scoping needed here). On mobile
   the dark translucent card + blur reads heavy against the hero photo;
   drop both and left-align the text instead. */
@media (max-width: 767px) {
  #hero-title-card {
    background: none;
    --tw-backdrop-blur: 0px;
    text-align: left;
  }
  /* option4 only — #hero-title-wrap only exists in that page's markup.
     Anchors the (now left-aligned, no-card) text to the bottom of the hero
     instead of vertical-centering it. */
  #hero-title-wrap {
    align-items: flex-end;
  }
  /* #hero-title-wrap now exists on both pages' wrapper divs, so this also
     reaches option4-stage — let the card's text span the full hero width
     with its own edge padding, now that it's no longer a fixed-width card
     floating over the photo. option4-stage's card-restore rule below sets
     background/blur/text-align back, but deliberately leaves width/padding
     to this rule rather than restating them, since the values are the same
     on both pages. */
  #hero-title-wrap #hero-title-card {
    width: 100%;
    padding: 0px 20px 40px;
  }

}

.chat360__btn-container.chat360__btn-visible.chatbot-up {
    bottom: 120px !important;
}
.chat360__btn-container.chat360__btn-visible {
    bottom: 50px !important;
}

@media (max-width: 767px) {
  .chat360__btn-container.chat360__btn-visible.chatbot-up {
    bottom: 110px !important;
  }
}

/* Mobile gallery/popup arrows sit flush at the viewport edge (Magnific's
   own left:0/right:0), which puts their visible triangle inside the
   image's own side gutter and reads as touching/overlapping the image on
   narrow screens. Nudging each button past the edge restores a visible
   gap without moving the image itself. */
@media (max-width: 767px) {
  .mfp-arrow-left {
    left: -10px !important;
  }
  .mfp-arrow-right {
    right: -10px !important;
  }
}

/* About Maduram's circular logo badge is sized via inline style
   (150x150), which beats any external rule without !important. Smaller on
   mobile so it doesn't crowd the stat cards next to it. */
@media (max-width: 767px) {
  #about-maduram .rounded-full {
    width: 100px !important;
    height: 100px !important;
  }
}

@media (max-width: 767px) {
  span.field-error {
    font-size: 12px;
  }
}

/* #pricing-owl cards carry their shadow via inline style, so !important is
   needed to beat it. Dropped on mobile only -- the shadow reads fine on a
   full card sitting in open space, but under Owl's snap-scroll strip the
   next card's edge peeks in right next to it, and the shadow just muddies
   that seam. */
@media (max-width: 767px) {
  #pricing-owl .rounded-2xl.min-w-\[80\%\] {
    box-shadow: none !important;
  }
}

/* #book-site-visit-tab: shrunk a bit from its original 28x130 / 48x210.
   New sizes aren't in this page's compiled tailwind.css (checked --
   w-[24px]/h-[110px]/w-[42px]/h-[180px]/text-[8px]/text-[11px] all came
   back with zero matches), so plain CSS instead of new arbitrary classes. */
#book-site-visit-tab {
  width: 32px !important;
  height: 170px !important;
}
#book-site-visit-tab span {
  font-size: 12px !important;
  letter-spacing: 1.5px !important;
}
@media (min-width: 768px) {
  #book-site-visit-tab {
    width: 42px !important;
    height: 180px !important;
  }
  #book-site-visit-tab span {
    font-size: 11px !important;
    letter-spacing: 2px !important;
  }
}

/* #about-us's third image column uses Tailwind's lg:block, whose min-width:
   1024px breakpoint is inclusive -- it shows up right at exactly 1024px,
   not just above it. Forces it to stay hidden through 1024px and only
   appear from 1025px, one pixel past where Tailwind's own breakpoint
   already kicks in. */
@media (max-width: 1024px) {
  #about-us .order-3 {
    display: none !important;
  }
}

/* Header nav links, desktop CTA group, and the mobile hamburger group all
   switch on Tailwind's lg: breakpoint (min-width: 1024px, inclusive) --
   same edge case as #about-us .order-3 above: at exactly 1024px the
   desktop pair was already showing instead of staying hidden through that
   width. Attribute-contains selectors instead of the compiled Tailwind
   class names (avoids re-deriving their escaped :/[ ] selector syntax)
   matched against a distinctive, unique substring of each element's own
   class list. Mobile group is flipped the same amount so exactly 1024px
   still shows ONE nav, not neither. */
@media (max-width: 1024px) {
  [class*="xl:gap-5 items-center text-[12.5px]"],
  [class*="items-center gap-2.5 shrink-0"] {
    display: none !important;
  }
  [class*="lg:hidden flex items-center gap-3"] {
    display: flex !important;
  }
}

/* Mobile nav dropdown: every button shares border-b for the divider between
   items, but that leaves the last one (Gallery) with a stray border above
   the panel's own bottom padding, where nothing follows it. */
#mobile-menu-panel button:last-child {
  border-bottom: none !important;
}


/* Header used to float over the hero at pt-[64px], but that class was never
   actually compiled by Tailwind (0px padding-top all along, unnoticed
   because the header is position:fixed and simply overlaid the hero image
   instead). Now made real at pt-[61px], matching the header's current
   resting height, so the hero is pushed clear of the header instead of
   sitting underneath it. */
.pt-\[61px\] {
  padding-top: 61px !important;
}

/* Every h2 on this page carries text-[32px]/md:text-[44px]/lg:text-[54px]
   (or similar) Tailwind arbitrary-value classes, but none of them are
   actually compiled into tailwind.css -- they're dead weight, and every h2
   has silently been falling back to Tailwind's own base rule
   (h2{font-size:var(--text-xl)} = 20px) at every breakpoint instead. Per
   explicit instruction, only the desktop size is being made real here --
   mobile/tablet are left exactly as they render today (that same 20px
   fallback), unchanged. */
@media (min-width: 1024px) {
  h2 {
    font-size: 36px !important;
  }
}

/* Unit-plan tier headings ("2 BHK Premium" etc.) were authored with
   text-[28px]/md:text-[34px]/lg:text-[40px], none of which are compiled
   into tailwind.css (this build never scanned an lg:text-[40px] to
   generate), so they've all been dead weight -- the element falls back to
   Tailwind's own h3 rule (font-size: var(--text-lg) = 18px) at every
   breakpoint regardless. The markup's lg: class has been changed from
   lg:text-[40px] to lg:text-[30px] (the desktop value now wanted), and
   this backs that exact class name with real CSS the same way a Tailwind
   build would have, rather than backing it by a generic selector. Mobile/
   tablet keep falling back to that same 18px, unchanged -- only the
   desktop breakpoint is made real here. */
@media (min-width: 1024px) {
  .lg\:text-\[30px\] {
    font-size: 26px !important;
  }
}

/* Master Plan / Unit Plan and Gallery / Video Gallery tab-switcher labels
   were authored with text-[26px]/md:text-[40px]/lg:text-[48px], none of
   which are compiled into tailwind.css -- dead weight, same as the h2
   section titles and the unit-plan h3s. Treated as section titles per
   instruction: desktop matches the h2 fix's 45px (lg:text-[48px] renamed
   to lg:text-[45px] in the markup, backed here), and mobile is restored to
   its originally-intended 26px too. Tablet (md:) is left alone -- only
   these two breakpoints were asked for. */
@media (max-width: 767px) {
  .lg\:text-\[45px\] {
    font-size: 26px !important;
  }
}
@media (min-width: 1024px) {
  .lg\:text-\[45px\] {
    font-size: 36px !important;
  }
}


/* Section subheadings under each h2 title (the .[leading-[1.25]] class is
   unique to exactly these 3 elements on the page -- About Us, Project
   Highlights, Location Highlights). Authored as
   text-[18px]/md:text-[22px]/lg:text-[26px], none of which are compiled
   into tailwind.css, so this backs a single flat size across every
   breakpoint instead of restoring the original responsive scale. */
.leading-\[1\.25\] {
  font-size: 20px !important;
}

/* Unit-plan card dividers (the 5 cards in #pricing-owl) reduced from my-4 to
   my-2.5 (10px), which isn't compiled into tailwind.css. */
.my-2\.5 {
  margin-top: 10px !important;
  margin-bottom: 10px !important;
}

/* Gallery/Video Gallery card images (#gallery-owl-grid, built in
   gallery-owl.js): desktop no longer stretches to a 16:9 aspect ratio --
   fixed at 350px tall instead, cancelling the mobile/tablet aspect-ratio
   at that breakpoint. */
@media (min-width: 1024px) {
  .lg\:aspect-auto {
    aspect-ratio: auto !important;
  }
  .lg\:h-\[300px\] {
    height: 300px !important;
  }
}

/* Gallery/Video Gallery card images below desktop: square (1:1), replacing
   the original portrait aspect-[373/473]. Scoped to <1024px explicitly so
   it can never win the cascade over the desktop fixed-height rule above,
   regardless of file order. */
@media (max-width: 1023px) {
  .aspect-\[1\/1\] {
    aspect-ratio: 1 / 1 !important;
  }
}

/* Tablets (768-1023px, 2 tiles per row; 1023.98 so a fractional 1023.x viewport, which misses both max-width:1023px and lg min-width:1024px, is covered too): the square tiles came out ~480px
   tall at 1023px wide, filling most of the screen. Use the desktop's fixed
   300px height here instead; phones (<=767px, 1 per row) stay square. */
@media (min-width: 768px) and (max-width: 1023.98px) {
  #gallery-owl-grid .aspect-\[1\/1\] {
    aspect-ratio: auto !important;
    height: 300px !important;
  }
}

/* Clubhouse strip regular cards (#clubhouse-owl, non-ch-card-short): stay
   240x240 on mobile, only grow to 280x280 at md and up. Was a flat inline
   280px at every breakpoint; converted to responsive Tailwind classes,
   which need backing since none of these arbitrary values are compiled. */
.w-\[240px\] {
  width: 240px !important;
}
.h-\[240px\] {
  height: 240px !important;
}
@media (min-width: 768px) {
  .md\:w-\[280px\] {
    width: 280px !important;
  }
  .md\:h-\[280px\] {
    height: 280px !important;
  }
}

/* Footer logo + Schedule-a-Visit placeholders, in plain CSS for older mobile
   browsers. Tailwind v4 puts everything inside @layer and builds filters from
   CSS variables / colours with color-mix(); browsers without those drop the
   rules, so the footer logo kept its dark-navy colours on the navy footer
   (brightness-0 invert never ran). The placeholder classes
   placeholder:text-[#1a1a1a]/45 and /55 were never compiled at all (Tailwind
   build-time scan), leaving only Tailwind's color-mix() base colour. Each
   vendor-prefixed placeholder selector gets its own rule: one unknown selector
   in a list would drop the whole rule. */
#site-footer img {
  -webkit-filter: brightness(0) invert(1);
  filter: brightness(0) invert(1);
  opacity: 0.9;
}
#schedule-visit input::-webkit-input-placeholder {
  color: rgba(26, 26, 26, 0.45);
  opacity: 1;
}
#schedule-visit input::placeholder {
  color: rgba(26, 26, 26, 0.45);
  opacity: 1;
}
#schedule-visit input[name="appointment"]::-webkit-input-placeholder {
  color: rgba(26, 26, 26, 0.55);
}
#schedule-visit input[name="appointment"]::placeholder {
  color: rgba(26, 26, 26, 0.55);
}

/* Submit button loading state (script.js initFormsIn) */
button.is-loading {
  cursor: wait;
  opacity: 0.85;
  pointer-events: none;   /* no second click while sending */
}
.btn-spinner {
  display: inline-block;
  width: 1em;
  height: 1em;
  margin-right: 8px;
  vertical-align: -0.15em;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: btnSpin 0.7s linear infinite;
}
@keyframes btnSpin {
  to { transform: rotate(360deg); }
}