/* ==========================================================================
   Plots and Keys — plotsandkeys.com
   Single stylesheet. Brand tokens first, components after.
   Mobile-first. No frameworks, no external requests.
   ========================================================================== */

/* --- Self-hosted Montserrat (variable, latin subset + rupee sign) --------- */
@font-face {
  font-family: "Montserrat";
  src: url("/assets/fonts/montserrat-var-subset.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

/* --- Brand tokens -------------------------------------------------------- */
:root {
  /* Brand red gradient, top-bright to bottom-deep, exactly as the pin */
  --red-1: #e80810;
  --red-2: #a00918;
  --red-flat: #d00810;
  --grad: linear-gradient(180deg, var(--red-1) 0%, var(--red-2) 100%);
  --grad-45: linear-gradient(150deg, var(--red-1) 0%, var(--red-2) 100%);

  /* Ink + paper */
  --ink: #0b0b0c;
  --ink-2: #4a4a51;
  --ink-3: #85858e;
  --paper: #ffffff;
  --paper-2: #f7f5f3; /* warm off-white for banded sections */
  --line: #e5e2df;
  --line-2: #efece9;

  /* Shape */
  --r-card: 20px;
  --r-frame: 13px;
  --r-chip: 11px;
  --r-btn: 13px;

  /* Space */
  --wrap: 1180px;
  --pad: clamp(1.25rem, 4.5vw, 3rem);
  --header-h: 60px;

  /* Elevation */
  --sh-1: 0 1px 2px rgba(11, 11, 12, 0.05), 0 10px 24px -14px rgba(11, 11, 12, 0.22);
  --sh-2: 0 2px 4px rgba(11, 11, 12, 0.06), 0 26px 50px -22px rgba(11, 11, 12, 0.34);
  --sh-red: 0 10px 24px -10px rgba(200, 8, 22, 0.55);

  /* Type */
  --ff: "Montserrat", "Helvetica Neue", Arial, sans-serif;
}

@media (min-width: 900px) {
  :root { --header-h: 68px; }
}

/* --- Reset -------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
[hidden] { display: none !important; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 1rem);
}

body {
  font-family: var(--ff);
  font-weight: 400;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg, iframe { display: block; max-width: 100%; }
img { height: auto; }
button, input, select { font: inherit; color: inherit; }
a { color: inherit; text-decoration: none; }

:focus-visible {
  outline: 2.5px solid var(--red-flat);
  outline-offset: 3px;
  border-radius: 4px;
}

.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip {
  position: absolute; left: 50%; top: 0; z-index: 100;
  transform: translate(-50%, -120%);
  background: var(--ink); color: #fff;
  padding: 0.7rem 1.2rem; border-radius: 0 0 10px 10px;
  font-size: 0.8125rem; font-weight: 700;
}
.skip:focus { transform: translate(-50%, 0); }

/* --- Typography --------------------------------------------------------- */
h1, h2, h3, h4 {
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.025em;
  text-wrap: balance;
}

.eyebrow {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-3);
  display: flex;
  align-items: center;
  gap: 0.7rem;
}
.eyebrow::before {
  content: "";
  width: 22px; height: 3px; flex: none;
  border-radius: 2px;
  background: var(--grad);
}
.eyebrow--plain::before { display: none; }

/* Red-gradient display text — the signature accent */
.grad-text {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-style: normal;
}

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--pad);
}

/* --- Buttons ----------------------------------------------------------- */
.btn {
  --btn-py: 0.95rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.625rem;
  min-height: 52px;
  padding: var(--btn-py) 1.4rem;
  border: 1.5px solid transparent;
  border-radius: var(--r-btn);
  font-size: 0.9375rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  cursor: pointer;
  text-align: center;
  transition: transform 0.18s ease, box-shadow 0.18s ease,
              background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}
.btn .ico { width: 19px; height: 19px; flex: none; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn--wa {
  background-image: var(--grad);
  color: #fff;
  box-shadow: var(--sh-red);
}
.btn--wa:hover { box-shadow: 0 14px 30px -10px rgba(200, 8, 22, 0.68); }

.btn--call {
  background: var(--ink);
  color: #fff;
  box-shadow: 0 8px 20px -12px rgba(11, 11, 12, 0.7);
}
.btn--call:hover { background: #000; }

.btn--ghost {
  background: transparent;
  border-color: var(--line);
  color: var(--ink);
}
.btn--ghost:hover { border-color: var(--ink); background: var(--paper-2); }

.btn--sm { min-height: 42px; padding: 0.5rem 1rem; font-size: 0.8125rem; gap: 0.45rem; }
.btn--sm .ico { width: 16px; height: 16px; }
.btn--lg { min-height: 60px; font-size: 1.03125rem; padding-inline: 1.75rem; }

.cta-row { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.cta-row .btn { flex: 1 1 190px; }
@media (min-width: 640px) {
  .cta-row .btn { flex: 0 0 auto; }
}

/* --- Header ------------------------------------------------------------ */
.hdr {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--line-2);
}
.hdr-in {
  height: 100%;
  display: flex;
  align-items: center;
  gap: 1rem;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin-right: auto;
}
.brand .pin { width: 17px; height: 27px; flex: none; }
.brand b {
  font-weight: 800;
  font-size: 0.8125rem;
  letter-spacing: 0.17em;
  text-transform: uppercase;
  white-space: nowrap;
}
@media (min-width: 420px) {
  .brand .pin { width: 19px; height: 30px; }
  .brand b { font-size: 0.875rem; }
}
.hdr .back {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--ink-2);
  display: none;
  align-items: center;
  gap: 0.4rem;
}
.hdr .back:hover { color: var(--ink); }
.hdr .back .ico { width: 15px; height: 15px; }
@media (min-width: 560px) { .hdr .back { display: inline-flex; } }

/* --- Hero -------------------------------------------------------------- */
.hero {
  position: relative;
  overflow: hidden;
  background: var(--paper-2);
  border-bottom: 1px solid var(--line);
  padding-block: clamp(2.25rem, 6vw, 4.25rem) clamp(2.5rem, 7vw, 4.75rem);
}
/* fine paper grain — stitchTiles keeps the repeat seamless */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.14;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n' x='0' y='0' width='100%25' height='100%25'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='240' height='240' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 240px 240px;
}
/* oversized brand pin as a watermark — atmosphere, zero extra requests */
.ghost-pin {
  position: absolute;
  right: -6%;
  top: -8%;
  width: min(46vw, 430px);
  height: auto;
  opacity: 0.075;
  pointer-events: none;
  z-index: 0;
}
@media (max-width: 760px) {
  .ghost-pin { right: -22%; top: auto; bottom: -12%; width: 62vw; opacity: 0.05; }
}
.hero-in { position: relative; z-index: 1; }

.hero-logo {
  width: clamp(126px, 20vw, 190px);
  height: auto;
  margin-bottom: clamp(1.35rem, 4vw, 2.25rem);
}

.hero-h1 {
  font-size: clamp(2.375rem, 8.6vw, 4.75rem);
  letter-spacing: -0.038em;
  max-width: 17ch;
  margin-top: 0.85rem;
}
.hero-lead {
  margin-top: 1.15rem;
  max-width: 46ch;
  font-size: clamp(1.0625rem, 1.9vw, 1.3125rem);
  line-height: 1.5;
  color: var(--ink-2);
  text-wrap: pretty;
}
.hero .cta-row { margin-top: clamp(1.6rem, 4vw, 2.15rem); }
.hero-note {
  margin-top: 1.25rem;
  max-width: 44ch;
  font-size: 0.8125rem;
  color: var(--ink-3);
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
}
.hero-note .dot {
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--red-flat);
  flex: none;
  margin-top: 0.55em;
}

/* --- Section heading --------------------------------------------------- */
.sec { padding-block: clamp(2.5rem, 6vw, 4rem); }
.sec-head { display: grid; gap: 0.7rem; }
.sec-head h2 { font-size: clamp(1.625rem, 4.2vw, 2.375rem); }
.sec-head .sub { color: var(--ink-2); font-size: 0.9375rem; max-width: 52ch; }

/* --- Filter bar -------------------------------------------------------- */
/* Not sticky on phones: with three facet rows the bar is ~200px tall, which
   would swallow a quarter of the viewport while scrolling the grid. */
.filters {
  position: static;
  z-index: 40;
  margin-top: 1.75rem;
  padding-block: 0.875rem;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid var(--line-2);
  border-bottom: 1px solid var(--line-2);
}
.f-grid { display: grid; gap: 0.75rem; }

.f-row { display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap; }
.f-name {
  font-size: 0.625rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-3);
  flex: none;
  min-width: 4.25rem;
}

.chip-btn {
  background: var(--paper);
  border: 1.5px solid var(--line);
  border-radius: 999px;
  padding: 0.4rem 0.85rem;
  min-height: 36px;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--ink-2);
  cursor: pointer;
  white-space: nowrap;
  transition: background-color 0.15s ease, border-color 0.15s ease,
              color 0.15s ease, box-shadow 0.15s ease;
}
.chip-btn:hover { border-color: var(--ink-3); color: var(--ink); }
.chip-btn[aria-pressed="true"] {
  background-image: var(--grad);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 5px 14px -6px rgba(200, 8, 22, 0.6);
}

.f-select {
  appearance: none;
  -webkit-appearance: none;
  background: var(--paper)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5 6 6.5l5-5' fill='none' stroke='%2385858e' stroke-width='1.8' stroke-linecap='round'/%3E%3C/svg%3E")
    no-repeat right 0.8rem center / 11px 8px;
  border: 1.5px solid var(--line);
  border-radius: 999px;
  padding: 0.4rem 2.1rem 0.4rem 0.85rem;
  min-height: 36px;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--ink-2);
  cursor: pointer;
  max-width: 100%;
}
.f-select:not([data-any="1"]) {
  border-color: var(--red-flat);
  color: var(--red-2);
  font-weight: 700;
}

.f-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--ink-2);
  cursor: pointer;
  min-height: 36px;
  user-select: none;
}
.f-toggle input {
  appearance: none;
  -webkit-appearance: none;
  width: 38px; height: 22px;
  flex: none;
  border-radius: 999px;
  background: #d8d4d0;
  position: relative;
  cursor: pointer;
  transition: background-color 0.18s ease;
}
.f-toggle input::after {
  content: "";
  position: absolute;
  top: 3px; left: 3px;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
  transition: transform 0.18s ease;
}
.f-toggle input:checked { background-image: var(--grad); }
.f-toggle input:checked::after { transform: translateX(16px); }

.f-foot {
  display: flex;
  align-items: baseline;
  gap: 0.85rem;
  flex-wrap: wrap;
  padding-top: 0.15rem;
}
.f-count { font-size: 0.8125rem; font-weight: 700; }
.f-count b { font-weight: 800; }
.f-clear {
  background: none;
  border: 0;
  padding: 0.25rem 0;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--red-2);
  cursor: pointer;
  border-bottom: 1.5px solid currentColor;
}
.f-clear:hover { color: var(--ink); }

@media (min-width: 780px) {
  .f-grid { grid-template-columns: 1fr auto; align-items: start; column-gap: 2rem; }
  .f-foot { grid-column: 1 / -1; }
}
@media (min-width: 900px) {
  .filters { position: sticky; top: var(--header-h); }
}

/* --- Property grid ----------------------------------------------------- */
.grid {
  list-style: none;
  padding: 0;
  margin-top: clamp(1.5rem, 4vw, 2.25rem);
  display: grid;
  gap: clamp(1rem, 2.4vw, 1.5rem);
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 292px), 1fr));
}

.card {
  position: relative;
  display: block;
  aspect-ratio: 4 / 5;
  border-radius: var(--r-card);
  overflow: hidden;
  background: var(--ink);
  box-shadow: var(--sh-1);
  isolation: isolate;
  transition: transform 0.32s cubic-bezier(0.2, 0.7, 0.2, 1), box-shadow 0.32s ease;
  animation: rise 0.6s cubic-bezier(0.2, 0.7, 0.2, 1) both;
  animation-delay: calc(var(--i, 0) * 65ms);
}
@keyframes rise {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: none; }
}
.card:hover { transform: translateY(-5px); box-shadow: var(--sh-2); }

.card-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.55s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.card:hover .card-img { transform: scale(1.045); }

/* dark gradient overlay, as on the Instagram carousels */
.card-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(4, 4, 5, 0.9) 0%,
    rgba(4, 4, 5, 0.62) 34%,
    rgba(4, 4, 5, 0.12) 66%,
    rgba(4, 4, 5, 0.28) 100%
  );
}
/* photoless cards already have the red gradient behind, so shade only the
   text zone at the bottom and leave the pin motif clean white */
.card[data-noimg] .card-shade {
  background: linear-gradient(
    to top,
    rgba(4, 4, 5, 0.7) 0%,
    rgba(4, 4, 5, 0.34) 26%,
    rgba(4, 4, 5, 0) 56%
  );
}

/* corner affordance — pure CSS, no extra markup */
.card::before {
  content: "";
  position: absolute;
  top: 20px; right: 20px;
  z-index: 2;
  width: 34px; height: 34px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.45);
  background-color: rgba(255, 255, 255, 0.14);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4.5 12H19M13 5.5 19.5 12 13 18.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 13px 13px;
  transition: background-color 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
}
.card:hover::before {
  background-color: #fff;
  border-color: #fff;
  transform: translateX(2px);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230b0b0c' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4.5 12H19M13 5.5 19.5 12 13 18.5'/%3E%3C/svg%3E");
}

/* thin inset white frame, as on the carousels */
.card::after {
  content: "";
  position: absolute;
  inset: 10px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: var(--r-frame);
  pointer-events: none;
  transition: border-color 0.3s ease;
}
.card:hover::after { border-color: rgba(255, 255, 255, 0.8); }

.card-body {
  position: absolute;
  inset: auto 0 0 0;
  padding: 1.15rem 1.4rem 1.4rem;
  color: #fff;
  display: grid;
  gap: 0.6rem;
}
.card-title {
  font-size: clamp(1.0625rem, 2.6vw, 1.1875rem);
  line-height: 1.16;
  letter-spacing: -0.02em;
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.45);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.card-price {
  font-size: clamp(1.375rem, 3.4vw, 1.625rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
  text-shadow: 0 1px 14px rgba(0, 0, 0, 0.5);
}
.card-price .cta-hint {
  display: block;
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  opacity: 0.72;
  margin-top: 0.4rem;
  text-shadow: none;
}

/* chip row — area (white) / type (brand red) / locality (white) */
.chips { display: flex; flex-wrap: wrap; gap: 0.35rem; }
.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.34rem 0.55rem;
  border-radius: var(--r-chip);
  background: rgba(255, 255, 255, 0.96);
  color: var(--ink);
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  white-space: nowrap;
  line-height: 1.1;
}
.chip .ico { width: 12px; height: 12px; flex: none; opacity: 0.65; }
.chip--type {
  background-image: var(--grad);
  background-color: var(--red-flat);
  color: #fff;
}
.chip--type .ico { opacity: 0.9; }
/* on a red placeholder, the red chip needs to switch to ink */
.card[data-noimg] .chip--type { background-image: none; background-color: var(--ink); }

.badge {
  position: absolute;
  top: 22px;
  left: 22px;
  z-index: 2;
  padding: 0.35rem 0.65rem;
  border-radius: 8px;
  font-size: 0.625rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #fff;
  background-image: var(--grad);
  background-color: var(--red-flat);
  box-shadow: 0 4px 12px -4px rgba(0, 0, 0, 0.5);
}
.badge--sold { background-image: none; background-color: #0b0b0c; }
.badge--offer { background-image: none; background-color: #1c1c22; }

.card[data-status="Sold"] .card-img { filter: grayscale(0.7) contrast(0.95); }
.card[data-status="Sold"]:hover .card-img { filter: grayscale(0.35); }

/* --- Empty state ------------------------------------------------------- */
.empty {
  margin-top: 2rem;
  padding: clamp(2rem, 6vw, 3.5rem) clamp(1.25rem, 4vw, 3rem);
  border: 1.5px dashed var(--line);
  border-radius: var(--r-card);
  background: var(--paper-2);
  text-align: center;
  display: grid;
  justify-items: center;
  gap: 1rem;
}
.empty h3 { font-size: clamp(1.25rem, 3.4vw, 1.625rem); }
.empty p { color: var(--ink-2); max-width: 40ch; font-size: 0.9375rem; }
.empty .cta-row { justify-content: center; }

/* ==========================================================================
   Property page
   ========================================================================== */
.prop { padding-block: clamp(1.5rem, 4vw, 2.5rem) clamp(2.5rem, 6vw, 4rem); }

.gallery { display: grid; gap: 0.5rem; }
.gal-main {
  position: relative;
  border-radius: var(--r-card);
  overflow: hidden;
  background: var(--ink);
  box-shadow: var(--sh-1);
}
.gal-main img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}
@media (min-width: 700px) {
  .gal-main img { aspect-ratio: 16 / 9; }
}
.gal-rest {
  display: grid;
  gap: 0.5rem;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 116px), 158px));
}
.gal-rest img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 11px;
  background: var(--paper-2);
}

.prop-head { margin-top: clamp(1.75rem, 4vw, 2.5rem); display: grid; gap: 0.9rem; }
.prop-head .badge { position: static; align-self: start; justify-self: start; box-shadow: none; }
.prop-h1 {
  font-size: clamp(1.75rem, 5.4vw, 3.125rem);
  letter-spacing: -0.032em;
}
.prop-where {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 1rem;
  font-weight: 600;
  color: var(--ink-2);
}
.prop-where .ico { width: 16px; height: 16px; color: var(--red-flat); flex: none; }

.price-line {
  margin-top: 0.35rem;
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  flex-wrap: wrap;
  padding-top: 1.15rem;
  border-top: 1px solid var(--line);
}
.price {
  font-size: clamp(2rem, 6.5vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
}
.price-note { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-3); }

.prop-cols { display: grid; gap: clamp(2rem, 5vw, 3rem); margin-top: clamp(2rem, 5vw, 3rem); }
@media (min-width: 940px) {
  .prop-cols { grid-template-columns: minmax(0, 1fr) 340px; align-items: start; }
}

.block + .block { margin-top: clamp(2rem, 4.5vw, 2.75rem); }
.block h2 {
  font-size: 0.6875rem;
  font-weight: 800;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-3);
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin-bottom: 1.1rem;
}
.block h2::before {
  content: "";
  width: 22px; height: 3px; flex: none;
  border-radius: 2px;
  background: var(--grad);
}

.specs { width: 100%; max-width: 560px; border-collapse: collapse; font-size: 0.9375rem; }
.specs th, .specs td {
  text-align: left;
  padding: 0.8rem 0.25rem;
  border-bottom: 1px solid var(--line-2);
  vertical-align: top;
}
.specs th {
  font-weight: 600;
  color: var(--ink-3);
  width: 44%;
  font-size: 0.8125rem;
  letter-spacing: 0.01em;
}
.specs td { font-weight: 700; }
.specs tr:last-child th, .specs tr:last-child td { border-bottom: 0; }

/* On phones a two-column table forces labels to wrap — stack them instead. */
@media (max-width: 559px) {
  .specs tr { display: block; padding: 0.7rem 0; border-bottom: 1px solid var(--line-2); }
  .specs tr:last-child { border-bottom: 0; }
  .specs th, .specs td { display: block; width: auto; padding: 0; border-bottom: 0; }
  .specs th { margin-bottom: 0.15rem; font-size: 0.75rem; }
}

.prose { font-size: 1.03125rem; line-height: 1.68; color: var(--ink-2); max-width: 62ch; }
.prose p + p { margin-top: 0.9rem; }
.prose + .prose { margin-top: 1.1rem; }

.textlink {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-weight: 700;
  color: var(--ink);
  border-bottom: 1.5px solid var(--line);
  padding-bottom: 0.15rem;
}
.textlink:hover { border-color: var(--red-flat); color: var(--red-2); }
.textlink .ico { width: 17px; height: 17px; }

.video {
  position: relative;
  border-radius: var(--r-card);
  overflow: hidden;
  background: var(--ink);
  box-shadow: var(--sh-1);
}
.video iframe { width: 100%; aspect-ratio: 16 / 9; height: auto; border: 0; }

/* sticky contact panel (desktop) */
.ask {
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  background: var(--paper-2);
  padding: clamp(1.25rem, 3vw, 1.75rem);
  display: grid;
  gap: 1rem;
  position: relative;
  overflow: hidden;
}
.ask::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: var(--grad);
}
.ask h2 {
  margin-bottom: 0;
  font-size: 1.3125rem;
  letter-spacing: -0.025em;
  text-transform: none;
  color: var(--ink);
}
.ask h2::before { display: none; }
.ask p { font-size: 0.875rem; color: var(--ink-2); }
.ask .btn { width: 100%; }
.ask .tel {
  font-size: 1.0625rem;
  font-weight: 800;
  letter-spacing: -0.01em;
}
@media (min-width: 940px) {
  .ask { position: sticky; top: calc(var(--header-h) + 1.5rem); }
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: clamp(2.5rem, 6vw, 3.5rem);
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--ink-2);
  border-bottom: 1.5px solid var(--line);
  padding-bottom: 0.2rem;
}
.back-link:hover { color: var(--ink); border-color: var(--ink); }
.back-link .ico { width: 15px; height: 15px; }

/* sticky mobile action bar */
.actionbar {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 60;
  display: flex;
  gap: 0.6rem;
  padding: 0.7rem var(--pad) calc(0.7rem + env(safe-area-inset-bottom));
  background: rgba(255, 255, 255, 0.93);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-top: 1px solid var(--line);
}
.actionbar .btn { flex: 1 1 0; min-height: 50px; }
.actionbar .btn--call { flex: 0 0 auto; padding-inline: 1.1rem; }
body.has-actionbar { padding-bottom: 84px; }
@media (min-width: 940px) {
  .actionbar { display: none; }
  body.has-actionbar { padding-bottom: 0; }
}

/* ==========================================================================
   404
   ========================================================================== */
.oops {
  min-height: calc(100svh - var(--header-h));
  display: grid;
  align-content: center;
  justify-items: start;
  gap: 1.15rem;
  padding-block: clamp(3rem, 10vw, 6rem);
  position: relative;
  overflow: hidden;
}
.oops .code {
  font-size: clamp(4.5rem, 18vw, 9rem);
  font-weight: 800;
  letter-spacing: -0.05em;
  line-height: 0.85;
}
.oops h1 { font-size: clamp(1.625rem, 5vw, 2.5rem); max-width: 22ch; }
/* Deliberately NOT `.oops p` — that would out-specify .grad-text and .eyebrow. */
.oops-lead { color: var(--ink-2); max-width: 44ch; }
.oops .ghost-pin { top: auto; bottom: -12%; right: -4%; width: min(36vw, 340px); }

/* ==========================================================================
   Footer
   ========================================================================== */
.ftr {
  background: var(--ink);
  color: #fff;
  padding-block: clamp(2.75rem, 7vw, 4.25rem) clamp(1.75rem, 4vw, 2.5rem);
  position: relative;
  overflow: hidden;
}
.ftr::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: var(--grad-45);
}
.ftr-top {
  display: grid;
  gap: clamp(2rem, 5vw, 3rem);
}
@media (min-width: 760px) {
  .ftr-top { grid-template-columns: 1.15fr 1fr; }
}
.ftr-logo { width: 200px; height: auto; }
.ftr-tag {
  margin-top: 1.1rem;
  font-size: 0.9375rem;
  color: rgba(255, 255, 255, 0.62);
  max-width: 34ch;
}
.ftr h2 {
  font-size: 0.625rem;
  font-weight: 800;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
  margin-bottom: 1rem;
}
.ftr-tel {
  font-size: clamp(1.375rem, 4vw, 1.75rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  display: inline-block;
}
.ftr-tel:hover { color: #ff5560; }
.ftr .cta-row { margin-top: 1.1rem; }
.ftr .btn--ghost { border-color: rgba(255, 255, 255, 0.24); color: #fff; }
.ftr .btn--ghost:hover { border-color: #fff; background: rgba(255, 255, 255, 0.08); }

.social { display: flex; gap: 0.6rem; margin-top: 1.75rem; }
.social a {
  width: 44px; height: 44px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  color: rgba(255, 255, 255, 0.8);
  transition: border-color 0.18s ease, color 0.18s ease, background-color 0.18s ease;
}
.social a:hover { border-color: #fff; color: #fff; background: rgba(255, 255, 255, 0.08); }
.social .ico { width: 19px; height: 19px; }

.ftr-bot {
  margin-top: clamp(2.25rem, 5vw, 3.25rem);
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.13);
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  align-items: center;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.45);
}
.ftr-bot .sep { margin-left: auto; }

/* ==========================================================================
   Motion / reduced motion
   The hero is deliberately NOT animated: it carries the phone number and the
   WhatsApp button, so it must be on screen the instant the CSS lands. Only the
   card grid gets a reveal, and only for the first screenful (see .card).
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001s !important;
    animation-delay: 0s !important;
    transition-duration: 0.001s !important;
  }
  .card:hover { transform: none; }
  .btn:hover { transform: none; }
}

/* the icon sprite itself is never painted */
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

/* --- Work with us (owner / agent / buyer forms) -------------------------- */
.sec--band { background: var(--paper-2); }
.aud-grid { display: grid; gap: 1rem; margin-top: 1.75rem; }
.aud {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  padding: 1.5rem;
  display: grid;
  gap: 0.75rem;
  align-content: start;
  box-shadow: var(--sh-1);
}
.aud h3 { font-size: 1.125rem; }
.aud p { color: var(--ink-2); font-size: 0.9rem; line-height: 1.55; }
.aud .btn { justify-self: start; margin-top: 0.25rem; }
.aud .btn .ico:last-child { margin-left: 0.4rem; margin-right: 0; }
@media (min-width: 760px) {
  .aud-grid { grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
  .aud { padding: 1.75rem; }
}
