/* Event Day, one page, map first. Design DNA inherited from Alameda 4th Live. */
:root {
  --navy: #451822; --navy-2: #5c2230;
  --red: #8e3b46; --red-2: #6d2833;
  --gold: #e9b64d; --cream: #faf4e8;
  --card: #fffdf7; --ink: #33222a; --muted: #85707a; --line: #ecdfd0;
  --shadow-1: 0 2px 10px rgba(26, 39, 66, .08);
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; height: 100%; overflow: hidden; }
body {
  font-family: 'Public Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--ink); background: var(--cream); font-size: 15px;
}
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }

/* ---- Header ---- */
.topbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50; height: calc(56px + var(--safe-top));
  padding: var(--safe-top) 12px 0; display: flex; align-items: center; justify-content: space-between;
  background: linear-gradient(180deg, var(--navy), var(--navy-2)); color: #fff;
}
.topbar strong { font-family: 'Alfa Slab One', serif; font-weight: 400; font-size: 19px; letter-spacing: .3px; }
.topbar-right { display: flex; gap: 8px; align-items: center; }
.pill {
  display: inline-flex; align-items: center; gap: 5px; padding: 7px 12px; border-radius: 999px;
  background: rgba(255, 255, 255, .12); color: #fff; font-weight: 700; font-size: 13px;
}
.me-chip { border: 1px solid rgba(255, 255, 255, .25); }

/* ---- Announce + phase chips (overlays; they never shift layout) ---- */
.announce {
  position: fixed; left: 0; right: 0; z-index: 49; top: calc(56px + var(--safe-top));
  display: flex; align-items: center; gap: 8px; padding: 8px 12px; min-height: 38px;
  background: linear-gradient(90deg, var(--red), var(--red-2)); color: #fff;
  font-size: 13px; font-weight: 700; box-shadow: 0 2px 8px rgba(171, 20, 36, .35);
}
.announce[hidden] { display: none; }
.ann-text { flex: 1; min-width: 0; line-height: 1.25; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.ann-x { padding: 4px 8px; font-size: 14px; color: #fff; opacity: .9; }
.phase-chip {
  position: fixed; z-index: 48; top: calc(66px + var(--safe-top)); left: 50%; transform: translateX(-50%);
  padding: 7px 14px; border-radius: 999px; background: var(--navy); color: var(--gold);
  font-weight: 800; font-size: 13px; box-shadow: var(--shadow-1); white-space: nowrap;
}
body:has(.announce:not([hidden])) .phase-chip { top: calc(112px + var(--safe-top)); }

/* ---- Map (the app itself) ---- */
#map { position: fixed; inset: calc(56px + var(--safe-top)) 0 0 0; z-index: 1; background: #dfe8dc; }
.map-fallback { display: flex; align-items: center; justify-content: center; height: 100%; color: var(--muted); font-weight: 700; padding: 24px; text-align: center; }
.pin-person {
  width: 38px; height: 38px; border-radius: 50%; background: var(--card); border: 3px solid var(--red);
  display: flex; align-items: center; justify-content: center; font-size: 19px; box-shadow: 0 3px 10px rgba(10, 26, 63, .3);
}
.pin-person.mine { outline: 3px solid var(--gold); }
.pin-photo {
  width: 44px; height: 44px; border-radius: 12px; border: 3px solid #fff; background: var(--navy-2) center/cover no-repeat;
  box-shadow: 0 3px 10px rgba(10, 26, 63, .35);
}
.pin-msg {
  width: 30px; height: 30px; border-radius: 50%; background: var(--card); border: 2px solid var(--line);
  display: flex; align-items: center; justify-content: center; font-size: 14px; box-shadow: var(--shadow-1);
}
.tap-banner {
  position: fixed; z-index: 47; top: calc(70px + var(--safe-top)); left: 50%; transform: translateX(-50%);
  display: flex; gap: 10px; align-items: center; padding: 10px 14px; border-radius: 12px;
  background: var(--navy); color: #fff; font-weight: 700; font-size: 14px; box-shadow: 0 6px 20px rgba(10, 26, 63, .4);
}
.tap-banner button { color: var(--gold); font-weight: 800; }
.tap-banner[hidden] { display: none; }
.fab {
  position: fixed; z-index: 46; right: 14px; bottom: calc(11vh + var(--safe-bottom));
  padding: 14px 18px; border-radius: 999px; font-weight: 800; font-size: 15px; color: #fff;
  background: linear-gradient(180deg, #a54a58, var(--red) 55%, var(--red-2));
  box-shadow: 0 10px 26px rgba(171, 20, 36, .45);
}
body.sheet-open .fab { display: none; }
.fab-live { bottom: calc(11vh + 62px + var(--safe-bottom)); font-size: 13px; padding: 11px 15px; background: linear-gradient(180deg, #3aa0a0, #2a9d8f 60%, #1f7d72); box-shadow: 0 8px 22px rgba(42, 157, 143, .45); }
.fab-live.on { background: linear-gradient(180deg, #e79a5a, #e07b39 60%, #c85f1f); }
.pin-person.live { animation: livepulse 1.8s ease-in-out infinite; }
@keyframes livepulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(42, 157, 143, .55); } 50% { box-shadow: 0 0 0 11px rgba(42, 157, 143, 0); } }
@media (prefers-reduced-motion: reduce) { .pin-person.live { animation: none; } }

/* ---- The sheet ---- */
#sheet {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 45; height: 6.5vh;
  background: var(--card); border-radius: 18px 18px 0 0; display: flex; flex-direction: column;
  box-shadow: 0 -8px 30px rgba(10, 26, 63, .25); transition: height .22s cubic-bezier(.2, .7, .2, 1);
  padding-bottom: var(--safe-bottom);
}
#sheet-handle { flex: 0 0 auto; padding: 8px 14px 6px; cursor: grab; touch-action: none; }
#sheet-handle::before { content: ''; display: block; width: 44px; height: 5px; border-radius: 3px; background: var(--line); margin: 0 auto 6px; }
.peek-line { font-size: 13px; font-weight: 700; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-align: center; }
#sheet.open .peek-line { display: none; }
.sheet-chips { display: flex; gap: 6px; padding: 2px 10px 8px; overflow-x: auto; flex: 0 0 auto; }
#sheet:not(.open) .sheet-chips { display: none; }
.sheet-chip {
  flex: 0 0 auto; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line);
  background: none; font-weight: 700; font-size: 13px; color: var(--ink);
}
.sheet-chip.active { background: var(--red); color: #fff; border-color: var(--red); }
.sheet-close {
  margin-left: auto; flex: 0 0 auto; align-self: center; width: 30px; height: 30px; border-radius: 50%;
  border: 1px solid var(--line); background: #fff; color: var(--muted); font-weight: 800; font-size: 13px; line-height: 1; cursor: pointer;
}
.sheet-close:hover { background: var(--cream); color: var(--ink); }
#sheet:not(.open) .peek-line { cursor: pointer; }
/* Desktop: the docked closed/peek state is a clearly clickable pill to reopen. */
@media (min-width: 860px) {
  #sheet:not(.open) { height: auto; border-radius: 999px; background: linear-gradient(180deg, #a54a58, var(--red) 60%, var(--red-2)); cursor: pointer; box-shadow: 0 8px 24px rgba(69, 24, 34, .35); }
  #sheet:not(.open) #sheet-handle { padding: 10px 16px; }
  #sheet:not(.open) #sheet-handle::before { display: none; }
  #sheet:not(.open) .peek-line { color: #fff; }
}
.sheet-pane { display: none; flex: 1; min-height: 0; flex-direction: column; }
.sheet-pane.active { display: flex; }
#sheet:not(.open) .sheet-pane { display: none; }
.pane-scroll { flex: 1; min-height: 0; overflow-y: auto; -webkit-overflow-scrolling: touch; padding: 4px 12px 10px; }
.pane-action {
  flex: 0 0 auto; margin: 8px 12px calc(10px + var(--safe-bottom)); text-align: center; padding: 13px;
  border-radius: 13px; font-weight: 800; color: #fff; cursor: pointer;
  background: linear-gradient(180deg, #a54a58, var(--red) 55%, var(--red-2));
}

/* ---- Feed ---- */
.msg { display: flex; gap: 10px; padding: 9px 2px; border-bottom: 1px solid var(--line); }
.msg-emoji { flex: 0 0 34px; height: 34px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 17px; }
.msg-body { min-width: 0; flex: 1; overflow-wrap: anywhere; }
.msg-head { display: flex; gap: 6px; align-items: baseline; }
.msg-head small { color: var(--muted); font-size: 11.5px; }
.badge { font-size: 12px; }
.empty { padding: 30px 16px; text-align: center; color: var(--muted); font-weight: 600; }
.composer {
  flex: 0 0 auto; display: flex; gap: 8px; padding: 8px 12px calc(10px + var(--safe-bottom));
  border-top: 1px solid var(--line); background: var(--card);
}
.composer-input {
  flex: 1; min-width: 0; padding: 12px 14px; border-radius: 999px; border: 1px solid var(--line);
  font: inherit; font-size: 16px; background: #fff; color: var(--ink); outline: none;
}
.composer-send { padding: 0 18px; border-radius: 999px; background: var(--navy); color: #fff; font-weight: 800; }

/* ---- Photos: fixed px height + object-fit (iOS Safari breaks aspect-ratio grids) ---- */
.photo-grid { display: grid; grid-template-columns: repeat(2, 1fr); grid-auto-rows: max-content; gap: 10px; align-content: start; }
.photo { margin: 0; background: #fff; border-radius: 14px; overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow-1); }
.photo img { width: 100%; height: 230px; object-fit: cover; display: block; background: #e6e0d2; }
.photo figcaption { padding: 8px 10px; font-size: 12px; display: flex; flex-direction: column; gap: 2px; }
.photo figcaption small { color: var(--muted); }

/* ---- Modal (sign-in) ---- */
.modal { position: fixed; inset: 0; z-index: 60; display: flex; align-items: flex-end; justify-content: center; background: rgba(10, 26, 63, .5); }
.modal[hidden] { display: none; }
.modal-card {
  width: 100%; max-width: 460px; background: var(--card); border-radius: 20px 20px 0 0;
  padding: 22px 18px calc(20px + var(--safe-bottom)); box-shadow: 0 -10px 40px rgba(4, 10, 26, .4);
}
.modal-card h3 { margin: 0 0 6px; font-size: 20px; }
.sheet-sub { color: var(--muted); font-size: 14px; margin: 0 0 14px; }
.field { display: block; margin-bottom: 12px; }
.field > span { display: block; font-size: 12.5px; font-weight: 800; color: var(--muted); margin-bottom: 5px; text-transform: uppercase; letter-spacing: .4px; }
.field input {
  width: 100%; padding: 13px 14px; border-radius: 12px; border: 1px solid var(--line);
  font: inherit; font-size: 16px; background: #fff; color: var(--ink);
}
.emoji-picker { display: flex; flex-wrap: wrap; gap: 6px; }
.emoji-opt { font-size: 21px; padding: 7px; border-radius: 10px; border: 2px solid transparent; }
.emoji-opt.on { border-color: var(--red); background: #fff; }
.emoji-any {
  margin-top: 8px; width: 100%; padding: 10px 14px; border-radius: 12px; border: 1px solid var(--line);
  font: inherit; font-size: 18px; background: #fff; color: var(--ink);
}
.sheet-actions { display: flex; gap: 10px; margin-top: 14px; }
.btn { padding: 14px 16px; border-radius: 13px; font-weight: 800; font-size: 15px; }
.btn.primary { background: linear-gradient(180deg, #a54a58, var(--red) 55%, var(--red-2)); color: #fff; }
.btn.ghost { border: 1px solid var(--line); color: var(--muted); }
.btn.grow { flex: 1; }

/* ---- Toast ---- */
.toast {
  position: fixed; z-index: 70; left: 50%; transform: translateX(-50%); bottom: calc(14vh + var(--safe-bottom));
  background: var(--navy); color: #fff; padding: 11px 18px; border-radius: 999px; font-weight: 700;
  font-size: 14px; box-shadow: 0 8px 24px rgba(10, 26, 63, .45); max-width: 86vw; text-align: center;
}

/* ---- Desktop: same one-page model; the sheet docks right like a chat panel ---- */
@media (min-width: 860px) {
  #sheet { left: auto; right: 20px; width: 420px; border-radius: 18px; bottom: 16px; }
  .fab { right: 460px; bottom: 28px; }
  .fab-live { right: 460px; bottom: 90px; }
  body.sheet-open .fab { display: block; }
}

@media (prefers-reduced-motion: reduce) {
  #sheet { transition: none; }
}

/* ---- Faire additions: stages, amenities, music schedule ---- */
.pin-stage {
  width: 44px; height: 44px; border-radius: 50%; background: #fff; border: 3px solid #8e3b46;
  display: flex; align-items: center; justify-content: center; font-size: 21px; position: relative;
  box-shadow: 0 4px 12px rgba(10, 26, 63, .35);
}
.pin-stage.live { border-color: #2a9d8f; animation: pulse 2s infinite; }
.pin-live {
  position: absolute; bottom: -8px; left: 50%; transform: translateX(-50%);
  background: #2a9d8f; color: #fff; font-size: 9px; font-weight: 800; padding: 1px 6px; border-radius: 6px; letter-spacing: .5px;
}
@keyframes pulse { 0%,100% { box-shadow: 0 4px 12px rgba(42,157,143,.35); } 50% { box-shadow: 0 4px 20px rgba(42,157,143,.8); } }
@media (prefers-reduced-motion: reduce) { .pin-stage.live { animation: none; } }
.pin-amenity {
  width: 30px; height: 30px; border-radius: 9px; background: #fff; border: 2px solid var(--line);
  display: flex; align-items: center; justify-content: center; font-size: 15px; box-shadow: var(--shadow-1);
}
.day-toggle { display: flex; gap: 8px; padding: 8px 2px; }
.day-btn { flex: 1; padding: 10px; border-radius: 12px; border: 1px solid var(--line); font-weight: 800; background: none; color: var(--ink); }
.day-btn.active { background: #8e3b46; color: #fff; border-color: #8e3b46; }
.stage-block { margin: 10px 0 16px; }
.stage-head { font-size: 15px; margin-bottom: 6px; }
.stage-head small { color: var(--muted); font-weight: 600; margin-left: 4px; }
.set { display: flex; gap: 10px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 12px; margin-bottom: 6px; background: #fff; }
.set.on { border-color: #2a9d8f; background: #f0faf8; }
.set.past { opacity: .5; }
.set-time { flex: 0 0 108px; font-weight: 800; font-size: 12.5px; padding-top: 2px; }
.set-band { min-width: 0; font-size: 14px; }
.set-band small { color: var(--muted); }
.live-dot { color: #2a9d8f; font-size: 11px; font-weight: 800; }
.set-band a { color: inherit; text-decoration: underline; text-decoration-color: var(--gold); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.band-ext { color: var(--red); font-size: 11px; font-weight: 800; }
.music-note { color: var(--muted); font-size: 11.5px; text-align: center; padding: 8px 14px 4px; }

/* ---- Find pane: searchable directory of everything on the map ---- */
.pin-vendor {
  width: 22px; height: 22px; border-radius: 50%; background: #fffdf7; border: 2px solid var(--gold);
  display: flex; align-items: center; justify-content: center; font-size: 11px; box-shadow: var(--shadow-1);
}
.vendor-tools { flex: 0 0 auto; display: flex; flex-direction: column; gap: 8px; padding: 6px 12px 8px; border-bottom: 1px solid var(--line); }
.vendor-note {
  font-size: 11.5px; font-weight: 600; color: var(--muted); background: #fff;
  border: 1px dashed var(--gold); border-radius: 10px; padding: 7px 10px;
}
.vendor-search {
  width: 100%; padding: 11px 14px; border-radius: 999px; border: 1px solid var(--line);
  font: inherit; font-size: 16px; background: #fff; color: var(--ink); outline: none;
}
.find-tabs {
  position: sticky; top: 0; z-index: 5; display: flex; gap: 6px;
  padding: 6px 0 8px; background: var(--card); overflow-x: auto;
}
.find-tab {
  flex: 1 0 auto; padding: 8px 10px; border-radius: 999px; border: 1px solid var(--line);
  font-weight: 800; font-size: 12px; background: #fff; color: var(--ink);
}
.find-tab.active { background: var(--red); color: #fff; border-color: var(--red); }
.find-sec { flex: 0 0 auto; font-size: 13px; opacity: .75; }
.find-head {
  font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: 1px;
  color: var(--red-2); margin: 16px 2px 2px;
}
.find-tabs + .find-head { margin-top: 4px; }
.vendor-note { margin-top: 6px; }
.vendor-row {
  display: flex; gap: 10px; align-items: center; width: 100%; text-align: left;
  padding: 10px; border: 1px solid var(--line); border-radius: 12px; margin: 6px 0 0; background: #fff;
}
.vendor-emoji { flex: 0 0 30px; font-size: 20px; text-align: center; }
.vendor-body { min-width: 0; flex: 1; font-size: 14px; }
.vendor-body small { color: var(--muted); }

/* ---- Faire look pass ---- */
.brand { display: flex; flex-direction: column; line-height: 1.15; min-width: 0; }
.brand-sub {
  font-size: 10px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase;
  color: var(--gold); opacity: .95;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

/* ---- Topbar phone fit: never wrap or overflow at 320-430px ---- */
.topbar { gap: 8px; }
.brand { flex: 1 1 auto; }
.brand strong { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.topbar-right { flex: 0 0 auto; }
.pill { white-space: nowrap; }
.pill .pill-label { margin-left: 4px; }
.me-chip span:last-child { max-width: 110px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 430px) {
  .topbar strong { font-size: 17px; }
  .pill { padding: 7px 10px; font-size: 12.5px; }
}
@media (max-width: 359px) { .pill .pill-label { display: none; } }
.bunting {
  position: fixed; left: 0; right: 0; z-index: 50; top: calc(56px + var(--safe-top)); height: 7px;
  background: repeating-linear-gradient(135deg, var(--gold) 0 12px, #fdfaf2 12px 24px, var(--red) 24px 36px);
  box-shadow: 0 2px 8px rgba(69, 24, 34, .25);
}
.announce { top: calc(63px + var(--safe-top)); }
.phase-chip { top: calc(73px + var(--safe-top)); }
#map { inset: calc(63px + var(--safe-top)) 0 0 0; }
.welcome-card { text-align: center; border-radius: 22px 22px 0 0; }
.w-glass { font-size: 46px; line-height: 1; margin-bottom: 4px; filter: drop-shadow(0 4px 10px rgba(142, 59, 70, .35)); }
.welcome-card h3 { font-family: 'Alfa Slab One', serif; font-weight: 400; font-size: 24px; color: var(--red-2); margin: 4px 0 4px; }
.w-row { display: flex; gap: 12px; text-align: left; align-items: center; padding: 9px 4px; border-bottom: 1px solid var(--line); }
.w-row:last-of-type { border-bottom: 0; }
.w-row > span { font-size: 24px; flex: 0 0 34px; text-align: center; }
.w-row small { color: var(--muted); }
.w-attrib { color: var(--muted); font-size: 11px; margin: 10px 0 0; }

/* ---- Profile card (signed-in me-chip) ---- */
.crew-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.crew-chip {
  display: inline-flex; align-items: center; gap: 4px; padding: 6px 6px 6px 12px;
  border-radius: 999px; background: #fff; border: 1px solid var(--line);
  font-weight: 700; font-size: 13px;
}
.crew-chip .crew-leave { padding: 2px 7px; color: var(--muted); font-size: 12px; }
.crew-none { color: var(--muted); }
.crew-join-row { display: flex; gap: 8px; margin-top: 8px; }
.crew-join-row input {
  flex: 1; min-width: 0; padding: 10px 14px; border-radius: 999px; border: 1px solid var(--line);
  font: inherit; font-size: 16px; background: #fff; color: var(--ink);
}
.crew-join-row .btn { padding: 10px 18px; }
.composer-aud {
  flex: 0 0 auto; max-width: 128px; border: 1px solid var(--line); border-radius: 999px;
  padding: 0 8px; background: #fff; color: var(--ink); font: inherit; font-size: 13px; font-weight: 700;
}
.composer-aud[hidden] { display: none; }
.vis-opts { display: grid; gap: 8px; }
.vis-opt {
  display: block; width: 100%; text-align: left; padding: 12px 14px;
  border: 1px solid var(--line); border-radius: 13px; background: #fff; color: var(--ink); font-weight: 800;
}
.vis-opt small { display: block; color: var(--muted); font-weight: 600; margin-top: 2px; }

/* ---- Vendor ratings + detail (vendors = the faire's parade "floats") ---- */
.muted { color: var(--muted); }
.small { font-size: 12px; }
.modal-x {
  position: absolute; top: 10px; right: 12px; width: 34px; height: 34px; border-radius: 50%;
  background: #fff; border: 1px solid var(--line); color: var(--muted); font-size: 15px; font-weight: 800; line-height: 1;
}
.modal-card { position: relative; }
.modal-card.vd-card { max-height: 88vh; overflow-y: auto; }

/* vendor rows carry the rating controls under the tappable open button */
.vendor-card { flex-direction: column; align-items: stretch; gap: 8px; }
.vendor-open {
  display: flex; gap: 10px; align-items: center; width: 100%; text-align: left;
  background: none; border: 0; padding: 0; color: inherit; font: inherit;
}
.vendor-rate { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; }
.v-heart { font-size: 18px; line-height: 1; padding: 2px 4px; border-radius: 8px; background: none; }
.v-heart.on { transform: scale(1.05); }
.v-stars { display: inline-flex; gap: 1px; }
.v-star { font-size: 18px; line-height: 1; color: var(--line); background: none; padding: 1px; }
.v-star.on { color: var(--gold); }
.v-agg { font-size: 12.5px; font-weight: 700; color: var(--red-2); }
.v-agg.muted { color: var(--muted); font-weight: 600; }
.v-sort { display: flex; gap: 6px; margin: 4px 0 2px; }
.v-sort-btn { flex: 0 0 auto; padding: 6px 10px; border-radius: 999px; border: 1px solid var(--line); font-weight: 800; font-size: 11.5px; background: #fff; color: var(--ink); }
.v-sort-btn.on { background: var(--navy); color: var(--gold); border-color: var(--navy); }

/* vendor detail card */
.vd-head { display: flex; gap: 12px; align-items: center; padding-right: 34px; }
.vd-emoji { font-size: 32px; flex: 0 0 auto; }
.vd-title h3 { margin: 0; font-size: 19px; }
.vd-blurb { margin: 12px 0 4px; font-size: 14.5px; line-height: 1.45; }
.vd-line { font-size: 13.5px; margin: 4px 0; }
.vd-line a { color: var(--red); text-decoration: underline; text-decoration-color: var(--gold); text-decoration-thickness: 2px; text-underline-offset: 3px; word-break: break-word; }
.vd-empty { margin: 12px 0 4px; font-size: 13.5px; }
.vd-rate { margin: 14px 0 6px; padding: 12px; border: 1px solid var(--line); border-radius: 14px; background: #fff; display: grid; gap: 10px; }
.vd-rate-row { display: flex; align-items: center; gap: 10px; }
.vd-rate-row .v-star { font-size: 24px; }
.vd-rate-row .v-heart { font-size: 24px; }
.vd-agg { font-size: 13px; font-weight: 700; color: var(--muted); }

/* vendor comments (mirrors the parade float comments) */
.vd-comments { margin-top: 14px; border-top: 1px solid var(--line); padding-top: 10px; }
.vd-comments-h { margin: 0 0 8px; font-size: 14px; }
.vcomment { display: flex; gap: 9px; padding: 7px 0; border-bottom: 1px solid var(--line); }
.vc-emoji { flex: 0 0 30px; height: 30px; display: flex; align-items: center; justify-content: center; border-radius: 50%; font-size: 15px; }
.vc-body { min-width: 0; font-size: 14px; }
.vcomment-add { display: flex; gap: 8px; margin-top: 10px; }
.vcomment-input {
  flex: 1; min-width: 0; padding: 11px 14px; border-radius: 999px; border: 1px solid var(--line);
  font: inherit; font-size: 16px; background: #fff; color: var(--ink); outline: none;
}
.vcomment-send { padding: 0 18px; border-radius: 999px; background: var(--navy); color: #fff; font-weight: 800; }

/* vendor booth QR (print/share affordance) */
.vd-qr { margin: 12px 0 4px; }
.vd-qr-btn { padding: 9px 14px; border-radius: 999px; border: 1px solid var(--line); background: #fff; font-weight: 800; font-size: 13px; color: var(--navy); }
.vd-qr-box { margin-top: 10px; text-align: center; }
.vd-qr-img { width: 220px; max-width: 70vw; border: 1px solid var(--line); border-radius: 12px; background: #fff; padding: 6px; }
.vd-qr-link { margin-top: 6px; word-break: break-all; }

/* vendor self-serve edit form */
.ve-textarea {
  width: 100%; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line);
  font: inherit; font-size: 16px; background: #fff; color: var(--ink); resize: vertical;
}
.ve-status { font-size: 13px; font-weight: 700; color: var(--red-2); min-height: 18px; }

/* ---- Tip jar (subtle, wine theme; Milad's, not DABA's) ---- */
#tip-pill { color: var(--gold); font-size: 15px; line-height: 1; }
.tip-card { text-align: center; }
.tip-glass { font-size: 40px; line-height: 1; margin-bottom: 2px; filter: drop-shadow(0 4px 10px rgba(142, 59, 70, .35)); }
.tip-card h3 { font-family: 'Alfa Slab One', serif; font-weight: 400; color: var(--red-2); font-size: 21px; margin: 4px 0 6px; }
.tip-qr { margin: 12px 0 2px; }
.tip-qr img { width: 180px; max-width: 60vw; border: 1px solid var(--line); border-radius: 12px; background: #fff; padding: 6px; }

/* ---- Photo upload UX: caption + persistent uploading state + skeleton ---- */
.photo-actions { flex: 0 0 auto; display: flex; flex-direction: column; gap: 0; }
.photo-caption {
  margin: 8px 12px 0; padding: 11px 14px; border-radius: 999px; border: 1px solid var(--line);
  font: inherit; font-size: 16px; background: #fff; color: var(--ink); outline: none;
}
.pane-action .pa-busy { display: none; }
.pane-action.busy { opacity: .75; pointer-events: none; }
.pane-action.busy .pa-idle { display: none; }
.pane-action.busy .pa-busy { display: inline-flex; align-items: center; gap: 8px; }
.pane-action.busy .pa-busy::before {
  content: ''; width: 15px; height: 15px; border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, .5); border-top-color: #fff;
  display: inline-block; animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .pane-action.busy .pa-busy::before { animation: none; } }
.photo-skeleton { background: var(--card); border: 1px solid var(--line); }
.ph-sk-img {
  width: 100%; height: 230px;
  background: linear-gradient(100deg, #ece5d8 30%, #f6f1e7 50%, #ece5d8 70%);
  background-size: 200% 100%; animation: shimmer 1.2s linear infinite;
}
@keyframes shimmer { to { background-position: -200% 0; } }
@media (prefers-reduced-motion: reduce) { .ph-sk-img { animation: none; } }
.photo { cursor: pointer; }
.photo:active { transform: scale(.99); }
.photo-pop { text-align: center; }
.photo-pop img { width: 180px; max-width: 46vw; border-radius: 8px; display: block; margin: 0 auto 4px; }
.lightbox-inner { margin: auto; max-width: 92vw; max-height: 88vh; text-align: center; }
#lightbox img { max-width: 92vw; max-height: 74vh; border-radius: 12px; box-shadow: 0 10px 40px rgba(4, 10, 26, .5); }
#lightbox-cap { color: #fff; margin-top: 12px; font-size: 14px; max-width: 92vw; }
#lightbox { align-items: center; }
