/* FloridaE2.biz — layout on top of ../../assets/tokens.css.
   No new colors introduced; everything below uses the existing token set. */

* { box-sizing: border-box; }
body { max-width: 1180px; margin: 0 auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }

/* ── top bar ─────────────────────────────────────────────────────────── */
.biz-topbar__inner {
  display: flex; align-items: center; gap: 18px;
  padding: 12px 20px;
}
.biz-brand { margin-right: auto; text-decoration: none; }
.biz-topnav { display: flex; gap: 4px; }
.biz-topnav .navlink.is-active { color: var(--walnut); background: var(--chrome-accent); }
.biz-locale select {
  background: var(--chrome-bg-2); color: var(--chrome-text); border-color: var(--chrome-border);
}

/* ── hero ────────────────────────────────────────────────────────────── */
.biz-hero { text-align: center; padding: 40px 20px 24px; }
.biz-hero h1 { font-size: 34px; }
.biz-hero__tagline { font-size: 17px; color: var(--text-muted); max-width: 640px; margin: 0 auto 18px; }
.biz-pills { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-bottom: 10px; }
.biz-pill {
  background: var(--surface-2); border: 1px solid var(--border); border-radius: 999px;
  padding: 7px 14px; font-size: 13px; color: var(--text);
}
.biz-pill strong { color: var(--heading); }
.biz-hero__updated { font-size: 12px; color: var(--text-muted); margin: 6px 0 0; }

/* ── region grid / map ───────────────────────────────────────────────── */
.biz-map-section { padding: 8px 20px 28px; }
.biz-map-section h2 { text-align: center; font-size: 20px; margin-bottom: 16px; }
.biz-region-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px;
}
@media (max-width: 720px) { .biz-region-grid { grid-template-columns: repeat(2, 1fr); } }
.biz-region-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 7px 14px; cursor: pointer; text-align: left; font-family: var(--font-ui);
  box-shadow: var(--shadow);
  display: flex; align-items: baseline; justify-content: space-between; gap: 8px;
}
.biz-region-card:hover { border-color: var(--accent); }
.biz-region-card.is-active { background: var(--surface-2); border-color: var(--accent-strong); }
.biz-region-card__name { font-weight: 700; color: var(--heading); font-size: 13px; }
.biz-region-card__count { font-family: var(--font-data); color: var(--accent-strong); font-size: 12px; flex: none; }
.biz-county-chips { margin-top: 14px; display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; }
.biz-county-chip {
  font-size: 12px; padding: 4px 10px; border-radius: 999px; border: 1px solid var(--border);
  background: var(--surface); cursor: pointer; color: var(--text-muted);
}
.biz-county-chip.is-active { background: var(--accent); color: var(--walnut); border-color: var(--accent); }

/* ── filter bar ──────────────────────────────────────────────────────── */
.biz-filter-bar {
  display: flex; flex-wrap: wrap; align-items: end; gap: 14px;
  margin: 0 20px 18px;
}
.biz-filter-group { display: flex; flex-direction: column; gap: 4px; min-width: 140px; }
.biz-favorites-toggle { flex-direction: row; align-items: center; gap: 6px; min-width: auto; }
.biz-favorites-toggle input { width: auto; }
.biz-result-count { margin-left: auto; font-size: 13px; color: var(--text-muted); align-self: center; }

/* ── master-detail browse ───────────────────────────────────────────── */
.biz-browse { display: grid; grid-template-columns: 380px 1fr; gap: 18px; margin: 0 20px 40px; align-items: start; }
@media (max-width: 768px) { .biz-browse { grid-template-columns: 1fr; } }

.biz-list { display: flex; flex-direction: column; gap: 8px; max-height: 70vh; overflow-y: auto; }
.biz-list-row {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 10px 34px 10px 14px; cursor: pointer; position: relative;
}
.biz-list-row:hover { border-color: var(--accent); }
.biz-list-row.is-selected { background: var(--surface-2); border-color: var(--accent-strong); }
.biz-list-row__main { min-width: 0; margin-bottom: 6px; }
.biz-list-row__title {
  font-weight: 600; color: var(--heading); font-size: 13px; display: block;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.biz-list-row__meta { font-size: 11px; color: var(--text-muted); }
.biz-list-row__nums {
  display: flex; gap: 4px;
  font-family: var(--font-data); color: var(--text);
}
.biz-list-row__nums > div { flex: 1; min-width: 0; }
.biz-list-row__stat-label {
  display: block; font-size: 8px; text-transform: uppercase; letter-spacing: .02em;
  color: var(--text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.biz-list-row__stat-value {
  font-size: 11px; color: var(--heading); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block;
}
.biz-fav-btn {
  background: none; border: none; cursor: pointer; font-size: 16px; line-height: 1;
  color: var(--border); padding: 2px; position: absolute; top: 8px; right: 8px;
}
.biz-fav-btn.is-fav { color: var(--accent-strong); }

.biz-detail { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
  box-shadow: var(--shadow); padding: 22px; min-height: 200px; position: sticky; top: 14px; }
.biz-detail--standalone { position: static; max-width: 720px; margin: 0 20px; }
.biz-detail__empty { color: var(--text-muted); }
.biz-detail h3 { margin-bottom: 4px; }
.biz-detail__meta { color: var(--text-muted); font-size: 13px; margin-bottom: 14px; }
.biz-detail__stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-bottom: 16px; }
.biz-stat { background: var(--surface-2); border-radius: 8px; padding: 8px 8px; }
.biz-stat__label { display: block; font-size: 10px; text-transform: uppercase; letter-spacing: .06em; color: var(--text-muted); }
.biz-stat__value { font-family: var(--font-data); font-size: 15px; color: var(--heading); }
/* Combined cell holding SDE multiple + P/R ratio side by side, so the 5th
   stat shares row 1 instead of wrapping onto its own line. */
.biz-stat--split { display: flex; gap: 6px; }
.biz-stat--split > div { flex: 1; min-width: 0; }
.biz-stat--split .biz-stat__label { font-size: 9px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.biz-stat--split .biz-stat__value { font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; }
.biz-detail__caveat { background: var(--surface-2); border-left: 3px solid var(--warn); padding: 8px 12px; font-size: 13px; margin-bottom: 14px; }
.biz-detail__desc { font-size: 14px; line-height: 1.6; color: var(--text); }
.biz-detail__actions { margin-top: 16px; display: flex; gap: 10px; }

/* ── detail-card sections added for rich/BBF data + benchmark ruler ──── */
.biz-detail__section { margin-bottom: 16px; padding-top: 14px; border-top: 1px solid var(--border); }
.biz-detail__section h4 {
  font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--text-muted);
  margin: 0 0 8px;
}
.biz-detail__section-sub { font-size: 12px; color: var(--text-muted); margin: 4px 0 0; }

/* ruler */
/* two rulers (SDE multiple + P/R ratio) side by side on one line, each
   getting a shorter track since there's now half the width to share
   (2026-06-21 — Price/SDE/Revenue rulers dropped as not meaningful across
   small vs. large businesses doing the same job). */
.biz-ruler-row { display: flex; gap: 16px; }
.biz-ruler-row .biz-ruler { flex: 1 1 0; min-width: 0; }
.biz-ruler { margin-bottom: 12px; }
.biz-ruler:last-of-type { margin-bottom: 4px; }
.biz-ruler__head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 4px; }
.biz-ruler__label { font-size: 11px; color: var(--text-muted); text-transform: uppercase; letter-spacing: .04em; }
.biz-ruler__value { font-family: var(--font-data); font-size: 13px; color: var(--heading); font-weight: 700; }
.biz-ruler__track {
  position: relative; height: 8px; border-radius: 4px; background: var(--surface-2);
  border: 1px solid var(--border); overflow: visible;
}
.biz-ruler__band {
  position: absolute; left: 25%; width: 50%; top: 0; bottom: 0;
  background: var(--accent); opacity: .25; border-radius: 4px;
}
.biz-ruler__center {
  position: absolute; left: 50%; top: -2px; bottom: -2px; width: 2px;
  background: var(--border); transform: translateX(-1px);
}
.biz-ruler__marker {
  position: absolute; top: 50%; width: 12px; height: 12px; border-radius: 50%;
  background: var(--accent-strong); border: 2px solid var(--surface);
  transform: translate(-50%, -50%); box-shadow: 0 1px 3px rgba(0,0,0,.3);
}
.biz-ruler__marker--over, .biz-ruler__marker--under { background: var(--warn); }
.biz-ruler__foot { font-size: 10px; color: var(--text-muted); margin-top: 4px; }

/* asset table / financing */
.biz-asset-row {
  display: flex; align-items: center; gap: 8px; padding: 5px 0;
  border-bottom: 1px solid var(--border); font-size: 13px;
}
.biz-asset-row:last-child { border-bottom: none; }
.biz-asset-row__label { color: var(--text); flex: 1; min-width: 0; }
.biz-asset-row__amount { font-family: var(--font-data); color: var(--heading); white-space: nowrap; }
.biz-asset-row__status {
  font-size: 10px; text-transform: uppercase; letter-spacing: .03em; padding: 2px 7px;
  border-radius: 999px; background: var(--surface-2); color: var(--text-muted); white-space: nowrap;
}
.biz-asset-row__status--included { background: var(--ok); color: var(--walnut); }
.biz-asset-row__status--not_included { background: var(--surface-2); color: var(--text-muted); }
.biz-asset-row__status--available_separately { background: var(--accent); color: var(--walnut); }
.biz-asset-row--total { font-weight: 700; }
.biz-asset-row--total .biz-asset-row__label, .biz-asset-row--total .biz-asset-row__amount { color: var(--heading); }
.biz-asset-row--financing { border-bottom: none; padding-top: 10px; margin-top: 4px; border-top: 1px dashed var(--border); }

/* broker flags + franchise chips */
.biz-flag-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.biz-flag-chip {
  font-size: 11px; padding: 4px 10px; border-radius: 999px; border: 1px solid var(--border);
  background: var(--surface-2); color: var(--text-muted);
}
.biz-flag-chip.is-true { background: var(--accent); color: var(--walnut); border-color: var(--accent); font-weight: 600; }

/* ── about ───────────────────────────────────────────────────────────── */
.biz-about { max-width: 640px; margin: 30px auto; padding: 30px; }
.biz-about__photo { width: 140px; height: 140px; object-fit: cover; border-radius: 50%; display: block; margin: 0 auto 18px; filter: grayscale(1); }
.biz-about__factsheet ul { padding-left: 18px; color: var(--text); font-size: 14px; line-height: 1.7; }
.biz-about__strix-note { font-size: 12px; color: var(--text-muted); }
.biz-about__cta { display: inline-block; margin-top: 10px; }

/* ── footer / impressum ──────────────────────────────────────────────── */
.biz-footer { text-align: center; padding: 24px 20px 40px; }
.biz-impressum { font-size: 11px; color: var(--text-muted); line-height: 1.6; }

.biz-back { margin: 16px 20px; }

/* ── badges (reuse tokens.css badge classes via JS) ─────────────────── */
