/* Building hub v3 — shared stylesheet.
 *
 * audit v2 F10: extracted verbatim from the inline <style> block in
 * value/includes/building_hub_v3.php. It contains no per-building values (the block
 * had zero PHP interpolation), so inlining it shipped the same 12 KB on every one of
 * ~22 000 hub pages and re-downloaded it on every navigation between them. Served
 * fingerprinted and long-cached instead.
 */
/* Estiq-oriented palette: dark ink + clean white surfaces + restrained green/teal data accents. */
:root {
 --ink:#111827;--ink2:#25313d;--muted:#697586;--line:#e7eaee;
 --bg:#f7f8fa;--surface:#fff;--soft:#f0f5f2;--brand:#123b2a;
 --brand2:#2d7052;--brand3:#dfeee6;--blue:#2f668d;
 --warning:#8a641d;--warningbg:#fbf4df;--danger:#8a4141;--dangerbg:#faecec;
 --shadow:0 12px 35px rgba(17,24,39,.06);--radius:16px
}
.v3-root { font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; color: var(--ink); }
.v3-root * { box-sizing: border-box; }
.v3-root a { text-decoration: none; color: inherit; }
.v3-wrap { max-width: 1180px; margin: auto; padding: 0 22px; }

.v3-btn { border: 1px solid var(--line); background: #fff; border-radius: 10px; padding: 10px 14px; font-weight: 750; cursor: pointer; transition: all .15s ease; display: inline-flex; align-items: center; justify-content: center; }
.v3-btn:hover { background: #f3f4f6; }
.v3-btn.primary { background: var(--brand); border-color: var(--brand); color: #fff; }
.v3-btn.primary:hover { background: #0c281d; color: #fff; }
.v3-btn.ghost { background: var(--soft); border-color: transparent; color: var(--brand); }
.v3-btn.ghost:hover { background: #e2ece6; }

.v3-crumb { font-size: 12px; color: var(--muted); padding: 16px 0 8px; }
.v3-crumb a { color: var(--muted); }
.v3-crumb a:hover { color: var(--brand2); text-decoration: underline; }
.v3-crumb span { color: var(--ink); font-weight: 700; }

.v3-hero { padding: 10px 0 28px; }
.v3-heroGrid { display: grid; grid-template-columns: 1.18fr .82fr; gap: 20px; align-items: stretch; }
.v3-root h1 { font-size: 40px; line-height: 1.05; letter-spacing: -.045em; margin: 8px 0 8px; font-weight: 850; color: var(--ink); }
.v3-lead { font-size: 17px; color: var(--muted); max-width: 730px; margin: 0 0 18px; }

.v3-badges { display: flex; flex-wrap: wrap; gap: 7px; margin: 15px 0; }
.v3-badge { border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 6px 10px; font-size: 12px; }
.v3-badge.ok { background: var(--brand3); color: var(--brand); border-color: #cfe2d7; }
.v3-badge.link { cursor: pointer; transition: all .15s; }
.v3-badge.link:hover { border-color: var(--brand2); color: var(--brand2); }

.v3-heroActions { display: flex; gap: 9px; flex-wrap: wrap; margin-top: 18px; }
.v3-valueCard { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 23px; box-shadow: var(--shadow); display: flex; flex-direction: column; justify-content: space-between; }
.v3-kicker { font-size: 10px; text-transform: uppercase; letter-spacing: .1em; font-weight: 850; color: var(--muted); }
.v3-big { font-size: 40px; font-weight: 850; letter-spacing: -.045em; margin: 2px 0; }
.v3-subvalue { font-weight: 750; color: var(--brand2); }
.v3-disclaimer { font-size: 11px; color: var(--muted); }

.v3-miniGrid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 19px; padding-top: 17px; border-top: 1px solid var(--line); }
.v3-mini strong { font-size: 20px; display: block; }
.v3-mini small { color: var(--muted); }

.v3-scoreline { margin-top: 18px; }
.v3-scoretop { display: flex; justify-content: space-between; font-weight: 750; }
.v3-track { height: 8px; background: #edf0f1; border-radius: 99px; overflow: hidden; margin-top: 7px; }
.v3-track i { display: block; height: 100%; width: 100%; background: var(--brand2); }

.v3-section { scroll-margin-top: 115px; padding: 25px 0; }
.v3-sectionHead { display: flex; justify-content: space-between; gap: 20px; align-items: end; margin-bottom: 15px; }
.v3-sectionHead h2 { font-size: 25px; line-height: 1.15; letter-spacing: -.03em; margin: 0; font-weight: 800; }
.v3-sectionHead p { margin: 5px 0 0; color: var(--muted); font-size: 14px; }

.v3-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 19px; box-shadow: var(--shadow); }
.v3-split { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }
.v3-twoThird { display: grid; grid-template-columns: 1.35fr .65fr; gap: 15px; }
.v3-insight { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.v3-insight > div { padding: 14px; border-radius: 12px; background: var(--soft); }
.v3-insight b { display: block; margin-bottom: 5px; font-weight: 750; }
.v3-insight p { margin: 0; color: var(--muted); font-size: 13px; }

.v3-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.v3-table th, .v3-table td { text-align: left; padding: 11px 9px; border-bottom: 1px solid var(--line); vertical-align: top; }
.v3-table th { font-size: 10px; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); }
.v3-table tr:last-child td { border-bottom: 0; }

.v3-highlight { background: var(--soft); border: 1px solid #d9e9df; border-radius: 12px; padding: 13px; }
.v3-highlight b { color: var(--brand); }

/* Interactive Calculator */
.v3-calc { display: grid; grid-template-columns: 1.1fr .9fr; gap: 18px; }
.v3-control { margin-bottom: 16px; }
.v3-control label { display: block; font-size: 12px; font-weight: 750; margin-bottom: 7px; }
.v3-options { display: flex; flex-wrap: wrap; gap: 7px; }
.v3-opt { padding: 9px 11px; border: 1px solid var(--line); border-radius: 9px; background: #fff; font-size: 12px; cursor: pointer; user-select: none; transition: all .15s; }
.v3-opt:hover { border-color: var(--muted); }
.v3-opt.active { border-color: var(--brand2); background: var(--brand3); color: var(--brand); font-weight: 800; }
.v3-opt.btn-step { font-weight: 800; min-width: 32px; text-align: center; }

.v3-result { background: var(--brand); color: #fff; border-radius: 15px; padding: 22px; display: flex; flex-direction: column; justify-content: center; }
.v3-result .v3-big { font-size: 43px; }
.v3-result .v3-muted { color: #d4e2da; font-size: 13px; }
.v3-resultGrid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 18px; }
.v3-resultBox { background: rgba(255,255,255,.09); padding: 12px; border-radius: 10px; }
.v3-resultBox small { color: #cbdcd2; }
.v3-resultBox b { display: block; font-size: 18px; }

/* Trend & Bars */
.v3-bars { display: grid; gap: 13px; }
.v3-barrow { display: grid; grid-template-columns: 145px 1fr 65px; align-items: center; gap: 10px; font-size: 12px; }
.v3-barbg { height: 9px; background: #edf0f1; border-radius: 99px; overflow: hidden; }
.v3-barbg i { display: block; height: 100%; background: var(--brand2); }
.v3-chart { height: 230px; border: 1px solid var(--line); border-radius: 12px; padding: 14px; display: flex; align-items: end; gap: 12px; background: linear-gradient(#fff,#fbfcfb); }
.v3-col { flex: 1; background: var(--brand3); border-radius: 6px 6px 2px 2px; position: relative; transition: height .3s; }
.v3-col b { position: absolute; bottom: 100%; font-size: 10px; color: var(--muted); margin-bottom: 4px; white-space: nowrap; left: 50%; transform: translateX(-50%); }
.v3-axis { display: flex; justify-content: space-between; color: var(--muted); font-size: 10px; margin-top: 7px; }

/* Interactive Map & Proximity */
#v3-map-component { height: 100%; min-height: 310px; border-radius: 14px; border: none; z-index: 10; }
.v3-map-toolbar { position: absolute; top: 10px; right: 10px; z-index: 1000; display: flex; gap: 5px; }
.v3-map-btn { background: #fff; border: 1px solid var(--line); border-radius: 6px; padding: 4px 8px; font-size: 11px; font-weight: 700; cursor: pointer; box-shadow: 0 2px 6px rgba(0,0,0,0.15); }
.v3-map-btn.active { background: var(--brand); color: #fff; border-color: var(--brand); }
.v3-poi-tabs { display: flex; gap: 6px; overflow-x: auto; padding: 2px 2px 8px; margin-bottom: 8px; scrollbar-width: none; }
.v3-poi-tabs::-webkit-scrollbar { display: none; }
.v3-poi-tab { background: #f1f5f9; border: 1px solid var(--line); border-radius: 20px; padding: 4px 10px; font-size: 11px; font-weight: 650; cursor: pointer; color: var(--ink2); white-space: nowrap; transition: all .15s ease; user-select: none; }
.v3-poi-tab:hover { background: #e2e8f0; color: var(--ink); }
.v3-poi-tab.active { background: var(--brand); color: #fff; border-color: var(--brand); }
.v3-prox { display: flex; flex-direction: column; gap: 7px; max-height: 380px; overflow-y: auto; padding-right: 4px; }
.v3-prox::-webkit-scrollbar { width: 4px; }
.v3-prox::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 4px; }
.v3-prox div { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 8px 10px; border: 1px solid var(--line); cursor: pointer; border-radius: 10px; background: #fff; transition: all .15s; }
.v3-prox div:hover { border-color: var(--brand); transform: translateY(-1px); box-shadow: 0 3px 8px rgba(0,0,0,0.04); }
.v3-prox div.active { border-color: var(--brand); background: #f0f7f3; }
.v3-prox span { color: var(--muted); font-size: 11.5px; flex-shrink: 0; }

/* Scorecard */
.v3-scoregrid { display: grid; grid-template-columns: 1fr 1fr; gap: 11px; }
.v3-scoreItem { padding: 14px; border: 1px solid var(--line); border-radius: 12px; }
.v3-scoreItem .line { display: flex; justify-content: space-between; gap: 10px; }
.v3-scoreItem strong { font-size: 19px; }
.v3-scoreItem p { font-size: 12px; color: var(--muted); margin: 7px 0; }
.v3-weight { font-size: 10px; color: var(--muted); }
.v3-pill { display: inline-block; padding: 4px 8px; border-radius: 999px; background: var(--brand3); color: var(--brand); font-size: 10px; font-weight: 800; }

/* Demographics */
.v3-population { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.v3-metric { margin: 12px 0; }
.v3-metricTop { display: flex; justify-content: space-between; font-size: 12px; }
.v3-metricTrack { height: 8px; background: #edf0f1; border-radius: 99px; overflow: hidden; margin-top: 5px; }
.v3-metricTrack i { display: block; height: 100%; background: var(--blue); }

/* Specs */
.v3-specs { display: grid; grid-template-columns: repeat(3,1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.v3-spec { background: #fff; padding: 14px; }
.v3-spec small { color: var(--muted); display: block; font-size: 11px; }
.v3-spec b { display: block; margin-top: 2px; font-size: 14px; }

/* Audit */
.v3-audit { display: grid; grid-template-columns: repeat(2,1fr); gap: 10px; }
.v3-auditItem { border: 1px solid var(--line); border-radius: 12px; padding: 14px; }
.v3-auditItem h3 { font-size: 14px; margin: 0 0 6px; font-weight: 750; }
.v3-auditItem p { margin: 0; color: var(--muted); font-size: 12px; }

/* FAQ */
.v3-faq details { border-top: 1px solid var(--line); padding: 14px 0; }
.v3-faq details:first-child { border-top: 0; }
.v3-faq summary { font-weight: 750; cursor: pointer; }
.v3-faq p { color: var(--muted); font-size: 13px; margin: 8px 0 0; }

/* CTA & Form */
.v3-cta { background: var(--brand); color: #fff; border-radius: 18px; padding: 24px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.v3-cta h2 { margin: 0; font-size: 23px; color: #fff; font-weight: 800; }
.v3-cta p { margin: 5px 0 0; color: #d7e5dc; }
.v3-form { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.v3-form input, .v3-form textarea { width: 100%; padding: 11px; border: 1px solid var(--line); border-radius: 9px; font: inherit; }
.v3-form textarea { min-height: 90px; grid-column: 1/-1; }

.v3-search-input { width: 100%; max-width: 280px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 8px; font-size: 12px; }

@media(max-width:900px){
 .v3-heroGrid, .v3-calc, .v3-twoThird { grid-template-columns: 1fr; }
 .v3-split { grid-template-columns: 1fr; }
}
@media(max-width:600px){
 .v3-wrap { padding: 0 15px; }
 .v3-root h1 { font-size: 32px; }
 .v3-scoregrid, .v3-population, .v3-audit, .v3-specs { grid-template-columns: 1fr 1fr; }
 .v3-sectionHead { display: block; }
 .v3-sectionHead .btn { margin-top: 12px; }
 .v3-cta { align-items: flex-start; flex-direction: column; }
 .v3-form { grid-template-columns: 1fr; }
}