/* Plus Jakarta Sans (SIL Open Font License, vendor/fonts/OFL.txt), self-hosted: the CSP allows fonts from 'self' only */
@font-face {
  font-family: "Jakarta"; font-style: normal; font-weight: 200 800; font-display: swap;
  src: url("vendor/fonts/plus-jakarta-sans-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Jakarta"; font-style: normal; font-weight: 200 800; font-display: swap;
  src: url("vendor/fonts/plus-jakarta-sans-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --bg: #f5f6f8;
  --surface: #ffffff;
  --surface-2: #eef1f4;
  --ink: #16181d;
  --muted: #6b7280;
  --line: #e4e7ec;
  --brand: #0e8f6e;
  --brand-ink: #ffffff;
  --brand-soft: #e3f5ef;
  --accent: #ff7a59;
  --accent-soft: #fff0eb;
  --rain: #2f6fdb;
  --rain-soft: #e8f0fd;
  --free: #0e8f6e;
  --danger: #d92d20;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 1px 2px rgba(16, 24, 40, .04), 0 6px 20px rgba(16, 24, 40, .06);
  --shadow-lg: 0 2px 6px rgba(16, 24, 40, .06), 0 16px 40px rgba(16, 24, 40, .12);
  --header: 60px;
  color-scheme: light;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  font: 15.5px/1.55 "Jakarta", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  color: var(--ink); background: var(--bg); -webkit-font-smoothing: antialiased;
}
a { color: var(--brand); text-underline-offset: 2px; }
h1, h2, h3 { line-height: 1.2; letter-spacing: -.015em; }
h1 { font-size: 1.9rem; font-weight: 800; margin: .2em 0 .4em; }
h2 { font-size: 1.15rem; font-weight: 700; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.hint { color: var(--muted); font-size: .86rem; margin: .4em 0; }
.inline { display: inline; }
[hidden] { display: none !important; }

/* ---------- header ---------- */
.site-header {
  height: var(--header); display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 0 20px; position: sticky; top: 0; z-index: 1300;   /* above the toolbar, so the menu opens over it */
  background: rgba(255, 255, 255, .82); backdrop-filter: saturate(1.6) blur(14px); -webkit-backdrop-filter: saturate(1.6) blur(14px);
  border-bottom: 1px solid var(--line); color: var(--ink);
}
.brand { color: inherit; text-decoration: none; font-weight: 800; font-size: 1.15rem; letter-spacing: -.02em; white-space: nowrap; display: inline-flex; align-items: center; gap: 8px; }
.brand-mark {
  font-size: 1.1rem; width: 34px; height: 34px; border-radius: 11px; display: inline-grid; place-items: center;
  background: linear-gradient(135deg, #12b886, #0e8f6e); box-shadow: 0 4px 12px rgba(14, 143, 110, .35);
}
.site-nav { display: flex; gap: 4px; align-items: center; flex-wrap: wrap; font-size: .9rem; font-weight: 600; }
.site-nav a, .site-nav .linklike { color: var(--ink); text-decoration: none; padding: .45em .8em; border-radius: 999px; }
.site-nav a:hover, .site-nav .linklike:hover { background: var(--surface-2); }

/* ---------- buttons, chips, forms ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  font: inherit; font-weight: 700; padding: .6em 1.15em; border-radius: 999px; border: 0;
  background: var(--brand); color: var(--brand-ink); cursor: pointer; text-decoration: none; white-space: nowrap;
  box-shadow: 0 1px 2px rgba(16, 24, 40, .08), 0 4px 12px rgba(14, 143, 110, .25);
  transition: transform .12s ease, box-shadow .12s ease, background .12s ease;
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 2px 4px rgba(16, 24, 40, .1), 0 8px 18px rgba(14, 143, 110, .3); }
.btn:active { transform: none; }
.btn:disabled { opacity: .6; cursor: wait; transform: none; }
.btn-small { font-size: .86rem; padding: .45em .95em; }
.btn-ghost { background: var(--surface-2); color: var(--ink); box-shadow: none; }
.btn-ghost:hover { background: #e3e7ec; box-shadow: none; }
.btn-danger { background: transparent; color: var(--danger); box-shadow: inset 0 0 0 1.5px var(--danger); }
.btn-block { width: 100%; }
.linklike { background: none; border: 0; padding: 0; font: inherit; color: var(--brand); font-weight: 600; cursor: pointer; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chips + .chips { margin-top: 8px; }
.chips-list { flex-direction: column; align-items: flex-start; }
/* indoors / outdoors: one segmented switch, apart from the categories */
.segmented { display: flex; background: var(--surface-2); border-radius: 999px; padding: 3px; gap: 2px; }
.segmented .chip { flex: 1; justify-content: center; text-align: center; white-space: nowrap; background: transparent; box-shadow: none; }
.segmented .chip.on { background: var(--surface); color: var(--ink); box-shadow: 0 1px 4px rgba(16, 24, 40, .16); }
/* category list with expandable groups */
.cat-tree, .cat-subs-list { list-style: none; margin: 0; padding: 0; }
.cat-item { position: relative; border-bottom: 1px solid var(--line); }
.cat-item:last-child { border-bottom: 0; }
.cat-subs-list { padding: 0 0 6px 22px; }
.cat-item-sub { border: 0; }
.cat-pick { all: unset; box-sizing: border-box; display: flex; align-items: center; gap: 10px; width: 100%; padding: 9px 38px 9px 4px;
  cursor: pointer; font-size: .92rem; font-weight: 600; border-radius: 8px; }
.cat-item-sub .cat-pick { padding: 6px 4px; font-size: .86rem; font-weight: 500; }
.cat-pick:hover { background: var(--surface-2); }
.cat-pick:focus-visible { outline: 3px solid rgba(14, 143, 110, .35); }
.cat-pick .box { flex: none; width: 18px; height: 18px; border-radius: 6px; border: 2px solid var(--c); background: color-mix(in srgb, var(--c) 10%, #fff); }
.cat-pick[aria-pressed="true"] .box { background: var(--c) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23fff' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m3.5 8.5 3 3 6-7'/%3E%3C/svg%3E") center / 13px no-repeat; }
.cat-name { flex: 1; min-width: 0; }
.cat-n { color: var(--muted); font-size: .78rem; font-weight: 500; }
.cat-pick.none .cat-name { opacity: .45; }
.cat-item-sub .cat-pick { padding-right: 4px; }
.cat-toggle { position: absolute; top: 4px; right: 0; width: 32px; height: 32px; border: 0; border-radius: 8px; background: transparent; cursor: pointer; }
.cat-toggle::before { content: ""; display: block; margin: auto; width: 8px; height: 8px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted);
  transform: translateY(-2px) rotate(45deg); transition: transform .15s; }
.cat-toggle[aria-expanded="true"]::before { transform: translateY(2px) rotate(-135deg); }
.cat-toggle:hover { background: var(--surface-2); }
.linklike.more { margin-top: 8px; font-size: .86rem; }
.chip {
  font: inherit; font-size: .86rem; font-weight: 600; padding: .42em .9em; border-radius: 999px; border: 0;
  background: var(--surface-2); color: var(--ink); cursor: pointer; text-decoration: none;
  transition: background .12s ease, color .12s ease, box-shadow .12s ease;
}
.chip:hover { background: #e3e7ec; }
.chip.on { background: var(--ink); color: #fff; box-shadow: 0 4px 10px rgba(16, 24, 40, .18); }
.chip-sub { --c: var(--brand); font-size: .82rem; background: color-mix(in srgb, var(--c) 13%, #fff); color: var(--ink); }
.chip-sub:hover { background: color-mix(in srgb, var(--c) 22%, #fff); }
.chip-sub.on { background: var(--c); color: #fff; }
.chip[hidden] { display: none; }
.dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: var(--c); margin-right: 5px; vertical-align: 1px; }
.chip.on .dot { box-shadow: 0 0 0 2px #fff; }
input[type=text], input[type=search], input[type=email], input[type=password], input[type=url], input[type=number],
input:not([type]), select, textarea {
  font: inherit; width: 100%; padding: .62em .85em; border: 1px solid var(--line); border-radius: var(--radius-sm);
  background: var(--surface); color: var(--ink); transition: border-color .12s ease, box-shadow .12s ease;
}
textarea { resize: vertical; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px rgba(14, 143, 110, .15); }
.chip:focus-visible, .btn:focus-visible { outline: 3px solid rgba(14, 143, 110, .35); outline-offset: 2px; }
.check { display: flex; gap: 8px; align-items: center; margin: .5em 0; cursor: pointer; font-size: .92rem; }
.check input { width: 18px; height: 18px; accent-color: var(--brand); }
fieldset { border: 0; padding: 0; margin: 0 0 22px; }
legend { font-weight: 700; margin-bottom: 10px; font-size: .74rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }

/* ---------- flashes ---------- */
.flashes { max-width: 1100px; margin: 14px auto 0; padding: 0 16px; }
.flash { padding: .75em 1.1em; border-radius: var(--radius-sm); margin: 0 0 8px; background: var(--brand-soft); color: #0b5c47; font-weight: 500; }
.flash-error { background: #fdecea; color: #8a1c13; }

/* ---------- explore page (map + filters + list) ---------- */
.explore {
  display: grid; grid-template-columns: 300px 1fr minmax(340px, 430px); grid-template-rows: auto minmax(0, 1fr);
  grid-template-areas: "bar bar bar" "panel map results";
  height: calc(100vh - var(--header)); height: calc(100dvh - var(--header));
}
/* thin top bar: search, date, distance (the last two open a small menu) */
.toolbar { grid-area: bar; display: flex; gap: 8px; align-items: center; padding: 8px 14px;
  background: var(--surface); border-bottom: 1px solid var(--line); position: relative; z-index: 1200; }
.toolbar .search { margin: 0; flex: 0 1 360px; }
.toolbar .search input { padding-top: .45em; padding-bottom: .45em; }
.pop { position: relative; }
.day-wx { font-weight: 600; font-size: .86em; opacity: .9; }
.day-wx:empty { display: none; }
.pop-title small { text-transform: none; letter-spacing: 0; font-weight: 500; margin-left: 4px; }
.tool-btn { display: inline-flex; gap: 6px; align-items: center; white-space: nowrap; font: inherit; font-size: .9rem; font-weight: 600;
  padding: .45em .95em; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); cursor: pointer; }
.tool-btn:hover { background: var(--surface-2); }
.tool-btn span { max-width: 240px; overflow: hidden; text-overflow: ellipsis; }
.tool-btn.on { background: var(--ink); border-color: var(--ink); color: #fff; }
.tool-btn[aria-expanded="true"] { box-shadow: 0 0 0 3px rgba(14, 143, 110, .25); }
.pop-box { position: absolute; top: calc(100% + 8px); left: 0; width: 340px; max-width: calc(100vw - 24px); padding: 14px 16px;
  background: var(--surface); border-radius: var(--radius); box-shadow: 0 12px 32px rgba(16, 24, 40, .18); }
.pop-title { margin: 0 0 10px; font-size: .74rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.cat-field { position: relative; }
.cat-field .reset { position: absolute; top: -30px; right: 0; font-size: .84rem; }
.panel { grid-area: panel; overflow-y: auto; padding: 20px 18px; background: var(--surface); border-right: 1px solid var(--line); }
.panel-head { display: flex; justify-content: space-between; align-items: baseline; }
.panel-head h2 { margin: 0 0 14px; font-size: 1.25rem; font-weight: 800; }
.search { display: block; margin-bottom: 20px; }
.search input { background: var(--surface-2); border-color: transparent; padding-left: 2.3em;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%236b7280' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='7' cy='7' r='5'/%3E%3Cpath d='m11 11 3.5 3.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: .85em center; }
.search input:focus { background-color: var(--surface); }
.results { grid-area: results; overflow-y: auto; padding: 0 14px 24px; min-width: 0; }
.mapwrap { grid-area: map; position: relative; }
#map { position: absolute; inset: 12px 0 12px 12px; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.results-bar {
  position: sticky; top: 0; z-index: 5; display: flex; align-items: center; gap: 10px; padding: 14px 2px 12px;
  background: linear-gradient(var(--bg) 80%, rgba(245, 246, 248, 0)); margin-bottom: 4px;
}
#toggle-filters, .panel-done { display: none; }
.count { font-weight: 800; font-size: 1.05rem; }
.sort { margin-left: auto; font-size: .86rem; color: var(--muted); display: flex; gap: 6px; align-items: center; }
.sort select { width: auto; padding: .35em .6em; font-size: .86rem; border-radius: 999px; background: var(--surface); }
.empty { color: var(--muted); text-align: center; padding: 40px 10px; }

.origin { display: flex; flex-direction: column; gap: 8px; }
.address-row, .paste-row { display: flex; gap: 6px; }
.suggestions { list-style: none; margin: 0; padding: 4px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); max-height: 240px; overflow: auto; box-shadow: var(--shadow); }
.suggestions li + li { border-top: 1px solid var(--line); }
.suggestions button { all: unset; display: block; padding: .55em .7em; cursor: pointer; font-size: .86rem; border-radius: 8px; }
.suggestions button:hover, .suggestions button:focus { background: var(--brand-soft); }
.suggestions .hint { padding: .5em .7em; margin: 0; }
.origin-label { margin: 0; font-size: .9rem; font-weight: 600; }
.range { display: block; margin-top: 14px; font-size: .9rem; }
.range input { width: 100%; accent-color: var(--brand); }

/* cards */
.cards { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.card {
  display: grid; grid-template-columns: 46px minmax(0, 1fr) auto; gap: 12px; padding: 14px; border-radius: var(--radius);
  background: var(--surface); box-shadow: var(--shadow); cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease;
}
.card:hover, .card.active { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.card.active { box-shadow: var(--shadow-lg), 0 0 0 2px var(--c, var(--brand)); }
.card-icon {
  width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; font-size: 1.35rem;
  background: color-mix(in srgb, var(--c, var(--brand)) 14%, white);
}
.card h3 { margin: 0; font-size: 1rem; font-weight: 700; }
.card h3 a { color: var(--ink); text-decoration: none; }
.card h3 a:hover { color: var(--brand); }
.meta { color: var(--muted); font-size: .82rem; margin: 2px 0 0; }
.summary { margin: 6px 0 0; font-size: .9rem; color: #374151; }
.badges { display: flex; flex-wrap: wrap; gap: 4px; margin: 10px 0 0; }
.badge { font-size: .74rem; font-weight: 600; padding: .2em .6em; border-radius: 999px; background: var(--surface-2); color: #4b5563; white-space: nowrap; }
.badge-rain { background: var(--rain-soft); color: var(--rain); }
.badge-free { background: var(--brand-soft); color: var(--free); }
.card-side { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; text-align: right; font-size: .88rem; white-space: nowrap; }
.wx { font-weight: 700; }
.wx small { font-weight: 500; color: var(--muted); }
.wx-rain { color: var(--rain); }
.drive { font-weight: 700; color: var(--ink); background: var(--surface-2); padding: .15em .55em; border-radius: 999px; }

/* map pins */
.leaflet-tile-pane { filter: saturate(.75) contrast(.97) brightness(1.03); }
.pin-wrap { background: none; border: 0; }
.pin {
  width: 34px; height: 34px; border-radius: 50% 50% 50% 6px; transform: rotate(-45deg);
  display: grid; place-items: center; background: var(--c, var(--brand)); border: 3px solid #fff;
  box-shadow: 0 4px 10px rgba(16, 24, 40, .3); font-size: 15px; transition: transform .12s ease;
}
.pin > i { transform: rotate(45deg); font-style: normal; line-height: 1; }
.pin-wrap:hover .pin { transform: rotate(-45deg) scale(1.12); }
.pin-active { transform: rotate(-45deg) scale(1.2); box-shadow: 0 0 0 4px rgba(255, 122, 89, .45), 0 6px 14px rgba(16, 24, 40, .35); }
.cluster {
  width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: .92rem;
  background: var(--ink); color: var(--ink); border: 2px solid #fff; box-shadow: 0 4px 12px rgba(16, 24, 40, .3);
}
.cluster b { width: 26px; height: 26px; border-radius: 50%; background: #fff; display: grid; place-items: center; font-size: .82rem; }
.pin-home { background: #fff; border-color: var(--accent); }
.leaflet-container { font: inherit; background: #eef1f4; }
.leaflet-popup-content-wrapper { border-radius: var(--radius); box-shadow: var(--shadow-lg); padding: 2px; }
.leaflet-popup-content { margin: 12px 14px; }
.leaflet-popup-tip { box-shadow: none; }
.leaflet-bar { border: 0 !important; box-shadow: var(--shadow) !important; border-radius: var(--radius-sm) !important; overflow: hidden; }
.leaflet-bar a { border-bottom-color: var(--line) !important; color: var(--ink) !important; }
.popup { font-size: .88rem; line-height: 1.5; }
.popup strong { font-size: 1rem; font-weight: 800; }
.popup .meta { font-size: .82rem; }

/* ---------- detail page ---------- */
.page { padding: 20px 16px 40px; }
.detail { max-width: 1100px; margin: 0 auto; }
.back { margin: 0 0 10px; font-size: .9rem; font-weight: 600; }
.back a { text-decoration: none; }
.detail-head .meta { font-size: 1rem; }
.tags { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; padding: 0; margin: 12px 0 0; }
.tag { padding: .3em .85em; border-radius: 999px; background: color-mix(in srgb, var(--c, var(--brand)) 13%, white); font-size: .86rem; font-weight: 600; }
.tag-rain { background: var(--rain-soft); color: var(--rain); }
.tag-free { background: var(--brand-soft); color: var(--free); }
.detail-grid { display: grid; grid-template-columns: 1fr 340px; gap: 32px; margin-top: 20px; }
.detail-grid > aside { background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); padding: 16px; align-self: start; }
.lead { font-size: 1.15rem; margin-top: 0; color: #374151; }
.prose { white-space: normal; }
.tips { background: var(--accent-soft); border-radius: var(--radius); padding: 6px 20px 12px; margin: 22px 0; }
.forecast { margin-top: 28px; }
.days { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(7, minmax(78px, 1fr)); gap: 8px; overflow-x: auto; }
.day { background: var(--surface); border-radius: 14px; box-shadow: var(--shadow); padding: 12px 6px; text-align: center; display: flex; flex-direction: column; gap: 2px; }
.day-rain { background: var(--rain-soft); }
.day-name { font-size: .78rem; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }
.day-icon { font-size: 1.6rem; }
.day-temp { font-weight: 800; }
.day-temp small { font-weight: 500; color: var(--muted); }
.day-rain-prob { font-size: .78rem; color: var(--rain); font-weight: 600; }
.mini-map { height: 240px; border-radius: var(--radius-sm); overflow: hidden; margin-bottom: 14px; }
.facts { display: grid; grid-template-columns: auto 1fr; gap: 8px 14px; margin: 16px 0; font-size: .92rem; }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; font-weight: 600; }
.links { list-style: none; padding: 0; margin: 0 0 16px; display: flex; flex-direction: column; gap: 6px; }
.links a { display: block; padding: .55em .8em; border-radius: var(--radius-sm); background: var(--surface-2); color: var(--ink); text-decoration: none; font-weight: 600; font-size: .9rem; }
.links a:hover { background: #e3e7ec; }

/* ---------- admin ---------- */
.narrow { max-width: 560px; margin: 32px auto; }
.card-box { background: var(--surface); padding: 24px 28px; border-radius: var(--radius); box-shadow: var(--shadow); }
.admin { max-width: 1200px; margin: 0 auto; }
.admin-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px; }
.admin-head h1 small { color: var(--muted); font-weight: 500; font-size: 1rem; }
.actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.add-link { display: inline-flex; gap: 6px; flex-wrap: wrap; }
.add-link input { min-width: 260px; flex: 1; border-radius: 999px; }
.admin-filter { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin: 16px 0; }
.admin-filter input { max-width: 260px; border-radius: 999px; }
.table-scroll { overflow-x: auto; border-radius: var(--radius); box-shadow: var(--shadow); }
.table { width: 100%; border-collapse: collapse; background: var(--surface); }
.table th, .table td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: middle; font-size: .92rem; }
.table th { font-size: .74rem; color: var(--muted); font-weight: 700; text-transform: uppercase; letter-spacing: .06em; background: #fafbfc; }
.table tr:hover td { background: #fafbfc; }
.table tr.muted td { opacity: .55; }
.warn { color: #b54708; }
.form label { display: block; margin-bottom: 14px; font-size: .88rem; font-weight: 700; }
.form label input, .form label select, .form label textarea { margin-top: 5px; font-weight: 400; }
.form label.check { font-weight: 500; display: flex; }
.edit-form fieldset { background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); padding: 14px 16px 4px; }
.edit-form legend { float: left; width: 100%; }
.edit-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.row { display: flex; gap: 12px; }
.row > label { flex: 1; }
.chip-check { display: inline-flex !important; gap: 6px; align-items: center; padding: .35em .8em; border-radius: 999px; background: var(--surface-2); font-weight: 600 !important; font-size: .84rem !important; margin: 0 !important; cursor: pointer; }
.chip-check:has(input:checked) { background: var(--brand-soft); box-shadow: inset 0 0 0 1.5px var(--brand); }
.chip-check input { margin: 0 !important; width: auto; accent-color: var(--brand); }
.cat-groups { clear: both; display: flex; flex-wrap: wrap; gap: 8px; padding-bottom: 12px; }
.cat-group.has-subs { flex-basis: 100%; display: flex; flex-direction: column; align-items: flex-start; gap: 8px;
  padding: 10px 12px; border-radius: var(--radius-sm); background: var(--surface-2); }
.cat-group.has-subs > .chip-check { background: var(--surface); }
.cat-subs { display: flex; flex-wrap: wrap; gap: 6px; padding-left: 14px; border-left: 2px solid var(--line); }
.chip-check.chip-check-sub { background: var(--surface); font-weight: 500 !important; font-size: .8rem !important; }
.edit-map { height: 380px; border-radius: var(--radius); overflow: hidden; margin: 8px 0 12px; box-shadow: var(--shadow); }
.form-actions { display: flex; gap: 10px; margin: 18px 0; position: sticky; bottom: 0; background: linear-gradient(rgba(245, 246, 248, 0), var(--bg) 30%); padding: 18px 0 12px; }
.danger-zone { margin: 30px 0; padding-top: 16px; border-top: 1px solid var(--line); }
.cat-list { display: flex; flex-direction: column; gap: 8px; margin-bottom: 24px; }
.cat-row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; background: var(--surface); padding: 10px 12px; border-radius: var(--radius-sm); box-shadow: var(--shadow); }
.cat-row input:not([type=color]):not(.w-icon):not(.w-num), .cat-row select { flex: 1; min-width: 160px; width: auto; }
.cat-row .w-icon { width: 60px; text-align: center; }
.cat-row .w-num { width: 80px; }
.cat-row input[type=color] { width: 44px; height: 38px; padding: 3px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); }
.cat-row .count { color: var(--muted); font-size: .86rem; min-width: 52px; }
.steps li { margin-bottom: 6px; }

/* Instagram posts about a location: bubbles in the map popup and on the detail page */
.ig-bubbles { display: flex; flex-direction: column; gap: 6px; margin: 10px 0; }
.ig-bubble {
  display: block; padding: 7px 12px; border-radius: 14px; text-decoration: none; color: var(--ink);
  border: 2px solid transparent; font-size: .84rem; line-height: 1.35;
  background: linear-gradient(var(--surface), var(--surface)) padding-box,
              linear-gradient(45deg, #f9ce34, #ee2a7b, #6228d7) border-box;
  transition: transform .12s ease;
}
.ig-bubble:hover { transform: translateY(-1px); }
.ig-bubble b { display: block; font-weight: 700; }
.ig-bubble span { display: block; color: var(--muted); }
.h-small { font-size: .74rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin: 18px 0 6px; }

/* ---------- smaller screens ---------- */
@media (max-width: 1199px) {
  .explore { grid-template-columns: 290px 1fr; grid-template-rows: auto 45vh minmax(0, 1fr); grid-template-areas: "bar bar" "panel map" "panel results"; }
  .mapwrap { padding: 12px 12px 0 12px; }
  #map { inset: 12px 12px 0 12px; }
  .results { padding-top: 0; }
}
@media (max-width: 899px) {
  .site-header { padding: 0 14px; }
  .explore { display: flex; flex-direction: column; height: auto; }
  .toolbar { order: 0; flex-wrap: wrap; padding: 8px 12px; }
  .toolbar .search { flex: 1 1 100%; }
  .pop { position: static; }
  .pop-box { left: 12px; right: 12px; width: auto; }
  .mapwrap { order: 1; height: 46vh; height: 46dvh; padding: 0; }
  #map { inset: 0; border-radius: 0; box-shadow: none; }
  .results { order: 2; overflow: visible; padding: 0 12px 24px; }
  .results-bar { top: var(--header); gap: 8px; }
  .sort-label { display: none; }
  .sort select { max-width: 150px; }
  #toggle-filters { display: inline-flex; }
  .panel {
    display: none; position: fixed; inset: var(--header) 0 0 0; z-index: 1100; border: 0; padding-bottom: 80px;
  }
  .filters-open .panel { display: block; }
  .filters-open { overflow: hidden; }
  .panel-done { display: inline-flex; position: sticky; bottom: 12px; margin-top: 8px; }
  .detail-grid, .edit-grid { grid-template-columns: 1fr; }
  .days { grid-template-columns: repeat(7, 78px); }
  .row { flex-direction: column; gap: 0; }
}

.back { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.edit-btn { text-decoration: none; }
.wx-cell span { display: inline-flex; align-items: center; gap: 3px; padding: 2px 7px 2px 5px; border-radius: 999px; background: rgba(255, 255, 255, .85);
  box-shadow: 0 1px 4px rgba(16, 24, 40, .18); font-size: .95rem; white-space: nowrap; }
.wx-cell b { font-size: .74rem; font-weight: 700; color: var(--ink); }
.wx-legend { flex-direction: column; gap: 3px; max-width: none; }
.wx-legend[hidden] { display: none; }
.parking-pin { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 7px; background: #1565c0; color: #fff;
  font-weight: 800; border: 2px solid #fff; box-shadow: 0 2px 6px rgba(16, 24, 40, .35); }
/* header menu */
.menu { position: relative; order: 99; }
.menu-btn { font-size: 1.25rem; line-height: 1; width: 40px; height: 40px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); cursor: pointer; }
.menu-btn:hover, .menu-btn[aria-expanded="true"] { background: var(--surface-2); }
.menu-list { position: absolute; right: 0; top: calc(100% + 8px); z-index: 2000; min-width: 230px; padding: 6px; background: var(--surface);
  border-radius: var(--radius); box-shadow: 0 12px 32px rgba(16, 24, 40, .18); display: flex; flex-direction: column; }
.menu-list[hidden] { display: none; }
.menu-list a, .menu-list .linklike { display: block; width: 100%; text-align: left; padding: .6em .8em; border-radius: 10px; color: var(--ink); text-decoration: none; font-weight: 600; }
.menu-list a:hover, .menu-list .linklike:hover { background: var(--surface-2); }
.menu-list hr { border: 0; border-top: 1px solid var(--line); margin: 4px 6px; }
.child-years { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 0 12px; }
.section-title { font-size: 1rem; margin: 0 6px; white-space: nowrap; }
.pop[hidden] { display: none; }
fieldset[hidden] { display: none; }
.near-bar { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; margin: 0 0 10px; padding: 10px 14px; border-radius: var(--radius-sm);
  background: #fff4e5; font-size: .92rem; }
.near-bar[hidden] { display: none; }
.badge-near { background: #fff4e5; color: #8a4b00; font-weight: 700; }
.near-btn { margin-top: 8px; width: 100%; justify-content: center; }
.promo { display: inline-block; padding: 8px 14px; border-radius: var(--radius-sm); background: #fde7f0; color: #8e1450; font-weight: 700; }
.promo small { font-weight: 500; }
.badge-promo { background: #fde7f0; color: #8e1450; font-weight: 700; }
.promo-line { color: #8e1450; font-weight: 700; }
.count-pill { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: var(--accent); color: #fff; font-size: .74rem; }
.task-list { list-style: none; padding: 0; margin: 0 0 24px; display: flex; flex-direction: column; gap: 8px; }
.task { display: flex; justify-content: space-between; gap: 12px; align-items: center; background: var(--surface); padding: 10px 14px; border-radius: var(--radius-sm); box-shadow: var(--shadow); }
.task form { display: flex; gap: 6px; flex: none; }
.task-list.done .task { opacity: .6; }
.pin-wx { position: absolute; top: -10px; right: -14px; width: 24px; height: 24px; display: grid; place-items: center; font-size: 15px;
  border-radius: 50%; background: #fff; box-shadow: 0 1px 4px rgba(16, 24, 40, .3); pointer-events: none; }
.brand-logo { height: 42px; width: auto; display: block; }
.pin-group .more { position: absolute; bottom: -8px; right: -16px; padding: 2px; border-radius: 999px; box-shadow: 0 1px 4px rgba(16, 24, 40, .3); }
.pin-group .more b { display: block; min-width: 22px; padding: 1px 6px; border-radius: 999px; background: #fff; color: var(--ink); font-size: .72rem; font-weight: 800; text-align: center; }
.popup-title { font-weight: 800; font-size: 1rem; color: var(--ink); text-decoration: none; }
.popup-title:hover { color: var(--brand); text-decoration: underline; }
.tool-btn[hidden] { display: none; }
.tool-btn small { font-weight: 500; opacity: .8; }

/* ---------- visual language from the map-and-heart logo ---------- */
:root {
  --bg: #f8f3e9;
  --surface: #fffdf8;
  --surface-2: #edf5eb;
  --ink: #173c2b;
  --muted: #647568;
  --line: #dce9db;
  --brand: #176b49;
  --brand-soft: #e2f1e4;
  --accent: #ef6d4e;
  --accent-soft: #fff0e9;
  --rain: #258eb8;
  --rain-soft: #e6f4fa;
  --free: #176b49;
  --sun: #f6bf32;
  --radius: 20px;
  --shadow: 0 2px 7px rgba(30, 72, 42, .05), 0 10px 24px rgba(30, 72, 42, .08);
  --shadow-lg: 0 4px 12px rgba(30, 72, 42, .08), 0 18px 42px rgba(30, 72, 42, .14);
  --header: 70px;
}

body {
  background: radial-gradient(circle at 12% 0, #fff9e8 0, transparent 29rem), var(--bg);
}

.site-header {
  padding: 0 22px;
  background: rgba(255, 253, 248, .9);
  border-bottom-color: var(--line);
  box-shadow: 0 4px 18px rgba(30, 72, 42, .04);
}

.brand {
  gap: 10px;
  font-size: 1.2rem;
  letter-spacing: -.03em;
}

.brand-logo {
  height: 48px;
  width: auto;
  filter: drop-shadow(0 5px 7px rgba(23, 107, 73, .18));
}

.toolbar {
  padding: 9px 14px;
  background: linear-gradient(90deg, #fffdf8, #f4f8ee);
}

.tool-btn,
.menu-btn {
  box-shadow: 0 2px 5px rgba(30, 72, 42, .04);
}

.tool-btn:hover,
.menu-btn:hover,
.menu-btn[aria-expanded="true"] {
  background: #fff7e7;
  border-color: #efd89d;
}

.panel {
  background: linear-gradient(180deg, #f1f8ef, var(--surface));
}

#map {
  border: 1px solid #cfe0cf;
  box-shadow: 0 8px 26px rgba(30, 72, 42, .12);
}

.leaflet-tile-pane {
  filter: saturate(.78) contrast(.96) brightness(1.06) sepia(.04);
}

.leaflet-container {
  background: #edf5eb;
}

.card {
  border: 1px solid rgba(220, 233, 219, .92);
  box-shadow: var(--shadow);
}

.card:hover,
.card.active {
  box-shadow: var(--shadow-lg);
}

.card.active {
  box-shadow: var(--shadow-lg), 0 0 0 2px var(--c, var(--brand));
}

.card-icon {
  background: color-mix(in srgb, var(--c, var(--brand)) 15%, #fffdf8);
}

.badge {
  background: #f2f6ee;
  color: #46604d;
}

.badge-near,
.near-bar {
  background: #fff6dc;
  color: #775a11;
}

.pin-active {
  box-shadow: 0 0 0 4px rgba(246, 191, 50, .56), 0 6px 14px rgba(16, 24, 40, .35);
}

@media (max-width: 899px) {
  .site-header { padding: 0 14px; }
  .brand-logo { height: 44px; }
  #map { border: 0; box-shadow: none; }
}
