/* /public/assets/css/region.css */

.qmk-reg { width: min(1150px, calc(100% - 28px)); margin: 0 auto; padding: 18px 0 44px; }

/* Make sure everything stays light even if global theme is dark */
body.qmk-region,
body.qmk-region main,
body.qmk-region .page,
body.qmk-region .wrap,
body.qmk-region .qmk-wrap,
body.qmk-region #app,
body.qmk-region footer {
  background: #fff !important;
  color: #111 !important;
}

.qmk-sub2 { display:inline-block; margin-left: 6px; color: rgba(0,0,0,.55); }

.qmk-reg-kpis {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  padding: 12px;
  margin: 14px 0;
}

.qmk-kpi { border: 1px solid rgba(0,0,0,.10); border-radius: 14px; padding: 10px 12px; background: rgba(0,0,0,.02); }
.qmk-kpi__k { font-size: 12px; color: rgba(0,0,0,.60); }
.qmk-kpi__v { font-size: 18px; margin-top: 6px; }

.qmk-reg-insights { margin-top: 14px; }
.qmk-ins { padding: 12px 14px; }
.qmk-ins p { margin: 0 0 10px; line-height: 1.5; }
.qmk-ins p:last-child { margin-bottom: 0; }

.qmk-reg-grid { display: grid; grid-template-columns: 1.2fr .9fr; gap: 14px; margin-top: 14px; }

.qmk-cardhead { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 12px 14px; border-bottom: 1px solid rgba(0,0,0,.08); }
.qmk-ctitle { font-weight: 800; letter-spacing: -0.01em; }
.qmk-csub { margin-top: 4px; font-size: 12px; color: rgba(0,0,0,.55); }

.qmk-empty { padding: 12px 14px; color: rgba(0,0,0,.55); font-size: 13px; }

/* Map must have height + visible Leaflet layers */
.qmk-map { height: 420px; width: 100%; background: #f6f7f9; border-radius: 14px; overflow: hidden; }
.qmk-map .leaflet-container { background: #f6f7f9; }

.qmk-hl { padding: 12px 14px; }
.qmk-hl__k { font-size: 12px; color: rgba(0,0,0,.60); }
.qmk-hl__v { margin-top: 6px; font-size: 16px; font-weight: 800; }

.qmk-link { color: #0b57d0; text-decoration: none; }
.qmk-link:hover { text-decoration: underline; }
.qmk-dim { color: rgba(0,0,0,.55); }
.qmk-dot { opacity: .55; margin: 0 4px; }
.qmk-chev { opacity: .6; }

.qmk-list { padding: 6px 0; }
.qmk-row {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; padding: 10px 14px;
  color: inherit; text-decoration: none;
}
.qmk-row:hover { background: rgba(0,0,0,.03); }

.qmk-row__l { display:flex; align-items:center; gap:10px; min-width:0; }
.qmk-row__main { min-width:0; }
.qmk-row__t { font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.qmk-row__m { margin-top: 2px; font-size: 12px; color: rgba(0,0,0,.55); display: flex; gap: 6px; flex-wrap: wrap; }

.qmk-badge {
  min-width: 44px;
  text-align: center;
  padding: 6px 8px;
  border-radius: 999px;
  font-weight: 800;
  background: rgba(0,0,0,.06);
  border: 1px solid rgba(0,0,0,.10);
}

@media (max-width: 980px) {
  .qmk-reg-grid { grid-template-columns: 1fr; }
  .qmk-reg-kpis { grid-template-columns: 1fr; }
  .qmk-map { height: 360px; }
}
