/* Town market reports (market.html, js/market-report.js) */
.mk { background: #f6f7fb; padding: 0 0 56px; }
.mk .wrap { max-width: 1080px; }
.mk-brand { padding: 22px 0 6px; }
.mk-brand .rb { flex-wrap: wrap; }
.mk-hero { padding: 28px 0 18px; }
.mk-kicker { margin: 0 0 6px; font-size: .8rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--red, #c8102e); }
.mk-hero h1 { margin: 0 0 8px; font-size: clamp(2rem, 5vw, 3.2rem); line-height: 1.05; color: var(--navy, #1b2550); }
.mk-hero p { margin: 0; max-width: 640px; font-size: 1.08rem; color: var(--muted, #5a6480); }
.mk-find { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 18px; max-width: 560px; }
.mk-find input { flex: 1 1 240px; min-height: 48px; padding: 0 14px; border: 1.5px solid var(--line, #dfe3ec); border-radius: 10px; font: inherit; }
.mk-towns { list-style: none; padding: 0; margin: 10px 0 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(220px, 100%), 1fr)); gap: 12px; }
.mk-towns a { display: grid; gap: 2px; padding: 16px 18px; background: #fff; border: 1px solid var(--line, #dfe3ec); border-radius: 12px; text-decoration: none; color: var(--navy, #1b2550); }
.mk-towns a:hover { border-color: var(--blue, #3b54a5); box-shadow: 0 4px 16px rgba(27, 37, 80, .08); }
.mk-towns span { color: var(--muted, #5a6480); font-size: .92rem; }
.mk-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(132px, 100%), 1fr)); gap: 10px; margin: 6px 0 18px; }
.mk-tile { background: #fff; border: 1px solid var(--line, #dfe3ec); border-radius: 14px; padding: 16px; display: grid; gap: 4px; align-content: start; }
.mk-tl { font-size: .8rem; font-weight: 700; color: var(--muted, #5a6480); text-transform: uppercase; letter-spacing: .04em; }
.mk-tv { font-size: 1.5rem; line-height: 1.1; color: var(--navy, #1b2550); font-variant-numeric: tabular-nums; }
.mk-tile small { color: var(--muted, #5a6480); line-height: 1.35; }
.mk-grid { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 16px; }
@media (max-width: 820px) { .mk-grid { grid-template-columns: 1fr; } }
.mk-card { background: #fff; border: 1px solid var(--line, #dfe3ec); border-radius: 14px; padding: 18px 20px; margin-bottom: 16px; }
.mk-card h2 { margin: 0 0 12px; font-size: 1.15rem; color: var(--navy, #1b2550); }
.mk-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.mk-chart { width: 100%; height: auto; display: block; }
.mk-bar { fill: var(--blue, #3b54a5); } .mk-bar0 { fill: #dfe3ec; }
.mk-val { font-size: 13px; font-weight: 700; fill: var(--navy, #1b2550); } .mk-lab { font-size: 12px; fill: #5a6480; }
.mk-bands { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.mk-bands th, .mk-bands td { padding: 9px 4px; border-bottom: 1px solid var(--line, #dfe3ec); text-align: left; }
.mk-bands th { font-size: .8rem; color: var(--muted, #5a6480); text-transform: uppercase; letter-spacing: .04em; }
.mk-bands .num { text-align: right; }
.mk-homes { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(190px, 100%), 1fr)); gap: 12px; }
.mk-homes a { display: grid; gap: 3px; text-decoration: none; color: var(--navy, #1b2550); }
.mk-ph { display: block; aspect-ratio: 4 / 3; border-radius: 10px; overflow: hidden; background: #e8ebf3; }
.mk-ph img { width: 100%; height: 100%; object-fit: cover; display: block; }
.mk-homes span { color: var(--muted, #5a6480); font-size: .9rem; } .mk-homes small { color: var(--red, #c8102e); font-weight: 700; }
.mk-vendors { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(220px, 100%), 1fr)); gap: 10px 18px; }
.mk-vendors li { display: grid; gap: 2px; } .mk-vendors span, .mk-vendors small { color: var(--muted, #5a6480); font-size: .9rem; }
.mk-cta { display: flex; justify-content: space-between; align-items: center; gap: 18px; flex-wrap: wrap; padding: 22px 24px; border-radius: 16px; background: linear-gradient(120deg, #1b2550, #3b54a5); color: #fff; margin: 8px 0 14px; }
.mk-cta h2 { margin: 0 0 6px; color: #fff; } .mk-cta p { margin: 0; opacity: .9; max-width: 560px; }
.mk-cta-btns { display: flex; gap: 10px; flex-wrap: wrap; }
.mk-cta .btn-outline { color: #fff; border-color: rgba(255, 255, 255, .7); background: transparent; }
.mk-pros { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 8px; }
.mk-pros a { display: block; text-decoration: none; color: inherit; background: rgba(255, 255, 255, .95); border-radius: 12px; padding: 8px 12px; color: var(--navy, #1b2550); }
.mk-note { color: var(--muted, #5a6480); font-size: .88rem; max-width: 760px; }
.mk-more a { font-weight: 700; }
.mk-empty { padding: 48px 0; }
.mk-chart-wrap { overflow-x: auto; } @media (max-width: 640px) { .mk-chart { min-width: 560px; } }
/* Grid and cards never grow past the screen; the chart scrolls inside its card on a phone. */
.mk-grid > *, .mk-card { min-width: 0; } .mk { overflow-x: hidden; }
@media (max-width: 640px) { .mk-chart { min-width: 480px; } .mk-chart-wrap { margin: 0 -6px; padding-bottom: 4px; } }
