/* ============================================================
   Nidora · v2 extensions
   Accounts, role spaces, editorial reports, cleaner cards,
   native-feeling mobile, AI concierge, collapsible filters.
   ============================================================ */

/* ---------- Global small fixes ---------- */
html { -webkit-text-size-adjust: 100%; }
body { min-height: 100dvh; }
button, a, input, select, textarea { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 2px solid var(--coral); outline-offset: 3px; }
.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;
}

/* ---------- Header account ---------- */
.account-chip {
  display: inline-flex; align-items: center; gap: 7px;
  height: 38px; padding: 0 12px;
  border: 1px solid var(--line); border-radius: 999px;
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  color: var(--ink-soft); font-size: 12px; font-weight: 650;
  white-space: nowrap; transition: border-color .2s var(--ease), background .2s var(--ease);
}
.account-chip:hover { border-color: var(--line-strong); background: var(--surface); }
.account-chip .ic { width: 16px; height: 16px; color: var(--coral); }
.account-chip.is-user { border-color: color-mix(in srgb, var(--coral) 28%, var(--line)); }
.account-chip .account-avatar {
  width: 23px; height: 23px; border-radius: 50%; display: grid; place-items: center;
  background: var(--grad); color: #fff; font-size: 10px; font-weight: 800; letter-spacing: 0;
}
.account-menu {
  position: fixed; z-index: 160; top: 76px; right: 22px; width: min(280px, calc(100vw - 28px));
  background: var(--surface); border: 1px solid var(--line); border-radius: 18px;
  box-shadow: var(--shadow-lg); padding: 8px; display: grid; gap: 2px;
}
.account-menu a, .account-menu button {
  display: flex; align-items: center; gap: 10px; width: 100%;
  padding: 10px 11px; border-radius: 11px; text-align: left; font-size: 12.5px; color: var(--ink-soft);
}
.account-menu a:hover, .account-menu button:hover { background: var(--paper-2); }
.account-menu .ic { width: 17px; height: 17px; color: var(--muted); }
.account-menu .menu-head { padding: 10px 11px 8px; border-bottom: 1px solid var(--line); margin-bottom: 4px; }
.account-menu .menu-head b { display: block; font-size: 13px; }
.account-menu .menu-head span { display: block; font-size: 11px; color: var(--muted); margin-top: 2px; }
.account-menu .role-pill { margin-left: auto; font-size: 9.5px; text-transform: uppercase; letter-spacing: .08em; color: var(--coral); background: var(--green-soft); border-radius: 999px; padding: 3px 7px; }

/* ---------- Filters as accordions ---------- */
.filter-block { padding: 0; border-top: 1px solid var(--line); }
.filter-block:first-of-type { border-top: 0; }
.filter-block > .filter-head {
  margin: 0; padding: 15px 0; cursor: pointer; user-select: none;
  align-items: center; gap: 8px;
}
.filter-block > .filter-head h4 { margin: 0; }
.filter-toggle {
  display: grid; place-items: center; width: 24px; height: 24px; margin-left: auto;
  border-radius: 50%; color: var(--muted); transition: transform .22s var(--ease), background .2s;
}
.filter-toggle:hover { background: var(--paper-2); }
.filter-block.collapsed .filter-toggle { transform: rotate(-90deg); }
.filter-block.collapsed .filter-body { display: none; }
.filter-body { padding: 0 0 17px; }
.filter-block .reset { margin-left: 4px; }
.filter-mobile-head { border-bottom: 1px solid var(--line); margin-bottom: 4px; }
.filters-col { scrollbar-gutter: stable; }
.filter-actions .btn { min-height: 42px; }

/* ---------- Cards: clean, photo-first, stable carousel ---------- */
.cards { grid-template-columns: repeat(auto-fill, minmax(255px, 1fr)); gap: 26px 18px; }
.card {
  border-radius: 20px; overflow: hidden; background: var(--surface);
  border: 1px solid color-mix(in srgb, var(--line) 78%, transparent);
  box-shadow: 0 1px 2px rgba(74, 30, 22, .03);
}
.card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.card .media { aspect-ratio: 4 / 3; width: 100%; }
.card .media img {
  width: 100%; height: 100%; object-fit: cover; object-position: center;
  background: var(--paper-2); transition: transform .6s var(--ease);
}
.card:hover .media img { transform: scale(1.025); }
.card .badge-row { display: none !important; }
.card .price-float {
  left: 11px; bottom: 11px; top: auto;
  padding: 6px 9px; border-radius: 9px; font-size: 13.5px; letter-spacing: -.01em;
  background: color-mix(in srgb, var(--surface) 92%, transparent);
  border: 1px solid color-mix(in srgb, var(--line) 70%, transparent);
  box-shadow: 0 3px 12px rgba(42, 23, 20, .12);
}
.card .price-float small { font-size: 9.5px; font-weight: 500; color: var(--muted); letter-spacing: .01em; }
.card .body { padding: 12px 14px 14px; }
.card .kicker { font-size: 11px; color: var(--muted); margin-bottom: 4px; }
.card h3 { font-size: 14px; line-height: 1.32; min-height: 37px; letter-spacing: -.01em; }
.card .addr { font-size: 11.5px; margin-top: 4px; }
.card .facts { display: none; }
.card .foot { margin-top: 9px; padding-top: 9px; border-top: 1px solid var(--line); font-size: 10.5px; }
.card .foot .src { opacity: .75; }
.card .heart, .card .compare-check {
  position: absolute; z-index: 4; top: 10px; width: 30px; height: 30px; border-radius: 50%;
  display: grid; place-items: center; padding: 0; border: 1px solid color-mix(in srgb, var(--line) 55%, transparent);
  background: color-mix(in srgb, var(--surface) 90%, transparent); backdrop-filter: blur(9px);
  color: var(--ink-soft); box-shadow: 0 2px 8px rgba(42, 23, 20, .08);
}
.card .heart { right: 10px; }
.card .compare-check { left: 10px; font-size: 0; }
.card .compare-check .ic { width: 15px; height: 15px; }
.card .heart .ic { width: 15px; height: 15px; }
.card .heart.on { color: var(--coral); background: var(--surface); }
.card .compare-check.on { color: #fff; background: var(--coral); border-color: transparent; }
.card .arrow {
  opacity: 1; z-index: 5; width: 27px; height: 27px; top: 50%; transform: translateY(-50%);
  background: color-mix(in srgb, var(--surface) 92%, transparent); color: var(--ink-soft);
  border: 1px solid color-mix(in srgb, var(--line) 70%, transparent);
  box-shadow: 0 2px 10px rgba(42, 23, 20, .1);
}
.card .arrow.prev { left: 8px; }
.card .arrow.next { right: 8px; }
.card .arrow .ic { width: 13px; height: 13px; }
.card .dots { bottom: 8px; right: 10px; left: auto; }
.card .dots i { width: 4px; height: 4px; background: rgba(255,255,255,.62); }
.card .dots i.on { width: 12px; background: #fff; }
.card .media .ph { min-height: 100%; }
.cards.grid { grid-template-columns: repeat(auto-fill, minmax(255px, 1fr)); }
.cards.list { display: none; }
.seg [data-view="list"], .seg [data-view="grid"] { display: none; }
.seg { display: none; }

/* ---------- Map pins: price only, exact coordinates ---------- */
.pin-wrap { background: transparent !important; border: 0 !important; }
.pin {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 5px 8px; border-radius: 8px;
  background: var(--surface); color: var(--ink); border: 1px solid color-mix(in srgb, var(--line) 80%, transparent);
  box-shadow: 0 3px 12px rgba(42, 23, 20, .18);
  font-size: 10.5px; font-weight: 750; font-variant-numeric: tabular-nums; white-space: nowrap;
  transform: translate(-50%, -100%);
}
.pin.active, .pin:hover { background: var(--coral); color: #fff; border-color: var(--coral); }
.pin.low { border-left: 3px solid #e98a63; }
.pin.high { border-left: 3px solid #d05a82; }
.pin.verify { opacity: .72; }
.pin.cluster { height: 31px; min-width: 31px; padding: 0 8px; border-radius: 999px; background: var(--cocoa); color: var(--paper); border-color: var(--cocoa); font-size: 10.5px; }
.pin.cluster:hover, .pin.cluster.active { background: var(--coral); border-color: var(--coral); color: #fff; }
.map-price-note { font-size: 10px; }
.leaflet-container { font-family: var(--ff-ui); }

/* ---------- Hero activity ---------- */
.hero-activity {
  display: flex; flex-wrap: wrap; align-items: center; gap: 7px;
  margin-top: 18px; min-height: 30px;
}
.activity-pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 9px; border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--line) 75%, transparent);
  background: color-mix(in srgb, var(--surface) 74%, transparent);
  color: var(--ink-soft); font-size: 10.5px; font-weight: 600;
  box-shadow: 0 1px 2px rgba(74, 30, 22, .03);
}
.activity-pill .pulse {
  width: 6px; height: 6px; border-radius: 50%; background: var(--coral);
  box-shadow: 0 0 0 0 rgba(242,100,76,.5); animation: pulse 2s infinite;
}
.activity-pill strong { font-weight: 800; color: var(--ink); }
.activity-pill.fresh { border-color: color-mix(in srgb, var(--coral) 22%, var(--line)); }
.activity-pill.fresh .pulse { background: #e98a63; }
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(242,100,76,.38); }
  70% { box-shadow: 0 0 0 7px rgba(242,100,76,0); }
  100% { box-shadow: 0 0 0 0 rgba(242,100,76,0); }
}

/* ---------- Mobile navigation ---------- */
.mobile-nav { display: none; }
@media (max-width: 760px) {
  :root { --header-h: 62px; }
  body { padding-bottom: calc(66px + env(safe-area-inset-bottom)); }
  .announce { font-size: 10.5px; }
  .announce-in { min-height: 34px; padding: 6px 34px 6px 10px; justify-content: flex-start; gap: 6px; }
  .announce-text { display: none; }
  .announce a { margin-left: auto; }
  .topbar { height: var(--header-h); padding: 0 12px; gap: 10px; }
  .brand-city { display: none; }
  .brand-word { font-size: 17px; }
  .brand-mark { width: 32px; height: 32px; }
  .search-shell { display: none; }
  .mainnav { display: none; }
  .topbar-actions { margin-left: auto; gap: 3px; }
  .topbar-actions .agency-cta { display: none; }
  .account-chip { width: 38px; padding: 0; justify-content: center; }
  .account-chip span { display: none; }
  .topbar-actions .iconbtn { width: 36px; height: 36px; }
  .mobile-filter { display: grid !important; }
  .hero { padding: 24px 16px 10px; }
  .hero h1 { font-size: clamp(37px, 10.5vw, 54px); line-height: .99; }
  .hero .sub { font-size: 13.5px; line-height: 1.5; margin-top: 13px; max-width: 94%; }
  .hero-search { grid-template-columns: 1fr auto; gap: 7px; padding: 7px; border-radius: 15px; margin-top: 17px; }
  .hero-search .hs-field:first-child { grid-column: 1 / -1; }
  .hero-search .hs-select { display: none; }
  .hero-go { min-height: 44px; border-radius: 11px; font-size: 12px; }
  .hero-chips { overflow-x: auto; flex-wrap: nowrap; padding-bottom: 3px; margin-right: -16px; }
  .hchip { flex: none; min-height: 32px; }
  .hero-trust { display: none; }
  .hero-visual { min-height: 270px; margin-top: 22px; }
  .collage { min-height: 270px; }
  .float-card { transform: scale(.88); transform-origin: left bottom; }
  .fc-count { left: 4px; bottom: 12px; }
  .fc-median { right: 4px; bottom: 12px; transform-origin: right bottom; }
  .fc-agency { display: none; }
  .hero-activity { margin-top: 12px; gap: 5px; overflow: hidden; max-height: 64px; }
  .activity-pill { font-size: 9.8px; padding: 5px 8px; }
  .hero-activity .activity-pill:nth-child(n+3) { display: none; }
  .results-col { padding: 0 12px; }
  .results-head { position: sticky; top: var(--header-h); z-index: 20; background: color-mix(in srgb, var(--paper) 92%, transparent); backdrop-filter: blur(10px); padding: 10px 0 8px; margin: 0 -12px; padding-left: 12px; padding-right: 12px; }
  .results-title h2 { font-size: 17px; }
  .map-toggle { font-size: 10.5px; padding: 7px 9px; }
  .cards, .cards.grid { grid-template-columns: 1fr; gap: 14px; }
  .card { border-radius: 17px; }
  .card .media { aspect-ratio: 4 / 3; }
  .card h3 { font-size: 15px; min-height: 0; }
  .card .body { padding: 11px 13px 13px; }
  .card .facts { display: none; }
  .filters-col { width: min(92vw, 390px); border-radius: 0 22px 22px 0; padding-bottom: calc(100px + env(safe-area-inset-bottom)); }
  .filter-block > .filter-head { padding: 16px 0; }
  .filter-block .chip { min-height: 37px; }
  .filter-actions { position: sticky; bottom: 0; background: var(--surface); padding: 12px 0 calc(12px + env(safe-area-inset-bottom)); margin: 0 -18px; padding-left: 18px; padding-right: 18px; border-top: 1px solid var(--line); }
  .mobile-nav {
    position: fixed; z-index: 80; left: 0; right: 0; bottom: 0;
    display: grid; grid-template-columns: repeat(5, 1fr);
    padding: 7px 4px calc(7px + env(safe-area-inset-bottom));
    background: color-mix(in srgb, var(--surface) 94%, transparent);
    backdrop-filter: saturate(1.4) blur(18px);
    border-top: 1px solid var(--line);
  }
  .mobile-nav a {
    min-height: 48px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
    font-size: 9px; font-weight: 650; color: var(--muted); border-radius: 11px; position: relative;
  }
  .mobile-nav a .ic { width: 19px; height: 19px; }
  .mobile-nav a.active { color: var(--coral); }
  .mobile-nav .nav-count {
    position: absolute; top: 2px; right: calc(50% - 18px);
    min-width: 15px; height: 15px; padding: 0 4px; border-radius: 999px;
    background: var(--coral); color: #fff; font-size: 8px; line-height: 15px; text-align: center;
  }
  .mobile-agency { bottom: calc(70px + env(safe-area-inset-bottom)); left: 10px; right: 10px; }
  body.has-mobile-agency .chat-launcher { bottom: calc(142px + env(safe-area-inset-bottom)); }
  .mobile-agency[hidden] { display: none !important; }
  .lead-pop { bottom: calc(78px + env(safe-area-inset-bottom)); right: 10px; left: 10px; width: auto; }
  .exit-modal, .promo-backdrop { padding: 12px; }
  .promo-modal { max-height: calc(100dvh - 24px); overflow: auto; border-radius: 22px; }
  .detail { padding: 14px 12px; }
  .detail-head h1 { font-size: 27px; }
  .detail-actions { flex-wrap: wrap; }
  .detail-actions .btn { flex: 1; min-height: 42px; }
  .detail-grid { grid-template-columns: 1fr; }
  .side-card { position: static; }
  .gallery { border-radius: 16px; }
  .detail-agency { margin-top: 4px; }
  .page { padding: 18px 12px calc(30px + env(safe-area-inset-bottom)); }
  .page h1 { font-size: 31px; }
  .account-chip { display: none; }
  .foot-cta { padding: 26px 16px; }
  .sitefoot { padding-bottom: 8px; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .foot-brand { grid-column: 1 / -1; }
}

@media (min-width: 761px) {
  .mobile-nav { display: none !important; }
}

/* ---------- Auth / account / admin / hunter ---------- */
.auth-shell {
  max-width: 1020px; margin: 42px auto 80px; padding: 0 22px;
  display: grid; grid-template-columns: .92fr 1.08fr; gap: 28px; align-items: stretch;
}
.auth-aside {
  background: linear-gradient(145deg, #2a1714, #4b241e 62%, #7a2f24);
  color: #fff7f2; border-radius: 26px; padding: 34px; min-height: 460px;
  display: flex; flex-direction: column; justify-content: space-between; overflow: hidden; position: relative;
}
.auth-aside::after { content: ""; position: absolute; inset: auto -30% -45% 15%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, rgba(255,138,107,.42), transparent 65%); }
.auth-aside .eyebrow { color: #ffd0c1; }
.auth-aside h2 { font-size: clamp(30px, 3.5vw, 48px); line-height: 1.02; margin-top: 18px; max-width: 340px; }
.auth-aside p { color: rgba(255,247,242,.76); font-size: 13px; line-height: 1.6; margin-top: 13px; max-width: 320px; }
.auth-points { display: grid; gap: 9px; margin-top: 22px; position: relative; z-index: 1; }
.auth-points span { display: flex; align-items: center; gap: 8px; font-size: 12px; color: rgba(255,247,242,.9); }
.auth-points .ic { width: 14px; height: 14px; color: #ffb59e; }
.auth-card { background: var(--surface); border: 1px solid var(--line); border-radius: 26px; padding: 32px; box-shadow: var(--shadow-sm); }
.auth-card h1 { font-size: 30px; margin-bottom: 5px; }
.auth-card .auth-sub { color: var(--muted); font-size: 12.5px; margin-bottom: 22px; }
.auth-form { display: grid; gap: 13px; }
.auth-form label { display: grid; gap: 6px; font-size: 11px; font-weight: 650; color: var(--ink-soft); text-transform: uppercase; letter-spacing: .07em; }
.auth-form input, .auth-form textarea, .auth-form select {
  width: 100%; min-height: 45px; border: 1px solid var(--line); border-radius: 11px;
  background: var(--paper); padding: 0 12px; font-size: 14px; text-transform: none; letter-spacing: 0; font-weight: 400;
}
.auth-form input:focus, .auth-form textarea:focus { border-color: var(--coral); outline: none; box-shadow: 0 0 0 3px rgba(242,100,76,.1); }
.auth-form .btn { min-height: 46px; margin-top: 4px; }
.auth-switch { margin-top: 18px; font-size: 12px; color: var(--muted); text-align: center; }
.auth-switch a { color: var(--coral); font-weight: 700; }
.auth-note { font-size: 10.5px; color: var(--muted); line-height: 1.5; margin-top: 10px; }
.form-error { padding: 9px 11px; border-radius: 9px; background: #fff0eb; color: #9b2f20; font-size: 11.5px; }
[data-theme="dark"] .form-error { background: #3a1d18; color: #ffb4a5; }

.account-shell, .admin-shell, .hunter-shell { max-width: 1240px; margin: 32px auto 90px; padding: 0 22px; }
.account-hero { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 24px; }
.account-hero h1 { font-size: clamp(32px, 4vw, 46px); }
.account-hero p { color: var(--muted); font-size: 13px; margin-top: 4px; }
.account-avatar-lg {
  width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center;
  background: var(--grad); color: #fff; font-weight: 800; font-size: 20px; box-shadow: var(--shadow-sm);
}
.account-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 22px; }
.acct-stat, .admin-stat {
  background: var(--surface); border: 1px solid var(--line); border-radius: 15px; padding: 16px;
}
.acct-stat span, .admin-stat span { display: block; font-size: 10px; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
.acct-stat b, .admin-stat b { display: block; margin-top: 5px; font-size: 26px; letter-spacing: -.05em; }
.acct-stat small, .admin-stat small { color: var(--muted); font-size: 10.5px; }
.account-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 18px; }
.account-card { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 20px; }
.account-card h2 { font-size: 18px; margin-bottom: 12px; }
.account-card .muted { color: var(--muted); font-size: 12px; }
.account-list { display: grid; gap: 0; }
.account-list a, .account-list .row { display: flex; align-items: center; gap: 10px; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 12.5px; }
.account-list a:last-child, .account-list .row:last-child { border-bottom: 0; }
.account-list .ic { width: 16px; height: 16px; color: var(--coral); }
.account-list .meta { margin-left: auto; color: var(--muted); font-size: 10.5px; }
.role-badge { display: inline-flex; align-items: center; gap: 5px; padding: 4px 8px; border-radius: 999px; background: var(--green-soft); color: var(--coral); font-size: 9.5px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.role-badge.agent { background: #eaf0ff; color: #3b5ea8; }
.role-badge.admin { background: #2a1714; color: #ffd0c1; }
[data-theme="dark"] .role-badge.agent { background: #1d2b4a; color: #a8c0ff; }

.admin-tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 18px; border-bottom: 1px solid var(--line); padding-bottom: 9px; }
.admin-tabs button { padding: 8px 12px; border-radius: 999px; font-size: 11.5px; font-weight: 650; color: var(--muted); }
.admin-tabs button.on { background: var(--ink); color: var(--paper); }
.admin-stats { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; margin-bottom: 18px; }
.admin-panel { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 18px; overflow: auto; }
.admin-panel h2 { font-size: 17px; margin-bottom: 12px; }
.admin-table { width: 100%; border-collapse: collapse; font-size: 11.5px; min-width: 620px; }
.admin-table th { text-align: left; color: var(--muted); font-size: 9.5px; letter-spacing: .08em; text-transform: uppercase; padding: 8px 8px; border-bottom: 1px solid var(--line); }
.admin-table td { padding: 10px 8px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.admin-table tr:last-child td { border-bottom: 0; }
.admin-table select { min-height: 30px; border: 1px solid var(--line); border-radius: 8px; background: var(--paper); font-size: 11px; padding: 0 7px; }
.admin-table .name { font-weight: 650; }
.admin-table .sub { color: var(--muted); font-size: 10px; }
.admin-search { display: flex; gap: 8px; margin-bottom: 12px; }
.admin-search input { flex: 1; min-height: 38px; border: 1px solid var(--line); border-radius: 10px; background: var(--paper); padding: 0 11px; font-size: 12.5px; }
.lead-status { display: inline-flex; padding: 3px 7px; border-radius: 999px; background: var(--paper-2); font-size: 9.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
.lead-status.new { background: #fff0e7; color: #a34c2e; }
.lead-status.contacted { background: #eaf0ff; color: #3b5ea8; }
.lead-status.visit { background: #f3e9ff; color: #7646a8; }
.lead-status.signing { background: #e8f7ee; color: #2f7d50; }
.lead-status.lost { background: var(--paper-2); color: var(--muted); }
.empty-soft { padding: 28px 12px; text-align: center; color: var(--muted); font-size: 12px; }

@media (max-width: 900px) {
  .auth-shell { grid-template-columns: 1fr; margin-top: 20px; padding: 0 14px; }
  .auth-aside { min-height: 230px; padding: 24px; }
  .auth-aside h2 { font-size: 30px; }
  .auth-card { padding: 22px; }
  .account-stats { grid-template-columns: 1fr 1fr; }
  .account-grid { grid-template-columns: 1fr; }
  .admin-stats { grid-template-columns: repeat(2, 1fr); }
  .admin-shell, .account-shell, .hunter-shell { padding: 0 12px; margin-top: 18px; }
}

/* ---------- AI concierge ---------- */
.chat-launcher {
  position: fixed; z-index: 180; right: 20px; bottom: 22px;
  display: flex; align-items: center; gap: 9px;
  min-height: 48px; padding: 0 15px 0 12px; border-radius: 999px;
  background: var(--ink); color: var(--paper); box-shadow: 0 10px 34px rgba(42,23,20,.28);
  font-size: 12px; font-weight: 750; border: 1px solid rgba(255,255,255,.08);
}
.chat-launcher .orb { width: 23px; height: 23px; border-radius: 50%; background: var(--grad); display: grid; place-items: center; color: #fff; font-size: 11px; font-weight: 800; }
.chat-launcher:hover { transform: translateY(-1px); }
.chat-panel {
  position: fixed; z-index: 300; right: 20px; bottom: 20px;
  width: min(390px, calc(100vw - 24px)); height: min(620px, calc(100dvh - 40px));
  background: var(--surface); border: 1px solid var(--line); border-radius: 22px;
  box-shadow: 0 30px 80px -20px rgba(42,23,20,.45); display: flex; flex-direction: column; overflow: hidden;
}
.chat-head { padding: 14px 16px; background: var(--ink); color: var(--paper); display: flex; align-items: center; gap: 10px; }
.chat-head .orb { width: 30px; height: 30px; border-radius: 50%; background: var(--grad); display: grid; place-items: center; font-size: 12px; font-weight: 800; }
.chat-head b { font-size: 13px; }
.chat-head span { display: block; color: rgba(255,247,242,.62); font-size: 10px; }
.chat-head button { margin-left: auto; color: rgba(255,247,242,.7); }
.chat-body { flex: 1; overflow: auto; padding: 15px 13px; display: grid; align-content: start; gap: 10px; background: linear-gradient(var(--surface), var(--paper)); }
.chat-msg { max-width: 86%; padding: 9px 11px; border-radius: 13px 13px 13px 4px; background: var(--surface); border: 1px solid var(--line); font-size: 12px; line-height: 1.5; color: var(--ink-soft); }
.chat-msg.me { justify-self: end; border-radius: 13px 13px 4px 13px; background: var(--ink); color: var(--paper); border-color: transparent; }
.chat-msg .chat-card { margin-top: 8px; border: 1px solid var(--line); border-radius: 11px; overflow: hidden; background: var(--paper); }
.chat-msg .chat-card img { width: 100%; height: 92px; object-fit: cover; }
.chat-msg .chat-card div { padding: 8px 9px; font-size: 11px; }
.chat-msg .chat-card b { display: block; font-size: 11.5px; color: var(--ink); }
.chat-msg .chat-card small { color: var(--muted); font-size: 10px; }
.chat-quick { display: flex; gap: 5px; flex-wrap: wrap; padding: 0 13px 8px; background: var(--paper); }
.chat-quick button { padding: 6px 9px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); font-size: 10px; color: var(--ink-soft); }
.chat-quick button:hover { border-color: var(--coral); color: var(--coral); }
.chat-input { display: flex; gap: 6px; padding: 9px 10px calc(9px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: var(--surface); }
.chat-input input { flex: 1; min-height: 40px; border: 1px solid var(--line); border-radius: 999px; background: var(--paper); padding: 0 12px; font-size: 12px; }
.chat-input button { width: 38px; height: 38px; border-radius: 50%; background: var(--coral); color: #fff; display: grid; place-items: center; }
.chat-input button .ic { width: 16px; height: 16px; }
.chat-typing { display: inline-flex; gap: 3px; }
.chat-typing i { width: 4px; height: 4px; border-radius: 50%; background: var(--muted); animation: blink 1.2s infinite; }
.chat-typing i:nth-child(2) { animation-delay: .15s; } .chat-typing i:nth-child(3) { animation-delay: .3s; }
@keyframes blink { 0%, 80%, 100% { opacity: .2; } 40% { opacity: 1; } }
@media (max-width: 760px) {
  .chat-launcher { right: 12px; bottom: calc(76px + env(safe-area-inset-bottom)); min-height: 44px; padding: 0 12px; font-size: 11px; }
  .chat-launcher .orb { width: 20px; height: 20px; }
  .chat-panel { right: 0; bottom: 0; width: 100vw; height: 100dvh; border-radius: 0; }
  .chat-head { padding-top: calc(14px + env(safe-area-inset-top)); }
}

/* ---------- Editorial articles ---------- */
.article-page { max-width: 960px; margin: 0 auto; padding: 40px 22px 90px; }
.article-page .article-hero { max-width: 820px; margin: 0 auto 24px; }
.article-page .eyebrow { color: var(--coral); }
.article-page h1 { font-size: clamp(38px, 5vw, 64px); line-height: 1.02; margin-top: 12px; letter-spacing: -.055em; }
.article-page .article-deck { font-size: 17px; line-height: 1.55; color: var(--ink-soft); margin-top: 16px; max-width: 720px; }
.article-page .article-meta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 18px; color: var(--muted); font-size: 11px; }
.article-page .article-body { max-width: 760px; margin: 32px auto 0; font-size: 15.5px; line-height: 1.75; }
.article-page .article-body h2 { font-size: 30px; margin: 40px 0 12px; letter-spacing: -.04em; }
.article-page .article-body h3 { font-size: 20px; margin: 26px 0 8px; }
.article-page .article-body p { margin: 0 0 16px; }
.article-page .article-body ul, .article-page .article-body ol { margin: 0 0 18px; padding-left: 22px; }
.article-page .article-body li { margin-bottom: 7px; }
.article-page .article-body a { color: var(--coral); text-decoration: underline; text-underline-offset: 3px; }
.article-page .article-body blockquote { margin: 24px 0; padding: 16px 18px; border-left: 3px solid var(--coral); background: var(--surface); border-radius: 0 12px 12px 0; color: var(--ink-soft); }
.article-page .article-body table {
  display: block;
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-collapse: collapse;
  margin: 20px 0;
  font-size: 12.5px;
}
.article-page .article-body table th,
.article-page .article-body table td { white-space: nowrap; }
.article-page .article-body th { text-align: left; font-size: 10px; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); border-bottom: 1px solid var(--line); padding: 8px 9px; }
.article-page .article-body td { border-bottom: 1px solid var(--line); padding: 9px; }
.article-page .article-body td:first-child { font-weight: 600; }
.article-page .method { padding: 18px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); font-size: 12.5px; color: var(--ink-soft); }
.article-page .article-cta { margin: 38px auto 0; max-width: 760px; padding: 26px; border-radius: 20px; background: var(--ink); color: var(--paper); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.article-page .article-cta h2 { font-size: 24px; margin: 0 0 4px; }
.article-page .article-cta p { color: rgba(255,247,242,.7); font-size: 12px; margin: 0; }
.article-page .article-cta .btn { background: var(--paper); color: var(--ink); }
.article-index { max-width: 1100px; margin: 0 auto; padding: 42px 22px 90px; }
.article-index h1 { font-size: clamp(38px, 5vw, 60px); }
.article-index .article-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 28px; }
.article-index .article-tile { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 22px; display: flex; flex-direction: column; min-height: 250px; }
.article-index .article-tile span { color: var(--coral); font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .1em; }
.article-index .article-tile h2 { font-size: 23px; line-height: 1.08; margin: 12px 0 8px; }
.article-index .article-tile p { color: var(--muted); font-size: 12px; line-height: 1.6; }
.article-index .article-tile a { margin-top: auto; padding-top: 18px; color: var(--coral); font-size: 11.5px; font-weight: 700; }
@media (max-width: 760px) {
  .article-page { padding: 24px 14px 80px; }
  .article-page h1 { font-size: 38px; }
  .article-page .article-deck { font-size: 15px; }
  .article-page .article-body { font-size: 15px; }
  .article-page .article-body h2 { font-size: 25px; }
  .article-index { padding: 24px 14px 80px; }
  .article-index .article-grid { grid-template-columns: 1fr; }
}

/* ---------- Utility ---------- */
.stack { display: grid; gap: 12px; }
.row-between { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.hr { height: 1px; background: var(--line); margin: 18px 0; }
.pill-note { display: inline-flex; align-items: center; gap: 5px; padding: 4px 8px; border-radius: 999px; background: var(--paper-2); color: var(--muted); font-size: 10px; }
.loading-block { padding: 26px; text-align: center; color: var(--muted); font-size: 12px; }

/* ---------- Deal tabs ---------- */
.deal-tabs {
  display: flex; align-items: center; gap: 5px; flex-wrap: wrap;
  max-width: 1520px; margin: 22px auto 0; padding: 0 20px;
}
.deal-tabs button {
  padding: 8px 13px; border-radius: 999px; border: 1px solid var(--line);
  background: var(--surface); color: var(--muted); font-size: 11.5px; font-weight: 700;
}
.deal-tabs button.on { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.deal-tabs .deal-note { color: var(--muted); font-size: 10.5px; margin-left: 4px; }
@media (max-width: 760px) {
  .deal-tabs { margin-top: 13px; padding: 0 12px; gap: 4px; overflow-x: auto; flex-wrap: nowrap; }
  .deal-tabs button { flex: none; min-height: 34px; padding: 7px 11px; font-size: 10.5px; }
  .deal-tabs .deal-note { display: none; }
}
.deal-mini { color: var(--coral); font-weight: 800; font-size: 9px; letter-spacing: .07em; text-transform: uppercase; }

/* ---------- Mobile polish: prevent clipped hero and keep five tabs visible ---------- */
body { overflow-x: hidden; }
@media (max-width: 760px) {
  .mobile-nav { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .mobile-nav a { min-width: 0; overflow: hidden; }
  .mobile-nav a span { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 8.5px; }
  .hero-chips { flex-wrap: wrap; overflow: visible; margin-right: 0; white-space: normal; }
  .hero-chips .hchip { flex: 0 1 auto; }
  .hero h1 { max-width: 100%; overflow-wrap: break-word; }
}
@media (max-width: 520px) {
  .hero h1 { font-size: clamp(29px, 8.6vw, 34px); letter-spacing: -.045em; line-height: 1.0; }
  .hero h1 .grad { display: inline; }
}

/* Keep wide charts inside their panel on narrow screens. */
.hist { max-width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; overscroll-behavior-x: contain; }
.hist .hcol { min-width: 44px; }

/* Mobile detail: make the photo count discoverable, and keep data tables scrollable inside their cards. */
.gallery .shot-count {
  position: absolute; left: 10px; bottom: 10px; z-index: 2;
  padding: 5px 8px; border-radius: 999px; background: rgba(42,23,20,.78);
  color: #fff7f2; font-size: 10px; font-weight: 700; pointer-events: none;
}
@media (max-width: 760px) {
  .admin-table {
    display: block; width: 100%; max-width: 100%; min-width: 0;
    overflow-x: auto; -webkit-overflow-scrolling: touch;
  }
  .admin-table th, .admin-table td { white-space: nowrap; }
}

@media (max-width: 760px) {
  .topbar-actions .iconbtn { width: 40px; height: 40px; }
  .card .arrow { width: 32px; height: 32px; }
  .card .heart, .card .compare-check { width: 34px; height: 34px; }
  .card .heart { right: 9px; }
  .card .compare-check { left: 9px; opacity: .9; }
  .card .compare-check.on { opacity: 1; }
}

@media (max-width: 760px) {
  .filters-col { z-index: 220; }
}


/* ============================================================
   2026 refonte: agency-first hero, clean cards, calmer controls
   ============================================================ */
.topbar { gap: 20px; }
.mainnav { margin-left: 6px; }
.mainnav a { font-size: 12px; }
.topbar-actions { margin-left: auto; }
.mobile-menu, .mobile-menu-btn { display: none; }
.announce-short { display: none; }

/* Hero */
.hero-agency { align-items: center; }
.hero-cta-row { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 24px; }
.hero-main-cta { height: 48px; padding: 0 20px; font-size: 13px; }
.hero-secondary-cta { height: 48px; padding: 0 18px; font-size: 12.5px; }
.hero-quick {
  display: flex; align-items: stretch; flex-wrap: wrap; gap: 7px;
  max-width: 720px; margin-top: 22px; padding: 6px;
  border: 1px solid var(--line); border-radius: 16px; background: var(--surface);
  box-shadow: 0 14px 36px -28px rgba(74,30,22,.45);
}
.hero-deal { display: flex; align-items: center; gap: 2px; padding: 3px; border-radius: 11px; background: var(--surface-2); }
.hero-deal button {
  border: 0; background: transparent; color: var(--muted); border-radius: 8px;
  padding: 0 10px; height: 36px; font-size: 11.5px; font-weight: 600; white-space: nowrap;
}
.hero-deal button.on { background: var(--cocoa); color: #fff7f2; }
.hero-select { display: flex; align-items: center; gap: 6px; min-width: 130px; padding: 0 9px; border-left: 1px solid var(--line); }
.hero-select span { font-size: 9px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); white-space: nowrap; }
.hero-select select { border: 0; outline: 0; background: transparent; font-size: 11.5px; color: var(--ink-soft); min-width: 0; max-width: 130px; }
.hero-go { height: 44px; padding: 0 14px; font-size: 11.5px; white-space: nowrap; margin-left: auto; }
.hero-chips { margin-top: 12px; }
.hero-activity { display: flex; flex-wrap: wrap; gap: 6px; min-height: 26px; margin-top: 15px; }
.activity-pill { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 9px; border-radius: 999px; background: var(--surface-2); color: var(--muted); font-size: 10.5px; }
.activity-pill strong { color: var(--ink); }
.activity-pill .pulse { width: 5px; height: 5px; border-radius: 50%; background: var(--coral); animation: live 2.4s infinite; }
.hero-trust { margin-top: 15px; font-size: 10.5px; gap: 12px; }
.collage img.switching { opacity: .35; }
.collage figure { isolation: isolate; }
.collage-main img, .collage-a img, .collage-b img { display: block; }
.float-card.fc-agency { border-radius: 16px; }

/* Results toolbar: one line, no duplicate black rows */
.results-head { align-items: center; }
.results-controls { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; margin-left: auto; }
.results-controls .deal-tabs { margin: 0; padding: 3px; border-radius: 10px; background: var(--surface-2); }
.results-controls .deal-tabs button { height: 30px; padding: 0 10px; border-radius: 7px; font-size: 11px; }
.results-controls .deal-tabs button.on { background: var(--cocoa); color: #fff7f2; }
.results-controls .select { height: 34px; }
.results-controls .map-toggle { height: 34px; font-size: 11px; }
#activeChips { margin-top: 8px; }

/* Cards: image first, price in the body, no source clutter */
.card { overflow: hidden; }
.card .media { width: 100%; height: auto; aspect-ratio: 4 / 3; }
.card .media img { width: 100%; height: 100%; object-fit: cover; object-position: center; transition: opacity .18s ease; }
.card:hover .media img { transform: none; }
.card .media img.switching { opacity: .55; }
.card .body { padding: 13px 15px 14px; }
.card .card-price { font-family: var(--ff-display); font-weight: 800; font-size: 20px; letter-spacing: -.045em; color: var(--ink); line-height: 1.1; }
.card .card-price small { font-family: var(--ff-ui); font-weight: 500; font-size: 9.5px; color: var(--muted); letter-spacing: 0; }
.card .kicker { margin: 7px 0 5px; font-size: 9.5px; letter-spacing: .08em; color: var(--muted); }
.card .kicker .deal-mini { color: var(--coral-deep); }
.card h3 { font-size: 14px; line-height: 1.35; margin: 0; min-height: 38px; }
.card .addr { margin-top: 5px; font-size: 11.5px; }
.card .foot { margin-top: 9px; padding-top: 8px; font-size: 10.5px; }
.card .src { display: none; }
.card .heart, .card .compare-check {
  position: absolute; top: 10px; z-index: 3; width: 30px; height: 30px; padding: 0;
  display: grid; place-items: center; border: 1px solid rgba(42,23,20,.12);
  line-height: 1; transform: none;
}
.card .heart { right: 10px; }
.card .compare-check { left: 10px; opacity: 0; }
.card:hover .compare-check, .card .compare-check.on, .card .compare-check:focus-visible { opacity: 1; }
.card .heart:hover, .card .compare-check:hover { transform: none; }
.card .heart .ic, .card .compare-check .ic { width: 15px; height: 15px; display: block; }
.card .arrow { width: 30px; height: 30px; padding: 0; display: grid; place-items: center; transform: translateY(-50%); }
.card .arrow .ic { width: 15px; height: 15px; }
.card .arrow.prev { left: 9px; }
.card .arrow.next { right: 9px; }
.card .dots { left: 50%; transform: translateX(-50%); }
.price-float { display: none; }

/* Filters: compact, aligned chevrons, no nested panels */
.filters-col { padding-right: 14px; }
.filter-block { padding: 10px 0; }
.filter-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 30px; cursor: pointer; }
.filter-head h4 { font-size: 9.5px; letter-spacing: .11em; margin: 0; }
.filter-head .reset { font-size: 10px; margin-left: auto; }
.filter-toggle {
  flex: none; width: 24px; height: 24px; padding: 0; border: 0; border-radius: 7px;
  display: grid; place-items: center; background: transparent; color: var(--muted);
}
.filter-toggle:hover { background: var(--surface-2); color: var(--ink); }
.filter-toggle .ic { width: 13px; height: 13px; transform: rotate(90deg); transition: transform .18s; }
.filter-block:not(.collapsed) .filter-toggle .ic { transform: rotate(-90deg); }
.filter-body { margin-top: 9px; }
.filter-block.collapsed .filter-body { display: none; }
.filter-block .hint { margin-top: 6px; font-size: 10.5px; }
.filter-block .price-reads { margin-top: 7px; }
.filter-block .chip-row { margin-top: 8px; }
.filter-actions { padding-top: 12px; }
.mobile-apply { display: none; }

/* Map */
.map-col { position: sticky; top: calc(var(--header-h) + 12px); height: min(780px, calc(100vh - var(--header-h) - 70px)); min-height: 480px; }
.map-toolbar { top: 12px; left: 12px; right: auto; max-width: calc(100% - 24px); flex-wrap: wrap; z-index: 600; }
.map-toolbar .btn { height: 32px; font-size: 10.5px; }
.map-badge { font-size: 9.5px; }
.leaflet-bottom.leaflet-left { bottom: 24px; left: 12px; }
.leaflet-control-zoom { margin: 0 !important; }
.pin:hover, .pin.active { transform: none; box-shadow: 0 0 0 2px rgba(242,100,76,.35), 0 6px 16px -8px rgba(42,23,20,.5); }
.pin.cluster { min-width: 28px; height: 28px; padding: 0 7px; background: var(--cocoa); color: #fff7f2; }

/* Detail: clean facts, compact equipment, non-overlapping sidebar */
.detail-grid { grid-template-columns: minmax(0, 1.65fr) minmax(290px, .95fr); gap: 32px; }
.detail-side { min-width: 0; }
.detail-side .side-card, .detail-side .detail-agency { position: static; top: auto; }
.detail-side .price-card { border-radius: 20px; }
.detail-side .side-card + .side-card { margin-top: 12px; }
.detail-tags { display: flex; flex-wrap: wrap; gap: 5px; margin-bottom: 9px; }
.detail-tags .badge { background: var(--surface-2); color: var(--ink-soft); border: 1px solid var(--line); height: 24px; padding: 0 9px; font-size: 10px; }
.factstrip { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: var(--surface); }
.factstrip .fact { background: transparent; border: 0; border-right: 1px solid var(--line); border-radius: 0; padding: 12px 11px; }
.factstrip .fact:last-child { border-right: 0; }
.factstrip .fact span { font-size: 9px; letter-spacing: .09em; }
.factstrip .fact b { font-size: 14px; }
.detail-submeta { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-top: 8px; color: var(--muted); font-size: 10.5px; }
.source-desc-link { display: inline-flex; align-items: center; gap: 5px; margin-top: 9px; color: var(--coral-deep); font-size: 10.5px; font-weight: 600; }
.amenities { display: flex; flex-wrap: wrap; gap: 6px; }
.amenities .amenity { width: auto; padding: 6px 9px; border-radius: 999px; font-size: 10.5px; background: var(--surface-2); border-color: var(--line); }
.amenities .amenity .ic { width: 13px; height: 13px; }
.amenities .amenity.muted { width: 100%; border-radius: 10px; padding: 10px 11px; color: var(--muted); }
.calc-card { position: static; }
.calc-card details { border: 0; }
.calc-card summary { cursor: pointer; font-family: var(--ff-display); font-weight: 800; font-size: 16px; list-style: none; }
.calc-card summary::-webkit-details-marker { display: none; }
.calc-note { font-size: 10px; color: var(--muted); margin-top: 8px; }
.detail-agency { position: static; margin-top: 12px; }
.similar { margin-top: 38px; }
.similar-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.similar-head h2 { font-size: 23px; margin: 0; }
.similar-head p { color: var(--muted); font-size: 11.5px; margin-top: 4px; }
.carousel-nav { display: flex; gap: 6px; }
.carousel-nav .iconbtn { background: var(--surface); border: 1px solid var(--line); }
.similar-track { display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 2px 2px 12px; scrollbar-width: thin; }
.similar-track .card { flex: 0 0 270px; min-width: 270px; scroll-snap-align: start; }
.similar-track .card .card-price { font-size: 18px; }
.similar-track .card h3 { min-height: 38px; }

/* Comparison images */
.compare-head img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; display: block; border-radius: 10px; margin-bottom: 8px; }

/* Footer: full bleed on desktop and mobile */
.sitefoot { display: block; max-width: none; margin: 0; padding: 0; background: var(--cocoa); border-top: 0; color: rgba(255,247,242,.66); }
.sitefoot .foot-cta, .sitefoot .foot-grid, .sitefoot .foot-bottom { max-width: 1520px; margin-left: auto; margin-right: auto; padding-left: clamp(18px, 3vw, 36px); padding-right: clamp(18px, 3vw, 36px); }
.sitefoot .foot-cta { padding-top: 34px; padding-bottom: 26px; }
.sitefoot .foot-grid { padding-top: 24px; padding-bottom: 28px; }
.sitefoot .foot-bottom { padding-top: 14px; padding-bottom: 22px; }
.sitefoot h4, .sitefoot a, .sitefoot strong { color: #fff7f2; }
.sitefoot a { opacity: .78; }
.sitefoot a:hover { opacity: 1; }

/* Auth pages stay simple */
body.auth-mode .sitefoot, body.auth-mode .announce, body.auth-mode .mainnav, body.auth-mode .topbar-actions, body.auth-mode .mobile-nav { display: none !important; }
body.auth-mode .topbar { max-width: 1180px; margin: 0 auto; border-bottom: 1px solid var(--line); }
body.auth-mode .auth-shell { min-height: calc(100vh - var(--header-h)); padding-top: 40px; padding-bottom: 60px; }
body.auth-mode .promo-backdrop, body.auth-mode .lead-pop { display: none !important; }

/* Agency additions */
.agency-audience, .agency-verify, .agency-compare { max-width: 1320px; margin: 0 auto; padding: 42px clamp(18px, 3vw, 36px); }
.audience-grid, .verify-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-top: 20px; }
.audience-grid article, .verify-grid article { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 18px; }
.audience-grid article > span, .verify-grid article > b { color: var(--coral-deep); font-size: 10px; letter-spacing: .12em; }
.audience-grid h3, .verify-grid h3 { font-size: 15px; margin: 7px 0 6px; }
.audience-grid p, .verify-grid p { font-size: 11.5px; color: var(--muted); line-height: 1.6; }
.verify-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.compare-agency { margin-top: 20px; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; background: var(--surface); }
.ca-head, .ca-row { display: grid; grid-template-columns: 1.1fr 1fr 1fr; gap: 12px; padding: 13px 16px; align-items: center; }
.ca-head { background: var(--surface-2); font-size: 11px; }
.ca-head .accent { color: var(--coral-deep); }
.ca-row { border-top: 1px solid var(--line); font-size: 11.5px; color: var(--muted); }
.ca-row span:first-child { color: var(--ink-soft); font-weight: 600; }
.ca-row span:last-child { color: var(--ink); }

/* Article pages: header contrast and alignment */
.article-page .topbar { gap: 18px; }
.article-page .topbar-actions { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.article-page .topbar-actions .account-chip { display: inline-flex; align-items: center; justify-content: center; min-height: 38px; padding: 0 12px; }
.article-page .topbar-actions .agency-cta { display: inline-flex; align-items: center; justify-content: center; min-height: 38px; }
.article-page .brand-word { color: var(--ink); }
.article-page .mainnav { margin-left: auto; margin-right: auto; }

@media (max-width: 1100px) {
  .mainnav { display: none; }
  .mobile-menu-btn { display: grid; }
}
@media (max-width: 860px) {
  .topbar { gap: 8px; }
  .brand-city { display: inline; font-size: 9px; }
  .brand-word { display: inline; font-size: 20px; }
  .topbar-actions { gap: 3px; }
  .topbar-actions .agency-cta { display: none; }
  .topbar-actions .account-chip span { display: none; }
  .topbar-actions .account-chip { width: 36px; padding: 0; justify-content: center; }
  .mobile-filter, .mobile-menu-btn { display: grid; }
  .mobile-menu {
    display: block; position: fixed; z-index: 260; top: 0; right: 0; bottom: 0;
    width: min(86vw, 340px); padding: 16px; background: var(--paper);
    box-shadow: var(--shadow-lg); transform: translateX(0);
  }
  .mobile-menu[hidden] { display: none; }
  .mobile-menu-head { display: flex; align-items: center; justify-content: space-between; padding-bottom: 14px; margin-bottom: 8px; border-bottom: 1px solid var(--line); }
  .mobile-menu a { display: flex; align-items: center; gap: 10px; padding: 13px 8px; border-bottom: 1px solid var(--line); font-size: 13px; font-weight: 600; }
  .mobile-menu a .ic { width: 18px; height: 18px; color: var(--coral-deep); }
  #mobileMenuBackdrop { z-index: 250; }
  .announce-long { display: none; }
  .announce-short { display: inline; }
  .announce-in { gap: 7px; }
  .announce-text { font-size: 10px; }
  .announce a { font-size: 10px; }
  .hero-agency { grid-template-columns: 1fr; gap: 20px; padding-top: 22px; }
  .hero h1 { font-size: clamp(36px, 10vw, 50px); }
  .hero p.sub { margin-top: 13px; font-size: 13.5px; }
  .hero-cta-row { margin-top: 18px; }
  .hero-main-cta, .hero-secondary-cta { flex: 1 1 auto; justify-content: center; }
  .hero-quick { margin-top: 16px; padding: 5px; gap: 5px; }
  .hero-deal { flex: 1 1 100%; }
  .hero-deal button { flex: 1; }
  .hero-select { flex: 1 1 calc(50% - 5px); min-width: 0; border-left: 0; border-top: 1px solid var(--line); padding: 7px 8px 0; display: grid; gap: 2px; }
  .hero-select span { font-size: 8px; }
  .hero-select select { max-width: none; font-size: 11px; }
  .hero-go { flex: 1 1 100%; margin-left: 0; justify-content: center; }
  .hero-chips { gap: 5px; margin-top: 10px; }
  .hchip { height: 30px; font-size: 10.5px; padding: 0 10px; }
  .hero-visual { margin-top: 4px; }
  .collage { height: 280px; border-radius: 22px; padding: 7px; gap: 6px; }
  .collage figure { border-radius: 16px; }
  .float-card { transform: scale(.86); transform-origin: bottom left; }
  .fc-count { left: -6px; bottom: 32px; }
  .fc-median { right: -8px; top: 30px; }
  .fc-agency { right: -4px; bottom: -12px; width: 210px; }
  .results-head { align-items: flex-start; gap: 8px; flex-wrap: wrap; }
  .results-controls { width: 100%; margin-left: 0; justify-content: space-between; gap: 5px; }
  .results-controls .deal-tabs { flex: 1 1 100%; display: flex; }
  .results-controls .deal-tabs button { flex: 1; }
  .results-controls .select { flex: 1 1 45%; }
  .results-controls .map-toggle { flex: 1 1 45%; }
  .cards { gap: 12px; }
  .card .media { height: auto; }
  .card .body { padding: 11px 12px 12px; }
  .card .card-price { font-size: 18px; }
  .card h3 { font-size: 13px; }
  .card .heart, .card .compare-check { width: 32px; height: 32px; }
  .card .compare-check { opacity: .92; }
  .filters-col { left: auto; right: 0; transform: translateX(102%); border-radius: 18px 0 0 18px; }
  .filters-col.open { transform: none; }
  .filter-block { padding: 9px 0; }
  .filter-actions .mobile-apply { display: inline-flex; }
  .map-col { height: 330px; min-height: 0; position: relative; top: auto; order: -1; }
  .map-toolbar { top: 8px; left: 8px; right: 8px; max-width: none; }
  .map-toolbar .btn { height: 30px; font-size: 10px; }
  .leaflet-bottom.leaflet-left { bottom: 8px; left: 8px; }
  .detail { padding: 10px 12px 56px; }
  .gallery { height: 300px; }
  .factstrip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .factstrip .fact { border-bottom: 1px solid var(--line); }
  .factstrip .fact:nth-child(2n) { border-right: 0; }
  .factstrip .fact:last-child { border-bottom: 0; }
  .detail-submeta { display: block; line-height: 1.7; }
  .detail-grid { gap: 18px; }
  .detail-side { display: flex; flex-direction: column; gap: 10px; }
  .detail-side .side-card + .side-card { margin-top: 0; }
  .price-big { font-size: 30px; }
  .detail-agency { margin-top: 0; }
  .similar-head { align-items: center; }
  .similar-track .card { flex-basis: 250px; min-width: 250px; }
  .audience-grid { grid-template-columns: 1fr 1fr; }
  .verify-grid { grid-template-columns: 1fr 1fr; }
  .ca-head, .ca-row { grid-template-columns: .9fr 1fr 1.1fr; gap: 7px; padding: 10px 11px; font-size: 10px; }
  .agency-hero-visual img { min-height: 260px; }
}
@media (max-width: 520px) {
  .brand-city { display: none; }
  .announce-in { padding: 0 8px; }
  .announce a { display: none; }
  .hero-quick { border-radius: 13px; }
  .hero-deal button { font-size: 10.5px; padding: 0 5px; }
  .hero-select select { font-size: 10.5px; }
  .hero-go { font-size: 10.5px; }
  .float-card { transform: scale(.76); }
  .fc-count { left: -12px; bottom: 22px; }
  .fc-median { right: -18px; top: 22px; }
  .fc-agency { width: 190px; right: -14px; bottom: -10px; }
  .collage { height: 235px; }
  .results-title h2 { font-size: 16px; }
  .results-controls .select, .results-controls .map-toggle { font-size: 10px; }
  .results-controls .map-toggle { padding: 0 8px; }
  .card .media { aspect-ratio: 4 / 3; }
  .card .body { padding: 10px 11px 11px; }
  .card .kicker { font-size: 8.5px; }
  .card h3 { font-size: 12.5px; min-height: 34px; }
  .card .addr { font-size: 10.5px; }
  .card .foot { font-size: 9.5px; }
  .card .heart, .card .compare-check { width: 30px; height: 30px; top: 7px; }
  .card .heart { right: 7px; }
  .card .compare-check { left: 7px; }
  .card .arrow { width: 28px; height: 28px; }
  .factstrip .fact b { font-size: 13px; }
  .agency-audience, .agency-verify, .agency-compare { padding: 28px 14px; }
  .audience-grid, .verify-grid { grid-template-columns: 1fr; }
  .ca-head, .ca-row { grid-template-columns: .8fr 1fr 1.25fr; }
}

/* Reports: editorial charts and source transparency */
.report-audience { margin: 0 0 22px; padding: 16px 18px; border-left: 3px solid var(--coral); background: var(--surface-2); border-radius: 0 14px 14px 0; }
.report-audience p { margin: 5px 0 0; font-size: 13px; color: var(--muted); }
.report-audience strong { color: var(--ink); }
.report-kpis { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 8px; margin: 22px 0 26px; }
.report-kpis > div { border: 1px solid var(--line); border-radius: 14px; padding: 13px 14px; background: var(--surface); }
.report-kpis b { display: block; font-family: var(--ff-display); font-size: 24px; letter-spacing: -.04em; }
.report-kpis span { display: block; font-size: 10px; color: var(--muted); line-height: 1.35; margin-top: 3px; }
.chart-card { margin: 26px 0 30px; padding: 18px 18px 12px; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); }
.chart-card figcaption { margin-bottom: 8px; }
.chart-card h3 { font-size: 17px; letter-spacing: -.02em; margin: 3px 0 0; }
.chart-kicker { display: block; color: var(--coral-deep); font-size: 9px; letter-spacing: .13em; text-transform: uppercase; font-weight: 700; }
.chart { width: 100%; height: auto; display: block; overflow: visible; }
.chart .grid { stroke: var(--line); stroke-width: 1; }
.chart .axis { fill: var(--muted); font-size: 10px; }
.chart .axis.strong { fill: var(--ink-soft); font-size: 10px; }
.chart .val { fill: var(--ink); font-family: var(--ff-display); font-size: 10px; font-weight: 700; }
.chart .range { stroke: var(--coral); stroke-width: 7; stroke-linecap: round; opacity: .28; }
.chart .median-dot { fill: var(--coral); stroke: #fff; stroke-width: 1.5; }
.chart .bar { fill: var(--coral); opacity: .82; }
.chart .line-path { fill: none; stroke: var(--coral); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.chart-note { font-size: 10px; color: var(--muted); line-height: 1.45; margin: 8px 0 0; }
.donut .donut-immediate { stroke: #F2644C; }
.donut .donut-dated { stroke: #C97B63; }
.donut .donut-other { stroke: #E7B5A2; }
.donut .donut-unknown { stroke: #D8CFC8; }
.donut .donut-total { fill: var(--ink); font-family: var(--ff-display); font-size: 30px; font-weight: 800; }
.donut .donut-label { fill: var(--muted); font-size: 10px; }
.donut .legend-label { fill: var(--ink-soft); font-size: 12px; }
.donut .legend-val { fill: var(--ink); font-family: var(--ff-display); font-size: 13px; font-weight: 700; }
.donut .legend-immediate { fill: #F2644C; }
.donut .legend-dated { fill: #C97B63; }
.donut .legend-other { fill: #E7B5A2; }
.donut .legend-unknown { fill: #D8CFC8; }
.map-chart .map-bg { fill: var(--surface-2); }
.map-chart .map-grid { stroke: var(--line); stroke-width: 1; opacity: .65; }
.map-chart .map-dot { opacity: .8; }
.map-chart .map-dot.low { fill: #F2644C; }
.map-chart .map-dot.mid { fill: #D59B7D; }
.map-chart .map-dot.high { fill: #6B4A3E; }
.map-chart .map-label { fill: var(--muted); font-size: 10px; }
.cite { display: inline-flex; align-items: center; justify-content: center; min-width: 16px; height: 16px; margin-left: 3px; padding: 0 4px; border-radius: 999px; background: var(--surface-2); color: var(--coral-deep); font-size: 8px; font-weight: 700; vertical-align: super; text-decoration: none; }
.cite:hover { background: var(--blush); }
.related-reports { margin: 34px 0 0; padding-top: 22px; border-top: 1px solid var(--line); }
.related-reports h2 { font-size: 19px; margin-bottom: 10px; }
.related-reports > div { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 8px; }
.related-reports a { display: block; border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; background: var(--surface); }
.related-reports a b { display: block; font-size: 12px; }
.related-reports a span { display: block; font-size: 10.5px; color: var(--muted); margin-top: 3px; }
@media (max-width: 760px) {
  .report-kpis { grid-template-columns: 1fr 1fr; }
  .chart-card { margin-left: -4px; margin-right: -4px; padding: 14px 8px 10px; }
  .related-reports > div { grid-template-columns: 1fr; }
  .article-page .mainnav { display: none; }
  .article-page .topbar-actions .account-chip span { display: none; }
  .article-page .topbar-actions .agency-cta { padding: 0 11px; font-size: 11px; }
  .article-page .topbar { gap: 8px; }
}
