/* ==========================================================================
   Design system — site público da imobiliária / corretor
   Cor da marca: troque --brand-h (Configurações > Identidade, aplicado no <html>)
   ========================================================================== */

:root {
  --brand-h: 212;
  --brand: hsl(var(--brand-h) 72% 42%);
  --brand-600: hsl(var(--brand-h) 74% 34%);
  --brand-700: hsl(var(--brand-h) 70% 24%);
  --brand-100: hsl(var(--brand-h) 80% 95%);
  --brand-50: hsl(var(--brand-h) 80% 98%);
  --gold: #c8953a;
  --gold-100: #fbf1df;
  --wa: #25d366;
  --wa-600: #1da851;
  --ok: #138a5a;
  --ok-100: #e3f6ee;
  --warn: #b26b00;
  --warn-100: #fff3dc;

  --bg: #ffffff;
  --bg-soft: #f5f7fa;
  --surface: #ffffff;
  --surface-2: #f8fafc;
  --border: #e4e8ee;
  --border-strong: #cfd6e0;
  --text: #0f1726;
  --text-muted: #5a6577;
  --overlay: rgb(10 15 25 / 0.6);
  --shadow-sm: 0 1px 2px rgb(15 23 38 / 0.06);
  --shadow: 0 10px 30px -12px rgb(15 23 38 / 0.18);
  --shadow-lg: 0 24px 60px -20px rgb(15 23 38 / 0.35);
  --radius: 18px;
  --radius-sm: 12px;
  --radius-xs: 8px;
  --font-heading: "Sora", "Segoe UI", system-ui, sans-serif;
  --font-body: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
  --header-h: 72px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --brand: hsl(var(--brand-h) 85% 62%);
    --brand-600: hsl(var(--brand-h) 85% 70%);
    --brand-700: hsl(var(--brand-h) 60% 30%);
    --brand-100: hsl(var(--brand-h) 45% 18%);
    --brand-50: hsl(var(--brand-h) 40% 12%);
    --gold-100: #3a2d14;
    --ok-100: #10301f;
    --warn-100: #3a2a0e;
    --bg: #0a0f1a;
    --bg-soft: #0e1522;
    --surface: #121a29;
    --surface-2: #162032;
    --border: #233046;
    --border-strong: #2f3e58;
    --text: #edf1f7;
    --text-muted: #9aa6ba;
    --shadow: 0 10px 30px -12px rgb(0 0 0 / 0.6);
    --shadow-lg: 0 24px 60px -20px rgb(0 0 0 / 0.8);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --brand: hsl(var(--brand-h) 85% 62%);
  --brand-600: hsl(var(--brand-h) 85% 70%);
  --brand-700: hsl(var(--brand-h) 60% 30%);
  --brand-100: hsl(var(--brand-h) 45% 18%);
  --brand-50: hsl(var(--brand-h) 40% 12%);
  --gold-100: #3a2d14;
  --ok-100: #10301f;
  --warn-100: #3a2a0e;
  --bg: #0a0f1a;
  --bg-soft: #0e1522;
  --surface: #121a29;
  --surface-2: #162032;
  --border: #233046;
  --border-strong: #2f3e58;
  --text: #edf1f7;
  --text-muted: #9aa6ba;
  --shadow: 0 10px 30px -12px rgb(0 0 0 / 0.6);
  --shadow-lg: 0 24px 60px -20px rgb(0 0 0 / 0.8);
  color-scheme: dark;
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 400 16px/1.6 var(--font-body); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; height: auto; }
a { color: inherit; text-decoration-color: color-mix(in srgb, currentColor 35%, transparent); text-underline-offset: 3px; }
a:hover { color: var(--brand); }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { font-family: var(--font-heading); line-height: 1.15; margin: 0 0 .5em; letter-spacing: -0.02em; font-weight: 700; }
h1 { font-size: clamp(1.9rem, 4.6vw, 3.25rem); }
h2 { font-size: clamp(1.45rem, 3vw, 2.1rem); }
h3 { font-size: 1.1rem; letter-spacing: -0.01em; }
p { margin: 0 0 1em; }
ul, ol { padding-left: 1.2em; }
.ic { flex-shrink: 0; vertical-align: middle; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; border-radius: 4px; }
::selection { background: var(--brand); color: #fff; }

.container { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 820px; }
.muted { color: var(--text-muted); }
.small { font-size: .875rem; }
.lead { font-size: clamp(1.05rem, 2vw, 1.25rem); color: var(--text-muted); max-width: 60ch; }
.row { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.row-center { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }
.skip-link { position: absolute; left: -9999px; top: 8px; z-index: 200; background: var(--brand); color: #fff; padding: 10px 16px; border-radius: var(--radius-xs); }
.skip-link:focus { left: 12px; }
.hp { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.linklike { background: none; border: 0; padding: 0; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; color: inherit; font-size: inherit; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

/* ---------- botões ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 0 22px; border-radius: 999px; border: 1px solid transparent;
  font-weight: 600; font-size: .95rem; text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: transform .15s ease-out, background-color .15s, box-shadow .15s, border-color .15s, color .15s;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn:disabled { opacity: .6; cursor: progress; transform: none; }
.btn-sm { min-height: 38px; padding: 0 16px; font-size: .875rem; }
.btn-block { width: 100%; }
.btn-primary { background: var(--brand); color: #fff; box-shadow: 0 8px 20px -8px color-mix(in srgb, var(--brand) 70%, transparent); }
.btn-primary:hover { background: var(--brand-600); color: #fff; }
:root[data-theme="dark"] .btn-primary, :root[data-theme="dark"] .btn-primary:hover { color: #06101f; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .btn-primary, :root:not([data-theme="light"]) .btn-primary:hover { color: #06101f; } }
.btn-secondary { background: var(--surface); color: var(--text); border-color: var(--border-strong); }
.btn-secondary:hover { border-color: var(--brand); color: var(--brand); }
.btn-light { background: #fff; color: #0f1726; box-shadow: var(--shadow); }
.btn-light:hover { color: var(--brand-700); }
.btn-ghost-light { background: rgb(255 255 255 / .12); color: #fff; border-color: rgb(255 255 255 / .35); }
.btn-ghost-light:hover { background: rgb(255 255 255 / .2); color: #fff; }
.btn-wa { background: var(--wa); color: #06301a; font-weight: 700; }
.btn-wa:hover { background: var(--wa-600); color: #fff; }

.icon-btn {
  width: 42px; height: 42px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface);
  display: inline-flex; align-items: center; justify-content: center; cursor: pointer; color: var(--text);
  transition: border-color .15s, color .15s;
}
.icon-btn:hover { border-color: var(--brand); color: var(--brand); }
.when-dark { display: none; }
:root[data-theme="dark"] .when-dark { display: inline-flex; }
:root[data-theme="dark"] .when-light { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .when-dark { display: inline-flex; }
  :root:not([data-theme="light"]) .when-light { display: none; }
}

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50; height: var(--header-h);
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent; transition: border-color .2s, box-shadow .2s;
}
.site-header.scrolled { border-bottom-color: var(--border); box-shadow: var(--shadow-sm); }
.header-inner { height: 100%; display: flex; align-items: center; gap: 20px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); min-width: 0; }
.brand:hover { color: var(--text); }
.brand-mark { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; color: #fff; background: linear-gradient(135deg, var(--brand), var(--brand-700)); box-shadow: 0 6px 16px -6px var(--brand); }
.brand-logo { width: 40px; height: 40px; object-fit: contain; border-radius: 10px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; min-width: 0; }
.brand-text strong { font-family: var(--font-heading); font-size: 1.08rem; letter-spacing: -.02em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.brand-text small { font-size: .7rem; color: var(--text-muted); letter-spacing: .04em; text-transform: uppercase; }
.main-nav { display: flex; gap: 4px; margin-left: auto; }
.main-nav a { text-decoration: none; color: var(--text-muted); font-weight: 500; font-size: .94rem; padding: 8px 12px; border-radius: 999px; transition: color .15s, background .15s; }
.main-nav a:hover, .main-nav a[aria-current="page"] { color: var(--text); background: var(--bg-soft); }
.nav-cta-mobile { display: none; }
.header-actions { display: flex; align-items: center; gap: 10px; }
.show-mobile { display: none; }
@media (max-width: 1023px) {
  .main-nav {
    position: fixed; inset: var(--header-h) 0 auto 0; flex-direction: column; gap: 2px; padding: 16px 20px 24px;
    background: var(--bg); border-bottom: 1px solid var(--border); box-shadow: var(--shadow-lg);
    transform: translateY(-8px); opacity: 0; visibility: hidden; transition: opacity .2s, transform .2s, visibility .2s;
    max-height: calc(100dvh - var(--header-h)); overflow-y: auto;
  }
  .main-nav.open { transform: none; opacity: 1; visibility: visible; }
  .main-nav a { padding: 14px 12px; font-size: 1.05rem; border-radius: var(--radius-xs); }
  .nav-cta-mobile { display: inline-flex; margin-top: 10px; color: #fff !important; }
  .show-mobile { display: inline-flex; }
  .hide-mobile { display: none; }
  .header-actions { margin-left: auto; }
}

/* ---------- seções ---------- */
.section { padding-block: clamp(48px, 7vw, 88px); }
.section-tight { padding-block: 24px 64px; }
.section-soft { background: var(--bg-soft); }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 28px; flex-wrap: wrap; }
.section-head h2 { margin: 0; }
.section-head.center { justify-content: center; text-align: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 6px; font-size: .78rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--brand); margin: 0 0 10px; }
.link-arrow { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; color: var(--brand); text-decoration: none; }
.link-arrow:hover .ic { transform: translateX(3px); }
.link-arrow .ic { transition: transform .15s; }

/* ---------- hero ---------- */
.hero { position: relative; isolation: isolate; overflow: hidden; padding: clamp(48px, 9vw, 120px) 0 clamp(40px, 6vw, 72px); background: var(--bg-soft); }
.hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.hero.has-img::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(100deg, rgb(6 12 24 / .86) 0%, rgb(6 12 24 / .62) 45%, rgb(6 12 24 / .25) 100%); }
.hero.has-img, .hero.has-img .hero-sub, .hero.has-img .eyebrow { color: #fff; }
.hero.has-img .hero-stats span { color: rgb(255 255 255 / .8); }
.hero-pattern { position: absolute; inset: 0; z-index: -1; background:
  radial-gradient(60% 80% at 85% 10%, color-mix(in srgb, var(--brand) 22%, transparent), transparent 70%),
  radial-gradient(40% 60% at 0% 100%, color-mix(in srgb, var(--gold) 16%, transparent), transparent 70%); }
.hero-inner { max-width: 1240px; }
.hero h1 { max-width: 18ch; }
.hero-sub { font-size: clamp(1.02rem, 1.8vw, 1.2rem); color: var(--text-muted); max-width: 58ch; margin-bottom: 28px; }

.search-card { background: var(--surface); color: var(--text); border: 1px solid var(--border); border-radius: var(--radius); padding: 14px; box-shadow: var(--shadow-lg); max-width: 1000px; }
.seg { display: inline-flex; background: var(--bg-soft); border-radius: 999px; padding: 4px; gap: 2px; margin-bottom: 12px; }
.seg label { position: relative; cursor: pointer; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg span { display: block; padding: 8px 18px; border-radius: 999px; font-weight: 600; font-size: .9rem; color: var(--text-muted); transition: background .15s, color .15s; }
.seg input:checked + span { background: var(--surface); color: var(--text); box-shadow: var(--shadow-sm); }
.seg input:focus-visible + span { outline: 2px solid var(--brand); }
.seg-full { display: flex; }
.seg-full label { flex: 1; text-align: center; }
.search-fields { display: grid; gap: 10px; grid-template-columns: 1fr; }
.sf { display: flex; flex-direction: column; gap: 2px; background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 8px 14px; transition: border-color .15s; }
.sf:focus-within { border-color: var(--brand); }
.sf span { font-size: .72rem; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; color: var(--text-muted); }
.sf select, .sf input { border: 0; background: transparent; padding: 2px 0; font-weight: 500; outline: none; width: 100%; color: var(--text); }
.search-btn { min-height: 58px; border-radius: var(--radius-sm); }
@media (min-width: 640px) { .search-fields { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .search-fields { grid-template-columns: 1fr 1fr 1.3fr auto; } .search-btn { padding: 0 28px; } }

.hero-stats { list-style: none; padding: 0; margin: 28px 0 0; display: flex; flex-wrap: wrap; gap: 12px 36px; }
.hero-stats li { display: flex; flex-direction: column; }
.hero-stats strong { font-family: var(--font-heading); font-size: clamp(1.5rem, 3vw, 2rem); line-height: 1; }
.hero-stats span { font-size: .85rem; color: var(--text-muted); }
.hero-stats.inline { margin: 20px 0; }

/* ---------- cards de imóvel ---------- */
.card-grid { display: grid; gap: 22px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 290px), 1fr)); }
.pcard {
  position: relative; display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); transition: transform .2s ease-out, box-shadow .2s, border-color .2s;
}
.pcard:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--border-strong); }
.pcard:focus-within { border-color: var(--brand); }
.pcard-media { position: relative; display: block; aspect-ratio: 4 / 3; overflow: hidden; background: var(--bg-soft); }
.pcard-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease-out; }
.pcard:hover .pcard-media img { transform: scale(1.05); }
.pcard-noimg { width: 100%; height: 100%; display: grid; place-items: center; color: var(--text-muted); background: linear-gradient(135deg, var(--brand-50), var(--bg-soft)); }
.pcard-media::after { content: ""; position: absolute; inset: auto 0 0 0; height: 40%; background: linear-gradient(transparent, rgb(0 0 0 / .35)); pointer-events: none; }
.pcard-badges { position: absolute; top: 12px; left: 12px; display: flex; gap: 6px; flex-wrap: wrap; z-index: 1; }
.badge { display: inline-flex; align-items: center; gap: 4px; padding: 5px 10px; border-radius: 999px; font-size: .74rem; font-weight: 600; background: rgb(255 255 255 / .94); color: #0f1726; backdrop-filter: blur(6px); }
.badge-gold { background: var(--gold); color: #fff; }
.pcard-count { position: absolute; right: 12px; bottom: 12px; z-index: 1; display: inline-flex; gap: 5px; align-items: center; color: #fff; font-size: .78rem; font-weight: 600; background: rgb(0 0 0 / .45); padding: 4px 9px; border-radius: 999px; }
.ribbon { position: absolute; z-index: 2; top: 18px; right: -42px; transform: rotate(35deg); width: 160px; text-align: center; padding: 6px 0; font-weight: 700; font-size: .75rem; letter-spacing: .12em; text-transform: uppercase; color: #fff; box-shadow: var(--shadow); }
.ribbon-vendido { background: #c0392b; }
.ribbon-alugado { background: #7a3fc4; }
.ribbon-reservado { background: var(--warn); }
.pcard.is-vendido .pcard-media img, .pcard.is-alugado .pcard-media img { filter: saturate(.7); }
.pcard-body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.pcard-type { display: flex; align-items: center; gap: 6px; margin: 0; font-size: .78rem; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; color: var(--brand); }
.pcard-title { font-size: 1.06rem; margin: 0; line-height: 1.3; }
.pcard-title a { text-decoration: none; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pcard-title a::after { content: ""; position: absolute; inset: 0; z-index: 3; }
.pcard-loc { display: flex; align-items: center; gap: 5px; margin: 0; color: var(--text-muted); font-size: .9rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.specs { list-style: none; padding: 0; margin: 6px 0 0; display: flex; flex-wrap: wrap; gap: 8px 16px; color: var(--text-muted); font-size: .88rem; }
.specs li { display: inline-flex; align-items: center; gap: 6px; }
.specs-sm { padding-top: 10px; border-top: 1px dashed var(--border); }
.pcard-price { margin-top: auto; padding-top: 10px; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; }
.pcard-price strong, .pd-price strong { font-family: var(--font-heading); font-size: 1.3rem; color: var(--text); letter-spacing: -.02em; }
.pcard-price small, .pd-price small { color: var(--text-muted); font-size: .85rem; font-weight: 500; }
.closed-label { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; color: var(--ok); }

/* ---------- tipos / features ---------- */
.type-grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 160px), 1fr)); }
.type-tile { display: flex; flex-direction: column; gap: 4px; padding: 20px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); text-decoration: none; transition: transform .15s, border-color .15s, box-shadow .15s; }
.type-tile:hover { transform: translateY(-3px); border-color: var(--brand); box-shadow: var(--shadow); color: var(--text); }
.type-ic { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: var(--brand-100); color: var(--brand); margin-bottom: 8px; }
.type-tile small { color: var(--text-muted); }
.feature-grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); }
.feature { padding: 26px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); }
.feature p { color: var(--text-muted); margin: 0; }
.feature-ic { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; color: #fff; background: linear-gradient(135deg, var(--brand), var(--brand-700)); margin-bottom: 16px; }

/* ---------- sobre / equipe ---------- */
.about-teaser { display: grid; gap: 40px; align-items: center; }
@media (min-width: 900px) { .about-teaser { grid-template-columns: 1fr 1fr; } }
.broker-mini-grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.broker-mini { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 4px; padding: 20px 14px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); text-decoration: none; transition: border-color .15s, transform .15s; }
.broker-mini:hover { border-color: var(--brand); transform: translateY(-2px); color: var(--text); }
.broker-mini img { width: 88px; height: 88px; border-radius: 50%; object-fit: cover; margin-bottom: 8px; }
.broker-mini small { font-size: .78rem; }
.avatar-ph { width: 88px; height: 88px; border-radius: 50%; display: grid; place-items: center; font-family: var(--font-heading); font-size: 2rem; color: #fff; background: linear-gradient(135deg, var(--brand), var(--brand-700)); margin-bottom: 8px; flex-shrink: 0; }
.avatar-ph.lg { width: 140px; height: 140px; font-size: 3rem; }
.avatar-ph.xl { width: 220px; height: 220px; font-size: 5rem; }
.about-layout { display: grid; gap: 40px; padding-bottom: 64px; }
@media (min-width: 900px) { .about-layout { grid-template-columns: 380px 1fr; align-items: start; } }
.about-photo { position: relative; }
.about-photo img { width: 100%; aspect-ratio: 6 / 7; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow-lg); }
.about-photo-tag { position: absolute; left: 16px; bottom: 16px; right: 16px; background: var(--surface); border-radius: var(--radius-sm); padding: 12px 16px; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.about-photo-tag small { color: var(--text-muted); }
.mission { margin: 24px 0; padding: 20px 24px; border-left: 4px solid var(--gold); background: var(--gold-100); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; font-size: 1.08rem; font-style: italic; }
.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); counter-reset: s; }
.steps li { padding: 26px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); }
.steps span { display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: var(--brand); color: #fff; font-weight: 700; margin-bottom: 12px; }
.steps p { color: var(--text-muted); margin: 0; }
.team-grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr)); }
.team-card { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 4px; padding: 24px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); text-decoration: none; transition: transform .15s, border-color .15s; }
.team-card:hover { transform: translateY(-3px); border-color: var(--brand); color: var(--text); }
.team-card img { width: 140px; height: 140px; border-radius: 50%; object-fit: cover; margin-bottom: 10px; }
.broker-hero { display: grid; gap: 28px; align-items: center; padding: 16px 20px 32px; }
.broker-hero > img { width: 200px; height: 200px; border-radius: 50%; object-fit: cover; box-shadow: var(--shadow-lg); border: 4px solid var(--surface); }
@media (min-width: 768px) { .broker-hero { grid-template-columns: auto 1fr; } }
.check-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 22px; }
.check-list li { display: flex; gap: 16px; }
.check-list .ic { color: var(--brand); margin-top: 3px; }
.check-list p { color: var(--text-muted); margin: 2px 0 0; }

/* ---------- depoimentos / FAQ ---------- */
.testimonial-grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.testimonial { position: relative; margin: 0; padding: 28px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); display: flex; flex-direction: column; gap: 12px; }
.quote-ic { position: absolute; top: 22px; right: 22px; color: var(--brand-100); width: 40px; height: 40px; }
.testimonial blockquote { margin: 0; font-size: 1rem; flex: 1; }
.testimonial figcaption { display: flex; flex-direction: column; }
.testimonial figcaption span { color: var(--text-muted); font-size: .88rem; }
.stars { display: inline-flex; gap: 2px; color: var(--border-strong); }
.stars .on { color: var(--gold); }
.stars .on .ic { fill: currentColor; }
.faq-item { border: 1px solid var(--border); border-radius: var(--radius-sm); margin-bottom: 10px; background: var(--surface); transition: border-color .15s; }
.faq-item[open] { border-color: var(--brand); }
.faq-item summary { padding: 18px 22px; cursor: pointer; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 16px; align-items: center; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; color: var(--brand); font-size: 1.5rem; line-height: 1; transition: transform .2s; flex-shrink: 0; }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item > div { padding: 0 22px 18px; color: var(--text-muted); white-space: pre-line; }

/* ---------- formulários ---------- */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: clamp(20px, 3vw, 28px); box-shadow: var(--shadow); }
.lead-form { display: grid; gap: 14px; }
.lead-form h3 { margin: 0; font-size: 1.15rem; }
.lead-form > p { margin: -8px 0 0; }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field > label, .field > span { font-size: .85rem; font-weight: 600; }
.field-row { display: grid; gap: 14px; grid-template-columns: 1fr; }
@media (min-width: 560px) { .field-row { grid-template-columns: 1fr 1fr; } }
.field input, .field select, .field textarea, .inline-field select {
  width: 100%; min-height: 46px; padding: 11px 14px; border: 1px solid var(--border-strong); border-radius: var(--radius-sm);
  background: var(--surface-2); color: var(--text); transition: border-color .15s, box-shadow .15s; font-size: 16px;
}
.field textarea { resize: vertical; min-height: 96px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand) 18%, transparent); }
.field input[aria-invalid="true"] { border-color: #d64545; }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: .85rem; color: var(--text-muted); cursor: pointer; }
.consent input { margin-top: 3px; width: 18px; height: 18px; accent-color: var(--brand); flex-shrink: 0; }
.form-status { margin: 0; min-height: 1.3em; font-size: .92rem; font-weight: 500; }
.form-status.ok { color: var(--ok); }
.form-status.err { color: #d64545; }
.contact { display: grid; gap: 40px; align-items: start; }
@media (min-width: 900px) { .contact { grid-template-columns: 1fr 1.1fr; } }
.contact-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.contact-list li, .contact-list a { display: flex; align-items: flex-start; gap: 10px; text-decoration: none; }
.contact-list.big { gap: 14px; margin-top: 24px; }
.contact-list.big li > *:first-child, .contact-list.big a { width: 100%; }
.contact-list.big a, .contact-list.big li:not(:has(a)) { padding: 14px 16px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--surface); }
.contact-list.big span { display: flex; flex-direction: column; }
.contact-list.big strong { font-size: .8rem; text-transform: uppercase; letter-spacing: .05em; color: var(--text-muted); }
.contact-list .ic { margin-top: 3px; color: var(--brand); }

/* ---------- página: cabeçalho, breadcrumbs ---------- */
.page-head { padding: 28px 0 32px; background: linear-gradient(180deg, var(--bg-soft), var(--bg)); }
.page-head h1 { font-size: clamp(1.7rem, 3.6vw, 2.5rem); margin-bottom: 6px; }
.breadcrumbs ol { list-style: none; padding: 0; margin: 16px 0 14px; display: flex; flex-wrap: wrap; gap: 6px; font-size: .85rem; color: var(--text-muted); }
.breadcrumbs li:not(:last-child)::after { content: "›"; margin-left: 6px; opacity: .6; }
.breadcrumbs a { text-decoration: none; }

/* ---------- listagem ---------- */
.listing { display: grid; gap: 28px; padding-bottom: 72px; }
@media (min-width: 1024px) { .listing { grid-template-columns: 290px 1fr; align-items: start; } }
.filters { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); }
@media (min-width: 1024px) { .filters { position: sticky; top: calc(var(--header-h) + 16px); } .filters summary { pointer-events: none; } }
.filters summary { list-style: none; padding: 16px 20px; font-weight: 700; display: flex; align-items: center; gap: 8px; cursor: pointer; }
.filters summary::-webkit-details-marker { display: none; }
.filters-form { padding: 0 20px 20px; display: grid; gap: 14px; }
.pill { display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px; background: var(--brand); color: #fff; font-size: .75rem; }
.listing-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 18px; flex-wrap: wrap; }
.inline-field { display: inline-flex; align-items: center; gap: 8px; font-size: .9rem; color: var(--text-muted); }
.inline-field select { width: auto; min-height: 40px; padding: 6px 12px; }
.pagination { display: flex; justify-content: center; gap: 6px; margin-top: 40px; flex-wrap: wrap; }
.page-btn { min-width: 42px; height: 42px; display: inline-grid; place-items: center; border-radius: 999px; border: 1px solid var(--border); text-decoration: none; font-weight: 600; background: var(--surface); }
.page-btn.active { background: var(--brand); border-color: var(--brand); color: #fff; }
.page-gap { align-self: center; color: var(--text-muted); }
.empty-state { text-align: center; padding: 48px 20px; color: var(--text-muted); display: flex; flex-direction: column; align-items: center; gap: 4px; }
.empty-state .ic { color: var(--brand); margin-bottom: 8px; }
.empty-state h1, .empty-state h2 { color: var(--text); }
.empty-state.big { padding: 96px 20px; }

/* ---------- ficha do imóvel ---------- */
.pd-gallery { margin-bottom: 28px; }
.gallery { position: relative; display: grid; gap: 8px; border-radius: var(--radius); overflow: hidden; grid-template-columns: 1fr; }
.g-item { border: 0; padding: 0; margin: 0; cursor: zoom-in; background: var(--bg-soft); overflow: hidden; display: block; }
.g-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease-out, filter .2s; }
.g-item:hover img { transform: scale(1.03); filter: brightness(1.05); }
.g-0 { aspect-ratio: 4 / 3; }
.g-1, .g-2, .g-3, .g-4 { display: none; }
.g-all { position: absolute; right: 14px; bottom: 14px; z-index: 2; }
.g-strip { display: flex; gap: 6px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 2px 0; scrollbar-width: none; }
.g-strip::-webkit-scrollbar { display: none; }
.g-strip img { width: 84px; height: 64px; object-fit: cover; border-radius: var(--radius-xs); flex-shrink: 0; scroll-snap-align: start; cursor: pointer; opacity: .85; }
.g-strip img:hover { opacity: 1; }
.gallery .g-strip { order: 2; }
@media (min-width: 768px) {
  .gallery { grid-template-columns: 2fr 1fr 1fr; grid-template-rows: 230px 230px; }
  .gallery.single { grid-template-columns: 1fr; grid-template-rows: 460px; }
  .g-0 { grid-row: 1 / 3; aspect-ratio: auto; }
  .g-1, .g-2, .g-3, .g-4 { display: block; }
  .g-strip { display: none; }
}
@media (min-width: 1100px) { .gallery { grid-template-rows: 260px 260px; } }
.gallery-empty { aspect-ratio: 16 / 7; border-radius: var(--radius); display: grid; place-items: center; align-content: center; gap: 8px; color: var(--text-muted); background: linear-gradient(135deg, var(--brand-50), var(--bg-soft)); }

.pd-layout { display: grid; gap: 32px; padding-bottom: 32px; }
@media (min-width: 1024px) { .pd-layout { grid-template-columns: minmax(0, 1fr) 380px; align-items: start; } .pd-side { position: sticky; top: calc(var(--header-h) + 16px); } }
.pd-head h1 { font-size: clamp(1.5rem, 3.2vw, 2.25rem); margin: 8px 0; }
.pd-loc { display: flex; align-items: center; gap: 6px; color: var(--text-muted); font-size: 1.02rem; }
.pd-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; }
.pd-section { padding: 28px 0; border-top: 1px solid var(--border); }
.pd-section:first-of-type { border-top: 0; }
.pd-section h2 { font-size: 1.3rem; margin-bottom: 18px; }
.spec-grid { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.spec-grid li { display: flex; gap: 12px; align-items: center; padding: 14px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--surface); }
.spec-grid .ic { color: var(--brand); }
.spec-grid span { display: flex; flex-direction: column; line-height: 1.25; }
.spec-grid small { color: var(--text-muted); font-size: .78rem; }
.spec-grid strong { font-size: 1.02rem; }
.prose { font-size: 1.03rem; line-height: 1.75; }
.prose p { color: var(--text); }
.prose h2 { margin-top: 1.6em; }
.prose ul { color: var(--text-muted); }
.prose[data-readmore].clamped { max-height: 300px; overflow: hidden; -webkit-mask-image: linear-gradient(#000 70%, transparent); mask-image: linear-gradient(#000 70%, transparent); }
.readmore-btn { margin-top: 8px; }
.feature-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px 20px; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
.feature-list li { display: flex; gap: 8px; align-items: center; }
.feature-list .ic { color: var(--ok); background: var(--ok-100); border-radius: 50%; padding: 3px; width: 22px; height: 22px; }
.embed { position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; background: var(--bg-soft); border: 1px solid var(--border); cursor: pointer; margin-bottom: 12px; }
.embed img { width: 100%; height: 100%; object-fit: cover; }
.embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.embed-play { position: absolute; inset: 0; margin: auto; width: 76px; height: 76px; border-radius: 50%; border: 0; background: rgb(0 0 0 / .6); color: #fff; display: grid; place-items: center; cursor: pointer; }
.embed-play .ic { fill: currentColor; margin-left: 4px; }
.map { aspect-ratio: 16 / 8; }
.map-ph { position: absolute; inset: 0; display: grid; place-items: center; align-content: center; gap: 8px; color: var(--text-muted); font-weight: 600;
  background: repeating-linear-gradient(45deg, var(--bg-soft) 0 14px, var(--surface-2) 14px 28px); }
.map-ph .ic { color: var(--brand); }
.status-banner { display: flex; gap: 12px; align-items: flex-start; padding: 16px 18px; border-radius: var(--radius-sm); margin-bottom: 20px; }
.status-vendido, .status-alugado { background: var(--ok-100); color: var(--ok); }
.status-reservado { background: var(--warn-100); color: var(--warn); }
.status-banner div { color: var(--text); }
.price-card { display: grid; gap: 14px; }
.price-card > p { margin: 0; }
.pd-price { display: flex; flex-direction: column; }
.pd-price strong { font-size: 1.9rem; }
.pd-price.sm strong { font-size: 1.15rem; }
.price-card .lead-form { padding-top: 14px; border-top: 1px solid var(--border); }
.broker-card { display: flex; gap: 14px; align-items: center; margin-top: 16px; text-decoration: none; padding: 18px; }
.broker-card img { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; }
.broker-card .avatar-ph { width: 64px; height: 64px; font-size: 1.5rem; margin: 0; }
.broker-card span { display: flex; flex-direction: column; }
.broker-card small { font-size: .8rem; }
.trust-line { display: flex; gap: 8px; align-items: flex-start; margin-top: 16px; }
.trust-line .ic { color: var(--ok); margin-top: 2px; }
.sticky-cta { display: none; }
@media (max-width: 1023px) {
  .sticky-cta { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 45; align-items: center; justify-content: space-between; gap: 12px;
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: var(--surface); border-top: 1px solid var(--border); box-shadow: 0 -10px 30px -12px rgb(0 0 0 / .2); }
  .has-sticky-cta { padding-bottom: 76px; }
  .has-sticky-cta .fab-wa { display: none; }
  .has-sticky-cta .fab-chat { bottom: calc(88px + env(safe-area-inset-bottom)); }
  .has-sticky-cta .chat-panel { bottom: calc(160px + env(safe-area-inset-bottom)); }
}

/* ---------- rodapé ---------- */
.site-footer { margin-top: 40px; background: #0a111e; color: #c4cddb; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: #fff; }
.site-footer .brand { color: #fff; }
.site-footer .brand-text small { color: #8b97ab; }
.footer-cta { background: linear-gradient(120deg, var(--brand-700), hsl(var(--brand-h) 70% 18%)); position: relative; overflow: hidden; }
.footer-cta::after { content: ""; position: absolute; right: -120px; top: -120px; width: 360px; height: 360px; border-radius: 50%; background: radial-gradient(color-mix(in srgb, var(--gold) 35%, transparent), transparent 70%); }
.footer-cta-inner { position: relative; z-index: 1; display: flex; gap: 24px; justify-content: space-between; align-items: center; flex-wrap: wrap; padding-top: 44px; padding-bottom: 44px; }
.footer-cta h2 { color: #fff; margin: 0 0 6px; }
.footer-cta p { color: rgb(255 255 255 / .8); margin: 0; }
.footer-cta-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.footer-grid { display: grid; gap: 36px; padding-top: 56px; padding-bottom: 40px; grid-template-columns: 1fr; }
@media (min-width: 700px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .footer-grid { grid-template-columns: 1.5fr 1fr 1fr 1.3fr; } }
.footer-grid h3 { color: #fff; font-size: .82rem; text-transform: uppercase; letter-spacing: .1em; margin-bottom: 16px; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.footer-grid .muted { color: #6f7c92; }
.footer-brand p { margin: 16px 0; max-width: 36ch; }
.footer-brand .trust-line { font-size: .85rem; color: #9fb0c8; }
.social { display: flex; gap: 8px; }
.social a { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; background: rgb(255 255 255 / .07); transition: background .15s; }
.social a:hover { background: var(--brand); }
.site-footer .contact-list .ic { color: #8fb4ff; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; padding-top: 22px; padding-bottom: 28px; border-top: 1px solid rgb(255 255 255 / .08); font-size: .85rem; color: #8b97ab; }
.footer-bottom p { margin: 0; }

/* ---------- botões flutuantes: WhatsApp + robô ---------- */
.fab-wa, .fab-chat {
  position: fixed; right: 18px; z-index: 60; width: 60px; height: 60px; border-radius: 50%; border: 0; display: grid; place-items: center;
  box-shadow: 0 12px 28px -8px rgb(0 0 0 / .4); cursor: pointer; transition: transform .2s ease-out;
}
.fab-wa:hover, .fab-chat:hover { transform: scale(1.07); }
.fab-wa { bottom: calc(18px + env(safe-area-inset-bottom)); background: var(--wa); color: #fff; }
.fab-wa::before { content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--wa); z-index: -1; animation: pulse 2.6s ease-out infinite; }
@keyframes pulse { 0% { transform: scale(1); opacity: .55; } 100% { transform: scale(1.6); opacity: 0; } }
.fab-tip { position: absolute; right: 72px; white-space: nowrap; background: var(--surface); color: var(--text); padding: 8px 14px; border-radius: 999px; font-size: .85rem; font-weight: 600; box-shadow: var(--shadow); opacity: 0; transform: translateX(6px); transition: opacity .2s, transform .2s; pointer-events: none; }
.fab-wa:hover .fab-tip, .fab-wa:focus-visible .fab-tip { opacity: 1; transform: none; }
.fab-chat { bottom: calc(90px + env(safe-area-inset-bottom)); background: linear-gradient(135deg, var(--brand), var(--brand-700)); color: #fff; width: 56px; height: 56px; right: 20px; }
.fab-chat .when-open { display: none; }
.fab-chat[aria-expanded="true"] .when-open { display: grid; }
.fab-chat[aria-expanded="true"] .when-closed { display: none; }
.fab-dot { position: absolute; top: 4px; right: 4px; width: 12px; height: 12px; border-radius: 50%; background: #ff4d4f; border: 2px solid var(--bg); }
.fab-chat.seen .fab-dot { display: none; }

.chat-panel {
  position: fixed; right: 20px; bottom: calc(160px + env(safe-area-inset-bottom)); z-index: 61;
  width: min(390px, calc(100vw - 24px)); height: min(600px, calc(100dvh - 190px));
  display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--border); border-radius: 22px; box-shadow: var(--shadow-lg); overflow: hidden;
  transform-origin: bottom right; animation: pop .2s ease-out;
}
.chat-panel[hidden] { display: none; }
@keyframes pop { from { opacity: 0; transform: scale(.94) translateY(8px); } to { opacity: 1; transform: none; } }
@media (max-width: 520px) {
  .chat-panel { right: 12px; left: 12px; width: auto; bottom: calc(156px + env(safe-area-inset-bottom)); height: calc(100dvh - 156px - var(--header-h) - env(safe-area-inset-bottom)); }
}
.chat-head { display: flex; align-items: center; gap: 12px; padding: 14px 14px 14px 16px; background: linear-gradient(135deg, var(--brand), var(--brand-700)); color: #fff; }
.chat-head div { flex: 1; display: flex; flex-direction: column; line-height: 1.25; min-width: 0; }
.chat-head small { opacity: .85; font-size: .78rem; display: flex; align-items: center; gap: 6px; }
.chat-head .icon-btn { background: rgb(255 255 255 / .15); border: 0; color: #fff; width: 36px; height: 36px; }
.chat-avatar { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: rgb(255 255 255 / .18); }
.online-dot { width: 8px; height: 8px; border-radius: 50%; background: #3ee07f; display: inline-block; }
.chat-messages { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 10px; background: var(--bg-soft); overscroll-behavior: contain; }
.chat-msg { padding: 10px 14px; border-radius: 18px; max-width: 86%; font-size: .93rem; line-height: 1.5; white-space: pre-wrap; overflow-wrap: anywhere; animation: pop .15s ease-out; }
.chat-msg.user { align-self: flex-end; background: var(--brand); color: #fff; border-bottom-right-radius: 6px; }
:root[data-theme="dark"] .chat-msg.user { color: #06101f; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .chat-msg.user { color: #06101f; } }
.chat-msg.assistant { align-self: flex-start; background: var(--surface); border: 1px solid var(--border); border-bottom-left-radius: 6px; }
.chat-msg a { color: var(--brand); font-weight: 600; }
.chat-msg.typing { display: inline-flex; gap: 4px; padding: 14px 16px; }
.chat-msg.typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--text-muted); animation: blink 1.2s infinite; }
.chat-msg.typing i:nth-child(2) { animation-delay: .2s; }
.chat-msg.typing i:nth-child(3) { animation-delay: .4s; }
@keyframes blink { 0%, 80%, 100% { opacity: .25; } 40% { opacity: 1; } }
.chat-cards { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; align-self: stretch; scroll-snap-type: x mandatory; }
.chat-card { flex: 0 0 200px; scroll-snap-align: start; display: block; text-decoration: none; background: var(--surface); border: 1px solid var(--border); border-radius: 14px; overflow: hidden; font-size: .83rem; }
.chat-card img, .chat-card .ph { width: 100%; height: 110px; object-fit: cover; background: var(--brand-50); }
.chat-card div { padding: 8px 10px; display: flex; flex-direction: column; gap: 2px; }
.chat-card strong { font-size: .86rem; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.chat-card b { color: var(--brand); }
.chat-quick { display: flex; gap: 6px; padding: 10px 12px 0; flex-wrap: wrap; background: var(--bg-soft); }
.chat-quick button { border: 1px solid var(--border-strong); background: var(--surface); border-radius: 999px; padding: 6px 12px; font-size: .8rem; cursor: pointer; }
.chat-quick button:hover { border-color: var(--brand); color: var(--brand); }
.chat-lead { padding: 12px; display: grid; gap: 8px; background: var(--brand-50); border-top: 1px solid var(--border); font-size: .88rem; }
.chat-lead[hidden] { display: none; }
.chat-lead p { margin: 0; }
.chat-lead input { min-height: 40px; padding: 8px 12px; border-radius: 10px; border: 1px solid var(--border-strong); background: var(--surface); font-size: 16px; }
.chat-form { display: flex; gap: 8px; padding: 12px; border-top: 1px solid var(--border); background: var(--surface); }
.chat-form input { flex: 1; min-width: 0; min-height: 44px; border: 1px solid var(--border-strong); border-radius: 999px; padding: 0 16px; background: var(--surface-2); font-size: 16px; }
.chat-form input:focus { outline: none; border-color: var(--brand); }
.chat-form button { width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--brand); color: #fff; display: grid; place-items: center; cursor: pointer; flex-shrink: 0; }
.chat-legal { margin: 0; padding: 0 12px 10px; font-size: .7rem; color: var(--text-muted); text-align: center; background: var(--surface); }

/* ---------- cookies ---------- */
.cookie-banner { position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 70; max-width: 560px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-lg); padding: 20px; font-size: .9rem; }
@media (min-width: 700px) { .cookie-banner { left: 20px; right: auto; bottom: 20px; } }
.cookie-banner[hidden] { display: none; }
.cookie-banner p { margin: 0 0 14px; color: var(--text-muted); }
.cookie-banner p strong { color: var(--text); }
.cookie-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.cookie-actions .btn { flex: 1 1 auto; }
.cookie-panel { margin-top: 14px; padding-top: 10px; border-top: 1px solid var(--border); display: grid; gap: 4px; }
.cookie-panel[hidden] { display: none; }
.cookie-opt { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 8px 0; cursor: pointer; }
.cookie-opt span { display: flex; flex-direction: column; }
.cookie-opt small { color: var(--text-muted); }
.cookie-opt input { width: 20px; height: 20px; accent-color: var(--brand); }

/* ---------- lightbox ---------- */
.lightbox { position: fixed; inset: 0; z-index: 100; width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: rgb(5 8 14 / .96); color: #fff; }
.lightbox::backdrop { background: rgb(5 8 14 / .96); }
.lb-stage { position: absolute; inset: 56px 0 84px; display: grid; place-items: center; touch-action: pan-y; }
.lb-stage img { max-width: 100%; max-height: 100%; object-fit: contain; user-select: none; }
.lb-top { position: absolute; top: 0; left: 0; right: 0; height: 56px; display: flex; align-items: center; justify-content: space-between; padding: 0 12px 0 18px; font-size: .9rem; }
.lb-btn { width: 46px; height: 46px; border-radius: 50%; border: 0; background: rgb(255 255 255 / .12); color: #fff; display: grid; place-items: center; cursor: pointer; }
.lb-btn:hover { background: rgb(255 255 255 / .22); }
.lb-prev, .lb-next { position: absolute; top: 50%; transform: translateY(-50%); z-index: 2; }
.lb-prev { left: 12px; }
.lb-next { right: 12px; }
.lb-thumbs { position: absolute; left: 0; right: 0; bottom: 0; height: 84px; display: flex; gap: 6px; overflow-x: auto; padding: 10px 12px; scrollbar-width: none; }
.lb-thumbs img { height: 64px; width: 86px; object-fit: cover; border-radius: 6px; opacity: .5; cursor: pointer; flex-shrink: 0; }
.lb-thumbs img.active { opacity: 1; outline: 2px solid #fff; }
.lb-caption { position: absolute; bottom: 88px; left: 0; right: 0; text-align: center; font-size: .9rem; color: rgb(255 255 255 / .8); }

/* ---------- toast ---------- */
.toast { position: fixed; left: 50%; bottom: 24px; z-index: 120; transform: translateX(-50%); background: var(--text); color: var(--bg); padding: 12px 20px; border-radius: 999px; font-weight: 600; font-size: .9rem; box-shadow: var(--shadow-lg); animation: pop .2s ease-out; }
@media (max-width: 767px) { .g-all { bottom: 84px; right: 10px; min-height: 38px; padding: 0 14px; font-size: .85rem; } }
