/* EstateLoom customer website. Mobile first; no external fonts or images.
   A dealer's pages use their theme (data-theme on <body>) and accent colour (--accent, --on-accent
   set from the website settings), like the app's website preview. The landing page uses the defaults. */
:root {
  color-scheme: light;
  --accent: #2457e7;
  --on-accent: #ffffff;
  --saved: #e11d48;
  --ok: #15803d;
  --whatsapp: #25d366;
  --radius: 18px;
  --header: 64px;
  --shadow-sm: 0 1px 2px rgb(15 23 42 / 6%);
  --shadow: 0 1px 2px rgb(15 23 42 / 5%), 0 10px 28px rgb(15 23 42 / 8%);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Noto Sans", "Noto Sans Devanagari", "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
body {
  --bg: #ffffff;
  --surface: #ffffff;
  --text: #0f172a;
  --text-2: #334155;
  --muted: #64748b;
  --line: #e2e8f0;
  --line-2: #cbd5e1;
  --soft: #f8fafc;
  --field: #ffffff;
  --nav-bg: rgb(255 255 255 / 92%);
  --head-font: inherit;
  --head-weight: 800;
  --accent-soft: #eef3fe;
  --accent-ring: rgb(36 87 231 / 22%);
  --hero-end: #5b84ef;
}
body[data-theme="classic"] {
  --bg: #f5f7fb;
  --surface: #ffffff;
  --text: #111827;
  --text-2: #374151;
  --muted: #5b6475;
  --line: rgb(0 0 0 / 7%);
  --line-2: rgb(0 0 0 / 14%);
  --soft: #eef1f6;
  --field: #ffffff;
  --nav-bg: rgb(245 247 251 / 92%);
  --head-weight: 700;
}
body[data-theme="modern"] {
  --bg: #ffffff;
  --surface: #f3f4f6;
  --text: #111827;
  --text-2: #374151;
  --muted: #5b6475;
  --line: rgb(0 0 0 / 7%);
  --line-2: rgb(0 0 0 / 14%);
  --soft: #f3f4f6;
  --field: #ffffff;
  --nav-bg: rgb(255 255 255 / 92%);
  --head-font: ui-rounded, "SF Pro Rounded", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --head-weight: 800;
}
body[data-theme="elegant"] {
  color-scheme: dark;
  --bg: #0e1014;
  --surface: #181b22;
  --text: #f4efe6;
  --text-2: #d9d3c7;
  --muted: #a9a397;
  --line: rgb(255 255 255 / 10%);
  --line-2: rgb(255 255 255 / 18%);
  --soft: #1f232b;
  --field: #13161c;
  --nav-bg: rgb(14 16 20 / 90%);
  --head-font: ui-serif, Georgia, "Times New Roman", serif;
  --head-weight: 600;
  --shadow-sm: none;
  --shadow: 0 10px 28px rgb(0 0 0 / 40%);
}
@supports (color: color-mix(in srgb, red 50%, white)) {
  body {
    --accent-soft: color-mix(in srgb, var(--accent) 11%, var(--surface));
    --accent-ring: color-mix(in srgb, var(--accent) 26%, transparent);
    --hero-end: color-mix(in srgb, var(--accent) 78%, var(--bg));
  }
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: calc(var(--header) + 12px); }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background: var(--bg);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
h1, h2, h3, h4, p { margin: 0; }
h1, h2, h3, h4 { line-height: 1.2; letter-spacing: -0.015em; font-family: var(--head-font); font-weight: var(--head-weight); }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
button, a, input, select, textarea, summary { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
button:disabled { cursor: default; opacity: 0.6; }
input, select, textarea { min-width: 0; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.wrap { width: min(1200px, calc(100% - 32px)); margin-inline: auto; }
.small { font-size: 0.875rem; }
.muted { color: var(--muted); }
[hidden] { display: none !important; }
.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-link {
  position: fixed; left: 16px; top: -80px; z-index: 100;
  background: #0f172a; color: #fff; padding: 12px 18px; border-radius: 10px;
}
.skip-link:focus { top: 12px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--muted); font-size: 0.875rem; font-weight: 500;
}
.eyebrow svg { width: 16px; height: 16px; }

/* Buttons */
.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 12px 18px;
  border: 1px solid var(--line-2); border-radius: 12px;
  background: var(--surface); color: var(--text);
  font-size: 0.95rem; font-weight: 600; line-height: 1.2; text-align: center;
  transition: background-color 0.15s, border-color 0.15s, filter 0.15s, transform 0.05s;
}
.button:hover { background: var(--soft); }
.button:active { transform: translateY(1px); }
.button.primary { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.button.primary:hover { filter: brightness(0.94); background: var(--accent); }
.button.whatsapp { background: var(--whatsapp); border-color: var(--whatsapp); color: #052e16; }
.button.whatsapp:hover { filter: brightness(0.95); background: var(--whatsapp); }
.button.sm { min-height: 42px; padding: 8px 14px; font-size: 0.9rem; border-radius: 11px; }
.button.lg { min-height: 52px; padding: 14px 20px; font-size: 1rem; }
.button.xl { min-height: 56px; padding: 16px 24px; font-size: 1.05rem; border-radius: 14px; }
.button.block { display: flex; width: 100%; }
.button[aria-pressed="true"] { color: var(--saved); border-color: #fecdd3; background: #fff1f2; }
body[data-theme="elegant"] .button[aria-pressed="true"] { background: rgb(225 29 72 / 14%); border-color: rgb(225 29 72 / 40%); color: #fb7185; }
.button[aria-pressed="true"] svg { fill: currentColor; }
.icon-button {
  position: relative; display: inline-grid; place-items: center;
  width: 44px; height: 44px; flex: none;
  border: 1px solid var(--line-2); border-radius: 50%;
  background: var(--surface); color: var(--text);
}
.icon-button:hover { background: var(--soft); }
.icon-button.plain { border-color: transparent; background: transparent; }
.link-button {
  display: inline-flex; align-items: center; gap: 6px;
  border: 0; background: none; padding: 0 4px; min-height: 36px;
  color: var(--accent); font-size: 0.9rem; font-weight: 600;
  text-decoration: underline; text-underline-offset: 3px;
}
.link-button svg { width: 17px; height: 17px; }
.pill {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 0 18px;
  border: 1px solid transparent; border-radius: 999px;
  font-size: 0.95rem; font-weight: 700; line-height: 1.2;
}
.pill svg { width: 18px; height: 18px; }
.pill-whatsapp { background: var(--whatsapp); color: #052e16; }
.pill-ghost { background: rgb(255 255 255 / 18%); border-color: rgb(255 255 255 / 38%); color: inherit; }
.pill-light { background: #ffffff; color: var(--accent); }
body[data-theme="elegant"] .pill-ghost { background: transparent; border-color: var(--line-2); color: var(--text); }
body[data-theme="elegant"] .pill-light { background: var(--accent); color: var(--on-accent); }

/* Demo notice, nav and brand marks */
.demo-banner {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  padding: 8px 16px; background: #fff4d6; color: #7a4b00;
  font-size: 0.85rem; font-weight: 600; line-height: 1.35; text-align: center;
}
.demo-banner svg { width: 16px; height: 16px; }
body[data-theme="elegant"] .demo-banner { background: #2a2312; color: #f3d58a; }
.site-nav {
  position: sticky; top: 0; z-index: 30;
  background: var(--nav-bg);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: var(--header); }
.brand { display: flex; align-items: center; gap: 10px; min-width: 0; }
.brand-name {
  min-width: 0; font-family: var(--head-font); font-weight: var(--head-weight); font-size: 1.05rem;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.brand-text { display: flex; flex-direction: column; min-width: 0; }
.brand-text strong, .brand-text small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.brand-text strong { font-size: 1rem; font-weight: 700; line-height: 1.25; }
.brand-text small { font-size: 0.78rem; color: var(--muted); }
.brand-mark {
  display: grid; place-items: center; flex: none;
  width: 40px; height: 40px; border-radius: 12px;
  background: var(--accent); color: var(--on-accent);
  font-size: 0.95rem; font-weight: 700; letter-spacing: -0.02em;
}
.logo-mark { width: 40px; height: 40px; flex: none; }
.logo-mark rect { fill: #2457e7; stroke: none; }
.logo-mark path { fill: #fff; stroke: none; }
.nav-actions { display: flex; align-items: center; gap: 8px; flex: none; }
.lang-button {
  min-height: 40px; padding: 0 12px;
  border: 1px solid var(--line-2); border-radius: 999px;
  background: var(--surface); color: var(--text); font-size: 0.85rem; font-weight: 650;
}
.lang-button:hover { background: var(--soft); }
.mark {
  position: relative; display: grid; place-items: center; flex: none; overflow: hidden;
  width: 38px; height: 38px; border-radius: 10px;
  background: var(--accent); color: var(--on-accent);
  font-size: 1rem; font-weight: 800;
}
.mark img, .avatar img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.mark.has-img .mark-letter, .avatar.has-img .avatar-initials { visibility: hidden; }
.mark-logo { background: #ffffff; box-shadow: inset 0 0 0 1px rgb(0 0 0 / 8%); }
.mark-photo { border-radius: 50%; background: var(--soft); }
body[data-theme="elegant"] .mark-tile { background: transparent; color: var(--accent); box-shadow: inset 0 0 0 1.5px var(--accent); }
.avatar {
  position: relative; display: grid; place-items: center; flex: none; overflow: hidden;
  border-radius: 50%; background: var(--accent-soft); color: var(--accent); font-weight: 800;
}
.avatar-52 { width: 52px; height: 52px; font-size: 1.05rem; }
.avatar-54 { width: 54px; height: 54px; font-size: 1.05rem; }

/* Store hero (one per theme) */
.hero-buttons { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.hero-classic { padding-top: 16px; }
.hero-card {
  padding: 24px 20px; border-radius: 22px;
  background: linear-gradient(135deg, var(--accent), var(--hero-end));
  color: var(--on-accent);
  box-shadow: 0 14px 34px rgb(15 23 42 / 12%);
}
.hero-card h1 { font-size: 1.6rem; line-height: 1.15; overflow-wrap: anywhere; }
.hero-desc {
  margin-top: 10px; opacity: 0.92; font-size: 0.97rem; line-height: 1.55;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.hero-modern {
  position: relative; display: flex; align-items: flex-end; min-height: 300px; overflow: hidden;
  background: linear-gradient(135deg, var(--accent), var(--hero-end));
  color: #ffffff;
}
.hero-media { position: absolute; inset: 0; }
.hero-img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hero-shade { position: absolute; inset: 0; background: linear-gradient(to top, rgb(0 0 0 / 74%), rgb(0 0 0 / 22%) 55%, rgb(0 0 0 / 0%)); }
.hero-modern .hero-content { position: relative; padding: 32px 0 24px; }
.hero-city { font-size: 0.8rem; font-weight: 800; letter-spacing: 0.14em; opacity: 0.88; }
.hero-modern h1 { margin-top: 6px; max-width: 20em; font-size: 1.9rem; line-height: 1.1; overflow-wrap: anywhere; }
.hero-modern .pill-ghost { color: #ffffff; }
.hero-elegant { padding: 40px 0 30px; text-align: center; border-bottom: 1px solid var(--line); }
.hero-kicker { color: var(--accent); font-size: 0.78rem; font-weight: 700; letter-spacing: 0.2em; }
.hero-elegant h1 { margin-top: 12px; font-size: 2.1rem; overflow-wrap: anywhere; }
.hero-rule { display: block; width: 46px; height: 2px; margin: 16px auto; background: var(--accent); }
.hero-tagline { max-width: 32em; margin-inline: auto; font-family: var(--head-font); font-style: italic; font-size: 1.12rem; color: var(--muted); }
.hero-elegant .hero-buttons { justify-content: center; }
.hero-list { padding: 22px 0 4px; }
.hero-list .hero-kicker { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: 0.88rem; font-weight: 600; letter-spacing: 0; }
.hero-list .hero-kicker svg { width: 17px; height: 17px; }
.hero-list h1 { margin-top: 8px; font-size: 1.6rem; overflow-wrap: anywhere; }
.hero-lead { margin-top: 8px; max-width: 40em; color: var(--text-2); font-size: 0.97rem; line-height: 1.6; }
.hero-list .hero-buttons .button { flex: 1 1 auto; }

/* Store sections */
.page-body { padding-bottom: 8px; }
.page-body > section { margin-top: 28px; }
.section-title { margin-bottom: 12px; font-size: 1.25rem; }
.stats { display: flex; gap: 10px; margin-top: 16px; }
.stat {
  flex: 1 1 0; min-width: 0; padding: 12px 8px; text-align: center;
  background: var(--surface); border: 1px solid var(--line); border-radius: 16px;
}
.stat strong {
  display: block; font-family: var(--head-font); font-weight: var(--head-weight); font-size: 1.2rem;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.stat span { display: block; color: var(--muted); font-size: 0.8rem; }
.about-text {
  padding: 16px 18px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  color: var(--text-2); line-height: 1.7; white-space: pre-line; overflow-wrap: anywhere;
}
.contact-card {
  display: grid; gap: 12px; padding: 18px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 20px;
}
.owner { display: flex; align-items: center; gap: 12px; min-width: 0; }
.owner strong { display: block; font-size: 1.05rem; }
.owner > div > span { display: block; color: var(--muted); font-size: 0.88rem; }
.contact-row { display: flex; align-items: flex-start; gap: 10px; font-size: 0.95rem; overflow-wrap: anywhere; }
.contact-row svg { margin-top: 1px; color: var(--muted); }
.directions { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; color: var(--accent); font-weight: 650; }
.directions:hover { text-decoration: underline; text-underline-offset: 3px; }
.contact-buttons { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.share-link { justify-self: start; text-decoration: none; }
.socials { display: flex; flex-wrap: wrap; gap: 10px; }
.social { display: inline-flex; border-radius: 50%; }
.social svg { width: 40px; height: 40px; stroke: none; }
.site-footer .social svg { width: 36px; height: 36px; }
.social .g-bg { fill: #566176; }
.social-instagram .g-bg { fill: #e1306c; }
.social-facebook .g-bg { fill: #1877f2; }
.social-youtube .g-bg { fill: #ff0000; }
.social .g-line { fill: none; stroke: #ffffff; stroke-width: 2.2; }
.social .g-dot, .social .g-fill { fill: #ffffff; stroke: none; }

/* Search, chips and filters */
.chips {
  display: flex; gap: 8px; overflow-x: auto; scroll-snap-type: x proximity;
  margin: 0 -16px 12px; padding: 2px 16px 4px; scroll-padding-inline: 16px; scrollbar-width: none;
}
.chips::-webkit-scrollbar { display: none; }
.chip {
  flex: none; display: inline-flex; align-items: center; gap: 6px; scroll-snap-align: start;
  min-height: 42px; padding: 8px 15px;
  border: 1px solid var(--line-2); border-radius: 999px; background: var(--surface);
  color: var(--text-2); font-size: 0.9rem; font-weight: 600; white-space: nowrap;
}
.chip:hover { border-color: var(--muted); }
.chip[aria-pressed="true"] { background: var(--text); border-color: var(--text); color: var(--bg); }
body[data-theme="elegant"] .chip[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.filters { display: grid; gap: 10px; }
.search-field { position: relative; display: block; }
.search-field svg { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.search-field input {
  width: 100%; min-height: 52px; padding: 0 16px 0 46px;
  border: 1px solid var(--line-2); border-radius: 14px; background: var(--field);
  font-size: 1rem; box-shadow: var(--shadow-sm);
}
.search-field input::placeholder { color: var(--muted); }
.filter-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.control { position: relative; display: block; min-height: 56px; }
.control-label {
  position: absolute; z-index: 1; top: 8px; left: 14px; pointer-events: none;
  color: var(--muted); font-size: 0.72rem; font-weight: 650; letter-spacing: 0.04em; text-transform: uppercase;
}
.control select {
  appearance: none; -webkit-appearance: none;
  position: absolute; inset: 0; width: 100%; height: 100%; padding: 24px 36px 6px 14px;
  border: 1px solid var(--line-2); border-radius: 12px; background: var(--field);
  color: var(--text); font-size: 0.95rem; font-weight: 550; text-overflow: ellipsis; cursor: pointer;
}
.control > svg { position: absolute; top: 50%; right: 12px; transform: translateY(-50%); width: 16px; height: 16px; color: var(--muted); pointer-events: none; }
.link-form input:focus, .search-field input:focus, .field input:focus, .field textarea:focus, .control select:focus {
  outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-ring);
}
.results-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 18px 0 12px; }
.results-bar p { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 10px; color: var(--muted); font-size: 0.9rem; }
.fav-bar {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px;
  padding: 12px 14px; margin-bottom: 14px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 16px;
}
.fav-bar > span { display: inline-flex; align-items: center; gap: 8px; font-weight: 650; }
.fav-bar > span svg { color: var(--saved); fill: currentColor; }

/* Listing cards */
.grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; }
.grid-classic { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.grid-elegant { gap: 10px; }
.card {
  position: relative; display: flex; flex-direction: column; min-width: 0;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow-sm);
  transition: box-shadow 0.2s, transform 0.2s;
}
@media (hover: hover) {
  .card:not(.hidden-card):hover { box-shadow: var(--shadow); transform: translateY(-2px); }
}
.card-link { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.card-link:focus-visible { outline-offset: -3px; border-radius: var(--radius); }
.card-body { min-width: 0; padding: 10px 12px 12px; }
.card-price { font-size: 1.08rem; font-weight: 800; letter-spacing: -0.01em; font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card-title {
  margin-top: 2px; font-family: inherit; font-size: 0.9rem; font-weight: 600; letter-spacing: 0;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.card-place { display: flex; align-items: center; gap: 4px; margin-top: 2px; color: var(--muted); font-size: 0.83rem; }
.card-place span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card-place svg { width: 15px; height: 15px; }
.card-classic .cover { height: 110px; aspect-ratio: auto; }
.card-modern { border: 0; border-radius: 20px; box-shadow: none; }
.card-cover { position: relative; }
.card-modern .cover { height: 190px; aspect-ratio: auto; }
.price-pill {
  position: absolute; z-index: 2; left: 12px; bottom: 12px; max-width: calc(100% - 24px);
  padding: 6px 13px; border-radius: 999px; background: var(--accent); color: var(--on-accent);
  font-size: 1rem; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  box-shadow: 0 4px 14px rgb(0 0 0 / 20%);
}
.card-modern .card-body { padding: 12px 14px 14px; }
.card-modern .card-title { font-size: 1.02rem; font-weight: 700; }
.card-modern .card-place { margin-top: 4px; font-size: 0.9rem; }
.card-elegant .card-link { flex-direction: row; align-items: center; gap: 14px; padding: 10px 12px 10px 10px; }
.card-elegant .cover { width: 96px; height: 84px; flex: none; aspect-ratio: auto; border-radius: 12px; }
.card-elegant .card-body { flex: 1; padding: 0; }
.card-elegant .card-title { font-family: var(--head-font); font-weight: 600; font-size: 1.08rem; }
.card-meta { margin-top: 2px; color: var(--muted); font-size: 0.85rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card-elegant .card-price { margin-top: 4px; color: var(--accent); font-size: 1rem; }
.card-chevron { display: grid; color: var(--muted); }
.card-chevron svg { width: 18px; height: 18px; }
.fav-button {
  display: grid; place-items: center; width: 38px; height: 38px; padding: 0;
  border: 0; border-radius: 50%; background: rgb(255 255 255 / 95%); color: #111827;
  box-shadow: 0 2px 10px rgb(15 23 42 / 22%);
}
.fav-button svg { width: 19px; height: 19px; }
.fav-button[aria-pressed="true"] { color: var(--saved); }
.fav-button[aria-pressed="true"] svg { fill: currentColor; }
.fav-button.on-cover { position: absolute; z-index: 3; top: 8px; right: 8px; }
.fav-button.on-row { position: absolute; z-index: 3; top: 6px; left: 76px; width: 30px; height: 30px; }
.fav-button.on-row svg { width: 16px; height: 16px; }
.fav-button.top-fav { width: 44px; height: 44px; border: 1px solid var(--line-2); background: var(--surface); color: var(--text); box-shadow: none; }
.hidden-card { justify-content: center; min-height: 150px; padding: 22px 18px; background: var(--soft); box-shadow: none; }
.grid-classic .hidden-card { grid-column: 1 / -1; }
.hidden-title { display: flex; align-items: center; gap: 10px; }
.hidden-title h3 { font-family: inherit; font-size: 1rem; font-weight: 700; }
.hidden-card p { margin-top: 8px; color: var(--muted); font-size: 0.9rem; max-width: 340px; }

/* Covers: the listing's first photo, else a gradient with art for the property family. */
.cover {
  position: relative; isolation: isolate; overflow: hidden;
  display: grid; place-items: center; aspect-ratio: 16 / 9;
  color: #fff; background-color: #475569;
}
.cover::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(120% 90% at 88% -10%, rgb(255 255 255 / 30%), transparent 55%),
    repeating-linear-gradient(135deg, rgb(255 255 255 / 7%) 0 2px, transparent 2px 16px);
}
.cover-art { width: 34%; max-width: 110px; height: auto; aspect-ratio: 1; stroke: #fff; stroke-width: 2; opacity: 0.95; filter: drop-shadow(0 6px 12px rgb(0 0 0 / 18%)); }
.cover > img { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; object-fit: cover; display: block; }
.cover.has-photo .cover-art { visibility: hidden; }
.fam-land { background-image: linear-gradient(135deg, #14532d, #1f9d55 55%, #8bd8a6); }
.fam-home { background-image: linear-gradient(135deg, #8c2f0b, #e46f2e 55%, #fbc493); }
.fam-flat { background-image: linear-gradient(135deg, #1e3a8a, #3a74ee 55%, #9fc3ff); }
.fam-commercial { background-image: linear-gradient(135deg, #4c1d95, #8656ee 55%, #cdbbff); }
.fam-industrial { background-image: linear-gradient(135deg, #1e293b, #536379 55%, #aeb9ca); }
.fam-farm { background-image: linear-gradient(135deg, #3b450f, #76862b 55%, #cfd78e); }
.fam-stay { background-image: linear-gradient(135deg, #831843, #db2777 55%, #f9a8d4); }
.fam-other { background-image: linear-gradient(135deg, #115e59, #1c9f90 55%, #95e1d5); }
.cover-row .cover-art, .cover-mini .cover-art { width: 50%; filter: none; }
.cover-mini { flex: none; width: 96px; aspect-ratio: 4 / 3; border-radius: 12px; }

/* States */
.load-more { display: flex; flex-direction: column; align-items: center; gap: 10px; padding-top: 24px; }
.load-more:empty { display: none; }
.empty {
  grid-column: 1 / -1; padding: 40px 20px; text-align: center;
  background: var(--surface); border: 1px dashed var(--line-2); border-radius: var(--radius);
}
.empty > svg { width: 30px; height: 30px; color: var(--muted); margin-bottom: 12px; }
.empty h2 { font-size: 1.15rem; }
.empty p { max-width: 420px; margin: 8px auto 18px; color: var(--muted); font-size: 0.95rem; }
.empty-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.notice {
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px;
  padding: 12px 14px; margin-bottom: 14px;
  background: #fffbeb; border: 1px solid #fde68a; border-radius: 12px; color: #78350f; font-size: 0.9rem;
}
body[data-theme="elegant"] .notice { background: #2a2312; border-color: #5c4a1b; color: #f3d58a; }
.error-message { margin: 4px 0 12px; color: #b42318; font-size: 0.9rem; font-weight: 500; }
body[data-theme="elegant"] .error-message { color: #fda29b; }
.skeleton { overflow: hidden; min-height: 200px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.skeleton span { display: block; height: 120px; background: linear-gradient(90deg, var(--soft) 25%, var(--surface) 50%, var(--soft) 75%); background-size: 200% 100%; animation: shimmer 1.2s linear infinite; }
.grid-modern .skeleton span { height: 190px; }
.grid-elegant .skeleton { min-height: 104px; }
.grid-elegant .skeleton span { height: 104px; }
.skeleton.tall { min-height: 0; margin-top: 8px; border: 0; }
.skeleton.tall span { height: 260px; border-radius: 20px; }
@keyframes shimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }
.floating-fav {
  position: fixed; z-index: 20; left: 50%; bottom: calc(14px + env(safe-area-inset-bottom));
  transform: translateX(-50%);
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  width: min(440px, calc(100% - 32px)); min-height: 56px; padding: 0 18px;
  border: 0; border-radius: 16px; background: #0f172a; color: #fff;
  font-size: 0.95rem; font-weight: 650; box-shadow: 0 12px 32px rgb(15 23 42 / 30%);
}
.floating-fav > span { display: inline-flex; align-items: center; gap: 8px; }
.floating-count svg { color: #fb7185; fill: currentColor; }
.floating-go { font-weight: 600; opacity: 0.92; }
.floating-go svg { width: 18px; height: 18px; }
#toast {
  position: fixed; z-index: 100; left: 50%; bottom: calc(88px + env(safe-area-inset-bottom));
  transform: translate(-50%, 10px); width: max-content; max-width: calc(100% - 32px);
  padding: 12px 16px; border-radius: 12px; background: #0f172a; color: #fff;
  font-size: 0.9rem; font-weight: 500; box-shadow: var(--shadow);
  opacity: 0; pointer-events: none; transition: opacity 0.15s, transform 0.15s;
}
#toast.show { opacity: 1; transform: translate(-50%, 0); }

/* Property page */
.property-page { padding-bottom: 16px; }
.property-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 8px; }
.back-link { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; color: var(--text-2); font-size: 0.95rem; font-weight: 550; }
.back-link:hover { color: var(--text); text-decoration: underline; text-underline-offset: 3px; }
.top-actions { display: flex; gap: 8px; }
.property-layout { display: grid; gap: 24px; margin-top: 4px; }
.property-main { min-width: 0; }
.gallery { position: relative; overflow: hidden; border-radius: 20px; background: var(--soft); }
.gallery-track {
  display: flex; height: 260px; overflow-x: auto; overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory; scrollbar-width: none;
}
.gallery-track::-webkit-scrollbar { display: none; }
.gallery-slide { flex: 0 0 100%; height: 100%; padding: 0; border: 0; background: var(--soft); scroll-snap-align: start; cursor: zoom-in; }
.gallery-slide img { display: block; width: 100%; height: 100%; object-fit: cover; }
.gallery-slide.broken img, .viewer-slide.broken img { display: none; }
.gallery-count {
  position: absolute; right: 12px; bottom: 12px;
  display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px;
  border-radius: 999px; background: rgb(0 0 0 / 55%); color: #fff;
  font-size: 0.82rem; font-weight: 650; font-variant-numeric: tabular-nums; pointer-events: none;
}
.gallery-count svg { width: 15px; height: 15px; }
.gallery-nav, .viewer-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  display: none; place-items: center; width: 40px; height: 40px; padding: 0;
  border: 0; border-radius: 50%; background: rgb(255 255 255 / 92%); color: #111827;
  box-shadow: 0 2px 10px rgb(0 0 0 / 22%);
}
.gallery-nav.prev, .viewer-nav.prev { left: 10px; }
.gallery-nav.next, .viewer-nav.next { right: 10px; }
@media (hover: hover) and (pointer: fine) {
  .gallery-nav, .viewer-nav { display: grid; }
}
.gallery-empty .cover { height: 260px; aspect-ratio: auto; }
.gallery-empty .cover-art { width: 24%; max-width: 140px; }
.property-head { margin-top: 16px; }
.price-row { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; }
.price { font-size: 1.85rem; font-weight: 800; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.rate { color: var(--muted); font-size: 0.92rem; }
.property-title { margin-top: 4px; font-size: 1.3rem; overflow-wrap: anywhere; }
.property-place { display: flex; align-items: center; gap: 6px; margin-top: 6px; color: var(--muted); }
.property-place svg { width: 18px; height: 18px; }
.facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 18px 0 0; }
.fact { display: flex; align-items: center; gap: 10px; min-width: 0; padding: 12px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; }
.fact > svg { width: 22px; height: 22px; color: var(--accent); }
.fact > div { min-width: 0; }
.fact dt { color: var(--muted); font-size: 0.74rem; font-weight: 650; letter-spacing: 0.04em; text-transform: uppercase; }
.fact dd { margin: 1px 0 0; font-weight: 700; overflow-wrap: anywhere; }
.highlights { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 16px 0 0; }
.highlights li {
  display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px;
  border-radius: 999px; background: rgb(21 128 61 / 10%); color: var(--ok);
  font-size: 0.88rem; font-weight: 600;
}
.highlights svg { width: 16px; height: 16px; stroke-width: 2.4; }
body[data-theme="elegant"] .highlights li { background: rgb(125 211 160 / 12%); color: #7dd3a0; }
section.block { margin-top: 26px; }
.block-title { margin-bottom: 10px; font-size: 1.12rem; }
.description { color: var(--text-2); line-height: 1.7; white-space: pre-line; overflow-wrap: anywhere; }
.map-card { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; padding: 16px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; }
.map-icon { display: grid; place-items: center; width: 46px; height: 46px; flex: none; border-radius: 50%; background: var(--accent-soft); color: var(--accent); }
.map-text { flex: 1; min-width: 180px; }
.map-text strong { display: block; }
.map-text p { margin-top: 2px; color: var(--muted); font-size: 0.9rem; }
.map-card .button { flex: 1 1 100%; }
.dealer-card { display: flex; align-items: center; gap: 12px; padding: 14px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; }
.dealer-card > div { min-width: 0; }
.dealer-card strong { display: block; font-size: 1.02rem; }
.dealer-card > div > span { display: block; color: var(--muted); font-size: 0.9rem; }
.dealer-card > div > .dealer-phone { color: var(--text); font-weight: 600; }
.more-row {
  display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x proximity;
  margin: 0 -16px; padding: 2px 16px 6px; scroll-padding-inline: 16px; scrollbar-width: none;
}
.more-row::-webkit-scrollbar { display: none; }
.more-card {
  flex: 0 0 200px; display: flex; flex-direction: column; gap: 2px; overflow: hidden; scroll-snap-align: start;
  padding-bottom: 12px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px;
}
.more-card .cover { height: 110px; aspect-ratio: auto; margin-bottom: 8px; }
.more-card strong { padding: 0 12px; font-size: 1rem; font-weight: 800; }
.more-card span { padding: 0 12px; color: var(--muted); font-size: 0.85rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.property-aside { display: none; }
.aside-card { display: grid; gap: 10px; padding: 22px; background: var(--surface); border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow); }
.aside-price { font-size: 1.6rem; font-weight: 800; letter-spacing: -0.02em; }
.aside-rate { margin-top: -8px; color: var(--muted); font-size: 0.9rem; }
.aside-title { font-weight: 650; }
.aside-buttons { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.aside-note { color: var(--muted); font-size: 0.82rem; }
.action-bar {
  position: fixed; z-index: 20; left: 0; right: 0; bottom: 0;
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  background: var(--nav-bg); border-top: 1px solid var(--line);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
.action-inner { display: flex; gap: 10px; max-width: 640px; margin-inline: auto; }
.square-action {
  display: grid; place-items: center; flex: none; width: 52px; height: 52px; padding: 0;
  border: 1px solid var(--line-2); border-radius: 14px; background: var(--surface); color: var(--text);
}
.square-action.whatsapp { background: var(--whatsapp); border-color: var(--whatsapp); color: #052e16; }
.action-send { flex: 1; }
body:has(.action-bar) .site-footer, body:has(.floating-fav:not([hidden])) .site-footer { padding-bottom: calc(100px + env(safe-area-inset-bottom)); }

/* Photo viewer */
dialog.viewer {
  width: 100%; max-width: 100%; height: 100%; max-height: 100%; margin: 0;
  border-radius: 0; background: #000; color: #fff; overflow: hidden; box-shadow: none;
}
dialog.viewer[open] { display: flex; flex-direction: column; animation: none; }
dialog.viewer::backdrop { background: #000; }
.viewer-bar { display: flex; align-items: center; justify-content: space-between; padding: calc(10px + env(safe-area-inset-top)) 12px 10px 18px; }
.viewer-count { font-weight: 650; font-variant-numeric: tabular-nums; }
.viewer-close { display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%; background: rgb(255 255 255 / 16%); color: #fff; }
.viewer-track { flex: 1; display: flex; min-height: 0; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior: contain; }
.viewer-track::-webkit-scrollbar { display: none; }
.viewer-slide { flex: 0 0 100%; display: grid; place-items: center; min-height: 0; padding-bottom: calc(16px + env(safe-area-inset-bottom)); scroll-snap-align: center; }
.viewer-slide img { max-width: 100%; max-height: 100%; object-fit: contain; }

/* Footer */
.site-footer { margin-top: 36px; padding: 32px 0 28px; background: #141b2b; color: #e8ecf4; }
body[data-theme="elegant"] .site-footer { background: #08090c; }
.footer-grid { display: grid; gap: 20px; }
.footer-brand { display: flex; align-items: center; gap: 12px; min-width: 0; }
.footer-brand .mark { width: 44px; height: 44px; font-size: 1.1rem; }
.footer-brand strong { display: block; color: #fff; font-family: var(--head-font); font-weight: var(--head-weight); font-size: 1.05rem; }
.footer-brand > div > span { display: block; color: #9aa3b5; font-size: 0.85rem; }
.footer-headline { margin-top: 12px; max-width: 36em; color: #c9d0dd; font-size: 0.92rem; }
.footer-side { display: grid; gap: 16px; align-content: start; }
.footer-rows { list-style: none; display: grid; gap: 10px; margin: 0; padding: 0; }
.footer-rows li { display: flex; align-items: flex-start; gap: 10px; color: #c9d0dd; font-size: 0.92rem; overflow-wrap: anywhere; }
.footer-rows svg { margin-top: 1px; color: #9aa3b5; }
.footer-rows a:hover { text-decoration: underline; text-underline-offset: 3px; }
.footer-rule { height: 1px; background: rgb(255 255 255 / 10%); }
.footer-bottom { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; color: #9aa3b5; font-size: 0.85rem; }
.powered { display: inline-flex; align-items: center; gap: 8px; color: #9aa3b5; font-size: 0.85rem; font-weight: 500; }
.powered:hover { color: #fff; }
.powered .logo-mark { width: 22px; height: 22px; }
.footer-note { color: #7f889b; font-size: 0.8rem; }
.lang-switch { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; color: #9aa3b5; font-size: 0.85rem; }
.lang-switch button { min-height: 36px; padding: 0 14px; border: 1px solid rgb(255 255 255 / 20%); border-radius: 999px; background: transparent; color: #e8ecf4; font-size: 0.85rem; }
.lang-switch button[aria-pressed="true"] { background: #fff; border-color: #fff; color: #141b2b; font-weight: 650; }

/* Landing (no dealer theme) */
.landing-hero {
  background: radial-gradient(900px 420px at 90% -10%, var(--accent-soft), transparent 65%), linear-gradient(180deg, #f8fbff, #ffffff 80%);
  border-bottom: 1px solid var(--line);
  padding: 32px 0 40px;
}
.landing-grid { display: grid; gap: 32px; }
.landing-copy h1 { margin-top: 12px; font-size: 2.15rem; line-height: 1.1; font-weight: 800; letter-spacing: -0.03em; }
.landing-lead { margin-top: 14px; max-width: 34em; color: var(--text-2); font-size: 1.06rem; line-height: 1.6; }
.landing-actions { display: flex; flex-direction: column; gap: 10px; margin-top: 24px; }
.landing-points { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 18px; padding: 0; margin: 20px 0 0; }
.landing-points li { display: inline-flex; align-items: center; gap: 6px; color: var(--text-2); font-size: 0.9rem; }
.landing-points svg { width: 18px; height: 18px; color: var(--ok); stroke-width: 2.4; }
.landing-preview {
  display: block; width: 100%; max-width: 420px; margin-inline: auto; padding: 14px;
  background: #fff; border: 1px solid var(--line); border-radius: 24px;
  box-shadow: 0 24px 60px rgb(15 23 42 / 12%);
  transition: transform 0.2s, box-shadow 0.2s;
}
.landing-preview:hover { transform: translateY(-3px); box-shadow: 0 30px 70px rgb(15 23 42 / 16%); }
.preview-head { display: flex; align-items: center; gap: 10px; padding: 4px 4px 14px; margin-bottom: 8px; border-bottom: 1px solid var(--line); }
.preview-head strong { display: block; font-size: 0.98rem; }
.preview-head small { display: block; color: var(--muted); font-size: 0.8rem; }
.preview-card { display: flex; align-items: center; gap: 12px; padding: 8px 4px; }
.preview-card + .preview-card { border-top: 1px solid var(--soft); }
.preview-card strong { display: block; font-size: 1.05rem; }
.preview-card span { display: block; font-size: 0.9rem; color: var(--text-2); }
.preview-card small { display: block; font-size: 0.8rem; color: var(--muted); }
.preview-cta {
  display: flex; align-items: center; justify-content: center; gap: 6px;
  margin-top: 10px; min-height: 48px; border-radius: 12px;
  background: var(--accent); color: var(--on-accent); font-weight: 600;
}
.how { padding: 44px 0 8px; }
.how h2, .open-link h2 { font-size: 1.5rem; font-weight: 800; letter-spacing: -0.02em; }
.steps { list-style: none; display: grid; gap: 14px; padding: 0; margin: 20px 0 0; }
.step { padding: 20px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.step h3 { margin-top: 14px; font-size: 1.06rem; font-weight: 700; }
.step p { margin-top: 6px; color: var(--text-2); font-size: 0.95rem; line-height: 1.55; }
.step-icon { position: relative; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; background: var(--accent-soft); color: var(--accent); }
.step-icon svg { width: 24px; height: 24px; }
.step-number {
  position: absolute; top: -7px; right: -7px;
  display: grid; place-items: center; width: 24px; height: 24px;
  border: 2px solid #fff; border-radius: 50%;
  background: #0f172a; color: #fff; font-size: 0.75rem; font-weight: 700;
}
.open-link { padding: 36px 0 16px; }
.open-link-card { display: grid; gap: 14px; padding: 22px; background: var(--soft); border: 1px solid var(--line); border-radius: 20px; }
.open-link-card > div > p { margin-top: 6px; color: var(--text-2); }
.link-form { display: flex; flex-direction: column; gap: 10px; }
.link-form input { flex: 1; min-height: 52px; padding: 0 16px; border: 1px solid var(--line-2); border-radius: 12px; background: #fff; font-size: 1rem; }
.open-link-card .error-message { margin: 0; }

/* Errors and loading */
.full-error { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; min-height: 60vh; padding: 48px 0; text-align: center; }
.full-error h1 { font-size: 1.6rem; }
.full-error p { max-width: 440px; color: var(--text-2); }
.error-icon { display: grid; place-items: center; width: 60px; height: 60px; border-radius: 50%; background: var(--soft); color: var(--text-2); }
.error-icon svg { width: 28px; height: 28px; }
.error-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 8px; }
.initial { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; min-height: 70vh; padding: 40px 24px; text-align: center; }
.initial h1 { margin-top: 10px; font-size: 1.3rem; }
.initial p { color: var(--muted); }
.noscript { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 30px; background: #fff; color: #0f172a; }

/* Enquiry dialog */
dialog {
  width: min(520px, calc(100% - 32px)); max-height: 90dvh; padding: 0;
  border: 0; border-radius: 20px; background: var(--surface); color: var(--text);
  box-shadow: 0 30px 80px rgb(15 23 42 / 30%); overflow: auto; overscroll-behavior: contain;
}
body[data-theme="modern"] dialog:not(.viewer) { background: #ffffff; }
dialog[open] { animation: rise 0.2s ease-out; }
dialog::backdrop { background: rgb(15 23 42 / 48%); }
@keyframes rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
.dialog-head {
  position: sticky; top: 0; z-index: 2;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 10px 10px 10px 20px; background: inherit; border-bottom: 1px solid var(--line);
}
.dialog-head h2 { font-size: 1.12rem; }
.dialog-body { padding: 20px; }
.contact-intro { margin-bottom: 16px; color: var(--text-2); font-size: 0.97rem; line-height: 1.55; }
.contact-summary { margin-bottom: 16px; padding: 12px 14px; background: var(--soft); border: 1px solid var(--line); border-radius: 12px; font-size: 0.875rem; }
.contact-summary ul { margin: 6px 0 0; padding-left: 18px; color: var(--text-2); }
.field { display: grid; gap: 6px; margin-bottom: 14px; }
.field-label { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; font-size: 0.92rem; font-weight: 650; }
.field-label small { color: var(--muted); font-size: 0.8rem; font-weight: 500; }
.field input, .field textarea {
  width: 100%; min-height: 52px; padding: 12px 14px;
  border: 1px solid var(--line-2); border-radius: 12px; background: var(--field); font-size: 1rem;
}
.field textarea { min-height: 96px; resize: vertical; }
.form-trap { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.form-note { display: flex; align-items: flex-start; gap: 8px; margin-top: 12px; color: var(--muted); font-size: 0.82rem; line-height: 1.5; }
.form-note svg { width: 16px; height: 16px; margin-top: 2px; }
.enquiry-success { text-align: center; }
.success-mark { display: inline-grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: #dcfce7; color: var(--ok); }
.success-mark svg { width: 30px; height: 30px; stroke-width: 2.6; }
.enquiry-success h3 { margin: 14px 0 8px; font-size: 1.35rem; }
.enquiry-success > p { color: var(--text-2); line-height: 1.6; }
.success-sub { margin-top: 20px; color: var(--text) !important; font-weight: 650; }
.contact-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 10px 0 14px; }

/* Tablet */
@media (min-width: 640px) {
  .wrap { width: min(1200px, calc(100% - 48px)); }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
  .grid-classic { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
  .grid-elegant { gap: 12px; }
  .chips { margin-inline: 0; padding-inline: 0; scroll-padding-inline: 0; flex-wrap: wrap; overflow: visible; }
  .more-row { margin-inline: 0; padding-inline: 0; scroll-padding-inline: 0; }
  .filter-row { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
  .landing-actions, .link-form { flex-direction: row; }
  .link-form .button { flex: none; }
  .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .hero-card { padding: 32px 30px; }
  .hero-card h1, .hero-list h1 { font-size: 2rem; }
  .hero-modern { min-height: 360px; }
  .hero-modern h1 { font-size: 2.4rem; }
  .hero-elegant h1 { font-size: 2.6rem; }
  .facts { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .gallery-track, .gallery-empty .cover { height: 360px; }
  .map-card .button { flex: none; }
  .contact-card { padding: 22px; }
  .open-link-card { padding: 28px; }
  .footer-grid { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); column-gap: 40px; }
  .footer-rule, .footer-bottom, .footer-note, .lang-switch { grid-column: 1 / -1; }
}

/* Desktop */
@media (min-width: 960px) {
  body { --header: 72px; }
  .wrap { width: min(1200px, calc(100% - 64px)); }
  .grid-classic { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .grid-modern { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
  .card-classic .cover { height: 150px; }
  .card-modern .cover { height: 210px; }
  .filters { grid-template-columns: minmax(0, 1fr); }
  .search-field input { min-height: 56px; }
  .page-body { display: grid; grid-template-columns: minmax(0, 1fr); }
  .landing-hero { padding: 72px 0 80px; }
  .landing-grid { grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); align-items: center; gap: 56px; }
  .landing-copy h1 { font-size: 3.4rem; }
  .landing-lead { font-size: 1.15rem; }
  .how { padding-top: 64px; }
  .how h2, .open-link h2 { font-size: 1.8rem; }
  .step { padding: 24px; }
  .open-link { padding: 48px 0 24px; }
  .open-link-card { grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); column-gap: 40px; padding: 32px 36px; }
  .open-link-card > .error-message, .open-link-card > .small { grid-column: 2; }
  .property-layout { grid-template-columns: minmax(0, 1fr) 340px; gap: 40px; align-items: start; }
  .property-aside { display: block; position: sticky; top: calc(var(--header) + 20px); }
  .gallery-track, .gallery-empty .cover { height: 440px; }
  .price { font-size: 2rem; }
  .property-title { font-size: 1.6rem; }
  .action-bar { display: none; }
  body:has(.action-bar) .site-footer { padding-bottom: 28px; }
  .floating-fav { bottom: 24px; }
  #toast { bottom: 96px; }
}
@media (max-width: 380px) {
  .brand-text small { display: none; }
  .nav-actions .button.sm { padding-inline: 12px; }
  .card-price { font-size: 1rem; }
  .stat strong { font-size: 1.05rem; }
}
@media (max-width: 639px) {
  dialog:not(.viewer) {
    width: 100%; max-width: 100%; max-height: 92dvh;
    margin: auto 0 0; border-radius: 20px 20px 0 0;
  }
  @keyframes rise { from { transform: translateY(40px); opacity: 0.4; } to { transform: none; opacity: 1; } }
}
/* Devanagari breaks apart with letter spacing. */
html[lang="hi"] .hero-city, html[lang="hi"] .hero-kicker, html[lang="hi"] .control-label, html[lang="hi"] .fact dt { letter-spacing: 0; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
