:root {
  --background: #f5f6f8;
  --surface: #ffffff;
  --foreground: #22252b;
  --muted: #68707c;
  --border: #d9dde3;
  --purple: #a72bc4;
  --purple-soft: #f3e6f6;
  --pink: #d95db8;
  --pink-soft: #f9e8f4;
}

* { box-sizing: border-box; }
html, body { min-width: 320px; min-height: 100%; margin: 0; }
body {
  background: var(--background);
  color: var(--foreground);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.places-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
  padding: 0 max(24px, calc((100vw - 980px) / 2));
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}
.places-brand { color: var(--foreground); font-size: 18px; font-weight: 750; text-decoration: none; }
.places-total { display: flex; align-items: baseline; gap: 6px; color: var(--muted); font-size: 13px; }
.places-total strong { color: var(--foreground); font-size: 17px; font-variant-numeric: tabular-nums; }

.places-main { width: min(980px, calc(100% - 48px)); margin: 0 auto; padding: 64px 0 80px; }
.places-heading { margin-bottom: 28px; }
.places-heading p { margin: 0 0 8px; color: var(--purple); font-size: 13px; font-weight: 750; }
.places-heading h1 { margin: 0; font-size: 34px; font-weight: 750; letter-spacing: 0; line-height: 1.15; }
.localities { display: grid; gap: 12px; }

.locality-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 50px;
  align-items: center;
  min-height: 166px;
  overflow: hidden;
  border: 1px solid var(--border);
  border-left: 5px solid var(--purple);
  border-radius: 8px;
  background: var(--surface);
  color: var(--foreground);
  text-decoration: none;
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}
.locality-card:hover { border-color: #aeb5bf; border-left-color: var(--purple); box-shadow: 0 8px 24px rgb(34 37 43 / 10%); transform: translateY(-1px); }
.locality-card:focus-visible { outline: 3px solid rgb(167 43 196 / 20%); outline-offset: 2px; }
.locality-content { min-width: 0; padding: 24px 28px; }
.locality-region { display: block; margin-bottom: 6px; color: var(--muted); font-size: 13px; }
.locality-content h2 { margin: 0; font-size: 25px; font-weight: 750; letter-spacing: 0; }
.locality-stats { display: flex; gap: 20px; margin-top: 14px; color: var(--muted); font-size: 14px; }
.locality-stats strong { color: var(--foreground); font-variant-numeric: tabular-nums; }
.zone-breakdown { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.zone-pill { padding: 5px 9px; border-radius: 4px; font-size: 12px; font-weight: 750; }
.zone-pill.is-purple { background: var(--purple-soft); color: #771991; }
.zone-pill.is-pink { background: var(--pink-soft); color: #9d2c7f; }
.locality-arrow { display: flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 5px; background: var(--purple-soft); color: var(--purple); font-size: 21px; font-weight: 750; }

@media (max-width: 640px) {
  .places-header { min-height: 58px; padding: 0 16px; }
  .places-brand { font-size: 16px; }
  .places-main { width: calc(100% - 32px); padding: 40px 0 56px; }
  .places-heading h1 { font-size: 27px; }
  .locality-card { grid-template-columns: minmax(0, 1fr) 36px; min-height: 154px; }
  .locality-content { padding: 20px 16px; }
  .locality-content h2 { font-size: 22px; }
  .locality-stats { display: grid; gap: 4px; font-size: 13px; }
  .locality-arrow { width: 28px; height: 28px; font-size: 18px; }
}
