/* Imóveis Goiânia — imoveisgoiania.club
   Design plan — color: light neutral ground, white cards, green brand for actions, ipê yellow only as a highlight;
   type: Plus Jakarta Sans (headings, numbers) + Nunito Sans (text); layout: mobile app shell with bottom tabs,
   photo-first cards with soft shadows, pill badges. Clean and friendly, the way Brazilian portals feel, with the brand's own accent. */
:root {
  --bg: #f4f6f4; --surface: #ffffff; --surface-2: #eceff0; --fg: #1b2420; --fg-2: #4e5a55; --fg-3: #85908a; --line: #e0e5e2;
  --green: #1f6f50; --green-hover: #185b41; --green-deep: #14472f; --green-soft: #e3f1e9; --on-green: #ffffff;
  --ipe: #f2b705; --ipe-soft: #fff1bf; --ipe-ink: #5f4600;
  --clay: #c2410c; --clay-soft: #fde8dc; --sky: #2f5aa8; --sky-soft: #e1e9f8; --red: #d0342c;
  --display: "Plus Jakarta Sans", "Segoe UI", system-ui, sans-serif; --body: "Nunito Sans", "Segoe UI", system-ui, sans-serif;
  --shadow: 0 1px 2px rgba(20, 35, 28, .05), 0 4px 14px rgba(20, 35, 28, .07); --shadow-lg: 0 2px 4px rgba(20, 35, 28, .06), 0 12px 28px rgba(20, 35, 28, .10);
  --r: 14px; --tabbar: 62px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #121716; --surface: #1b2220; --surface-2: #242d2a; --fg: #e9edea; --fg-2: #b0bab5; --fg-3: #7d8882; --line: #2e3835;
    --green: #4fb98a; --green-hover: #63c79a; --green-deep: #d5f0e1; --green-soft: #1e3a2c; --on-green: #0f1a14;
    --ipe: #f0c23b; --ipe-soft: #3d3110; --ipe-ink: #f7dc8a;
    --clay: #f0955f; --clay-soft: #3a2519; --sky: #9db7e8; --sky-soft: #1d2a40; --red: #ff7b72;
    --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 4px 14px rgba(0, 0, 0, .35); --shadow-lg: 0 2px 4px rgba(0, 0, 0, .5), 0 12px 28px rgba(0, 0, 0, .5);
    color-scheme: dark;
  }
}
* { box-sizing: border-box; }
html { height: 100%; -webkit-text-size-adjust: 100%; }
body { margin: 0; min-height: 100%; background: var(--bg); color: var(--fg); font-family: var(--body); font-size: 16px; line-height: 1.5; padding-bottom: calc(var(--tabbar) + env(safe-area-inset-bottom, 0px)); }
h1, h2, h3 { font-family: var(--display); text-wrap: balance; margin: 0; line-height: 1.15; letter-spacing: -0.015em; }
h1 { font-size: 28px; font-weight: 800; }
h2 { font-size: 20px; font-weight: 800; }
h3 { font-size: 17px; font-weight: 700; }
p { margin: 0; }
a { color: var(--green); }
button, select, input { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--green); outline-offset: 2px; }
img { max-width: 100%; display: block; }
.num { font-variant-numeric: tabular-nums; }
.muted { color: var(--fg-2); }
.small { font-size: 14px; }
.hand { color: var(--fg-2); font-size: 14px; }
.eyebrow { font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--fg-3); font-weight: 800; font-family: var(--display); }
.wrap { max-width: 1100px; margin: 0 auto; padding-inline: 16px; }
.stack { display: flex; flex-direction: column; gap: 12px; }
.row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.grow { flex: 1; min-width: 0; }
[hidden] { display: none !important; }
.mark { box-shadow: inset 0 -0.32em 0 var(--ipe-soft); }
.squig { display: none; }

/* top bar */
.top { position: sticky; top: 0; z-index: 20; background: var(--surface); border-bottom: 1px solid var(--line); padding-top: env(safe-area-inset-top, 0px); box-shadow: 0 1px 0 rgba(0,0,0,.02); }
.top-inner { display: flex; align-items: center; gap: 10px; height: 58px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--fg); min-width: 0; }
.brand img { width: 32px; height: 32px; border-radius: 9px; }
.brand b { font-family: var(--display); font-size: 18px; font-weight: 800; white-space: nowrap; letter-spacing: -0.01em; }
.brand b small { color: var(--green); font-weight: 800; font-size: 13px; }
.topnav { display: none; gap: 2px; margin-left: 14px; }
.topnav a { text-decoration: none; color: var(--fg-2); padding: 8px 12px; border-radius: 10px; font-weight: 700; font-family: var(--display); font-size: 14px; }
.topnav a:hover { background: var(--surface-2); color: var(--fg); }
.topnav a.on { color: var(--green); background: var(--green-soft); }
.iconbtn { border: 1px solid var(--line); background: var(--surface); border-radius: 12px; width: 40px; height: 40px; display: grid; place-items: center; color: var(--fg-2); }
.iconbtn svg { width: 20px; height: 20px; }
.iconbtn.on { color: var(--green); border-color: var(--green); }

/* bottom tabs */
.tabbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; background: var(--surface); border-top: 1px solid var(--line); display: grid; grid-template-columns: repeat(5, 1fr); padding-bottom: env(safe-area-inset-bottom, 0px); box-shadow: 0 -4px 16px rgba(20,35,28,.05); }
.tabbar a { text-decoration: none; color: var(--fg-3); display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 9px 4px 8px; font-size: 11px; font-weight: 700; font-family: var(--display); }
.tabbar a svg { width: 22px; height: 22px; }
.tabbar a.on { color: var(--green); }

/* hero */
.hero { padding-block: 24px 10px; }
.hero h1 { font-size: 30px; max-width: 15em; }
.hero p { color: var(--fg-2); margin-top: 10px; max-width: 36em; }
.hero .note { margin-top: 6px; font-size: 14px; color: var(--fg-3); }
.searchbox { display: flex; gap: 8px; margin-top: 16px; }
.searchbox input { flex: 1; min-width: 0; border: 1px solid var(--line); background: var(--surface); border-radius: 12px; padding: 13px 14px; font-size: 16px; box-shadow: var(--shadow); }
.searchbox input:focus { border-color: var(--green); outline: none; box-shadow: 0 0 0 3px var(--green-soft); }
.searchbox button { background: var(--green); color: var(--on-green); border: 0; border-radius: 12px; padding: 0 18px; font-weight: 800; font-family: var(--display); }
.searchbox button:hover { background: var(--green-hover); }
.quick { display: flex; gap: 8px; overflow-x: auto; padding-block: 14px 4px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.quick::-webkit-scrollbar { display: none; }
.chip { flex: none; border: 1px solid var(--line); background: var(--surface); border-radius: 999px; padding: 8px 14px; font-size: 14px; font-weight: 700; color: var(--fg-2); text-decoration: none; white-space: nowrap; font-family: var(--display); }
.chip:hover { border-color: var(--fg-3); color: var(--fg); }
.chip.on, .chip[aria-pressed="true"] { background: var(--green); color: var(--on-green); border-color: var(--green); }
.chip.ipe { background: var(--ipe-soft); color: var(--ipe-ink); border-color: transparent; }
.chip.soft { font-weight: 600; font-family: var(--body); }
.chip .n { opacity: .6; margin-left: 5px; font-weight: 600; }

/* stats */
.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; margin-block: 10px 4px; }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 12px 14px; min-width: 0; box-shadow: var(--shadow); }
.stat .v { font-family: var(--display); font-size: 24px; font-weight: 800; margin-top: 2px; line-height: 1.15; letter-spacing: -0.01em; }
.stat .d { font-size: 13px; color: var(--fg-2); margin-top: 2px; }

/* sections */
.section { padding-block: 22px 6px; }
.section-h { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.section-h a { font-size: 14px; font-weight: 800; text-decoration: none; color: var(--green); font-family: var(--display); }
.hscroll { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px 16px 12px; margin-inline: -16px; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
.hscroll::-webkit-scrollbar { display: none; }
.hscroll > * { scroll-snap-align: start; flex: 0 0 78%; max-width: 300px; }
.tiles { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.tile { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 13px 14px; text-decoration: none; color: var(--fg); display: flex; justify-content: space-between; align-items: center; gap: 8px; min-width: 0; box-shadow: var(--shadow); }
.tile:hover { border-color: var(--green); }
.tile b { font-family: var(--display); font-weight: 700; font-size: 15px; line-height: 1.2; }
.tile .n { font-family: var(--display); font-weight: 800; font-size: 14px; color: var(--green); flex: none; background: var(--green-soft); border-radius: 999px; padding: 2px 9px; }
.cloud { display: flex; flex-wrap: wrap; gap: 8px; }

/* cards */
.grid { display: grid; grid-template-columns: 1fr; gap: 14px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; text-decoration: none; color: var(--fg); display: flex; flex-direction: column; position: relative; box-shadow: var(--shadow); transition: box-shadow .15s, transform .15s; }
.card:hover { box-shadow: var(--shadow-lg); transform: translateY(-1px); }
.card .cover { aspect-ratio: 4 / 3; background: var(--surface-2); position: relative; overflow: hidden; }
.card .cover img { width: 100%; height: 100%; object-fit: cover; }
.card .cover .cnt { position: absolute; right: 8px; bottom: 8px; background: rgba(0,0,0,.6); color: #fff; font-size: 12px; font-weight: 700; padding: 3px 9px; border-radius: 999px; backdrop-filter: blur(4px); }
.card .body { padding: 12px 14px 13px; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.card .price { font-family: var(--display); font-size: 21px; font-weight: 800; color: var(--green-deep); letter-spacing: -0.01em; }
.card .price.none { font-size: 15px; font-weight: 700; color: var(--fg-3); }
.card .title { font-weight: 700; line-height: 1.3; }
.card .loc { color: var(--fg-2); font-size: 14px; }
.card .specs { display: flex; flex-wrap: wrap; gap: 4px 12px; color: var(--fg-2); font-size: 14px; margin-top: 2px; }
.card .who { display: flex; justify-content: space-between; gap: 8px; font-size: 13px; color: var(--fg-3); margin-top: 6px; border-top: 1px solid var(--line); padding-top: 8px; }
.card .who b { color: var(--fg-2); font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.card.compact { flex-direction: row; }
.card.compact .cover { width: 112px; flex: none; aspect-ratio: auto; }
.card.nocover .cover { display: none; }
.card.nocover .body { padding-right: 56px; }
.badges { display: flex; flex-wrap: wrap; gap: 6px; position: absolute; top: 10px; left: 10px; }
.card.nocover .badges { position: static; margin-bottom: 3px; }
.badge { font-family: var(--display); font-size: 11px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; line-height: 1; padding: 6px 9px; border-radius: 999px; background: var(--surface); color: var(--fg-2); box-shadow: 0 1px 3px rgba(0,0,0,.15); }
.card.nocover .badge { box-shadow: none; background: var(--surface-2); }
.badge.novo { background: var(--green); color: var(--on-green); }
.badge.agio { background: var(--clay-soft); color: var(--clay); }
.badge.procura { background: var(--sky-soft); color: var(--sky); }
.badge.mcmv { background: var(--ipe-soft); color: var(--ipe-ink); }
.fav { position: absolute; top: 10px; right: 10px; width: 38px; height: 38px; border-radius: 50%; border: 0; background: rgba(255,255,255,.92); color: #333; display: grid; place-items: center; z-index: 2; box-shadow: 0 1px 3px rgba(0,0,0,.15); }
.fav svg { width: 20px; height: 20px; }
.fav.on { color: var(--red); }
.card.nocover .fav { background: var(--surface-2); color: var(--fg-2); box-shadow: none; }
.card.nocover .fav.on { color: var(--red); }

/* list page */
.listhead { position: sticky; top: calc(58px + env(safe-area-inset-top, 0px)); z-index: 10; background: var(--bg); padding-block: 10px 8px; display: flex; gap: 8px; align-items: center; }
.listhead .count { color: var(--fg-2); font-size: 14px; font-weight: 700; flex: 1; }
.listhead select { border: 1px solid var(--line); background: var(--surface); border-radius: 10px; padding: 9px 10px; max-width: 44%; }
.filterbtn { border: 0; background: var(--green); color: var(--on-green); border-radius: 10px; padding: 9px 13px; font-weight: 800; font-family: var(--display); display: flex; align-items: center; gap: 6px; }
.filterbtn:hover { background: var(--green-hover); }
.filterbtn .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--ipe); flex: none; }
.active-chips { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 10px; scrollbar-width: none; }
.active-chips::-webkit-scrollbar { display: none; }
.active-chips .chip { padding: 6px 11px; font-size: 13px; }
.more { display: block; width: 100%; margin-top: 16px; padding: 13px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); font-weight: 800; font-family: var(--display); color: var(--green); box-shadow: var(--shadow); }

/* filter sheet */
.sheet-bg { position: fixed; inset: 0; background: rgba(15, 25, 20, .5); z-index: 40; }
.sheet { position: fixed; left: 0; right: 0; bottom: 0; z-index: 41; background: var(--surface); border-radius: 20px 20px 0 0; max-height: 88vh; display: flex; flex-direction: column; padding-bottom: env(safe-area-inset-bottom, 0px); box-shadow: 0 -8px 30px rgba(0,0,0,.15); }
.sheet .sh { display: flex; align-items: center; justify-content: space-between; padding: 16px 16px 8px; }
.sheet .sh::before { content: ""; position: absolute; top: 8px; left: 50%; width: 44px; height: 4px; margin-left: -22px; border-radius: 2px; background: var(--line); }
.sheet .sb { overflow: auto; padding: 4px 16px 12px; display: flex; flex-direction: column; gap: 16px; }
.sheet .sf { display: flex; gap: 8px; padding: 10px 16px 14px; border-top: 1px solid var(--line); background: var(--surface); }
.sheet .sf button { flex: 1; padding: 13px; border-radius: 12px; font-weight: 800; font-family: var(--display); border: 1px solid var(--line); background: var(--surface); }
.sheet .sf button.primary { background: var(--green); color: var(--on-green); border-color: var(--green); }
.f { display: flex; flex-direction: column; gap: 6px; }
.f label { font-size: 12px; color: var(--fg-3); font-weight: 800; text-transform: uppercase; letter-spacing: .08em; font-family: var(--display); }
.f select, .f input { border: 1px solid var(--line); background: var(--bg); border-radius: 10px; padding: 11px 12px; font-size: 16px; width: 100%; }
.f select:focus, .f input:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 3px var(--green-soft); background: var(--surface); }
.f .two { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.f .hint { font-size: 13px; color: var(--fg-3); }
.chips { display: flex; flex-wrap: wrap; gap: 7px; }
.toggle { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 0; border-top: 1px solid var(--line); }
.switch { width: 46px; height: 26px; border-radius: 13px; background: var(--line); border: 0; position: relative; flex: none; }
.switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; transition: transform .15s; box-shadow: 0 1px 2px rgba(0,0,0,.2); }
.switch[aria-checked="true"] { background: var(--green); }
.switch[aria-checked="true"]::after { transform: translateX(20px); }

/* detail */
.gallery { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 4px; margin-inline: -16px; background: #0f1512; aspect-ratio: 4 / 3; max-height: 62vh; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
.gallery::-webkit-scrollbar { display: none; }
.gallery > a, .gallery > div { flex: 0 0 100%; scroll-snap-align: center; display: grid; place-items: center; }
.gallery img, .gallery video { width: 100%; height: 100%; object-fit: contain; }
.gallery .ph { color: var(--fg-3); background: var(--surface-2); width: 100%; height: 100%; display: grid; place-items: center; font-weight: 700; }
.gcount { text-align: center; font-size: 12px; font-weight: 700; color: var(--fg-3); padding: 6px 0 0; }
.dhead { padding-block: 14px 6px; display: flex; flex-direction: column; gap: 8px; }
.dhead .price { font-family: var(--display); font-size: 32px; font-weight: 800; color: var(--green-deep); letter-spacing: -0.02em; }
.dhead h1 { font-size: 23px; }
.dhead .loc { color: var(--fg-2); }
.specgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 8px; margin-block: 14px; }
.spec { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; min-width: 0; }
.spec .k { font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--fg-3); font-weight: 800; font-family: var(--display); }
.spec .v { font-weight: 700; margin-top: 2px; }
.actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-block: 10px 14px; }
.actions a, .actions button { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 13px 12px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); text-decoration: none; color: var(--fg); font-weight: 800; font-family: var(--display); font-size: 14px; box-shadow: var(--shadow); }
.actions .wa { background: #25d366; color: #0b2b16; border-color: transparent; grid-column: 1 / -1; font-size: 15px; }
.actions button.on { color: var(--red); border-color: var(--red); }
.actions svg { width: 20px; height: 20px; }
.box { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 13px 15px; box-shadow: var(--shadow); }
.orig { white-space: pre-wrap; overflow-wrap: anywhere; font-size: 14px; color: var(--fg-2); max-height: 420px; overflow: auto; }
.corretor { display: flex; align-items: center; gap: 12px; }
.corretor .av, .av { width: 44px; height: 44px; border-radius: 50%; background: var(--green-soft); color: var(--green); display: grid; place-items: center; font-family: var(--display); font-weight: 800; flex: none; }
.notice { background: var(--ipe-soft); color: var(--ipe-ink); border-radius: 12px; padding: 10px 12px; font-size: 14px; }

/* match */
.mrow { all: unset; display: flex; gap: 12px; align-items: flex-start; width: 100%; padding: 13px 15px; cursor: pointer; box-sizing: border-box; }
.mcount { flex: none; font-family: var(--display); font-weight: 800; font-size: 13px; text-align: center; border-radius: 999px; padding: 6px 10px; background: var(--green-soft); color: var(--green); line-height: 1.1; min-width: 58px; }
.mcount.zero { background: var(--surface-2); color: var(--fg-3); }
.mbody { border-top: 1px solid var(--line); padding: 12px 15px 14px; }
.why { font-size: 13px; color: var(--fg-3); margin: 4px 0 0 4px; }

/* misc */
.empty { text-align: center; padding: 40px 16px; color: var(--fg-2); border: 1px dashed var(--line); border-radius: var(--r); background: var(--surface); }
.empty h2 { margin-bottom: 6px; color: var(--fg); }
.skeleton { background: linear-gradient(90deg, var(--surface-2), var(--surface), var(--surface-2)); background-size: 200% 100%; animation: sk 1.2s infinite; border-radius: var(--r); height: 120px; }
@keyframes sk { from { background-position: 200% 0 } to { background-position: -200% 0 } }
.foot { padding-block: 30px 14px; font-size: 13px; color: var(--fg-3); line-height: 1.6; border-top: 1px solid var(--line); margin-top: 24px; }
.foot a { color: var(--fg-2); }
.foot .sig { font-family: var(--display); font-weight: 800; font-size: 15px; color: var(--fg-2); margin-bottom: 4px; }
.install { position: fixed; left: 12px; right: 12px; bottom: calc(var(--tabbar) + 10px + env(safe-area-inset-bottom, 0px)); z-index: 30; background: var(--green-deep); color: #fff; border-radius: 14px; padding: 12px 14px; display: flex; align-items: center; gap: 12px; box-shadow: var(--shadow-lg); }
.install img { width: 40px; height: 40px; border-radius: 10px; }
.install b { display: block; }
.install button { border: 0; border-radius: 10px; padding: 9px 12px; font-weight: 800; background: var(--ipe); color: #1c1400; font-family: var(--display); }
.install .x { background: transparent; color: #fff; opacity: .8; padding: 6px; }
.toast { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(var(--tabbar) + 16px + env(safe-area-inset-bottom, 0px)); background: var(--fg); color: var(--bg); padding: 10px 16px; border-radius: 999px; font-size: 14px; font-weight: 700; z-index: 50; box-shadow: var(--shadow-lg); }
.offline { background: var(--clay-soft); color: var(--clay); text-align: center; font-size: 13px; padding: 6px; font-weight: 700; }
.prose { max-width: 62ch; display: flex; flex-direction: column; gap: 12px; }
.prose h2 { margin-top: 12px; }
.crlist { display: flex; flex-direction: column; gap: 8px; }
.crlist a { display: flex; align-items: center; gap: 12px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 10px 12px; text-decoration: none; color: var(--fg); box-shadow: var(--shadow); }
.crlist .n { margin-left: auto; font-family: var(--display); font-weight: 800; font-size: 13px; color: var(--green); background: var(--green-soft); border-radius: 999px; padding: 3px 10px; white-space: nowrap; }
.badge.site { background: var(--sky-soft); color: var(--sky); }
.badge.below { background: var(--green-soft); color: var(--green-deep); }

/* contexto de preço */
.cx { margin-bottom: 14px; }
.cx-main { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; margin-top: 4px; }
.cx-main b { font-family: var(--display); font-size: 22px; font-weight: 800; letter-spacing: -0.01em; }
.cx-diff { font-family: var(--display); font-weight: 800; font-size: 13px; border-radius: 999px; padding: 4px 10px; background: var(--surface-2); color: var(--fg-2); }
.cx-diff.down { background: var(--green-soft); color: var(--green-deep); }
.cx-diff.up { background: var(--clay-soft); color: var(--clay); }
.cx-bar { position: relative; height: 22px; margin-top: 12px; }
.cx-bar::before { content: ""; position: absolute; left: 0; right: 0; top: 10px; height: 2px; background: var(--line); }
.cx-bar .range { position: absolute; top: 7px; height: 8px; border-radius: 4px; background: var(--green-soft); }
.cx-bar .med { position: absolute; top: 2px; width: 2px; height: 18px; margin-left: -1px; background: var(--fg-3); border-radius: 1px; }
.cx-bar .me { position: absolute; top: 4px; width: 14px; height: 14px; margin-left: -7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 2px var(--surface); }
.cx-bar .me.up { background: var(--clay); }
.cx-legend { display: flex; justify-content: space-between; gap: 8px; margin-top: 4px; font-size: 12px; }
.cx-legend span:nth-child(2) { text-align: center; flex: 1; }

/* vitrine */
.vitrine { margin-top: 6px; }
.vhead { display: flex; gap: 14px; align-items: center; }
.av.big { width: 64px; height: 64px; font-size: 22px; }
.vhead h1 { font-size: 24px; }

/* formulário */
.form { display: flex; flex-direction: column; gap: 14px; margin-top: 8px; }
.form textarea { border: 1px solid var(--line); background: var(--bg); border-radius: 10px; padding: 11px 12px; font-size: 16px; width: 100%; resize: vertical; font: inherit; }
.form textarea:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 3px var(--green-soft); background: var(--surface); }
.form .two { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.form .primary { background: var(--green); color: var(--on-green); border: 0; border-radius: 12px; padding: 14px; font-weight: 800; font-family: var(--display); font-size: 16px; }
.form .primary:disabled { opacity: .6; }
.form #p-err { color: var(--red); font-weight: 700; }
.hp { position: absolute; left: -9999px; top: -9999px; height: 0; overflow: hidden; }
.prow { text-decoration: none; color: inherit; display: block; }

/* barra de filtros (estatísticas, corretores): uma linha rolável no celular, quebra no desktop */
.fbar { display: flex; gap: 8px; overflow-x: auto; padding: 4px 16px 10px; margin-inline: -16px; scrollbar-width: none; -webkit-overflow-scrolling: touch; align-items: flex-end; }
.fbar::-webkit-scrollbar { display: none; }
.fsel { display: flex; flex-direction: column; gap: 4px; flex: none; min-width: 140px; }
.fsel.grow { min-width: 170px; }
.fsel span { font-size: 11px; color: var(--fg-3); font-weight: 800; text-transform: uppercase; letter-spacing: .08em; font-family: var(--display); }
.fsel select, .fsel input { border: 1px solid var(--line); background: var(--surface); border-radius: 10px; padding: 9px 10px; font-size: 14px; font-weight: 700; width: 100%; max-width: 220px; box-shadow: var(--shadow); font-family: var(--display); }
.fsel select:focus, .fsel input:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 3px var(--green-soft); }
.fsel select:not([value=""]):has(option:checked:not([value=""])) { border-color: var(--green); color: var(--green-deep); background: var(--green-soft); }
.crlist .tel { display: inline-block; vertical-align: -3px; margin-left: 4px; color: #1fa855; }
.crlist .tel svg { width: 16px; height: 16px; }
.crlist .n small { font-weight: 600; opacity: .7; }

/* estatísticas — barras finas, uma cor, valor na ponta */
.bars { display: flex; flex-direction: column; gap: 6px; }
.brow { display: grid; grid-template-columns: minmax(110px, 40%) 1fr auto; align-items: center; gap: 10px; text-decoration: none; color: inherit; padding: 3px 0; }
.brow .bl { font-size: 14px; font-weight: 700; line-height: 1.2; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.brow .bl small { display: block; font-size: 12px; color: var(--fg-3); font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.brow .bt { height: 14px; position: relative; }
.brow .bf { display: block; height: 14px; background: var(--green); border-radius: 0 4px 4px 0; min-width: 3px; }
.brow .bv { font-size: 13px; font-weight: 800; font-family: var(--display); color: var(--fg-2); min-width: 40px; text-align: right; }
a.brow:hover .bf { background: var(--green-hover); }
.cols { display: flex; align-items: flex-end; gap: 6px; height: 150px; padding-top: 18px; }
.cols .col { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; position: relative; }
.cols .cb { width: 100%; max-width: 24px; height: calc(100% - 26px); display: flex; align-items: flex-end; }
.cols .cf { display: block; width: 100%; background: var(--green); border-radius: 4px 4px 0 0; position: relative; }
.cols .cv { position: absolute; bottom: 100%; left: 50%; transform: translateX(-50%); margin-bottom: 3px; font-size: 12px; font-weight: 800; font-family: var(--display); color: var(--fg-2); }
.cols .cl { font-size: 10px; color: var(--fg-3); margin-top: 6px; min-height: 16px; line-height: 1.15; text-align: center; overflow-wrap: anywhere; }
.cols.dense { gap: 2px; height: 110px; padding-top: 0; }
.cols.dense .cb { max-width: none; }
.cols.dense .cf { border-radius: 2px 2px 0 0; }
.two-col { display: grid; grid-template-columns: 1fr; gap: 16px; }

@media (min-width: 720px) {
  body { padding-bottom: 0; }
  .tabbar { display: none; }
  .topnav { display: flex; }
  .hero { padding-block: 44px 14px; }
  .hero h1 { font-size: 42px; }
  .stats { grid-template-columns: repeat(5, 1fr); }
  .tiles { grid-template-columns: repeat(4, 1fr); }
  .grid { grid-template-columns: repeat(2, 1fr); }
  .hscroll > * { flex-basis: 300px; }
  .listhead select { max-width: none; }
  .sheet { left: auto; right: 16px; bottom: auto; top: 110px; width: 400px; border: 1px solid var(--line); border-radius: 16px; max-height: 80vh; }
  .sheet .sh::before { display: none; }
  .gallery { border-radius: var(--r); margin-inline: 0; }
  .actions { grid-template-columns: repeat(4, 1fr); }
  .actions .wa { grid-column: auto; }
  .install { left: auto; right: 16px; width: 360px; bottom: 16px; }
  .toast { bottom: 24px; }
  .detail { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 26px; align-items: start; }
  .two-col { grid-template-columns: 1fr 1fr; gap: 24px; }
  .brow { grid-template-columns: minmax(140px, 26%) 1fr auto; }
  .form { max-width: 640px; }
  .fbar { flex-wrap: wrap; overflow: visible; margin-inline: 0; padding-inline: 0; }
  .cols { height: 190px; }
}
@media (min-width: 1000px) { .grid { grid-template-columns: repeat(3, 1fr); } }
@media (prefers-reduced-motion: reduce) { .skeleton { animation: none; } .switch::after, .card { transition: none; } }
