/* Late Night Social — static SEO site (light theme) */

:root {
  --bg: #ffffff;
  --surface: #f8fafc;
  --surface2: #f1f5f9;
  --text: #0f172a;
  --muted: #64748b;
  --accent: #6d28d9;
  --accent2: #059669;
  --border: #e2e8f0;
  --radius: 12px;
  --max: 960px;
}

* { box-sizing: border-box; }
html, body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.6 system-ui, -apple-system, "Segoe UI", sans-serif;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }

.site-header {
  border-bottom: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  position: sticky;
  top: 0;
  z-index: 10;
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 56px;
}
.logo { font-weight: 700; color: var(--text); font-size: 1.05rem; }
.breadcrumb { color: var(--muted); font-size: 0.85rem; }

main { padding: 32px 0 64px; }

.hero { margin-bottom: 32px; }
.hero.compact { margin-bottom: 24px; }
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.75rem;
  color: var(--accent2);
  margin: 0 0 8px;
}
.hero h1 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  line-height: 1.15;
  margin: 0 0 12px;
  max-width: 18ch;
}
.lede { color: var(--muted); max-width: 52ch; margin: 0 0 12px; }
.stat-row { color: var(--muted); }

.open-now-hero {
  margin: 20px 0 16px;
  padding: 16px 20px;
  border-radius: 12px;
  background: linear-gradient(135deg, #ecfdf5 0%, #f5f3ff 100%);
  border: 1px solid var(--border);
}
.open-now-headline {
  margin: 0 0 6px;
  font-size: 1.15rem;
  color: var(--text);
}
.open-now-headline strong {
  color: var(--accent);
  font-size: 1.35rem;
}
.open-now-sub,
.open-now-status {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}
.open-now-badge-muted {
  color: var(--muted);
  font-weight: 500;
}
.open-now-hero-compact {
  margin: 12px 0;
  padding: 12px 16px;
}
.open-now-headline-compact {
  font-size: 1rem;
  margin: 0;
}
.open-now-locate {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
  align-items: center;
}
.open-now-postal-input {
  flex: 1;
  min-width: 140px;
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 0.95rem;
}
.open-now-filter-bar {
  margin-bottom: 16px;
}
.open-now-filter {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.95rem;
  cursor: pointer;
}
.open-now-pill {
  display: inline-block;
  margin-left: 8px;
  padding: 2px 8px;
  border-radius: 999px;
  background: #ecfdf5;
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 600;
  vertical-align: middle;
}
.venue-card.venue-open-now {
  border-color: #86efac;
}
.browse-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}
.browse-header h2 {
  margin: 0;
}
.city-search {
  padding: 8px 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 0.95rem;
  min-width: 200px;
}

.state-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}
.state-block {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 18px;
}
.state-block h2 { margin: 0 0 12px; font-size: 1.1rem; }

.city-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.city-list li {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: baseline;
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
}
.city-list li:last-child { border-bottom: 0; }
.city-list.large li { padding: 12px 0; }
.count {
  color: var(--muted);
  font-size: 0.85rem;
}
.cats { color: var(--muted); font-size: 0.8rem; width: 100%; }

.chips, .chips a {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.chips-label { color: var(--muted); font-size: 0.85rem; margin-right: 4px; }
.prose { color: var(--muted); max-width: 62ch; margin: 12px 0 0; }
.prose p { margin: 0; }
.chip, .chips a {
  display: inline-block;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 0.85rem;
  color: var(--text);
}
.chip:hover, .chips a:hover { border-color: var(--accent); text-decoration: none; }

.venue-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}

/* Near-me sorting */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.near-me-bar {
  margin: 0 0 20px;
  padding: 16px 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.near-me-label {
  margin: 0 0 10px;
  font-weight: 600;
  font-size: 0.95rem;
}
.near-me-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}
.near-me-btn {
  appearance: none;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text);
  border-radius: 999px;
  padding: 8px 16px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
}
.near-me-btn:hover { border-color: var(--accent); }
.near-me-btn-primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}
.near-me-btn-primary:hover { opacity: 0.92; }
.near-me-zip {
  display: flex;
  gap: 8px;
  align-items: center;
  margin: 0;
}
.near-me-zip input {
  width: 7rem;
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 0.9rem;
  background: var(--bg);
}
.near-me-status {
  margin: 10px 0 0;
  font-size: 0.85rem;
  color: var(--muted);
}
.near-me-status.near-me-error { color: #b91c1c; }
.distance-badge {
  margin: 0 0 8px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent2);
}
.venue-list { margin-bottom: 8px; }
.venue-list-heading {
  font-size: 1.25rem;
  margin: 0 0 16px;
}
.open-at-time-panel {
  margin: 32px 0 24px;
  padding: 20px 22px;
  border-radius: var(--radius);
  background: linear-gradient(135deg, #ecfdf5 0%, #f5f3ff 100%);
  border: 1px solid var(--border);
}
.open-at-time-header h2 {
  margin: 0 0 8px;
  font-size: 1.35rem;
}
.open-at-time-lede {
  margin: 0 0 16px;
  color: var(--muted);
}
.time-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 16px;
  align-items: flex-end;
  margin-bottom: 12px;
}
.time-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 0.85rem;
  color: var(--muted);
}
.time-field select,
.time-field input[type="time"] {
  padding: 8px 10px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 0.95rem;
  background: #fff;
}
.open-at-summary {
  margin: 0 0 6px;
  font-size: 1.05rem;
}
.open-at-summary strong {
  color: var(--accent);
  font-size: 1.25rem;
}
.open-at-hint {
  margin: 0;
  font-size: 0.9rem;
}
.open-at-hint a {
  color: var(--accent2);
}
.venue-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.venue-card.venue-closed-at-time:not(.venue-open-now) {
  opacity: 0.72;
}
.venue-media {
  aspect-ratio: 16 / 9;
  background: #e2e8f0;
  overflow: hidden;
}
.venue-media--gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
}
.venue-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  min-height: 140px;
}
.venue-media--gallery .venue-photo {
  min-height: 100px;
  aspect-ratio: 1;
}
.venue-media--placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #ede9fe, #ecfdf5);
}
.venue-placeholder-letter {
  font-size: 2.5rem;
  font-weight: 700;
  color: #5b21b6;
  opacity: 0.35;
}
.venue-body {
  padding: 16px;
}
.venue-card h3 { margin: 0 0 8px; font-size: 1.05rem; }
.venue-meta { margin: 0 0 8px; color: var(--muted); font-size: 0.9rem; }
.venue-address { margin: 0 0 8px; font-size: 0.9rem; }
.venue-links { margin: 0; font-size: 0.85rem; }
.pill {
  display: inline-block;
  background: #ede9fe;
  color: #5b21b6;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 0.75rem;
}
.pill-alc {
  background: #ffedd5;
  color: #9a3412;
  margin-left: 4px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.nearby, .faq { margin-top: 40px; }
.faq details {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px 16px;
  margin-bottom: 8px;
}
.faq summary { cursor: pointer; font-weight: 600; }
.empty { color: var(--muted); }

.site-footer {
  border-top: 1px solid var(--border);
  padding: 24px 0;
  color: var(--muted);
  font-size: 0.9rem;
}


/* Calendar & events */
.calendar-section { margin: 32px 0 40px; padding-top: 24px; border-top: 1px solid var(--border); }
.open-mic-spotlight {
  margin: 20px 0 24px;
  padding: 20px;
  border-radius: 12px;
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
}
.open-mic-spotlight h3 { margin: 0 0 6px; font-size: 1.05rem; }
.week-heading { margin: 0 0 12px; font-size: 0.9rem; text-transform: uppercase; letter-spacing: 0.04em; color: var(--muted); }
.section-head { margin-bottom: 20px; }
.section-head h2 { margin: 0 0 8px; font-size: 1.35rem; }
.section-lede { color: var(--muted); margin: 0 0 12px; }
.btn-link { font-weight: 600; color: var(--accent); }
.chip-calendar { background: #ecfdf5; border-color: #6ee7b7; color: #047857; }

.week-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
}
.week-grid.preview { margin-bottom: 16px; }
.day-col {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px;
}
.day-col h3 {
  margin: 0 0 12px;
  font-size: 0.95rem;
  color: var(--accent2);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.empty-day { color: var(--muted); font-size: 0.85rem; margin: 0; }

.event-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 12px;
  margin-bottom: 10px;
}
.event-card h4 { margin: 0 0 6px; font-size: 0.95rem; }
.event-meta { margin: 0 0 6px; }
.event-when, .event-venue { margin: 0 0 4px; font-size: 0.85rem; color: var(--muted); }
.event-address, .event-notes { margin: 0 0 6px; font-size: 0.85rem; }
.event-links { margin: 0; font-size: 0.8rem; }
.event-more { margin: 8px 0 0; font-size: 0.8rem; color: var(--muted); }
.pill-activity { background: #ede9fe; color: #5b21b6; }
.pill-na { background: #d1fae5; color: #047857; }
.activity-chips { margin-top: 12px; }

/* Pillar hub & SEO clusters */
.pillar-hub {
  margin: 32px 0 40px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}
.pillar-hub h2 { margin: 0 0 12px; font-size: 1.35rem; }
.hub-group { margin-top: 28px; }
.hub-group h3 { margin: 0 0 12px; font-size: 1.05rem; color: var(--text); }
.hub-note { color: var(--muted); font-size: 0.9rem; margin: 0 0 12px; max-width: 62ch; }
.hub-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 12px;
}
.hub-card {
  display: flex;
  flex-direction: column;
  gap: 4px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 16px;
  color: var(--text);
  text-decoration: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.hub-card:hover {
  border-color: var(--accent);
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.08);
  text-decoration: none;
}
.hub-card strong { font-size: 0.95rem; }
.hub-card span { color: var(--muted); font-size: 0.8rem; }
.cluster-events, .cluster-venues { margin-bottom: 32px; }
.cluster-events h2, .cluster-venues h2 { margin: 0 0 16px; font-size: 1.15rem; }
.event-list { max-width: 640px; }

@media (max-width: 640px) {
  .week-grid.full { grid-template-columns: 1fr; }
  .site-header .wrap { flex-direction: column; align-items: flex-start; padding-top: 12px; padding-bottom: 12px; }
  .hero h1 { max-width: none; }
  .arch-row { flex-direction: column; }
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
}

/* Admin dashboard (/admin/) */
.admin-page main { max-width: 1100px; margin: 0 auto; }
.admin-hero h1 { max-width: none; }
.admin-section { margin-bottom: 48px; }
.admin-section h2 { margin: 0 0 8px; font-size: 1.35rem; }
.section-lede { color: var(--muted); margin: 0 0 20px; font-size: 0.95rem; }

.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 12px;
  margin-bottom: 40px;
}
.stat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.stat-card strong { font-size: 1.4rem; color: var(--accent); }
.stat-card span { font-size: 0.8rem; color: var(--muted); }

.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}
.admin-table th,
.admin-table td {
  border: 1px solid var(--border);
  padding: 10px 12px;
  text-align: left;
  vertical-align: top;
}
.admin-table th {
  background: var(--surface);
  font-weight: 600;
  font-size: 0.8rem;
}
.admin-table code {
  font-size: 0.82rem;
  background: var(--surface2);
  padding: 2px 6px;
  border-radius: 4px;
}
.table-scroll { overflow-x: auto; }

.admin-matrix td { text-align: center; min-width: 72px; }
.admin-matrix td:first-child { text-align: left; min-width: 160px; }
.cov-live { background: #ecfdf5; }
.cov-live a { color: var(--accent2); font-weight: 600; }
.cov-gap { color: var(--muted); background: var(--surface); }

.pill-hub { background: #ede9fe; color: #5b21b6; }
.pill-venue_type { background: #dbeafe; color: #1d4ed8; }
.pill-activity { background: #fef3c7; color: #b45309; }
.pill-intent { background: #fce7f3; color: #be185d; }
.pill-seo { background: #ede9fe; color: #5b21b6; font-size: 0.7rem; margin-left: 6px; }
.pill-live { background: #ecfdf5; color: #047857; }
.pill-queue { background: #fef3c7; color: #b45309; }

.arch-diagram {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  text-align: center;
}
.arch-layer { margin: 8px 0; }
.arch-node {
  display: inline-block;
  background: var(--bg);
  border: 2px solid var(--border);
  border-radius: 8px;
  padding: 10px 14px;
  font-family: ui-monospace, monospace;
  font-size: 0.85rem;
  margin: 4px;
}
.arch-node-pillar { border-color: var(--accent); font-weight: 600; }
.arch-node-type { border-color: #3b82f6; }
.arch-node-activity { border-color: #f59e0b; }
.arch-node-intent { border-color: #ec4899; }
.arch-label {
  display: block;
  font-size: 0.75rem;
  color: var(--muted);
  margin-top: 6px;
}
.arch-connector { color: var(--muted); font-size: 1.1rem; margin: 4px 0; }
.arch-row {
  display: flex;
  gap: 24px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 12px;
}
.arch-branch {
  flex: 1;
  min-width: 200px;
  padding: 16px;
  background: var(--bg);
  border-radius: 8px;
  border: 1px dashed var(--border);
}

.rollout-list { list-style: none; padding: 0; margin: 0; }
.rollout-list li { padding: 8px 0; border-bottom: 1px solid var(--border); }

.admin-prd {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 28px;
}
.admin-prd h3 { margin: 20px 0 8px; font-size: 1rem; }
.admin-prd .prose p { margin: 0 0 12px; }
.admin-prd .prose ol,
.admin-prd .prose ul { margin: 0 0 16px; padding-left: 1.4rem; }
.admin-prd .prose li { margin-bottom: 6px; }
.muted { color: var(--muted); }

.admin-nav {
  margin: 12px 0 0;
  font-size: 0.9rem;
  color: var(--muted);
}
.admin-nav a { color: var(--accent); }

/* Dense CSV-like venues browser */
.admin-venues-page main { max-width: min(1400px, 98vw); }
.admin-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  align-items: flex-end;
  margin-bottom: 10px;
}
.admin-filters label {
  display: flex;
  flex-direction: column;
  gap: 3px;
  font-size: 0.7rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.admin-filters select,
.admin-filters input {
  font-size: 0.8rem;
  padding: 4px 6px;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: var(--bg);
  color: var(--text);
  min-width: 120px;
}
.admin-search-wrap { flex: 1; min-width: 160px; }
.admin-search-wrap input { width: 100%; }
.admin-count {
  margin: 0;
  font-size: 0.8rem;
  color: var(--muted);
  align-self: center;
  text-transform: none;
  letter-spacing: 0;
}
.admin-hours-note {
  font-size: 0.75rem;
  margin: 0 0 12px;
  line-height: 1.4;
}
.admin-dense-wrap { max-height: 75vh; overflow: auto; border: 1px solid var(--border); }
.admin-dense {
  width: 100%;
  border-collapse: collapse;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 11px;
  line-height: 1.25;
}
.admin-dense th,
.admin-dense td {
  border-bottom: 1px solid var(--border);
  padding: 2px 6px;
  text-align: left;
  white-space: nowrap;
  max-width: 280px;
  overflow: hidden;
  text-overflow: ellipsis;
}
.admin-dense th {
  position: sticky;
  top: 0;
  background: var(--surface);
  font-weight: 600;
  z-index: 1;
  border-bottom: 1px solid var(--text);
}
.admin-dense .av-hours { max-width: 220px; }
.admin-dense .av-addr { max-width: 200px; }
.admin-dense .av-name { font-weight: 600; max-width: 180px; }
.admin-dense .av-city { max-width: 140px; }
.admin-dense .av-flags { color: #b45309; max-width: 160px; }
.admin-dense tr.av-warn { background: #fffbeb; }
.admin-dense tr:hover { background: var(--surface); }

/* Magic carpet page loader — mounts only when html.carpet-loading (once/session) */
html.carpet-loading { overflow: hidden; }

.carpet-loader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  place-items: center;
  overflow: hidden;
  background:
    radial-gradient(ellipse 120% 80% at 50% 100%, #5b21b6 0%, #1e1b4b 42%, #0f172a 100%);
  pointer-events: all;
}

.carpet-loader__moon {
  position: absolute;
  top: 14%;
  right: 16%;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #fef9c3, #fde68a 55%, #fbbf24);
  box-shadow:
    0 0 40px rgba(253, 224, 71, 0.35),
    inset -10px -6px 0 rgba(180, 83, 9, 0.12);
  opacity: 0.9;
}

.carpet-loader__stars {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(1.5px 1.5px at 8% 12%, #fef3c7, transparent),
    radial-gradient(1px 1px at 22% 18%, #fef3c7, transparent),
    radial-gradient(1.5px 1.5px at 36% 8%, #fef3c7, transparent),
    radial-gradient(1px 1px at 48% 24%, #fef3c7, transparent),
    radial-gradient(1.5px 1.5px at 62% 12%, #fef3c7, transparent),
    radial-gradient(1px 1px at 74% 30%, #fef3c7, transparent),
    radial-gradient(1px 1px at 88% 16%, #fef3c7, transparent),
    radial-gradient(1.5px 1.5px at 12% 42%, #fef3c7, transparent),
    radial-gradient(1px 1px at 28% 50%, #fef3c7, transparent),
    radial-gradient(1.5px 1.5px at 54% 38%, #fef3c7, transparent),
    radial-gradient(1px 1px at 80% 46%, #fef3c7, transparent),
    radial-gradient(1px 1px at 6% 58%, #fef3c7, transparent),
    radial-gradient(1.5px 1.5px at 40% 64%, #fef3c7, transparent),
    radial-gradient(1px 1px at 68% 70%, #fef3c7, transparent),
    radial-gradient(1px 1px at 18% 78%, #fef3c7, transparent),
    radial-gradient(1.5px 1.5px at 94% 22%, #fef3c7, transparent),
    radial-gradient(1px 1px at 92% 68%, #fef3c7, transparent),
    radial-gradient(1px 1px at 52% 84%, #fef3c7, transparent);
  animation: carpet-twinkle 2.4s ease-in-out infinite;
}

.carpet-loader__stage {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.carpet-loader__flyer {
  position: absolute;
  left: 0;
  top: 42%;
  width: 200px;
  margin-top: -70px;
  will-change: transform;
  animation: carpet-cruise 2.4s cubic-bezier(0.45, 0.05, 0.55, 0.95) infinite;
}

.carpet-loader__svg {
  display: block;
  width: 200px;
  height: auto;
  filter: drop-shadow(0 12px 18px rgba(0, 0, 0, 0.4));
  animation: carpet-tilt 1.3s ease-in-out infinite;
}

.carpet-loader__spark {
  position: absolute;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #fde68a;
  box-shadow: 0 0 10px #fbbf24;
  opacity: 0;
  animation: carpet-spark 1.2s ease-out infinite;
}

.carpet-loader__spark--1 { top: 62%; left: 4%; animation-delay: 0s; }
.carpet-loader__spark--2 { top: 70%; left: 14%; animation-delay: .3s; width: 4px; height: 4px; }
.carpet-loader__spark--3 { top: 58%; left: 10%; animation-delay: .6s; width: 5px; height: 5px; }
.carpet-loader__spark--4 { top: 74%; left: 22%; animation-delay: .9s; width: 3px; height: 3px; }

.carpet-loader__text {
  position: absolute;
  bottom: max(12vh, 48px);
  left: 0;
  right: 0;
  margin: 0;
  text-align: center;
  color: #e9d5ff;
  font-size: 1rem;
  letter-spacing: 0.06em;
  font-weight: 500;
  text-shadow: 0 2px 12px rgba(76, 29, 149, 0.8);
  animation: carpet-text-pulse 1.6s ease-in-out infinite;
}

.carpet-loader--exit {
  animation: carpet-fade-out 0.7s ease forwards;
  pointer-events: none;
}

.carpet-loader--exit .carpet-loader__flyer {
  animation: carpet-exit 0.7s cubic-bezier(0.4, 0, 1, 1) forwards;
}

.carpet-loader--exit .carpet-loader__text {
  animation: none;
  opacity: 0;
  transition: opacity 0.25s ease;
}

@keyframes carpet-cruise {
  0%   { transform: translate3d(-220px, 16px, 0) rotate(-5deg); }
  25%  { transform: translate3d(18vw, -18px, 0) rotate(3deg); }
  50%  { transform: translate3d(42vw, 12px, 0) rotate(-4deg); }
  75%  { transform: translate3d(72vw, -14px, 0) rotate(2deg); }
  100% { transform: translate3d(110vw, 8px, 0) rotate(-3deg); }
}

@keyframes carpet-tilt {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

@keyframes carpet-spark {
  0%   { opacity: 0; transform: translate(0, 0) scale(0.4); }
  30%  { opacity: 1; }
  100% { opacity: 0; transform: translate(-28px, 10px) scale(1.2); }
}

@keyframes carpet-twinkle {
  0%, 100% { opacity: 0.55; }
  50% { opacity: 1; }
}

@keyframes carpet-text-pulse {
  0%, 100% { opacity: 0.55; }
  50% { opacity: 1; }
}

@keyframes carpet-exit {
  to { transform: translate3d(130vw, -40px, 0) rotate(10deg) scale(0.9); opacity: 0; }
}

@keyframes carpet-fade-out {
  to { opacity: 0; visibility: hidden; }
}

@media (prefers-reduced-motion: reduce) {
  .carpet-loader__flyer {
    left: 50%;
    top: 50%;
    margin: -70px 0 0 -100px;
    animation: none;
    transform: none;
  }
  .carpet-loader__svg,
  .carpet-loader__spark,
  .carpet-loader__stars,
  .carpet-loader__text {
    animation: none;
  }
  .carpet-loader--exit,
  .carpet-loader--exit .carpet-loader__flyer {
    animation: none;
    opacity: 0;
  }
}

/* Home CTA */
.hero-cta { margin: 14px 0 0; }
.cta-link {
  display: inline-block;
  padding: 10px 16px;
  background: var(--accent);
  color: #fff;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
}
.cta-link:hover { opacity: 0.92; }

/* Directory explore page */
.directory-page main { max-width: min(1400px, 98vw); }
.directory-hero { margin-bottom: 8px; }
.dir-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  align-items: flex-end;
  margin: 0 0 14px;
  padding: 12px 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.dir-filters label {
  display: flex;
  flex-direction: column;
  gap: 3px;
  font-size: 0.7rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.dir-filters select,
.dir-filters input[type="search"] {
  font-size: 0.85rem;
  padding: 6px 8px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--bg);
  color: var(--text);
  min-width: 130px;
}
.dir-check {
  flex-direction: row !important;
  align-items: center;
  gap: 6px !important;
  text-transform: none !important;
  letter-spacing: 0 !important;
  font-size: 0.85rem !important;
  color: var(--text) !important;
  padding-bottom: 4px;
}
.dir-search-wrap { flex: 1; min-width: 160px; }
.dir-search-wrap input { width: 100%; }
.dir-count {
  margin: 0;
  font-size: 0.85rem;
  color: var(--muted);
  align-self: center;
  text-transform: none;
  letter-spacing: 0;
}
.dir-layout {
  display: grid;
  grid-template-columns: minmax(280px, 380px) 1fr;
  gap: 14px;
  min-height: 520px;
}
.dir-list-panel {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  max-height: 70vh;
  overflow-y: auto;
}
.dir-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.dir-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
}
.dir-item a { color: var(--text); text-decoration: none; }
.dir-item a:hover { color: var(--accent); }
.dir-meta, .dir-addr {
  font-size: 0.8rem;
  color: var(--muted);
}
.dir-dist {
  font-size: 0.75rem;
  color: var(--accent);
  font-weight: 600;
}
.dir-empty, .dir-more {
  padding: 16px 12px;
  color: var(--muted);
  font-size: 0.85rem;
}
.dir-map-panel {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  min-height: 420px;
}
#dir-map { width: 100%; height: 100%; min-height: 420px; }
.dir-pin { background: transparent !important; border: none !important; }

.venue-detail { max-width: 720px; }
.venue-detail-media {
  margin: 0 0 16px;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
}
.venue-detail-media img {
  display: block;
  width: 100%;
  max-height: 320px;
  object-fit: cover;
}
.venue-features { margin: 20px 0; }
.venue-features h2 { font-size: 1.1rem; margin-bottom: 8px; }
.feature-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.venue-hours-raw { font-size: 0.9rem; color: var(--muted); }
.venue-detail-nav { margin-top: 24px; font-size: 0.95rem; }

@media (max-width: 900px) {
  .dir-layout { grid-template-columns: 1fr; }
  .dir-list-panel { max-height: 40vh; }
  #dir-map { min-height: 360px; }
}
