/* ==========================================================================
   Reyaalty — Property Campaign Landing Page
   Design tokens mirror the reyaalty.com property-details page
   (brand purple/mauve/coral gradient, Lato type, 5px/4px radii).
   ========================================================================== */

:root {
  --color-primary: #3f2483;
  --color-primary-dark: #2c1a5c;
  --color-secondary: #9c5271;
  --color-accent: #f07c60;
  --gradient-brand: linear-gradient(92deg, #3f2483 0.57%, #9c5271 72.95%, #f07c60 99.15%);

  --color-text: #323232;
  --color-text-muted: #828282;
  --color-label: #828282;
  --color-border: #e1e1e1;

  --color-success: #01b808;
  --color-success-bg: #e8f9e8;
  --color-danger: #dc3545;
  --color-danger-bg: #fdecea;

  --color-bg: #ffffff;
  --color-bg-page: #fbf9fd;
  --color-bg-light: #f8f6fb;
  --color-badge-bg: #e7e1ff;
  --color-badge-text: #4d30c2;

  /* Exact tokens from reyaalty.com's property-details-new component (shared
     by About Property / Property Details / Amenities / Neighbourhood there). */
  --card-header-bg: #F9FAFB;
  --card-border: #EFF6FF;
  --card-radius: 10px;
  --amenity-chip-bg: #F7F3FF;
  --neighbourhood-chip-bg: #FEF6F4;

  --hero-bg-950: #150c2b;

  --font-family: 'Lato', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-display: 'Fraunces', 'Lato', serif;

  --radius-sm: 4px;
  --radius-md: 5px;
  --radius-lg: 10px;
  --radius-xl: 16px;

  --shadow-card: 0 2px 10px rgba(63, 36, 131, 0.08);
  --shadow-elevated: 0 16px 40px rgba(31, 12, 71, 0.14);

  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;
  --space-8: 64px;

  --container-max: 1280px;
  --mobile-cta-height: 68px;
}

/* ---------- Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-family);
  font-size: 15px;
  line-height: 1.6;
  color: var(--color-text);
  background: var(--color-bg-page);
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, p, ul, figure { margin: 0; }
ul { padding: 0; list-style: none; }
main { display: block; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; top: -48px; left: 8px; z-index: 100;
  background: var(--color-primary); color: #fff; padding: 10px 16px;
  border-radius: var(--radius-sm); text-decoration: none; font-weight: 600;
  transition: top .15s ease;
}
.skip-link:focus { top: 8px; }

/* ---------- Buttons ---------- */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  min-height: 48px;
  padding: 12px 24px;
  font-size: 15px;
  font-weight: 700;
  border-radius: var(--radius-md);
  border: none;
  text-decoration: none;
  white-space: nowrap;
  transition: transform .12s ease, box-shadow .12s ease, opacity .12s ease;
}
.btn--primary {
  background: var(--gradient-brand);
  color: #fff;
  box-shadow: 0 8px 20px rgba(63, 36, 131, 0.28);
}
.btn--primary:hover { transform: translateY(-1px); box-shadow: 0 10px 24px rgba(63, 36, 131, .34); }
.btn--primary:active { transform: translateY(0); }
.btn--secondary {
  background: transparent;
  color: var(--color-primary);
  border: 1.5px solid var(--color-primary);
}
.btn--block { width: 100%; }
.btn--small { min-height: 36px; padding: 8px 16px; font-size: 13px; }
.btn--whatsapp {
  background: #E5F3E9;
  border: 0.5px solid #188634;
  color: #188634;
}
.btn--whatsapp:hover { background: #d9eee0; }
.btn:disabled { opacity: .7; cursor: not-allowed; transform: none; }

.btn__label { display: inline-flex; align-items: center; gap: 8px; }
.btn__label svg { width: 20px; height: 20px; flex-shrink: 0; }

.btn[data-loading="true"] .btn__label { visibility: hidden; }
.btn[data-loading="true"]::after {
  content: '';
  position: absolute;
  width: 20px; height: 20px;
  border-radius: 50%;
  border: 2.5px solid rgba(255,255,255,.45);
  border-top-color: #fff;
  animation: spin .7s linear infinite;
}
.btn--whatsapp[data-loading="true"]::after {
  border-color: rgba(24,134,52,.35);
  border-top-color: #188634;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Header ---------- */
.site-header {
  background: #fff;
  border-bottom: 1px solid var(--color-border);
}
.site-header__inner {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 14px var(--space-4);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.site-header__logo img { height: 28px; width: auto; }
.site-header__cta { flex-shrink: 0; }

/* ---------- Layout helpers ---------- */
.section { padding: 10px 0; }
.section__inner { max-width: var(--container-max); margin: 0 auto; padding: 0 var(--space-4); }

/* ---------- Hero (premium editorial) ---------- */
.hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(165deg, var(--hero-bg-950) 0%, #241a4d 45%, var(--color-primary) 85%, #1c1440 100%);
  padding: var(--space-6) 0 var(--space-6);
  isolation: isolate;
}

.hero__media { position: absolute; inset: 0; z-index: -1; }
.hero__media::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(closest-side, rgba(240,124,96,.16), transparent 70%) top right / 60% 70% no-repeat,
              radial-gradient(closest-side, rgba(119,86,201,.22), transparent 70%) bottom left / 65% 70% no-repeat;
}
.hero__grain { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .05; mix-blend-mode: overlay; pointer-events: none; }

.hero__inner {
  position: relative;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: var(--space-6) var(--space-4) 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-6);
}

.hero__content { color: #fff; }

.hero__eyebrow-row { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-3); margin-bottom: var(--space-4); }
.hero__tag {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12px; font-weight: 700; color: var(--color-accent);
  border: 1px solid rgba(240,124,96,.45);
  background: rgba(240,124,96,.08);
  border-radius: 999px; padding: 6px 14px;
}
.hero__breadcrumb { font-size: 12px; color: rgba(255,255,255,.5); }

.hero__headline { margin: 0 0 var(--space-2); line-height: 1; }
.hero__headline-name {
  display: block;
  font-family: var(--font-family);
  font-weight: 700;
  font-size: clamp(34px, 6vw, 56px);
  line-height: 1.05;
  letter-spacing: -.01em;
  background: linear-gradient(100deg, #fff 0%, var(--color-accent) 55%, #fff 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero__headline-desc {
  display: block;
  margin-top: var(--space-2);
  font-family: var(--font-family);
  font-size: 16px;
  font-weight: 400;
  color: rgba(255,255,255,.8);
  line-height: 1.4;
}

/* Supporting headline under the H1. Sits a step below the H1's own second
   line in weight and colour so the heading still reads as the heading. */
.hero__subline {
  margin-top: var(--space-3);
  max-width: 62ch;
  font-size: 15px;
  line-height: 1.55;
  color: rgba(255,255,255,.72);
}

.hero__location {
  display: flex; align-items: center; gap: 6px;
  color: rgba(255,255,255,.68);
  font-size: 14px;
  margin: var(--space-3) 0 var(--space-5);
}
.hero__location svg { width: 15px; height: 15px; flex-shrink: 0; color: var(--color-accent); }

.hero__specs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  column-gap: var(--space-4);
  border-top: 1px solid rgba(255,255,255,.14);
  margin-bottom: var(--space-5);
}
.quick-facts__item {
  padding: var(--space-4) 0;
  border-bottom: 1px solid rgba(255,255,255,.14);
}
.quick-facts__value { display: block; font-size: 19px; font-weight: 700; color: #fff; line-height: 1; }
.quick-facts__label { display: block; font-size: 11px; color: rgba(255,255,255,.64); margin-top: 4px; }

.hero__price-row { display: flex; align-items: flex-end; justify-content: space-between; flex-wrap: wrap; gap: var(--space-4); }
.hero__price-block .l { font-size: 11px; letter-spacing: .05em; color: rgba(255,255,255,.64); margin-bottom: 6px; }
.hero__price-block .v { font-family: var(--font-family); font-size: 26px; font-weight: 700; color: var(--color-accent); }
.hero__price-block .v small { font-family: var(--font-family); font-size: 12px; font-weight: 400; color: rgba(255,255,255,.64); margin-left: 8px; }
.hero__pills { display: flex; gap: 8px; flex-wrap: wrap; }
.hero__pills .pill {
  font-size: 11.5px; color: rgba(255,255,255,.85);
  border: 1px solid rgba(255,255,255,.18);
  background: rgba(255,255,255,.05);
  border-radius: 999px; padding: 6px 12px;
}
.hero__rera { margin-top: var(--space-3); font-size: 11.5px; color: rgba(255,255,255,.64); }

.hero__highlights {
  position: relative;
  max-width: var(--container-max);
  margin: var(--space-6) auto 0;
  padding: var(--space-4) var(--space-4) 0;
  display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-5);
  border-top: 1px solid rgba(255,255,255,.12);
}
.hero__highlights li { display: flex; align-items: center; gap: 7px; font-size: 12.5px; color: rgba(255,255,255,.75); }
.hero__highlights li svg { width: 14px; height: 14px; color: var(--color-accent); flex-shrink: 0; }

/* ---------- Lead form card (glass, sits over the hero photo) ---------- */
.lead-card {
  position: relative;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(20px) saturate(1.2);
  -webkit-backdrop-filter: blur(20px) saturate(1.2);
  border: 1px solid rgba(255,255,255,.5);
  border-radius: var(--radius-xl);
  padding: var(--space-5);
  box-shadow: 0 30px 60px -18px rgba(9,4,32,.5);
  scroll-margin-top: var(--space-4);
}
.lead-card::before {
  content: ''; position: absolute; top: 0; left: 24px; right: 24px; height: 1px;
  background: linear-gradient(90deg, transparent, var(--color-accent), transparent);
  opacity: .6;
}
.lead-card__header h2 { font-size: 19px; font-weight: 800; color: var(--color-text); }
.lead-card__header p { margin-top: 4px; font-size: 13px; color: var(--color-text-muted); }

.form-row { margin-top: var(--space-4); }
.form-row label { display: block; font-size: 13px; font-weight: 700; margin-bottom: 6px; color: var(--color-text); }
.form-row .req { color: var(--color-danger); margin-left: 2px; }
.form-row .optional { font-weight: 400; color: var(--color-text-muted); }

.form-row input[type="text"],
.form-row input[type="tel"],
.form-row input[type="email"],
.form-row textarea {
  width: 100%;
  min-height: 46px;
  border: .8px solid #c3c3c3;
  border-radius: var(--radius-sm);
  padding: 11px 14px;
  font-size: 15px;
  background: #fff;
  color: var(--color-text);
}
.form-row textarea { min-height: 64px; resize: vertical; }
.form-row input:focus, .form-row textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(63, 36, 131, .12);
}
.form-row input.is-invalid, .form-row textarea.is-invalid {
  border-color: var(--color-danger);
  box-shadow: 0 0 0 3px rgba(220, 53, 69, .1);
}

.phone-input { display: flex; align-items: stretch; }
.phone-input__prefix {
  display: flex; align-items: center;
  padding: 0 12px;
  border: .8px solid #c3c3c3;
  border-right: none;
  border-radius: var(--radius-sm) 0 0 var(--radius-sm);
  background: var(--color-bg-light);
  color: var(--color-text);
  font-weight: 700;
  font-size: 15px;
}
.phone-input input { border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }

.field-error { display: block; margin-top: 5px; font-size: 12px; color: var(--color-danger); min-height: 15px; }
.field-error:empty { display: none; min-height: 0; }

.lead-card .btn { margin-top: var(--space-4); }

.lead-actions { display: flex; gap: 12px; margin-top: var(--space-4); }
.lead-actions .btn { flex: 1 1 0; min-width: 0; margin-top: 0; }

.consent-row {
  display: flex; align-items: flex-start; gap: 9px;
  margin-top: var(--space-4);
  font-size: 11.5px; line-height: 1.5; color: var(--color-text-muted);
  cursor: pointer;
}
.consent-row input { margin-top: 3px; flex-shrink: 0; width: 15px; height: 15px; accent-color: var(--color-primary); }
.consent-row a { color: var(--color-primary); text-decoration: underline; }
.consent-row input.is-invalid { outline: 2px solid var(--color-danger); outline-offset: 2px; }
#error-consent { margin-top: 4px; }

.form-status { margin-top: var(--space-3); font-size: 13.5px; line-height: 1.5; padding: 0; border-radius: var(--radius-sm); }
.form-status:empty { display: none; }
.form-status[data-tone="error"] { background: var(--color-danger-bg); color: #a8242f; padding: 10px 12px; }
.form-status[data-tone="info"] { background: var(--color-bg-light); color: var(--color-text-muted); padding: 10px 12px; }

/* Success state */
.lead-card__success { text-align: center; padding: var(--space-4) 0; }
.lead-card__success svg { width: 52px; height: 52px; color: var(--color-success); }
.lead-card__success h3 { font-size: 19px; font-weight: 800; margin-top: var(--space-3); }
.lead-card__success p { margin-top: 6px; font-size: 13.5px; color: var(--color-text-muted); }
.lead-call-reveal {
  display: inline-flex; align-items: center; gap: 8px;
  margin-top: var(--space-4);
  padding: 12px 24px;
  border-radius: var(--radius-md);
  background: var(--gradient-brand);
  color: #fff;
  font-size: 16px; font-weight: 800;
  text-decoration: none;
}
.lead-call-reveal svg { width: 20px; height: 20px; flex-shrink: 0; color: #fff; }

/* OTP modal — mobile verification, matches reyaalty.com's Crm/Lead/Mobile flow.
   Lives outside .lead-card deliberately: that card has backdrop-filter set,
   which makes it the containing block for any position:fixed descendant, so
   a modal nested inside it would be clipped to the card instead of covering
   the viewport. */
.otp-modal {
  position: fixed; inset: 0; z-index: 120;
  display: flex; align-items: center; justify-content: center;
  padding: var(--space-4);
}
.otp-modal[hidden] { display: none; }
.otp-modal__backdrop {
  position: absolute; inset: 0;
  background: rgba(15, 8, 30, .6);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
}
.otp-modal__panel {
  position: relative;
  width: 100%; max-width: 420px;
  max-height: 90vh;
  overflow-y: auto;
  background: #fff;
  border-radius: var(--radius-xl);
  padding: var(--space-5);
  box-shadow: 0 30px 60px -18px rgba(9,4,32,.5);
  animation: otp-modal-in .18s ease;
}
@keyframes otp-modal-in {
  from { opacity: 0; transform: translateY(8px) scale(.98); }
  to { opacity: 1; transform: none; }
}
.otp-modal__close {
  position: absolute; top: var(--space-3); right: var(--space-3);
  width: 32px; height: 32px;
  display: flex; align-items: center; justify-content: center;
  background: var(--color-bg-light);
  border: none; border-radius: 50%;
  color: var(--color-text-muted);
  font-size: 20px; line-height: 1;
  cursor: pointer;
}
.otp-modal__close:hover { background: var(--color-border); }

.otp-step h3 { font-size: 18px; font-weight: 700; color: var(--color-text); text-align: center; }
.otp-step__message { margin-top: 8px; font-size: 14px; color: var(--color-text-muted); text-align: center; }
.otp-step .form-row { margin-top: var(--space-5); }
.otp-step__resend {
  margin-top: var(--space-3);
  font-size: 13px;
  color: var(--color-text-muted);
  text-align: center;
}
.otp-step__buttons { display: flex; gap: var(--space-3); margin-top: var(--space-4); }
.otp-step__buttons .btn { flex: 1 1 0; margin-top: 0; }
.link-btn {
  background: none; border: none; padding: 0; cursor: pointer;
  color: var(--color-primary);
  font-weight: 700;
  font-size: inherit;
  text-decoration: underline;
}
.link-btn:disabled { color: var(--color-text-muted); cursor: not-allowed; }

@media (prefers-reduced-motion: reduce) {
  .otp-modal__panel { animation: none; }
}

/* ---------- Content card (About Property / Property Details / Amenities /
   Neighbourhood) — matches reyaalty.com's shared .cus-heading-2 + .website-card ---------- */
.details-card {
  background: #fff;
  border: 1px solid var(--card-border);
  border-radius: var(--card-radius);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}
.details-card__header {
  background: var(--card-header-bg);
  padding: 15px 20px;
  border-bottom: 1px solid var(--card-border);
}
.details-card__header h2 { margin: 0; font-size: 16px; font-weight: 700; color: var(--color-text); }
.details-card__body { padding: 20px; }

.overview-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px 32px;
}
.overview-grid__item { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.overview-grid__label { font-size: 14px; color: var(--color-text-muted); }
.overview-grid__value { font-size: 14px; font-weight: 700; color: var(--color-text); }

/* ---------- Description (About Property) ---------- */
.about-layout { display: flex; flex-direction: column; gap: var(--space-5); }
.about-gallery .gallery__track { aspect-ratio: 16 / 9; }

.description { font-size: 14.5px; line-height: 1.75; color: var(--color-text); }
.description--clamped {
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.description-toggle {
  margin-top: var(--space-3);
  display: inline-flex; align-items: center; gap: 4px;
  background: none; border: none; padding: 0;
  color: var(--color-primary); font-weight: 700; font-size: 12px;
  text-decoration: none;
  cursor: pointer;
}
.description-toggle svg { width: 13px; height: 13px; transition: transform .15s ease; }
.description-toggle[aria-expanded="true"] svg { transform: rotate(180deg); }

/* ---------- Amenities ---------- */
.amenities-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-3);
}
.amenity-card {
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: var(--space-2);
  background: var(--amenity-chip-bg);
  border: 1px solid transparent;
  border-radius: var(--radius-md);
  padding: 15px 5px;
}
.amenity-card__icon {
  width: 42px; height: 42px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: #fff;
  color: var(--color-primary);
  padding: 9px;
}
.amenity-card__icon svg, .amenity-card__icon img { width: 24px; height: 24px; }
.amenity-card__label { font-size: 12px; font-weight: 700; color: var(--color-text); }

/* ---------- Property gallery (contained slider, About Property) ---------- */
.about-gallery__hint { margin-top: var(--space-2); font-size: 12px; color: var(--color-text-muted); text-align: center; }

.gallery { position: relative; border-radius: var(--radius-lg); overflow: hidden; background: var(--color-bg-light); }
.gallery__track {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  aspect-ratio: 4 / 3;
}
.gallery__track::-webkit-scrollbar { display: none; }
.gallery__slide {
  flex: 0 0 100%;
  scroll-snap-align: start;
  width: 100%;
  height: 100%;
  object-fit: cover;
  cursor: pointer;
}
.gallery__slide:focus-visible { outline: 3px solid var(--color-accent); outline-offset: -3px; }
.gallery__arrow {
  display: none;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 38px; height: 38px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,.92);
  color: var(--color-primary);
  font-size: 20px;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 10px rgba(0,0,0,.18);
}
.gallery__arrow--prev { left: 10px; }
.gallery__arrow--next { right: 10px; }
.gallery__count {
  position: absolute;
  top: 10px; right: 10px;
  background: rgba(20,10,40,.6);
  color: #fff;
  font-size: 11.5px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 20px;
}
@media (hover: hover) and (pointer: fine) { .gallery__arrow { display: flex; } }

.gallery-layout { display: flex; flex-direction: column; gap: var(--space-2); }
.gallery-thumbs { display: none; }

@media (min-width: 768px) {
  .gallery-layout { flex-direction: row; height: clamp(320px, 36vw, 460px); }
  .gallery-layout .gallery { flex: 2.3; height: 100%; }
  .about-gallery .gallery__track { height: 100%; }
  .gallery-thumbs { display: flex; flex-direction: column; flex: 1; height: 100%; gap: var(--space-2); }
  .gallery-layout.no-thumbs .gallery-thumbs { display: none; }
  .gallery-layout.no-thumbs .gallery { flex: 1; }
}

.gallery-thumb {
  position: relative;
  flex: 1;
  min-height: 0;
  border: none;
  padding: 0;
  border-radius: var(--radius-md);
  overflow: hidden;
  cursor: pointer;
  background: var(--color-bg-light);
}
.gallery-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gallery-thumb.is-active { box-shadow: inset 0 0 0 3px var(--color-accent); }
.gallery-thumb:focus-visible { outline: 3px solid var(--color-accent); outline-offset: -2px; }
.gallery-thumb__more {
  position: absolute; inset: 0;
  background: rgba(20,10,40,.62);
  color: #fff;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
}
.gallery-thumb__more svg { width: 18px; height: 18px; }
.gallery-thumb__more span { font-size: 15px; font-weight: 700; }

/* ---------- Location card ---------- */
.location-card {
  display: flex;
  align-items: flex-start;
  gap: var(--space-4);
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  max-width: 560px;
}
.location-card__icon {
  width: 46px; height: 46px; flex-shrink: 0;
  border-radius: 50%;
  background: var(--color-badge-bg);
  color: var(--color-primary);
  display: flex; align-items: center; justify-content: center;
}
.location-card__icon svg { width: 22px; height: 22px; }
.location-card__place { font-size: 17px; font-weight: 800; color: var(--color-text); }
.location-card__note { margin-top: 4px; font-size: 13px; color: var(--color-text-muted); }

/* ---------- Neighbourhood strip (flat, always visible — an ad landing page
     shouldn't make a visitor tap through tabs to read six lines of context) ---------- */
.neighbourhood-list { display: flex; flex-wrap: wrap; gap: 10px; }
.neighbourhood-item {
  display: inline-flex; align-items: center; gap: 12px;
  background: var(--neighbourhood-chip-bg);
  border-radius: var(--radius-md);
  padding: 7px 12px;
  font-size: 12px;
}
.neighbourhood-item__name { color: var(--color-text); }
.neighbourhood-item__distance { font-weight: 700; color: var(--color-text); white-space: nowrap; }
.neighbourhood-empty { font-size: 13.5px; color: var(--color-text-muted); }

/* ---------- Thank-you page (the standing page behind /thank-you/) ---------- */
.thank-you { padding-top: var(--space-7); }
.thank-you__actions {
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: var(--space-3); margin-top: var(--space-5);
}

/* ---------- CTA band ---------- */
.cta-band { background: var(--gradient-brand); padding: var(--space-6) 0; }
.cta-band__inner {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--space-4);
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  align-items: flex-start;
}
.cta-band h2 { color: #fff; font-size: 21px; font-weight: 800; }
.cta-band p { color: rgba(255,255,255,.85); font-size: 13.5px; margin-top: 4px; }
.cta-band__link {
  display: inline-block; margin-top: var(--space-3);
  color: #fff; font-size: 13px; font-weight: 700;
  text-decoration: underline; text-underline-offset: 3px;
}
.cta-band .btn--primary { background: #fff; color: var(--color-primary); box-shadow: 0 8px 20px rgba(0,0,0,.18); }
.cta-band__disclaimer {
  max-width: var(--container-max);
  margin: var(--space-5) auto 0;
  padding: var(--space-4) var(--space-4) 0;
  border-top: 1px solid rgba(255,255,255,.25);
  font-size: 11.5px;
  color: rgba(255,255,255,.75);
  line-height: 1.6;
}

/* ---------- Footer (minimal — legal links only, no site navigation) ---------- */
.site-footer { background: #fff; border-top: 1px solid var(--color-border); }
.site-footer__inner {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: var(--space-5) var(--space-4);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-3);
  text-align: center;
}
.site-footer__logo { height: 22px; width: auto; opacity: .8; }
.site-footer__links { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--space-4); }
.site-footer__links a { font-size: 12.5px; font-weight: 600; color: var(--color-text-muted); }
.site-footer__links a:hover { color: var(--color-primary); }

/* ---------- Mobile sticky CTA ---------- */
.mobile-cta {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 40;
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  background: #fff;
  padding: 10px var(--space-4);
  padding-bottom: max(10px, env(safe-area-inset-bottom));
  box-shadow: 0 -6px 20px rgba(20, 10, 40, .12);
  height: var(--mobile-cta-height);
}
.mobile-cta.is-visible { display: flex; }
.mobile-cta__price strong { display: block; font-size: 17px; font-weight: 800; color: var(--color-primary); }
.mobile-cta__price span { font-size: 11px; color: var(--color-text-muted); }
.mobile-cta .btn { min-height: 42px; padding: 10px 20px; font-size: 14px; }

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(15, 8, 30, .92);
  display: flex; align-items: center; justify-content: center;
}
.lightbox[hidden] { display: none; }
.lightbox__image { max-width: 92vw; max-height: 82vh; border-radius: var(--radius-md); object-fit: contain; }
.lightbox__close, .lightbox__nav {
  position: absolute;
  background: rgba(255,255,255,.12);
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 42px; height: 42px;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px;
}
.lightbox__close { top: var(--space-4); right: var(--space-4); }
.lightbox__nav--prev { left: var(--space-3); top: 50%; transform: translateY(-50%); }
.lightbox__nav--next { right: var(--space-3); top: 50%; transform: translateY(-50%); }

/* ---------- Noscript ---------- */
.noscript-banner {
  background: var(--color-bg-light);
  color: var(--color-text);
  text-align: center;
  padding: var(--space-4);
  font-size: 13.5px;
  border-bottom: 1px solid var(--color-border);
}

/* ==========================================================================
   Contact page (index.html — any listing, loaded at runtime from ?pid=).
   A compact property summary over the hero gradient, then the same lead
   card. On phones the summary is a thumbnail row so the form stays near
   the top of the screen; from 1024px they sit side by side. With no ?pid=
   (a general enquiry) only the form shows, centred.
   ========================================================================== */

/* Several blocks here set their own display, which would beat the plain
   [hidden] attribute js/contact.js toggles. */
.page-contact [hidden] { display: none !important; }

/* No sticky mobile price bar on this page, so no room reserved for one.
   The column layout stretches the hero so a short state (the "unavailable"
   card) doesn't leave a blank band under the footer. */
.page-contact {
  padding-bottom: 0;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
.page-contact > main { flex: 1 0 auto; }

.hero.contact-hero { padding: var(--space-5) 0 var(--space-7); }
.contact-hero__inner {
  position: relative;
  max-width: 640px;
  margin: 0 auto;
  padding: 0 var(--space-4);
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--space-5);
}
/* General enquiry (no ?pid=): only the form, centred at every width. The
   extra class outranks the two-column rule from 1024px. */
.contact-hero__inner.is-general {
  max-width: 480px;
  grid-template-columns: minmax(0, 1fr);
}

.contact-property {
  color: #fff;
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  grid-template-areas:
    "photo head"
    "price price"
    "rera  rera"
    "link  link";
  column-gap: var(--space-4);
  align-items: start;
}

.contact-property__photo {
  grid-area: photo;
  aspect-ratio: 1;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: rgba(255,255,255,.08);
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,.45);
}
.contact-property__photo img { width: 100%; height: 100%; object-fit: cover; }
.contact-property__photo.is-placeholder svg { width: 40%; height: 40%; }

.contact-property__head { grid-area: head; min-width: 0; }
.contact-property__head .hero__tag { font-size: 11px; padding: 4px 10px; }
.contact-property__name {
  margin-top: var(--space-2);
  font-size: clamp(20px, 5.4vw, 26px);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -.01em;
  overflow-wrap: anywhere;
  background: linear-gradient(100deg, #fff 0%, var(--color-accent) 55%, #fff 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.contact-property__location { margin: var(--space-2) 0 0; font-size: 13px; align-items: flex-start; }
.contact-property__location svg { margin-top: 3px; }

.contact-property__price { grid-area: price; margin-top: var(--space-4); }
.contact-property .hero__rera { grid-area: rera; }
.contact-property__link {
  grid-area: link;
  justify-self: start;
  margin-top: var(--space-3);
  font-size: 13px; font-weight: 700;
  color: rgba(255,255,255,.85);
  text-underline-offset: 3px;
}
.contact-property__link:hover { color: #fff; }

/* Loading placeholders — replaced wholesale once the listing renders. */
.skeleton,
.contact-property[aria-busy="true"] .contact-property__photo {
  background: linear-gradient(90deg, rgba(255,255,255,.07) 25%, rgba(255,255,255,.16) 50%, rgba(255,255,255,.07) 75%);
  background-size: 200% 100%;
  animation: skeleton-shimmer 1.3s ease-in-out infinite;
}
.skeleton {
  display: inline-block;
  vertical-align: middle;
  width: 60%; height: 14px;
  border-radius: var(--radius-sm);
}
.skeleton--title { width: 85%; height: 26px; }
@keyframes skeleton-shimmer {
  from { background-position: 200% 0; }
  to { background-position: -200% 0; }
}

.contact-unavailable {
  grid-column: 1 / -1;
  justify-self: center;
  width: 100%; max-width: 520px;
  margin: var(--space-6) 0;
  background: #fff;
  border-radius: var(--radius-xl);
  padding: var(--space-6) var(--space-5);
  text-align: center;
  box-shadow: 0 30px 60px -18px rgba(9,4,32,.5);
}
.contact-unavailable > svg {
  display: block;
  margin: 0 auto;
  width: 56px; height: 56px;
  padding: 14px;
  border-radius: 50%;
  background: var(--amenity-chip-bg);
  color: var(--color-primary);
}
.contact-unavailable h1 { margin-top: var(--space-4); font-size: 20px; font-weight: 800; color: var(--color-text); }
.contact-unavailable p { margin-top: var(--space-2); font-size: 14px; color: var(--color-text-muted); }
.contact-unavailable__actions {
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: var(--space-3); margin-top: var(--space-5);
}

@media (min-width: 600px) {
  .contact-property { grid-template-columns: 128px minmax(0, 1fr); }
}

@media (min-width: 1024px) {
  .hero.contact-hero { padding: var(--space-7) 0 var(--space-8); }
  .contact-hero__inner {
    max-width: var(--container-max);
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
    gap: var(--space-7);
    align-items: start;
  }
  .contact-property {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "photo" "head" "price" "rera" "link";
  }
  .contact-property__photo { aspect-ratio: 2 / 1; margin-bottom: var(--space-5); }
  .contact-property__name { font-size: clamp(28px, 2.8vw, 34px); }
}

@media (min-width: 1280px) {
  .contact-hero__inner { padding-left: var(--space-6); padding-right: var(--space-6); }
}

@media (prefers-reduced-motion: reduce) {
  .skeleton,
  .contact-property[aria-busy="true"] .contact-property__photo { animation: none; }
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (min-width: 480px) {
  .amenities-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 768px) {
  .overview-grid { grid-template-columns: 1fr 1fr; }
  .cta-band__inner { flex-direction: row; align-items: center; justify-content: space-between; }
  .amenities-grid { grid-template-columns: repeat(5, 1fr); }
  .hero__inner { padding-top: var(--space-7); }
  .details-card__header { padding: 15px 32px; }
  .details-card__body { padding: 32px; }
}

@media (min-width: 1024px) {
  .hero { padding: var(--space-7) 0 var(--space-7); }
  .hero__inner {
    grid-template-columns: 1.35fr 1fr;
    align-items: center;
    gap: var(--space-7);
    padding-top: var(--space-7);
  }
  .mobile-cta { display: none !important; }
}

@media (min-width: 1280px) {
  .site-header__inner, .hero__inner, .section__inner, .cta-band__inner, .cta-band__disclaimer {
    padding-left: var(--space-6);
    padding-right: var(--space-6);
  }
}

@media (max-width: 1023.98px) {
  body { padding-bottom: var(--mobile-cta-height); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .gallery__slide { transition: none; }
}
