:root {
  --canvas: #111418;
  --surface: #1d2228;
  --surface-active: #253344;
  --ink: #f5f7f9;
  --muted: #b5c0ca;
  --line: #38424c;
  --blue: #165da3;
  --blue-hover: #2477c6;
  --blue-light: #91c4f3;
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; font-family: "DM Sans", Arial, sans-serif; color: var(--ink); }
button, input { font: inherit; }
button { cursor: pointer; }
.locator { width: 100%; background: var(--canvas); }
.explorer { display: grid; grid-template-columns: minmax(340px, 400px) minmax(0, 1fr); height: 100vh; min-height: 640px; }
.sidebar { display: flex; flex-direction: column; min-height: 0; border-right: 1px solid #343b43; background: var(--canvas); color-scheme: dark; }
.sidebar__top { display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 25px 25px 20px; }
.section-kicker { margin: 0; color: #fff; font-family: Poppins, sans-serif; font-size: 14px; font-weight: 700; letter-spacing: .025em; line-height: 1.35; }
.count-pill { background: #204a78; border: 1px solid #356999; border-radius: 4px; color: #fff; font-size: 12px; font-weight: 800; min-width: 37px; text-align: center; padding: 6px 9px; }
.search { padding: 0 25px; }
.search label { display: block; color: #c8d1da; font-size: 11px; font-weight: 700; margin-bottom: 8px; }
.search__field { display: flex; align-items: center; border: 1px solid #4a5661; border-radius: 4px; height: 46px; overflow: hidden; background: #1c2228; }
.search__field:focus-within { outline: 2px solid var(--blue-light); outline-offset: 2px; }
.search__field svg { width: 16px; height: 16px; fill: none; stroke: #a7b6c3; stroke-width: 1.8; margin-left: 13px; flex: none; }
.search__field input { border: 0; outline: 0; min-width: 0; flex: 1; padding: 10px 9px; color: #fff; background: transparent; font-size: 12px; }
.search__field input::placeholder { color: #a2adb7; }
.search__field button { align-self: stretch; border: 0; background: var(--blue); color: #fff; font-size: 11px; font-weight: 800; padding: 0 17px; }
.search__field button:hover { background: var(--blue-hover); }
.controls { display: flex; align-items: center; justify-content: space-between; padding: 16px 25px 13px; }
.type-filters { display: flex; gap: 6px; padding: 0 25px 17px; border-bottom: 1px solid var(--line); }
.type-filter { border: 1px solid #53616e; border-radius: 4px; background: #232b33; color: #d0dae3; font-size: 10px; font-weight: 800; line-height: 1.2; padding: 8px 9px; white-space: nowrap; }
.type-filter:hover { border-color: var(--blue-light); color: #fff; }
.type-filter.is-active { border-color: #5c9bd1; background: var(--blue); color: #fff; }
.near-me, .reset { border: 0; background: transparent; color: var(--blue-light); font-size: 11px; font-weight: 800; }
.near-me { display: flex; align-items: center; gap: 6px; padding: 0; }
.near-me svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.5; }
.reset { color: #c3cbd3; text-decoration: underline; text-underline-offset: 3px; }
.status { font-size: 11px; color: var(--muted); margin: 0; padding: 13px 25px; min-height: 40px; }
.results { flex: 1; min-height: 0; overflow-y: auto; padding: 0 12px 14px; scrollbar-color: #57636f var(--canvas); }
.shop { margin: 0 0 8px; border: 1px solid var(--line); border-radius: 5px; background: var(--surface); padding: 16px; transition: border-color .18s, background .18s; }
.shop:hover, .shop.active { border-color: #6a9dca; background: var(--surface-active); }
.shop.active { box-shadow: inset 3px 0 0 var(--blue-light); }
.shop--premier { border-color: #3974a7; background: #1a2a3a; }
.shop--premier:hover, .shop--premier.active { border-color: #8ac4f5; background: #233b52; }
.shop__type { display: inline-block; margin-bottom: 8px; border: 1px solid #498ac0; border-radius: 3px; background: #174b77; color: #e2f2ff; padding: 4px 7px; font-size: 9px; font-weight: 800; letter-spacing: .045em; text-transform: uppercase; }
.shop__select { display: block; border: 0; background: transparent; padding: 0; width: 100%; text-align: left; }
.shop__name { display: block; font-family: Poppins, sans-serif; font-size: 13px; font-weight: 600; line-height: 1.45; color: #fff; }
.shop__place { display: block; margin-top: 4px; color: var(--muted); font-size: 11px; line-height: 1.45; }
.shop__distance { display: block; margin-top: 5px; color: var(--blue-light); font-size: 10px; font-weight: 700; }
.shop__products { margin-top: 12px; }
.shop__products-label { display: block; color: #c8d2dc; font-size: 10px; font-weight: 800; margin-bottom: 6px; }
.shop__tags { display: flex; gap: 5px; flex-wrap: wrap; }
.shop__tag { display: inline-block; border: 1px solid #3d4d5c; border-radius: 3px; background: #2a3540; color: #dbe8f3; font-size: 10px; font-weight: 700; line-height: 1.35; padding: 4px 6px; }
.shop__details { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 13px; }
.shop__details a { display: inline-flex; align-items: center; justify-content: center; min-height: 31px; border-radius: 4px; padding: 6px 12px; text-decoration: none; font-size: 11px; font-weight: 800; }
.shop__details a.action--call { background: var(--blue); color: #fff; }
.shop__details a.action--call:hover { background: var(--blue-hover); }
.shop__details a.action--site { border: 1px solid #6e8192; color: #e7f1fb; background: transparent; }
.shop__details a.action--site:hover { border-color: var(--blue-light); background: #294057; }
.shop__details a.action--email { border: 1px solid #6e8192; color: #e7f1fb; background: transparent; }
.shop__details a.action--email:hover { border-color: var(--blue-light); background: #294057; }
.shop__select:focus-visible, .shop__details a:focus-visible, .near-me:focus-visible, .reset:focus-visible, .type-filter:focus-visible, .search__field button:focus-visible { outline: 2px solid var(--blue-light); outline-offset: 3px; }
.empty { padding: 40px 16px; text-align: center; color: var(--muted); font-size: 13px; line-height: 1.6; }
.empty strong { display: block; color: #fff; font-family: Poppins, sans-serif; font-size: 16px; margin-bottom: 5px; }
.map-wrap { position: relative; min-height: 0; background: #e4e8eb; }
.map { position: absolute; inset: 0; }
.demo-banner { padding: 10px 25px; background: #1c3c5b; color: #fff; font-size: 10px; letter-spacing: .12em; font-weight: 800; }
.demo-banner span { font-size: 12px; letter-spacing: 0; font-weight: 500; margin-left: 12px; }
.leaflet-container { font-family: "DM Sans", Arial, sans-serif; }
.leaflet-tile-pane { filter: grayscale(1) contrast(.93) brightness(1.05); }
.leaflet-popup-content-wrapper, .leaflet-popup-tip { background: #1d2228; color: #fff; }
.leaflet-popup-content-wrapper { border-radius: 5px; box-shadow: 0 8px 24px #11141855; }
.leaflet-popup-content { margin: 15px 17px; min-width: 195px; }
.leaflet-popup-close-button { color: #d7e2eb !important; }
.popup-name { display: block; font-family: Poppins, sans-serif; font-weight: 600; font-size: 13px; }
.popup-place { font-size: 11px; color: var(--muted); margin: 4px 0 9px; }
.leaflet-popup-content .shop__products { margin-top: 9px; }
.leaflet-popup-content .shop__details { margin-top: 12px; }
.marker { width: 27px; height: 27px; border-radius: 50%; background: var(--blue); border: 3px solid #fff; box-shadow: 0 2px 8px #15243466; display: grid; place-items: center; }
.marker span { width: 7px; height: 7px; border-radius: 50%; background: #fff; }
.marker.active { background: #0b3158; transform: scale(1.15); }
.distributor-pin { display: grid; place-items: center; width: 42px; height: 42px; border: 3px solid #fff; border-radius: 50% 50% 50% 9px; background: #1885d6; transform: rotate(-45deg); box-shadow: -2px 4px 11px #12324d88; }
.distributor-pin span { transform: rotate(45deg); color: #fff; font-family: Poppins, sans-serif; font-size: 11px; font-weight: 800; letter-spacing: -.04em; }
.distributor-pin:hover, .distributor-pin.active { background: #075b9d; box-shadow: -2px 4px 11px #12324d88, 0 0 0 4px #73bfff99; }
.cluster { display: grid; place-items: center; width: 38px; height: 38px; border: 3px solid #fff; border-radius: 50%; background: #1a2734; color: #fff; font-family: Poppins, sans-serif; font-size: 12px; font-weight: 700; box-shadow: 0 3px 10px #15243466; }
.cluster:hover { background: var(--blue); }
.leaflet-bar a, .leaflet-bar a:hover { background: #1d2228; border-bottom-color: #43515e; color: #fff; }
@media (max-width: 780px) {
  .explorer { display: flex; flex-direction: column; height: auto; min-height: 100vh; }
  .sidebar { min-height: 0; border-right: 0; border-bottom: 1px solid var(--line); }
  .results { max-height: 330px; overflow: auto; }
  .map-wrap { height: 460px; min-height: 460px; }
}
@media (max-width: 480px) {
  .sidebar__top, .controls, .status { padding-left: 18px; padding-right: 18px; }
  .type-filters { padding-left: 18px; padding-right: 18px; }
  .search { padding-left: 18px; padding-right: 18px; }
  .results { padding-left: 8px; padding-right: 8px; }
  .map-wrap { height: 430px; min-height: 430px; }
}
