/* ===== NAV ===== */
.top-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 32px;
  background: rgba(12, 15, 10, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(240, 236, 226, 0.06);
}

.nav-brand {
  font-family: 'DM Serif Display', serif;
  font-size: 1.25rem;
  color: var(--fg);
  text-decoration: none;
  letter-spacing: -0.01em;
}

.nav-brand .accent {
  color: var(--accent);
  font-style: italic;
}

.nav-links {
  display: flex;
  gap: 24px;
}

.nav-link {
  color: var(--fg-muted);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.2s;
}

.nav-link:hover, .nav-link.active {
  color: var(--fg);
}

/* ===== EVENTS HEADER ===== */
.events-header {
  padding: 64px 32px 48px;
  border-bottom: 1px solid rgba(240, 236, 226, 0.06);
  background: var(--bg-warm);
}

.events-header-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.events-header h1 {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 400;
  line-height: 1.1;
  margin-bottom: 12px;
  margin-top: 16px;
}

.events-header-sub {
  color: var(--fg-muted);
  font-size: 1.05rem;
}

.region-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border-radius: 100px;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.03em;
}

.region-badge-bay   { background: rgba(224,123,76,0.15); color: #f0a882; border: 1px solid rgba(224,123,76,0.3); }
.region-badge-valley{ background: rgba(201,168,76,0.15); color: #e8c878; border: 1px solid rgba(201,168,76,0.3); }
.region-badge-coast { background: rgba(76,140,160,0.15); color: #7dc0d8; border: 1px solid rgba(76,140,160,0.3); }
.region-badge-shasta{ background: rgba(139,107,176,0.15); color: #b898d8; border: 1px solid rgba(139,107,176,0.3); }
.region-badge-tahoe { background: rgba(91,160,201,0.15); color: #88c4e8; border: 1px solid rgba(91,160,201,0.3); }

/* ===== FILTERS BAR ===== */
.filters-bar {
  padding: 20px 32px;
  background: var(--bg);
  border-bottom: 1px solid rgba(240, 236, 226, 0.06);
  position: sticky;
  top: 57px;
  z-index: 90;
  backdrop-filter: blur(8px);
}

.filters-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
}

.filter-group {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.filter-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fg-muted);
  white-space: nowrap;
}

.filter-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.pill {
  padding: 6px 14px;
  border-radius: 100px;
  font-size: 0.82rem;
  font-weight: 500;
  text-decoration: none;
  border: 1px solid rgba(240, 236, 226, 0.12);
  color: var(--fg-muted);
  background: transparent;
  transition: all 0.2s;
  white-space: nowrap;
}

.pill:hover { color: var(--fg); border-color: rgba(240,236,226,0.3); }
.pill.active { color: var(--fg); border-color: rgba(240,236,226,0.5); background: rgba(240,236,226,0.08); }

.pill-bay.active    { color: #f0a882; border-color: rgba(224,123,76,0.6); background: rgba(224,123,76,0.1); }
.pill-valley.active { color: #e8c878; border-color: rgba(201,168,76,0.6); background: rgba(201,168,76,0.1); }
.pill-coast.active  { color: #7dc0d8; border-color: rgba(76,140,160,0.6); background: rgba(76,140,160,0.1); }
.pill-shasta.active { color: #b898d8; border-color: rgba(139,107,176,0.6); background: rgba(139,107,176,0.1); }
.pill-tahoe.active  { color: #88c4e8; border-color: rgba(91,160,201,0.6); background: rgba(91,160,201,0.1); }

.pill-family.active { color: #8dcc8c; border-color: rgba(91,140,90,0.6); background: rgba(91,140,90,0.1); }
.pill-adult.active  { color: #e8a878; border-color: rgba(201,122,76,0.6); background: rgba(201,122,76,0.1); }

.filter-count {
  margin-left: auto;
  font-size: 0.8rem;
  color: var(--fg-muted);
}

/* ===== BADGE STYLES (shared) ===== */
.evt-region-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 600;
}

.badge-bay   { background: rgba(224,123,76,0.15); color: #f0a882; }
.badge-valley{ background: rgba(201,168,76,0.15); color: #e8c878; }
.badge-coast { background: rgba(76,140,160,0.15); color: #7dc0d8; }
.badge-shasta{ background: rgba(139,107,176,0.15); color: #b898d8; }
.badge-tahoe { background: rgba(91,160,201,0.15); color: #88c4e8; }

.evt-cat-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 600;
}

.badge-cat-family { background: rgba(91,140,90,0.15); color: #8dcc8c; }
.badge-cat-adult  { background: rgba(201,122,76,0.15); color: #e8a878; }

.evt-featured-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 600;
  background: rgba(212,162,78,0.15);
  color: var(--accent-glow);
}

/* ===== MAIN CONTENT ===== */
.events-main {
  min-height: 60vh;
  padding: 48px 32px;
}

.events-container {
  max-width: 1200px;
  margin: 0 auto;
}

/* ===== FEATURED GRID ===== */
.featured-section {
  margin-bottom: 64px;
}

.section-title {
  font-family: 'DM Serif Display', serif;
  font-size: 1.6rem;
  font-weight: 400;
  margin-bottom: 24px;
  color: var(--fg);
}

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

.featured-card {
  display: block;
  text-decoration: none;
  background: var(--bg-warm);
  border: 1px solid rgba(240, 236, 226, 0.08);
  border-radius: var(--radius-lg);
  padding: 24px;
  transition: transform 0.2s, border-color 0.2s;
  border-left-width: 3px;
}

.featured-card:hover {
  transform: translateY(-3px);
}

.region-border-bay   { border-left-color: var(--region-bay); }
.region-border-valley{ border-left-color: var(--region-valley); }
.region-border-coast { border-left-color: var(--region-coast); }
.region-border-shasta{ border-left-color: var(--region-shasta); }
.region-border-tahoe { border-left-color: var(--region-tahoe); }

.featured-card-top {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.featured-title {
  font-family: 'Outfit', sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--fg);
  margin-bottom: 12px;
  line-height: 1.3;
}

.featured-meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 0.82rem;
  color: var(--fg-muted);
}

.evt-price {
  margin-top: 10px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent);
}

.section-divider {
  border: none;
  border-top: 1px solid rgba(240, 236, 226, 0.06);
  margin: 48px 0;
}

/* ===== DATE GROUPS ===== */
.date-group {
  margin-bottom: 48px;
}

.date-heading {
  font-family: 'DM Serif Display', serif;
  font-size: 1.3rem;
  font-weight: 400;
  color: var(--accent);
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(212, 162, 78, 0.15);
}

/* ===== EVENT ROWS ===== */
.events-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.event-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 24px;
  background: var(--bg-warm);
  border: 1px solid rgba(240, 236, 226, 0.06);
  border-radius: var(--radius);
  text-decoration: none;
  color: var(--fg);
  transition: border-color 0.2s, background 0.2s;
  margin-bottom: 8px;
}

.event-row:hover {
  border-color: rgba(240, 236, 226, 0.2);
  background: rgba(19, 23, 16, 0.9);
}

.event-row-left {
  flex: 1;
  min-width: 0;
}

.event-row-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 8px;
}

.event-row-title {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--fg);
  line-height: 1.3;
}

.event-row-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 0.82rem;
  color: var(--fg-muted);
  margin-bottom: 6px;
}

.evt-price-inline {
  color: var(--accent);
  font-weight: 600;
}

.event-row-desc {
  font-size: 0.85rem;
  color: var(--fg-muted);
  line-height: 1.5;
  margin-top: 4px;
}

.event-row-arrow {
  color: var(--fg-muted);
  font-size: 1.1rem;
  flex-shrink: 0;
  transition: transform 0.2s, color 0.2s;
}

.event-row:hover .event-row-arrow {
  transform: translateX(4px);
  color: var(--accent);
}

/* ===== EMPTY STATE ===== */
.empty-state {
  text-align: center;
  padding: 96px 24px;
}

.empty-icon {
  font-size: 3rem;
  margin-bottom: 24px;
}

.empty-state h3 {
  font-family: 'DM Serif Display', serif;
  font-size: 1.8rem;
  font-weight: 400;
  margin-bottom: 12px;
}

.empty-state p {
  color: var(--fg-muted);
  margin-bottom: 24px;
}

.btn-clear {
  display: inline-block;
  padding: 10px 24px;
  border: 1px solid rgba(240, 236, 226, 0.2);
  border-radius: 100px;
  color: var(--fg);
  text-decoration: none;
  font-size: 0.9rem;
  transition: border-color 0.2s;
}

.btn-clear:hover {
  border-color: rgba(240, 236, 226, 0.5);
}

/* ===== DETAIL PAGE ===== */
.detail-main {
  min-height: 70vh;
  padding: 48px 32px;
}

.detail-container {
  max-width: 800px;
  margin: 0 auto;
}

.detail-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--fg-muted);
  margin-bottom: 32px;
}

.detail-breadcrumb a {
  color: var(--fg-muted);
  text-decoration: none;
  transition: color 0.2s;
}

.detail-breadcrumb a:hover { color: var(--fg); }
.detail-breadcrumb span { opacity: 0.4; }

.detail-header {
  margin-bottom: 40px;
}

.detail-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.detail-title {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 400;
  line-height: 1.2;
}

.detail-body {
  background: var(--bg-warm);
  border: 1px solid rgba(240, 236, 226, 0.08);
  border-radius: var(--radius-lg);
  padding: 40px;
  margin-bottom: 32px;
}

.detail-info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 24px;
  margin-bottom: 32px;
  padding-bottom: 32px;
  border-bottom: 1px solid rgba(240, 236, 226, 0.06);
}

.detail-info-label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fg-muted);
  margin-bottom: 6px;
}

.detail-info-value {
  font-size: 0.95rem;
  color: var(--fg);
  line-height: 1.4;
}

.detail-description {
  margin-bottom: 24px;
}

.detail-description h2 {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fg-muted);
  margin-bottom: 12px;
}

.detail-description p {
  color: var(--fg);
  line-height: 1.8;
  font-size: 1rem;
}

.detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 32px;
}

.detail-tag {
  padding: 4px 12px;
  border-radius: 100px;
  background: rgba(240, 236, 226, 0.06);
  border: 1px solid rgba(240, 236, 226, 0.1);
  font-size: 0.8rem;
  color: var(--fg-muted);
}

.detail-cta {
  margin-top: 32px;
}

.btn-primary {
  display: inline-block;
  padding: 14px 28px;
  background: var(--accent);
  color: #0c0f0a;
  text-decoration: none;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 0.95rem;
  transition: background 0.2s, transform 0.15s;
}

.btn-primary:hover {
  background: var(--accent-glow);
  transform: translateY(-1px);
}

.detail-back {
  text-align: center;
}

.detail-back a {
  color: var(--accent);
  text-decoration: none;
  font-size: 0.9rem;
  transition: opacity 0.2s;
}

.detail-back a:hover { opacity: 0.75; }

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .top-nav { padding: 14px 20px; }
  .events-header { padding: 40px 20px 32px; }
  .filters-bar { padding: 14px 20px; top: 53px; }
  .filters-inner { gap: 12px; }
  .filter-group { gap: 8px; }
  .filter-label { display: none; }
  .events-main { padding: 32px 20px; }
  .featured-grid { grid-template-columns: 1fr; }
  .event-row { padding: 16px 18px; flex-direction: column; align-items: flex-start; }
  .event-row-arrow { display: none; }
  .detail-main { padding: 32px 20px; }
  .detail-body { padding: 24px; }
  .detail-info-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 480px) {
  .filter-pills { gap: 4px; }
  .pill { padding: 5px 10px; font-size: 0.75rem; }
}
