/* Chicago Dog Resources | styles (shares tokens with chicago-dog) */
:root {
  --paper: #f4f1ea;
  --white: #fbfaf6;
  --ink: #13211f;
  --ink-2: #3d4a47;
  --muted: #74807c;
  --line: rgba(19, 33, 31, 0.14);
  --line-2: rgba(19, 33, 31, 0.08);
  --teal-900: #0b3533;
  --teal-800: #0e4a47;
  --teal: #17807a;
  --teal-300: #7cc2bb;
  --sage: #9fb497;
  --sage-200: #d5e0cf;
  --sage-100: #e5ece0;
  --c-park: #17807a;
  --c-beach: #2f7fb5;
  --c-walk: #6f8f5f;
  --c-patio: #b5652f;
  --serif: "Instrument Serif", Georgia, serif;
  --sans: "Geist", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  --ease: cubic-bezier(.2,.8,.2,1);
  color-scheme: light;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 16px/1.55 var(--sans); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a { color: inherit; }
.wrap { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 20px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
h1, h2, h3 { margin: 0; font-weight: 400; }
h1 { font-family: var(--serif); font-size: clamp(52px, 8.5vw, 104px); line-height: .95; letter-spacing: -0.015em; }
h1 em { color: var(--teal); }
.kicker { display: flex; align-items: center; gap: 12px; margin: 0 0 20px; font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--teal-800); }
.kicker::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.lead { font-size: clamp(17px, 2vw, 20px); color: var(--ink-2); max-width: 640px; margin: 20px 0 0; }

.nav { position: sticky; top: 0; z-index: 1000; background: rgba(244,241,234,.86); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); border-bottom: 1px solid var(--line); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 60px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 9px; text-decoration: none; font-family: var(--serif); font-size: 24px; line-height: 1; white-space: nowrap; }
.brand span { font-style: italic; color: var(--teal); }
.brand svg { width: 19px; height: 19px; color: var(--teal); }
.navlink { white-space: nowrap; display: inline-flex; align-items: center; gap: 6px; font-size: 14px; color: var(--ink-2); text-decoration: none; }
.navlink b { color: var(--ink); font-weight: 600; }
.navlink svg { width: 14px; height: 14px; }
@media (max-width: 520px) { .navlink { font-size: 0; } .navlink b { font-size: 14px; } }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 0 22px; height: 54px; border: 1px solid var(--ink); border-radius: 2px; background: var(--ink); color: var(--paper); font: 500 15px var(--sans); text-decoration: none; white-space: nowrap; transition: background .2s, color .2s, border-color .2s; }
.btn:hover { background: var(--teal-800); border-color: var(--teal-800); }
.btn-line { background: transparent; color: var(--ink); }
.btn-line:hover { background: var(--ink); color: var(--paper); }
.btn .arr { width: 16px; height: 16px; }
.btn-sm { height: 40px; padding: 0 14px; font-size: 14px; }

.hero { padding: clamp(44px, 7vw, 88px) 0 clamp(28px, 4vw, 40px); }
.search { display: grid; grid-template-columns: 1fr auto auto; margin-top: 34px; max-width: 760px; }
.search input { height: 54px; padding: 0 18px; border: 1px solid var(--ink); border-right: 0; border-radius: 2px 0 0 2px; background: var(--white); font: 18px var(--sans); color: var(--ink); outline: none; min-width: 0; }
.search input:focus { box-shadow: inset 0 -2px 0 var(--teal); }
.search .btn { border-radius: 0; }
.search .btn-line { border-left: 0; }
.origin { margin: 14px 0 0; font-size: 14px; color: var(--muted); }
.origin b { color: var(--ink); font-weight: 600; }
.origin .err { color: #b23b2b; }
@media (max-width: 640px) {
  .search { grid-template-columns: 1fr auto; }
  .search input { border-right: 0; }
  .search .btn-line { grid-column: 1 / -1; border-left: 1px solid var(--ink); border-top: 0; }
}

.filters-wrap { position: sticky; top: 60px; z-index: 900; background: rgba(244,241,234,.94); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.filters { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; padding: 12px 0; }
.seg { display: flex; border: 1px solid var(--ink); overflow-x: auto; scrollbar-width: none; max-width: 100%; }
.seg::-webkit-scrollbar { display: none; }
.seg button { flex: none; height: 40px; padding: 0 16px; border: 0; border-right: 1px solid var(--line); background: transparent; font: 500 14px var(--sans); color: var(--ink-2); }
.seg button:last-child { border-right: 0; }
.seg button.on { background: var(--ink); color: var(--paper); }
.selects { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 20px; font-size: 13px; color: var(--muted); }
.selects label { display: flex; align-items: center; gap: 8px; }
.selects select { height: 40px; padding: 0 30px 0 12px; border: 1px solid var(--line); border-radius: 2px; background: var(--white); font: 14px var(--sans); color: var(--ink); appearance: none; -webkit-appearance: none; background-image: linear-gradient(45deg, transparent 50%, currentColor 50%), linear-gradient(135deg, currentColor 50%, transparent 50%); background-position: calc(100% - 14px) 18px, calc(100% - 9px) 18px; background-size: 5px 5px; background-repeat: no-repeat; }
.selects .check { color: var(--ink); font-size: 14px; }
.selects .check small { color: var(--muted); }
.selects input[type=checkbox] { width: 18px; height: 18px; accent-color: var(--teal); }
@media (max-width: 760px) {
  .filters-wrap { position: static; }
  .filters { flex-direction: column; align-items: stretch; }
  .selects { display: grid; grid-template-columns: 1fr 1fr; }
  .selects label:not(.check) { flex-direction: column; align-items: stretch; gap: 4px; }
  .selects .check { grid-column: 1 / -1; }
}

.results { padding: 28px 0 72px; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; align-items: start; }
.map-col { position: sticky; top: 130px; }
#map { height: calc(100vh - 160px); min-height: 420px; border: 1px solid var(--line); background: var(--sage-100); }
.count { margin: 0 0 12px; font-size: 13px; color: var(--muted); letter-spacing: .04em; }
.list { border-top: 1px solid var(--ink); }
.empty { padding: 40px 0; color: var(--muted); }
@media (max-width: 900px) {
  .split { grid-template-columns: 1fr; }
  .map-col { position: static; order: -1; }
  #map { height: 320px; min-height: 0; }
}

.spot { padding: 22px 0 24px; border-bottom: 1px solid var(--line); position: relative; transition: background .25s, padding .3s var(--ease); }
.spot.hl { background: var(--white); padding-left: 14px; padding-right: 14px; }
.spot .top { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; }
.type { display: inline-flex; align-items: center; gap: 7px; font-size: 11px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--c); }
.type i { width: 8px; height: 8px; background: var(--c); }
.dist { font-size: 14px; color: var(--ink); font-variant-numeric: tabular-nums; white-space: nowrap; }
.dist small { color: var(--muted); }
.spot h3 { font-family: var(--serif); font-size: 34px; line-height: 1.05; margin-top: 8px; }
.spot .addr { font-size: 14px; color: var(--muted); margin-top: 4px; }
.spot .vibe { margin: 12px 0 0; color: var(--ink-2); }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.tags span { font-size: 12px; padding: 4px 8px; border: 1px solid var(--line); color: var(--ink-2); }
.facts { display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; margin: 16px 0 0; font-size: 14px; }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; color: var(--ink); }
.actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }

.leaflet-container { font-family: var(--sans); }
.leaflet-tile-pane { filter: grayscale(1) sepia(.12) contrast(.92) brightness(1.04); }
.mk { width: 30px; height: 30px; display: grid; place-items: center; background: var(--c); color: #fff; border: 2px solid var(--paper); box-shadow: 0 2px 8px rgba(0,0,0,.25); transition: transform .2s; }
.mk svg { width: 16px; height: 16px; }
.mk.hl { transform: scale(1.3); }
.me { width: 16px; height: 16px; border-radius: 50%; background: var(--ink); border: 3px solid var(--paper); box-shadow: 0 0 0 6px rgba(19,33,31,.15); }
.leaflet-popup-content-wrapper { border-radius: 2px; }
.leaflet-popup-content { margin: 12px 14px; font-size: 14px; }
.leaflet-popup-content b { font-family: var(--serif); font-size: 20px; font-weight: 400; display: block; }

.know { padding: clamp(56px, 8vw, 96px) 0; background: var(--sage-100); border-top: 1px solid var(--line); }
.know-grid { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--ink); }
.know-grid > div { padding: 24px 22px 26px 0; border-right: 1px solid var(--line); }
.know-grid > div + div { padding-left: 22px; }
.know-grid > div:last-child { border-right: 0; }
.know .num { font-size: 12px; color: var(--muted); letter-spacing: .08em; }
.know h3 { font-size: 18px; font-weight: 600; margin-top: 16px; }
.know p { margin: 8px 0 0; font-size: 15px; color: var(--ink-2); }
.checked { margin: 32px 0 0; font-size: 14px; color: var(--muted); max-width: 760px; }
@media (max-width: 900px) {
  .know-grid { grid-template-columns: 1fr 1fr; }
  .know-grid > div:nth-child(2) { border-right: 0; }
  .know-grid > div:nth-child(3) { padding-left: 0; }
  .know-grid > div:nth-child(n+3) { border-top: 1px solid var(--line); }
}
@media (max-width: 520px) { .know-grid { grid-template-columns: 1fr; } .know-grid > div { padding-left: 0 !important; border-right: 0; border-top: 1px solid var(--line); } }

.footer { padding: 28px 0 48px; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); }
.legal { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }
.legal a { text-decoration: none; color: var(--ink); }
