:root {
  font-family: 'DM Sans', sans-serif;
  color: #292826;
  background: white;
  font-synthesis: none;
  --muted: #8a8581;
  --border: #ebe5df;
  --accent: #bd4636;
}
* { box-sizing: border-box; }
body { margin: 0; overflow: hidden; }
button, input, select { font: inherit; }
button, a, input, select { -webkit-tap-highlight-color: transparent; }
button, select { cursor: pointer; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.masthead { position: fixed; top: 16px; right: 16px; z-index: 500; display: flex; align-items: center; padding: 10px 16px; background: white; border-radius: 6px; box-shadow: 0 2px 16px #00000012; }
.brand { display: flex; align-items: center; gap: 12px; color: inherit; text-decoration: none; font-size: 18px; }
.brand strong { font-weight: 700; }
.brand-mark { color: var(--accent); font-size: 35px; font-weight: 700; line-height: 1; }
.edition { display: none; }
main { position: relative; height: 100dvh; }
.directory { position: absolute; top: 16px; bottom: 24px; left: 16px; z-index: 450; width: 272px; display: flex; flex-direction: column; padding: 10px; background: white; border-radius: 8px; box-shadow: 0 3px 24px #00000012; }
.directory-content { min-height: 0; overflow-y: auto; scrollbar-width: thin; scrollbar-color: #e2dcd7 transparent; }
#search-form { flex-shrink: 0; padding-bottom: 9px; }
.city-image { position: relative; height: 144px; overflow: hidden; border-radius: 4px; background: #e3e9df; }
.city-image img { width: 100%; height: 100%; object-fit: cover; }
.image-credit { position: absolute; right: 5px; bottom: 5px; display: flex; gap: 5px; max-width: calc(100% - 10px); overflow: hidden; padding: 3px 5px; border-radius: 2px; background: #172023cc; font-size: 8px; line-height: 1.3; white-space: nowrap; }
.image-credit a { overflow: hidden; color: white; text-decoration: none; text-overflow: ellipsis; }
.directory-heading { margin: 12px 3px 10px; }
h1 { font-size: 18px; line-height: 1.15; margin: 0; font-weight: 700; }
.directory-heading p { font-size: 11px; line-height: 1.6; color: #686460; margin: 9px 0; }
.directory-heading .source-credit { margin-top: 14px; font-size: 10px; }
.source-credit a { color: #4761cf; text-decoration: none; }
.search-bar { display: flex; align-items: center; padding: 3px; background: #efeeec; border: 1px solid #e3e1de; border-radius: 16px; }
.search-box { display: flex; align-items: center; gap: 6px; padding: 0 5px; height: 24px; flex: 1; min-width: 0; }
.search-box svg { width: 14px; height: 14px; flex-shrink: 0; color: var(--muted); }
input { min-width: 0; width: 100%; border: 0; background: transparent; font-size: 11px; color: inherit; }
input:focus { outline: none; }
.search-bar:focus-within { outline: 2px solid var(--accent); outline-offset: 2px; }
#filter-toggle { display: flex; align-items: center; gap: 3px; height: 24px; padding: 0 7px; border: 1px solid #ddd9d5; border-radius: 14px; background: #faf9f8; color: #817c77; font-size: 10px; }
#filter-toggle svg { width: 13px; height: 13px; }
#filter-toggle.active { color: var(--accent); border-color: var(--accent); }
#filters { padding: 0 4px 4px; }
.category-label { display: block; font-size: 11px; color: var(--muted); margin: 14px 0 6px; }
select { width: 100%; height: 38px; padding: 0 10px; background: white; border: 1px solid var(--border); border-radius: 4px; color: inherit; font-size: 13px; }
.results-heading { display: flex; justify-content: space-between; gap: 8px; padding: 0 3px 9px; font-size: 10px; color: var(--muted); }
.results-heading a { color: inherit; text-underline-offset: 2px; }
.places { padding: 0; margin: 0; list-style: none; }
.places li { margin-bottom: 5px; }
.places button { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 62px; text-align: left; padding: 9px 10px; border: 1px solid transparent; background: #fff0e9; color: inherit; border-radius: 6px; }
.places button:hover { background: #ffe7d9; }
.places button[aria-pressed='true'] { background: #ffe2d3; border-color: #e9b99e; }
.company-logo, .marker-logo { position: relative; display: grid; place-items: center; flex-shrink: 0; width: 36px; height: 36px; border-radius: 50%; background: #fff; border: 1px solid #ffffff; overflow: hidden; font-size: 12px; font-weight: 700; }
.company-logo img, .marker-logo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; border-radius: 50%; background: white; }
.place-details { min-width: 0; }
.places strong { display: block; font-size: 12px; line-height: 1.2; font-weight: 700; margin-bottom: 3px; }
.place-description { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: 10px; color: var(--muted); line-height: 1.4; }
.directory-footer { padding: 13px 3px 4px; font-size: 9px; line-height: 1.6; color: var(--muted); }
#message { font-size: 13px; line-height: 1.6; }
.map-panel { position: absolute; inset: 0; min-width: 0; background: #fff5ee; }
#map { width: 100%; height: 100%; z-index: 0; }
#reset-map { position: absolute; top: 90px; right: 16px; z-index: 400; width: 42px; height: 42px; border: 1px solid var(--border); border-radius: 4px; background: white; color: #25352e; font-size: 26px; box-shadow: 0 2px 8px #25352e12; }
#reset-map svg { display: block; width: 20px; height: 20px; margin: auto; }
.place-marker { width: 32px; height: 32px; border: 0; padding: 0; background: transparent; border-radius: 50%; }
.marker-logo { width: 32px; height: 32px; border: 2px solid white; box-shadow: 0 1px 3px #00000035; }
.place-marker:hover, .place-marker[aria-pressed='true'] { z-index: 5; }
.place-marker:hover .marker-logo, .place-marker[aria-pressed='true'] .marker-logo { outline: 2px solid var(--accent); outline-offset: 1px; }
.maplibregl-ctrl-top-right { top: 42%; right: 6px; }
.maplibregl-ctrl-group { border-radius: 18px; overflow: hidden; background: #ffffffde; }
.maplibregl-ctrl-group button { width: 34px; height: 32px; }
.maplibregl-ctrl-attrib { font-size: 9px; background: #ffffffb8; }
.maplibregl-popup-content { font-family: 'DM Sans', sans-serif; padding: 16px; border-radius: 6px; }
.company-popup strong { font-size: 15px; }
.company-popup p { font-size: 11px; color: #777; line-height: 1.5; margin: 7px 0 10px; }
.company-popup a { color: var(--accent); font-size: 11px; text-underline-offset: 2px; }
#map-message { position: absolute; top: 40%; left: 50%; transform: translateX(-50%); z-index: 400; max-width: 260px; padding: 14px; background: white; font-size: 13px; border-radius: 6px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
@media (max-width: 720px) {
  .masthead { top: 12px; right: 12px; padding: 8px 12px; }
  .brand { font-size: 15px; gap: 8px; }
  .edition { display: none; }
  .directory { top: auto; bottom: 24px; left: 12px; width: calc(100% - 24px); height: 44dvh; padding: 10px; }
  .city-image { display: none; }
  .directory-heading { margin: 2px 3px 10px; }
  h1 { font-size: 16px; }
  .directory-heading p { margin: 5px 0; }
  .directory-heading .source-credit { margin-top: 5px; }
  #reset-map { top: 76px; right: 12px; }
  .maplibregl-ctrl-top-right { top: 28%; }
  .maplibregl-popup { max-width: 200px !important; }
  #map-message { top: 25%; }
}