* { box-sizing: border-box; margin: 0; padding: 0; }
svg { width: 16px; height: 16px; flex-shrink: 0; }
html { scroll-behavior: smooth; }
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { font-family: inherit; border: none; background: none; cursor: pointer; }
input, select, textarea { font-family: inherit; font-size: var(--fs-body); }
body { overflow-x: hidden; }

/* Editorial heading system: every H1/H2 site-wide uses the premium display serif,
   overriding any inline font-size/weight leftover from earlier drafts. H3+ stay in
   Manrope for UI-scale legibility. */
h1, h2 { font-family: var(--bck-font-display) !important; font-weight: 400 !important; letter-spacing: -0.01em; line-height: 1.15; }

.container { max-width: var(--container-max); margin: 0 auto; padding: 0 24px; }
.container-wide { max-width: var(--container-max-wide); margin: 0 auto; padding: 0 24px; }
@media (max-width: 767px) { .container, .container-wide { padding: 0 18px; } }

.section { padding: var(--space-9) 0; }
@media (max-width: 767px) { .section { padding: var(--space-7) 0; } }
.section-dark { background: var(--bck-teal-deep); color: var(--bck-white); }
.section-soft { background: var(--bck-lavender-soft); }
.section-white { background: var(--bck-white); }

.section-head { max-width: 720px; margin-bottom: var(--space-6); }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head h2 { font-family: var(--bck-font-display); font-size: var(--fs-h2); font-weight: 400; color: var(--bck-text); margin-top: var(--space-3); line-height: 1.18; letter-spacing: -0.01em; }
.section-dark .section-head h2 { color: var(--bck-white); }
.section-head p { color: var(--bck-text-muted); margin-top: var(--space-3); font-size: var(--fs-body); }
.section-dark .section-head p { color: #C9DCE3; }
.section-head-row { display: flex; align-items: flex-end; justify-content: space-between; gap: var(--space-6); flex-wrap: wrap; margin-bottom: var(--space-7); }
.section-head-row .section-head { margin-bottom: 0; }
.section-head-row > a.bck-btn, .section-head-row > .carousel-nav { margin-top: var(--space-2); }
@media (max-width: 767px) { .section-head-row { margin-bottom: var(--space-6); } }

.placeholder-note { display: inline-block; font-size: 12px; font-weight: 600; color: var(--bck-teal-deep); background: var(--bck-lavender-soft); border-radius: var(--radius-pill); padding: 3px 12px; margin-bottom: var(--space-3); }

/* ---------- Placeholder image block ---------- */
.ph-img {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: inherit;
  background: linear-gradient(135deg, var(--bck-teal) 0%, var(--bck-teal-deep) 55%, var(--bck-lavender) 130%);
  display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 8px;
  overflow: hidden;
  color: rgba(255,255,255,0.9);
}
.ph-img svg { width: 34px; height: 34px; opacity: 0.85; }
.ph-img span { font-size: 12px; font-weight: 600; letter-spacing: 0.03em; opacity: 0.85; text-align:center; padding: 0 12px;}
.ph-img.wide { aspect-ratio: 16/10; }
.ph-img.tall { aspect-ratio: 3/4; }
.ph-img.square { aspect-ratio: 1/1; }
.ph-img.hero-media { aspect-ratio: auto; height: 100%; }

.map-embed { width: 100%; aspect-ratio: 16/9; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--bck-border); background: var(--bck-border); }
.map-embed iframe { width: 100%; height: 100%; border: 0; display: block; }
@media (max-width: 640px) { .map-embed { aspect-ratio: 4/3; } }

/* ---------- Real project photo (used once p.image is set in projects-data.js) ---------- */
.cover-img { display: block; width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: inherit; background: var(--bck-border); }
.cover-img.wide { aspect-ratio: 16/10; }
.cover-img.tall { aspect-ratio: 3/4; }
.cover-img.square { aspect-ratio: 1/1; }
.img-tag { position: absolute; left: 12px; bottom: 12px; z-index: 2; font-size: 11px; font-weight: 600; letter-spacing: 0.02em; color: #fff; background: rgba(23,36,42,0.62); backdrop-filter: blur(4px); padding: 4px 10px; border-radius: var(--radius-pill); pointer-events: none; }
.gallery-thumbs .gthumb { width: 100%; aspect-ratio: 1/1; object-fit: cover; border-radius: var(--radius-sm); cursor: pointer; border: 2px solid transparent; opacity: 0.85; transition: opacity 180ms ease-out, border-color 180ms ease-out; }
.gallery-thumbs .gthumb:hover, .gallery-thumbs .gthumb.active { opacity: 1; border-color: var(--bck-teal); }
.play-btn {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
}
.play-btn::after {
  content: ""; width: 54px; height: 54px; border-radius: 50%;
  background: rgba(255,255,255,0.92);
  box-shadow: var(--shadow-md);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%2324677F'%3E%3Cpath d='M8 5v14l11-7z'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: 56% center; background-size: 22px;
}

/* ---------- Buttons extras ---------- */
.bck-btn svg { width: 18px; height: 18px; }
.bck-btn-sm { padding: 10px 18px; font-size: var(--fs-small); }
.btn-row { display: flex; gap: var(--space-3); flex-wrap: wrap; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(250,250,249,0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--bck-border);
  transition: box-shadow 200ms ease-out;
}
.site-header.scrolled { box-shadow: var(--shadow-sm); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: var(--space-5); height: 84px; }
.header-logo img { height: 52px; width: auto; }
.header-nav { display: flex; align-items: center; gap: var(--space-6); }
.header-nav > ul { display: flex; gap: var(--space-5); }
.header-nav > ul > li { position: relative; }
.header-nav > ul > li > a { font-weight: 600; font-size: 15px; color: var(--bck-text); display: flex; align-items: center; gap: 4px; padding: 10px 2px; }
.header-nav > ul > li > a:hover, .header-nav > ul > li.open > a { color: var(--bck-teal); }
.header-nav > ul > li > a .chev { width: 10px; height: 10px; transition: transform 150ms; }
.header-nav > ul > li.open > a .chev { transform: rotate(180deg); }

.dropdown {
  position: absolute; top: 100%; left: 0; min-width: 240px;
  background: var(--bck-white); border: 1px solid var(--bck-border); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg); padding: var(--space-3);
  opacity: 0; visibility: hidden; transform: translateY(6px);
  transition: opacity 150ms ease-out, transform 150ms ease-out, visibility 150ms;
}
li.open .dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown a { display: block; padding: 10px 12px; border-radius: var(--radius-sm); font-size: 14px; font-weight: 500; color: var(--bck-text); }
.dropdown a:hover { background: var(--bck-off-white); color: var(--bck-teal); }

.mega { left: 50%; transform: translateX(-50%) translateY(6px); min-width: 560px; }
li.open .mega { transform: translateX(-50%) translateY(0); }
.mega-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-5); padding: var(--space-2); }
.mega-col h4 { font-size: var(--fs-eyebrow); text-transform: uppercase; letter-spacing: 0.06em; color: var(--bck-lavender); margin-bottom: 8px; padding: 0 12px; }
.mega-cta { grid-column: 1 / -1; border-top: 1px solid var(--bck-border); padding-top: var(--space-3); }

.header-actions { display: flex; align-items: center; gap: var(--space-3); }
.icon-btn { width: 42px; height: 42px; border-radius: 50%; display: flex; align-items: center; justify-content: center; border: 1.5px solid var(--bck-border); }
.icon-btn:hover { border-color: var(--bck-teal); }
.icon-btn svg { width: 18px; height: 18px; color: var(--bck-teal); }
.hamburger { display: none; }

@media (max-width: 1080px) {
  .header-nav > ul { display: none; }
  .hamburger { display: flex; width: 42px; height: 42px; border-radius: var(--radius-sm); border: 1.5px solid var(--bck-border); align-items: center; justify-content: center; }
  .hamburger svg { width: 20px; height: 20px; }
  .header-logo img { height: 42px; }
  .header-inner { height: 72px; }
}

/* Mobile drawer */
.mobile-drawer {
  position: fixed; inset: 0; z-index: 200; visibility: hidden;
}
.mobile-drawer.open { visibility: visible; }
.mobile-drawer-backdrop { position: absolute; inset: 0; background: rgba(23,36,42,0.5); opacity: 0; transition: opacity 200ms; }
.mobile-drawer.open .mobile-drawer-backdrop { opacity: 1; }
.mobile-drawer-panel {
  position: absolute; top: 0; right: 0; height: 100%; width: min(360px, 88vw);
  background: var(--bck-white); box-shadow: var(--shadow-lg);
  transform: translateX(100%); transition: transform 250ms ease-out;
  overflow-y: auto; padding: var(--space-5);
}
.mobile-drawer.open .mobile-drawer-panel { transform: translateX(0); }
.mobile-drawer-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: var(--space-5); }
.mobile-drawer-panel img { height: 38px; }
.mobile-acc-item { border-bottom: 1px solid var(--bck-border); }
.mobile-acc-trigger { width: 100%; display: flex; justify-content: space-between; align-items: center; padding: 14px 4px; font-weight: 600; }
.mobile-acc-trigger svg { width: 14px; height: 14px; transition: transform 150ms; }
.mobile-acc-item.open .mobile-acc-trigger svg { transform: rotate(180deg); }
.mobile-acc-panel { max-height: 0; overflow: hidden; transition: max-height 200ms ease-out; }
.mobile-acc-item.open .mobile-acc-panel { max-height: 400px; }
.mobile-acc-panel a { display: block; padding: 8px 4px; font-size: 14px; color: var(--bck-text-muted); }
.mobile-drawer-cta { margin-top: var(--space-5); display: flex; flex-direction: column; gap: var(--space-3); }

/* ---------- WhatsApp brand green (kept distinct from BestCarpetKey teal everywhere) ---------- */
:root { --wa-green: #25D366; --wa-green-dark: #1DA851; }
.wa-green, .icon-btn-wa, .wa-float, .mobile-sticky-bar .wa, .property-card .actions .wa {
  background: var(--wa-green) !important;
  border-color: var(--wa-green) !important;
  color: #fff !important;
  transition: background-color 200ms ease-out, border-color 200ms ease-out, transform 200ms ease-out;
}
.wa-green:hover, .icon-btn-wa:hover, .wa-float:hover, .mobile-sticky-bar .wa:hover, .property-card .actions .wa:hover {
  background: var(--wa-green-dark) !important;
  border-color: var(--wa-green-dark) !important;
}
.icon-btn-wa svg, .wa-float svg { color: #fff; }

/* ---------- WhatsApp float + mobile sticky bar ---------- */
.wa-float {
  position: fixed; bottom: 28px; right: 28px; z-index: 150;
  width: 58px; height: 58px; border-radius: 50%;
  box-shadow: var(--shadow-lg);
  display: flex; align-items: center; justify-content: center;
}
.wa-float svg { width: 28px; height: 28px; color: #fff; }
@media (max-width: 767px) { .wa-float { bottom: 84px; right: 16px; width: 50px; height: 50px; } }

.mobile-sticky-bar {
  display: none; position: fixed; bottom: 0; left: 0; right: 0; z-index: 140;
  background: var(--bck-white); border-top: 1px solid var(--bck-border); box-shadow: 0 -4px 16px rgba(23,36,42,0.08);
}
.mobile-sticky-bar .row { display: grid; grid-template-columns: 1fr 1fr 1.3fr; }
.mobile-sticky-bar a, .mobile-sticky-bar button { padding: 14px 6px; text-align: center; font-weight: 600; font-size: 13px; display: flex; flex-direction: column; align-items: center; gap: 4px; }
.mobile-sticky-bar svg { width: 18px; height: 18px; }
.mobile-sticky-bar .call { color: var(--bck-teal-deep); border-right: 1px solid var(--bck-border); }
.mobile-sticky-bar .wa { color: var(--bck-teal-deep); border-right: 1px solid var(--bck-border); }
.mobile-sticky-bar .enquire { background: var(--bck-teal); color: #fff; }
body.has-sticky-bar .mobile-sticky-bar { display: block; }
@media (min-width: 768px) { .mobile-sticky-bar { display: none !important; } }

/* ---------- Hero (cinematic, full-bleed photo) ---------- */
.hero {
  position: relative; overflow: hidden;
  min-height: 680px;
  display: flex; flex-direction: column; justify-content: center;
  padding: 140px 0 90px;
}
.hero-bg-wrap { position: absolute; inset: 0; z-index: 0; overflow: hidden; }
.hero-bg {
  position: absolute; inset: -2% -2%;
  background-image: url('../img/hero/sea-link-sunset.webp');
  background-size: cover;
  background-position: 62% 38%;
  background-repeat: no-repeat;
  transform: scale(1.04);
  will-change: transform;
  clip-path: inset(0 0 0 0%);
  animation: heroClipReveal 750ms cubic-bezier(.4,0,.2,1) both,
             heroZoomSettle 950ms cubic-bezier(.22,.9,.32,1) 450ms both;
}
.hero-overlay {
  position: absolute; inset: 0;
  background:
    linear-gradient(100deg, rgba(23,36,42,0.72) 0%, rgba(24,67,83,0.50) 30%, rgba(24,67,83,0.20) 55%, rgba(24,67,83,0.04) 78%),
    linear-gradient(to top, rgba(23,36,42,0.50) 0%, rgba(23,36,42,0) 40%);
}
.hero .container { position: relative; z-index: 1; }
.hero-content { max-width: 640px; }
.hero-eyebrow { color: var(--bck-lavender-soft); opacity:0; animation: fadeUp 550ms ease-out 150ms forwards; }
.hero-eyebrow .dot { background: var(--bck-lavender-soft); }
.hero-heading { font-family: var(--bck-font-display); font-size: var(--fs-display); font-weight: 400; line-height: 1.08; letter-spacing: -0.015em; margin-top: var(--space-4); color: #fff; }
.hero-heading .line-mask { display: block; overflow: hidden; }
.hero-heading .line-inner { display: block; transform: translateY(110%); opacity: 0; animation: lineReveal 750ms cubic-bezier(.19,1,.22,1) forwards; }
.hero-heading .line-mask:nth-child(1) .line-inner { animation-delay: 420ms; }
.hero-heading .line-mask:nth-child(2) .line-inner { animation-delay: 620ms; }
.hero-heading em { color: var(--bck-teal); font-style: italic; display: inline-block; opacity: 0; transform: translateY(14px); animation: fadeUp 550ms ease-out 760ms forwards; }
.hero p.lead { font-size: 18px; color: rgba(255,255,255,0.88); margin-top: var(--space-4); max-width: 480px; opacity:0; animation: fadeUp 650ms ease-out 900ms forwards; }
.hero .btn-row { margin-top: var(--space-6); opacity:0; animation: fadeUp 600ms ease-out 1050ms forwards; }
.hero .btn-row .bck-btn-secondary { color: #fff; border-color: rgba(255,255,255,0.65); }
.hero .btn-row .bck-btn-secondary:hover { background: rgba(255,255,255,0.12); }
.hero-locations { margin-top: var(--space-6); display: flex; gap: 10px; flex-wrap: wrap; align-items: center; opacity:0; animation: fadeUp 600ms ease-out 1150ms forwards; }
.hero-locations span { font-size: 12px; color: rgba(255,255,255,0.75); font-weight: 600; }
.hero-locations a { font-size: 13px; padding: 5px 14px; border-radius: var(--radius-pill); background: rgba(255,255,255,0.12); border: 1px solid rgba(255,255,255,0.35); color: #fff; font-weight: 600; backdrop-filter: blur(4px); transition: background-color 150ms; }
.hero-locations a:hover { background: rgba(255,255,255,0.22); }
.hero-badge {
  margin-top: var(--space-6); display: inline-flex; gap: 12px; align-items: center;
  background: rgba(255,255,255,0.14); border: 1px solid rgba(255,255,255,0.3); backdrop-filter: blur(6px);
  border-radius: var(--radius-lg); padding: 14px 20px;
  opacity:0; animation: fadeUp 600ms ease-out 1250ms forwards;
}
.hero-badge .num { font-weight: 800; font-size: 20px; color: #fff; }
.hero-badge .lbl { font-size: 12px; color: rgba(255,255,255,0.8); }

@keyframes fadeUp { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes heroClipReveal { from { clip-path: inset(0 0 0 100%); } to { clip-path: inset(0 0 0 0%); } }
@keyframes heroZoomSettle { from { transform: scale(1.04); } to { transform: scale(1); } }
@keyframes lineReveal { from { transform: translateY(110%); opacity: 0; } to { transform: translateY(0); opacity: 1; } }

@media (max-width: 1024px) { .hero-bg { background-position: 68% 36%; } }
@media (max-width: 767px) {
  .hero { min-height: 620px; padding: 110px 0 64px; }
  .hero-bg { background-position: 85% 55%; }
  .hero-overlay { background: linear-gradient(180deg, rgba(23,36,42,0.38) 0%, rgba(23,36,42,0.72) 50%, rgba(23,36,42,0.85) 100%); }
  .hero-content { max-width: 100%; }
}

/* ---------- Search panel ---------- */
.search-panel { background: var(--bck-white); border-radius: var(--radius-xl); box-shadow: var(--shadow-lg); padding: var(--space-5); margin-top: var(--space-8); position: relative; z-index: 10; opacity: 0; animation: fadeUp 600ms ease-out 1350ms forwards; }
@media (max-width: 767px) { .search-panel { margin-top: var(--space-6); } }
.search-tabs { display: flex; gap: 6px; margin-bottom: var(--space-4); }
.search-tabs button { padding: 10px 22px; border-radius: var(--radius-pill); font-weight: 700; font-size: 14px; color: var(--bck-text-muted); }
.search-tabs button.active { background: var(--bck-teal); color: #fff; }
.search-fields { display: grid; grid-template-columns: repeat(5, 1fr); gap: var(--space-3); align-items: end; }
.search-field { position: relative; }
.search-field label { display: block; font-size: 12px; font-weight: 600; color: var(--bck-text-muted); margin-bottom: 6px; }
.search-field input, .search-field select { width: 100%; padding: 12px 14px; border: 1.5px solid var(--bck-border); border-radius: var(--radius-sm); font-size: 14px; color: var(--bck-text); background: var(--bck-white); }
.search-field input:focus, .search-field select:focus { outline: none; border-color: var(--bck-teal); }
.search-submit { grid-column: span 1; }
.search-submit button { width: 100%; }
.autocomplete-list {
  position: absolute; top: calc(100% + 6px); left: 0; right: 0; background: #fff; border: 1px solid var(--bck-border);
  border-radius: var(--radius-md); box-shadow: var(--shadow-md); max-height: 260px; overflow-y: auto; z-index: 20; display: none;
}
.autocomplete-list.show { display: block; }
.autocomplete-list .grp-label { font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--bck-lavender); font-weight: 700; padding: 10px 14px 4px; }
.autocomplete-list button { display: block; width: 100%; text-align: left; padding: 9px 14px; font-size: 14px; }
.autocomplete-list button:hover { background: var(--bck-off-white); color: var(--bck-teal); }
@media (max-width: 1024px) { .search-fields { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .search-fields { grid-template-columns: 1fr; } .search-panel { margin-top: var(--space-5); } }

.search-lead-strip { margin-top: var(--space-5); background: linear-gradient(135deg, var(--bck-lavender-muted) 0%, var(--bck-lavender-soft) 100%); border-radius: var(--radius-lg); padding: var(--space-5); display: flex; align-items: center; justify-content: space-between; gap: var(--space-4); flex-wrap: wrap; }
.search-lead-strip h4 { color: var(--bck-text); }
.search-lead-strip p { color: var(--bck-text); opacity: 0.72; }
.search-lead-strip h4 { font-size: 17px; font-weight: 700; }
.search-lead-strip p { font-size: 14px; color: var(--bck-text-muted); margin-top: 2px; }

/* ---------- Discovery tiles ---------- */
.discovery-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: var(--space-4); }
.discovery-tile { background: var(--bck-white); border: 1px solid var(--bck-border); border-radius: var(--radius-lg); padding: var(--space-5); text-align: center; transition: transform 200ms, box-shadow 200ms; }
.discovery-tile:hover { transform: translateY(-4px) !important; box-shadow: var(--shadow-md); border-color: transparent; }
.discovery-tile .ic { width: 52px; height: 52px; border-radius: 50%; background: var(--bck-lavender-soft); display: flex; align-items: center; justify-content: center; margin: 0 auto var(--space-3); }
.discovery-tile .ic svg { width: 24px; height: 24px; color: var(--bck-teal-deep); }
.discovery-tile h4 { font-size: 15px; font-weight: 700; }
@media (max-width: 1024px) { .discovery-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 600px) { .discovery-grid { grid-template-columns: repeat(2, 1fr); } }

/* ---------- Carousel ---------- */
.carousel-wrap { position: relative; }
.carousel { display: flex; gap: var(--space-5); overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px; scrollbar-width: none; }
.carousel::-webkit-scrollbar { display: none; }
.carousel > * { scroll-snap-align: start; flex: 0 0 auto; }
.carousel-nav { display: flex; gap: 10px; }
.carousel-nav button { width: 42px; height: 42px; border-radius: 50%; border: 1.5px solid var(--bck-border); display: flex; align-items: center; justify-content: center; }
.carousel-nav button:hover { border-color: var(--bck-teal); color: var(--bck-teal); }
.carousel-nav svg { width: 16px; height: 16px; }

/* ---------- Property Card ---------- */
.property-card { width: 320px; background: var(--bck-white); border: 1px solid var(--bck-border); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-sm); transition: box-shadow 280ms ease-out, transform 280ms ease-out, border-color 280ms ease-out; }
.property-card:hover { box-shadow: var(--shadow-md); transform: translateY(-5px) !important; border-color: var(--bck-teal); }
.property-card .media { position: relative; overflow: hidden; border-radius: 0; }
.property-card .media img, .property-card .media .ph-img { border-radius: 0; transition: transform 500ms cubic-bezier(.25,.8,.25,1); }
.property-card:hover .media img, .property-card:hover .media .ph-img { transform: scale(1.07); }
.property-card .media::after { content:""; position:absolute; inset:0; border-bottom: 2px solid transparent; transition: border-color 280ms ease-out; pointer-events:none; }
.property-card:hover .media::after { border-color: var(--bck-lavender); }
.badge { position: absolute; top: 12px; left: 12px; background: var(--bck-white); font-size: 11px; font-weight: 700; padding: 5px 12px; border-radius: var(--radius-pill); color: var(--bck-teal-deep); }
.badge.accent { background: var(--bck-lavender); color: #fff; }
.badge-row { position:absolute; top:12px; left:12px; right:12px; display:flex; justify-content:space-between; align-items:flex-start; pointer-events:none; }
.badge-row .badge { position: static; }
.badge-row .fav-btn { pointer-events:auto; }
.fav-btn { width: 34px; height: 34px; border-radius: 50%; background: rgba(255,255,255,0.9); display: flex; align-items: center; justify-content: center; }
.fav-btn svg { width: 16px; height: 16px; color: var(--bck-teal-deep); }
.property-card .body { padding: var(--space-4); }
.property-card .loc { font-size: 12px; color: var(--bck-text-muted); font-weight: 600; display:flex; align-items:center; gap:4px; }
.property-card .loc svg { width: 12px; height: 12px; }
.property-card h4 { font-size: 17px; font-weight: 700; margin-top: 4px; }
.property-meta { display: flex; gap: var(--space-4); margin-top: var(--space-3); font-size: 13px; color: var(--bck-text-muted); }
.property-meta strong { color: var(--bck-text); font-weight: 700; }
.property-card .price-row { display: flex; align-items: center; justify-content: space-between; margin-top: var(--space-4); padding-top: var(--space-3); border-top: 1px solid var(--bck-border); }
.property-card .price { font-size: 18px; font-weight: 800; color: var(--bck-teal-deep); }
.property-card .actions { display: flex; gap: 8px; }
.property-card .actions a, .property-card .actions button { width: 38px; height: 38px; border-radius: 50%; display: flex; align-items: center; justify-content: center; border: 1.5px solid var(--bck-border); transition: transform 200ms ease-out, background-color 200ms ease-out, border-color 200ms ease-out; }
.property-card .actions a:hover, .property-card .actions button:hover { transform: translateY(-2px) scale(1.06); border-color: var(--bck-teal); }
.property-card .actions .wa { background: var(--bck-teal); border-color: var(--bck-teal); color: #fff; }
.property-card .actions .wa:hover { background: var(--bck-teal-deep); border-color: var(--bck-teal-deep); }
.property-card .actions svg { width: 16px; height: 16px; }
.property-card .view-details { display: flex; align-items: center; justify-content: center; gap: 6px; margin-top: var(--space-3); text-align: center; }
.property-card .view-details .vd-arrow { display: inline-block; transition: transform 200ms ease-out; }
.property-card .view-details:hover .vd-arrow { transform: translateX(4px); }

/* Tour card */
.tour-card { width: 300px; }
.tour-card .media { position: relative; aspect-ratio: 9/16; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--bck-border); display: block; transition: border-color 280ms ease-out, box-shadow 280ms ease-out; }
.tour-card .media video, .tour-card .media img { width: 100%; height: 100%; object-fit: cover; }
.tour-card .media .ph-img { border-radius: 0; transition: transform 500ms cubic-bezier(.25,.8,.25,1); }
.tour-card:hover .media { border-color: var(--bck-teal); box-shadow: var(--shadow-md); }
.tour-card:hover .media .ph-img { transform: scale(1.07); }
.tour-card .play-btn::after { transition: transform 220ms ease-out; }
.tour-card:hover .play-btn::after { transform: scale(1.1); }
.tour-card .info { padding: var(--space-3) 4px; }
.tour-card h4 { font-size: 15px; font-weight: 700; }
.tour-card .loc { font-size: 12px; color: var(--bck-text-muted); margin-top: 2px; }

/* Wide land / commercial card */
.property-card.wide { width: 380px; }
.property-card.wide .media { aspect-ratio: 16/10; }

/* ---------- Services / Location / Article / Partner cards ---------- */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-5); }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-5); }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-5); }
@media (max-width: 1024px) { .grid-3, .grid-4 { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 640px) { .grid-3, .grid-4, .grid-2 { grid-template-columns: 1fr; } }

.service-card { background: var(--bck-white); border: 1px solid var(--bck-border); border-radius: var(--radius-lg); padding: var(--space-6); transition: box-shadow 200ms, transform 200ms; }
.service-card:hover { box-shadow: var(--shadow-md); transform: translateY(-4px) !important; }
.service-card .ic { width: 54px; height: 54px; border-radius: var(--radius-md); background: var(--bck-teal); display: flex; align-items: center; justify-content: center; margin-bottom: var(--space-4); }
.service-card .ic svg { width: 26px; height: 26px; color: #fff; }
.service-card h3 { font-size: var(--fs-h3); margin-bottom: var(--space-2); }
.service-card p { color: var(--bck-text-muted); font-size: 14px; line-height: 1.6; margin-bottom: var(--space-4); }

.location-card { position: relative; border-radius: var(--radius-lg); overflow: hidden; height: 260px; }
.location-card .ph-img { position:absolute; inset:0; border-radius: 0; }
.location-card .overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(23,36,42,0.82), transparent 60%); display: flex; flex-direction: column; justify-content: flex-end; padding: var(--space-4); }
.location-card h4 { color: #fff; font-size: 20px; font-weight: 700; }
.location-card p { color: #E6EEF1; font-size: 12px; margin-top: 2px; }

.article-card { background: var(--bck-white); border: 1px solid var(--bck-border); border-radius: var(--radius-lg); overflow: hidden; }
.article-card .body { padding: var(--space-4); }
.article-card .cat { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--bck-lavender); }
.article-card h4 { font-size: 17px; font-weight: 700; margin-top: 6px; line-height: 1.35; }
.article-card p { font-size: 13px; color: var(--bck-text-muted); margin-top: 8px; }
.article-card .read-more { display: inline-block; margin-top: var(--space-3); font-weight: 700; font-size: 13px; color: var(--bck-teal); }

.partner-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: var(--space-4); }
.partner-tile { min-width: 0; background: var(--bck-white); border: 1.5px solid var(--bck-border); border-radius: var(--radius-md); height: 110px; display: flex; align-items: center; justify-content: center; color: var(--bck-text-muted); font-size: 11px; font-weight: 700; text-align:center; padding: 10px; }
.partner-tile-link {
  flex-direction: column; gap: 6px; position: relative; overflow: hidden;
  transition: transform 220ms ease-out, border-color 220ms ease-out, box-shadow 220ms ease-out;
}
.partner-tile-link:hover {
  transform: translateY(-4px) scale(1.03) !important;
  border-color: var(--bck-teal);
  box-shadow: 0 12px 28px rgba(56,136,167,0.18), 0 0 0 1px var(--bck-lavender-soft) inset;
}
.partner-tile-link:active { transform: translateY(-1px) scale(1.01) !important; }
.partner-tile-link img { width: 100%; height: 54px; object-fit: contain; object-position: center; }
.partner-tile-dark { background: var(--bck-teal-deep); border-color: var(--bck-teal-deep); }
.partner-tile-dark .partner-count { color: var(--bck-lavender-soft); }
.partner-wordmark { font-size: 13px; font-weight: 800; color: var(--bck-text); letter-spacing: -0.01em; }
.partner-count { font-size: 10px; font-weight: 600; color: var(--bck-lavender); text-transform: uppercase; letter-spacing: 0.04em; }
@media (max-width: 1024px) { .partner-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 600px) { .partner-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

.testimonial-card { background: var(--bck-white); border: 1px solid var(--bck-border); border-radius: var(--radius-lg); padding: var(--space-5); }
.testimonial-card .stars { color: var(--bck-lavender); font-size: 14px; margin-bottom: var(--space-3); }
.testimonial-card p.quote { font-size: 15px; line-height: 1.6; color: var(--bck-text); }
.testimonial-card .who { display: flex; align-items: center; gap: 10px; margin-top: var(--space-4); }
.testimonial-card .avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--bck-lavender-soft); display: flex; align-items: center; justify-content: center; font-weight: 700; color: var(--bck-teal-deep); }
.testimonial-card .name { font-weight: 700; font-size: 14px; }
.testimonial-card .loc { font-size: 12px; color: var(--bck-text-muted); }

/* ---------- Stats ---------- */
.stats-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-6); text-align: center; }
.stat .num { font-size: 44px; font-weight: 800; color: var(--bck-white); }
.stat .lbl { font-size: 14px; color: #C9DCE3; margin-top: 6px; }
.section-dark .placeholder-note { background: rgba(255,255,255,0.12); color: #E6EEF1; }
@media (max-width: 640px) { .stats-grid { grid-template-columns: 1fr; gap: var(--space-5); } }

/* ---------- Timeline (process) ---------- */
.timeline { display: grid; grid-template-columns: repeat(5, 1fr); gap: var(--space-4); position: relative; }
.timeline::before { content:""; position:absolute; top: 26px; left: 40px; right: 40px; height: 2px; background: var(--bck-border); }
.timeline-step { position: relative; text-align: center; }
.timeline-step .n { width: 52px; height: 52px; border-radius: 50%; background: var(--bck-teal); color: #fff; font-weight: 800; display: flex; align-items: center; justify-content: center; margin: 0 auto 14px; position: relative; z-index: 2; }
.timeline-step h4 { font-size: 14px; font-weight: 700; }
@media (max-width: 900px) { .timeline { grid-template-columns: 1fr; gap: var(--space-6); } .timeline::before { display: none; } }

/* ---------- Journey split ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-8); align-items: center; }
.split .ph-img { border-radius: var(--radius-xl); }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } }

/* ---------- CTA band ---------- */
.cta-band { background: var(--bck-teal-deep); border-radius: var(--radius-xl); padding: var(--space-8); text-align: center; color: #fff; }
.cta-band h2 { font-family: var(--bck-font-display); font-size: var(--fs-h2); font-weight: 400; letter-spacing: -0.01em; }
.cta-band p { color: #C9DCE3; margin-top: var(--space-3); }
.cta-band .btn-row { justify-content: center; margin-top: var(--space-6); }
.cta-band .bck-btn-secondary { color: #fff; border-color: rgba(255,255,255,0.5); }
.cta-band .bck-btn-secondary:hover { background: rgba(255,255,255,0.1); }

.lavender-box {
  background: linear-gradient(150deg, var(--bck-lavender-muted) 0%, var(--bck-off-white) 70%);
  border: 1px solid var(--bck-lavender-soft);
  border-radius: var(--radius-xl);
  padding: var(--space-7);
  box-shadow: var(--shadow-md);
}
@media (max-width: 640px) { .lavender-box { padding: var(--space-5); } }

.cta-lavender { background: linear-gradient(120deg, var(--bck-lavender-muted), var(--bck-off-white)); border-radius: var(--radius-xl); padding: var(--space-7); display: flex; align-items: center; justify-content: space-between; gap: var(--space-5); flex-wrap: wrap; border: 1px solid var(--bck-lavender-soft); }
.cta-lavender h3 { color: var(--bck-text); }
.cta-lavender p { color: var(--bck-text); opacity: 0.72; }
.cta-lavender h3 { font-size: 22px; font-weight: 700; }
.cta-lavender p { color: var(--bck-text-muted); margin-top: 6px; max-width: 480px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--bck-teal-deep); color: #E6EEF1; }
.footer-top { padding: var(--space-8) 0 var(--space-6); display: grid; grid-template-columns: 1.4fr repeat(4, 1fr); gap: var(--space-5); }
.footer-brand .logo-plate { display: inline-block; background: #fff; border-radius: var(--radius-md); padding: 8px 14px; margin-bottom: var(--space-3); }
.footer-brand img { height: 40px; display: block; }
.footer-brand p { font-size: 13px; color: #B7CBD1; line-height: 1.6; max-width: 260px; }
.footer-social { display: flex; gap: 10px; margin-top: var(--space-4); }
.footer-social a { width: 36px; height: 36px; border-radius: 50%; border: 1px solid rgba(255,255,255,0.25); display: flex; align-items: center; justify-content: center; color: #E6EEF1; transition: transform 200ms ease-out, background-color 200ms ease-out, border-color 200ms ease-out, color 200ms ease-out; }
.footer-social a:hover { transform: translateY(-3px) scale(1.08); border-color: transparent; }
.footer-social a.social-youtube:hover { background: #FF0000; color: #fff; }
.footer-social a.social-facebook:hover { background: #1877F2; color: #fff; }
.footer-social a.social-linkedin:hover { background: #0A66C2; color: #fff; }
.footer-social a.social-x:hover { background: #000; color: #fff; }
.footer-social a.social-instagram:hover { background: radial-gradient(circle at 30% 110%, #FDF497 0%, #FD5949 45%, #D6249F 60%, #285AEB 90%); color: #fff; border-color: transparent; }
.footer-social svg { width: 15px; height: 15px; }
.footer-col h5 { font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--bck-lavender-soft); margin-bottom: var(--space-3); }
.footer-col a, .footer-col p { display: block; font-size: 14px; color: #C9DCE3; padding: 5px 0; }
.footer-col a:hover { color: #fff; }
.footer-seo { border-top: 1px solid rgba(255,255,255,0.14); padding: var(--space-6) 0; }
.footer-seo h5 { font-size: 13px; color: var(--bck-lavender-soft); text-transform: uppercase; letter-spacing: .06em; margin-bottom: var(--space-3); }
.footer-seo-links { display: flex; flex-wrap: wrap; gap: 10px 22px; }
.footer-seo-links a { font-size: 13px; color: #C9DCE3; }
.footer-seo-links a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.14); padding: var(--space-4) 0; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; font-size: 13px; color: #B7CBD1; }
.footer-bottom-right { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.footer-rera { font-weight: 700; color: var(--bck-lavender-soft); letter-spacing: 0.02em; white-space: nowrap; }
.footer-bottom .legal-links { display: flex; gap: 16px; flex-wrap: wrap; }
@media (max-width: 1024px) { .footer-top { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .footer-top { grid-template-columns: 1fr; } }

/* ---------- Breadcrumb ---------- */
.breadcrumb { display: flex; gap: 8px; font-size: 13px; color: var(--bck-text-muted); padding: var(--space-4) 0; flex-wrap: wrap; }
.breadcrumb a { color: var(--bck-teal); font-weight: 600; }
.breadcrumb span.sep { opacity: 0.5; }

/* ---------- Page hero (inner pages) ---------- */
.page-hero { background: linear-gradient(120deg, var(--bck-lavender-soft), var(--bck-off-white)); padding: var(--space-8) 0 var(--space-6); }
.page-hero h1 { font-family: var(--bck-font-display); font-size: var(--fs-h1); font-weight: 400; letter-spacing: -0.01em; line-height: 1.12; margin-top: var(--space-3); }
.page-hero p { color: var(--bck-text-muted); margin-top: var(--space-3); max-width: 640px; }

/* ---------- Filters bar (listing) ---------- */
.filters-bar { background: var(--bck-white); border: 1px solid var(--bck-border); border-radius: var(--radius-lg); padding: var(--space-4); display: grid; grid-template-columns: repeat(6, 1fr); gap: var(--space-3); margin-bottom: var(--space-6); align-items: end; }
.filters-bar .search-field label { margin-bottom: 4px; }
.filters-bar select, .filters-bar input { padding: 10px 12px; }
.listing-toolbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: var(--space-5); flex-wrap: wrap; gap: 10px; }
.listing-toolbar .count { font-size: 14px; color: var(--bck-text-muted); }
.listing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-5); }
.listing-grid .property-card { width: 100%; }
@media (max-width: 1024px) { .filters-bar { grid-template-columns: repeat(3,1fr); } .listing-grid { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 640px) { .filters-bar { grid-template-columns: 1fr 1fr; } .listing-grid { grid-template-columns: 1fr; } }

/* ---------- FAQ ---------- */
.faq-item { border-bottom: 1px solid var(--bck-border); }
.faq-q { width: 100%; display: flex; justify-content: space-between; align-items: center; padding: var(--space-4) 4px; font-weight: 700; font-size: 15px; text-align: left; }
.faq-q svg { width: 16px; height: 16px; flex-shrink: 0; transition: transform 150ms; }
.faq-item.open .faq-q svg { transform: rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height 200ms ease-out; font-size: 14px; color: var(--bck-text-muted); line-height: 1.6; }
.faq-item.open .faq-a { max-height: 300px; padding-bottom: var(--space-4); }

/* ---------- Forms ---------- */
.bck-form { background: var(--bck-white); border: 1px solid var(--bck-border); border-radius: var(--radius-xl); padding: var(--space-6); box-shadow: var(--shadow-sm); }
.bck-form .form-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-4); margin-bottom: var(--space-4); }
.bck-form .form-group { display: flex; flex-direction: column; gap: 6px; }
.bck-form .form-group.full { grid-column: 1 / -1; }
.bck-form label { font-size: 13px; font-weight: 700; color: var(--bck-text); }
.bck-form label .opt { font-weight: 400; color: var(--bck-text-muted); }
.bck-form input, .bck-form select, .bck-form textarea {
  padding: 12px 14px; border: 1.5px solid var(--bck-border); border-radius: var(--radius-sm); background: var(--bck-off-white); color: var(--bck-text);
}
.bck-form input:focus, .bck-form select:focus, .bck-form textarea:focus { outline: none; border-color: var(--bck-teal); background: #fff; }
.bck-form textarea { resize: vertical; min-height: 100px; }
.bck-form .form-note { font-size: 12px; color: var(--bck-text-muted); margin-top: var(--space-2); }
@media (max-width: 640px) { .bck-form .form-row { grid-template-columns: 1fr; } }

/* ---------- Calculator ---------- */
.calc-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-7); align-items: start; }
.calc-inputs .form-group { margin-bottom: var(--space-4); }
.calc-inputs label { display: flex; justify-content: space-between; font-size: 13px; font-weight: 700; margin-bottom: 6px; }
.calc-inputs label .val { color: var(--bck-teal-deep); }
.calc-inputs input[type="range"] { width: 100%; accent-color: var(--bck-teal); }
.calc-inputs input[type="number"] { width: 100%; padding: 10px 12px; border: 1.5px solid var(--bck-border); border-radius: var(--radius-sm); }
.calc-result { background: var(--bck-teal-deep); color: #fff; border-radius: var(--radius-xl); padding: var(--space-6); position: sticky; top: 110px; }
.calc-result .emi-num { font-size: 40px; font-weight: 800; }
.calc-result .emi-lbl { font-size: 13px; color: #C9DCE3; margin-bottom: var(--space-5); }
.calc-breakdown { display: flex; flex-direction: column; gap: var(--space-3); margin-top: var(--space-5); }
.calc-breakdown .row { display: flex; justify-content: space-between; font-size: 14px; border-bottom: 1px solid rgba(255,255,255,0.15); padding-bottom: var(--space-3); }
.calc-bar { display:flex; height: 10px; border-radius: var(--radius-pill); overflow:hidden; margin-top: var(--space-4); background: rgba(255,255,255,0.15); }
.calc-bar .principal { background: #fff; }
.calc-bar .interest { background: var(--bck-lavender); }
.calc-disclaimer { font-size: 12px; color: var(--bck-text-muted); background: var(--bck-off-white); border: 1px dashed var(--bck-border); border-radius: var(--radius-md); padding: var(--space-4); margin-top: var(--space-6); }
@media (max-width: 900px) { .calc-wrap { grid-template-columns: 1fr; } .calc-result { position: static; } }

/* ---------- Utility ---------- */
.mt-1{margin-top:8px}.mt-2{margin-top:16px}.mt-3{margin-top:24px}.mt-4{margin-top:32px}.mt-5{margin-top:48px}
.text-center{text-align:center}
.eyebrow-wrap{display:flex;align-items:center;gap:8px}
.eyebrow-wrap .dot{width:6px;height:6px;border-radius:50%;background:var(--bck-lavender)}
.tag-row { display: flex; gap: 8px; flex-wrap: wrap; margin-top: var(--space-4); }
.tag-chip { font-size: 13px; padding: 8px 16px; border-radius: var(--radius-pill); border: 1.5px solid var(--bck-border); font-weight: 600; }
.tag-chip.active { background: var(--bck-lavender); border-color: var(--bck-lavender); color: #fff; }

/* ---------- Detail page ---------- */
.gallery-main { border-radius: var(--radius-xl); overflow: hidden; margin-bottom: var(--space-3); }
.gallery-thumbs { display: grid; grid-template-columns: repeat(5,1fr); gap: 10px; }
.gallery-thumbs .ph-img { border-radius: var(--radius-sm); aspect-ratio: 1/1; }
.detail-head { display: flex; justify-content: space-between; align-items: flex-start; gap: var(--space-5); flex-wrap: wrap; margin: var(--space-5) 0; }
.detail-head h1 { font-family: var(--bck-font-display); font-size: var(--fs-h2); font-weight: 400; letter-spacing: -0.01em; }
.detail-head .loc { color: var(--bck-text-muted); font-weight: 600; margin-top: 6px; display:flex; align-items:center; gap:6px; }
.detail-price { text-align: right; }
.detail-price .amount { font-size: 30px; font-weight: 800; color: var(--bck-teal-deep); }
.detail-price .label { font-size: 12px; color: var(--bck-text-muted); }
.detail-grid { display: grid; grid-template-columns: 1fr 340px; gap: var(--space-7); align-items: start; }
.info-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-4); background: var(--bck-white); border:1px solid var(--bck-border); border-radius: var(--radius-lg); padding: var(--space-5); }
.info-grid .item .lbl { font-size: 12px; color: var(--bck-text-muted); }
.info-grid .item .val { font-weight: 700; margin-top: 2px; }
.amenity-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-3); }
.amenity-grid .item { display: flex; align-items: center; gap: 8px; font-size: 14px; padding: 10px; background: var(--bck-off-white); border-radius: var(--radius-sm); }
.amenity-grid svg { width: 16px; height: 16px; color: var(--bck-teal); }
.enquiry-card { background: var(--bck-white); border: 1px solid var(--bck-border); border-radius: var(--radius-xl); padding: var(--space-5); position: sticky; top: 110px; box-shadow: var(--shadow-sm); }
.enquiry-card h4 { font-size: 17px; font-weight: 700; margin-bottom: var(--space-4); }
.enquiry-card .btn-row { flex-direction: column; }
.enquiry-card .btn-row .bck-btn { width: 100%; }
@media (max-width: 1024px) { .detail-grid { grid-template-columns: 1fr; } .enquiry-card { position: static; } }
@media (max-width: 640px) { .gallery-thumbs { grid-template-columns: repeat(3,1fr); } .amenity-grid, .info-grid { grid-template-columns: repeat(2,1fr); } }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 550ms ease-out, transform 550ms ease-out; }
.reveal.in { opacity: 1; transform: translateY(0); }

/* Staggered card reveals: compounds with the parent .reveal fade above — grid children
   cascade in slightly after the section itself starts appearing. Works for both static
   markup and JS-rendered cards, since children already exist in the DOM before the
   IntersectionObserver toggles .in on the parent. */
.grid-2.reveal > *, .grid-3.reveal > *, .grid-4.reveal > *,
.discovery-grid.reveal > *, .partner-grid.reveal > *, .stats-grid.reveal > *,
.timeline.reveal > *, .carousel-wrap.reveal .carousel > * {
  opacity: 0; transform: translateY(18px);
  transition: opacity 450ms ease-out, transform 450ms ease-out;
}
.grid-2.reveal.in > *, .grid-3.reveal.in > *, .grid-4.reveal.in > *,
.discovery-grid.reveal.in > *, .partner-grid.reveal.in > *, .stats-grid.reveal.in > *,
.timeline.reveal.in > *, .carousel-wrap.reveal.in .carousel > * {
  opacity: 1; transform: translateY(0);
}
.grid-2.reveal > *:nth-child(1), .grid-3.reveal > *:nth-child(1), .grid-4.reveal > *:nth-child(1), .discovery-grid.reveal > *:nth-child(1), .partner-grid.reveal > *:nth-child(1), .stats-grid.reveal > *:nth-child(1), .timeline.reveal > *:nth-child(1), .carousel-wrap.reveal .carousel > *:nth-child(1) { transition-delay: 0ms; }
.grid-2.reveal > *:nth-child(2), .grid-3.reveal > *:nth-child(2), .grid-4.reveal > *:nth-child(2), .discovery-grid.reveal > *:nth-child(2), .partner-grid.reveal > *:nth-child(2), .stats-grid.reveal > *:nth-child(2), .timeline.reveal > *:nth-child(2), .carousel-wrap.reveal .carousel > *:nth-child(2) { transition-delay: 70ms; }
.grid-2.reveal > *:nth-child(3), .grid-3.reveal > *:nth-child(3), .grid-4.reveal > *:nth-child(3), .discovery-grid.reveal > *:nth-child(3), .partner-grid.reveal > *:nth-child(3), .stats-grid.reveal > *:nth-child(3), .timeline.reveal > *:nth-child(3), .carousel-wrap.reveal .carousel > *:nth-child(3) { transition-delay: 140ms; }
.grid-2.reveal > *:nth-child(4), .grid-3.reveal > *:nth-child(4), .grid-4.reveal > *:nth-child(4), .discovery-grid.reveal > *:nth-child(4), .partner-grid.reveal > *:nth-child(4), .timeline.reveal > *:nth-child(4), .carousel-wrap.reveal .carousel > *:nth-child(4) { transition-delay: 210ms; }
.grid-2.reveal > *:nth-child(5), .discovery-grid.reveal > *:nth-child(5), .partner-grid.reveal > *:nth-child(5), .timeline.reveal > *:nth-child(5), .carousel-wrap.reveal .carousel > *:nth-child(5) { transition-delay: 280ms; }
.discovery-grid.reveal > *:nth-child(n+6), .partner-grid.reveal > *:nth-child(n+6), .carousel-wrap.reveal .carousel > *:nth-child(n+6) { transition-delay: 350ms; }

@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal > * { opacity: 1 !important; transform: none !important; transition: none !important; }
  .hero-eyebrow, .hero-heading .line-inner, .hero-heading em, .hero p.lead, .hero .btn-row, .hero-locations, .hero-badge, .hero-bg, .hero .search-panel {
    animation: none !important; opacity: 1 !important; transform: none !important; clip-path: none !important;
  }
  .property-card, .property-card .media img, .property-card .media .ph-img, .tour-card .media .ph-img, .hero-parallax { transition: none !important; transform: none !important; }
}

/* ---------- 404 / thank you ---------- */
.state-page { text-align: center; padding: var(--space-10) 0; }
.state-page .code { font-size: 100px; font-weight: 800; color: var(--bck-lavender-soft); line-height: 1; }
.state-page h1 { font-size: var(--fs-h2); margin-top: var(--space-3); }
.state-page p { color: var(--bck-text-muted); margin-top: var(--space-3); max-width: 480px; margin-left:auto; margin-right:auto; }
.state-page .btn-row { justify-content: center; margin-top: var(--space-6); }

/* ---------- Empty state (carousels + listing grids) ---------- */
.empty-state { flex: 1 1 100%; width: 100%; max-width: 100%; min-width: 0; }
.empty-state p { color: var(--bck-text-muted); padding: 24px 0; white-space: normal; overflow-wrap: break-word; }
.listing-grid > .empty-state { grid-column: 1 / -1; }

/* =====================================================================
   MOBILE OPTIMIZATION
   Breakpoint system:  <=374 small mobile · 375-767 mobile · 768-1023 tablet · >=1024 desktop.
   Everything below is scoped to a max-width query, so desktop (>=1024px) is untouched.
   Type scale lives in tokens.css (--fs-*, clamp()-based on mobile).
   ===================================================================== */
@media (max-width: 767px) {
  input, select, textarea { font-size: 16px; }          /* stops iOS zoom-on-focus */

  /* ----- rhythm ----- */
  .section { padding: 48px 0; }
  .section-head { margin-bottom: var(--space-5); }
  .section-head h2 { margin-top: 8px; line-height: 1.12; }
  .section-head p { font-size: 15px; line-height: 1.55; margin-top: 8px; }
  .section-head-row { margin-bottom: var(--space-5); gap: 14px; }
  .section-head-row .section-head { flex: 1 1 100%; margin-bottom: 0; }
  .section-head-row > a.bck-btn { margin-top: 0; min-height: 44px; }
  .placeholder-note { border-radius: var(--radius-md); line-height: 1.45; padding: 7px 12px; font-size: 12.5px; }
  .bck-btn { min-height: 48px; font-size: 16px; padding: 12px 22px; }
  .bck-btn-sm { min-height: 44px; font-size: 15px; padding: 10px 18px; }

  /* ----- header ----- */
  .header-inner { height: 64px; gap: 8px; }
  .header-logo img { height: 36px; }
  .header-actions { gap: 8px; }
  .icon-btn, .hamburger { width: 44px; height: 44px; }

  /* ----- floating WhatsApp (pages with the sticky action bar already have a WhatsApp button) ----- */
  .wa-float { width: 56px; height: 56px; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom, 0px)); }
  .wa-float svg { width: 27px; height: 27px; }
  body.has-sticky-bar .wa-float { display: none; }
  body.has-sticky-bar { padding-bottom: calc(68px + env(safe-area-inset-bottom, 0px)); }

  /* ----- hero ----- */
  .hero { min-height: 0; padding: 36px 0 40px; }
  .hero-heading { line-height: 1.1; margin-top: 12px; }
  .hero p.lead { font-size: 16px; line-height: 1.55; margin-top: 12px; max-width: none; }
  .hero .btn-row { margin-top: 20px; flex-direction: column; gap: 10px; }
  .hero .btn-row .bck-btn { width: 100%; min-height: 50px; }
  .hero-locations { margin-top: 18px; gap: 8px; }
  .hero-locations a { font-size: 13px; padding: 8px 14px; }
  .hero-badge { margin-top: 16px; padding: 10px 16px; border-radius: var(--radius-md); }
  /* calmer, shorter entrance on phones */
  @keyframes fadeUp { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
  .hero-eyebrow { animation-delay: 80ms; animation-duration: 420ms; }
  .hero-heading .line-mask:nth-child(1) .line-inner { animation-delay: 200ms; animation-duration: 600ms; }
  .hero-heading .line-mask:nth-child(2) .line-inner { animation-delay: 340ms; animation-duration: 600ms; }
  .hero-heading em { animation-delay: 520ms; animation-duration: 420ms; }
  .hero p.lead { animation-delay: 560ms; animation-duration: 480ms; }
  .hero .btn-row { animation-delay: 660ms; animation-duration: 460ms; }
  .hero-locations { animation-delay: 740ms; animation-duration: 460ms; }
  .hero-badge { animation-delay: 800ms; animation-duration: 460ms; }
  .hero .search-panel { animation-delay: 880ms; animation-duration: 480ms; }

  /* ----- search panel ----- */
  .search-panel { margin-top: 22px; padding: 16px; border-radius: 20px; }
  .search-tabs { margin-bottom: 12px; }
  .search-tabs button { padding: 8px 22px; min-height: 40px; font-size: 14px; }
  .search-fields { grid-template-columns: 1fr; gap: 10px; }
  .search-field label { font-size: 12px; margin-bottom: 4px; }
  .search-field input, .search-field select { height: 52px; padding: 0 14px; font-size: 16px; border-radius: var(--radius-md); }
  .search-submit label { display: none; }
  .search-submit .bck-btn { min-height: 54px; width: 100%; margin-top: 2px; }
  .search-lead-strip { margin-top: 14px; padding: 16px; gap: 12px; border-radius: var(--radius-lg); flex-direction: column; align-items: stretch; }
  .search-lead-strip h4 { font-size: 16px; line-height: 1.25; }
  .search-lead-strip p { font-size: 13.5px; line-height: 1.45; color: var(--bck-text); opacity: 0.82; }
  .search-lead-strip .bck-btn { width: 100%; min-height: 46px; }

  /* ----- quick discovery ----- */
  .discovery-grid { gap: 14px; }
  .discovery-tile { padding: 18px 10px; display: flex; flex-direction: column; align-items: center; justify-content: center; min-width: 0; }
  .discovery-tile .ic { width: 58px; height: 58px; margin: 0 auto 10px; }
  .discovery-tile .ic svg { width: 26px; height: 26px; }
  .discovery-tile h4 { font-size: clamp(16px, 4.9vw, 20px); line-height: 1.2; overflow-wrap: break-word; }

  /* ----- carousels bleed to the screen edge so the next card peeks in ----- */
  .carousel-wrap { margin: 0 -18px; }
  .carousel { gap: 14px; padding: 0 18px 10px; scroll-padding-left: 18px; -webkit-overflow-scrolling: touch; overscroll-behavior-x: contain; }
  .carousel-nav button { width: 44px; height: 44px; }

  /* virtual tour cards: compact 4:3 media (desktop keeps the 9:16 reel format) */
  .tour-card { width: 84vw; max-width: 340px; }
  .tour-card .media { aspect-ratio: 4/3; }
  .tour-card .media .ph-img { height: 100%; aspect-ratio: auto; }
  .tour-card .info { padding: 10px 2px 0; }
  .tour-card h4 { font-size: 18px; line-height: 1.25; }
  .tour-card .loc { font-size: 13px; }
  .tour-card .info a { display: inline-block; padding: 6px 0; font-size: 14px !important; }
  .play-btn::after { width: 48px; height: 48px; background-size: 20px; }
  .tour-card .media .ph-img { justify-content: flex-end; padding-bottom: 14px; }
  .tour-card .media .ph-img svg { display: none; }
  .ph-img span { font-size: 11.5px; }

  /* ----- property / project cards ----- */
  .property-card, .property-card.wide { width: 100%; max-width: 100%; }
  .carousel .property-card, .carousel .property-card.wide { width: calc(100vw - 36px); max-width: 440px; }
  .property-card .media .ph-img, .property-card .media .cover-img,
  .property-card .media .ph-img.wide, .property-card .media .cover-img.wide { aspect-ratio: 16/10; }
  .property-card .body { padding: 14px 16px 16px; }
  .property-card .loc { font-size: 13px; }
  .property-card h4 { font-size: 21px; line-height: 1.22; margin-top: 4px; }
  .property-meta { margin-top: 8px; font-size: 15px; gap: 14px; flex-wrap: wrap; }
  .property-card .price-row { margin-top: 12px; padding-top: 12px; gap: 12px; }
  .property-card .price { font-size: 22px; line-height: 1.2; min-width: 0; }
  .property-card .actions a, .property-card .actions button { width: 44px; height: 44px; }
  .property-card .actions svg { width: 18px; height: 18px; }
  .property-card .view-details { min-height: 48px; margin-top: 12px; font-size: 15px; width: 100% !important; }
  .badge { font-size: 12px; padding: 5px 12px; }
  .fav-btn { width: 44px; height: 44px; }
  .img-tag { left: 10px; bottom: 10px; font-size: 10.5px; }

  /* ----- empty states ----- */
  .empty-state { background: var(--bck-white); border: 1px dashed var(--bck-lavender); border-radius: var(--radius-lg); padding: 16px 18px; }
  .empty-state p { padding: 0; margin: 0; font-size: 15px; line-height: 1.55; max-width: 56ch; }

  /* ----- services ----- */
  .grid-3, .grid-4, .grid-2 { gap: 14px; }
  .service-card { padding: 28px 24px; }
  .service-card h3 { font-size: clamp(21px, 5.8vw, 24px); line-height: 1.2; }
  .service-card p { font-size: 15.5px; line-height: 1.55; }
  .service-card .bck-btn { min-height: 48px; }
  .service-card:has(> .ic) { display: grid; grid-template-columns: 58px minmax(0, 1fr); column-gap: 14px; align-items: center; }
  .service-card:has(> .ic) > .ic { grid-column: 1; grid-row: 1; width: 58px; height: 58px; margin: 0; }
  .service-card:has(> .ic) > .ic svg { width: 26px; height: 26px; }
  .service-card:has(> .ic) > h3 { grid-column: 2; grid-row: 1; margin: 0; }
  .service-card:has(> .ic) > p { grid-column: 1 / -1; margin: 14px 0 16px; }
  .service-card:has(> .ic) > .bck-btn { grid-column: 1 / -1; justify-self: start; }

  /* ----- stats: three across, compact ----- */
  .stats-grid { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .stat .num { font-size: clamp(26px, 8.4vw, 34px); }
  .stat .lbl { font-size: 12.5px; line-height: 1.3; margin-top: 4px; }

  /* ----- story + process ----- */
  .split { gap: 24px; }
  .split .ph-img { min-height: 0 !important; aspect-ratio: 16/10; }
  .split p { font-size: 15.5px; }
  .timeline { gap: 12px; }
  .timeline-step { display: flex; align-items: center; gap: 14px; text-align: left; background: var(--bck-white); border: 1px solid var(--bck-border); border-radius: var(--radius-lg); padding: 12px 16px; }
  .timeline-step .n { width: 44px; height: 44px; margin: 0; flex-shrink: 0; font-size: 15px; }
  .timeline-step h4 { font-size: 16px; line-height: 1.3; }

  /* ----- developer logos ----- */
  .partner-grid { gap: 12px; }
  .partner-tile { height: 88px; padding: 8px; }
  .partner-tile-link img { height: 38px; }

  /* ----- testimonials + guides become snap carousels ----- */
  #testimonialGrid, #articleGrid { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 14px; margin: 0 -18px; padding: 0 18px 10px; scroll-padding-left: 18px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  #testimonialGrid::-webkit-scrollbar, #articleGrid::-webkit-scrollbar { display: none; }
  #testimonialGrid > *, #articleGrid > * { flex: 0 0 84vw; max-width: 360px; scroll-snap-align: start; }
  .testimonial-card { padding: 20px; }
  .testimonial-card p.quote { font-size: 15.5px; }
  .article-card .ph-img { aspect-ratio: 16/9; }
  .article-card h4 { font-size: 18px; }

  /* ----- CTAs ----- */
  .cta-lavender { padding: 24px 20px; flex-direction: column; align-items: stretch; gap: 16px; border-radius: 20px; }
  .cta-lavender h3 { font-size: clamp(21px, 5.8vw, 24px); }
  .cta-lavender .bck-btn { width: 100%; }
  .cta-band { padding: 32px 20px; border-radius: 20px; }
  .cta-band h2 { line-height: 1.15; }
  .cta-band .btn-row { flex-direction: column; margin-top: 20px; gap: 10px; }
  .cta-band .btn-row .bck-btn { width: 100%; }
  .lavender-box { padding: 20px; }

  /* ----- footer ----- */
  .footer-top { grid-template-columns: 1fr 1fr; gap: 24px 16px; padding: 40px 0 24px; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-brand p { max-width: none; }
  .footer-social a { width: 44px; height: 44px; }
  .footer-col a { padding: 6px 0; }
  .footer-col h5 { margin-bottom: 6px; }
  .footer-seo { padding: 24px 0; }
  .footer-seo-links { gap: 4px 18px; }
  .footer-seo-links a { padding: 6px 0; }
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: 12px; }
  .footer-bottom-right { flex-direction: column; align-items: flex-start; gap: 10px; }
  .footer-bottom .legal-links a { padding: 6px 0; }

  /* ----- inner pages: listings, filters, detail ----- */
  .page-hero { padding: 28px 0 24px; }
  .filters-bar { padding: 14px; gap: 10px; }
  .filters-bar select, .filters-bar input { padding: 0 12px; height: 48px; font-size: 16px; }
  .filters-bar .search-field:has(#fConfiguration) { grid-column: 1 / -1; }
  .listing-grid { gap: 16px; }
  .listing-grid .property-card { width: 100%; }
  .gallery-main { border-radius: var(--radius-lg); }
  .gallery-main .ph-img, .gallery-main .cover-img { min-height: 0 !important; aspect-ratio: 16/10; }
  .gallery-thumbs { gap: 8px; }
  .detail-head { gap: 12px; margin: 20px 0; }
  .detail-price { text-align: left; width: 100%; }
  .detail-price .amount { font-size: 24px; line-height: 1.2; }
  .detail-grid { gap: var(--space-6); }
  .info-grid { padding: var(--space-4); }
  .bck-form { padding: 20px; }
  .tag-chip { padding: 0 16px; min-height: 44px; display: inline-flex; align-items: center; }
  .faq-q { min-height: 48px; }

  /* ----- calmer scroll-reveal ----- */
  .reveal { transform: translateY(12px); transition-duration: 420ms; }
  .grid-2.reveal > *, .grid-3.reveal > *, .grid-4.reveal > *, .discovery-grid.reveal > *,
  .partner-grid.reveal > *, .stats-grid.reveal > *, .timeline.reveal > *, .carousel-wrap.reveal .carousel > * { transform: translateY(10px); transition-duration: 360ms; }
}

@media (max-width: 767px) and (hover: none) {
  .property-card:hover, .service-card:hover, .discovery-tile:hover, .partner-tile-link:hover { transform: none !important; }
  .property-card:hover .media img, .property-card:hover .media .ph-img, .tour-card:hover .media .ph-img { transform: none; }
}

/* small phones (320-374px) */
@media (max-width: 374px) {
  .container, .container-wide { padding: 0 16px; }
  .carousel-wrap { margin: 0 -16px; }
  .carousel { padding: 0 16px 10px; scroll-padding-left: 16px; }
  #testimonialGrid, #articleGrid { margin: 0 -16px; padding: 0 16px 10px; scroll-padding-left: 16px; }
  .carousel .property-card, .carousel .property-card.wide { width: calc(100vw - 32px); }
  .bck-eyebrow { font-size: 12px; letter-spacing: 0.06em; }
  .discovery-tile { padding: 16px 8px; }
  .discovery-tile h4 { font-size: 16px; }
  .service-card { padding: 24px 20px; }
  .property-card h4 { font-size: 20px; }
  .property-card .price { font-size: 21px; }
  .hero-locations a { padding: 8px 12px; }
  .stat .lbl { font-size: 12px; }
}

/* Inline grid-template-columns on contact + service pages must still collapse on small screens
   (inline styles beat the class rules above, hence !important). */
@media (max-width: 1024px) {
  .detail-grid { grid-template-columns: minmax(0, 1fr) !important; }
  .detail-grid > * { min-width: 0; }
}
@media (max-width: 900px) { .timeline { grid-template-columns: minmax(0, 1fr) !important; } }
@media (max-width: 640px) {
  .bck-form .form-row { grid-template-columns: minmax(0, 1fr); }
  .bck-form .form-group { min-width: 0; }
  .bck-form select, .bck-form input, .bck-form textarea { width: 100%; min-width: 0; max-width: 100%; }
}

/* partner grid: two across on any phone so logos stay legible */
@media (max-width: 600px) {
  .partner-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .partner-grid > .partner-tile:last-child:nth-child(odd) { grid-column: 1 / -1; }
  .discovery-tile:last-child:nth-child(odd) { grid-column: 1 / -1; }
}
