/* ==========================================================================
   AVORA ESTATES â€” Page compositions
   ========================================================================== */

/* ---------------------------------------------------------------- HOME 01
   Hero â€” signature line under the headline
   ------------------------------------------------------------------------ */
.hero__signature {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: clamp(1.4rem, 2.6vw, 2.2rem);
  font-size: var(--fs-sm);
  color: var(--on-dark-muted);
  max-width: 40ch;
}

.hero__signature .rule {
  width: 54px;
  height: 1px;
  background: var(--brass);
  flex: none;
}

/* ---------------------------------------------------------------- HOME 02
   Featured projects
   ------------------------------------------------------------------------ */
.featured-grid {
  display: grid;
  grid-template-columns: 1.18fr 1fr;
  gap: clamp(1rem, 1.8vw, 1.6rem);
}

.featured-grid__main { position: relative; min-height: 680px; }
.featured-grid__main .project-card { height: 100%; }
.featured-grid__main .project-card__name { font-size: clamp(2rem, 3.2vw, 2.8rem); }

.featured-grid__side {
  display: grid;
  grid-template-rows: 1fr 1fr auto;
  gap: clamp(1rem, 1.8vw, 1.6rem);
}

.featured-grid__side .project-card { min-height: 300px; }

.featured-grid__all {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  padding: 1.35rem 1.5rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: transparent;
  transition: background 0.4s var(--ease), border-color 0.4s var(--ease);
}

.featured-grid__all:hover { background: var(--ivory); border-color: rgba(185, 146, 74, 0.5); }
.featured-grid__all span { font-size: var(--fs-xs); letter-spacing: var(--track-mid); text-transform: uppercase; }
.featured-grid__all small { display: block; font-size: var(--fs-xs); color: var(--text-muted); letter-spacing: 0.02em; text-transform: none; margin-top: 0.2rem; }
.featured-grid__all .icon-btn { flex: none; }

/* ---------------------------------------------------------------- HOME 03
   New launches
   ------------------------------------------------------------------------ */
.launch-layout {
  display: grid;
  grid-template-columns: 0.85fr 1.5fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: start;
}

.launch-intro { position: sticky; top: calc(var(--header-h) + 2.5rem); }
.launch-intro h2 { margin: 1.1rem 0 1.2rem; }
.launch-intro .lede { font-size: var(--fs-body); }
.launch-intro .link-arrow { margin-top: 1.8rem; }

.launch-list { border-top: 1px solid var(--line); }

.launch-item {
  display: grid;
  grid-template-columns: 44px 104px 1fr auto;
  align-items: center;
  gap: clamp(0.9rem, 2vw, 1.6rem);
  padding: 1.35rem 0.35rem;
  border-bottom: 1px solid var(--line-soft);
  position: relative;
  transition: padding 0.4s var(--ease), background 0.4s var(--ease);
}

.launch-item::before {
  content: "";
  position: absolute;
  left: -0.35rem;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--brass);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 0.45s var(--ease-out);
}

.launch-item:hover { padding-inline: 0.9rem 0.35rem; background: rgba(245, 240, 228, 0.55); }
.launch-item:hover::before { transform: scaleY(1); }

.launch-item__idx {
  font-family: var(--serif);
  font-size: 1.05rem;
  font-style: italic;
  color: var(--text-faint);
  font-variant-numeric: tabular-nums;
}

.launch-item__thumb {
  width: 104px;
  height: 74px;
  border-radius: 2px;
  overflow: hidden;
  background: var(--ivory-deep);
}
.launch-item__thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s var(--ease-out); }
.launch-item:hover .launch-item__thumb img { transform: scale(1.07); }

.launch-item__body { display: flex; flex-direction: column; gap: 0.2rem; min-width: 0; }
.launch-item__dev { font-size: 0.6rem; letter-spacing: var(--track-wide); text-transform: uppercase; color: var(--brass-deep); }
.launch-item__name { font-family: var(--serif); font-size: 1.28rem; line-height: 1.15; font-weight: 500; }
.launch-item__meta { font-size: var(--fs-xs); color: var(--text-muted); }

.launch-item__right { display: flex; flex-direction: column; align-items: flex-end; gap: 0.4rem; text-align: right; }
.launch-item__price { font-family: var(--serif); font-size: 1.1rem; font-variant-numeric: tabular-nums; }
.launch-item__price small { display: block; font-family: var(--sans); font-size: 0.58rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-faint); margin-top: 0.15rem; }

.progress {
  width: 100%;
  min-width: 92px;
  max-width: 120px;
  height: 2px;
  background: var(--line);
  position: relative;
  overflow: hidden;
}
.progress i { position: absolute; inset: 0 auto 0 0; background: var(--brass); width: var(--p, 0%); }
.launch-item__progress { display: flex; align-items: center; gap: 0.5rem; font-size: 0.62rem; letter-spacing: 0.1em; color: var(--text-faint); text-transform: uppercase; }

/* ---------------------------------------------------------------- HOME 04
   Trending properties
   ------------------------------------------------------------------------ */
.prop-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(1rem, 1.6vw, 1.4rem);
}

/* ---------------------------------------------------------------- HOME 05
   Locations mosaic
   ------------------------------------------------------------------------ */
.locations-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 210px;
  gap: clamp(0.7rem, 1.2vw, 1rem);
}

.loc-tile {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: clamp(1rem, 1.8vw, 1.5rem);
  color: var(--on-dark);
  isolation: isolate;
  min-height: 180px;
}

.loc-tile:nth-child(1) { grid-column: span 2; grid-row: span 2; }
.loc-tile:nth-child(2) { grid-column: span 2; }
.loc-tile:nth-child(3) { grid-column: span 1; }
.loc-tile:nth-child(4) { grid-column: span 1; }
.loc-tile:nth-child(5) { grid-column: span 2; }
.loc-tile:nth-child(6) { grid-column: span 2; }

.loc-tile img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
  transition: transform 1s var(--ease-out), filter 0.6s var(--ease);
}

.loc-tile::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(9, 12, 10, 0.08) 20%, rgba(9, 12, 10, 0.42) 62%, rgba(9, 12, 10, 0.88) 100%);
  transition: opacity 0.5s var(--ease);
}

.loc-tile:hover img { transform: scale(1.06); }
.loc-tile:hover::after { opacity: 0.92; }

.loc-tile__count {
  font-size: var(--fs-micro);
  letter-spacing: var(--track-wide);
  text-transform: uppercase;
  color: #f3e3c2;
  margin-bottom: 0.45rem;
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.55);
}

.loc-tile__name {
  font-family: var(--serif);
  font-size: clamp(1.35rem, 2vw, 1.85rem);
  line-height: 1.22;
  font-weight: 400;
  text-shadow: 0 1px 14px rgba(0, 0, 0, 0.5);
}

.loc-tile:nth-child(1) .loc-tile__name { font-size: clamp(2rem, 3vw, 2.9rem); }

.loc-tile__from {
  font-size: var(--fs-xs);
  color: var(--on-dark-muted);
  margin-top: 0.35rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.loc-tile__from svg { width: 15px; height: 15px; opacity: 0; transform: translateX(-6px); transition: all 0.4s var(--ease-out); }
.loc-tile:hover .loc-tile__from svg { opacity: 1; transform: none; }

/* ---------------------------------------------------------------- HOME 06
   Developers
   ------------------------------------------------------------------------ */
.dev-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.dev-cell {
  position: relative;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: clamp(1.5rem, 2.6vw, 2.4rem);
  min-height: 190px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1.5rem;
  transition: background 0.4s var(--ease);
  background: var(--paper);
}

.dev-cell:hover { background: var(--ivory); }

.dev-cell__mark {
  font-family: var(--serif);
  font-size: clamp(1.35rem, 2.1vw, 1.85rem);
  letter-spacing: 0.02em;
  line-height: 1.05;
  color: #2b2f28;
  transition: color 0.4s var(--ease);
}
.dev-cell:hover .dev-cell__mark { color: var(--brass-deep); }

.dev-cell__mark small {
  display: block;
  font-family: var(--sans);
  font-size: 0.52rem;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-top: 0.45rem;
}

.dev-cell__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-size: var(--fs-xs);
  color: var(--text-muted);
}

.dev-cell__meta .verified {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--brass-deep);
  font-size: 0.6rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.dev-cell__meta .verified svg { width: 13px; height: 13px; }

.dev-cell__arrow {
  position: absolute;
  top: 1.2rem;
  right: 1.2rem;
  width: 28px;
  height: 28px;
  opacity: 0;
  transform: translate(-4px, 4px);
  transition: all 0.4s var(--ease-out);
  color: var(--brass-deep);
}
.dev-cell__arrow svg { width: 16px; height: 16px; }
.dev-cell:hover .dev-cell__arrow { opacity: 1; transform: none; }

/* ---------------------------------------------------------------- HOME 07
   Investment (dark)
   ------------------------------------------------------------------------ */
.invest {
  background: var(--forest-deep);
  color: var(--on-dark);
  position: relative;
  overflow: hidden;
}

.invest::before {
  content: "";
  position: absolute;
  width: 70vw;
  height: 70vw;
  right: -22vw;
  top: -24vw;
  background: radial-gradient(circle, rgba(185, 146, 74, 0.16) 0%, rgba(185, 146, 74, 0) 62%);
  pointer-events: none;
}

.invest__layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2.5rem, 6vw, 6rem);
  align-items: center;
  position: relative;
}

.invest__copy h2 { font-size: var(--fs-display); margin: 1.2rem 0 1.4rem; font-weight: 300; }
.invest__copy h2 em { color: var(--brass-light); }
.invest__copy .lede { color: var(--on-dark-muted); max-width: 46ch; }

.invest-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 2.6rem;
  padding-top: 1.8rem;
  border-top: 1px solid var(--line-dark-soft);
}

.invest-stat .v {
  font-family: var(--serif);
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  line-height: 1;
  color: var(--on-dark);
  font-variant-numeric: tabular-nums;
}
.invest-stat .v sup { font-size: 0.45em; color: var(--brass-light); top: -0.9em; }
.invest-stat .k { font-size: var(--fs-micro); letter-spacing: 0.14em; text-transform: uppercase; color: var(--on-dark-muted); margin-top: 0.55rem; line-height: 1.5; }

.invest__cta { margin-top: 2.4rem; display: flex; gap: 0.8rem; flex-wrap: wrap; }

.invest-list { border-top: 1px solid var(--line-dark); }

.invest-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1.25rem;
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--line-dark-soft);
  align-items: center;
  transition: background 0.35s var(--ease), padding 0.35s var(--ease);
}
.invest-row:hover { padding-inline: 0.6rem; background: rgba(241, 236, 225, 0.03); }

.invest-row__name { font-family: var(--serif); font-size: 1.3rem; line-height: 1.2; }
.invest-row__meta { font-size: var(--fs-xs); color: var(--on-dark-muted); margin-top: 0.25rem; display: flex; gap: 0.8rem; flex-wrap: wrap; }

.invest-row__yield {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.2rem;
}
.invest-row__yield .y {
  font-family: var(--serif);
  font-size: 1.55rem;
  line-height: 1;
  color: var(--brass-light);
  font-variant-numeric: tabular-nums;
}
.invest-row__yield .k { font-size: 0.58rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--on-dark-muted); }

.invest__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1.6rem;
  font-size: var(--fs-xs);
  color: rgba(241, 236, 225, 0.42);
}

/* ---------------------------------------------------------------- HOME 08
   Property types
   ------------------------------------------------------------------------ */
.types-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.type-cell {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  padding: clamp(1.3rem, 2.2vw, 1.9rem);
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  min-height: 150px;
  background: var(--paper);
  transition: background 0.35s var(--ease), color 0.35s var(--ease);
  position: relative;
}

.type-cell svg { width: 26px; height: 26px; color: var(--brass-deep); transition: color 0.35s var(--ease), transform 0.5s var(--ease-out); }

.type-cell__name {
  font-family: var(--serif);
  font-size: 1.24rem;
  line-height: 1;
  margin-top: auto;
}

.type-cell__count {
  font-size: 0.62rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-faint);
}

.type-cell:hover { background: var(--ink); color: var(--on-dark); }
.type-cell:hover svg { color: var(--brass-light); transform: translateY(-3px); }
.type-cell:hover .type-cell__count { color: rgba(241, 236, 225, 0.5); }

/* ---------------------------------------------------------------- HOME 09
   Market insights
   ------------------------------------------------------------------------ */
.insights {
  display: grid;
  grid-template-columns: 0.9fr 1.4fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: start;
}

.insights__copy h2 { margin: 1.1rem 0 1.2rem; }

.insight-stats { margin-top: 2.2rem; border-top: 1px solid var(--line); }
.insight-stat {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--line-soft);
}
.insight-stat .k { font-size: var(--fs-xs); color: var(--text-muted); letter-spacing: 0.02em; }
.insight-stat .v { font-family: var(--serif); font-size: 1.5rem; line-height: 1; font-variant-numeric: tabular-nums; }
.insight-stat .v small { font-family: var(--sans); font-size: 0.6rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--success); margin-left: 0.4rem; vertical-align: middle; }
.insight-stat .v small.down { color: var(--danger); }

.chart-card {
  background: var(--white);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  padding: clamp(1.25rem, 2.4vw, 2rem);
  box-shadow: var(--shadow-sm);
}

.chart-card__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin-bottom: 1.6rem;
}

.chart-card__title { font-family: var(--serif); font-size: 1.35rem; }
.chart-card__sub { font-size: var(--fs-xs); color: var(--text-faint); margin-top: 0.2rem; }

.range-tabs {
  display: flex;
  gap: 0.15rem;
  border: 1px solid var(--line);
  border-radius: 2px;
  padding: 2px;
  background: var(--paper);
}

.range-tab {
  padding: 0.4rem 0.6rem;
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  border-radius: 1px;
  font-variant-numeric: tabular-nums;
}
.range-tab.is-active { background: var(--ink); color: var(--paper); }

.chart {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 8.4;
  min-height: 0;
  min-width: 0;
}

.chart-card { min-width: 0; }
.insights > * { min-width: 0; }

.chart svg { width: 100%; height: 100%; overflow: visible; }

.chart .grid-line { stroke: var(--line-soft); stroke-width: 1; }
.chart .axis-label { fill: var(--text-faint); font-family: var(--sans); font-size: 9px; letter-spacing: 0.08em; text-transform: uppercase; }
.chart .chart-line { fill: none; stroke: var(--brass-deep); stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.chart .chart-area { fill: url(#areaGrad); }
.chart .chart-dot { fill: var(--paper); stroke: var(--brass-deep); stroke-width: 1.6; }
.chart .chart-dot--last { fill: var(--brass); stroke: var(--brass-deep); }
.chart .chart-callout { fill: var(--ink); font-family: var(--sans); font-size: 9px; letter-spacing: 0.1em; }
.chart .focus-line { stroke: var(--brass); stroke-width: 1; stroke-dasharray: 3 3; opacity: 0; }
.chart.is-hover .focus-line { opacity: 1; }
.chart .hover-dot { opacity: 0; }

.chart-tooltip {
  position: absolute;
  z-index: 5;
  padding: 0.45rem 0.6rem;
  background: var(--ink);
  color: var(--on-dark);
  border-radius: 2px;
  font-size: 0.66rem;
  letter-spacing: 0.04em;
  pointer-events: none;
  transform: translate(-50%, -130%);
  white-space: nowrap;
  opacity: 0;
  transition: opacity 0.2s var(--ease);
  font-variant-numeric: tabular-nums;
}
.chart-tooltip.is-on { opacity: 1; }

.chart-card__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1.2rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line-soft);
  font-size: var(--fs-xs);
  color: var(--text-faint);
  flex-wrap: wrap;
}

.legend { display: flex; align-items: center; gap: 0.45rem; }
.legend i { width: 16px; height: 2px; background: var(--brass-deep); display: inline-block; }

/* ---------------------------------------------------------------- HOME 10
   Journal
   ------------------------------------------------------------------------ */
.journal-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.2rem, 2.2vw, 2rem);
}

.journal-card .frame { aspect-ratio: 3 / 2; }
.journal-card:hover .frame img { transform: scale(1.04); }

.journal-card__meta {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin: 1.1rem 0 0.55rem;
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-faint);
}
.journal-card__meta .cat { color: var(--brass-deep); }
.journal-card__meta .dot { width: 3px; height: 3px; border-radius: 50%; background: currentColor; }

.journal-card h3 {
  font-size: 1.35rem;
  line-height: 1.18;
  font-weight: 500;
  transition: color 0.3s var(--ease);
}
.journal-card:hover h3 { color: var(--brass-deep); }

.journal-card p {
  font-size: var(--fs-sm);
  color: var(--text-muted);
  line-height: 1.6;
  margin-top: 0.55rem;
}

/* ---------------------------------------------------------------- HOME 11
   CTA panel
   ------------------------------------------------------------------------ */
.cta-panel {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  background: var(--forest);
  color: var(--on-dark);
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
}

.cta-panel__copy {
  padding: clamp(2rem, 4.5vw, 4.2rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  isolation: isolate;
  background-image:
    linear-gradient(180deg, rgba(10, 23, 18, 0.82) 0%, rgba(10, 23, 18, 0.9) 55%, rgba(10, 23, 18, 0.95) 100%),
    url("../img/cta-villa.webp");
  background-size: cover;
  background-position: center;
}

.cta-panel__copy::after { display: none; }

.cta-panel__copy h2 { font-size: clamp(2rem, 3.6vw, 3.2rem); font-weight: 300; margin: 1rem 0 1.2rem; }
.cta-panel__copy p { color: var(--on-dark-muted); font-size: var(--fs-sm); max-width: 34ch; line-height: 1.7; }
.cta-panel__actions { display: flex; gap: 0.7rem; flex-wrap: wrap; margin-top: 2rem; }

.cta-panel__form {
  background: var(--paper);
  color: var(--text);
  padding: clamp(1.75rem, 3.6vw, 3.2rem);
}

.cta-panel__form h3 { font-size: 1.55rem; margin-bottom: 0.35rem; }
.cta-panel__form > p { font-size: var(--fs-xs); color: var(--text-muted); margin-bottom: 1.4rem; }

/* ---------------------------------------------------------------- SEARCH
   Results page
   ------------------------------------------------------------------------ */
.search-page { padding-top: calc(var(--header-h) + 1.5rem); background: var(--paper); }

.search-bar {
  background: var(--white);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 0.45rem;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr auto;
  gap: 0;
  position: sticky;
  top: calc(var(--header-h) + 0.75rem);
  z-index: 30;
  margin-bottom: 2rem;
}

.search-bar .search-field { padding: 0.55rem 1rem; }
.search-bar .search-field label { font-size: 0.55rem; }
.search-bar .search-field input,
.search-bar .search-field select { font-size: 0.85rem; }
.search-bar__btn { display: flex; align-items: center; padding: 0.2rem; }
.search-bar__btn .btn { min-height: 48px; height: 100%; padding-inline: 1.4rem; }

.results-layout {
  display: grid;
  grid-template-columns: 268px 1fr;
  gap: clamp(1.5rem, 3vw, 3rem);
  align-items: start;
  padding-bottom: var(--section-y);
}

.filters {
  position: sticky;
  top: calc(var(--header-h) + 6rem);
  max-height: calc(100vh - var(--header-h) - 7.5rem);
  overflow-y: auto;
  padding-right: 0.5rem;
  scrollbar-width: thin;
}

.filters::-webkit-scrollbar { width: 3px; }
.filters::-webkit-scrollbar-thumb { background: var(--line); }

.filter-sheet-close { display: none; }
.filter-group--mobile { display: none; }

.results-layout--full { grid-template-columns: 1fr; }

.filters__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--line);
  margin-bottom: 0.5rem;
}

.filters__head h2 { font-family: var(--sans); font-size: var(--fs-micro); letter-spacing: var(--track-wide); text-transform: uppercase; font-weight: 600; }

.filters__reset { font-size: var(--fs-micro); letter-spacing: 0.1em; text-transform: uppercase; color: var(--brass-deep); }
.filters__reset:hover { text-decoration: underline; }

.filter-group { border-bottom: 1px solid var(--line-soft); padding-block: 0.35rem; }

.filter-group__toggle {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 0;
  font-size: var(--fs-xs);
  font-weight: 500;
  letter-spacing: 0.06em;
  text-align: left;
}
.filter-group__toggle svg { width: 13px; height: 13px; color: var(--text-faint); transition: transform 0.35s var(--ease); }
.filter-group.is-collapsed .filter-group__toggle svg { transform: rotate(-90deg); }

.filter-group__body { padding-bottom: 1rem; display: grid; gap: 0.15rem; }
.filter-group.is-collapsed .filter-group__body { display: none; }

.price-range { display: flex; align-items: center; gap: 0.5rem; }
.price-range .field input { min-height: 40px; padding: 0.45rem 0.6rem; font-size: var(--fs-xs); }
.price-range .sep { color: var(--text-faint); font-size: var(--fs-xs); }

.range-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 2px;
  background: var(--line);
  border-radius: 2px;
  margin: 1.1rem 0 0.4rem;
  cursor: pointer;
}
.range-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--ink);
  border: 2px solid var(--paper);
  box-shadow: 0 0 0 1px var(--ink);
}
.range-slider::-moz-range-thumb {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--ink);
  border: 2px solid var(--paper);
}
.range-labels { display: flex; justify-content: space-between; font-size: 0.6rem; color: var(--text-faint); font-variant-numeric: tabular-nums; }

.results-main { min-width: 0; }

.results-toolbar {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.25rem;
  flex-wrap: wrap;
  margin-bottom: 1.4rem;
}

.results-count { font-family: var(--serif); font-size: clamp(1.6rem, 2.6vw, 2.15rem); line-height: 1; }
.results-count small { font-family: var(--sans); font-size: var(--fs-xs); color: var(--text-muted); margin-left: 0.5rem; letter-spacing: 0; }

.results-tools { display: flex; align-items: center; gap: 0.75rem; }

.sort-select {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  border: 1px solid var(--line);
  border-radius: 2px;
  padding: 0.45rem 0.7rem;
  background: var(--white);
  font-size: var(--fs-xs);
}
.sort-select span { color: var(--text-faint); font-size: var(--fs-micro); letter-spacing: 0.1em; text-transform: uppercase; }
.sort-select select { border: 0; background: none; font-size: var(--fs-xs); padding-right: 0.2rem; cursor: pointer; }
.sort-select select:focus { outline: none; }

.view-toggle { display: flex; border: 1px solid var(--line); border-radius: 2px; overflow: hidden; background: var(--white); }
.view-toggle button { padding: 0.5rem 0.65rem; color: var(--text-faint); display: grid; place-items: center; }
.view-toggle button svg { width: 15px; height: 15px; }
.view-toggle button.is-active { background: var(--ink); color: var(--paper); }

.filter-btn { display: none; }

.active-filters { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-bottom: 1.2rem; }
.active-filter {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.6rem;
  border-radius: var(--radius-pill);
  background: var(--ivory);
  font-size: var(--fs-xs);
  color: var(--text);
}
.active-filter button { color: var(--text-faint); display: grid; place-items: center; }
.active-filter button:hover { color: var(--danger); }
.active-filter svg { width: 11px; height: 11px; }

.results-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(0.9rem, 1.5vw, 1.3rem);
  min-width: 0;
}

.results-grid > .card { min-width: 0; }

.results-grid .card__meta { flex-wrap: wrap; row-gap: 0.3rem; }
.results-grid .card__meta .card__agent { margin-left: auto; }

/* list view */
.results-grid.is-list { grid-template-columns: 1fr; gap: 0.8rem; }
.results-grid.is-list .card { display: grid; grid-template-columns: 320px 1fr; }
.results-grid.is-list .card .frame { aspect-ratio: 4 / 3; height: 100%; }
.results-grid.is-list .card__body { padding: 1.25rem 1.5rem; }
.results-grid.is-list .card__title { font-size: 1.35rem; }
.results-grid.is-list .card__meta { border-top: 0; padding-top: 0.4rem; margin-top: 0.3rem; }
.results-grid.is-list .card__loc { font-size: var(--fs-xs); }
.results-grid.is-list .list-only { display: block; }

.results-grid .list-only { display: none; }
.card__desc { font-size: var(--fs-sm); color: var(--text-muted); line-height: 1.6; margin-top: 0.4rem; max-width: 62ch; }

/* map view */
.map-layout {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 1.2rem;
  align-items: start;
  height: min(72vh, 760px);
}
.map-layout .results-grid {
  overflow-y: auto;
  height: 100%;
  padding-right: 0.4rem;
  grid-template-columns: 1fr;
  grid-auto-rows: minmax(136px, auto);
  align-content: start;
}
.map-layout .results-grid::-webkit-scrollbar { width: 3px; }
.map-layout .results-grid::-webkit-scrollbar-thumb { background: var(--line); }

.map-layout .card {
  display: grid;
  grid-template-columns: 132px 1fr;
  height: auto;
  min-height: 0;
}
.map-layout .card .frame { aspect-ratio: auto; height: 100%; min-height: 108px; }
.map-layout .card__badges { top: 0.5rem; left: 0.5rem; }
.map-layout .card__badges .badge { display: none; }
.map-layout .card__badges .badge:first-child { display: inline-flex; }
.map-layout .card-actions { display: none; }
.map-layout .card__body { padding: 0.85rem 1rem; gap: 0.3rem; }
.map-layout .card__price .price { font-size: 1.18rem; }
.map-layout .card__title { font-size: 1rem; }
.map-layout .card__loc { font-size: 0.72rem; }
.map-layout .card__meta { padding-top: 0.55rem; margin-top: 0.2rem; font-size: 0.7rem; gap: 0.7rem; }
.map-layout .card__view,
.map-layout .card__desc { display: none; }
.map-layout .card:hover { border-color: var(--brass); }

.avora-map {
  position: relative;
  height: 100%;
  min-height: 420px;
  border-radius: var(--radius);
  overflow: hidden;
  background: #e7e2d5;
  border: 1px solid var(--line-soft);
  isolation: isolate;
}

.avora-map svg.map-base { width: 100%; height: 100%; display: block; object-fit: cover; }

.map-pin {
  position: absolute;
  transform: translate(-50%, -100%);
  z-index: 5;
  padding: 0.24rem 0.4rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 3px;
  font-size: 0.56rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--ink);
  box-shadow: 0 6px 18px -8px rgba(13, 16, 14, 0.45);
  white-space: nowrap;
  transition: all 0.25s var(--ease);
}
.map-pin::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -4px;
  width: 6px;
  height: 6px;
  background: inherit;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  transform: translateX(-50%) rotate(45deg);
}
.map-pin:hover, .map-pin.is-active {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--paper);
  z-index: 6;
}
.map-pin.is-active { background: var(--brass); color: var(--ink); border-color: var(--brass-deep); }

.map-pin--cluster { padding-left: 1.45rem; }
.map-pin__count {
  position: absolute;
  left: 0.22rem;
  top: 50%;
  transform: translateY(-50%);
  min-width: 14px;
  height: 14px;
  padding-inline: 3px;
  border-radius: 7px;
  background: var(--ink);
  color: var(--paper);
  font-size: 0.5rem;
  letter-spacing: 0;
  display: grid;
  place-items: center;
  line-height: 1;
}
.map-pin:hover .map-pin__count { background: var(--paper); color: var(--ink); }
.map-pin.is-active .map-pin__count { background: var(--ink); color: var(--brass-light); }

.map-legend {
  position: absolute;
  left: 0.9rem;
  bottom: 0.9rem;
  z-index: 6;
  background: rgba(251, 248, 241, 0.92);
  backdrop-filter: blur(8px);
  border: 1px solid var(--line-soft);
  border-radius: 2px;
  padding: 0.55rem 0.7rem;
  font-size: 0.6rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.map-zoom {
  position: absolute;
  right: 0.9rem;
  top: 0.9rem;
  z-index: 6;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: 3px;
  overflow: hidden;
  background: var(--white);
}
.map-zoom button { width: 32px; height: 32px; display: grid; place-items: center; font-size: 1rem; color: var(--text-muted); }
.map-zoom button + button { border-top: 1px solid var(--line-soft); }
.map-zoom button:hover { background: var(--ivory); color: var(--ink); }
.map-zoom svg { width: 13px; height: 13px; }

/* pagination / load more */
.load-more-wrap { display: flex; flex-direction: column; align-items: center; gap: 0.9rem; padding-top: 2.5rem; }
.load-more-wrap .small { color: var(--text-faint); }

.empty-state {
  grid-column: 1 / -1;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  padding: clamp(2.5rem, 6vw, 4.5rem) 1.5rem;
  text-align: center;
}
.empty-state svg { width: 34px; height: 34px; color: var(--brass); margin: 0 auto 1.25rem; }
.empty-state h3 { font-size: 1.8rem; margin-bottom: 0.5rem; }
.empty-state p { color: var(--text-muted); font-size: var(--fs-sm); max-width: 40ch; margin: 0 auto 1.5rem; }

/* compare */
.compare-bar {
  position: fixed;
  left: 50%;
  bottom: 1.1rem;
  transform: translate(-50%, 130%);
  z-index: 95;
  width: min(900px, calc(100% - 2rem));
  background: var(--ink);
  color: var(--on-dark);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 0.7rem 0.9rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  transition: transform 0.5s var(--ease-out);
  border: 1px solid var(--line-dark-soft);
}
.compare-bar.is-on { transform: translate(-50%, 0); }

.compare-bar__items { display: flex; gap: 0.45rem; flex: 1; min-width: 0; overflow-x: auto; scrollbar-width: none; }
.compare-bar__items::-webkit-scrollbar { display: none; }

.compare-thumb {
  position: relative;
  width: 62px;
  height: 44px;
  border-radius: 2px;
  overflow: hidden;
  flex: none;
  border: 1px solid var(--line-dark);
}
.compare-thumb img { width: 100%; height: 100%; object-fit: cover; }
.compare-thumb button {
  position: absolute;
  inset: 0;
  background: rgba(9, 12, 10, 0.55);
  color: var(--paper);
  display: grid;
  place-items: center;
  opacity: 0;
  transition: opacity 0.25s var(--ease);
}
.compare-thumb button svg { width: 13px; height: 13px; }
.compare-thumb:hover button { opacity: 1; }

.compare-bar__label { font-size: var(--fs-micro); letter-spacing: 0.12em; text-transform: uppercase; color: var(--on-dark-muted); white-space: nowrap; }
.compare-bar__label b { color: var(--on-dark); font-variant-numeric: tabular-nums; }

.compare-table { width: 100%; border-collapse: collapse; font-size: var(--fs-sm); table-layout: fixed; }
.compare-table th, .compare-table td { padding: 0.85rem 0.9rem; border-bottom: 1px solid var(--line-soft); text-align: left; vertical-align: top; }
.compare-table th:first-child,
.compare-table td:first-child { width: 160px; }
.compare-table thead th { font-family: var(--serif); font-weight: 500; font-size: 1.15rem; border-bottom: 1px solid var(--line); vertical-align: bottom; }
.compare-table thead th:first-child { font-family: var(--sans); font-size: var(--fs-micro); letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-muted); vertical-align: bottom; }
.compare-table tbody th { font-family: var(--sans); font-size: var(--fs-micro); letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-muted); font-weight: 500; white-space: nowrap; }
.compare-table .img-cell { padding: 0; }
.compare-table .img-cell img { width: 100%; height: 120px; object-fit: cover; display: block; }
.compare-table .img-label { padding-top: 1rem; }
.compare-scroll { overflow-x: auto; }
.compare-scroll .compare-table { min-width: 640px; }

/* ---------------------------------------------------------------- PROJECT
   Detail page
   ------------------------------------------------------------------------ */
.proj-intro {
  padding-top: calc(var(--header-h) + clamp(1.6rem, 3.5vw, 2.8rem));
  padding-bottom: clamp(1.4rem, 3vw, 2.2rem);
}

.proj-intro__row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}

.proj-intro .eyebrow { flex-wrap: wrap; row-gap: 0.3rem; }
.proj-intro .eyebrow span { white-space: nowrap; }

.proj-intro h1 { font-size: clamp(2.4rem, 5vw, 4.4rem); font-weight: 300; line-height: 0.98; }
.proj-intro__meta { display: flex; align-items: center; gap: 0.6rem 0.9rem; flex-wrap: wrap; margin-top: 1.1rem; font-size: var(--fs-sm); color: var(--text-muted); }
.proj-intro__meta .dev { color: var(--brass-deep); }
.proj-intro__meta svg { width: 13px; height: 13px; }
.proj-intro__meta .sep { width: 3px; height: 3px; border-radius: 50%; background: var(--line); }

.proj-intro__price { text-align: right; }
.proj-intro__price .k { font-size: var(--fs-micro); letter-spacing: var(--track-wide); text-transform: uppercase; color: var(--text-faint); }
.proj-intro__price .v { font-family: var(--serif); font-size: clamp(1.7rem, 3vw, 2.4rem); line-height: 1.1; margin-top: 0.3rem; font-variant-numeric: tabular-nums; }

.proj-gallery {
  display: grid;
  grid-template-columns: 2fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 0.6rem;
  height: clamp(340px, 52vw, 560px);
}

.proj-gallery__hero { grid-row: span 2; position: relative; cursor: zoom-in; }
.proj-gallery__hero .frame, .proj-gallery__item .frame { height: 100%; }
.proj-gallery__item { position: relative; cursor: zoom-in; }

.gallery-counter {
  position: absolute;
  right: 0.9rem;
  bottom: 0.9rem;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: rgba(251, 248, 241, 0.94);
  color: var(--ink);
  padding: 0.45rem 0.75rem;
  border-radius: 2px;
  font-size: var(--fs-micro);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 500;
}
.gallery-counter svg { width: 13px; height: 13px; }

.proj-layout {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: clamp(2rem, 4.5vw, 4.5rem);
  align-items: start;
  padding-top: clamp(2.5rem, 5vw, 4rem);
  padding-bottom: var(--section-y);
}

.proj-content { min-width: 0; }
.proj-aside { position: sticky; top: calc(var(--header-h) + 1.5rem); }

.quick-facts {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  margin-bottom: clamp(2rem, 4vw, 3.2rem);
}

.quick-fact { padding: 1.1rem 0.9rem 1.15rem; border-left: 1px solid var(--line-soft); }
.quick-fact:first-child { border-left: 0; padding-left: 0; }
.quick-fact .k { font-size: 0.58rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--text-faint); }
.quick-fact .v { font-family: var(--serif); font-size: 1.2rem; line-height: 1.2; margin-top: 0.35rem; }

.proj-section { padding-block: clamp(1.8rem, 3.5vw, 2.8rem); border-top: 1px solid var(--line-soft); }
.proj-section:first-of-type { border-top: 0; padding-top: 0; }

.proj-section__head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin-bottom: 1.4rem; flex-wrap: wrap; }
.proj-section__head h2 { font-size: clamp(1.5rem, 2.4vw, 2rem); }
.proj-section__head .label { margin-bottom: 0.35rem; display: block; }

.prose { font-size: var(--fs-body); line-height: 1.8; color: #3f423b; max-width: 66ch; }
.prose p + p { margin-top: 1rem; }

.highlights { display: grid; grid-template-columns: 1fr 1fr; gap: 0.7rem 2rem; margin-top: 1.5rem; }
.highlights li { display: flex; gap: 0.6rem; font-size: var(--fs-sm); color: #3f423b; align-items: flex-start; line-height: 1.55; }
.highlights svg { width: 15px; height: 15px; color: var(--brass-deep); flex: none; margin-top: 0.22rem; }

/* units table */
.units-filter { display: flex; gap: 0.35rem; flex-wrap: wrap; margin-bottom: 1rem; }
.units-filter .pill { padding: 0.35rem 0.65rem; font-size: 0.66rem; }

.table-wrap { overflow-x: auto; border: 1px solid var(--line-soft); border-radius: var(--radius); }
.units-table { width: 100%; border-collapse: collapse; font-size: var(--fs-sm); min-width: 760px; }
.units-table th {
  text-align: left;
  padding: 0.8rem 0.9rem;
  font-family: var(--sans);
  font-size: 0.58rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 500;
  border-bottom: 1px solid var(--line);
  background: var(--ivory);
  white-space: nowrap;
}
.units-table td { padding: 0.85rem 0.9rem; border-bottom: 1px solid var(--line-soft); color: #3f423b; font-variant-numeric: tabular-nums; white-space: nowrap; }
.units-table tr:last-child td { border-bottom: 0; }
.units-table tbody tr { transition: background 0.25s var(--ease); }
.units-table tbody tr:hover { background: rgba(245, 240, 228, 0.6); }
.units-table .u-price { font-family: var(--serif); font-size: 1rem; color: var(--text); white-space: nowrap; }
.units-table .u-no { font-weight: 500; color: var(--text); }

.status-dot { display: inline-flex; align-items: center; gap: 0.4rem; font-size: 0.62rem; letter-spacing: 0.08em; text-transform: uppercase; white-space: nowrap; }
.status-dot i { width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.status-dot--available { color: var(--success); }
.status-dot--reserved { color: #a1782a; }
.status-dot--sold { color: var(--text-faint); }

.units-foot { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-top: 0.9rem; font-size: var(--fs-xs); color: var(--text-faint); flex-wrap: wrap; }

/* payment plan */
.payment-plan { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.payment-step {
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  background: var(--white);
  padding: 1.25rem 1.25rem 1.4rem;
  position: relative;
  overflow: hidden;
}
.payment-step__bar { position: absolute; left: 0; top: 0; height: 2px; background: var(--brass); width: var(--w, 0%); }
.payment-step .pct { font-family: var(--serif); font-size: 2rem; line-height: 1; color: var(--brass-deep); }
.payment-step .k { font-size: var(--fs-micro); letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-muted); margin-top: 0.6rem; }
.payment-step .d { font-size: var(--fs-xs); color: var(--text-faint); margin-top: 0.3rem; line-height: 1.5; }
.payment-step .amt { font-family: var(--serif); font-size: 1rem; margin-top: 0.8rem; padding-top: 0.7rem; border-top: 1px solid var(--line-soft); color: var(--text); }

/* amenities */
.amenities-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.6rem; }
.amenity {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.85rem 0.9rem;
  border: 1px solid var(--line-soft);
  border-radius: 2px;
  font-size: var(--fs-sm);
  color: #3f423b;
  background: var(--white);
}
.amenity svg { width: 18px; height: 18px; color: var(--brass-deep); flex: none; }

/* floor plans */
.floor-tabs { display: flex; gap: 0.3rem; margin-bottom: 1.2rem; flex-wrap: wrap; }
.floor-tab { padding: 0.55rem 0.9rem; border: 1px solid var(--line); border-radius: 2px; font-size: var(--fs-xs); color: var(--text-muted); background: var(--white); }
.floor-tab.is-active { background: var(--ink); border-color: var(--ink); color: var(--paper); }

.floor-panel { display: none; grid-template-columns: 1.35fr 1fr; gap: 1.5rem; align-items: center; border: 1px solid var(--line-soft); border-radius: var(--radius); background: var(--white); padding: clamp(1rem, 2vw, 1.5rem); }
.floor-panel.is-active { display: grid; }
.floor-plan-svg { background: var(--ivory); border-radius: 2px; padding: 0.5rem; }
.floor-plan-svg svg { width: 100%; height: auto; }
.floor-specs { display: grid; gap: 0.9rem; }
.floor-specs .k { font-size: 0.58rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-faint); }
.floor-specs .v { font-family: var(--serif); font-size: 1.35rem; line-height: 1.1; }

/* nearby / location */
.nearby-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 1.5rem; align-items: stretch; }
.nearby-map { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line-soft); min-height: 300px; position: relative; background: #e7e2d5; }
.nearby-map svg { width: 100%; height: 100%; }
.nearby-list { display: flex; flex-direction: column; }
.nearby-item { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 0.75rem 0; border-bottom: 1px solid var(--line-soft); font-size: var(--fs-sm); }
.nearby-item:last-child { border-bottom: 0; }
.nearby-item .nm { display: flex; align-items: center; gap: 0.55rem; color: #3f423b; }
.nearby-item svg { width: 14px; height: 14px; color: var(--brass-deep); }
.nearby-item .t { color: var(--text-faint); font-size: var(--fs-xs); font-variant-numeric: tabular-nums; white-space: nowrap; }

/* developer block */
.dev-block {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 1.5rem;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  background: var(--white);
  flex-wrap: wrap;
}
.dev-monogram {
  width: 74px;
  height: 74px;
  border: 1px solid var(--line);
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-family: var(--serif);
  font-size: 1.7rem;
  color: var(--brass-deep);
  flex: none;
}
.dev-block__body { flex: 1; min-width: 180px; }
.dev-block__body h3 { font-size: 1.35rem; }
.dev-block__body p { font-size: var(--fs-xs); color: var(--text-muted); margin-top: 0.2rem; }
.dev-block__body svg { width: 13px; height: 13px; display: inline-block; vertical-align: -2px; }
.dev-block__stats { display: flex; gap: 1.5rem; }
.dev-block__stats div { text-align: right; }
.dev-block__stats .v { font-family: var(--serif); font-size: 1.25rem; }
.dev-block__stats .k { font-size: 0.55rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-faint); }

/* FAQ */
.faq { border-top: 1px solid var(--line-soft); }
.faq-item { border-bottom: 1px solid var(--line-soft); }
.faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.15rem 0;
  text-align: left;
  font-family: var(--serif);
  font-size: 1.12rem;
  font-weight: 500;
  line-height: 1.35;
}
.faq-q span { transition: color 0.3s var(--ease); }
.faq-q:hover span { color: var(--brass-deep); }
.faq-q .ic { width: 22px; height: 22px; border: 1px solid var(--line); border-radius: 50%; display: grid; place-items: center; flex: none; position: relative; }
.faq-q .ic::before, .faq-q .ic::after { content: ""; position: absolute; background: var(--text-muted); transition: transform 0.35s var(--ease), opacity 0.3s var(--ease); }
.faq-q .ic::before { width: 9px; height: 1px; }
.faq-q .ic::after { width: 1px; height: 9px; }
.faq-item.is-open .faq-q .ic::after { transform: scaleY(0); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height 0.45s var(--ease); }
.faq-a__inner { padding-bottom: 1.25rem; font-size: var(--fs-sm); color: var(--text-muted); line-height: 1.7; max-width: 62ch; }

/* documents */
.doc-list { display: grid; gap: 0.5rem; }
.doc-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem 1rem;
  border: 1px solid var(--line-soft);
  border-radius: 2px;
  background: var(--white);
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease);
  width: 100%;
  text-align: left;
}
.doc-row:hover { border-color: var(--brass); background: var(--ivory); }
.doc-row__l { display: flex; align-items: center; gap: 0.8rem; }
.doc-row__ic { width: 34px; height: 34px; border-radius: 2px; background: var(--ivory); display: grid; place-items: center; color: var(--brass-deep); flex: none; }
.doc-row__ic svg { width: 15px; height: 15px; }
.doc-row .nm { font-size: var(--fs-sm); display: block; }
.doc-row .ty { font-size: 0.6rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-faint); margin-top: 0.1rem; display: block; }
.doc-row > svg { width: 15px; height: 15px; color: var(--text-faint); flex: none; }

/* aside enquiry card */
.enquiry-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  padding: 1.4rem;
  box-shadow: var(--shadow-sm);
}
.enquiry-card h3 { font-size: 1.4rem; margin-bottom: 0.3rem; }
.enquiry-card > p { font-size: var(--fs-xs); color: var(--text-muted); margin-bottom: 1.1rem; }
.enquiry-card .field input, .enquiry-card .field select { min-height: 42px; font-size: var(--fs-xs); background: var(--paper); }
.enquiry-card .field { gap: 0.3rem; }
.enquiry-card form { display: grid; gap: 0.65rem; }
.enquiry-card__actions { display: grid; grid-template-columns: 1fr 1fr; gap: 0.45rem; margin-top: 0.3rem; }
.enquiry-card__actions .btn { min-height: 42px; padding: 0.5rem; font-size: 0.6rem; }
.enquiry-card__trust { display: flex; align-items: center; gap: 0.5rem; margin-top: 1rem; padding-top: 0.9rem; border-top: 1px solid var(--line-soft); font-size: 0.62rem; color: var(--text-faint); line-height: 1.5; }
.enquiry-card__trust svg { width: 15px; height: 15px; color: var(--brass-deep); flex: none; }

.aside-agent { display: flex; align-items: center; gap: 0.7rem; padding-bottom: 1rem; margin-bottom: 1rem; border-bottom: 1px solid var(--line-soft); }
.aside-agent__av { width: 40px; height: 40px; border-radius: 50%; background: var(--forest); color: var(--brass-light); display: grid; place-items: center; font-family: var(--serif); font-size: 0.95rem; flex: none; }
.aside-agent .nm { font-size: var(--fs-xs); font-weight: 500; }
.aside-agent .rl { font-size: 0.6rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-faint); margin-top: 0.1rem; }

/* sticky mobile enquiry bar */
.mobile-cta {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 80;
  display: none;
  gap: 0.5rem;
  padding: 0.7rem 0.9rem calc(0.7rem + env(safe-area-inset-bottom));
  background: rgba(251, 248, 241, 0.96);
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--line);
}
.mobile-cta .btn { flex: 1; min-height: 46px; }
.mobile-cta .icon-btn { width: 46px; height: 46px; border-radius: var(--radius); }

/* ---------------------------------------------------------------- QUICK VIEW
   Property dossier modal
   ------------------------------------------------------------------------ */
.card__view {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin-top: 0.9rem;
  padding-top: 0.8rem;
  border-top: 1px solid var(--line-soft);
  width: 100%;
  font-size: 0.62rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-muted);
  transition: color 0.3s var(--ease);
  text-align: left;
}
.card__view svg { width: 13px; height: 13px; transition: transform 0.35s var(--ease-out); }
.card:hover .card__view { color: var(--brass-deep); }
.card:hover .card__view svg { transform: translateX(4px); }
.results-grid.is-list .card__view { display: none; }

.pm-grid { display: grid; grid-template-columns: 1.02fr 1fr; }
.pm-media { position: relative; min-height: 420px; background: var(--ivory-deep); }
.pm-media img { width: 100%; height: 100%; object-fit: cover; }
.pm-copy { padding: clamp(1.6rem, 3vw, 2.6rem); }
.pm-copy .modal__title { font-size: clamp(1.6rem, 2.6vw, 2.1rem); margin-bottom: 0.7rem; }

.pm-price {
  font-family: var(--serif);
  font-size: 1.85rem;
  line-height: 1;
  margin: 0.2rem 0 1.3rem;
  color: var(--text);
}
.pm-price span {
  display: block;
  font-family: var(--sans);
  font-size: 0.6rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-top: 0.6rem;
}

.pm-specs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.9rem 1rem;
  padding: 1.1rem 0;
  margin-bottom: 1.1rem;
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
}
.pm-specs span { display: block; font-size: 0.58rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-faint); margin-bottom: 0.2rem; }
.pm-specs b { font-family: var(--serif); font-weight: 500; font-size: 1.05rem; }

.pm-amenities { display: flex; flex-wrap: wrap; gap: 0.35rem; margin-bottom: 0.4rem; }
.pm-amenities .chip svg { width: 12px; height: 12px; }
.pm-actions { display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap; margin-top: 0.8rem; }
.pm-actions .btn { min-height: 50px; }
.pm-actions .btn--primary { flex: 1 1 100%; }
.pm-actions .btn--ghost { flex: 1 1 auto; }

/* ---------------------------------------------------------------- MAP LAYER
   ------------------------------------------------------------------------ */
.map-inner {
  position: absolute;
  inset: 0;
  transform-origin: 50% 55%;
  transition: transform 0.6s var(--ease-out);
}
.map-pins { position: absolute; inset: 0; }
.avora-map .map-base { width: 100%; height: 100%; }

/* closing CTA band */
.close-cta {
  background: var(--forest-deep);
  color: var(--on-dark);
  padding-block: clamp(2.6rem, 5.5vw, 4.5rem);
  position: relative;
  overflow: hidden;
}
.close-cta::before {
  content: "";
  position: absolute;
  right: -10%;
  top: -60%;
  width: 60vw;
  height: 60vw;
  background: radial-gradient(circle, rgba(185, 146, 74, 0.15) 0%, rgba(185, 146, 74, 0) 62%);
}
.close-cta__inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}
.close-cta__inner > div:first-child { flex: 1 1 520px; }
.close-cta .eyebrow { white-space: nowrap; }
.close-cta h2 { font-size: clamp(1.9rem, 3.4vw, 2.9rem); font-weight: 300; margin-top: 0.9rem; }
.close-cta h2 em { color: var(--brass-light); }
.close-cta p { color: var(--on-dark-muted); font-size: var(--fs-sm); max-width: 40ch; margin-top: 0.8rem; line-height: 1.7; }
.close-cta__actions { display: flex; gap: 0.6rem; flex-wrap: wrap; }

.proj-hero-cta {
  display: flex;
  gap: 0.55rem;
  flex-wrap: wrap;
  margin-top: 1.6rem;
}
.proj-hero-cta .btn { min-height: 46px; padding: 0.8rem 1.25rem; }

/* ---------------------------------------------------------------- LEGAL
   Policy page
   ------------------------------------------------------------------------ */
.legal-layout {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: clamp(2rem, 6vw, 6rem);
  align-items: start;
}

.legal-nav {
  position: sticky;
  top: calc(var(--header-h) + 2.5rem);
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  border-top: 1px solid var(--line);
  padding-top: 1.1rem;
}
.legal-nav a {
  font-size: var(--fs-sm);
  color: var(--text-muted);
  padding-block: 0.42rem;
  border-bottom: 1px solid transparent;
  transition: color 0.25s var(--ease), border-color 0.25s var(--ease);
}
.legal-nav a:hover { color: var(--text); border-bottom-color: var(--line); }

.legal-body { max-width: 72ch; }
.legal-block { padding-bottom: clamp(1.4rem, 2.6vw, 2rem); margin-bottom: clamp(1.4rem, 2.6vw, 2rem); border-bottom: 1px solid var(--line-soft); }
.legal-block:last-child { border-bottom: 0; margin-bottom: 0; padding-bottom: 0; }
.legal-body .prose a { color: var(--brass-deep); border-bottom: 1px solid rgba(185, 146, 74, 0.4); }
.legal-body .prose a:hover { color: var(--text); border-bottom-color: var(--text); }

@media (max-width: 860px) {
  .legal-layout { grid-template-columns: 1fr; gap: 2rem; }
  .legal-nav { position: static; flex-direction: row; flex-wrap: wrap; gap: 0.4rem 1.2rem; border-top: 0; padding-top: 0; }
  .legal-nav .label { width: 100%; }
}

/* ---------------------------------------------------------------- LAND PAGE
   Plot cards, licence facts
   ------------------------------------------------------------------------ */
.card__facts {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.85rem;
  margin-top: 0.15rem;
  font-size: 0.72rem;
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
}
.card__facts span { display: inline-flex; align-items: center; gap: 0.3rem; }
.card__facts svg { width: 13px; height: 13px; color: var(--brass-deep); flex: none; }

.plot-card .card__title { font-size: 1.1rem; line-height: 1.3; }
.plot-card .card__price .price { font-size: 1.3rem; }
.plot-card .card__price .per { font-size: 0.62rem; }

/* ---------------------------------------------------------------- STEPS
   Four-step process
   ------------------------------------------------------------------------ */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
}

.step {
  padding: 1.5rem 1.5rem 1.7rem;
  border-right: 1px solid var(--line);
  position: relative;
}
.step:first-child { padding-left: 0; }
.step:last-child { border-right: 0; padding-right: 0; }

.step__n {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1rem;
  color: var(--brass-deep);
}
.step__ic {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 50%;
  margin: 1rem 0 0.9rem;
  color: var(--brass-deep);
}
.step__ic svg { width: 17px; height: 17px; }
.step h3 { font-family: var(--serif); font-size: 1.3rem; font-weight: 500; margin-bottom: 0.4rem; line-height: 1.2; }
.step p { font-size: var(--fs-sm); color: var(--text-muted); line-height: 1.62; }

/* ---------------------------------------------------------------- BUILDERS
   Partner grid
   ------------------------------------------------------------------------ */
.builders {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.builder-card {
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: clamp(1.2rem, 2vw, 1.7rem);
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  background: var(--paper);
  transition: background 0.35s var(--ease);
}
.builder-card:hover { background: var(--ivory); }

.builder-card__head { display: flex; align-items: baseline; justify-content: space-between; gap: 0.8rem; }
.builder-card h3 { font-family: var(--serif); font-size: 1.28rem; font-weight: 500; line-height: 1.15; }
.builder-card__since {
  font-size: 0.56rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-faint);
  white-space: nowrap;
}
.builder-card__bio { font-size: var(--fs-sm); color: var(--text-muted); line-height: 1.62; flex: 1; }

.builder-card__meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.55rem 1rem;
  border-top: 1px solid var(--line-soft);
  padding-top: 0.8rem;
  margin: 0;
}
.builder-card__meta dt { font-size: 0.54rem; letter-spacing: 0.13em; text-transform: uppercase; color: var(--text-faint); }
.builder-card__meta dd { font-size: 0.8rem; margin: 0.15rem 0 0; font-variant-numeric: tabular-nums; }

.builder-card__cta {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.6rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brass-deep);
  padding-top: 0.7rem;
  border-top: 1px solid var(--line-soft);
  text-align: start;
}
.builder-card__cta svg { width: 13px; height: 13px; transition: transform 0.35s var(--ease-out); }
.builder-card__cta:hover svg { transform: translateX(4px); }

/* ---------------------------------------------------------------- CALCULATOR
   ---------------------------------------------------------------- */
.calc-section { background: var(--forest-deep); color: var(--on-dark); }
.calc-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: start;
}
.calc-copy h2 {
  font-size: var(--fs-display);
  font-weight: 300;
  margin: 1rem 0 0.9rem;
  color: var(--on-dark);
}
.calc-copy .lede { color: var(--on-dark-muted); max-width: 40ch; }

.calc-controls { margin-top: 2rem; display: grid; gap: 1.5rem; }

.calc-field label {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.58rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--on-dark-muted);
  margin-bottom: 0.55rem;
}
.calc-field label b { font-family: var(--serif); font-size: 1rem; letter-spacing: 0; color: var(--brass-light); }

.calc-input {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  border-bottom: 1px solid var(--line-dark);
  padding-bottom: 0.35rem;
}
.calc-input span { font-family: var(--serif); font-size: 1.35rem; color: var(--brass-light); }
.calc-input input {
  background: none;
  border: 0;
  color: var(--on-dark);
  font-family: var(--serif);
  font-size: 1.55rem;
  width: 100%;
  min-width: 0;
}
.calc-input input:focus { outline: none; }

.calc-select {
  width: 100%;
  margin-top: 0.55rem;
  background: rgba(241, 236, 225, 0.04);
  border: 1px solid var(--line-dark);
  color: var(--on-dark);
  padding: 0.6rem 0.7rem;
  font-size: var(--fs-xs);
  border-radius: 2px;
  cursor: pointer;
}
.calc-select option { color: #151814; background: #fffdf8; }

.calc-result {
  background: rgba(241, 236, 225, 0.045);
  border: 1px solid var(--line-dark);
  border-radius: 6px;
  padding: clamp(1.2rem, 2.4vw, 2rem);
}
.calc-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1.2rem;
  padding: 0.7rem 0;
  border-bottom: 1px solid var(--line-dark-soft);
  font-size: var(--fs-sm);
  color: var(--on-dark-muted);
}
.calc-row b { color: var(--on-dark); font-weight: 500; font-variant-numeric: tabular-nums; white-space: nowrap; }
.calc-row--total {
  border-bottom: 0;
  border-top: 1px solid var(--line-dark);
  margin-top: 0.5rem;
  padding-top: 1.1rem;
  color: var(--on-dark);
}
.calc-row--total b { font-family: var(--serif); font-size: clamp(1.7rem, 2.6vw, 2.2rem); color: var(--brass-light); font-weight: 400; }
.calc-foot {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 0.9rem;
  font-size: var(--fs-xs);
  color: var(--on-dark-muted);
}
.calc-foot b { color: var(--on-dark); }

.range-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 2px;
  background: var(--line-dark);
  border-radius: 2px;
  cursor: pointer;
}
.range-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--brass);
  border: 3px solid var(--forest-deep);
  box-shadow: 0 0 0 1px var(--brass);
}

/* ---------------------------------------------------------------- LICENCE
   ---------------------------------------------------------------- */
.licence-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}
.licence-media { position: relative; border-radius: var(--radius); overflow: hidden; }
.licence-media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.licence-stamp {
  position: absolute;
  left: 1rem;
  bottom: 1rem;
  background: rgba(251, 248, 241, 0.94);
  color: var(--ink);
  font-size: 0.56rem;
  letter-spacing: 0.18em;
  padding: 0.4rem 0.6rem;
  border-radius: 2px;
}

.points { display: grid; margin-top: 1.6rem; border-top: 1px solid var(--line); }
.point { display: grid; grid-template-columns: 34px 1fr; gap: 1rem; padding: 1rem 0; border-bottom: 1px solid var(--line-soft); }
.point__ic { width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center; color: var(--brass-deep); }
.point__ic svg { width: 14px; height: 14px; }
.point h3 { font-family: var(--serif); font-size: 1.12rem; font-weight: 500; margin-bottom: 0.2rem; line-height: 1.3; }
.point p { font-size: var(--fs-sm); color: var(--text-muted); line-height: 1.6; }

/* ---------------------------------------------------------------- PLOT DETAIL
   Licence facts, builder quotes, timeline
   ------------------------------------------------------------------------ */
.fact-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
  margin-top: 1.5rem;
  padding-top: 1.1rem;
  border-top: 1px solid var(--line-soft);
}
.fact-list dt { font-size: 0.56rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-faint); }
.fact-list dd { margin: 0.25rem 0 0; font-family: var(--serif); font-size: 1.05rem; }

.builder-quotes { display: grid; gap: 0.7rem; }
.builder-quote {
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  padding: 1.1rem 1.25rem 1.2rem;
  background: var(--white);
  transition: border-color 0.3s var(--ease);
}
.builder-quote:hover { border-color: rgba(185, 146, 74, 0.5); }
.builder-quote__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 0.2rem 1rem; }
.builder-quote h3 { font-family: var(--serif); font-size: 1.25rem; font-weight: 500; }
.builder-quote__price { font-family: var(--serif); font-size: 0.98rem; white-space: nowrap; color: var(--brass-deep); }
.builder-quote__price small { font-family: var(--sans); font-size: 0.58rem; color: var(--text-faint); margin-inline-start: 0.15rem; }
.builder-quote p { font-size: var(--fs-sm); color: var(--text-muted); line-height: 1.6; margin: 0.4rem 0 0.7rem; }
.builder-quote dl {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.6rem;
  margin: 0;
  border-top: 1px solid var(--line-soft);
  padding-top: 0.7rem;
}
.builder-quote dt { font-size: 0.52rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-faint); }
.builder-quote dd { margin: 0.15rem 0 0; font-size: 0.8rem; font-variant-numeric: tabular-nums; }
.builder-quote__cta {
  margin-top: 0.8rem;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.6rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brass-deep);
}
.builder-quote__cta svg { width: 13px; height: 13px; }

.timeline { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.timeline li { display: flex; gap: 0.8rem; border-top: 1px solid var(--line); padding-top: 0.9rem; }
.timeline__n { font-family: var(--serif); font-style: italic; color: var(--brass-deep); font-size: 0.95rem; }
.timeline h3 { font-family: var(--serif); font-size: 1.02rem; font-weight: 500; line-height: 1.25; margin-bottom: 0.2rem; }
.timeline p { font-size: var(--fs-xs); color: var(--text-muted); }

.calc-result--light { background: var(--white); border-color: var(--line-soft); color: var(--text); }
.calc-result--light .calc-row { color: var(--text-muted); border-bottom-color: var(--line-soft); }
.calc-result--light .calc-row b { color: var(--text); }
.calc-result--light .calc-row--total { color: var(--text); border-top-color: var(--line); }
.calc-result--light .calc-row--total b { color: var(--brass-deep); }
.calc-result--light .calc-foot { color: var(--text-faint); }
.calc-result--light .calc-foot b { color: var(--text); }

@media (max-width: 860px) {
  .fact-list { grid-template-columns: 1fr 1fr; }
  .timeline { grid-template-columns: 1fr 1fr; }
  .builder-quote dl { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .timeline { grid-template-columns: 1fr; }
  .fact-list { grid-template-columns: 1fr; }
  .builder-quote__head { flex-direction: column; align-items: flex-start; gap: 0.2rem; }
}

/* ---------------------------------------------------------------- RTL
   Persian
   ------------------------------------------------------------------------ */
[dir="rtl"] .search-field + .search-field { border-left: 0; border-right: 1px solid var(--line-soft); }
[dir="rtl"] .card-actions { right: auto; left: 0.85rem; }
[dir="rtl"] .compare-bar__label { direction: rtl; }
[dir="rtl"] .step { border-right: 0; border-left: 1px solid var(--line); }
[dir="rtl"] .step:last-child { border-left: 0; }
[dir="rtl"] .builders { border-left: 0; border-right: 1px solid var(--line); }
[dir="rtl"] .builder-card { border-right: 0; border-left: 1px solid var(--line); }
[dir="rtl"] .link-arrow svg,
[dir="rtl"] .btn svg,
[dir="rtl"] .card__view svg,
[dir="rtl"] .project-card__cta svg,
[dir="rtl"] .builder-card__cta svg { transform: scaleX(-1); }
[dir="rtl"] .btn:hover svg { transform: scaleX(-1) translateX(-3px); }
[dir="rtl"] .card__view svg { transform: scaleX(-1); }

[dir="rtl"] .price,
[dir="rtl"] .card__price .per,
[dir="rtl"] .calc-row b,
[dir="rtl"] .insight-stat .v,
[dir="rtl"] .hero-stat .v,
[dir="rtl"] .project-card__price .v { unicode-bidi: isolate; }

/* ---------------------------------------------------------------- PERSIAN TYPE
   ------------------------------------------------------------------------ */
html[lang="fa"] {
  --serif: "Vazirmatn", "Segoe UI", Tahoma, sans-serif;
  --sans: "Vazirmatn", "Segoe UI", Tahoma, sans-serif;
}
html[lang="fa"] body { line-height: 1.85; font-weight: 400; }
html[lang="fa"] h1,
html[lang="fa"] h2,
html[lang="fa"] h3,
html[lang="fa"] h4,
html[lang="fa"] .hero-title,
html[lang="fa"] .project-card__name,
html[lang="fa"] .brand-word { font-weight: 500; letter-spacing: 0; line-height: 1.4; }
html[lang="fa"] .brand-word { letter-spacing: 0.08em; }
html[lang="fa"] .brand-word small { letter-spacing: 0.12em; }
html[lang="fa"] .eyebrow,
html[lang="fa"] .label,
html[lang="fa"] .badge,
html[lang="fa"] .chip,
html[lang="fa"] .footer-col h4,
html[lang="fa"] .field > label,
html[lang="fa"] .calc-field label { letter-spacing: 0.02em; text-transform: none; }
html[lang="fa"] .hero-title { font-size: clamp(2.3rem, 4.6vw, 3.9rem); line-height: 1.35; }
html[lang="fa"] .hero-title em { font-style: normal; font-weight: 600; color: var(--brass-light); }
html[lang="fa"] h2 em,
html[lang="fa"] .display em { font-style: normal; font-weight: 600; color: var(--brass-deep); }
html[lang="fa"] .hero__kicker { letter-spacing: 0.02em; }
html[lang="fa"] .btn { letter-spacing: 0.02em; text-transform: none; font-size: 0.82rem; }
html[lang="fa"] .link-arrow { letter-spacing: 0.02em; text-transform: none; font-size: 0.82rem; }
html[lang="fa"] .card__view { letter-spacing: 0.02em; text-transform: none; font-size: 0.72rem; }
html[lang="fa"] .price { font-weight: 600; }
html[lang="fa"] .steps .step h3,
html[lang="fa"] .builder-card h3 { font-size: 1.2rem; }
html[lang="fa"] .hero__aside strong { font-size: 1.35rem; }

@media (max-width: 1024px) {
  .builders { grid-template-columns: repeat(2, 1fr); }
  .calc-layout { grid-template-columns: 1fr; gap: 2.2rem; }
  .licence-layout { grid-template-columns: 1fr; }
  .licence-media { order: -1; }
}

@media (max-width: 860px) {
  .steps { grid-template-columns: 1fr 1fr; }
  .step { padding: 1.3rem 1.2rem; border-bottom: 1px solid var(--line); }
  .step:nth-child(2n) { border-right: 0; }
  .step:nth-child(-n+2) { padding-top: 1.3rem; }
  .step:nth-child(2n+1) { border-left: 0; }
  .step:last-child { border-right: 0; }
  .calc-result { padding: 1.2rem; }
}

@media (max-width: 640px) {
  .steps { grid-template-columns: 1fr; }
  .step { border-left: 0; border-right: 0; padding: 1.2rem 0; }
  .builders { grid-template-columns: 1fr; }
  .calc-row--total b { font-size: 1.7rem; }
}



@media (max-width: 1180px) {
  .results-grid { grid-template-columns: repeat(2, 1fr); }
  .prop-grid { grid-template-columns: repeat(2, 1fr); }
  .quick-facts { grid-template-columns: repeat(3, 1fr); }
  .quick-fact:nth-child(4) { border-left: 0; padding-left: 0; }
  .quick-fact:nth-child(n + 4) { border-top: 1px solid var(--line-soft); }
  .dev-grid { grid-template-columns: repeat(2, 1fr); }
  .insights { grid-template-columns: 1fr; }
  .proj-layout { grid-template-columns: 1fr 320px; }
}

@media (max-width: 1024px) {
  .featured-grid { grid-template-columns: 1fr; }
  .featured-grid__main { min-height: 460px; }
  .featured-grid__side { grid-template-rows: none; grid-template-columns: 1fr 1fr; }
  .featured-grid__all { grid-column: 1 / -1; }
  .launch-layout { grid-template-columns: 1fr; gap: 2rem; }
  .launch-intro { position: static; }
  .locations-grid { grid-auto-rows: 180px; }
  .invest__layout { grid-template-columns: 1fr; }
  .types-grid { grid-template-columns: repeat(4, 1fr); }
  .results-layout { grid-template-columns: 1fr; }
  .filters {
    position: fixed;
    inset: 0;
    z-index: 150;
    background: var(--paper);
    max-height: none;
    padding: 1.2rem var(--gutter) 6rem;
    overflow-y: auto;
    top: 0;
    transform: translateY(100%);
    visibility: hidden;
    transition: transform 0.5s var(--ease-out), visibility 0.5s;
  }
  .filters.is-open { transform: none; visibility: visible; }
  .filters__head { position: sticky; top: 0; background: var(--paper); z-index: 2; padding-top: 0.5rem; }
  .filter-btn { display: inline-flex; }
  .filter-sheet-close { display: inline-flex; width: 34px; height: 34px; }
  .filter-group--mobile { display: block; }
  .map-layout { grid-template-columns: 1fr; height: auto; }
  .map-layout .results-grid { height: auto; overflow: visible; }
  .avora-map { height: 460px; order: -1; }
  .proj-layout { grid-template-columns: 1fr; }
  .proj-aside { position: static; }
  .mobile-cta { display: flex; }
  .cta-panel { grid-template-columns: 1fr; }
  .proj-gallery { height: 420px; }
  .results-grid.is-list .card { grid-template-columns: 240px 1fr; }
}

@media (max-width: 860px) {
  .journal-grid { grid-template-columns: 1fr; gap: 2rem; }
  .journal-card .frame { aspect-ratio: 16 / 9; }
  .types-grid { grid-template-columns: repeat(2, 1fr); }
  .dev-grid { grid-template-columns: 1fr 1fr; }
  .proj-gallery { grid-template-columns: 1.4fr 1fr; height: 360px; }
  .amenities-grid { grid-template-columns: repeat(2, 1fr); }
  .nearby-grid { grid-template-columns: 1fr; }
  .nearby-map { min-height: 240px; }
  .search-bar { grid-template-columns: 1fr 1fr; }
  .search-bar .search-field:nth-child(2) { border-left: 1px solid var(--line-soft); }
  .search-bar .search-field:nth-child(3) { border-left: 0; border-top: 1px solid var(--line-soft); }
  .search-bar__btn { grid-column: 1 / -1; }
  .search-bar__btn .btn { width: 100%; }
  .locations-grid { grid-template-columns: repeat(2, 1fr); }
  .loc-tile:nth-child(n) { grid-column: span 1; grid-row: span 1; }
  .loc-tile:nth-child(1) { grid-column: span 2; grid-row: span 2; }
  .loc-tile { min-height: 170px; }
  .floor-panel.is-active { grid-template-columns: 1fr; }
  .payment-plan { grid-template-columns: 1fr; }
  .highlights { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .prop-grid { grid-template-columns: 1fr; }
  .results-grid { grid-template-columns: 1fr; }
  .results-grid.is-list .card { grid-template-columns: 1fr; }
  .results-grid.is-list .card .frame { aspect-ratio: 4 / 3; }
  .launch-item { grid-template-columns: 26px 76px 1fr; row-gap: 0.5rem; }
  .launch-item__thumb { width: 76px; height: 58px; }
  .launch-item__right { grid-column: 2 / -1; flex-direction: row; align-items: center; justify-content: space-between; text-align: left; width: 100%; }
  .launch-item__name { font-size: 1.12rem; }
  .quick-facts { grid-template-columns: repeat(2, 1fr); }
  .quick-fact:nth-child(odd) { border-left: 0; padding-left: 0; }
  .quick-fact:nth-child(3) { border-top: 1px solid var(--line-soft); }
  .quick-fact:nth-child(n + 3) { border-top: 1px solid var(--line-soft); }
  .dev-grid { grid-template-columns: 1fr; }
  .types-grid { grid-template-columns: 1fr 1fr; }
  .type-cell { min-height: 124px; }
  .proj-intro__row { align-items: flex-start; }
  .proj-intro__price { text-align: left; }
  .proj-gallery { grid-template-columns: 1fr; grid-template-rows: 1fr; height: 300px; }
  .proj-gallery__item { display: none; }
  .proj-gallery__hero { grid-row: auto; }
  .dev-block { flex-direction: column; align-items: flex-start; }
  .dev-block__stats { width: 100%; justify-content: space-between; }
  .dev-block__stats div { text-align: left; }
  .search-bar { position: static; }
  .compare-bar { flex-wrap: wrap; padding: 0.8rem; bottom: 0.6rem; }
  .compare-bar__label { order: 3; width: 100%; }
  .compare-bar .btn { order: 2; }
  .hero__foot .hero-stats { width: 100%; }
  .chart-card { padding: 1rem; }
  .footer-watermark { font-size: 24vw; }
  .mobile-cta { display: flex; }
}

@media (max-width: 420px) {
  .locations-grid { grid-template-columns: 1fr; }
  .loc-tile:nth-child(1) { grid-column: span 1; grid-row: span 1; }
  .types-grid { grid-template-columns: 1fr; }
  .amenities-grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  :root { --section-y: 3.6rem; }
  .section--tight { padding-block: 2.4rem; }
  .results-tools { width: 100%; flex-wrap: wrap; justify-content: space-between; gap: 0.5rem; }
  .sort-select { flex: 1 1 auto; }
  .sort-select span { display: none; }
  .view-toggle { margin-left: auto; }
  .search-bar { grid-template-columns: 1fr; }
  .search-bar .search-field + .search-field { border-left: 0; border-top: 1px solid var(--line-soft); }
  .search-bar .search-field:nth-child(2) { border-left: 0; }
  .invest-stats { grid-template-columns: 1fr; gap: 0; padding-top: 1.2rem; }
  .invest-stat { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; padding-block: 0.9rem; border-bottom: 1px solid var(--line-dark-soft); }
  .invest-stat .k { order: 2; text-align: right; margin-top: 0; max-width: 55%; }
  .invest-stat .v { order: 1; font-size: 1.9rem; }
  .invest__copy .lede { font-size: var(--fs-sm); }
  .results-count { font-size: 1.5rem; }
  .results-toolbar { gap: 0.75rem; }
  .chart { aspect-ratio: 4 / 3; }
  .chart-card__head { flex-direction: column; align-items: flex-start; gap: 0.8rem; }
  .chart-card__foot { flex-direction: column; align-items: flex-start; gap: 0.4rem; }
  .insight-stat { flex-wrap: wrap; gap: 0.2rem 1rem; }
  .insight-stat .v { font-size: 1.3rem; }
  .proj-hero-cta { margin-top: 1.2rem; }
  .proj-hero-cta .btn { flex: 1 1 auto; }
  .close-cta__inner { flex-direction: column; align-items: flex-start; }
}

