/* Basic reset */
* { box-sizing: border-box; margin: 0; padding: 0; font-family: "Helvetica Neue", Arial, sans-serif; }
html,body { height: 100%; color: #222; background: #fff; scroll-behavior: smooth; }

/* Prevent iOS Safari from zooming form fields when focused.
   iOS zooms inputs when their computed font-size is less than 16px.
   Setting a 16px font-size (and disabling text-size-adjust) stops that behavior.
   We use a few common form selectors and !important to ensure override
   of existing component rules in this file. */
html { -webkit-text-size-adjust: 100%; }
input, textarea, select, button, .reg-form input[type="text"], .reg-form input[type="tel"], .promo-form input[type="text"], .promo-form input[type="tel"] {
  font-size: 16px !important;
}

:root{
  --charcoal: #222428;
  --muted: #6b6b6b;
  --gold: #b88e40;
  --light-gold: #e6d9c4;
  /* make the card background a more transparent gray so the banner shows through */
  --card-bg: rgba(34,34,34,0.32);
  --accent-text: #f6f0e9;
  --section-pad: 48px;
  --container: 1100px;
}

header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: #000; /* header background kept black */
  border-bottom: none;
  box-shadow: none;
}
.nav { 
  max-width: var(--container);
  margin: 0 auto;
  display:flex;
  align-items:center;
  gap:24px;
  padding:12px 20px;
  color: #fff; /* ensure nav text contrasts on black header */
}
.logo { display:flex; align-items:center; gap:12px; }
.logo img { height:45px; object-fit:contain; }
.nav-right { margin-left:auto; display:flex; gap:12px; align-items:center; }
.btn { padding:10px 16px; border-radius:6px; border:1px solid var(--gold); background:var(--gold); color:white; font-weight:600; cursor:pointer; text-decoration:none; display:inline-block; }
.btn:hover { background:#a3823a; }
.header-link { color: #fff; text-decoration: none; font-weight:700; margin-right:12px; padding:8px 10px; border-radius:6px; transition: color 0.15s ease, background 0.15s ease; }
.header-link:hover, .header-link:focus { color: var(--gold); background: rgba(255,255,255,0.04); }
.btn-outline { background:transparent; color:#fff; border:1px solid rgba(255,255,255,0.12); }

/* Hero */
.hero {
  position:relative;
  height:520px;
  /* use local banner.jpg (placed next to index.html). Reduced overlay so image is more visible */
  background-image:
    linear-gradient(180deg, rgba(0,0,0,0.12), rgba(0,0,0,0.36)),
    url('../images/b1.webp');
  background-size:cover;
  background-position:center;
  display:flex;
  align-items:center;
  justify-content:center;
}
.hero-inner {
  max-width: var(--container);
  width:100%;
  padding: 24px;
  display:flex;
  gap:24px;
  align-items:flex-start;
  justify-content:space-between;
}

/* Info card overlay (dark with gold accents) */
.info-card {
  flex: 0 0 520px;
  background: var(--card-bg);
  color:var(--accent-text);
  padding:24px;
  border-radius:10px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.4);
  backdrop-filter: blur(4px);
}
/* New styles for the stats layout inside the info card (matching uploaded image) */
.info-card .card-head { margin-bottom:14px; }
.info-card .card-head h2 { font-size:28px; margin:0 0 2px; font-weight:800; }
.info-card .card-head p { margin:0; color:#dcd3c3; }
.info-card .divider { height:2px; background: rgba(255,255,255,0.12); margin:16px 0; border-radius:2px; }
.stats-grid { display:grid; grid-template-columns:repeat(2,1fr); gap:14px; margin-top:6px; }
.stat { display:flex; gap:12px; align-items:center; padding:10px 6px; }
.stat-icon { width:36px; height:36px; background:rgba(255,255,255,0.06); border-radius:8px; display:inline-flex; align-items:center; justify-content:center; color:var(--gold); }
.stat-label { font-weight:700; font-size:15px; }
.stat-value { color: #e7d9bf; font-size:13px; }
.download-brochure { display:block; margin-top:16px; background:var(--gold); color:#fff; text-align:center; padding:14px; border-radius:10px; text-decoration:none; font-weight:700; }
.download-brochure:hover { background:#a3823a; }
.info-card small.note { display:block; margin-top:6px; color:#e6d9c4; font-size:12px; }
.info-title { font-size:20px; font-weight:700; margin-bottom:6px; }
.info-sub { color: #dcd3c3; font-size:14px; margin-bottom:14px; }
.features { display:flex; gap:12px; flex-wrap:wrap; margin:8px 0 18px; }
.f { display:flex; gap:8px; align-items:center; padding:8px 10px; border-radius:8px; background: rgba(255,255,255,0.02); }
.f svg { width:18px; height:18px; fill:var(--gold); }
.price-row { margin-top:12px; display:flex; align-items:center; gap:12px; }
.price { font-size:20px; font-weight:800; color:var(--gold); }
.cta { margin-top:16px; display:flex; gap:10px; }

/* Main page sections */
 .container { max-width: var(--container); margin:0 auto; padding: 28px 20px; }

 /* Reduce vertical gap specifically between ABOUT BUILDER and the following
   registration section without affecting other containers site-wide. */
 section.container[aria-labelledby="about-heading"] { padding-bottom: 12px; }
 section.container[aria-labelledby="about-heading"] + section.container.registration { padding-top: 12px; margin-top: 0; }

/* Reduce vertical gap between Site & Floor Plans and Location sections */
section.container[aria-labelledby="siteplan"] { padding-bottom: 8px; }
section.container[aria-labelledby="siteplan"] + section.container[aria-labelledby="location"] { padding-top: 10px; margin-top: 0; }

h2.section-title { font-size:20px; color:var(--charcoal); letter-spacing:1px; margin-bottom:10px; }
p.lead { color:var(--muted); line-height:1.6; margin-bottom:16px; }

/* About / Two-column */
.row { display:flex; gap:24px; align-items:flex-start; flex-wrap:wrap; }
.col { flex:1; min-width:280px; }

/* Amenities grid */
.amen-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(160px,1fr)); gap:14px; margin-top:12px; }
.amen { background:#faf6f1; border-radius:8px; padding:14px; text-align:center; font-size:14px; box-shadow:inset 0 -2px 0 rgba(0,0,0,0.02); }
.amen h4 { color:var(--charcoal); margin-bottom:6px; font-size:15px; }

/* Floorplan cards */
.cards { display:flex; gap:14px; flex-wrap:wrap; margin-top:18px; }
.card { background:white; border-radius:10px; box-shadow:0 10px 20px rgba(0,0,0,0.04); overflow:hidden; min-width:220px; flex:1; }
.card img { width:100%; height:140px; object-fit:cover; display:block; }
.card .card-body { padding:12px; }
.muted { color:var(--muted); font-size:14px; }

/* Map */
.map { width:100%; height:240px; border-radius:8px; overflow:hidden; margin-top:12px; }

/* Pricing / EMI */
.pricing { display:flex; gap:12px; flex-wrap:wrap; margin-top:12px; }
.price-card { flex: 0 0 260px; background:linear-gradient(180deg,#fff,#f7f4ee); border-radius:10px; padding:14px; border:1px solid #eee; }
.price-card h3 { font-size:18px; margin-bottom:8px; color:var(--charcoal); }
.price-amt { font-weight:800; font-size:18px; color:var(--gold); }

/* Gallery */
.gallery { display:grid; grid-template-columns:repeat(3,1fr); gap:8px; margin-top:12px; }
.gallery-item{ position:relative; overflow:hidden; border-radius:8px; }
.gallery-item img{ width:100%; height:120px; object-fit:cover; display:block; border-radius:8px; }
.gcap{ position:absolute; top:10px; left:12px; background:#fff; color:var(--charcoal); padding:6px 12px; border-radius:18px; font-weight:700; box-shadow:0 6px 18px rgba(0,0,0,0.08); font-size:14px; }

/* Make the GALLERY title use the theme gold color */
h2#gallery.section-title { color: var(--gold); }

/* Make the LOCATION heading use the theme gold color */
h2#location.section-title { color: var(--gold); }

/* Make the EXPERIENCE and SITE & FLOOR headings use the theme gold color */
h2#experience-heading.section-title { color: var(--gold); }
h2#siteplan.section-title { color: var(--gold); }

/* Add a gold border to the embedded map for emphasis */
.map iframe { border: 2px solid var(--gold) !important; border-radius:8px; }

/* Walkthrough Video heading (inside gallery section) should also match other section titles */
section[aria-labelledby="gallery"] h3 {
  color: var(--gold);
  font-size: 20px;
  margin-bottom: 10px;
}

/* Video wrapper and centered play overlay */
.video-wrap { position:relative; width:100%; height:100%; }
.video-wrap video { display:block; width:100%; height:100%; object-fit:cover; }
.play-overlay { position:absolute; left:50%; top:50%; transform:translate(-50%,-50%); display:flex; align-items:center; justify-content:center; width:76px; height:76px; border-radius:50%; border:none; background:rgba(0,0,0,0.46); cursor:pointer; box-shadow:0 8px 28px rgba(0,0,0,0.45); }
.play-overlay svg { color:var(--gold); width:34px; height:34px; fill:currentColor; }
/* When overlay hidden, remove it visually but keep in flow for assistive tech if needed */
.play-overlay.hidden { display:none !important; }

/* Footer */
footer { margin-top:36px; background:#0f0f0f; color:#ddd; padding:28px 20px; }
footer .wrap { max-width:var(--container); margin:0 auto; display:flex; gap:20px; align-items:center; justify-content:space-between; }
footer small { color:#aaa; }

/* Responsive */
@media (max-width:900px){
  .hero { height:640px; align-items:flex-start; padding-top:40px; }
  .hero-inner { flex-direction:column; gap:18px; align-items:stretch; }
  .info-card { width:100%; }
  .gallery { grid-template-columns:repeat(2,1fr); }
}
  /* EMI Breakdown section styles */
  .emi-section { padding:24px 0 36px; }
  /* Match EMI heading to the GALLERY heading size and spacing */
  .emi-section .section-title { color:var(--gold); font-size:20px; margin-bottom:10px; }
  /* Make the EMI area align with other sections on desktop; card itself stays narrow and centered */
  .emi-wrap { max-width: var(--container); background:transparent; margin-top:6px; }
  .emi-card { max-width:520px; margin:0 auto; }
  .emi-radios { display:flex; gap:18px; align-items:center; margin:8px 0 18px; }
  .emi-radios label { display:inline-flex; align-items:center; gap:8px; font-weight:700; color:var(--charcoal); }
  .emi-radios input[type="radio"] { width:18px; height:18px; accent-color:var(--gold); }
  .range-row{ display:flex; align-items:center; gap:12px; justify-content:space-between; margin:18px 0 6px; }
  .range-label{ color:var(--charcoal); font-weight:700; }
  .range-value{ font-weight:800; color:var(--charcoal); }
  .range{ width:100%; margin-top:10px; }
  .emi-card{ background:#fff; padding:18px; border-radius:12px; box-shadow:0 10px 30px rgba(0,0,0,0.06); }
  .btn-calc{ display:block; width:100%; margin-top:18px; padding:14px; background:var(--gold); color:#fff; border:none; border-radius:12px; font-weight:800; font-size:16px; cursor:pointer; }
  .btn-calc:hover { background:#a3823a; }

  /* style range controls (simple cross-browser) */
  input[type=range]{ -webkit-appearance:none; appearance:none; height:6px; background:#e6e6e6; border-radius:6px; }
  input[type=range]::-webkit-slider-thumb{ -webkit-appearance:none; width:22px; height:22px; background:#111; border-radius:50%; box-shadow:0 2px 4px rgba(0,0,0,0.3); }
  input[type=range]::-moz-range-thumb{ width:22px; height:22px; background:#111; border-radius:50%; border:none; }
@media (max-width:520px){
  /* Make the info card visually match the provided mobile screenshot */
  .hero { height:620px; }
  /* Neutralize .hero-inner on mobile so it behaves as if the class was removed */
  .hero-inner {
    display: block !important;
    padding: 0 !important;
    gap: 0 !important;
    align-items: initial !important;
    justify-content: initial !important;
    width: 100% !important;
  }
  /* hide the large hero intro copy on mobile */
  .hero-copy { display: none !important; }
  .info-card {
    /* slightly narrower card and positioned lower so more hero shows above (matches screenshot) */
    width: calc(100% - 36px);
    margin: 240px auto 0; /* moved much closer to normal flow so card sits lower on the banner */
    border-radius: 18px;
    padding: 18px 20px 22px;
    background: linear-gradient(180deg, rgba(34,34,34,0.52) 0%, rgba(34,34,34,0.52) var(--overlay-stop,82%), rgba(34,34,34,0.00) 100%);
    box-shadow: 0 18px 40px rgba(0,0,0,0.55);
  }
  .info-card .card-head h2 { font-size:22px; line-height:1.05; margin-bottom:6px; }
  .info-card .card-head p { font-size:14px; color:#e6d9c4; margin-bottom:6px; }
  .divider { margin:12px 0 10px; }
  .stats-grid { gap:10px; grid-template-columns:repeat(2,1fr); }
  .stat { padding:8px 4px; }
  .stat-icon { width:34px; height:34px; }
  .stat-label { font-size:14px; }
  .stat-value { font-size:13px; }
  .download-brochure { padding:12px; border-radius:10px; font-size:16px; }
  /* Preserve a small left gap for the EMI heading on small screens
    so it lines up with other mobile sections. */
  .emi-section .section-title { padding-left:14px; }
}
@media (max-width:520px){
  .nav { padding:8px 12px; }
  .gallery { grid-template-columns:1fr; }
}
/* Mobile: make gallery a two-row horizontal scroller (matches uploaded mock) */
@media (max-width:520px){
  .gallery {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(260px, 82vw);
    grid-template-rows: repeat(2, 180px);
    gap: 12px;
    overflow-x: auto;
    padding: 8px 6px 18px;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
  }
  .gallery img{
    width:100%;
    height:100%;
    object-fit:cover;
    border-radius:14px;
    display:block;
    scroll-snap-align: start;
  }
  /* subtle scrollbar styling */
  .gallery::-webkit-scrollbar{ height:8px; }
  .gallery::-webkit-scrollbar-thumb{ background:rgba(0,0,0,0.18); border-radius:6px; }
}
/* Ensure the meta pills stay in one horizontal row on small screens
   Reduce padding and allow horizontal scroll so all four appear side-by-side */
@media (max-width:520px){
  .meta-pills{
    display:flex;
    gap:10px;
    flex-wrap:nowrap !important;
    overflow-x:auto;
    padding:10px 8px; /* more even top/bottom space on mobile */
    -webkit-overflow-scrolling:touch;
    justify-content:flex-start;
    margin-top:10px;
    margin-bottom:10px;
  }
  .meta-pills::-webkit-scrollbar{ height:6px; }
  .meta-pills::-webkit-scrollbar-thumb{ background:rgba(0,0,0,0.12); border-radius:6px; }
  .pill{ padding:8px 12px; font-size:14px; white-space:nowrap; text-decoration:none; }
  .pill.offer{ padding:8px 14px; }
}
/* Mobile header tweaks: large left logo and right hamburger */
@media (max-width:520px){
  header { background: #000 !important; border-bottom: none; box-shadow: none; }
  .logo { /* no white box; logo sits on banner */ display:inline-flex; align-items:center; }
  .logo img { height:56px; }
  /* hide desktop action buttons on narrow screens and show a compact menu button */
  .desktop-actions { display:none !important; }
  .menu-btn { display:inline-flex; margin-left:auto; align-items:center; justify-content:center; width:44px; height:44px; background:rgba(0,0,0,0.6); color:#fff; border-radius:6px; border:none; position:relative; z-index:9999; pointer-events:auto; }
  .menu-btn svg { width:20px; height:16px; stroke:#fff; stroke-width:2.2; }
}
/* About builder stats (large numbers) */
.about-builder { padding-top:6px; }
/* EOI / Price strip (placed before ABOUT BUILDER) */
.quick-strip { display:flex; justify-content:space-between; align-items:center; gap:20px; margin-bottom:18px; }
/* keep two columns, but center their content vertically so values align */
.quick-strip .meta-col { flex:0 0 48%; margin-top:32px; display:flex; flex-direction:column; justify-content:center; }
.quick-strip h4 { margin:0; font-size:16px; color:var(--charcoal); font-weight:700; }
.quick-strip .meta-value { margin-top:6px; font-size:28px; font-weight:700; color:var(--charcoal); line-height:1.05; }
.meta-pills { display:flex; gap:12px; justify-content:center; margin-top:22px; margin-bottom:30px; }
/* Pills are anchors; remove underline and keep visual style */
.pill, .pill:link, .pill:visited { display:inline-block; padding:10px 20px; border-radius:28px; border:2px solid var(--gold); background:transparent; color:var(--charcoal); font-weight:700; cursor:pointer; text-decoration:none; }
.pill.offer { background:#ff3b30; color:#fff; border-color:#ff3b30; }
@media (max-width:700px){
  /* Keep EOI / Starting Price side-by-side on narrow screens
     by using a two-column flex layout and ensuring each column
     takes ~48% width. This prevents them stacking vertically. */
  .quick-strip { flex-direction:row; flex-wrap:wrap; gap:12px; }
  .quick-strip .meta-col { flex:0 0 48%; display:flex; flex-direction:column; justify-content:center; }
  .meta-pills{ justify-content:flex-start; flex-wrap:wrap; }
}
.about-builder .stats { display:grid; grid-template-columns:repeat(2,1fr); gap:18px; margin:18px 0 6px; }
/* Ensure stat items stack vertically so label appears below the number */
.about-builder .stat { display:block; text-align:left; padding:8px 0; }
.about-builder .stat .num, .about-builder .num { font-size:46px; font-weight:500; color:var(--charcoal); line-height:1; }
.about-builder .stat small { color:var(--muted); margin-top:8px; font-size:14px; display:block; font-weight:400; }
@media (min-width:900px){ .about-builder .stats { grid-template-columns:repeat(4,1fr); } }

/* Registration / Interest form styles */
.registration { background: transparent; margin-top:28px; }
.registration .wrap { max-width:var(--container); margin:0 auto; padding:18px 20px; }
.registration h2 { color:var(--gold); font-size:22px; letter-spacing:1px; margin-bottom:8px; }
.registration p.lead { color:var(--muted); margin-bottom:18px; }
.reg-form { background:transparent; padding:0; display:block; }
.reg-form .field { margin-bottom:14px; }
.reg-form input[type="text"], .reg-form input[type="tel"] { width:100%; padding:18px 16px; border-radius:12px; border:none; background:#f2f2f2; font-size:15px; }
.reg-radios { display:flex; gap:18px; align-items:center; margin:8px 0 12px; flex-wrap:wrap; }
.reg-radios label { display:inline-flex; align-items:center; gap:8px; color:var(--charcoal); font-weight:600; }
.reg-radios input[type="radio"] { width:18px; height:18px; accent-color:var(--gold); }
.btn-register { display:block; width:100%; padding:14px 18px; background:#8b6a39; color:white; text-align:center; border-radius:10px; border:none; font-size:18px; font-weight:700; cursor:pointer; }
.btn-register:hover { background:#7a5a2f; }
@media (min-width:900px){ .reg-row{ display:flex; gap:24px; align-items:flex-start; } .reg-form{ flex:1; } .reg-aside{ flex:0 0 360px; } }
/* Experience / Amenities section styles (tuned to match screenshot) */
.experience { margin-top:28px; padding:20px 0 6px; }
.experience .wrap { max-width: var(--container); margin:0 auto; text-align:left; }
.experience .lead { color:var(--muted); margin-top:6px; }
.amen-inner { max-width:940px; margin:12px auto 0; }
.amen-grid { display:grid; grid-template-columns:repeat(4,220px); gap:20px; margin-top:16px; justify-content:space-between; }
@media (max-width:1100px){ .amen-grid { grid-template-columns:repeat(3,1fr); gap:18px; justify-content:center; } }
@media (max-width:700px){ .amen-grid { grid-template-columns:repeat(2,1fr); gap:12px; } }
@media (max-width:520px){ .amen-grid { grid-template-columns:repeat(2,1fr); gap:12px; } }

/* Collapse behavior on mobile: show only first 4 items when .collapsed is present */
@media (max-width:520px){
  .amen-grid.collapsed .amen-item:nth-child(n+5){ display:none; }
  .amen-grid.expanded .amen-item{ display:flex; }
}
/* Mobile-only: add slight left/right spacing for the Experience section */
@media (max-width:520px){
  .experience .wrap { padding-left:12px; padding-right:12px; box-sizing:border-box; }
  .experience .amen-inner { margin-left:0; margin-right:0; }
}
.amen-item { background:#fff; border-radius:14px; padding:18px 12px; text-align:center; box-shadow:0 10px 20px rgba(0,0,0,0.06); min-height:92px; display:flex; flex-direction:column; justify-content:center; }
.amen-item svg { display:block; margin:0 auto 8px; width:28px; height:28px; fill:var(--gold); color:var(--gold); }
.amen-item .muted { color:var(--muted); font-size:13px; margin-top:4px; }
.btn-complete { display:inline-block; margin-top:14px; background:var(--gold); color:#111; padding:12px 18px; border-radius:12px; font-weight:600; text-decoration:none; box-shadow:0 6px 18px rgba(0,0,0,0.12); }
.btn-complete:hover { background:#a3823a; color:#fff; }
@media (max-width:520px){
  /* Center the Complete Amenities List CTA on small screens */
  .btn-complete { display:block; width:92%; max-width:420px; margin:16px auto; text-align:center; }
}
/* Desktop: hide the Complete Amenities List button (desktop-only) */
@media (min-width:1100px){
  #amenToggle, .btn-complete { display:none !important; }
}
/* Promo / Offer registration block (matching uploaded screenshot) */
.promo { background:transparent; margin-top:18px; }
.promo .promo-wrap { max-width: var(--container); width:100%; margin:12px auto; padding:20px; background:linear-gradient(180deg,#fff,#fbf8f4); border-radius:14px; box-shadow:0 10px 30px rgba(0,0,0,0.04); text-align:left; }
/* Match promo heading to gallery/EMI headings */
.promo .section-title { font-size:20px; color:var(--gold); margin-bottom:10px; }
.promo-form .input { margin-bottom:12px; }
.promo-form input[type="text"], .promo-form input[type="tel"] { width:100%; padding:20px 18px; border-radius:14px; border:none; background:#f4f4f4; font-size:15px; color:var(--charcoal); }
.promo-form .radios{ display:flex; gap:14px; align-items:center; margin:12px 0 6px; flex-wrap:wrap; }
.promo-form label { display:inline-flex; gap:8px; align-items:center; font-weight:700; color:var(--charcoal); }
.btn-interest { display:block; width:100%; padding:16px; border-radius:12px; background:#8b6a39; color:#fff; font-weight:800; border:none; font-size:18px; cursor:pointer; }
.btn-interest:hover { background:#7a5a2f; }
@media (max-width:520px){ .promo .promo-wrap { padding:18px; } .promo .section-title{ font-size:20px; } }

/* About The Project block styles */
.about-project .section-title { color: var(--gold); font-size:28px; letter-spacing:1px; margin-bottom:14px; }
.about-project .rera { color:var(--charcoal); font-weight:700; margin-bottom:12px; }
.about-project p.project-lead { color:var(--charcoal); line-height:1.7; max-width:780px; margin-top:8px; }

/* Make the ABOUT BUILDER heading use the theme gold color */
h2#about-heading.section-title { color: var(--gold); }

/* Nearby list styles: put distance below name and enable two-per-row on mobile */
.loc-list { margin-top:8px; color:var(--muted); list-style:none; padding-left:0; display:grid; grid-template-columns:repeat(2,1fr); gap:12px; }
.loc-list li { padding:8px; }
.loc-name { font-weight:500; color:var(--charcoal); }
.loc-dist { display:block; color:var(--muted); font-size:13px; margin-top:4px; }

@media (max-width:520px){
  /* On small screens keep two-per-row but tighten spacing */
  .loc-list { grid-template-columns:repeat(2,1fr); gap:10px; }
  .loc-list li { padding:8px; }
}

/* Footer privacy block (full-width black band with centered link and paragraph) */
.footer-privacy { background:#000; color:#fff; padding:28px 0; text-align:center; }
.footer-privacy .container { max-width:var(--container); margin:0 auto; padding:0 20px; }
.footer-privacy .privacy-link { color:#fff; text-decoration:underline; font-weight:700; display:inline-block; margin-bottom:12px; }
.footer-privacy p { color:#fff; max-width:760px; margin:0 auto; line-height:1.6; }
@media (max-width:520px){ .footer-privacy p { font-size:14px; } }

/* Mobile drawer / sidebar (hamburger menu) */
/* Update mobile drawer styles */
.mobile-drawer {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.mobile-drawer.open {
  opacity: 1;
  visibility: visible;
}

.mobile-drawer .scrim {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.mobile-drawer.open .scrim {
  opacity: 1;
}

.mobile-drawer .drawer-panel {
  position: fixed;
  top: 0;
  right: 0;
  width: 300px;
  height: 100%;
  background: white;
  transform: translateX(100%);
  transition: transform 0.3s ease;
  z-index: 1001;
  overflow-y: auto;
}

.mobile-drawer.open .drawer-panel {
  transform: translateX(0);
}

/* Ensure body doesn't scroll when menu is open */
body.menu-open {
  overflow: hidden;
}
@media (max-width:520px){ .mobile-drawer .drawer-panel{ max-width:94vw; } }

/* PRE-LAUNCH vertical ribbon styles (now fixed side sticky button) */
.prelaunch-ribbon {
  position: fixed;
  right: 1px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 9999;
  background: #ff3b30;
  color: #fff;
  font-weight: 800;
  font-size: 15px;
  letter-spacing: 1px;
  padding: 14px 0;
  width: 44px;
  text-align: center;
  border-radius: 8px 0 0 8px;
  writing-mode: vertical-rl;
  text-orientation: mixed;
  box-shadow: 0 8px 30px rgba(0,0,0,0.18);
  user-select: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border: none;
}
.prelaunch-ribbon:focus {
  outline: 3px solid rgba(255,255,255,0.18);
  outline-offset: 2px;
}
@media (max-width:900px){
  .prelaunch-ribbon { right: 12px; width:40px; }
}
@media (max-width:520px) {
  .prelaunch-ribbon {
    right: 1px;
    width: 34px;
    font-size: 13px;
    padding: 10px 0;
    border-radius: 8px 0 0 8px;
  }
}

/* Sidebar Styles */
.mobile-drawer .drawer-panel {
  background: #ffffff;
  box-shadow: -4px 0 15px rgba(0, 0, 0, 0.1);
}

.mobile-drawer .drawer-top {
  background: #b88e40;
  color: white;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-drawer .drawer-top #drawerTitle {
  font-size: 18px;
  font-weight: 600;
  margin-left: 10px;
}

.mobile-drawer .drawer-close {
  margin-left: auto;
  background: none;
  border: none;
  color: white;
  font-size: 20px;
  cursor: pointer;
  padding: 8px;
  line-height: 1;
}

.drawer-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.drawer-list li {
  border-bottom: 1px solid #f0f0f0;
}

.drawer-list a {
  display: flex;
  align-items: center;
  padding: 16px 20px;
  color: #333;
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  transition: background-color 0.2s ease;
}

.drawer-list a:hover,
.drawer-list a:focus {
  background-color: #f8f8f8;
  color: #b88e40;
}

.drawer-list .icon {
  width: 24px;
  margin-right: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}

/* Active state for current page */
.drawer-list a.active {
  color: #b88e40;
  background-color: #f0f7ed;
  font-weight: 600;
}

/* Add some spacing between icon and text */
.drawer-list a span:not(.icon) {
  flex: 1;
}

/* Make the close button more touch-friendly on mobile */
#drawerClose {
  padding: 8px;
  margin: -8px -8px -8px auto;
  border-radius: 4px;
}

#drawerClose:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

/* Ensure the drawer content is properly spaced */
.mobile-drawer .drawer-panel {
  display: flex;
  flex-direction: column;
}

.mobile-drawer .drawer-content {
  flex: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

/* Add a subtle shadow to the drawer */
.mobile-drawer .drawer-panel {
  box-shadow: -4px 0 15px rgba(0, 0, 0, 0.1);
}

/* Make sure the drawer is above other content */
.mobile-drawer {
  z-index: 1000;
}

/* Add a subtle transition for the drawer panel */
.mobile-drawer .drawer-panel {
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Style the scrollbar for the drawer */
.mobile-drawer .drawer-panel::-webkit-scrollbar {
  width: 4px;
}

.mobile-drawer .drawer-panel::-webkit-scrollbar-thumb {
  background-color: rgba(0, 0, 0, 0.2);
  border-radius: 4px;
}

/* Ensure the scrim covers the entire viewport */
.mobile-drawer .scrim {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: -1;
}

@media (max-width:520px){
  /* Make the Register for Site Visit CTA take full width on mobile */
  #location-cta.btn { display:block; width:100%; box-sizing:border-box; margin:12px 0; padding:14px 12px; }
}

/* Modal/Popup Styles */
.modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 2000;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-overlay.active {
  display: flex;
}

.modal-content {
  background: white;
  border-radius: 16px;
  padding: 40px;
  max-width: 600px;
  width: 100%;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  position: relative;
  animation: slideIn 0.3s ease;
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(-30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: none;
  border: none;
  font-size: 28px;
  cursor: pointer;
  color: #999;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.2s ease;
}

.modal-close:hover {
  background: #f0f0f0;
  color: #222;
}

.modal-title {
  font-size: 28px;
  font-weight: 800;
  color: var(--gold);
  margin-bottom: 12px;
  margin-top: 0;
}

.modal-subtitle {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 24px;
}

.modal-form-group {
  margin-bottom: 16px;
}

.modal-form-group label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--charcoal);
  margin-bottom: 8px;
}

.modal-form-group input[type="text"],
.modal-form-group input[type="email"],
.modal-form-group input[type="tel"],
.modal-form-group textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  font-size: 14px;
  font-family: inherit;
  transition: border-color 0.2s ease;
  box-sizing: border-box;
}

.modal-form-group input[type="text"]:focus,
.modal-form-group input[type="email"]:focus,
.modal-form-group input[type="tel"]:focus,
.modal-form-group textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(184, 142, 64, 0.1);
}

.modal-form-group textarea {
  resize: vertical;
  min-height: 100px;
}

.modal-radios {
  display: flex;
  gap: 16px;
  margin-top: 8px;
  flex-wrap: wrap;
}

.modal-radios label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  margin-bottom: 0;
}

.modal-radios input[type="radio"] {
  width: 18px;
  height: 18px;
  accent-color: var(--gold);
  cursor: pointer;
}

.modal-btn-submit {
  width: 100%;
  padding: 16px;
  background: var(--gold);
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s ease;
  margin-top: 24px;
}

.modal-btn-submit:hover {
  background: #a3823a;
}

.modal-btn-submit:active {
  transform: scale(0.98);
}

@media (max-width: 520px) {
  .modal-content {
    padding: 28px 20px;
    border-radius: 14px;
  }

  .modal-title {
    font-size: 22px;
    margin-bottom: 8px;
  }

  .modal-overlay {
    padding: 12px;
  }

  .modal-radios {
    flex-direction: column;
    gap: 12px;
  }
}

/* Site & Floor Plans custom layout */
.site-plans { display:flex; gap:20px; align-items:flex-start; flex-wrap:wrap; }
.site-large { flex:1 1 640px; border-radius:18px; overflow:hidden; position:relative; box-shadow:0 12px 30px rgba(0,0,0,0.08); }
.site-large img { display:block; width:100%; height:260px; object-fit:cover; filter: blur(0.6px) saturate(1.05); }
.site-large .overlay-pill { position:absolute; left:50%; top:52%; transform:translate(-50%,-50%); background:var(--light-gold); color:var(--charcoal); border-radius:28px; padding:10px 22px; border:4px solid #fff; font-weight:800; box-shadow:0 8px 24px rgba(0,0,0,0.12); }

.floor-scroll { flex:0 0 360px; display:flex; gap:14px; overflow-x:auto; padding:6px 2px; align-items:flex-start; }
.floor-card { min-width:200px; background:#fff; border-radius:14px; box-shadow:0 12px 30px rgba(0,0,0,0.06); overflow:hidden; flex:0 0 auto; }
.floor-card img { width:100%; height:120px; object-fit:cover; display:block; }
.floor-card .card-body { padding:10px 12px; position:relative; }
.floor-card .muted { font-size:12px; color:var(--muted); margin-bottom:6px; }
.floor-card .price { font-weight:800; color:var(--charcoal); margin-bottom:8px; }
.unit-pill { display:inline-block; width:100%; text-align:center; background:var(--gold); color:#fff; border-radius:10px; padding:8px 6px; font-weight:800; }

/* Desktop: place the floor-scroll below the site image but show cards horizontally
   so users can scroll through floor cards under the main site image. */
@media (min-width:1100px){
  .site-plans { flex-direction:column; align-items:center; }
  /* Make the site-large size to its content (the image) rather than a large flex-basis
     so there isn't a big white area below the image. */
  .site-large { order: 1; width:100%; flex: 0 0 auto; }
  .site-large img { height:260px; width:100%; object-fit:cover; display:block; }
  /* ensure the site overlay sits above the image */
  .site-large .overlay-pill { z-index:2; top:50%; bottom:auto; }
  .floor-scroll { order: 2; display:flex; flex-direction:row; width:100%; overflow-x:auto; padding:10px 6px; gap:18px; justify-content:flex-start; }
  .floor-card { min-width:320px; flex:0 0 auto; }

  /* Desktop: keep Starting Price aligned to the right edge */
  .quick-strip { width:100%; display:flex; justify-content:space-between; align-items:center; }
  /* Make meta columns shrink-to-fit on desktop so we can push the price to the far right */
  .quick-strip .meta-col { flex: 0 0 auto; margin-top:0; }
  .quick-strip .meta-col.meta-emi { order: 1; }
  .quick-strip .meta-col.meta-price { order: 3; margin-left:auto; text-align:right; }
  .quick-strip .meta-col.meta-eoi { order:2; display:none; }
}

/* Mobile: make site-large full width and floor-scroll a horizontal scroller */
@media (max-width:700px){
  /* Prevent the desktop flex-basis from forcing a large height
     when the layout stacks vertically on narrow screens. Let the
     image determine the height and keep the overlay anchored to
     the image bottom. */
  .site-large { flex: 0 0 auto; }
  .site-large img { height:200px; width:100%; object-fit:cover; }
  .site-large .overlay-pill { top: auto; bottom:18px; transform:translateX(-50%); }
   .site-plans { flex-direction:column; }
   /* Reduce vertical gap so the horizontal scroller sits right under
     the site image on small screens. Remove extra padding and align
     floor cards to the bottom of the scroller. */
   .site-plans { gap:0; }
   .site-large { margin-bottom:0; }
   .floor-scroll { flex-direction:row; width:100%; padding:0; margin:0; align-items:flex-end; }
}

/* Small extra spacing above Location on mobile so it breathes */
@media (max-width:700px){
  section.container[aria-labelledby="siteplan"] + section.container[aria-labelledby="location"] {
    padding-top: 20px; /* little spacing */
  }
}
@media (max-width:520px){
  section.container[aria-labelledby="siteplan"] + section.container[aria-labelledby="location"] {
    padding-top: 26px; /* a touch more on very small screens */
  }
}

