/* ========================================
   Burlington Bash - Styles
   ======================================== */

:root {
  --green: #2D5016;
  --green-light: #3A6B1E;
  --green-dark: #1E3A0F;
  --gold: #D4A030;
  --gold-light: #E8C060;
  --bg: #FAFAF7;
  --bg-card: #FFFFFF;
  --text: #1A1A1A;
  --text-muted: #6B6B6B;
  --text-light: #999999;
  --border: #E5E5E0;
  --radius: 8px;
  --radius-lg: 12px;
  --shadow: 0 1px 3px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.1);
  --shadow-lg: 0 8px 24px rgba(0,0,0,0.15);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

a { color: var(--green); text-decoration: none; }
a:hover { color: var(--green-light); }

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

/* Top Bar */
.top-bar {
  background: var(--green-dark);
  color: #fff;
  font-size: 13px;
  padding: 6px 0;
}
.top-bar-inner { display: flex; justify-content: center; align-items: center; }
.top-bar-tagline { opacity: 0.85; }

/* Header */
.site-header {
  background: var(--green);
  padding: 20px 0;
}
.header-inner { display: flex; justify-content: space-between; align-items: center; gap: 24px; }
.logo { display: flex; align-items: baseline; gap: 2px; text-decoration: none; }
.logo-burlington {
  font-size: 36px;
  font-weight: 800;
  color: var(--gold);
  letter-spacing: -1px;
}
.logo-bash {
  font-size: 28px;
  font-weight: 600;
  color: #fff;
  letter-spacing: -0.5px;
}
.search-bar { flex: 1; max-width: 480px; display: flex; position: relative; }
.search-bar input {
  width: 100%;
  padding: 10px 44px 10px 16px;
  border: 2px solid rgba(255,255,255,0.2);
  border-radius: var(--radius);
  background: rgba(255,255,255,0.12);
  color: #fff;
  font-size: 15px;
  outline: none;
  transition: border-color 0.2s;
}
.search-bar input::placeholder { color: rgba(255,255,255,0.55); }
.search-bar input:focus { border-color: var(--gold); background: rgba(255,255,255,0.18); }
.search-bar button {
  position: absolute;
  right: 4px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: rgba(255,255,255,0.7);
  font-size: 18px;
  cursor: pointer;
  padding: 8px;
}

/* Navigation */
.main-nav {
  background: #fff;
  border-bottom: 2px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}
.nav-inner { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.nav-links { display: flex; list-style: none; gap: 0; }
.nav-link {
  display: block;
  padding: 14px 18px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-muted);
  border-bottom: 3px solid transparent;
  transition: all 0.2s;
}
.nav-link:hover, .nav-link.active {
  color: var(--green);
  border-bottom-color: var(--green);
}
.dropdown { position: relative; }
.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  min-width: 200px;
  padding: 8px 0;
  list-style: none;
  z-index: 200;
}
.dropdown.open .dropdown-menu,
.dropdown:hover .dropdown-menu { display: block; }
.dropdown-menu a {
  display: block;
  padding: 8px 16px;
  font-size: 14px;
  color: var(--text);
}
.dropdown-menu a:hover { background: #f5f5f0; color: var(--green); }
.dropdown-menu a.active {
  background: var(--green);
  color: #fff;
  font-weight: 600;
}
.dropdown-menu a.active:hover { background: var(--green-dark); color: #fff; }
.caret { font-size: 10px; }

.region-tabs { display: flex; gap: 4px; flex-wrap: wrap; }
.region-tab {
  padding: 6px 14px;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: transparent;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.2s;
}
.region-tab:hover { border-color: var(--green); color: var(--green); }
.region-tab.active {
  background: var(--green);
  color: #fff;
  border-color: var(--green);
}
.region-tab-empty {
  opacity: 0.45;
  border-style: dashed;
}
.region-tab-empty:hover { opacity: 0.65; }

/* Data Status Bar */
.data-status-bar {
  background: #f5f5f0;
  border-bottom: 1px solid var(--border);
  padding: 6px 0;
  font-size: 12px;
  color: var(--text-muted);
  text-align: center;
}
.status-live {
  background: #2E7D32;
  color: #fff;
  padding: 1px 6px;
  border-radius: 3px;
  font-weight: 700;
  font-size: 10px;
  letter-spacing: 0.5px;
}
.status-sample {
  background: var(--gold);
  color: var(--green-dark);
  padding: 1px 6px;
  border-radius: 3px;
  font-weight: 700;
  font-size: 10px;
  letter-spacing: 0.5px;
}
.clear-filters-link {
  color: var(--green);
  font-weight: 600;
  margin-left: 8px;
  text-decoration: underline;
}
.clear-filters-link:hover {
  color: var(--green-dark);
}

/* Main Content */
.main-content { padding: 32px 20px; }
.content-grid { display: grid; grid-template-columns: 1fr 320px; gap: 32px; margin-top: 32px; }

.section-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--gold);
  display: inline-block;
}

/* City Guides */
.guides-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.guide-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
  height: 180px;
  cursor: pointer;
  box-shadow: var(--shadow);
  transition: transform 0.2s, box-shadow 0.2s;
}
.guide-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.guide-card-bg {
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  position: absolute;
  top: 0;
  left: 0;
}
.guide-card-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 16px;
  background: linear-gradient(transparent, rgba(0,0,0,0.75));
  color: #fff;
}
.guide-card-overlay h3 { font-size: 15px; font-weight: 700; line-height: 1.3; }
.guide-card-overlay p { font-size: 12px; opacity: 0.85; margin-top: 4px; }

/* Weekend Highlights */
.highlights-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.highlight-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  min-width: 0;
}
.highlight-card h3 { word-wrap: break-word; overflow-wrap: break-word; }
.highlight-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.highlight-card-img {
  height: 140px;
  background-size: cover;
  background-position: center;
  position: relative;
}
.highlight-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: var(--gold);
  color: var(--green-dark);
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 4px;
  text-transform: uppercase;
}
.highlight-card-body { padding: 14px; }
.highlight-card-body h3 { font-size: 15px; font-weight: 700; margin-bottom: 6px; line-height: 1.3; }
.highlight-card-meta { font-size: 13px; color: var(--text-muted); }
.highlight-card-meta span { margin-right: 12px; }

/* Daily Events */
.day-group { margin-bottom: 24px; }
.day-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  background: var(--green);
  color: #fff;
  border-radius: var(--radius);
  cursor: pointer;
  user-select: none;
  transition: background 0.2s;
}
.day-header:hover { background: var(--green-light); }
.day-header h3 { font-size: 16px; font-weight: 700; }
.day-header .event-count {
  background: rgba(255,255,255,0.2);
  padding: 2px 10px;
  border-radius: 12px;
  font-size: 13px;
}
.day-header .toggle-icon { font-size: 18px; transition: transform 0.2s; }
.day-header.collapsed .toggle-icon { transform: rotate(-90deg); }
.day-events { padding: 12px 0; }
.day-events.collapsed { display: none; }

/* Event Cards */
.event-card {
  display: grid;
  grid-template-columns: 100px 1fr auto;
  gap: 16px;
  padding: 16px;
  background: var(--bg-card);
  border-radius: var(--radius);
  margin-bottom: 8px;
  box-shadow: var(--shadow);
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s;
  align-items: center;
}
.event-card:hover { transform: translateX(4px); box-shadow: var(--shadow-md); }
.event-card-thumb {
  width: 100px;
  height: 72px;
  border-radius: 6px;
  background-size: cover;
  background-position: center;
  background-color: #e8e8e0;
}
.event-card-info { min-width: 0; }
.event-card-info h4 {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.event-card-details { font-size: 13px; color: var(--text-muted); display: flex; gap: 12px; flex-wrap: wrap; }
.event-card-tags { display: flex; gap: 6px; margin-top: 6px; flex-wrap: wrap; }
.event-tag {
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 4px;
  font-weight: 600;
}
.tag-free { background: #E8F5E9; color: #2E7D32; }
.tag-category { background: #FFF3E0; color: #E65100; }
.tag-region { background: #E3F2FD; color: #1565C0; }
.event-card-cost {
  font-size: 16px;
  font-weight: 700;
  color: var(--green);
  white-space: nowrap;
  padding-left: 8px;
}
.event-card-cost.paid { color: var(--gold); }

/* Sidebar */
.sidebar { display: flex; flex-direction: column; gap: 20px; }
.sidebar-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: var(--shadow);
}
.sidebar-card h3 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--green);
}

.newsletter-card {
  background: var(--green);
  color: #fff;
}
.newsletter-card h3 { color: var(--gold); }
.newsletter-card p { font-size: 14px; opacity: 0.9; margin-bottom: 12px; }
.newsletter-form { display: flex; flex-direction: column; gap: 8px; }
.newsletter-form input {
  padding: 10px 12px;
  border: none;
  border-radius: var(--radius);
  font-size: 14px;
  outline: none;
}
.newsletter-form button {
  padding: 10px;
  background: var(--gold);
  color: var(--green-dark);
  border: none;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s;
}
.newsletter-form button:hover { background: var(--gold-light); }

.date-picker {
  width: 100%;
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 14px;
  font-family: inherit;
}

.popular-list { padding-left: 20px; }
.popular-list li {
  padding: 6px 0;
  font-size: 14px;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
}
.popular-list li:last-child { border-bottom: none; }
.popular-list li:hover { color: var(--green); }

.popular-guides { list-style: none; }
.popular-guides li {
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
}
.popular-guides li:last-child { border-bottom: none; }
.popular-guides a { color: var(--text); }
.popular-guides a:hover { color: var(--green); }

/* Modal */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  z-index: 1000;
  justify-content: center;
  align-items: center;
  padding: 20px;
}
.modal-overlay.open { display: flex; }
.modal {
  background: #fff;
  border-radius: var(--radius-lg);
  max-width: 640px;
  width: 100%;
  max-height: 85vh;
  overflow-y: auto;
  position: relative;
  box-shadow: var(--shadow-lg);
}
.modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(0,0,0,0.5);
  color: #fff;
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-size: 20px;
  cursor: pointer;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
}
.modal-image {
  height: 240px;
  background-size: cover;
  background-position: center;
  background-color: #e8e8e0;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}
.modal-body { padding: 24px; }
.modal-tags { display: flex; gap: 6px; margin-bottom: 12px; flex-wrap: wrap; }
.modal-body h2 { font-size: 24px; font-weight: 800; margin-bottom: 12px; }
.modal-meta { font-size: 14px; color: var(--text-muted); margin-bottom: 16px; display: flex; flex-direction: column; gap: 6px; }
.modal-meta-row { display: flex; gap: 4px; }
.modal-description { font-size: 15px; line-height: 1.7; color: var(--text); }
.modal-source-link {
  display: inline-block;
  margin-top: 16px;
  padding: 8px 16px;
  background: var(--green);
  color: #fff !important;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 600;
  transition: background 0.2s;
}
.modal-source-link:hover { background: var(--green-light); color: #fff; }

/* Footer */
.site-footer {
  background: var(--green-dark);
  color: #fff;
  padding: 48px 0 24px;
  margin-top: 64px;
}
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 32px; }
.footer-col h4 { font-size: 16px; font-weight: 700; margin-bottom: 12px; color: var(--gold); }
.footer-col p { font-size: 14px; opacity: 0.8; line-height: 1.6; }
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 8px; }
.footer-col a { color: rgba(255,255,255,0.75); font-size: 14px; }
.footer-col a:hover { color: #fff; }
.footer-bottom {
  margin-top: 32px;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.15);
  text-align: center;
  font-size: 13px;
  opacity: 0.7;
}

/* No Results */
.no-results { text-align: center; padding: 48px 0; color: var(--text-muted); }
.no-results h3 { font-size: 20px; margin-bottom: 8px; }

/* Responsive */
@media (max-width: 1024px) {
  .content-grid { grid-template-columns: 1fr; }
  .sidebar { order: -1; display: grid; grid-template-columns: repeat(2, 1fr); }
  .newsletter-card { grid-column: 1 / -1; }
  .guides-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .header-inner { flex-direction: column; gap: 12px; }
  .search-bar { max-width: 100%; }
  .nav-inner { flex-direction: column; align-items: stretch; gap: 4px; padding: 4px 0; }
  .nav-links {
    width: 100%;
    overflow-x: auto;
    flex-wrap: nowrap;
    scrollbar-width: none;
  }
  .nav-links::-webkit-scrollbar { display: none; }
  .nav-link { padding: 12px 14px; white-space: nowrap; font-size: 13px; }
  .region-tabs {
    width: 100%;
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 4px;
    scrollbar-width: none;
  }
  .region-tabs::-webkit-scrollbar { display: none; }
  .region-tab { white-space: nowrap; flex-shrink: 0; }
  .highlights-grid { grid-template-columns: 1fr; }
  .guides-grid { grid-template-columns: 1fr; }
  .event-card { grid-template-columns: 80px 1fr; }
  .event-card-cost { grid-column: 2; padding-left: 0; white-space: normal; font-size: 14px; min-width: 0; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .sidebar { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .event-stream, .sidebar, .content-grid > * { min-width: 0; }
  .event-card { min-width: 0; }
  .event-card h3, .event-card-info { min-width: 0; word-wrap: break-word; overflow-wrap: break-word; }
  .top-bar-tagline { font-size: 12px; }
  .container { padding: 0 14px; }
  .site-header { padding: 14px 0; }
  .logo-burlington { font-size: 30px; }
  .logo-bash { font-size: 22px; }
  .search-bar input { font-size: 14px; padding: 9px 40px 9px 14px; }
  .section-title { font-size: 20px; }
  .nav-link { padding: 10px 12px; font-size: 13px; }
  .dropdown { position: static; }
  .dropdown-menu {
    left: 14px;
    right: 14px;
    min-width: 0;
    max-height: 60vh;
    overflow-y: auto;
  }
  .event-card { padding: 10px; gap: 10px; }
  .event-card-thumb { width: 72px; height: 72px; }
  .event-card h3 { font-size: 15px; }
  .footer-grid { grid-template-columns: 1fr; gap: 20px; }
  .main-content { padding-top: 20px; padding-bottom: 32px; }
}
