/* Züri Früchte – styles for all pages
   Layout: slim header, content column (max 1320px), footer.
   The colours follow the season (set on <html data-season>): spring blossom, summer cherry,
   autumn orchard, winter frost. Each season has a light and a dark palette.
   The tree drawing (art.js) uses --sky, --sun, --ground, --bark, --leaf1-3, --blossom, --fruitA/B. */
:root {
  --f-display: "Young Serif", Georgia, "Times New Roman", serif;
  --f-body: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-mono: "IBM Plex Mono", ui-monospace, Menlo, Consolas, monospace;
  --radius: 14px;
  --ok: #2f7a3a; --ok-soft: #e1f0e2; --err: #b42318; --err-soft: #fbe4e1; --cook: #c2410c; --bg: #f7ede1; --panel: #fdf7ef; --fg: #2c2018; --muted: #6e5c4e; --line: #e9d6c2; --accent: #ae4a1f; --accent-soft: #f6e0d2; --hl: #cf8f12; --hl-soft: #fbecc8; --warn-soft: #fbecc8; --sky: #fbe2c6; --sun: #f6a04a; --cloud: #fff6ec; --ground: #c7b46a; --ground2: #b39c52; --bark: #6e472f; --bark2: #4f3220; --leaf1: #e08a2e; --leaf2: #f2b33e; --leaf3: #c4561f; --blossom: #ffffff; --blossom2: #f2a7bb; --fruitA: #c9302c; --fruitB: #e8b62a; --stem: #4f3220; --snow: #ffffff; --berry: #c8213a; color-scheme: light;
}
:root[data-season="spring"] { --ok: #2f7a3a; --ok-soft: #e1f0e2; --err: #b42318; --err-soft: #fbe4e1; --cook: #c2410c; --bg: #f8f2ef; --panel: #fffaf7; --fg: #2a2321; --muted: #6d5f5a; --line: #ecdcd6; --accent: #3f7a3a; --accent-soft: #e4efda; --hl: #d9708c; --hl-soft: #fbe3ea; --warn-soft: #fdf0dc; --sky: #fde7ec; --sun: #ffd77a; --cloud: #ffffff; --ground: #a9d18a; --ground2: #8cc06e; --bark: #7a5238; --bark2: #5d3c27; --leaf1: #8cc76a; --leaf2: #b5dd8f; --leaf3: #6ba653; --blossom: #ffffff; --blossom2: #f2a7bb; --fruitA: #c8213a; --fruitB: #e6c22a; --stem: #5d3c27; --snow: #ffffff; --berry: #c8213a; color-scheme: light; }
:root[data-season="summer"] { --ok: #2f7a3a; --ok-soft: #e1f0e2; --err: #b42318; --err-soft: #fbe4e1; --cook: #c2410c; --bg: #fbf4e4; --panel: #fffbf2; --fg: #2b2117; --muted: #6e5f4d; --line: #eedfbf; --accent: #b3243b; --accent-soft: #f8e0e1; --hl: #e9a412; --hl-soft: #fdf0c8; --warn-soft: #fdf0c8; --sky: #fff1c7; --sun: #ffc93c; --cloud: #ffffff; --ground: #c5d67a; --ground2: #a9c25c; --bark: #7a5238; --bark2: #5d3c27; --leaf1: #4f9a3c; --leaf2: #79b955; --leaf3: #3a7b2c; --blossom: #ffffff; --blossom2: #f2a7bb; --fruitA: #d01f3c; --fruitB: #e6c22a; --stem: #5d3c27; --snow: #ffffff; --berry: #c8213a; color-scheme: light; }
:root[data-season="autumn"] { --ok: #2f7a3a; --ok-soft: #e1f0e2; --err: #b42318; --err-soft: #fbe4e1; --cook: #c2410c; --bg: #f7ede1; --panel: #fdf7ef; --fg: #2c2018; --muted: #6e5c4e; --line: #e9d6c2; --accent: #ae4a1f; --accent-soft: #f6e0d2; --hl: #cf8f12; --hl-soft: #fbecc8; --warn-soft: #fbecc8; --sky: #fbe2c6; --sun: #f6a04a; --cloud: #fff6ec; --ground: #c7b46a; --ground2: #b39c52; --bark: #6e472f; --bark2: #4f3220; --leaf1: #e08a2e; --leaf2: #f2b33e; --leaf3: #c4561f; --blossom: #ffffff; --blossom2: #f2a7bb; --fruitA: #c9302c; --fruitB: #e8b62a; --stem: #4f3220; --snow: #ffffff; --berry: #c8213a; color-scheme: light; }
:root[data-season="winter"] { --ok: #2f7a3a; --ok-soft: #e1f0e2; --err: #b42318; --err-soft: #fbe4e1; --cook: #c2410c; --bg: #edf1f4; --panel: #f9fbfc; --fg: #1f262c; --muted: #59656f; --line: #d5dde4; --accent: #2f5d50; --accent-soft: #dcebe5; --hl: #b6283c; --hl-soft: #f6dfe2; --warn-soft: #f4ecd9; --sky: #dfe9f1; --sun: #f4f1e4; --cloud: #ffffff; --ground: #f2f6f9; --ground2: #e2eaf0; --bark: #5b4334; --bark2: #3f2e23; --leaf1: #4f8a35; --leaf2: #79b955; --leaf3: #3a7b2c; --blossom: #ffffff; --blossom2: #f2a7bb; --fruitA: #c8213a; --fruitB: #e6c22a; --stem: #3f2e23; --snow: #ffffff; --berry: #c41f36; color-scheme: light; }
@media (prefers-color-scheme: dark) {
  :root[data-season="spring"]:not([data-theme="light"]) { --ok: #7fd08a; --ok-soft: #17301c; --err: #ff8f80; --err-soft: #3a1d1a; --cook: #fb923c; --bg: #1b1719; --panel: #241e20; --fg: #f3eae7; --muted: #b5a39f; --line: #3a2f32; --accent: #9fd48f; --accent-soft: #283a25; --hl: #f0a3b6; --hl-soft: #3b2530; --warn-soft: #352a17; --sky: #2b2430; --sun: #e8c36a; --cloud: #3e3644; --ground: #3d5a33; --ground2: #33502b; --bark: #5a3d2a; --bark2: #3e2a1d; --leaf1: #5f9a49; --leaf2: #7fb563; --leaf3: #4a7d39; --blossom: #f6e8ec; --blossom2: #e08aa3; --fruitA: #e0485e; --fruitB: #e6c22a; --stem: #3e2a1d; --snow: #e8eef2; --berry: #e0485e; color-scheme: dark; }
  :root[data-season="summer"]:not([data-theme="light"]) { --ok: #7fd08a; --ok-soft: #17301c; --err: #ff8f80; --err-soft: #3a1d1a; --cook: #fb923c; --bg: #1c1812; --panel: #262017; --fg: #f6eddc; --muted: #b9a98f; --line: #3e3425; --accent: #f28c9b; --accent-soft: #46262b; --hl: #f5c451; --hl-soft: #3d3218; --warn-soft: #3d3218; --sky: #2c2618; --sun: #e9b53d; --cloud: #3b3424; --ground: #4c5a2c; --ground2: #3f4d24; --bark: #5a3d2a; --bark2: #3e2a1d; --leaf1: #3f7d30; --leaf2: #5c9a42; --leaf3: #2f6424; --blossom: #f6e8ec; --blossom2: #e08aa3; --fruitA: #ec4560; --fruitB: #e6c22a; --stem: #3e2a1d; --snow: #e8eef2; --berry: #ec4560; color-scheme: dark; }
  :root[data-season="autumn"]:not([data-theme="light"]) { --ok: #7fd08a; --ok-soft: #17301c; --err: #ff8f80; --err-soft: #3a1d1a; --cook: #fb923c; --bg: #1d1612; --panel: #271e18; --fg: #f5e9dd; --muted: #bba692; --line: #403127; --accent: #f19a62; --accent-soft: #45291b; --hl: #e8b94a; --hl-soft: #3f3019; --warn-soft: #3f3019; --sky: #2e2219; --sun: #d98a3e; --cloud: #3d2f25; --ground: #4f4528; --ground2: #433a20; --bark: #553823; --bark2: #3a2617; --leaf1: #b86a22; --leaf2: #d18f2c; --leaf3: #94431a; --blossom: #f6e8ec; --blossom2: #e08aa3; --fruitA: #e0483f; --fruitB: #e8b62a; --stem: #3a2617; --snow: #e8eef2; --berry: #e0485e; color-scheme: dark; }
  :root[data-season="winter"]:not([data-theme="light"]) { --ok: #7fd08a; --ok-soft: #17301c; --err: #ff8f80; --err-soft: #3a1d1a; --cook: #fb923c; --bg: #12171b; --panel: #1a2126; --fg: #e6edf2; --muted: #9eaab4; --line: #2c363e; --accent: #8fcbb6; --accent-soft: #1f3530; --hl: #f08493; --hl-soft: #3a2128; --warn-soft: #2f2a1c; --sky: #1b2630; --sun: #c9cdbf; --cloud: #2b3843; --ground: #c9d3db; --ground2: #aebbc6; --bark: #4a372b; --bark2: #33251c; --leaf1: #3f7d30; --leaf2: #5c9a42; --leaf3: #2f6424; --blossom: #f6e8ec; --blossom2: #e08aa3; --fruitA: #ec4560; --fruitB: #e6c22a; --stem: #33251c; --snow: #eef3f7; --berry: #ef4d63; color-scheme: dark; }
}
:root[data-season="spring"][data-theme="dark"] { --ok: #7fd08a; --ok-soft: #17301c; --err: #ff8f80; --err-soft: #3a1d1a; --cook: #fb923c; --bg: #1b1719; --panel: #241e20; --fg: #f3eae7; --muted: #b5a39f; --line: #3a2f32; --accent: #9fd48f; --accent-soft: #283a25; --hl: #f0a3b6; --hl-soft: #3b2530; --warn-soft: #352a17; --sky: #2b2430; --sun: #e8c36a; --cloud: #3e3644; --ground: #3d5a33; --ground2: #33502b; --bark: #5a3d2a; --bark2: #3e2a1d; --leaf1: #5f9a49; --leaf2: #7fb563; --leaf3: #4a7d39; --blossom: #f6e8ec; --blossom2: #e08aa3; --fruitA: #e0485e; --fruitB: #e6c22a; --stem: #3e2a1d; --snow: #e8eef2; --berry: #e0485e; color-scheme: dark; }
:root[data-season="summer"][data-theme="dark"] { --ok: #7fd08a; --ok-soft: #17301c; --err: #ff8f80; --err-soft: #3a1d1a; --cook: #fb923c; --bg: #1c1812; --panel: #262017; --fg: #f6eddc; --muted: #b9a98f; --line: #3e3425; --accent: #f28c9b; --accent-soft: #46262b; --hl: #f5c451; --hl-soft: #3d3218; --warn-soft: #3d3218; --sky: #2c2618; --sun: #e9b53d; --cloud: #3b3424; --ground: #4c5a2c; --ground2: #3f4d24; --bark: #5a3d2a; --bark2: #3e2a1d; --leaf1: #3f7d30; --leaf2: #5c9a42; --leaf3: #2f6424; --blossom: #f6e8ec; --blossom2: #e08aa3; --fruitA: #ec4560; --fruitB: #e6c22a; --stem: #3e2a1d; --snow: #e8eef2; --berry: #ec4560; color-scheme: dark; }
:root[data-season="autumn"][data-theme="dark"] { --ok: #7fd08a; --ok-soft: #17301c; --err: #ff8f80; --err-soft: #3a1d1a; --cook: #fb923c; --bg: #1d1612; --panel: #271e18; --fg: #f5e9dd; --muted: #bba692; --line: #403127; --accent: #f19a62; --accent-soft: #45291b; --hl: #e8b94a; --hl-soft: #3f3019; --warn-soft: #3f3019; --sky: #2e2219; --sun: #d98a3e; --cloud: #3d2f25; --ground: #4f4528; --ground2: #433a20; --bark: #553823; --bark2: #3a2617; --leaf1: #b86a22; --leaf2: #d18f2c; --leaf3: #94431a; --blossom: #f6e8ec; --blossom2: #e08aa3; --fruitA: #e0483f; --fruitB: #e8b62a; --stem: #3a2617; --snow: #e8eef2; --berry: #e0485e; color-scheme: dark; }
:root[data-season="winter"][data-theme="dark"] { --ok: #7fd08a; --ok-soft: #17301c; --err: #ff8f80; --err-soft: #3a1d1a; --cook: #fb923c; --bg: #12171b; --panel: #1a2126; --fg: #e6edf2; --muted: #9eaab4; --line: #2c363e; --accent: #8fcbb6; --accent-soft: #1f3530; --hl: #f08493; --hl-soft: #3a2128; --warn-soft: #2f2a1c; --sky: #1b2630; --sun: #c9cdbf; --cloud: #2b3843; --ground: #c9d3db; --ground2: #aebbc6; --bark: #4a372b; --bark2: #33251c; --leaf1: #3f7d30; --leaf2: #5c9a42; --leaf3: #2f6424; --blossom: #f6e8ec; --blossom2: #e08aa3; --fruitA: #ec4560; --fruitB: #e6c22a; --stem: #33251c; --snow: #eef3f7; --berry: #ef4d63; color-scheme: dark; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: radial-gradient(1100px 520px at 88% -8%, var(--hl-soft), transparent 62%) no-repeat, var(--bg); color: var(--fg); font-family: var(--f-body); font-size: 15px; line-height: 1.55; min-height: 100vh; display: flex; flex-direction: column; }
[hidden] { display: none !important; }
a { color: var(--accent); }
img { max-width: 100%; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
h1, h2, h3 { text-wrap: balance; }

.wrap { width: 100%; max-width: 1320px; margin: 0 auto; padding-inline: 16px; }
main { flex: 1; padding-block: 24px 56px; }
main > .wrap { display: grid; gap: 24px; }

/* ---------- Header ---------- */
.site-header { background: var(--panel); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 1000; }
.site-header .wrap { display: flex; align-items: center; gap: 16px; min-height: 58px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--fg); margin-right: auto; }
.brand svg { flex: none; }
.brand b { font-family: var(--f-display); font-weight: 400; font-size: 21px; line-height: 1; }
.brand small { display: block; font-size: 11.5px; color: var(--muted); letter-spacing: .02em; }
.site-nav { display: flex; align-items: center; gap: 4px; }
.site-nav a { color: var(--fg); text-decoration: none; font-weight: 500; padding: 7px 10px; border-radius: 7px; }
.site-nav a:hover { background: var(--accent-soft); }
.site-nav a[aria-current="page"] { color: var(--accent); }
.site-nav a.btn { color: var(--bg); }
.city-switch { width: auto; padding: 5px 8px; font-size: 13px; font-weight: 600; background: var(--panel); border-radius: 7px; }
.lang-switch { display: inline-flex; border: 1px solid var(--line); border-radius: 7px; overflow: hidden; }
.lang-switch button { font: 600 12px var(--f-body); letter-spacing: .04em; background: var(--panel); color: var(--muted); border: 0; padding: 6px 9px; cursor: pointer; }
.lang-switch button[aria-pressed="true"] { background: var(--fg); color: var(--bg); }
.menu-btn { display: none; font: 600 14px var(--f-body); background: none; border: 1px solid var(--line); color: var(--fg); border-radius: 7px; padding: 6px 10px; cursor: pointer; }
@media (max-width: 760px) {
  .menu-btn { display: inline-block; }
  .site-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--panel); border-bottom: 1px solid var(--line); flex-direction: column; align-items: stretch; padding: 8px 16px 16px; }
  .site-nav.open { display: flex; }
  .site-nav a { padding: 10px; }
}

.setup-banner { background: var(--warn-soft); color: var(--fg); border-bottom: 1px solid var(--line); padding: 10px 16px; font-size: 14px; text-align: center; }

/* ---------- Buttons & forms ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font: 600 15px var(--f-body); background: var(--accent); color: var(--bg); border: 1px solid var(--accent); border-radius: 999px; padding: 10px 20px; text-decoration: none; cursor: pointer; }
.btn:hover { filter: brightness(1.08); }
.btn.ghost { background: transparent; color: var(--fg); border-color: var(--line); }
.btn.small { font-size: 13px; padding: 5px 10px; }
.btn:disabled { opacity: .6; cursor: progress; }

.auth { max-width: 440px; width: 100%; margin: 0 auto; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.auth .card { padding: 28px 24px; display: grid; gap: 18px; }
.auth h1 { font-family: var(--f-display); font-weight: 400; font-size: 30px; line-height: 1.15; margin: 0; }
.auth .lede { margin: -8px 0 0; color: var(--muted); }
form { display: grid; gap: 14px; }
.field { display: grid; gap: 5px; }
.field label { font-weight: 600; font-size: 14px; }
.field .hint { font-size: 12.5px; color: var(--muted); }
input[type="text"], input[type="email"], input[type="password"], select {
  font: 15px var(--f-body); color: var(--fg); background: var(--bg); border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; width: 100%;
}
input:focus { border-color: var(--accent); outline: none; box-shadow: 0 0 0 3px var(--accent-soft); }
.check { display: grid; grid-template-columns: auto 1fr; gap: 10px; align-items: start; font-size: 14px; }
.check input { margin-top: 3px; width: 17px; height: 17px; accent-color: var(--accent); }
.form-links { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; font-size: 14px; }
.msg { padding: 10px 12px; border-radius: 8px; font-size: 14px; }
.msg.error { background: var(--err-soft); color: var(--err); }
.msg.ok { background: var(--ok-soft); color: var(--ok); }
.done { display: grid; gap: 8px; text-align: center; }
.done .big { font-size: 40px; line-height: 1; }

/* ---------- Landing ---------- */
.hero { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 32px; align-items: center; padding-block: 16px 8px; }
@media (max-width: 900px) { .hero { grid-template-columns: minmax(0, 1fr); } }
.hero-text h1 { font-family: var(--f-display); font-weight: 400; font-size: clamp(34px, 5.4vw, 60px); line-height: 1.04; margin: 0 0 14px; }

.cta { display: flex; flex-wrap: wrap; gap: 10px; }
.stats { display: flex; flex-wrap: wrap; gap: 28px; margin-top: 26px; }
.stats div { display: grid; }
.stats b { font: 500 26px var(--f-mono); line-height: 1.1; }
.stats span { font-size: 13px; color: var(--muted); }
.harvest { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 18px 16px 12px; min-width: 0; }
.harvest h2 { font: 600 11px var(--f-body); letter-spacing: .09em; text-transform: uppercase; color: var(--muted); margin: 0 0 12px; }
.harvest svg { display: block; width: 100%; height: auto; }
.harvest .ripe { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.chip { font: 500 12.5px var(--f-body); padding: 3px 9px; border-radius: 999px; background: var(--accent-soft); color: var(--fg); display: inline-flex; align-items: center; gap: 6px; }
.chip i { width: 9px; height: 9px; border-radius: 50%; display: inline-block; }
.features { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 900px) { .features { grid-template-columns: minmax(0, 1fr); } }
.features h3 { font-family: var(--f-display); font-weight: 400; font-size: 21px; margin: 0 0 6px; }
.features p { margin: 0; color: var(--muted); }
.respect { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 16px; align-items: center; background: var(--warn-soft); border: 1px solid var(--line); border-radius: 12px; padding: 18px 20px; }
.respect p { margin: 0; }
@media (max-width: 640px) { .respect { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Text pages (rules, legal) ---------- */
.prose { max-width: 72ch; }
.prose h1 { font-family: var(--f-display); font-weight: 400; font-size: clamp(30px, 4.4vw, 44px); line-height: 1.1; margin: 0 0 10px; }
.prose h2 { font-family: var(--f-display); font-weight: 400; font-size: 22px; margin: 28px 0 6px; }
.prose p, .prose li { color: var(--fg); }
.prose .lede { font-size: 17px; color: var(--muted); }
.rules { list-style: none; padding: 0; margin: 20px 0; display: grid; gap: 12px; counter-reset: r; }
.rules li { counter-increment: r; display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 4px 14px; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 16px; }
.rules li::before { content: counter(r); grid-row: span 2; font: 500 15px var(--f-mono); width: 30px; height: 30px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; }
.rules h2 { margin: 0; font-size: 19px; }
.rules p { margin: 0; }
.template-note { background: var(--warn-soft); border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; font-size: 14px; }
.ph { background: var(--accent-soft); padding: 0 4px; border-radius: 4px; }

/* ---------- Map page ---------- */
.app-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 16px; align-items: end; }
.app-head h1 { font-family: var(--f-display); font-weight: 400; font-size: clamp(28px, 4vw, 40px); line-height: 1.1; margin: 0; }
.hello { font-size: 13px; color: var(--muted); }
#lede { margin: 6px 0 0; color: var(--muted); max-width: 72ch; }
#lede b { color: var(--fg); font-weight: 600; }
.rules-note { font-size: 14px; background: var(--warn-soft); border: 1px solid var(--line); border-radius: 10px; padding: 10px 14px; }
.status { display: flex; align-items: center; gap: 10px; background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 14px 16px; }
.status.error { background: var(--err-soft); color: var(--err); }
.spinner { width: 18px; height: 18px; border: 2.5px solid var(--line); border-top-color: var(--accent); border-radius: 50%; animation: spin 0.9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.filters { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 6px 12px; align-items: center; }
@media (max-width: 640px) { .filters { grid-template-columns: minmax(0, 1fr); } }
.flabel { font: 600 11px var(--f-body); letter-spacing: .09em; text-transform: uppercase; color: var(--muted); }
.seasons { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 4px; }
.months { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 4px; }
@media (max-width: 640px) { .seasons { grid-template-columns: repeat(3, minmax(0, 1fr)); } .months { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
.sbtn, .mbtn { border: 1px solid var(--line); background: var(--panel); color: var(--fg); border-radius: 6px; cursor: pointer; display: grid; justify-items: center; text-align: center; }
.sbtn { font: 600 14px var(--f-body); padding: 7px 6px 6px; gap: 1px; }
.mbtn { font: 500 13px var(--f-body); padding: 8px 0 6px; gap: 2px; }
.sbtn small, .mbtn small { font: 400 11px var(--f-mono); color: var(--muted); }
.mbtn .now { width: 5px; height: 5px; border-radius: 50%; background: currentColor; opacity: .6; }
.sbtn[aria-pressed="true"] { background: var(--fg); border-color: var(--fg); color: var(--bg); }
.mbtn[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--bg); }
.sbtn[aria-pressed="true"] small, .mbtn[aria-pressed="true"] small { color: var(--bg); opacity: .85; }
.mbtn.inseason { background: var(--accent-soft); border-color: var(--accent); }
.controls { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; }
.controls select { width: auto; max-width: 100%; padding: 7px 10px; font-size: 14px; background: var(--panel); }
.count { font: 13px var(--f-mono); color: var(--muted); }

.main-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 16px; align-items: start; }
@media (max-width: 900px) { .main-grid { grid-template-columns: minmax(0, 1fr); } }
.mapbox { position: relative; isolation: isolate; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: var(--panel); height: min(74vh, 740px); min-height: 400px; }
#map { width: 100%; height: 100%; }
.leaflet-container { font-family: var(--f-body); background: var(--panel); }
.leaflet-control-layers { font-size: 13px; }
.locate-btn { display: grid !important; place-items: center; color: #333 !important; }
.toast { position: absolute; left: 50%; bottom: 16px; transform: translateX(-50%); z-index: 1000; background: var(--fg); color: var(--bg); padding: 8px 14px; border-radius: 8px; font-size: 13.5px; max-width: calc(100% - 32px); }

aside { display: grid; gap: 16px; min-width: 0; }
.card h2 { font: 600 11px var(--f-body); letter-spacing: .09em; text-transform: uppercase; color: var(--muted); margin: 0 0 8px; }
.detail h3 { font-family: var(--f-display); font-weight: 400; font-size: 22px; line-height: 1.2; margin: 0 0 2px; }
.detail .lat { font-style: italic; color: var(--muted); font-size: 13px; margin: 0 0 10px; }
.detail .chips { display: flex; flex-wrap: wrap; gap: 4px; margin: 0 0 10px; }
.detail .note { font-size: 13.5px; margin: 0 0 10px; }
.detail .access { display: grid; gap: 2px; font-size: 13.5px; background: var(--bg); border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; margin: 0 0 10px; }
.detail .access.flag { background: var(--warn-soft); }
.detail .access strong { font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.detail dl { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 3px 12px; margin: 0 0 12px; font-size: 13.5px; }
.detail dt { color: var(--muted); }
.detail dd { margin: 0; overflow-wrap: anywhere; }
.mono { font-family: var(--f-mono); font-size: 12.5px; }
.links { display: flex; flex-wrap: wrap; gap: 8px; }
.links a { font: 600 13px var(--f-body); color: var(--accent); text-decoration: none; border: 1px solid var(--line); padding: 6px 10px; border-radius: 7px; }
.empty { color: var(--muted); font-size: 14px; margin: 0; }
.tag { display: inline-block; font: 600 10.5px var(--f-body); letter-spacing: .04em; text-transform: uppercase; padding: 1px 6px; border-radius: 4px; border: 1px solid var(--line); margin-right: 6px; }
.tag.cook { border-color: var(--cook); color: var(--cook); }

.legend { display: grid; gap: 12px; }
.fam { display: grid; gap: 2px; }
.fam h4 { font: 600 12px var(--f-body); margin: 0 0 2px; color: var(--muted); }
.lrow { display: grid; grid-template-columns: 14px minmax(0, 1fr) auto; gap: 8px; align-items: center; font: 13.5px var(--f-body); padding: 3px 4px; border-radius: 5px; cursor: pointer; border: 0; background: none; color: var(--fg); text-align: left; }
.lrow:hover { background: var(--accent-soft); }
.lrow .sw { width: 12px; height: 12px; border-radius: 50%; box-shadow: 0 0 0 1.5px var(--panel), 0 0 0 2.5px var(--line); }
.lrow .n { font: 12px var(--f-mono); color: var(--muted); }
.lrow em { display: none; font-style: normal; color: var(--muted); font-size: 12px; margin-left: 4px; }
.lrow.out em { display: inline; }
.lrow.out em::before { content: "· "; }
.lrow.off { opacity: .38; }
.lrow.off .sw { background: transparent !important; }
.ltools { display: flex; gap: 8px; margin-top: 8px; }

.section-title { font-family: var(--f-display); font-weight: 400; font-size: 26px; margin: 8px 0 4px; }
.section-sub { color: var(--muted); margin: 0 0 12px; max-width: 72ch; }
.calwrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; background: var(--panel); }
table.cal { border-collapse: collapse; width: 100%; min-width: 880px; font-size: 13.5px; }
.cal th, .cal td { padding: 6px 8px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: middle; }
.cal thead th { font: 600 11px var(--f-body); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); background: var(--panel); }
.cal th.m { text-align: center; width: 44px; padding-inline: 0; }
.cal th.m button { font: inherit; letter-spacing: inherit; text-transform: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 4px; }
.cal th.m.sel button { color: var(--accent); }
.cal td.m { padding: 6px 0; }
.cal td.m.sel { background: var(--accent-soft); }
.cal .bar { height: 14px; margin: 0 -1px; }
.cal .bar.s { border-top-left-radius: 7px; border-bottom-left-radius: 7px; margin-left: 3px; }
.cal .bar.e { border-top-right-radius: 7px; border-bottom-right-radius: 7px; margin-right: 3px; }
.cal .famrow td { font: 600 11px var(--f-body); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); padding-top: 14px; }
.cal .nm { white-space: nowrap; }
.kbtn { font: inherit; color: var(--fg); background: none; border: 0; padding: 0; cursor: pointer; text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 3px; }
.kbtn:hover { text-decoration-color: var(--accent); }
.cal .use { color: var(--muted); font-size: 12.5px; min-width: 260px; }
.cal .ct { font: 12px var(--f-mono); color: var(--muted); text-align: right; }
.cal tr.dim td { opacity: .35; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); background: var(--panel); font-size: 13px; color: var(--muted); }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 8px 20px; justify-content: space-between; padding-block: 18px; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 14px; }
.site-footer a { color: var(--muted); }

/* ---------- Version 2: seasons, weather, ads, photos, account ---------- */
.eyebrow { font: 600 12px var(--f-body); letter-spacing: .1em; text-transform: uppercase; color: var(--accent); margin: 0 0 10px; }
.hero { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; align-items: start; padding-block: 24px 8px; }
@media (max-width: 900px) { .hero { grid-template-columns: minmax(0, 1fr); gap: 24px; } }
.hero-text { padding-top: 20px; }
.hero-lede { font-size: 17px; color: var(--muted); max-width: 52ch; margin: 0 0 22px; }
.hero-art { position: relative; min-width: 0; }
.tree-frame svg { display: block; width: 100%; height: auto; border-radius: var(--radius); }
.hero-weather { position: relative; margin: -72px 18px 0; box-shadow: 0 10px 30px -18px rgba(0, 0, 0, .35); }
@media (max-width: 640px) { .hero-weather { margin: -40px 8px 0; } }

.weather h2 { margin: 0 0 10px; }
.w-main { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px 16px; }
.w-now { display: flex; align-items: center; gap: 10px; }
.w-now div { display: grid; line-height: 1.1; }
.w-temp { font: 400 42px var(--f-display); }
.w-cond { font-size: 13px; color: var(--muted); }
.w-score { display: grid; justify-items: end; gap: 4px; }
.cherries { display: flex; gap: 1px; }
.pill { font: 700 12px var(--f-body); letter-spacing: .04em; padding: 3px 10px; border-radius: 999px; background: var(--line); color: var(--fg); }
.pill.s5 { background: var(--accent); color: var(--panel); }
.pill.s4 { background: var(--accent-soft); color: var(--fg); }
.pill.s3 { background: var(--hl-soft); color: var(--fg); }
.pill.s2, .pill.s1 { background: var(--err-soft); color: var(--err); }
.w-line { font: 400 19px/1.35 var(--f-display); margin: 12px 0; text-wrap: pretty; }
.w-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 0; padding: 10px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.w-facts dt { font-size: 11.5px; color: var(--muted); }
.w-facts dd { margin: 0; font-weight: 600; font-variant-numeric: tabular-nums; }
.w-facts small { font-weight: 400; color: var(--muted); }
.w-days { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 10px; text-align: center; }
.w-days div { display: grid; justify-items: center; gap: 2px; font-size: 13px; }
.w-days span { color: var(--muted); }
.w-days small { color: var(--muted); }
.w-credit { font-size: 11px; color: var(--muted); margin: 10px 0 0; }
[data-weather="compact"] .w-temp { font-size: 32px; }
[data-weather="compact"] .w-line { font-size: 16.5px; }

.ripe-section { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 14px 20px; align-items: start; }
.ripe-section .ripe-head { grid-column: 1 / -1; }
@media (max-width: 900px) { .ripe-section { grid-template-columns: minmax(0, 1fr); } }
#harvest-chart svg { display: block; width: 100%; height: auto; max-height: 300px; }
.ripe-now { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(112px, 1fr)); gap: 10px; }
.ripe-now li { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 10px 8px 12px; display: grid; justify-items: center; gap: 4px; text-align: center; font-size: 13px; font-weight: 600; }
.ripe-now li .fruit-art { width: 64px; height: 64px; }
.ripe-now li.none { grid-column: 1 / -1; font-weight: 400; color: var(--muted); }
.harvest .section-sub { margin: -4px 0 10px; font-size: 13.5px; }
.respect h3 { font-family: var(--f-display); font-weight: 400; font-size: 21px; margin: 0 0 4px; }

.ad { display: grid; gap: 6px; border: 1px dashed var(--line); border-radius: var(--radius); padding: 12px 14px; background: var(--panel); }
.ad-label { font: 600 10.5px var(--f-body); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.ad-body { display: flex; gap: 12px; align-items: center; color: var(--fg); text-decoration: none; }
.ad-body img { width: 120px; max-width: 40%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 8px; }
.ad-body > span { display: grid; gap: 2px; }
.ad-body b { font-family: var(--f-display); font-weight: 400; font-size: 18px; }
.ad-body.house span span { color: var(--muted); font-size: 14px; }
.ad-contact { font: 13px var(--f-mono); color: var(--accent) !important; user-select: all; }
.ad-map-wide .ad-body img { width: 180px; }

.detail .media { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 8px; margin: 0 0 12px; }
.detail figure { margin: 0; display: grid; gap: 4px; align-content: start; min-width: 0; }
.detail figcaption { font-size: 11.5px; color: var(--muted); line-height: 1.35; overflow-wrap: anywhere; }
.detail figcaption a { color: var(--muted); }
.fruit-fig .fruit-art { width: 100%; aspect-ratio: 1; background: var(--hl-soft); border-radius: 10px; padding: 10px; }
.photo-fig img, .photo-ph svg { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 10px; height: auto; }
.photo-fig img { background: var(--line); }

.auth.wide { max-width: 560px; display: grid; gap: 16px; }
.card.danger { border-color: var(--err); }
.card.danger h2 { font: 600 11px var(--f-body); letter-spacing: .09em; text-transform: uppercase; color: var(--err); }
.card.danger p { margin: 0 0 12px; }
.btn.danger { background: var(--err); border-color: var(--err); color: var(--panel); }
.check.highlight { background: var(--hl-soft); padding: 8px; border-radius: 8px; }
.home-msg { margin: 0; }

@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }
