/* Live Music Tonight · The Florida Keys — phone-first styles */
@import url('https://fonts.googleapis.com/css2?family=Alfa+Slab+One&family=Atkinson+Hyperlegible:ital,wght@0,400;0,700;1,400&display=swap');

:root {
  --navy: #0e1b2e;
  --ink: #15263d;
  --ink-2: #1d3250;
  --line: #2a4162;
  --sand: #f3e7d3;
  --sand-dim: #b9b0a0;
  --coral: #ff6b57;
  --tangerine: #ffa447;
  --lime: #c5e86c;
  --gulf: #35c4c8;
  --violet: #7a5cff;
  --danger: #ff5c7a;
  --display: 'Alfa Slab One', 'Rockwell', Georgia, serif;
  --body: 'Atkinson Hyperlegible', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --radius: 14px;
  --nav-h: 64px;
  --sky: linear-gradient(180deg, #1a2b6d 0%, #5a3b8f 45%, #ff6b57 100%); /* night default; app.js sets per hour */
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--navy); color: var(--sand);
  font-family: var(--body); font-size: 16px; line-height: 1.45;
  padding-bottom: calc(var(--nav-h) + env(safe-area-inset-bottom));
  min-height: 100vh;
}
a { color: var(--gulf); }
h1, h2, h3 { font-family: var(--display); font-weight: 400; letter-spacing: 0.01em; line-height: 1.1; margin: 0; }
button, input, select, textarea { font: inherit; }
:focus-visible { outline: 3px solid var(--lime); outline-offset: 2px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ----- sky header ----- */
.sky {
  position: relative; background: var(--sky); color: #fff;
  padding: calc(14px + env(safe-area-inset-top)) 16px 14px;
  overflow: hidden;
}
.sky::after { /* horizon water line */
  content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 6px;
  background: linear-gradient(90deg, var(--gulf), #1f9aa0 50%, var(--gulf));
  opacity: .9;
}
.brand { display: flex; flex-direction: column; gap: 2px; padding-right: 70px; }
.brand h1 { font-size: 30px; line-height: 1; text-shadow: 0 2px 0 rgba(0,0,0,.25); white-space: nowrap; }
.brand .where { font-size: 12px; opacity: .92; letter-spacing: .14em; text-transform: uppercase; white-space: nowrap; font-weight: 700; }
.sky .big { font-family: var(--display); font-size: 26px; line-height: 1.05; margin-top: 12px; color: var(--sand); opacity: .95; text-shadow: 0 2px 0 rgba(0,0,0,.25); }
.sky .big, .sky .sub { padding-right: 84px; }
.sky .big.long { font-size: 22px; }
.sky .sub { margin-top: 4px; font-size: 14px; opacity: .92; }
.sky > :not(.mark) { position: relative; z-index: 1; }
.sky .mark { position: absolute; right: 14px; top: 50%; width: 68px; height: 68px; transform: translateY(-50%); pointer-events: none; filter: drop-shadow(0 4px 10px rgba(0,0,0,.35)); }
/* daytime skies: navy lettering so the wordmark doesn't wash out */
.sky.day { color: #0e1b2e; }
.sky.day .brand h1, .sky.day .big { color: #0e1b2e; text-shadow: 0 2px 0 rgba(255,255,255,.25); }
.sky.day .where { color: #0f6f73; opacity: 1; }
.sky.day .sub { color: #12304a; opacity: 1; }

/* ----- date strip & chips ----- */
.strip { display: flex; gap: 8px; overflow-x: auto; padding: 12px 16px 4px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.strip::-webkit-scrollbar { display: none; }
.chip {
  flex: 0 0 auto; border: 1.5px solid var(--line); background: var(--ink); color: var(--sand);
  border-radius: 999px; padding: 8px 14px; font-size: 14px; font-weight: 700; cursor: pointer; white-space: nowrap;
  min-height: 40px;
}
.chip[aria-pressed="true"], .chip.on { background: var(--coral); border-color: var(--coral); color: #1a0d0a; }
.chip small { display: block; font-weight: 400; font-size: 11px; opacity: .8; line-height: 1; margin-top: 2px; }
.chip.day { text-align: center; min-width: 64px; padding: 6px 10px; }
.chip.day b { display: block; font-size: 15px; }
.chip .n { display: inline-block; min-width: 18px; padding: 0 5px; border-radius: 9px; background: rgba(0,0,0,.25); font-size: 11px; margin-left: 4px; }

/* ----- sections & cards ----- */
main { padding: 8px 16px 24px; max-width: 720px; margin: 0 auto; }
.section-title {
  font-family: var(--display); font-size: 15px; letter-spacing: .08em; text-transform: uppercase;
  color: var(--sand-dim); margin: 18px 0 8px; display: flex; align-items: center; gap: 10px;
}
.section-title::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.section-title.live { color: var(--lime); }
.section-title.live::before { content: ''; width: 10px; height: 10px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 10px var(--lime); animation: pulse 1.6s infinite; }
@keyframes pulse { 0%,100% { opacity: 1 } 50% { opacity: .35 } }
@media (prefers-reduced-motion: reduce) { .section-title.live::before { animation: none; } }

.gig {
  display: grid; grid-template-columns: 76px 1fr auto; gap: 10px; align-items: center;
  background: var(--ink); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 12px 14px; margin-bottom: 10px; color: inherit; text-decoration: none;
  min-height: 72px;
}
.gig:active { transform: scale(.995); }
.gig[data-href] { cursor: pointer; }
.gig.sponsor { border-color: var(--violet); background: linear-gradient(90deg, rgba(122,92,255,.14), var(--ink) 60%); text-decoration: none; color: inherit; }
.gig .time { font-family: var(--display); font-size: 18px; line-height: 1; color: var(--tangerine); font-variant-numeric: tabular-nums; letter-spacing: -0.01em; }
.gig .time small { display: block; font-family: var(--body); font-size: 11px; color: var(--sand-dim); margin-top: 4px; font-weight: 700; letter-spacing: .04em; }
.gig .act { font-weight: 700; font-size: 17px; line-height: 1.2; }
.gig .venue { color: var(--sand-dim); font-size: 14px; margin-top: 3px; }
.gig .venue b { color: var(--sand); font-weight: 700; }
.gig .meta { text-align: right; font-size: 12px; color: var(--sand-dim); white-space: nowrap; }
.gig .meta .dist { font-weight: 700; color: var(--gulf); }
.pill { display: inline-block; padding: 3px 8px; border-radius: 999px; font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.pill.live { background: var(--lime); color: #15260a; }
.pill.soon { background: var(--tangerine); color: #2a1600; }
.pill.unconfirmed { background: transparent; border: 1px solid var(--line); color: var(--sand-dim); }
.pill.founding { background: var(--violet); color: #fff; }
.pill.venue-posted { background: var(--gulf); color: #062a2b; }
.pill.concert { background: var(--coral); color: #2a0d08; }
.pill.callahead { background: transparent; border: 1px solid var(--tangerine); color: var(--tangerine); }
.gig .fresh { font-size: 11px; color: var(--sand-dim); }
.gig .call { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--ink-2); border: 1px solid var(--line); color: var(--gulf); text-decoration: none; font-size: 18px; margin-top: 6px; }
.gig .call:active { background: var(--gulf); color: #062a2b; }
.gig.now { border-color: var(--lime); box-shadow: inset 3px 0 0 var(--lime); }
.gig.past { opacity: .5; }

.empty {
  background: var(--ink); border: 1px dashed var(--line); border-radius: var(--radius);
  padding: 24px 18px; text-align: center; color: var(--sand-dim);
}
.empty b { color: var(--sand); display: block; font-size: 18px; margin-bottom: 6px; font-family: var(--display); font-weight: 400; }

/* ----- bottom nav ----- */
.tabbar {
  position: fixed; left: 0; right: 0; bottom: 0; height: calc(var(--nav-h) + env(safe-area-inset-bottom));
  padding-bottom: env(safe-area-inset-bottom);
  background: rgba(14, 27, 46, .96); backdrop-filter: blur(10px); border-top: 1px solid var(--line);
  display: grid; grid-template-columns: repeat(4, 1fr); z-index: 50;
}
.tabbar a {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  color: var(--sand-dim); text-decoration: none; font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
}
.tabbar a svg { width: 24px; height: 24px; }
.tabbar a.on { color: var(--tangerine); }

/* ----- buttons & forms ----- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--coral); color: #1a0d0a; border: 0; border-radius: 12px; padding: 14px 18px;
  font-weight: 700; font-size: 16px; cursor: pointer; text-decoration: none; min-height: 48px;
}
.btn.block { width: 100%; }
.btn.ghost { background: transparent; border: 1.5px solid var(--line); color: var(--sand); }
.btn.lime { background: var(--lime); color: #15260a; }
.btn.gulf { background: var(--gulf); color: #062a2b; }
.btn.sm { padding: 8px 12px; font-size: 14px; min-height: 36px; border-radius: 10px; }
.btn.danger { background: transparent; border: 1.5px solid var(--danger); color: var(--danger); }
.btn:disabled { opacity: .5; cursor: default; }
label.f { display: block; margin: 12px 0 6px; font-weight: 700; font-size: 14px; color: var(--sand-dim); }
.in {
  width: 100%; background: var(--ink-2); color: var(--sand); border: 1.5px solid var(--line); border-radius: 12px;
  padding: 12px 14px; font-size: 17px; min-height: 48px;
}
.in:focus { border-color: var(--gulf); outline: none; }
textarea.in { min-height: 90px; resize: vertical; }
.row { display: flex; gap: 10px; }
.row > * { flex: 1; min-width: 0; }
.help { font-size: 13px; color: var(--sand-dim); margin-top: 6px; }
.card { background: var(--ink); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; margin: 12px 0; }
.card h2 { font-size: 20px; margin-bottom: 8px; }
.card h3 { font-size: 16px; margin: 14px 0 6px; color: var(--tangerine); }
.toast {
  position: fixed; left: 50%; bottom: calc(var(--nav-h) + 16px + env(safe-area-inset-bottom)); transform: translateX(-50%);
  background: var(--lime); color: #15260a; padding: 12px 18px; border-radius: 999px; font-weight: 700; z-index: 100;
  box-shadow: 0 8px 30px rgba(0,0,0,.4); max-width: calc(100% - 32px); text-align: center;
}
.toast.err { background: var(--danger); color: #fff; }

/* ----- venue / artist header ----- */
.hero { padding: 18px 16px 14px; background: linear-gradient(180deg, var(--ink-2), var(--navy)); border-bottom: 1px solid var(--line); }
.hero .eyebrow { font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--gulf); font-weight: 700; }
.hero h1 { font-size: 30px; margin: 6px 0 4px; }
.hero .addr { color: var(--sand-dim); font-size: 14px; }
.hero .tagline { margin-top: 8px; font-style: italic; color: var(--sand); }
.actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.actions .btn { flex: 1; }
.back { display: inline-flex; align-items: center; gap: 6px; color: var(--sand-dim); text-decoration: none; font-weight: 700; font-size: 14px; margin-bottom: 8px; }

/* ----- lists ----- */
.list a.item {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  background: var(--ink); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 12px 14px; margin-bottom: 8px; color: inherit; text-decoration: none; min-height: 60px;
}
.item .t { font-weight: 700; font-size: 16px; }
.item .s { color: var(--sand-dim); font-size: 13px; margin-top: 2px; }
.item .r { text-align: right; font-size: 12px; color: var(--sand-dim); white-space: nowrap; }
.item .r b { display: block; color: var(--lime); font-size: 14px; }
.avatar { width: 48px; height: 48px; border-radius: 50%; background: var(--ink-2); flex: 0 0 auto; object-fit: cover; border: 1.5px solid var(--line); }
.avatar.ph { display: grid; place-items: center; font-family: var(--display); color: var(--tangerine); font-size: 20px; }

/* ----- map ----- */
#map { position: fixed; inset: 0 0 calc(var(--nav-h) + env(safe-area-inset-bottom)) 0; z-index: 1; background: var(--navy); }
.map-top { position: fixed; top: 0; left: 0; right: 0; z-index: 2; padding: calc(10px + env(safe-area-inset-top)) 12px 8px; background: linear-gradient(180deg, rgba(14,27,46,.95), rgba(14,27,46,0)); pointer-events: none; }
.map-top > * { pointer-events: auto; }
.dark-tiles { filter: invert(1) hue-rotate(200deg) brightness(.75) contrast(.95) saturate(.6); }
.leaflet-popup-content-wrapper { background: var(--ink); color: var(--sand); border-radius: 12px; border: 1px solid var(--line); }
.leaflet-popup-tip { background: var(--ink); }
.leaflet-popup-content { margin: 12px 14px; font-family: var(--body); }
.leaflet-popup-content a { color: var(--gulf); font-weight: 700; }
.pin { width: 14px; height: 14px; border-radius: 50%; border: 2px solid #fff; background: var(--line); box-shadow: 0 1px 6px rgba(0,0,0,.6); }
.pin.on { background: var(--coral); }
.pin.live { background: var(--lime); box-shadow: 0 0 0 4px rgba(197,232,108,.35), 0 1px 6px rgba(0,0,0,.6); }

/* ----- posting pages ----- */
.board { background: #142a1f; border: 2px solid #2e5a44; border-radius: 16px; padding: 16px; margin: 14px 0; color: #eaf3e6; }
.board h2 { color: #c5e86c; font-size: 18px; }
.board .line { display: grid; grid-template-columns: 1fr auto auto; gap: 8px; align-items: center; padding: 8px 0; border-bottom: 1px dashed #2e5a44; }
.board .line:last-child { border-bottom: 0; }
.board .line .d { font-weight: 700; color: #c5e86c; font-size: 14px; }
.board .line .a { font-size: 15px; }
.board .line .src { font-size: 11px; color: #9bb59a; }
.dows { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.dows button { background: var(--ink-2); border: 1.5px solid var(--line); color: var(--sand); border-radius: 10px; padding: 10px 0; font-weight: 700; min-height: 44px; }
.dows button[aria-pressed="true"] { background: var(--lime); color: #15260a; border-color: var(--lime); }
.stat { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 8px; }
.stat div { background: var(--ink-2); border-radius: 12px; padding: 10px; text-align: center; }
.stat b { display: block; font-family: var(--display); font-size: 22px; color: var(--tangerine); }
.stat span { font-size: 11px; color: var(--sand-dim); text-transform: uppercase; letter-spacing: .05em; }
.code { font-family: var(--display); font-size: 28px; letter-spacing: .08em; color: var(--lime); }
.qr { background: #fff; padding: 10px; border-radius: 12px; display: inline-block; }

/* ----- utility ----- */
.muted { color: var(--sand-dim); }
.center { text-align: center; }
.mt { margin-top: 16px; }
.hide { display: none !important; }
table.t { width: 100%; border-collapse: collapse; font-size: 13px; }
table.t th, table.t td { text-align: left; padding: 8px 6px; border-bottom: 1px solid var(--line); vertical-align: top; }
table.t th { color: var(--sand-dim); font-weight: 700; text-transform: uppercase; font-size: 11px; letter-spacing: .05em; }
@media (min-width: 720px) {
  .sky .big { font-size: 56px; }
  .tabbar { max-width: 720px; left: 50%; transform: translateX(-50%); border-left: 1px solid var(--line); border-right: 1px solid var(--line); }
}

/* ----- directions link on a listing, signup card, site footer (added 2026-11-12) ----- */
.gig .dir { display: inline-flex; align-items: center; gap: 6px; min-height: 30px; padding: 4px 12px; border-radius: 999px; border: 1px solid var(--line); color: var(--gulf); font-size: 13px; font-weight: 700; text-decoration: none; background: var(--ink-2); }
.gig .dir::before { content: ''; width: 8px; height: 8px; border: 2px solid currentColor; border-left: 0; border-bottom: 0; transform: rotate(45deg) translate(-1px, 1px); }
.gig .dir:active { background: var(--gulf); color: #062a2b; }
.signup { border-color: var(--gulf); }
.signup-row { display: flex; gap: 8px; flex-wrap: wrap; }
.signup-row .in { flex: 1 1 200px; min-width: 0; }
.signup-row .btn { flex: 0 0 auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.sitefoot { max-width: 720px; margin: 0 auto; padding: 10px 16px 28px; text-align: center; color: var(--sand-dim); font-size: 13px; }
.sitefoot a { color: var(--gulf); text-decoration: none; font-weight: 700; }
.sitefoot-social { display: flex; justify-content: center; gap: 10px; margin-bottom: 10px; }
.sitefoot-social a { border: 1px solid var(--line); border-radius: 999px; padding: 9px 16px; background: var(--ink); min-height: 40px; display: inline-flex; align-items: center; }
.sitefoot-fine { margin-top: 8px; font-size: 12px; }

/* ----- guides: long-form town articles with a live "playing today" box (added 2026-11-19) ----- */
.brand .brandname { font-family: var(--display); font-size: 30px; line-height: 1; color: inherit; text-decoration: none; text-shadow: 0 2px 0 rgba(0,0,0,.25); white-space: nowrap; }
.sky.day .brand .brandname { color: #0e1b2e; text-shadow: 0 2px 0 rgba(255,255,255,.25); }
.sky h1.big { font-weight: 400; margin-bottom: 0; text-wrap: balance; }
.guide-by { color: var(--sand-dim); font-size: 14px; margin: 14px 0 0; }
.guide-draft { border: 1.5px dashed var(--tangerine); border-radius: var(--radius); padding: 10px 14px; margin: 12px 0 0; color: var(--tangerine); font-weight: 700; font-size: 14px; }
.livebox { border-color: var(--lime); margin-top: 14px; }
.livebox h2 { font-size: 20px; display: flex; align-items: center; gap: 10px; }
.livebox h2::before { content: ''; flex: 0 0 auto; width: 10px; height: 10px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 10px var(--lime); }
.livebox .when { color: var(--sand-dim); font-size: 13px; margin: 4px 0 10px; }
.livebox .btn { margin-top: 10px; text-decoration: none; }
.guide-body { font-size: 17px; line-height: 1.6; margin-top: 18px; overflow-wrap: break-word; }
.guide-body > :first-child { margin-top: 0; }
.guide-body p { margin: 0 0 16px; }
.guide-body h2 { font-size: 24px; margin: 30px 0 10px; color: var(--sand); text-wrap: balance; }
.guide-body h3 { font-size: 19px; margin: 24px 0 8px; color: var(--tangerine); }
.guide-body h4 { font-family: var(--body); font-size: 16px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; margin: 20px 0 6px; color: var(--sand-dim); }
.guide-body ul, .guide-body ol { margin: 0 0 16px; padding-left: 22px; }
.guide-body li { margin: 6px 0; }
.guide-body a { font-weight: 700; }
.guide-body blockquote { margin: 0 0 16px; padding: 10px 14px; border-left: 3px solid var(--gulf); background: var(--ink); border-radius: 0 10px 10px 0; }
.guide-body blockquote p:last-child { margin-bottom: 0; }
.guide-body hr { border: 0; border-top: 1px solid var(--line); margin: 24px 0; }
.guide-body table { display: block; overflow-x: auto; border-collapse: collapse; margin: 0 0 16px; font-size: 15px; }
.guide-body th, .guide-body td { border: 1px solid var(--line); padding: 6px 10px; text-align: left; vertical-align: top; }
.guide-body th { background: var(--ink); }
.guide-card { display: block; text-decoration: none; color: inherit; }
.guide-card h2 { font-size: 20px; color: var(--sand); text-wrap: balance; }
.guide-card p { margin: 6px 0 0; }
.guide-card .s { color: var(--gulf); font-size: 13px; font-weight: 700; margin-top: 8px; }
