/* ── Victor Sizemore · city maps (shared; started as Charleston's) — house "cellar night" palette from the kit ─────────────────────
   Ink-charcoal with champagne gold; cream type; chalk + copper for badges.
   Derived from the Thomas Cooper night-editorial system, re-toned for
   champagne (gold accent instead of campari red). */
:root {
  --ink: #16130e;          /* warm near-black, cellar dark */
  --ink-soft: #201c15;
  --cream: #f4eee1;
  --gold: #c8a45c;         /* champagne gold — primary accent */
  --chalk: #aebbb3;        /* chalky green-grey — discovery badge */
  --copper: #b0754a;       /* other-growers badge */
  --hair: rgba(244, 238, 225, 0.12);
}
* { box-sizing: border-box; }
body {
  margin: 0; background: var(--ink); color: var(--cream);
  font-family: -apple-system, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.6;
}
a { color: var(--gold); text-decoration: none; }
a:hover { opacity: 0.85; }
.display { font-family: "Playfair Display", Georgia, serif; }

/* Header */
header.site {
  position: sticky; top: 0; z-index: 1000; background: rgba(22, 19, 14, 0.92);
  backdrop-filter: blur(8px); border-bottom: 1px solid var(--hair);
}
header.site .in {
  max-width: 1200px; margin: 0 auto; padding: 0.9rem 1.5rem;
  display: flex; align-items: center; justify-content: space-between;
}
.wordmark { font-size: 1.05rem; font-weight: 700; color: var(--cream); letter-spacing: 0.02em; }
.wordmark span { color: var(--gold); }
/* Home button: back to the maps.vcsphoto.com home page (all cities) */
.brand { display: flex; align-items: center; gap: 0.9rem; min-width: 0; }
.home-btn {
  display: inline-flex; align-items: center; gap: 0.35rem; flex: none; line-height: 1;
  padding: 0.38rem 0.7rem 0.38rem 0.6rem; border: 1px solid rgba(200, 164, 92, 0.5); border-radius: 999px;
  font-size: 0.7rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.16em; color: var(--gold);
}
.home-btn svg { width: 0.95rem; height: 0.95rem; }
.home-btn:hover { opacity: 1; background: rgba(200, 164, 92, 0.14); }
nav.site a {
  margin-left: 1.4rem; font-size: 0.78rem; text-transform: uppercase;
  letter-spacing: 0.18em; color: rgba(244, 238, 225, 0.65);
}
nav.site a.active { color: var(--gold); border-bottom: 2px solid var(--gold); padding-bottom: 2px; }
nav.site a:hover { color: var(--cream); }

/* Kicker + headings */
.kicker {
  font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.35em;
  color: var(--gold); margin: 0 0 0.9rem;
}
h1.hero-title { font-size: clamp(2.6rem, 7vw, 5.2rem); line-height: 0.98; margin: 0 0 1.2rem; }
h2.chapter-title { font-size: clamp(1.9rem, 4vw, 2.8rem); line-height: 1.05; margin: 0 0 0.4rem; }

/* Hero */
.hero { position: relative; min-height: 34vh; display: flex; align-items: flex-end; overflow: hidden;
  background: radial-gradient(ellipse at 75% 15%, rgba(200, 164, 92, 0.28), transparent 55%),
              linear-gradient(165deg, #2a2417 0%, var(--ink) 70%); }
.hero .in { position: relative; max-width: 1200px; margin: 0 auto; padding: 2.6rem 1.5rem 2.6rem; width: 100%; }
.hero p.lede { font-size: 1.15rem; max-width: 40rem; opacity: 0.8; }

/* Scrollytelling split */
.split { display: flex; flex-direction: column; }
@media (min-width: 1024px) { .split { display: grid; grid-template-columns: 1fr 1fr; } }
.chapters section.chapter {
  min-height: 60vh; display: flex; flex-direction: column; justify-content: center;
  padding: 4rem 1.5rem; border-bottom: 1px solid var(--hair); position: relative;
}
@media (min-width: 1024px) { .chapters section.chapter { padding: 4rem 3rem; } }
.ghost {
  position: absolute; top: 0.5rem; left: 0.6rem; font-size: 8.5rem; font-weight: 700;
  color: rgba(200, 164, 92, 0.08); line-height: 1; pointer-events: none; user-select: none;
}
/* Mobile: map pins to top ~38vh, chapters scroll beneath (rolled from the
   flyfishing pilot, 2026-08-29). Tap a card = hover. */
.mapwrap { display: block; order: -1; position: sticky; top: 57px; z-index: 900; }
.mapwrap .sticky { height: 38vh; }
.mapwrap #map { width: 100%; height: 100%; background: var(--ink); border-bottom: 1px solid var(--hair); }
.map-fade { display: none; }
@media (min-width: 1024px) {
  .mapwrap { order: 0; position: static; top: auto; }
  .map-fade { display: block; }
  .mapwrap .sticky { position: sticky; top: 0; height: 100vh; }
  .mapwrap #map { width: 100%; height: 100%; background: var(--ink); }
  .map-fade { position: absolute; top: 0; bottom: 0; left: 0; width: 4rem; z-index: 500;
    pointer-events: none; background: linear-gradient(to right, var(--ink), transparent); }
}
.night-tiles { filter: invert(1) hue-rotate(35deg) brightness(0.72) contrast(1.1) saturate(0.35) sepia(0.25); }

/* Cards + rows */
.entry-card {
  background: rgba(244, 238, 225, 0.04); border: 1px solid var(--hair);
  border-radius: 10px; padding: 1.1rem 1.25rem; margin: 0.8rem 0;
  transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
}
.entry-card:hover { transform: translateY(-2px); border-color: rgba(200, 164, 92, 0.4);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.45); }
.entry-card h3 { margin: 0 0 0.15rem; font-size: 1.25rem; }
.entry-card .village { font-size: 0.8rem; color: rgba(244, 238, 225, 0.55); margin-bottom: 0.4rem; }
.entry-card p.blurb { margin: 0.3rem 0 0; font-size: 0.92rem; opacity: 0.8; }
.entry-card p.note { margin: 0.35rem 0 0; font-size: 0.85rem; color: var(--gold); font-style: italic; }

.rows { margin-top: 1.4rem; }
.rows .rows-label { font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.28em;
  color: rgba(244, 238, 225, 0.45); margin-bottom: 0.5rem; }
.entry-row {
  display: block; padding: 0.5rem 0.2rem;
  border-bottom: 1px dotted rgba(244, 238, 225, 0.14); font-size: 0.95rem;
}
.entry-row .row-head { display: flex; align-items: baseline; gap: 0.7rem; }
.entry-row .n { flex: 1; }

/* Badges */
.badge {
  display: inline-block; font-size: 0.62rem; font-weight: 700; letter-spacing: 0.12em;
  text-transform: uppercase; padding: 0.14rem 0.5rem; border-radius: 3px; margin-right: 0.35rem;
}
.badge.b2024 { background: rgba(200, 164, 92, 0.22); color: var(--gold); }
.badge.bdiscovery { background: rgba(174, 187, 179, 0.16); color: var(--chalk); }
.badge.bother { background: rgba(176, 117, 74, 0.18); color: var(--copper); }
.badge.bhouse { background: rgba(200, 164, 92, 0.22); color: var(--gold); }
.badge.btable, .badge.bsight { background: rgba(174, 187, 179, 0.16); color: var(--chalk); }
/* Default chip is chalk; drink + cigar badges gold, food copper. */
.badge { background: rgba(174, 187, 179, 0.16); color: var(--chalk); }
.badge.bcocktails, .badge.bhotelbar, .badge.brooftop, .badge.bwhiskey, .badge.bbrewery,
.badge.bwine, .badge.bcigar, .badge.bpub, .badge.bdistillery, .badge.bwinery,
.badge.bchampagne, .badge.bspeakeasy, .badge.bbourbon, .badge.bbottles { background: rgba(200, 164, 92, 0.22); color: var(--gold); }
.badge.bseafood, .badge.boysters, .badge.bbbq, .badge.bsouthern, .badge.basian,
.badge.bitalian, .badge.bsandwich, .badge.bcafe, .badge.bfrench, .badge.bspanish,
.badge.bmexican, .badge.bindian, .badge.bkorean, .badge.bjapanese, .badge.bchinese,
.badge.bpizza, .badge.bsteak, .badge.bdeli, .badge.bbakery, .badge.bburgers,
.badge.bhotchicken, .badge.bfine, .badge.bbistro, .badge.bbrunch, .badge.bbritish,
.badge.bmed, .badge.bthai, .badge.bamerican, .badge.bfood { background: rgba(176, 117, 74, 0.18); color: var(--copper); }

/* Home poster cards */
.posters { max-width: 1200px; margin: 0 auto; padding: 3rem 1.5rem 5rem;
  display: grid; gap: 1.4rem; }
@media (min-width: 820px) { .posters { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); } }
.poster { display: block; background: var(--ink-soft); border: 1px solid var(--hair);
  border-radius: 12px; padding: 2rem 1.6rem 1.8rem; color: var(--cream);
  transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s; }
.poster:hover { transform: translateY(-4px); border-color: rgba(200, 164, 92, 0.45);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.5); opacity: 1; }
.poster .count { font-size: 3rem; font-weight: 700; color: var(--gold); line-height: 1; }
.poster h3 { font-size: 1.6rem; margin: 0.6rem 0 0.4rem; }
.poster p { font-size: 0.9rem; opacity: 0.7; margin: 0; }
#homemap { height: 46vh; min-height: 320px; }

footer.site { border-top: 1px solid var(--hair); padding: 2.5rem 1.5rem 3rem;
  text-align: center; font-size: 0.8rem; color: rgba(244, 238, 225, 0.45); }
footer.site .mark { color: var(--gold); letter-spacing: 0.3em; text-transform: uppercase;
  font-size: 0.68rem; margin-bottom: 0.5rem; }

/* Leaflet zoom control — cellar-styled */
.leaflet-control-zoom a {
  background: rgba(22, 19, 14, 0.85) !important; color: var(--cream) !important;
  border: 1px solid var(--hair) !important; width: 34px !important; height: 34px !important;
  line-height: 32px !important; font-size: 1.1rem !important;
}
.leaflet-control-zoom a:hover { background: rgba(200, 164, 92, 0.25) !important; color: var(--gold) !important; }

/* Compiler credit on the home hero */
.hero p.credit { margin-top: 1.1rem; font-size: 0.82rem; letter-spacing: 0.08em;
  color: rgba(244, 238, 225, 0.55); }
.hero p.credit span { color: var(--gold); }

/* Entry links: website + google + directions */
.links { display: inline-flex; gap: 1rem; margin-top: 0.55rem; font-size: 0.8rem; }
.links a { color: var(--gold); letter-spacing: 0.06em; }
.links.compact { gap: 0.7rem; margin: 0; font-size: 0.72rem; opacity: 0.85; }
.leaflet-popup-content .links.compact a { color: #7a5c1e; }
.entry-row .links.compact { margin-left: 0.5rem; }

/* wider-bench one-liners */
.entry-row p.row-blurb{margin:.2rem 0 0;font-size:.82rem;opacity:.66;line-height:1.45}

/* ── Add a place (addplace.js) — search box at the bottom of every page ── */
.addplace { border-top: 1px solid var(--hair); background: var(--ink-soft); }
.addplace [hidden] { display: none !important; }
.ap-in { max-width: 1200px; margin: 0 auto; padding: 3rem 1.5rem; }
.addplace h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); margin: 0 0 1rem; }
.ap-search { display: flex; gap: 0.6rem; max-width: 40rem; }
.addplace input, .addplace select, .addplace textarea {
  width: 100%; background: var(--ink); color: var(--cream); border: 1px solid var(--hair);
  border-radius: 6px; padding: 0.65rem 0.8rem; font: inherit; font-size: 16px; }
.addplace input:focus, .addplace select:focus, .addplace textarea:focus { outline: none; border-color: var(--gold); }
.addplace button { background: var(--gold); color: var(--ink); border: 0; border-radius: 6px;
  padding: 0.65rem 1.2rem; font: inherit; font-weight: 700; cursor: pointer; white-space: nowrap; }
.addplace button:disabled { opacity: 0.5; }
.ap-hint, .ap-credit { font-size: 0.8rem; color: rgba(244, 238, 225, 0.5); margin: 0.6rem 0 1.2rem; }
.ap-credit { margin: 0.4rem 0 0; font-size: 0.7rem; }
.ap-grid { display: grid; gap: 1.6rem; }
@media (min-width: 900px) { .ap-grid { grid-template-columns: 3fr 2fr; } }
.ap-map { height: 340px; border-radius: 8px; overflow: hidden; border: 1px solid var(--hair); }
.ap-results { list-style: none; margin: 0 0 0.8rem; padding: 0; }
.ap-results button { display: block; width: 100%; text-align: left; background: transparent; color: var(--cream);
  border-bottom: 1px dotted rgba(244, 238, 225, 0.14); border-radius: 0; padding: 0.5rem 0.2rem; font-weight: 400; }
.ap-results button:hover { color: var(--gold); }
.ap-results button span { display: block; font-size: 0.78rem; opacity: 0.55; }
.ap-results .ap-note { font-size: 0.85rem; opacity: 0.6; padding: 0.4rem 0; }
.ap-form label { display: block; font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.14em;
  color: rgba(244, 238, 225, 0.6); margin-bottom: 0.8rem; }
.ap-form label span { text-transform: none; letter-spacing: 0; }
.ap-form label input, .ap-form label select, .ap-form label textarea { margin-top: 0.3rem; text-transform: none; letter-spacing: 0; }
.ap-two { display: grid; grid-template-columns: 1fr 1fr; gap: 0.8rem; }
.ap-tags { display: flex; flex-wrap: wrap; gap: 0.35rem; margin: 0 0 0.9rem; }
.ap-tags label.ap-tag { margin: 0; letter-spacing: 0.1em; }
.ap-tag input { display: none; }
.ap-tag span { display: inline-block; font-size: 0.62rem; font-weight: 700; padding: 0.25rem 0.55rem; border-radius: 3px;
  border: 1px solid var(--hair); color: rgba(244, 238, 225, 0.55); cursor: pointer; }
.ap-tag input:checked + span { background: rgba(200, 164, 92, 0.22); color: var(--gold); border-color: rgba(200, 164, 92, 0.5); }
.ap-msg { font-size: 0.88rem; margin: 0.8rem 0 0; min-height: 1.2em; }
.ap-added { margin-top: 1.6rem; font-size: 0.88rem; }
.ap-added summary { cursor: pointer; color: rgba(244, 238, 225, 0.6); }
.ap-added ul { list-style: none; padding: 0; margin: 0.6rem 0 0; max-width: 40rem; }
.ap-added li { display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  padding: 0.4rem 0; border-bottom: 1px dotted rgba(244, 238, 225, 0.14); }
.ap-added em { font-style: normal; opacity: 0.5; font-size: 0.78rem; margin-left: 0.4rem; }
.ap-added button { background: transparent; color: var(--copper); border: 1px solid rgba(176, 117, 74, 0.4);
  padding: 0.25rem 0.7rem; font-size: 0.75rem; }
.entry-row p.row-blurb.note { color: var(--gold); font-style: italic; opacity: 0.85; }
.ap-grid > * { min-width: 0; }
.ap-results button { white-space: normal; }
@media (max-width: 640px) {
  header.site .in { flex-wrap: wrap; gap: 0.3rem 0; padding: 0.7rem 1rem; }
  nav.site a { margin: 0 1.1rem 0 0; font-size: 0.7rem; letter-spacing: 0.14em; white-space: nowrap; }
  .brand { gap: 0.6rem; }
  .home-btn { padding: 0.3rem 0.55rem 0.3rem 0.45rem; font-size: 0.64rem; letter-spacing: 0.12em; }
  .wordmark { font-size: 0.95rem; white-space: nowrap; }
  .ap-in { padding: 2.4rem 1rem; }
  .mapwrap { top: 81px; }  /* header height once the nav wraps */
}
