/* Public map and guide: list first on a phone, side by side on a wide screen; light and dark. */
:root {
  /* The LA Connected palette (09_brand/BRAND_GUIDE.md): cream, navy, gold, white. Gold is text only on navy. */
  --bg: #fffde8; --fg: #1b263b; --muted: #4a5468; --line: #e4dfc4; --accent: #1b263b; --accent-fg: #fffde8; --card: #fff;
  --gold: #e8a838;
  --ok-bg: #e3eee4; --ok-fg: #1f4d35; --warn-bg: #fbefd1; --warn-fg: #6b4504; --err-bg: #f8e3df; --err-fg: #8a1c11;
  /* Pillar colors tell the four pillars apart on the map and in the list; a pillar is always named in words too. */
  --food: #e8a838; --culture: #7b5ea7; --travel: #3f7fa6; --fashion: #c2506e;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root { --bg: #1b263b; --fg: #fffde8; --muted: #c9ceda; --line: #34415a; --accent: #e8a838; --accent-fg: #1b263b; --card: #24314a;
          --ok-bg: #1f3a2f; --ok-fg: #a8e4c3; --warn-bg: #4a3a16; --warn-fg: #f3d49b; --err-bg: #4a2420; --err-fg: #f6b8ae;
          --food: #e8a838; --culture: #b39ddb; --travel: #7fb8dc; --fashion: #e58aa3; }
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--fg); font: 17px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
a { color: var(--accent); }
.bar { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 16px; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.bar h1 { margin: 0; font-size: 1.4rem; }
.bar h1 a { display: inline-flex; align-items: center; gap: 10px; color: var(--fg); text-decoration: none; }
.mark { width: 64px; height: 17px; flex: 0 0 auto; }
.tagline { margin: 2px 0 0; color: var(--muted); font-size: .95rem; }
.bar-actions { display: flex; align-items: center; gap: 16px; }
.link { font: inherit; color: var(--accent); background: none; border: 0; padding: 8px 0; min-height: 44px; cursor: pointer; text-decoration: underline; }
.tabs { display: flex; gap: 4px; padding: 0 16px; border-bottom: 1px solid var(--line); }
.tabs a { padding: 12px 14px; text-decoration: none; color: var(--muted); font-weight: 600; border-bottom: 3px solid transparent; }
.tabs a[aria-current=page] { color: var(--fg); border-bottom-color: var(--accent); }
.layout { display: flex; flex-direction: column; }
/* On a phone the map stays pinned while the list scrolls under it, so a card and its point are seen together. */
.map-wrap { position: sticky; top: 0; z-index: 2; background: var(--bg); }
#map { height: 38vh; min-height: 240px; border-bottom: 1px solid var(--line); }
.map-note { position: absolute; left: 12px; bottom: 12px; margin: 0; padding: 6px 10px; border-radius: 8px; font-size: .85rem;
            background: var(--card); color: var(--muted); border: 1px solid var(--line); pointer-events: none; }
.panel { padding: 8px 16px 32px; }
@media (min-width: 900px) {
  .layout { flex-direction: row-reverse; height: calc(100vh - 140px); }
  .map-wrap { flex: 1 1 60%; position: relative; display: flex; }
  #map { flex: 1; height: auto; border-bottom: 0; border-left: 1px solid var(--line); }
  .panel { flex: 0 0 440px; overflow-y: auto; }
}
.place-tip .maplibregl-popup-content { background: var(--fg); color: var(--bg); font: 600 .9rem/1.3 inherit; padding: 6px 10px; border-radius: 8px; box-shadow: none; }
.place-tip .maplibregl-popup-tip { border-top-color: var(--fg); }
.filters { display: flex; flex-direction: column; gap: 10px; margin: 12px 0; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; gap: 8px; font: inherit; min-height: 40px; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line); background: var(--card); color: var(--fg); cursor: pointer; }
.chip[aria-pressed=true] { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.chip .dot { margin: 0; flex-basis: 10px; height: 10px; outline: 2px solid var(--card); }
.chip[aria-pressed=true] .dot { outline-color: var(--fg); }
.chip.near { margin-left: auto; }
.row-filters { display: flex; flex-wrap: wrap; align-items: end; gap: 10px 16px; }
.inline { display: flex; flex-direction: column; gap: 4px; font-weight: 600; }
select { font: inherit; color: var(--fg); background: var(--card); border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; min-height: 44px; }
.check { display: flex; align-items: center; gap: 10px; min-height: 44px; }
.check input { width: 22px; height: 22px; }
.count { color: var(--muted); margin: 4px 0; }
.cards { list-style: none; padding: 0; margin: 0; }
.card { display: flex; gap: 12px; padding: 12px 14px; margin: 8px 0; border: 1px solid var(--line); border-radius: 12px; background: var(--card); color: var(--fg); text-decoration: none; }
.card:hover, .card.selected { border-color: var(--fg); }
.card.selected { box-shadow: inset 4px 0 0 var(--gold, #e8a838); }
.open { font-size: .92rem; color: var(--muted); }
.open.now { color: var(--ok-fg); font-weight: 600; }
.empty-state { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.card > span:last-child { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.card strong { overflow-wrap: anywhere; }
.dot { flex: 0 0 12px; height: 12px; margin-top: 6px; border-radius: 50%; background: var(--muted); }
.dot.food { background: var(--food); } .dot.culture { background: var(--culture); } .dot.travel { background: var(--travel); } .dot.fashion { background: var(--fashion); }
.meta { color: var(--muted); font-size: .92rem; }
.badge { display: inline-block; align-self: flex-start; font-size: .85rem; padding: 2px 8px; border-radius: 6px; background: var(--warn-bg); color: var(--warn-fg); margin: 4px 0; }
.badge.verified { background: var(--ok-bg); color: var(--ok-fg); }
.badge.closed { background: var(--err-bg); color: var(--err-fg); }
.detail h2 { margin: 8px 0 2px; font-size: 1.4rem; }
.detail h3 { font-size: 1rem; margin: 20px 0 6px; }
.text { white-space: pre-line; }
.hours { list-style: none; padding: 0; margin: 0; }
.hours li { display: flex; justify-content: space-between; max-width: 240px; }
.attrs .row { display: grid; grid-template-columns: 40% 1fr; gap: 8px; padding: 6px 0; border-top: 1px solid var(--line); }
.attrs dt { color: var(--muted); }
.attrs dd { margin: 0; overflow-wrap: anywhere; }
.sources, .disputes { padding-left: 18px; margin: 0; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; align-items: center; }
.button { display: inline-flex; align-items: center; min-height: 48px; padding: 10px 18px; border-radius: 10px; background: var(--accent); color: var(--accent-fg); text-decoration: none; font-weight: 600; }
.button.secondary { background: transparent; color: var(--accent); border: 2px solid var(--accent); }
.back { display: inline-block; padding: 8px 0; }
.empty, .error { color: var(--muted); }
.error { color: var(--err-fg); }
.status:empty { display: none; }
.status { position: fixed; bottom: 16px; left: 16px; right: 16px; max-width: 420px; padding: 10px 14px; border-radius: 8px; background: var(--fg); color: var(--bg); }
footer p { margin: 4px 0; }
footer { padding: 12px 16px 24px; color: var(--muted); font-size: .85rem; border-top: 1px solid var(--line); }
a:focus-visible, button:focus-visible, select:focus-visible, input:focus-visible, h2:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.maplibregl-ctrl-attrib a { color: inherit; }
