/* Farm & Tote: warm, upscale rustic. Clean chrome, hand-drawn icons. */
:root {
  --paper: #FAF7F0;
  --card: #FFFFFF;
  --ink: #22231E;
  --ink-soft: #4A4B43;
  --muted: #6B6C62;
  --line: #E6E0D2;
  --line-strong: #D5CDB9;
  --leaf: #2E5B3A;
  --leaf-dark: #214429;
  --leaf-tint: #E4EEDD;
  --clay: #B4532A;
  --sand: #F2ECDD;
  --shadow-sm: 0 1px 2px rgba(34, 35, 30, 0.05), 0 4px 14px rgba(34, 35, 30, 0.06);
  --shadow-lg: 0 2px 6px rgba(34, 35, 30, 0.06), 0 14px 34px rgba(34, 35, 30, 0.12);
  --display: Fraunces, 'Iowan Old Style', Georgia, serif;
  --body: Figtree, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--body); font-size: 16px; line-height: 1.5; -webkit-font-smoothing: antialiased; }
a { color: var(--leaf); }
a:hover { color: var(--leaf-dark); }
:focus-visible { outline: 3px solid var(--clay); outline-offset: 2px; }
h1, h2 { font-family: var(--display); font-weight: 500; line-height: 1.1; letter-spacing: -0.01em; }
h1 { font-size: clamp(32px, 4.6vw, 52px); margin: 0 0 14px; }
h2 { font-size: 28px; margin: 0; }
.wrap { max-width: 1280px; margin: 0 auto; padding: 0 20px; }
@media (min-width: 800px) { .wrap { padding: 0 40px; } }

/* Header */
.site-header { background: var(--card); border-bottom: 1px solid var(--line); }
.site-header .bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 14px; padding-bottom: 14px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand span { font-family: var(--display); font-weight: 600; font-size: 26px; line-height: 1; letter-spacing: -0.01em; white-space: nowrap; }
.nav { display: flex; align-items: center; gap: 6px 18px; font-weight: 600; font-size: 15px; }
.nav a { color: var(--ink); text-decoration: none; padding: 10px 4px; white-space: nowrap; }
.nav a:hover { text-decoration: underline; }
.nav a.pill { padding: 10px 16px; border: 1px solid var(--line-strong); border-radius: 999px; }
.nav a.pill:hover { text-decoration: none; background: var(--sand); }
@media (max-width: 560px) { .nav a.hide-sm { display: none; } .brand span { font-size: 22px; } .nav { gap: 6px 10px; font-size: 14px; } .nav a.pill { padding: 9px 12px; } }

/* Type tabs: a row of icons under the search box */
.types { margin: 22px -20px 0; }
.tabs { display: flex; gap: 6px; margin: 0; padding: 0 20px 2px; list-style: none; overflow-x: auto; scrollbar-width: none; justify-content: flex-start; }
.tabs::-webkit-scrollbar { display: none; }
@media (min-width: 900px) { .tabs { justify-content: center; } }
.tab { display: flex; flex-direction: column; align-items: center; gap: 5px; min-width: 88px; padding: 10px 12px 9px; font-size: 13px; font-weight: 600; white-space: nowrap; text-decoration: none; color: var(--muted); border: 1px solid transparent; border-radius: 16px; }
.tab svg { width: 32px; height: 32px; }
.tab:hover { color: var(--ink); background: var(--card); border-color: var(--line); }
.tab[aria-current="page"] { color: var(--ink); background: var(--card); border-color: var(--line-strong); box-shadow: var(--shadow-sm); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 22px; font: 600 16px var(--body); text-decoration: none; cursor: pointer; background: var(--leaf); color: #fff; border: 1px solid var(--leaf); border-radius: 999px; }
.btn:hover { background: var(--leaf-dark); border-color: var(--leaf-dark); color: #fff; }
.btn.outline { background: var(--card); color: var(--ink); border-color: var(--line-strong); }
.btn.outline:hover { background: var(--sand); color: var(--ink); }
.linkbtn { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 4px; font: 600 15px var(--body); color: var(--leaf); background: none; border: 0; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.linkbtn:hover { color: var(--leaf-dark); }
.linkbtn.small { min-height: 28px; font-size: 14px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Search: one "where" box */
.search { display: flex; align-items: center; max-width: 560px; margin: 0 auto; text-align: left; background: var(--card); border: 1px solid var(--line); border-radius: 999px; box-shadow: var(--shadow-lg); padding: 7px 7px 7px 0; }
.field { flex: 1 1 0; min-width: 0; display: flex; align-items: center; gap: 10px; padding: 0 12px 0 22px; cursor: text; }
.field svg { flex: 0 0 auto; }
.field input { width: 100%; min-width: 0; height: 48px; padding: 0; font: 400 17px var(--body); color: var(--ink); background: transparent; border: 0; outline: 0; text-overflow: ellipsis; }
.field input::placeholder { color: var(--muted); opacity: 1; }
.search:focus-within { border-color: var(--line-strong); }
.search .go { flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 48px; padding: 0 20px; font: 600 16px var(--body); color: #fff; background: var(--leaf); border: 0; border-radius: 999px; cursor: pointer; }
.search .go:hover { background: var(--leaf-dark); }
.search-note { display: flex; justify-content: center; margin: 8px 0 0; font-size: 15px; color: var(--ink-soft); }
.notice { display: inline-block; margin: 6px 0 0; padding: 8px 14px; font-size: 14px; font-weight: 600; background: #FBEDE3; color: var(--ink); border-radius: 12px; }
.eyebrow { display: inline-block; margin: 0 0 14px; padding: 5px 12px; font-size: 13px; font-weight: 700; letter-spacing: 0.02em; color: var(--leaf-dark); background: var(--leaf-tint); border-radius: 999px; }
@media (max-width: 420px) { .search .go span { display: none; } .search .go { width: 48px; padding: 0; } .field { padding-left: 16px; } }

/* Layout */
.hero.center { text-align: center; padding: 56px 0 8px; }
.hero.center .lede { max-width: 620px; margin: 0 auto 26px; font-size: 18px; color: var(--ink-soft); }
/* Never set position: static on a map: MapLibre places its canvas absolutely inside it. */
.map { position: relative; height: 420px; background: #E9EFDE; border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow-sm); overflow: hidden; }
.map.small { height: 360px; }
.mapwrap { position: relative; height: 300px; }
.mapwrap .map { height: 100%; }
.map-toggle { position: absolute; top: 12px; left: 12px; z-index: 3; display: inline-flex; align-items: center; gap: 8px; min-height: 36px; padding: 0 14px 0 10px; font-size: 13px; font-weight: 600; color: var(--ink); background: var(--card); border: 1px solid var(--line-strong); border-radius: 999px; box-shadow: var(--shadow-sm); cursor: pointer; }
.map-toggle input { width: 16px; height: 16px; margin: 0; accent-color: var(--leaf); }

/* Map pages: search in the header, list on the left, map filling the rest of the window */
.bar.wide { display: flex; align-items: center; gap: 12px 20px; padding: 10px 20px; }
.app .site-header { border-bottom: 1px solid var(--line); }
.search.compact { flex: 1 1 320px; max-width: 460px; margin: 0 auto; padding: 4px 4px 4px 0; box-shadow: var(--shadow-sm); }
.search.compact .field { padding-left: 16px; }
.search.compact .field input { height: 40px; font-size: 16px; }
.search.compact .go, .search .locate { flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; padding: 0; border: 0; border-radius: 999px; cursor: pointer; }
.search .locate { margin-right: 4px; background: transparent; }
.search .locate:hover { background: var(--sand); }
.types.chips { margin: 0; padding: 0 0 10px; }
.chips .tabs { justify-content: flex-start; gap: 8px; padding: 0 20px; }
.chips .tab { flex-direction: row; gap: 8px; min-width: 0; padding: 6px 14px 6px 10px; font-size: 14px; color: var(--ink-soft); background: var(--card); border: 1px solid var(--line); border-radius: 999px; }
.chips .tab svg { width: 24px; height: 24px; }
.chips .tab:hover { border-color: var(--line-strong); background: var(--sand); }
.chips .tab[aria-current="page"] { color: var(--leaf-dark); background: var(--leaf-tint); border-color: var(--leaf); box-shadow: none; }
.split { display: flex; flex-direction: column; }
.split .mapcol { order: -1; padding: 14px 16px 0; }
.split .list { padding: 16px 16px 28px; }
.list-head h1 { margin: 0 0 2px; font-size: 24px; }
.list-head .sub { margin: 0 0 12px; font-size: 15px; color: var(--muted); }
.list-head .sub strong { color: var(--ink); font-weight: 600; }
.cards { display: flex; flex-direction: column; gap: 12px; }
.list-note { margin: 18px 0 0; font-size: 13px; color: var(--muted); }
.list-foot { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); }
.list-foot p { margin: 0 0 6px; }
.empty { margin: 0 0 12px; padding: 18px; font-size: 15px; color: var(--ink-soft); background: var(--card); border: 1px dashed var(--line-strong); border-radius: 16px; }
.split .notice { display: block; margin: 0 0 12px; }
@media (max-width: 719px) { .bar.wide { flex-wrap: wrap; } .bar.wide .search.compact { order: 3; flex-basis: 100%; max-width: none; } .bar.wide .nav { margin-left: auto; } }
@media (min-width: 960px) {
  body.app { display: flex; flex-direction: column; height: 100vh; height: 100dvh; overflow: hidden; }
  .app .site-header { flex: 0 0 auto; }
  .bar.wide { padding: 10px 24px; }
  .chips .tabs { padding: 0 24px; }
  .split { flex: 1 1 auto; flex-direction: row; min-height: 0; }
  .split .list { flex: 0 0 clamp(380px, 36vw, 520px); overflow-y: auto; padding: 18px 20px 28px 24px; }
  .split .mapcol { order: 0; flex: 1 1 auto; min-width: 0; padding: 12px 12px 12px 0; }
  .split .mapwrap { height: 100%; }
}

/* Cards */
.card { display: flex; gap: 16px; background: var(--card); padding: 14px; border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow-sm); transition: box-shadow 0.15s ease, transform 0.15s ease; }
.card:hover { box-shadow: var(--shadow-lg); transform: translateY(-1px); }
.card.is-active { border-color: var(--leaf); box-shadow: 0 0 0 2px var(--leaf), var(--shadow-lg); }
/* The whole card opens the listing: the title link is stretched over it. */
.card { position: relative; }
.card h3 a::after { content: ''; position: absolute; inset: 0; border-radius: 16px; }
.card .pic { flex: 0 0 72px; height: 72px; display: flex; align-items: center; justify-content: center; border-radius: 14px; background: var(--sand); }
.card .pic svg { width: 42px; height: 42px; }
.pic.pumpkin { background: #FBEBDD; } .pic.apple { background: #F8E1DA; } .pic.tree { background: #E2EDDD; }
.pic.berry { background: #ECE3F2; } .pic.market { background: #EDF0DC; } .pic.barn { background: #F6E9D2; }
.card .body { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.card .top { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 2px 10px; }
.card h3 { margin: 0; font-size: 17px; font-weight: 600; line-height: 1.3; }
.card h3 a { color: var(--ink); text-decoration: none; }
.card h3 a:hover { text-decoration: underline; }
.dist { font-size: 14px; font-weight: 600; color: var(--ink-soft); white-space: nowrap; }
.where { font-size: 15px; color: var(--ink-soft); }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 0; padding: 0; list-style: none; }
.tag { font-size: 13px; font-weight: 600; padding: 3px 10px; background: var(--leaf-tint); color: var(--leaf-dark); border-radius: 999px; }

/* Home sections */
.section { padding: 34px 0 6px; }
.towns { display: flex; flex-wrap: wrap; gap: 10px; padding: 0; margin: 18px 0 0; list-style: none; }
.towns a { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 14px; font-size: 15px; font-weight: 600; text-decoration: none; color: var(--ink); background: var(--card); border: 1px solid var(--line); border-radius: 999px; }
.towns a:hover { background: var(--sand); }
.towns a span { font-weight: 400; color: var(--muted); }

/* Listing page */
.listing { display: flex; flex-wrap: wrap; gap: 32px; padding: 20px 0 48px; }
.listing .main { flex: 1 1 380px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.listing .side { flex: 1 1 380px; min-width: 0; }
.listing h1 { font-size: clamp(30px, 4vw, 42px); }
.panel { background: var(--card); padding: 20px; border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow-sm); }
.panel h2 { font-size: 22px; margin-bottom: 8px; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; }
.crumbs { font-size: 14px; color: var(--muted); padding-top: 20px; margin: 0; }
.plainlist { margin: 0; padding-left: 20px; color: var(--ink-soft); }
.prose { max-width: 720px; padding: 28px 0 48px; }
.prose h2 { margin: 28px 0 8px; }
.prose p { margin: 0 0 12px; color: var(--ink-soft); }

/* Footer */
.site-footer { margin-top: 24px; background: var(--card); border-top: 1px solid var(--line); font-size: 14px; color: var(--muted); text-align: center; }
.site-footer .wrap { padding-top: 22px; padding-bottom: 30px; }
.site-footer p { margin: 0 0 6px; }

/* Map pins, clusters and the name label */
.pinwrap { cursor: pointer; }
.pin { display: block; width: 30px; height: 38px; transition: transform 0.12s ease; transform-origin: 50% 100%; filter: drop-shadow(0 2px 2px rgba(34, 35, 30, 0.25)); }
.pinwrap:hover .pin { transform: scale(1.12); }
.pinwrap.is-active { z-index: 4; }
.pinwrap.is-active .pin { transform: scale(1.3); }
.cluster { display: flex; align-items: center; justify-content: center; min-width: 36px; height: 36px; padding: 0 9px; font: 700 14px var(--body); color: #fff; background: var(--leaf); border: 2px solid #fff; border-radius: 999px; box-shadow: 0 2px 6px rgba(34, 35, 30, 0.3); cursor: pointer; }
.cluster.md { min-width: 42px; height: 42px; font-size: 15px; }
.cluster.lg { min-width: 50px; height: 50px; font-size: 16px; }
.cluster:hover { background: var(--leaf-dark); }
.you { width: 16px; height: 16px; background: #2F6FD0; border: 3px solid #fff; border-radius: 50%; box-shadow: 0 0 0 2px rgba(47, 111, 208, 0.35); }
.maplibregl-popup.tip { z-index: 5; }
.maplibregl-popup-content { padding: 8px 14px; font: 600 14px var(--body); color: var(--ink-soft); border: 1px solid var(--line-strong); border-radius: 999px; box-shadow: var(--shadow-lg); }
.maplibregl-popup-content a { color: var(--ink); text-decoration: none; }
.maplibregl-popup-content a:hover { text-decoration: underline; }
.maplibregl-popup-tip { display: none; }
.maplibregl-map { font-family: var(--body); }
@media (max-width: 560px) { .tab { min-width: 70px; padding: 8px 8px 7px; font-size: 12px; } .tab svg { width: 28px; height: 28px; } .hero.center { padding-top: 36px; } }
