:root {
  color-scheme: dark;
  --panel: #000;
  --raised: #101010;
  --line: #292929;
  --ink: #fff;
  --muted: #c8c8c8;
  --accent: #fff;
  --project: #fff;
  --gutter: 14px;
}

body { margin: 0; color: #fff; background: #000; }
[hidden] { display: none !important; }
.places, .places-toggle, .map-tools {
  box-sizing: border-box;
  position: fixed;
  z-index: 1001;
  color: var(--ink);
  background: var(--panel);
  font: 14px/1.4 system-ui, sans-serif;
  border: 1px solid var(--line);
  border-radius: 14px;
}
.places {
  top: var(--gutter);
  right: var(--gutter);
  width: min(340px, calc(100% - 2 * var(--gutter)));
  max-height: calc(100dvh - 76px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.places button, .map-tools button, .places-toggle {
  appearance: none; font: inherit; color: inherit; cursor: pointer;
}
.places button:focus-visible, .map-tools button:focus-visible, .places-toggle:focus-visible {
  outline: 2px solid var(--accent); outline-offset: -2px;
}
.places ::selection { background: var(--accent); color: var(--panel); }
.places svg, .map-tools svg {
  width: 19px; height: 19px; fill: none; stroke: currentColor;
  stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round;
}
.places-head { padding: 15px; border-bottom: 1px solid var(--line); }
.places-title-row { display: flex; align-items: center; gap: 11px; margin-bottom: 13px; }
.places-emblem {
  display: grid; place-items: center; flex: 0 0 40px; height: 40px;
  border-radius: 10px; background: #101010; color: var(--accent);
}
.places h1 { font-size: 17px; line-height: 1.25; letter-spacing: -.02em; margin: 0 0 2px; }
.places-head p { margin: 0; color: var(--muted); font-size: 12px; }
.places-close {
  display: grid; place-items: center; margin-left: auto;
  width: 36px; height: 36px; background: transparent; border: 0; border-radius: 8px;
}
.places-search {
  display: flex; align-items: center; gap: 8px; padding: 0 10px;
  background: var(--raised); border: 1px solid var(--line); border-radius: 8px; color: var(--muted);
}
.places-search:focus-within { border-color: var(--accent); }
.places-search input {
  width: 100%; min-width: 0; height: 40px; background: none;
  border: 0; outline: 0; font: inherit; color: var(--ink); caret-color: var(--accent);
}
.places-search input::placeholder { color: var(--muted); }
.places-filters { display: flex; gap: 5px; margin-top: 10px; }
.places-filters button {
  background: transparent; border: 1px solid transparent; border-radius: 7px;
  min-height: 32px; padding: 3px 10px; font-size: 12px; color: var(--muted);
}
.places-filters button[aria-pressed="true"] { background: #161616; color: var(--accent); border-color: #404040; }
.places-list { list-style: none; margin: 0; padding: 7px; overflow: auto; scrollbar-color: #586958 transparent; }
.places-list:empty { padding: 0; }
.places-list button {
  width: 100%; display: grid; grid-template-columns: 62px minmax(0, 1fr) 16px;
  align-items: center; gap: 10px; text-align: left; border: 1px solid transparent;
  border-radius: 9px; padding: 7px; background: transparent;
}
.places-list button[aria-pressed="true"] { background: var(--raised); border-color: #555; }
.places-list button:hover, .places-close:hover, .map-tools button:hover, .places-filters button:hover { background-color: var(--raised); }
.places-thumb { width: 62px; height: 49px; border-radius: 6px; background-color: #334b35; image-rendering: pixelated; }
.places-copy { display: grid; gap: 2px; }
.places-copy strong { line-height: 1.25; }
.places-copy small { color: var(--muted); font-size: 11px; }
.places-copy span { color: var(--accent); font-size: 11px; font-variant-numeric: tabular-nums; }
.places-list svg { width: 15px; height: 15px; color: var(--muted); }
.places-status { margin: 0; padding: 12px 15px; color: var(--muted); }
.places-status:empty { display: none; }
.places-toggle { top: var(--gutter); right: var(--gutter); min-height: 42px; padding: 8px 14px; }
.map-tools {
  bottom: var(--gutter); left: 50%; transform: translateX(-50%);
  display: flex; align-items: center; gap: 2px; padding: 3px;
  border-radius: 11px; white-space: nowrap;
}
.map-tools button {
  display: grid; place-items: center; width: 39px; height: 38px;
  border: 0; border-radius: 7px; background: transparent;
}
.map-tools button:disabled { cursor: default; color: #8f9b8c; }
.map-position { border-left: 1px solid var(--line); padding: 0 9px; color: var(--muted); font-size: 11px; font-variant-numeric: tabular-nums; }
.luminolia-map-ready .leaflet-control-zoom,
.luminolia-map-ready .leaflet-control-layers.coordinates { display: none; }
.luminolia-map-ready .leaflet-control-layers,
.luminolia-map-ready .leaflet-control-layers-expanded {
  color: var(--ink); background: var(--panel); border-color: var(--line); border-radius: 9px;
}
.luminolia-map-ready .leaflet-control-layers-toggle,
.luminolia-map-ready .leaflet-control-layers.link img { filter: brightness(0) invert(1); }
.leaflet-marker-icon.luminolia-marker {
  box-sizing: border-box; border-radius: 50%; background: #fff;
  border: 2px solid #000; box-shadow: 0 2px 5px #000a;
}
.leaflet-marker-icon.luminolia-marker--project { background: var(--project); }
.leaflet-marker-icon.luminolia-marker.is-selected { outline: 3px solid var(--panel); }
.leaflet-tooltip.luminolia-label {
  background: var(--panel); border-color: var(--line); border-radius: 6px;
  color: var(--ink); font-weight: 650; box-shadow: none;
}
.leaflet-tooltip.luminolia-label::before { display: none; }
.luminolia-label.is-selected { color: var(--accent); }

@media (max-width: 640px) {
  :root { --gutter: 8px; }
  .places { top: auto; right: var(--gutter); bottom: 58px; max-height: min(64dvh, 390px); }
  .places-head { padding: 10px 12px; }
  .places-title-row { margin-bottom: 8px; }
  .places-list button { padding-block: 6px; }
  .map-tools button { width: 40px; height: 40px; }
}
