/* Verj — venue pieces of the merged app.
   demo.css loads first and supplies tokens (--gradient, --line), type, buttons,
   inputs, the app header, tabs, the map and its sheets, and every Pod panel.
   This file adds the Venues and You tabs and the venue signals on the map. */

/* ── Shared bits ────────────────────────────────────────────────────────────── */
.section-copy { max-width: 680px; margin: -12px 0 28px; font-size: 14px; }
.sub-heading { margin-top: 64px; }
.preview-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; }
.preview-list li { display: flex; gap: 14px; align-items: flex-start; }
.preview-list .gradient-dot { margin-top: 6px; }
.preview-list strong { display: block; font-size: 14px; font-weight: 600; color: #f7f7f7; }
.preview-list span { display: block; font-size: 12px; line-height: 1.6; color: #a5a5ad; }
.signal-pill, .distance-pill { display: inline-flex; align-items: center; gap: 6px; border: 1px solid #35353a; border-radius: 30px; padding: 5px 10px; font-size: 11px; color: #c9c9d1; white-space: nowrap; }
.secondary-button { width: auto; min-height: 40px; padding: 9px 14px; font-size: 12px; background: transparent; }
.empty-state { grid-column: 1 / -1; padding: 40px 24px; text-align: center; border: 1px dashed #303033; border-radius: 12px; color: #a5a5ad; }

/* Signal strength: strong reads carry the Verj gradient, others step down to grey. */
.signal-pill.strong { color: #fff; border-color: transparent; background: linear-gradient(#0b0b0d, #0b0b0d) padding-box, var(--gradient) border-box; }
.signal-pill.developing { color: #e0e0e6; border-color: #6b6b74; }
.signal-pill.limited { color: #8a8a93; border-style: dashed; }

/* ── Map: venue pins pick up their signal; "you" when sharing without a Pod ── */
.place-pin.signal-strong span { border-color: transparent; background: var(--gradient); box-shadow: 0 0 0 3px #000a, 0 0 14px #f500d4aa; }
.place-pin.signal-developing span { border-color: #c9c9d1; background: #3a3a42; }
.place-pin.signal-strong.is-selected span { transform: scale(1.35); box-shadow: 0 0 0 4px #000a, 0 0 0 8px #f500d455; }
.user-marker { width: 18px; height: 18px; border-radius: 50%; background: #fff; border: 3px solid #000; box-shadow: 0 0 0 2px #009dff, 0 0 0 0 #009dff88; animation: verj-pulse 2.2s ease-out infinite; }
@keyframes verj-pulse { to { box-shadow: 0 0 0 2px #009dff, 0 0 0 16px #009dff00; } }
.place-signal:empty { display: none; }
.venue-summary { display: grid; gap: 8px; margin: 12px 0 4px; padding: 14px; border: 1px solid #2a2a2f; border-radius: 10px; background: #111114; }
.venue-summary p { margin: 0; }
.venue-summary-crowd { font-size: 12px; color: #c9c9d1; }
.venue-summary-crowd strong { color: #fff; }
.info-sheet .venue-summary button { margin-top: 4px; }

/* ── Venues tab ─────────────────────────────────────────────────────────────── */
.near-card { padding: 20px 24px; margin-bottom: 14px; }
.near-head { align-items: flex-end; flex-wrap: wrap; }
.near-head .eyebrow { margin-bottom: 6px; }
.near-actions { gap: 8px; flex-wrap: wrap; }
.near-actions button { width: auto; min-height: 42px; font-size: 12px; padding: 9px 14px; }
.location-status { margin: 0; }
.nearby-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 8px; margin-top: 16px; }
.nearby-list:empty { display: none; }
.nearby-card { display: block; text-align: left; min-height: 0; padding: 12px 14px; background: #111114; border-color: #2a2a2f; }
.nearby-card.is-active { border-color: transparent; background: linear-gradient(#111114, #111114) padding-box, var(--gradient) border-box; }
.nearby-topline { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.nearby-name { margin: 0; font-size: 14px; font-weight: 600; color: #f7f7f7; line-height: 1.3; }
.nearby-type, .nearby-caption { margin: 2px 0 0; font-size: 11px; line-height: 1.45; color: #92929b; }
.nearby-meta { display: flex; flex-wrap: wrap; gap: 0 12px; margin-top: 6px; }
.nearby-badge { font-size: 9px; padding: 3px 8px; }

.insight-strip { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 12px; margin-bottom: 14px; }
.insight-chip { background: #0b0b0d; border: 1px solid var(--line); border-radius: 12px; padding: 20px; }
.insight-chip .eyebrow { margin-bottom: 10px; }
.insight-chip strong { display: block; font-size: 15px; font-weight: 500; line-height: 1.45; color: #f7f7f7; }

.controls-card { padding: 6px 24px 18px; margin-bottom: 28px; }
.filter-group { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.controls-card .small { margin: 0; }

.venues-board { display: grid; gap: 24px; align-items: start; }
@media (min-width: 1101px) {
  .venues-board { grid-template-columns: minmax(0, 1fr) 420px; }
  .venue-detail-panel { position: sticky; top: 24px; max-height: calc(100dvh - var(--header) - 48px); overflow-y: auto; scrollbar-width: thin; border-radius: 12px; }
}
.venue-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 16px; }

.venue-card { display: flex; flex-direction: column; gap: 18px; background: #0b0b0d; border: 1px solid var(--line); border-radius: 12px; padding: 24px; transition: border-color .18s; }
.venue-card:hover { border-color: #45454b; }
.venue-topline { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.venue-topline .eyebrow { margin-bottom: 8px; }
.venue-topline h3 { margin: 0; font-size: 21px; line-height: 1.25; }
.meta-row { display: flex; flex-wrap: wrap; gap: 8px; }
.venue-fact-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 14px; }
.venue-fact-list li { min-width: 0; }
.fact-label { display: block; font-size: 9px; font-weight: 600; letter-spacing: 1.6px; text-transform: uppercase; color: #74747f; margin-bottom: 5px; }
.venue-fact-list strong { display: block; font-size: 13px; font-weight: 600; color: #f7f7f7; line-height: 1.4; }
.venue-fact-list span:not(.fact-label) { display: block; font-size: 12px; line-height: 1.5; color: #a5a5ad; }
.venue-footer { margin-top: auto; display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; border-top: 1px solid var(--line); padding-top: 18px; }
.venue-footer p { margin: 6px 0 0; font-size: 12px; line-height: 1.5; }
.fit-score { font-size: 11px; font-weight: 700; letter-spacing: 1.4px; text-transform: uppercase; background: var(--gradient); -webkit-background-clip: text; background-clip: text; color: transparent; }

.venue-loading { grid-column: 1 / -1; display: flex; align-items: center; justify-content: center; gap: 12px; padding: 48px; color: #a5a5ad; font-size: 13px; }
.venue-loading-spinner { width: 18px; height: 18px; border-radius: 50%; border: 2px solid #303033; border-top-color: #f500d4; animation: verj-spin .8s linear infinite; }
@keyframes verj-spin { to { transform: rotate(360deg); } }

/* Venue detail */
.venue-detail-card { display: grid; gap: 26px; background: #0b0b0d; border: 1px solid var(--line); border-radius: 12px; padding: 26px; }
.venue-detail-hero { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.venue-detail-hero h2 { font-size: 30px; font-weight: 600; letter-spacing: -1px; }
.venue-detail-summary { font-size: 13px; margin: 10px 0 0; }
.venue-detail-meta, .venue-detail-grid, .venue-detail-trend { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
.venue-detail-meta-card, .venue-detail-grid article, .venue-trend-bar { background: #111114; border: 1px solid #1f1f23; border-radius: 10px; padding: 14px; min-width: 0; }
.venue-detail-label { font-size: 9px; font-weight: 600; letter-spacing: 1.6px; text-transform: uppercase; color: #8a8a93; margin: 0 0 8px; }
.venue-detail-value { font-size: 14px; font-weight: 600; color: #f7f7f7; margin: 0 0 4px; line-height: 1.4; }
.venue-detail-note { font-size: 12px; line-height: 1.55; margin: 0; }
.trend-bar-track { height: 4px; border-radius: 4px; background: #222226; margin: 10px 0 8px; overflow: hidden; }
.trend-bar-fill { height: 100%; border-radius: 4px; background: var(--gradient); }
.venue-detail-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; }
.venue-detail-footer { display: grid; gap: 14px; border-top: 1px solid var(--line); padding-top: 18px; }

/* Crowd check-ins */
.crowd-vote-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }
.crowd-vote-card { background: #0b0b0d; border: 1px solid var(--line); border-radius: 12px; padding: 24px; }
.crowd-vote-card h3 { margin-bottom: 6px; }
.crowd-vote-meta { font-size: 12px; margin: 0 0 16px; }
.crowd-vote-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.crowd-vote-actions button { min-height: 42px; font-size: 13px; }

/* ── Pod tab: the vote now sits under your Pod ──────────────────────────────── */
#session .sub-heading { margin-top: 48px; }

/* ── You tab ────────────────────────────────────────────────────────────────── */
.profile-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 24px; align-items: start; }
.profile-side { display: grid; gap: 24px; }
.setup-panel h3, .specials-panel h3 { margin-bottom: 10px; }
.magic-link-row { gap: 8px; }
.magic-link-row input { margin-top: 0; }
.magic-link-row button { width: auto; flex-shrink: 0; }
.magic-link-feedback { font-size: 12px; margin-top: 10px; color: #a5a5ad; }
.magic-link-feedback:empty { display: none; }
.magic-link-feedback--sent { color: #c9c9d1; }
.magic-link-feedback--error { color: #ff6b9a; }
#google-signin-btn:not(:empty) { margin-top: 12px; }
.auth-form-divider { display: flex; align-items: center; gap: 12px; margin: 22px 0 4px; font-size: 10px; letter-spacing: 1.4px; text-transform: uppercase; color: #74747f; }
.auth-form-divider::before, .auth-form-divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.auth-user-strip { display: flex; align-items: center; gap: 12px; }
.auth-avatar { width: 40px; height: 40px; border-radius: 50%; flex-shrink: 0; display: grid; place-items: center; overflow: hidden; background: var(--gradient); font-weight: 700; color: #fff; }
.auth-avatar img { width: 100%; height: 100%; object-fit: cover; }
.auth-user-info { display: grid; min-width: 0; flex: 1; }
.auth-user-email { font-size: 14px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; }
.auth-user-provider { font-size: 12px; color: #92929b; }
.auth-signout-btn { width: auto; }
.profile-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 16px; }
.profile-form label { margin: 14px 0 0; }
.profile-form .consent, .profile-form button { grid-column: 1 / -1; }
.profile-form .consent { margin-top: 18px; font-size: 12px; }
.profile-form button { margin-top: 24px; }
.specials-form label { margin: 14px 0 0; }
.specials-form button { margin-top: 20px; }
.specials-form #special-status:empty { display: none; }
#panel-you #demo-notes { margin: 48px 0 0; max-width: none; }

/* ── Phones ─────────────────────────────────────────────────────────────────── */
@media (max-width: 760px) {
  .filter-group, .profile-grid, .profile-form { grid-template-columns: 1fr; }
  .controls-card { padding: 2px 18px 16px; }
  .filter-group { gap: 0; }
  .filter-group label { margin: 12px 0 4px; }
  .near-card { padding: 18px; }
  .near-actions { width: 100%; }
  .near-actions button { flex: 1; }
  .nearby-list { grid-auto-flow: column; grid-auto-columns: 82%; grid-template-columns: none; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 4px; }
  .nearby-card { scroll-snap-align: start; }
  .venue-grid, .crowd-vote-grid { grid-template-columns: 1fr; }
  .venue-card, .crowd-vote-card, .venue-detail-card { padding: 20px; }
  .venue-detail-hero { flex-direction: column; }
  .venue-detail-hero h2 { font-size: 26px; }
  .venue-detail-meta, .venue-detail-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .section-copy { margin-top: -10px; font-size: 13px; }
  .sub-heading { margin-top: 48px; }
}

/* ── Meetups tab: upcoming events ───────────────────────────────────────────── */
.event-filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.event-filters button { width: auto; min-height: 38px; padding: 8px 14px; font-size: 12px; border-radius: 30px; }
.event-filters button[aria-pressed="true"] { color: #fff; border-color: transparent; background: linear-gradient(#161618, #161618) padding-box, var(--gradient) border-box; }
.event-credit { margin: -6px 0 16px; }
.events-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; }
.event-card { display: flex; flex-direction: column; gap: 6px; background: #0b0b0d; border: 1px solid var(--line); border-radius: 12px; padding: 20px; }
.event-card.is-free { border-color: transparent; background: linear-gradient(#0b0b0d, #0b0b0d) padding-box, linear-gradient(110deg, #009dff55, #f500d455, #ff9c1a55) border-box; }
.event-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.event-when { font-size: 11px; font-weight: 600; letter-spacing: .4px; color: #c9c9d1; }
.event-tag { flex-shrink: 0; font-size: 10px; border: 1px solid #35353a; border-radius: 30px; padding: 3px 9px; color: #a5a5ad; }
.event-tag.free { color: #fff; border-color: transparent; background: var(--gradient); font-weight: 700; }
.event-card h3 { margin: 6px 0 0; font-size: 17px; line-height: 1.3; }
.event-venue { margin: 0; font-size: 13px; color: #c9c9d1; }
.event-who, .event-check { margin: 0; }
.event-check { color: #ffb86b; }
.event-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: auto; padding-top: 12px; }
.event-actions .primary { width: auto; min-height: 40px; padding: 9px 14px; font-size: 12px; }
.text-link { font-size: 12px; color: #c9c9d1; text-underline-offset: 4px; }
@media (max-width: 760px) { .events-list { grid-template-columns: 1fr; } }
.event-card.has-image { padding-top: 0; overflow: hidden; }
.event-image { display: block; width: calc(100% + 40px); margin: 0 -20px 10px; aspect-ratio: 16 / 9; object-fit: cover; background: #151518; border-bottom: 1px solid var(--line); }
