/* === Reset & Base === */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --bg: #F7F7F7;
  --card-bg: #FFFFFF;
  --coral: #F25745;
  --coral-light: #fde8e4;
  --teal: #008A05;
  --teal-light: rgba(0,138,5,0.08);
  --gold: #F25745;
  --gold-light: #fef3e2;
  --text: #222222;
  --text-muted: #717171;
  --border: #EBEBEB;
  --shadow: 0 2px 10px rgba(0,0,0,0.04);
  --shadow-hover: 0 6px 16px rgba(0,0,0,0.08);
  --radius: 10px;
  --day-strip-h: 77px;
  --max-width: 80rem;
  --sidebar-w: 14rem;
  --cal-sidebar-w: 18rem;
  --font: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
}

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  min-height: 100vh;
}

/* === Header === */
.header {
  position: relative;
  background: white;
  color: #222222;
  border-bottom: 1px solid #EBEBEB;
  z-index: 30;
}

.header__inner {
  max-width: 80rem;
  margin: 0 auto;
  padding: 0.75rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.header__brand {
  flex-shrink: 0;
}

.header__title {
  font-family: 'Pacifico', cursive;
  font-size: 1.25rem;
  font-weight: 400;
  line-height: 1.2;
  color: #F25745;
  white-space: nowrap;
}

.header__subtitle {
  display: none;
  color: #717171;
  font-weight: 500;
  font-size: 0.75rem;
  margin-top: 0.25rem;
}

.header__subtitle-text {
  transition: opacity 0.3s ease;
}

.header__subtitle-text.fading {
  opacity: 0;
}

.live-indicator {
  display: none;
  align-items: center;
  gap: 6px;
  font-size: 0.7rem;
  color: #6b7280;
  margin-left: 8px;
  vertical-align: middle;
}

.live-indicator__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #F78E50;
  position: relative;
}

.live-indicator__dot::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: #F78E50;
  animation: livePulse 2s ease-in-out infinite;
}

.live-indicator--fetching .live-indicator__dot::after {
  animation: liveSpin 0.8s linear infinite;
}

.live-indicator--offline .live-indicator__dot {
  background: #9ca3af;
}

.live-indicator--offline .live-indicator__dot::after {
  animation: none;
}

.live-indicator__text {
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.live-indicator--offline .live-indicator__text {
  color: #9ca3af;
}

.live-indicator__timestamp {
  color: #9ca3af;
  font-size: 0.65rem;
}

@keyframes livePulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(1.8); }
}

@keyframes liveSpin {
  0% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.5); opacity: 0.5; }
  100% { transform: scale(1); opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .live-indicator__dot::after {
    animation: none;
  }
  .header__subtitle-text {
    transition: none;
  }
}

/* Ad banner in header — hidden on mobile */
.header__ad-space--desktop {
  display: none;
}

/* Header actions */
.header__actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}

/* CTA button — hidden on mobile */
.header__cta {
  display: none;
  align-items: center;
  gap: 0.375rem;
  background: linear-gradient(135deg, #F25745 0%, #F4734A 50%, #F78E50 100%);
  color: white;
  font-family: var(--font);
  font-weight: 700;
  font-size: 0.75rem;
  padding: 0.375rem 0.75rem;
  border-radius: 9999px;
  box-shadow: 0 1px 2px rgba(0,0,0,0.05);
  text-decoration: none;
  transition: background 0.15s;
  white-space: nowrap;
}

.header__cta:hover {
  background: linear-gradient(135deg, #D94D3B 0%, #E06040 50%, #E87A48 100%);
}

.header__cta-icon {
  width: 1rem;
  height: 1rem;
  flex-shrink: 0;
}

/* Mobile: show short CTA label, hide desktop label */
.header__cta-text--desktop {
  display: none;
}

.header__cta-text--mobile {
  display: inline;
}

/* Mobile language toggle — globe button */
.header__lang-mobile {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  background: #F7F7F7;
  color: #222222;
  border: 1px solid #EBEBEB;
  border-radius: 9999px;
  padding: 0.375rem 0.625rem;
  cursor: pointer;
  transition: background 0.15s;
  font-family: var(--font);
}

.header__lang-mobile:hover {
  background: #EBEBEB;
}

.header__lang-icon {
  width: 0.875rem;
  height: 0.875rem;
  flex-shrink: 0;
}

.header__lang-text {
  font-size: 0.75rem;
  font-weight: 700;
}

/* Help button — same style as lang toggle */
.header__help {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #F7F7F7;
  color: #222222;
  border: 1px solid #EBEBEB;
  border-radius: 9999px;
  padding: 0.375rem;
  cursor: pointer;
  transition: background 0.15s;
  text-decoration: none;
}
.header__help:hover {
  background: #EBEBEB;
}
.header__help-icon {
  width: 1.25rem;
  height: 1.25rem;
  flex-shrink: 0;
}
.header__help-text {
  display: none;
}

/* === Ad Space (mobile — below filters, above events) === */
.ad-space-mobile {
  display: none;
  height: 72px;
  margin: 0.5rem 0;
  border: 2px dashed #EBEBEB;
  border-radius: 12px;
  background: transparent;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  color: #B0B0B0;
  letter-spacing: 0.03em;
  font-family: var(--font);
}

/* === Sidebar Language Toggle === */
.sidebar__lang-section {
  display: none; /* hidden on mobile, shown via desktop media query */
}

.sidebar__lang-toggle {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.sidebar__lang-icon {
  width: 14px;
  height: 14px;
  color: #B0B0B0;
  flex-shrink: 0;
}

.sidebar__lang-track {
  display: flex;
  align-items: center;
  background: #F7F7F7;
  border: 1px solid #EBEBEB;
  border-radius: 9999px;
  padding: 3px;
  font-weight: 600;
  flex: 1;
  position: relative;
}

.sidebar__lang-btn {
  flex: 1;
  padding: 4px 10px;
  font-size: 0.7rem;
  font-family: var(--font);
  font-weight: 600;
  border: none;
  border-radius: 9999px;
  background: transparent;
  color: #717171;
  cursor: pointer;
  text-align: center;
  transition: all 0.2s ease;
  position: relative;
  z-index: 1;
}

.sidebar__lang-btn:hover {
  color: #222222;
}

.sidebar__lang-btn--active {
  background: #fff;
  color: #222222;
  box-shadow: 0 1px 2px rgba(0,0,0,0.05);
  border: 1px solid #EBEBEB;
}

/* === Sidebar Group (wraps category + calendar sidebars) === */
.sidebar-group {
  display: none; /* hidden on mobile */
}

/* === Sidebar === */
.sidebar {
  display: none; /* hidden on mobile by default */
}

.sidebar__section {
  padding: 0.5rem 0.75rem;
  border-bottom: 1px solid #EBEBEB;
}

.sidebar__section:last-child {
  border-bottom: none;
}

.sidebar__heading {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #B0B0B0;
  margin-bottom: 0.35rem;
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.sidebar__heading-icon {
  font-size: 0.85rem;
}

.sidebar__total-count {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.3rem 0.5rem;
  border-radius: 8px;
  background: transparent;
  font-size: 0.8rem;
  font-weight: 600;
  color: #222222;
}

.sidebar__total-icon {
  flex-shrink: 0;
  width: 14px;
  height: 14px;
  opacity: 0.6;
}

.sidebar__total-label {
  flex: 1;
}

.sidebar__total-number {
  font-size: 0.75rem;
  font-weight: 500;
  color: #222222;
  background: white;
  border: 1px solid #EBEBEB;
  padding: 2px 8px;
  border-radius: 9999px;
  min-width: 28px;
  text-align: center;
  line-height: 1.2;
}

.sidebar__heading-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.25rem;
}

.sidebar__cat-toggles {
  display: flex;
  background: #EBEBEB;
  border-radius: 0.5rem;
  padding: 0.125rem;
  gap: 0.125rem;
}

.sidebar__cat-toggle-btn {
  font-family: var(--font);
  font-size: 0.6875rem;
  font-weight: 600;
  color: #999;
  background: transparent;
  border: none;
  padding: 0.25rem 0.625rem;
  border-radius: 0.375rem;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, box-shadow 0.15s;
  line-height: 1;
}

.sidebar__cat-toggle-btn:hover {
  color: #555;
}

.sidebar__cat-toggle-btn--active {
  background: white;
  color: #222;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

/* Town items */
.sidebar__towns {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.sidebar__town {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.3rem 0.5rem;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.15s ease;
  font-size: 0.8rem;
  font-weight: 500;
  color: #555555;
}

.sidebar__town:hover {
  background: #F7F7F7;
}

.sidebar__town--active {
  background: #F0F0F0;
  color: #222222;
  font-weight: 600;
}

.sidebar__town--active:hover {
  background: #F0F0F0;
}

.sidebar__town--disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.sidebar__town--disabled:hover {
  background: transparent;
}


.sidebar__town-icon {
  flex-shrink: 0;
  width: 14px;
  height: 14px;
  opacity: 0.4;
  transition: opacity 0.15s ease;
}

.sidebar__town--active .sidebar__town-icon {
  opacity: 0.7;
}

.sidebar__town-name {
  flex: 1;
}

.sidebar__town--disabled .sidebar__town-name {
  color: var(--text-muted);
}

.sidebar__town-count {
  font-size: 0.75rem;
  font-weight: 500;
  color: #555555;
  background: #F7F7F7;
  padding: 2px 8px;
  border: 1px solid transparent;
  border-radius: 9999px;
  min-width: 28px;
  text-align: center;
  line-height: 1.2;
}

.sidebar__town--active .sidebar__town-count {
  background: white;
  border: 1px solid #EBEBEB;
  color: #222222;
}

.sidebar__town--disabled .sidebar__town-count {
  background: #F7F7F7;
}

/* Free events filter */
.sidebar__free-filter {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.3rem 0.5rem;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.8rem;
  font-family: var(--font);
  background: transparent;
  font-weight: 500;
  color: #555555;
  transition: all 0.15s ease;
  width: 100%;
  text-align: left;
}

.sidebar__free-filter:hover {
  background: #F7F7F7;
  color: #222222;
}

.sidebar__free-filter--active {
  background: #F0F0F0;
  color: #222222;
  font-weight: 600;
}

.sidebar__free-icon {
  flex-shrink: 0;
  width: 14px;
  height: 14px;
  opacity: 0.4;
  transition: opacity 0.15s ease;
}

.sidebar__free-filter--active .sidebar__free-icon {
  opacity: 0.7;
}

.sidebar__free-name {
  flex: 1;
}

.sidebar__free-count {
  font-size: 0.75rem;
  font-weight: 500;
  color: #555555;
  background: #F7F7F7;
  padding: 2px 8px;
  border: 1px solid transparent;
  border-radius: 9999px;
  min-width: 28px;
  text-align: center;
  line-height: 1.2;
}

.sidebar__free-count:empty {
  display: none;
}

.sidebar__free-filter--active .sidebar__free-count {
  background: white;
  border: 1px solid #EBEBEB;
  color: #222222;
}

/* === Time-of-Day Filter === */
.time-filter {
  display: flex;
  gap: 2px;
  background: #F7F7F7;
  border: 1px solid #EBEBEB;
  border-radius: 10px;
  padding: 3px;
}

.time-filter__btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  padding: 6px 8px;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: #717171;
  font-family: var(--font);
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}

.time-filter__btn:hover {
  color: #222222;
}

.time-filter__btn--active {
  background: #fff;
  color: #222222;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
  border: 1px solid #EBEBEB;
}

.time-filter__icon {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

/* === Sidebar Time Dropdown (stdd) === */
.stdd {
  position: relative;
}

.stdd__trigger {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  width: 100%;
  padding: 0.5rem 0.625rem;
  border: 1px solid #EBEBEB;
  border-radius: 0.625rem;
  background: white;
  font-family: var(--font);
  font-size: 0.75rem;
  font-weight: 600;
  color: #222222;
  cursor: pointer;
  transition: all 0.15s ease;
}

.stdd__trigger:hover {
  border-color: #CCC;
}

.stdd__trigger--open {
  border-color: #222222;
  box-shadow: 0 0 0 1px #222222;
}

.stdd__trigger-icon {
  width: 0.875rem;
  height: 0.875rem;
  color: #717171;
  flex-shrink: 0;
}

.stdd__trigger-label {
  flex: 1;
  text-align: left;
}

.stdd__chevron {
  width: 0.875rem;
  height: 0.875rem;
  color: #717171;
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.stdd__trigger--open .stdd__chevron {
  transform: rotate(180deg);
}

.stdd__panel {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  background: white;
  border: 1px solid #EBEBEB;
  border-radius: 0.75rem;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
  padding: 0.25rem;
  z-index: 30;
  opacity: 0;
  transform: translateY(-4px);
  pointer-events: none;
  transition: opacity 0.15s ease, transform 0.15s ease;
}

.stdd__panel--open {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.stdd__item {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  width: 100%;
  padding: 0.5rem 0.625rem;
  border: none;
  border-radius: 0.5rem;
  background: transparent;
  font-family: var(--font);
  font-size: 0.75rem;
  font-weight: 600;
  color: #B0B0B0;
  cursor: pointer;
  transition: background 0.1s ease;
}

.stdd__item:hover {
  background: #F7F7F7;
}

.stdd__item--active {
  color: #222222;
}

.stdd__check {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 1.125rem;
  height: 1.125rem;
  border: 1px solid #D1D5DB;
  border-radius: 0.375rem;
  flex-shrink: 0;
  transition: all 0.15s ease;
}

.stdd__check svg {
  width: 0.75rem;
  height: 0.75rem;
  display: none;
}

.stdd__item--active .stdd__check {
  background: #222222;
  border-color: #222222;
}

.stdd__item--active .stdd__check svg {
  display: block;
  color: white;
}

.stdd__item-icon {
  display: none;
}

.stdd__item-label {
  flex: 1;
  text-align: left;
}

.mob__panel-time {
  padding: 0 0.5rem;
  margin-bottom: 0.75rem;
}

.mob__panel-label {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #B0B0B0;
  margin-bottom: 0.375rem;
}

/* === Mobile Sticky Wrap (count row + date strip stick at top on mobile) === */
.mob-sticky-wrap {
  position: sticky;
  top: 0;
  z-index: 20;
  background: white;
  padding-top: 0.25rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid #EBEBEB;
  box-shadow: 0 -1rem 0 white;
}

/* === Mobile Filters (mockup match) === */
.mob-only {
  display: none;
}

.mob {
  display: none;
  background: white;
}

.mob__row {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.5rem 1rem 0.25rem;
}

.mob__divider {
  width: 1px;
  height: 1.25rem;
  background: #EBEBEB;
  flex-shrink: 0;
}

/* Filters button */
.mob__filters-btn {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.375rem 0.75rem;
  border-radius: 9999px;
  font-family: var(--font);
  font-size: 0.75rem;
  font-weight: 600;
  border: 1px solid #EBEBEB;
  background: white;
  color: #222222;
  cursor: pointer;
  transition: all 0.15s ease;
}

.mob__filters-btn--active,
.mob__filters-btn--open {
  background: #222222;
  color: white;
  border-color: transparent;
  box-shadow: 0 1px 3px rgba(0,0,0,0.12);
}

.mob__filters-icon {
  width: 0.875rem;
  height: 0.875rem;
}

.mob__filters-label {
  white-space: nowrap;
}

.mob__filters-badge {
  background: white;
  color: #222222;
  font-size: 10px;
  font-weight: 700;
  width: 1rem;
  height: 1rem;
  border-radius: 9999px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mob__filters-badge[hidden] {
  display: none;
}

.mob__chevron {
  width: 0.75rem;
  height: 0.75rem;
  transition: transform 0.2s ease;
}

.mob__filters-btn--open .mob__chevron {
  transform: rotate(180deg);
}

/* Pin icon */
.mob__pin-icon {
  width: 0.875rem;
  height: 0.875rem;
  flex-shrink: 0;
  color: #F25745;
}

/* Town pills */
.mob__town {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.25rem 0.5rem;
  border-radius: 9999px;
  font-family: var(--font);
  font-size: 11px;
  font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s ease;
}

.mob__town--active {
  background: #222222;
  color: white;
  box-shadow: 0 1px 3px rgba(0,0,0,0.12);
}

.mob__town--disabled {
  background: white;
  color: #B0B0B0;
  border-color: #EBEBEB;
  text-decoration: line-through;
  text-decoration-color: #B0B0B0;
  cursor: not-allowed;
}

/* Row 2: Category pills */
.mob__categories-row {
  padding-top: 0;
  padding-bottom: 0.5rem;
}

.mob__pills {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  overflow: hidden;
  flex: 1;
}

.mob__pill {
  flex-shrink: 0;
  padding: 0.25rem 0.625rem;
  border-radius: 9999px;
  font-family: var(--font);
  font-size: 11px;
  font-weight: 600;
  border: 1px solid #EBEBEB;
  background: white;
  color: #717171;
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.mob__pill--active {
  background: #222222;
  color: white;
  border-color: transparent;
  box-shadow: 0 1px 3px rgba(0,0,0,0.12);
}

.mob__pill-overflow {
  flex-shrink: 0;
  padding: 0.25rem 0.5rem;
  border-radius: 9999px;
  font-family: var(--font);
  font-size: 11px;
  font-weight: 600;
  color: #B0B0B0;
  background: none;
  border: none;
  cursor: pointer;
}

/* Free toggle */
.mob__free-btn {
  flex-shrink: 0;
  padding: 0.25rem 0.625rem;
  border-radius: 9999px;
  font-family: var(--font);
  font-size: 11px;
  font-weight: 600;
  border: 1px solid #EBEBEB;
  background: white;
  color: #008A05;
  cursor: pointer;
  transition: all 0.15s ease;
}

.mob__free-btn--active {
  background: #008A05;
  color: white;
  border-color: transparent;
  box-shadow: 0 1px 3px rgba(0,138,5,0.12);
}

/* Expandable panel */
.mob__panel {
  overflow: hidden;
  transition: max-height 0.2s ease, opacity 0.2s ease;
}

.mob__panel[hidden] {
  display: none;
}

.mob__panel-inner {
  padding: 0.5rem 1rem 1rem;
  border-top: 1px solid #EBEBEB;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.mob__panel-cats {
  display: flex;
  flex-wrap: wrap;
  gap: 0.375rem;
}

.mob__panel-pill {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.375rem 0.75rem;
  border-radius: 9999px;
  font-family: var(--font);
  font-size: 0.75rem;
  font-weight: 600;
  border: 1px solid #EBEBEB;
  background: white;
  color: #717171;
  cursor: pointer;
  transition: all 0.15s ease;
}

.mob__panel-pill--active {
  background: #222222;
  color: white;
  border-color: transparent;
  box-shadow: 0 1px 3px rgba(0,0,0,0.12);
}

.mob__panel-pill__dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 9999px;
  flex-shrink: 0;
}

.mob__panel-pill--active .mob__panel-pill__dot {
  background: white !important;
}

.mob__panel-pill__count {
  font-size: 0.65rem;
  opacity: 0.7;
  margin-left: 2px;
}

.mob__panel-pill--active .mob__panel-pill__count {
  opacity: 0.9;
}

/* Panel free toggle */
.mob__panel-free {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.625rem 0.75rem;
  border-radius: 0.75rem;
  font-family: var(--font);
  font-size: 0.875rem;
  font-weight: 600;
  width: 100%;
  border: 1px solid #EBEBEB;
  background: white;
  color: #717171;
  cursor: pointer;
  transition: all 0.15s ease;
}

.mob__panel-free--active {
  background: rgba(0,138,5,0.1);
  color: #008A05;
  border-color: rgba(0,138,5,0.2);
}

.mob__panel-checkbox {
  width: 1rem;
  height: 1rem;
  border-radius: 0.25rem;
  border: 2px solid #EBEBEB;
  background: white;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease;
}

.mob__panel-free--active .mob__panel-checkbox {
  background: #008A05;
  border-color: #008A05;
}

.mob__panel-checkbox::after {
  content: '';
  display: none;
}

.mob__panel-free--active .mob__panel-checkbox::after {
  display: block;
  content: '✓';
  color: white;
  font-size: 0.7rem;
  font-weight: 700;
  line-height: 1;
}

/* Panel language toggle */
.mob__panel-lang {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.mob__panel-lang-icon {
  width: 0.875rem;
  height: 0.875rem;
  color: #B0B0B0;
  flex-shrink: 0;
}

.mob__panel-lang-track {
  display: flex;
  align-items: center;
  background: #F7F7F7;
  border: 1px solid #EBEBEB;
  border-radius: 9999px;
  padding: 0.25rem;
  font-weight: 600;
  flex: 1;
  position: relative;
}

.mob__panel-lang-btn {
  flex: 1;
  padding: 0.375rem 0.75rem;
  font-family: var(--font);
  font-size: 0.75rem;
  border: none;
  border-radius: 9999px;
  background: transparent;
  color: #717171;
  cursor: pointer;
  text-align: center;
  transition: all 0.2s ease;
  position: relative;
  z-index: 1;
}

.mob__panel-lang-btn--active {
  background: white;
  color: #222222;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
  border: 1px solid #EBEBEB;
}

/* Panel actions */
.mob__panel-actions {
  display: flex;
  gap: 0.5rem;
}

.mob__panel-clear {
  flex: 1;
  padding: 0.625rem;
  font-family: var(--font);
  font-size: 0.875rem;
  font-weight: 600;
  color: #222222;
  background: none;
  border: 1px solid #EBEBEB;
  border-radius: 0.75rem;
  cursor: pointer;
  transition: background 0.15s ease;
}

.mob__panel-clear:hover {
  background: #F7F7F7;
}

.mob__panel-show {
  flex: 1;
  padding: 0.625rem;
  font-family: var(--font);
  font-size: 0.875rem;
  font-weight: 600;
  color: white;
  background: #222222;
  border: none;
  border-radius: 0.75rem;
  cursor: pointer;
  transition: background 0.15s ease;
}

.mob__panel-show:hover {
  background: black;
}

/* Result count */
.mob__count {
  padding: 0 1rem 0.5rem;
  font-size: 0.75rem;
  color: #B0B0B0;
  font-weight: 500;
}

.mob__count-cat {
  color: #222222;
}

.mob__count-free {
  color: #008A05;
}

/* Bottom border */
.mob__border {
  height: 1px;
  background: #EBEBEB;
}

/* === V3 Mobile Filters === */

/* Row 1: Town dropdown + Time dropdown + Free */
.mob__row--v3 {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.625rem 1rem 0.375rem;
}

/* Vertical dividers between Row 1 items */
.mob__row-divider {
  width: 1px;
  height: 1.25rem;
  background: #EBEBEB;
  flex-shrink: 0;
}

/* Dropdown trigger pill (shared between town & time) */
.mob__dropdown-trigger {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.375rem 0.75rem;
  border-radius: 9999px;
  font-family: var(--font);
  font-size: 0.75rem;
  font-weight: 600;
  border: 1px solid #EBEBEB;
  background: white;
  color: #222222;
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
  flex-shrink: 0;
}

.mob__dropdown-trigger:hover {
  border-color: #ccc;
}

.mob__dropdown-trigger--active {
  border-color: #CCCCCC;
}

/* Town trigger can shrink to fit row */
#mob-town-trigger {
  flex-shrink: 1;
  min-width: 0;
  overflow: hidden;
}

.mob__dropdown-icon {
  width: 0.875rem;
  height: 0.875rem;
  flex-shrink: 0;
}

.mob__dropdown-icon--coral {
  color: #F25745;
}

.mob__dropdown-label {
  max-width: 7rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mob__dropdown-extra {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 0.375rem;
  border-radius: 9999px;
  background: #222222;
  color: white;
  font-size: 0.6875rem;
  font-weight: 700;
  line-height: 1;
}

.mob__dropdown-extra[hidden] {
  display: none;
}

.mob__dropdown-chevron {
  width: 0.875rem;
  height: 0.875rem;
  transition: transform 0.2s ease;
  color: #717171;
  flex-shrink: 0;
}

.mob__dropdown-trigger--open {
  border-color: #222222;
  box-shadow: 0 0 0 1px #222222;
}

.mob__dropdown-trigger--open .mob__dropdown-chevron {
  transform: rotate(180deg);
}

/* Dropdown overlay panel */
.mob__dropdown-panel {
  position: absolute;
  top: 100%;
  left: 1rem;
  right: auto;
  z-index: 50;
  background: white;
  border: 1px solid #EBEBEB;
  border-radius: 0.75rem;
  box-shadow: 0 4px 20px rgba(0,0,0,0.12);
  padding: 0.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  margin-top: 0.25rem;
  min-width: 180px;
  opacity: 0;
  transform: translateY(-4px);
  pointer-events: none;
  transition: opacity 0.15s ease, transform 0.15s ease;
}

.mob__dropdown-panel--open {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

/* Dropdown checkbox row */
.mob__dropdown-item {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.3rem 0.5rem;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.15s ease;
  font-family: var(--font);
  font-size: 0.8rem;
  font-weight: 500;
  color: #555555;
  border: none;
  background: transparent;
  width: 100%;
  text-align: left;
}

.mob__dropdown-item--active {
  background: #F0F0F0;
  color: #222222;
  font-weight: 600;
}

.mob__dropdown-item-icon {
  flex-shrink: 0;
  width: 14px;
  height: 14px;
  opacity: 0.4;
  transition: opacity 0.15s ease;
}

.mob__dropdown-item--active .mob__dropdown-item-icon {
  opacity: 0.7;
}

.mob__dropdown-time-icon {
  display: none;
}

.mob__dropdown-item-label {
  flex: 1;
}

.mob__dropdown-item-count {
  font-size: 0.75rem;
  font-weight: 500;
  color: #555555;
  background: #F7F7F7;
  padding: 2px 8px;
  border-radius: 9999px;
  border: 1px solid transparent;
  min-width: 28px;
  text-align: center;
  line-height: 1.2;
}

.mob__dropdown-item--active .mob__dropdown-item-count {
  background: white;
  border: 1px solid #EBEBEB;
  color: #222222;
}

/* Free button (v3 — row 1) */
.mob__free-v3 {
  flex-shrink: 0;
  padding: 0.375rem 0.75rem;
  border-radius: 9999px;
  font-family: var(--font);
  font-size: 0.75rem;
  font-weight: 600;
  border: 1px solid #EBEBEB;
  background: white;
  color: #008A05;
  cursor: pointer;
  transition: all 0.15s ease;
}

.mob__free-v3--active {
  background: #008A05;
  color: white;
  border-color: transparent;
  box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}

/* === Category Accordion === */
.mob__cat-accordion {
  margin: 0 1rem 0.375rem;
  border: 1px solid #EBEBEB;
  border-radius: 0.75rem;
  overflow: hidden;
  transition: background 0.15s ease;
}

.mob__cat-accordion--open {
  background: white;
}

/* Accordion header (collapsed view) */
.mob__cat-header {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.5rem 0.75rem;
  cursor: pointer;
  border: none;
  background: none;
  font-family: var(--font);
  font-size: 0.6875rem;
  font-weight: 600;
  color: #717171;
  width: 100%;
  text-align: left;
}

.mob__cat-dots {
  display: flex;
  align-items: center;
  margin-right: 0.25rem;
}

.mob__cat-dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  border: 1px solid white;
  margin-left: -4px;
}

.mob__cat-dot:first-child {
  margin-left: 0;
}

.mob__cat-header-label {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 0.25rem;
  overflow: hidden;
  white-space: nowrap;
}

/* Mini-pills for active categories in collapsed view */
.mob__cat-mini-pill {
  display: inline-flex;
  align-items: center;
  padding: 1px 0.375rem;
  border-radius: 9999px;
  font-size: 0.625rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  white-space: nowrap;
  flex-shrink: 0;
}

.mob__cat-clear {
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  background: none;
  cursor: pointer;
  flex-shrink: 0;
  padding: 0;
  transition: color 0.15s ease;
}

.mob__cat-clear:hover {
  color: #222222;
}

.mob__cat-clear[hidden] {
  display: none;
}

.mob__cat-clear-icon {
  width: 0.875rem;
  height: 0.875rem;
  color: #B0B0B0;
}

.mob__cat-chevron {
  width: 1rem;
  height: 1rem;
  color: #B0B0B0;
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.mob__cat-accordion--open .mob__cat-chevron {
  transform: rotate(180deg);
}

/* Accordion body (expanded category list) */
.mob__cat-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.25s ease;
}

.mob__cat-accordion--open .mob__cat-body {
  max-height: 30rem;
}

.mob__cat-body-inner {
  padding: 0.125rem 0.375rem 0.5rem;
  border-top: 1px solid #EBEBEB;
}

/* All/None toggle at top of accordion body */
.mob__cat-toggles {
  display: flex;
  width: fit-content;
  margin-left: auto;
  background: #F3F3F3;
  border-radius: 0.5rem;
  padding: 0.125rem;
  margin-top: 0.375rem;
  margin-bottom: 0.375rem;
}

.mob__cat-toggle-btn {
  font-family: var(--font);
  font-size: 0.6875rem;
  font-weight: 600;
  color: #717171;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.25rem 0.75rem;
  border-radius: 0.375rem;
  transition: all 0.15s ease;
}

.mob__cat-toggle-btn:hover {
  color: #222222;
}

.mob__cat-toggle-btn--active {
  background: white;
  color: #222222;
  box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}

#mob-cat-list {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

/* Category list items */
.mob__cat-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.625rem;
  cursor: pointer;
  border: none;
  background: white;
  font-family: var(--font);
  width: 100%;
  text-align: left;
  border-radius: 0.375rem;
  transition: all 0.15s ease;
  font-size: 0.75rem;
  font-weight: 500;
  color: #555555;
}

.mob__cat-item--active {
  background: #F0F0F0;
  color: #222222;
  font-weight: 600;
}

.mob__cat-item-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
  opacity: 0.55;
  transition: opacity 0.15s ease;
}

.mob__cat-item--active .mob__cat-item-dot {
  opacity: 1;
}

.mob__cat-item-name {
  flex: 1;
  font-size: 0.75rem;
}

.mob__cat-item-count {
  font-size: 0.625rem;
  font-weight: 500;
  color: #555555;
  background: #F7F7F7;
  padding: 1px 6px;
  border-radius: 9999px;
  border: 1px solid transparent;
  min-width: 22px;
  text-align: center;
  line-height: 1.2;
  font-variant-numeric: tabular-nums;
}

.mob__cat-item--active .mob__cat-item-count {
  background: white;
  border: 1px solid #EBEBEB;
  color: #222222;
}

/* === Event Count Row + View Toggle === */
.mob__count-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.375rem 1rem;
}

.mob__count-text {
  font-size: 0.8rem;
  font-weight: 600;
  color: #222222;
}

.mob__view-toggle {
  display: flex;
  align-items: center;
  gap: 0;
  background: #F7F7F7;
  border-radius: 9999px;
  padding: 0.25rem 0.625rem;
}

.mob__view-toggle-icon {
  width: 0.875rem;
  height: 0.875rem;
  color: #717171;
  margin-right: 0.375rem;
}

.mob__view-toggle-sep {
  color: #EBEBEB;
  font-size: 0.6875rem;
  margin: 0 0.125rem;
  user-select: none;
}

.mob__view-toggle-option {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.125rem 0.5rem;
  border-radius: 9999px;
  font-family: var(--font);
  font-size: 0.6875rem;
  font-weight: 600;
  border: none;
  background: transparent;
  color: #B0B0B0;
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.mob__view-toggle-option--active {
  color: #222222;
}

.mob__view-toggle-hide-icon {
  width: 0.875rem;
  height: 0.875rem;
}

/* Dropdown panel relative container */
.mob__dropdown-wrap {
  position: relative;
}

/* === Calendar Sidebar (desktop lg+) === */
.calendar-sidebar {
  display: none;
}

.calendar-sidebar__section {
  padding: 0.75rem;
  padding-bottom: 0.625rem;
}

.calendar-sidebar__divider {
  height: 1px;
  background: #EBEBEB;
}

#calendar-grid-desktop {
  padding: 0.75rem;
}

/* === Calendar Grid === */
.cal-grid__divider {
  height: 1px;
  background: #EBEBEB;
  margin: 1.25rem 0;
}

.cal-grid__more {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.375rem;
  width: auto;
  margin: 1rem auto 0;
  padding: 0.5rem 1.25rem;
  background: #222222;
  color: white;
  border: none;
  border-radius: 9999px;
  font-family: var(--font);
  font-size: 0.8125rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s;
}
.cal-grid__more:hover {
  background: #333;
}

.cal-grid__month {
  margin-bottom: 0;
}

.cal-grid__month-label {
  font-size: 0.875rem;
  font-weight: 700;
  color: #222222;
  text-transform: capitalize;
  margin-bottom: 0.75rem;
  text-align: center;
  letter-spacing: 0.025em;
}

.cal-grid__header {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  text-align: center;
  gap: 6px;
  margin-bottom: 0.5rem;
}

.cal-grid__dow {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  color: #B0B0B0;
  letter-spacing: 0.05em;
}

.cal-grid__days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
}

.cal-grid__cell {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 3rem;
  border: none;
  border-radius: 8px;
  background: transparent;
  font-family: var(--font);
  cursor: pointer;
  transition: all 0.15s ease;
  padding: 2px;
}

.cal-grid__cell--empty {
  cursor: default;
}

.cal-grid__num {
  font-size: 0.875rem;
  font-weight: 700;
  color: #222222;
  line-height: 1;
}

.cal-grid__count {
  font-size: 0.5rem;
  font-weight: 700;
  color: #717171;
  width: 1rem;
  height: 1rem;
  border-radius: 50%;
  background: #F0F0F0;
  margin-top: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.cal-grid__cell--past .cal-grid__num {
  color: #EBEBEB;
}
.cal-grid__cell--past .cal-grid__count {
  background: #EBEBEB;
}

.cal-grid__cell--disabled {
  cursor: default;
}
.cal-grid__cell--disabled .cal-grid__num {
  color: #EBEBEB;
}

.cal-grid__cell--today {
  background: rgba(0,138,5,0.08);
  border: 1px solid rgba(0,138,5,0.2);
}
.cal-grid__cell--today .cal-grid__num {
  font-weight: 700;
  color: #008A05;
}

.cal-grid__cell--selected {
  background: #222222;
  transform: scale(1.05);
  z-index: 1;
  box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}
.cal-grid__cell--selected .cal-grid__num {
  color: white;
  font-weight: 700;
}
.cal-grid__cell--selected .cal-grid__count {
  background: rgba(255,255,255,0.25);
  color: white;
}

/* Today + selected = green filled */
.cal-grid__cell--today.cal-grid__cell--selected {
  background: #008A05;
  border-color: #008A05;
  box-shadow: 0 1px 2px rgba(0,138,5,0.15);
}
.cal-grid__cell--today.cal-grid__cell--selected .cal-grid__num {
  color: white;
}

.cal-grid__cell--has-events:not(.cal-grid__cell--today):not(.cal-grid__cell--selected):not(.cal-grid__cell--past) {
  background: white;
}

.cal-grid__cell--has-events:hover:not(.cal-grid__cell--selected) {
  background: #F7F7F7;
}

.cal-grid__cell--has-events:hover:not(.cal-grid__cell--selected) .cal-grid__num {
  color: #222222;
}

/* Mobile calendar variant */
.cal-grid--mobile .cal-grid__month-label {
  display: none; /* nav bar shows month label instead */
}
.cal-grid--mobile .cal-grid__header {
  margin-bottom: 0.375rem;
}
.cal-grid--mobile .cal-grid__dow {
  font-size: 10px;
}
.cal-grid--mobile .cal-grid__cell {
  height: 2.5rem;
}
.cal-grid--mobile .cal-grid__num {
  font-size: 0.75rem;
}
.cal-grid--mobile .cal-grid__count {
  background: #F0F0F0;
  color: #717171;
}
.cal-grid--mobile .cal-grid__cell--selected .cal-grid__count {
  background: rgba(255,255,255,0.25);
  color: white;
}

/* === Day Strip === */
.day-strip {
  position: relative;
  z-index: 1;
  /* height measured by JS → --day-strip-h */
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 6px;
  margin: 0;
  background: #fff;
  border: 1px solid #EBEBEB;
  border-radius: 12px;
  box-shadow: 0 1px 6px rgba(0,0,0,0.04);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.day-strip::-webkit-scrollbar {
  display: none;
}

.day-strip__month {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 0.5rem;
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #B0B0B0;
  writing-mode: vertical-lr;
  text-orientation: mixed;
  transform: rotate(180deg);
  width: 1.5rem;
  text-align: center;
  position: sticky;
  left: -6px;
  z-index: 2;
  background: #fff;
  align-self: stretch;
  flex-shrink: 0;
  margin: -6px 0 -6px -6px;
  padding-left: 6px;
  padding-top: 6px;
  padding-bottom: 6px;
}

.day-strip__day {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 3.5rem;
  padding: 8px 4px;
  border: none;
  border-radius: 12px;
  background: transparent;
  font-family: var(--font);
  cursor: pointer;
  transition: background 0.15s ease;
}

.day-strip__day:disabled {
  cursor: default;
}

.day-strip__day:not(:disabled):hover {
  background: #F7F7F7;
}

.day-strip__weekday {
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #B0B0B0;
  margin-bottom: 2px;
}

.day-strip__date {
  font-size: 14px;
  font-weight: 700;
  color: #222222;
  line-height: 1;
  margin-bottom: 6px;
}

.day-strip__day:disabled .day-strip__date {
  color: #222222;
}

.day-strip__count {
  font-size: 9px;
  font-weight: 700;
  color: #717171;
  line-height: 10px;
  background: #F0F0F0;
  border-radius: 9999px;
  min-width: 1.1rem;
  text-align: center;
  padding: 2px 4px;
}

.day-strip__count-spacer {
  height: 1rem;
  width: 1rem;
}

/* Today */
.day-strip__day--today {
  background: #008A05;
  box-shadow: 0 1px 2px rgba(0,138,5,0.15);
}

.day-strip__day--today .day-strip__weekday {
  color: rgba(255,255,255,0.8);
}

.day-strip__day--today .day-strip__date {
  color: #fff;
}

.day-strip__day--today .day-strip__count {
  background: rgba(255,255,255,0.25);
  color: white;
  font-size: 9px;
  font-weight: 700;
  min-width: 1.1rem;
  line-height: 10px;
  text-align: center;
  padding: 2px 4px;
  border-radius: 9999px;
}

.day-strip__day--today:not(:disabled):hover {
  background: #008A05;
  opacity: 0.9;
}

/* Active (scroll-spy selected) */
.day-strip__day--active:not(.day-strip__day--today) {
  background: #222222;
  color: white;
}

.day-strip__day--active:not(.day-strip__day--today) .day-strip__date {
  color: white;
}

.day-strip__day--active:not(.day-strip__day--today) .day-strip__weekday {
  color: rgba(255,255,255,0.8);
}

.day-strip__day--active:not(.day-strip__day--today) .day-strip__count {
  background: rgba(255,255,255,0.25);
  color: white;
}

/* === Content Layout (sidebar + main) === */
.content-layout {
  max-width: var(--max-width);
  margin: 0 auto;
}


.main-column {
  flex: 1;
  min-width: 0;
}

/* === Category Filter === */
.category-filter {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.category-filter__btn {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.3rem 0.5rem;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: #555555;
  font-family: var(--font);
  font-size: 0.8rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
  width: 100%;
  text-align: left;
}

.category-filter__btn:hover {
  background: #F7F7F7;
  color: #222222;
}

.category-filter__btn--active {
  background: #F0F0F0;
  color: #222222;
  font-weight: 600;
}

.category-filter__dot {
  flex-shrink: 0;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  opacity: 0.55;
  transition: opacity 0.15s ease;
}

.category-filter__btn--active .category-filter__dot {
  opacity: 1;
}

.category-filter__name {
  flex: 1;
}

/* Count — matches town count style */
.category-filter__count {
  font-size: 0.75rem;
  font-weight: 500;
  color: #555555;
  background: #F7F7F7;
  padding: 2px 8px;
  border: 1px solid transparent;
  border-radius: 9999px;
  min-width: 28px;
  text-align: center;
  line-height: 1.2;
}

.category-filter__count:empty {
  display: none;
}

.category-filter__btn--active .category-filter__count {
  background: white;
  border: 1px solid #EBEBEB;
  color: #222222;
}

/* === Main Content === */
.main {
  flex: 1;
  min-width: 0;
  padding: 0 1rem 2rem;
}

/* === Loading === */
.loading {
  text-align: center;
  padding: 3rem 1rem;
  color: var(--text-muted);
}

.loading__spinner {
  width: 32px;
  height: 32px;
  border: 3px solid var(--border);
  border-top-color: var(--coral);
  border-radius: 50%;
  margin: 0 auto 1rem;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* === Error === */
.error {
  text-align: center;
  padding: 3rem 1rem;
  color: var(--text-muted);
}

.error button {
  margin-top: 1rem;
  padding: 0.5rem 1.5rem;
  background: var(--coral);
  color: white;
  border: none;
  border-radius: 20px;
  font-family: var(--font);
  font-size: 0.9rem;
  cursor: pointer;
}

/* === Day Group === */
.day-group {
  margin-top: 0;
  scroll-margin-top: calc(var(--day-strip-h) + 8px);
}

.day-group__header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.625rem 0;
  margin-bottom: 0.75rem;
  position: sticky;
  top: 0;
  z-index: 9;
  background: var(--bg);
  border-bottom: 1px solid #EBEBEB;
  box-shadow: 0 -1rem 0 var(--bg);
}
.day-group__header::after {
  content: '';
  flex: 1;
  height: 1px;
  background: transparent;
}

.day-group__label {
  font-size: 0.875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #717171;
  white-space: nowrap;
}

.day-group__line {
  flex: 1;
  height: 1px;
  background: transparent;
}

/* Today highlight */
.day-group--today .day-group__label {
  color: #008A05;
}

.day-group--today .day-group__label {
  position: relative;
  padding-left: 1.25rem;
}

.day-group--today .day-group__label::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 10px;
  height: 10px;
  background: #008A05;
  border-radius: 50%;
}

.day-group--today .day-group__label::after {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 10px;
  height: 10px;
  background: #008A05;
  border-radius: 50%;
  animation: ping 1.5s cubic-bezier(0, 0, 0.2, 1) infinite;
}

@keyframes ping {
  0% { transform: translateY(-50%) scale(1); opacity: 0.75; }
  75%, 100% { transform: translateY(-50%) scale(2); opacity: 0; }
}

/* === Event Card === */
.event-card {
  background: #FFFFFF;
  border: 1px solid #EBEBEB;
  border-radius: 12px;
  margin-bottom: 0.75rem;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0,0,0,0.04);
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.event-card__row {
  display: flex;
  flex-direction: row;
  cursor: pointer;
}

.event-card:hover {
  box-shadow: 0 6px 16px rgba(0,0,0,0.08);
  border-color: #EBEBEB;
}

.event-card__image-wrap {
  flex-shrink: 0;
  width: 7rem;
  position: relative;
  overflow: hidden;
  background: #EBEBEB;
}

.event-card__image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

.event-card__row:hover .event-card__image {
  transform: scale(1.05);
}

.event-card__body {
  flex: 1;
  min-width: 0;
  padding: 0.75rem 1rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
}

.event-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.35rem;
}

.event-card__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 2px 10px;
  border-radius: 9999px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  white-space: nowrap;
}

.event-card__badge::before {
  content: '';
  width: 5px;
  height: 5px;
  border-radius: 50%;
  flex-shrink: 0;
}

/* Badge colors — translucent backgrounds matching mockup */
.event-card__badge--yoga { background: rgba(42, 157, 143, 0.08); color: #2A9D8F; }
.event-card__badge--yoga::before { background: #2A9D8F; }
.event-card__badge--meditation { background: rgba(155, 93, 229, 0.08); color: #7b3fbf; }
.event-card__badge--meditation::before { background: #9B5DE5; }
.event-card__badge--dance { background: rgba(242, 87, 69, 0.08); color: #F25745; }
.event-card__badge--dance::before { background: #F25745; }
.event-card__badge--social { background: rgba(244, 162, 97, 0.08); color: #F4A261; }
.event-card__badge--social::before { background: #F4A261; }
.event-card__badge--arts { background: rgba(233, 196, 106, 0.12); color: #c9a633; }
.event-card__badge--arts::before { background: #E9C46A; }
.event-card__badge--kids { background: rgba(242, 132, 130, 0.1); color: #e05553; }
.event-card__badge--kids::before { background: #F28482; }
.event-card__badge--food { background: rgba(214, 40, 40, 0.08); color: #d62828; }
.event-card__badge--food::before { background: #d62828; }
.event-card__badge--markets { background: rgba(87, 204, 153, 0.1); color: #3da673; }
.event-card__badge--markets::before { background: #57CC99; }
.event-card__badge--music { background: rgba(109, 89, 122, 0.1); color: #6D597A; }
.event-card__badge--music::before { background: #6D597A; }
.event-card__badge--ceremonies { background: rgba(192, 132, 252, 0.1); color: #9333EA; }
.event-card__badge--ceremonies::before { background: #C084FC; }
.event-card__badge--retreats { background: rgba(56, 189, 248, 0.1); color: #0284C7; }
.event-card__badge--retreats::before { background: #38BDF8; }
.event-card__badge--community { background: rgba(120, 113, 108, 0.08); color: #78716C; }
.event-card__badge--community::before { background: #78716C; }

.event-card__price {
  font-size: 12px;
  font-weight: 700;
  padding: 2px 10px;
  border-radius: 9999px;
  background: rgba(235,235,235,0.5);
  color: #222222;
  white-space: nowrap;
}

.event-card__price--free {
  background: rgba(0,138,5,0.1);
  color: #008A05;
}

.event-card__title {
  font-size: 1.125rem;
  font-weight: 700;
  line-height: 1.375;
  margin-bottom: 0.5rem;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  transition: color 0.15s ease;
}

.event-card__row:hover .event-card__title {
  color: #F25745;
}

.event-card__meta {
  font-size: 0.875rem;
  color: var(--text-muted);
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
  margin-bottom: 0.75rem;
}

.event-card__meta-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.25rem 0.75rem;
}

.event-card__meta-item {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  min-width: 0;
}

.event-card__meta-item span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.event-card__icon {
  width: 1rem;
  height: 1rem;
  flex-shrink: 0;
}

.event-card__icon--clock,
.event-card__icon--pin,
.event-card__icon--venue,
.event-card__icon--organizer,
.event-card__icon--calendar {
  color: #F25745;
}

.event-card__meta-item span {
  font-weight: 500;
  color: #57534e;
}

.event-card__footer {
  display: flex;
  justify-content: flex-end;
  padding-top: 0.5rem;
  border-top: 1px solid #EBEBEB;
}

.event-card__details-btn {
  background: none;
  border: none;
  font-family: var(--font);
  font-size: 14px;
  font-weight: 600;
  color: #F25745;
  cursor: pointer;
  padding: 0;
  transition: color 0.15s ease;
}

.event-card__details-btn:hover {
  color: #D94D3B;
}

.event-card__details-chevron {
  width: 16px;
  height: 16px;
  vertical-align: middle;
  margin-left: 2px;
  flex-shrink: 0;
}

/* Expanded details below card row */
.event-card__details {
  padding: 1rem 1.25rem;
  border-top: 1px solid var(--border);
}

/* Desktop: wider image + larger content padding at breakpoints */
@media (min-width: 768px) {
  .event-card__image-wrap {
    width: 8rem;
  }
  .event-card__body {
    padding: 1rem 1.25rem;
  }
}
@media (min-width: 1024px) {
  .event-card__image-wrap {
    width: 10rem;
  }
}
@media (min-width: 1280px) {
  .event-card__image-wrap {
    width: 13rem;
  }
}

/* === Expanded Details Content === */
.event-details__image-wrap {
  margin-bottom: 0.5rem;
  border-radius: var(--radius);
  overflow: hidden;
}

.event-details__image {
  width: 100%;
  max-height: 100%;
  display: block;
  border-radius: 12px;
}

.event-details__image-link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.375rem;
  padding: 0.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: #a8a29e;
  text-decoration: none;
  transition: color 0.2s;
}

.event-details__image-link:hover {
  color: #222222;
}

.event-details__recurring {
  font-size: 0.85rem;
  color: #6D597A;
  font-weight: 500;
  margin-bottom: 0.5rem;
}

.event-details__original {
  font-size: 0.85rem;
  color: var(--text);
  line-height: 1.6;
  white-space: pre-line;
  word-wrap: break-word;
  overflow-wrap: break-word;
  margin-bottom: 0.75rem;
}

.event-details__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.7rem 0.75rem;
  border-radius: 9999px;
  font-family: var(--font);
  font-size: 0.8125rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
  width: 100%;
  box-shadow: none;
  border: 1.5px solid transparent;
  white-space: nowrap;
}

.event-details__btn:hover {
  opacity: 1;
}

.event-details__btn--whatsapp {
  background: #5eed94;
  color: #1a1a1a;
  border-color: #5eed94;
}

.event-details__btn--whatsapp:hover {
  background: #45e87f;
  border-color: #45e87f;
}

.event-details__btn--instagram {
  background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
  color: white;
}

.event-details__actions {
  display: flex;
  gap: 0.5rem;
  align-items: stretch;
}

.event-details__actions .event-details__btn {
  flex: 1 1 0;
  width: 0;
  min-width: 0;
}

.event-details__btn--share {
  background: #1a1a1a;
  color: white;
  border-color: #1a1a1a;
  cursor: pointer;
  font-weight: 600;
  box-shadow: none;
}

.event-details__btn--share:hover {
  background: #333;
  color: white;
  border-color: #333;
}

/* === Cuatro Vientos Group === */
.cv-group {
  margin-bottom: 0.75rem;
}

.cv-group .event-card {
  height: auto;
}

.cv-group .event-card__row {
  height: auto;
}

.cv-group__events {
  border-top: 1px solid #EBEBEB;
  padding: 0;
}

.cv-group__events[hidden] {
  display: none;
}

/* CV inner event rows */
.cv-event-row {
  padding: 0.6rem 1rem;
  border-bottom: 1px solid #EBEBEB;
}

.cv-event-row:last-child {
  border-bottom: none;
}

.cv-event-row__info {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.2rem;
}

.cv-event-row__name {
  font-size: 0.9rem;
  font-weight: 600;
  margin: 0 0 0.15rem;
}

.cv-event-row__meta {
  font-size: 0.8rem;
  color: var(--text-muted);
  display: flex;
  flex-wrap: wrap;
  gap: 0.1rem 0.75rem;
  margin-bottom: 0.25rem;
}

.cv-event-row__toggle {
  background: none;
  border: none;
  font-family: var(--font);
  font-size: 13px;
  font-weight: 600;
  color: var(--coral);
  cursor: pointer;
  padding: 0;
}

.cv-event-row__details {
  margin: 0.5rem 0 0;
  padding: 0.75rem;
  background: #F7F7F7;
  border-radius: 8px;
}

.cv-event-row__details[hidden] {
  display: none;
}

.cv-event-row__details .event-details__btn {
  display: inline;
  width: auto;
  padding: 0;
  border-radius: 0;
  background: none;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-muted);
  text-decoration: underline;
  text-decoration-color: rgba(0,0,0,0.15);
  text-underline-offset: 2px;
}

.cv-event-row__details .event-details__btn:hover {
  color: var(--coral);
  opacity: 1;
}

/* === Newsletter Card === */
/* === Newsletter Floating CTA === */
.newsletter-fab {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 1000;
  text-decoration: none;
  color: white;
  transition: opacity 0.4s ease;
}

.newsletter-fab__btn {
  border-radius: 2rem;
  border: none;
  padding: 0.625rem 1.125rem;
  background: var(--coral);
  color: white;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font);
  font-size: 0.875rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(231,111,81,0.4);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.newsletter-fab__btn:hover {
  transform: scale(1.04);
  box-shadow: 0 6px 20px rgba(231,111,81,0.5);
}

.newsletter-fab__panel {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 20rem;
  background: white;
  border-radius: 16px;
  padding: 1.25rem;
  box-shadow: 0 8px 32px rgba(0,0,0,0.15), 0 0 0 1px rgba(231,111,81,0.15);
  animation: fabSlideUp 0.2s ease;
}

@keyframes fabSlideUp {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

.newsletter-fab__close {
  position: absolute;
  top: 0.5rem;
  right: 0.75rem;
  background: none;
  border: none;
  font-size: 1.25rem;
  color: #a8a29e;
  cursor: pointer;
  padding: 0.25rem;
  line-height: 1;
}

.newsletter-fab__close:hover {
  color: #57534e;
}

.newsletter-fab__icon {
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: rgba(233,196,106,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.5rem;
}

.newsletter-fab__title {
  font-size: 0.9375rem;
  font-weight: 800;
  color: #1c1917;
  line-height: 1.3;
}

.newsletter-fab__subtitle {
  font-size: 0.8125rem;
  color: #57534e;
  margin-top: 0.25rem;
  line-height: 1.5;
}

.newsletter-fab__form {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: 0.75rem;
}

.newsletter-fab__input {
  width: 100%;
  padding: 0.5rem 0.75rem;
  font-family: var(--font);
  font-size: 0.875rem;
  background: white;
  border: 1px solid #d6d3d1;
  border-radius: 8px;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
  box-sizing: border-box;
}

.newsletter-fab__input:focus {
  border-color: #F4A261;
  box-shadow: 0 0 0 3px rgba(244,162,97,0.4);
}

.newsletter-fab__input::placeholder {
  color: #a8a29e;
}

.newsletter-fab__submit {
  width: 100%;
  padding: 0.5rem;
  border: none;
  border-radius: 8px;
  font-family: var(--font);
  font-size: 0.875rem;
  font-weight: 700;
  background: var(--coral);
  color: white;
  cursor: pointer;
  transition: background 0.15s ease;
  box-shadow: 0 2px 8px -2px rgba(231,111,81,0.5);
}

.newsletter-fab__submit:hover {
  background: #d4603f;
}

.newsletter-fab__success {
  text-align: center;
  padding: 0.5rem 0;
}

.newsletter-fab__success-title {
  font-size: 0.875rem;
  font-weight: 700;
  color: #2A9D8F;
  margin-top: 0.5rem;
}

.newsletter-fab__success-sub {
  font-size: 0.75rem;
  color: #78716c;
  margin-top: 0.25rem;
}

/* === List Your Event CTA Card === */
.cta-list-event {
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 0.75rem;
  border: 2px dashed #c4b5a4;
  background: transparent;
}

.cta-list-event__link {
  text-decoration: none;
  color: inherit;
  display: block;
}

.cta-list-event__inner {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 2.5rem 1.5rem;
  color: #8c7e6f;
}

.cta-list-event__title {
  font-family: var(--font);
  font-size: 1.4rem;
  font-weight: 700;
  margin: 0 0 0.35rem;
  line-height: 1.25;
  color: #3d3328;
}

.cta-list-event__subtext {
  font-family: var(--font);
  font-size: 0.95rem;
  margin: 0 0 1rem;
  line-height: 1.3;
  color: #6b5e50;
}

.cta-list-event__cta {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: linear-gradient(135deg, #F25745 0%, #F4734A 50%, #F78E50 100%);
  color: white;
  font-family: var(--font);
  font-size: 0.95rem;
  font-weight: 600;
  padding: 0.6rem 1.25rem;
  border-radius: 9999px;
  transition: transform 0.15s ease;
  box-shadow: 0 2px 8px rgba(242, 87, 69, 0.3);
}

.cta-list-event:hover .cta-list-event__cta {
  transform: scale(1.03);
}

.cta-list-event:hover {
  border-color: #F4734A;
}

/* === Subscribe CTA Card === */
.cta-subscribe {
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 0.75rem;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.cta-subscribe__link {
  text-decoration: none;
  color: inherit;
  display: block;
}

.cta-subscribe__image-wrap {
  position: relative;
  height: 15rem;
}

.cta-subscribe__image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s ease;
}

.cta-subscribe:hover .cta-subscribe__image {
  transform: scale(1.05);
}

.cta-subscribe__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(0,0,0,0.82) 0%, rgba(0,0,0,0.55) 50%, rgba(0,0,0,0.15) 100%);
}

.cta-subscribe__icon {
  width: 3rem;
  height: 3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.15);
  border-radius: 50%;
  color: white;
  margin-bottom: 0.5rem;
}

.cta-subscribe__inner {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  text-align: left;
  padding: 1.5rem;
  color: white;
}

.cta-subscribe__title {
  font-family: var(--font);
  font-size: 1.6rem;
  font-weight: 700;
  margin: 0 0 0.35rem;
  line-height: 1.25;
  color: white;
}

.cta-subscribe__subtext {
  font-family: var(--font);
  font-size: 1rem;
  margin: 0 0 0.75rem;
  color: rgba(255,255,255,0.9);
  line-height: 1.3;
}

.cta-subscribe__cta {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: white;
  color: #1a1a1a;
  font-family: var(--font);
  font-size: 0.95rem;
  font-weight: 600;
  padding: 0.6rem 1.25rem;
  border-radius: 9999px;
  white-space: nowrap;
  transition: background 0.15s ease;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.cta-subscribe:hover .cta-subscribe__cta {
  background: rgba(255,255,255,0.9);
}

/* === Event Details Summary Box === */
.event-details__summary {
  background: #F7F7F7;
  border: 1px solid rgba(235,235,235,0.5);
  border-radius: 12px;
  padding: 1rem;
  margin-bottom: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.event-details__summary-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: #222222;
}

.event-details__summary-row span:last-child {
  font-weight: 500;
}

.event-details__summary-icon {
  flex-shrink: 0;
}

.event-details__summary-icon--clock { color: #F25745; }
.event-details__summary-icon--pin { color: #F25745; }
.event-details__summary-icon--user { color: #F25745; }
.event-details__summary-icon--price {
  width: 16px;
  height: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #008A05;
  font-weight: 700;
  font-size: 0.75rem;
}

/* Event details image frame (matching mockup) */
.event-details__image-frame {
  border-radius: 12px;
  overflow: hidden;
  background: transparent;
  display: flex;
  justify-content: center;
}

/* === Empty State === */
.empty-state {
  text-align: center;
  padding: 1.5rem 1rem;
  color: #717171;
  background: #F7F7F7;
  border: 1px dashed #EBEBEB;
  border-radius: 12px;
}

.empty-state__icon {
  font-size: 2.5rem;
  margin-bottom: 0.75rem;
}

.empty-state__text {
  font-size: 0.875rem;
}

/* === Footer === */
.footer {
  text-align: center;
  padding: 1.5rem 1rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  border-top: 1px solid var(--border);
  margin-top: 2rem;
}

.footer__text {
  margin-bottom: 0.6rem;
}

.footer__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.5rem 1.2rem;
  background: #25D366;
  color: white;
  font-family: var(--font);
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: 20px;
  transition: opacity 0.2s ease;
}

.footer__btn:hover {
  opacity: 0.85;
}

/* === Mobile Date View Toggle === */
.mob__date-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0 0.75rem;
  padding: 0;
  background: white;
}

.mob__date-header[hidden] {
  display: none;
}

.mob__date-header .day-strip {
  flex: 1;
  min-width: 0;
}

.mob__view-toggle-btn {
  display: none; /* hidden on desktop */
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border: 1px solid #EBEBEB;
  border-radius: 12px;
  background: white;
  color: #717171;
  cursor: pointer;
  transition: all 0.15s ease;
  margin-right: 0.5rem;
  box-shadow: 0 1px 6px rgba(0,0,0,0.04);
}

.mob__view-toggle-btn:hover {
  background: #F7F7F7;
  color: #222222;
}

.mob__view-icon {
  width: 16px;
  height: 16px;
}

/* === Mobile Calendar Wrapper === */
.mob__calendar-wrap {
  padding: 0.75rem;
  background: white;
  border-radius: 12px;
  margin: 0 0.75rem 0.25rem;
  box-shadow: 0 1px 6px rgba(0,0,0,0.04);
  border: 1px solid #EBEBEB;
}

.mob__calendar-wrap[hidden] {
  display: none;
}

.mob__calendar-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.25rem;
  margin-bottom: 0.625rem;
}

.mob__calendar-month-label {
  font-size: 0.875rem;
  font-weight: 700;
  color: #222222;
  text-transform: capitalize;
}

.mob__calendar-prev,
.mob__calendar-next {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 1.5rem;
  height: 1.5rem;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: #B0B0B0;
  cursor: pointer;
  transition: background 0.15s ease;
  padding: 0.25rem;
}

.mob__calendar-prev:hover,
.mob__calendar-next:hover,
.mob__calendar-close:hover {
  background: #F7F7F7;
}

.mob__calendar-close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border: 1px solid #EBEBEB;
  border-radius: 8px;
  background: white;
  color: #717171;
  cursor: pointer;
  transition: all 0.15s ease;
  margin-left: auto;
}

/* === Floating Action Buttons === */
.fab-group {
  display: flex;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 50;
  flex-direction: row;
  justify-content: space-between;
  align-items: stretch;
  gap: 0.5rem;
  background: #F5EDE3;
  border-top: 1px solid #E8DDD0;
  padding: 0.375rem 0.75rem;
  padding-bottom: calc(0.375rem + env(safe-area-inset-bottom, 0px));
  box-shadow: 0 -2px 10px rgba(120,80,30,0.08);
  border-radius: 12px 12px 0 0;
}

.fab-group__right {
  display: contents;
}

.fab {
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  box-shadow: none;
  transition: opacity 0.15s ease;
  text-decoration: none;
  font-family: var(--font);
  font-size: 0.8rem;
  font-weight: 600;
  gap: 0.3rem;
  padding: 0.35rem 0.75rem;
}

.fab:hover {
  opacity: 0.85;
}

.fab[hidden] {
  display: none !important;
}

.fab--back-to-top {
  flex: 0 0 auto;
  background: #222222;
  color: white;
}

.fab--subscribe {
  flex: 1;
  background: #FFFFFF;
  color: #222222;
  border: 1px solid #E8DDD0;
  text-decoration: none;
}

.fab--list-event {
  flex: 1;
  background: linear-gradient(135deg, #F25745 0%, #F4734A 50%, #F78E50 100%);
  color: white;
  text-decoration: none;
}

/* === Mobile: slightly larger touch targets === */
@media (max-width: 767px) {
  .fab-group {
    padding: 0.5rem 0.75rem;
    padding-bottom: calc(0.5rem + env(safe-area-inset-bottom, 0px));
    border-radius: 0;
  }

  .fab {
    font-size: 0.75rem;
    padding: 0.5rem 0.25rem;
    gap: 0.25rem;
  }

  .fab--back-to-top {
    padding: 0.5rem 0.75rem;
  }
}

/* === Responsive === */
@media (max-width: 767px) {
  .main-column {
    background: white;
  }

  .ad-space-mobile {
    display: none;
    margin: 0.5rem 0.75rem;
  }

  .main {
    padding: 0.5rem 0.75rem calc(4.5rem + env(safe-area-inset-bottom, 0px));
  }

  .day-group__header {
    background: white;
    box-shadow: 0 -1rem 0 white;
  }

  /* Placeholder cards: tighter on mobile */
  .newsletter-fab {
    bottom: 1rem;
    right: 1rem;
  }

  .newsletter-fab__panel {
    width: 17rem;
  }

  .cta-list-event__inner {
    padding: 3rem 1rem;
  }

  .cta-list-event__title {
    font-size: 1.25rem;
  }

  .cta-subscribe__image-wrap {
    height: 13.5rem;
  }

  .cta-subscribe__inner {
    padding: 0.5rem 1rem 0.75rem;
  }

  .cta-subscribe__title {
    font-size: 1.35rem;
  }

  /* Mobile: image on top, full-width */
  .event-card__row {
    flex-direction: column;
  }
  .event-card__image-wrap {
    width: 100% !important;
    aspect-ratio: 16/6.5;
    position: relative;
  }
  .event-card__image {
    position: absolute;
    inset: 0;
  }

  /* Show view toggle and FABs on mobile */
  .mob__view-toggle-btn {
    display: flex;
  }

  /* Day strip scrolls away on mobile (not sticky) */
  .day-strip {
    position: relative;
    padding: 0.4rem 0.5rem;
    z-index: 1;
  }

  .day-strip__day {
    width: calc((100% - 12px) / 7);
    min-width: 0;
    flex-shrink: 0;
  }

  /* Wrapper sticks filters + day-strip together at top */
  .mob-sticky-wrap {
    position: sticky;
    top: 0;
    z-index: 20;
    background: white;
    padding-top: 0;
    box-shadow: none;
  }

  /* Mobile filters bar visible */
  .mob {
    display: block;
  }

  .mob-only {
    display: block;
  }

  /* Day strip: padding handled by .mob__date-header wrapper */
  .day-strip {
    margin: 0;
    padding: 0.25rem;
  }

  /* Day group headers scroll margin accounts for sticky wrap height */
  .day-group {
    scroll-margin-top: 8px;
  }
}

/* sm breakpoint — show full CTA text, subtitle */
@media (min-width: 640px) {
  .header__inner {
    padding: 0.75rem 1.5rem;
  }

  .header__subtitle {
    display: block;
  }

  .header__cta {
    display: flex;
    font-size: 0.875rem;
    padding: 0.5rem 1rem;
  }

  .header__lang-mobile {
    font-size: 0.875rem;
    padding: 0.5rem 1rem;
    gap: 0.375rem;
  }

  .header__lang-text {
    font-size: 0.875rem;
  }

  .header__lang-icon {
    width: 1rem;
    height: 1rem;
  }

  .header__help {
    padding: 0.5rem;
  }

  .header__help-icon {
    width: 1.25rem;
    height: 1.25rem;
  }

  .header__cta-text--desktop {
    display: inline;
  }

  .header__cta-text--mobile {
    display: none;
  }
}

/* md breakpoint — desktop layout */
@media (min-width: 768px) {
  .header__inner {
    padding: 1.25rem 1.5rem;
  }

  .header__title {
    font-size: 1.5rem;
  }

  .header__subtitle {
    font-size: 0.875rem;
  }

  /* Show desktop ad in header */
  .header__ad-space--desktop {
    display: none;
    flex: 1;
    align-items: center;
    justify-content: center;
    min-width: 0;
    max-width: 42rem;
    height: 4rem;
    margin: 0 1rem;
    border-radius: 0.75rem;
    border: 2px dashed #EBEBEB;
    color: #B0B0B0;
    font-size: 0.875rem;
    font-weight: 500;
    letter-spacing: 0.05em;
  }

  /* Language toggle stays in header on all sizes; hide sidebar lang */
  .sidebar__lang-section {
    display: none;
  }

  /* Hide mobile filters and date strip on desktop */
  .mob {
    display: none;
  }

  .mob__date-header,
  .mob__calendar-wrap,
  .mob-sticky-wrap {
    display: none;
  }

  .content-layout {
    display: flex;
    max-width: var(--max-width);
    gap: 0;
    padding: 0;
    margin: 0 auto;
  }

  /* Show sidebar group on desktop */
  .sidebar-group {
    display: flex;
    flex-shrink: 0;
    background: white;
    border-right: 1px solid #EBEBEB;
    position: sticky;
    top: 0;
    align-self: flex-start;
    height: 100vh;
  }

  /* Category sidebar (flat inside group) */
  .sidebar {
    display: block;
    width: var(--sidebar-w);
    padding: 0;
    border-right: 1px solid #EBEBEB;
    overflow-y: auto;
    max-height: 100vh;
    scrollbar-width: none;
  }

  .sidebar::-webkit-scrollbar {
    display: none;
  }

  /* Main content gets padding */
  .main-column {
    padding-top: 0.25rem;
    padding-left: 1rem;
    padding-right: 1rem;
  }
}

/* lg breakpoint */
@media (min-width: 1024px) {
  .header__inner {
    padding: 1.25rem 2rem;
  }

  .header__title {
    font-size: 1.875rem;
  }

  /* Show calendar sidebar inside group */
  .calendar-sidebar {
    display: block;
    width: var(--cal-sidebar-w);
    overflow-y: auto;
    max-height: 100vh;
    scrollbar-width: none;
  }

  .calendar-sidebar::-webkit-scrollbar {
    display: none;
  }

  /* Hide time filter from category sidebar at lg+ (it lives in calendar sidebar) */
  .sidebar .sidebar__time-section {
    display: none;
  }

  /* Main content gets more padding at lg */
  .main-column {
    padding-left: 1rem;
    padding-right: 1rem;
  }
}

/* ============================================================
   V2 THEME — Warm light theme with orange-to-red gradient header
   Activated via data-theme="v2" on <html>
   ============================================================ */

[data-theme="v2"] {
  --bg: #FFF8F2;
  --card-bg: #FFFFFF;
  --coral: #E8652B;
  --coral-light: rgba(232, 101, 43, 0.08);
  --teal: #008A05;
  --teal-light: rgba(0,138,5,0.08);
  --gold: #E8652B;
  --gold-light: rgba(232, 101, 43, 0.08);
  --text: #222222;
  --text-muted: #717171;
  --border: #E8DDD0;
  --shadow: 0 2px 10px rgba(180,100,40,0.06);
  --shadow-hover: 0 6px 16px rgba(180,100,40,0.12);
}

/* Header — transparent, gradient comes from body */
[data-theme="v2"] .header {
  background: transparent;
  border-bottom: none;
  color: white;
  flex-shrink: 0;
}

/* Hide footer in V2 — content panel extends to bottom */
[data-theme="v2"] .footer {
  display: none;
}

[data-theme="v2"] .header__inner {
  padding: 1rem 2.5rem;
}
[data-theme="v2"] .header__brand {
  min-width: 0;
  flex-shrink: 1;
}

[data-theme="v2"] .header__title {
  font-family: 'Dela Gothic One', sans-serif;
  font-size: 2rem;
  color: white;
  text-transform: capitalize;
}

[data-theme="v2"] .header__subtitle {
  display: block;
  color: rgba(255,255,255,0.85);
  font-family: var(--font);
  font-style: normal;
  font-size: 0.875rem;
  letter-spacing: 0.01em;
}

/* Header buttons — solid white with dark text */
[data-theme="v2"] .header__cta,
[data-theme="v2"] .header__lang-mobile,
[data-theme="v2"] .header__help {
  background: white;
  color: #222222;
  border: none;
  border-radius: 9999px;
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  transition: background 0.15s, box-shadow 0.15s, transform 0.15s;
}
[data-theme="v2"] .header__cta:hover,
[data-theme="v2"] .header__lang-mobile:hover,
[data-theme="v2"] .header__help:hover {
  background: #f5f5f5;
  box-shadow: 0 4px 14px rgba(0,0,0,0.12);
  transform: translateY(-1px);
}

/* Theme dropdown in header */
.header__theme-dropdown {
  position: relative;
}
.header__theme-trigger {
  display: flex;
  align-items: center;
  gap: 0.2rem;
  background: #F7F7F7;
  color: #222222;
  border: 1px solid #EBEBEB;
  border-radius: 9999px;
  padding: 0.375rem 0.5rem 0.375rem 0.625rem;
  cursor: pointer;
  transition: background 0.15s;
  font-family: var(--font);
  font-size: 0.75rem;
  font-weight: 700;
}
.header__theme-trigger:hover {
  background: #EBEBEB;
}
.header__theme-label {
  line-height: 1;
}
.header__theme-chevron {
  width: 0.875rem;
  height: 0.875rem;
  flex-shrink: 0;
  transition: transform 0.15s;
}
.header__theme-dropdown[data-open] .header__theme-chevron {
  transform: rotate(180deg);
}
.header__theme-panel {
  position: absolute;
  top: calc(100% + 4px);
  right: 0;
  background: white;
  border: 1px solid #EBEBEB;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  min-width: 120px;
  z-index: 100;
  overflow: hidden;
}
.header__theme-option {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  width: 100%;
  padding: 0.5rem 0.75rem;
  border: none;
  background: transparent;
  color: #222222;
  font-family: var(--font);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.1s;
  text-align: left;
}
.header__theme-option:hover {
  background: #F7F7F7;
}
.header__theme-option--active {
  color: #F25745;
}
.header__theme-desc {
  color: #717171;
  font-weight: 400;
  font-size: 0.75rem;
}

/* V2: Theme toggle — frosted glass in header */
[data-theme="v2"] .header__theme-trigger {
  background: rgba(255,255,255,0.18);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: white;
  border: 1px solid rgba(255,255,255,0.3);
}
[data-theme="v2"] .header__theme-trigger:hover {
  background: rgba(255,255,255,0.3);
  border-color: rgba(255,255,255,0.5);
}
[data-theme="v2"] .header__theme-panel {
  border-color: #E8DDD0;
}
[data-theme="v2"] .header__theme-option--active {
  color: #E8652B;
}

/* V2: Town/category lists — more breathing room (#1) */
[data-theme="v2"] .sidebar__towns {
  gap: 0.3rem;
}
[data-theme="v2"] .category-filter {
  gap: 0.3rem;
}
[data-theme="v2"] .sidebar__town,
[data-theme="v2"] .category-filter__btn,
[data-theme="v2"] .sidebar__free-filter {
  padding: 0.45rem 0.75rem;
  border-radius: 8px;
  transition: background 0.15s ease, transform 0.1s ease;
}

/* V2: Town icons — warm orange */
[data-theme="v2"] .sidebar__town-icon {
  color: #C4A882;
  opacity: 0.8;
}
[data-theme="v2"] .sidebar__town--active .sidebar__town-icon {
  color: #E8652B;
  opacity: 1;
}

/* V2: Town count badges — subtle warm, improved contrast */
[data-theme="v2"] .sidebar__town-count {
  background: #F0E6DA;
  color: #6A5A4A;
  border-color: #E8DDD0;
  font-weight: 600;
}
[data-theme="v2"] .sidebar__town--active .sidebar__town-count {
  background: #F5EDE3;
  color: #5A4A3A;
  border-color: #E8DDD0;
  font-weight: 700;
}

/* V2: Category count badges — subtle warm, improved contrast */
[data-theme="v2"] .category-filter__count {
  background: #F0E6DA;
  color: #6A5A4A;
  border-color: #E8DDD0;
  font-weight: 600;
}
[data-theme="v2"] .category-filter__btn--active .category-filter__count {
  background: #F5EDE3;
  color: #5A4A3A;
  border-color: #E8DDD0;
  font-weight: 700;
}

/* V2: Category dots — bigger, more visible (#7) */
[data-theme="v2"] .category-filter__dot {
  width: 10px;
  height: 10px;
  border: 1px solid rgba(0,0,0,0.08);
}

/* V2: Free events — show tag icon, match town style */
[data-theme="v2"] .sidebar__free-icon {
  display: block;
  width: 16px;
  height: 16px;
  color: #C4A882;
  opacity: 0.8;
  flex-shrink: 0;
}
[data-theme="v2"] .sidebar__free-filter--active .sidebar__free-icon {
  color: #E8652B;
  opacity: 1;
}
[data-theme="v2"] .sidebar__free-filter::before {
  display: none;
}
[data-theme="v2"] .sidebar__free-filter--active {
  background: #E5D9CE;
  color: #222222;
  font-weight: 700;
}
[data-theme="v2"] .sidebar__free-count {
  background: #F0E6DA;
  color: #6A5A4A;
  border-color: #E8DDD0;
  font-weight: 600;
}
[data-theme="v2"] .sidebar__free-filter--active .sidebar__free-count {
  background: #E8DDD0;
  color: #6A5A4A;
  border-color: #D8CDB0;
}

/* V2: View Details — dark text, orange on hover */
[data-theme="v2"] .event-card__details-btn {
  background: none;
  border: none;
  color: #222222;
  font-weight: 600;
  font-size: 0.8125rem;
  padding: 0;
  transition: color 0.15s ease;
}
[data-theme="v2"] .event-card__details-btn:hover {
  color: #E8652B;
}
/* V2: Remove orange hover from card title */
[data-theme="v2"] .event-card__row:hover .event-card__title {
  color: inherit;
}
[data-theme="v2"] .event-card__details-btn .event-card__details-chevron {
  display: none;
}
[data-theme="v2"] .event-card__details-btn::after {
  content: ' →';
  transition: transform 0.2s ease;
  display: inline-block;
}
[data-theme="v2"] .event-card__details-btn:hover::after {
  transform: translateX(3px);
}

/* V2: Hide today dot — green calendar icon is enough */
[data-theme="v2"] .day-group--today .day-group__label {
  color: #008A05;
  padding-left: 0;
}
[data-theme="v2"] .day-group--today .day-group__label::before,
[data-theme="v2"] .day-group--today .day-group__label::after {
  display: none;
}

/* V2: Card — no left accent border */
[data-theme="v2"] .event-card {
  border-left: none;
}

/* V2: "Things To Do" total — hero treatment (#3) */
[data-theme="v2"] .sidebar__total-label {
  font-size: 0.875rem;
  font-weight: 700;
}
[data-theme="v2"] .sidebar__total-number {
  background: #E8652B;
  color: white;
  border-color: #E8652B;
  font-weight: 700;
  font-size: 0.75rem;
  transition: background 0.3s, border-color 0.3s, transform 0.3s;
}
/* Zero results — red warning badge */
[data-theme="v2"] .sidebar__total-number--zero {
  background: #D94D3B;
  border-color: #D94D3B;
  animation: badgePulse 0.4s ease;
}
@keyframes badgePulse {
  0% { transform: scale(1); }
  40% { transform: scale(1.2); }
  100% { transform: scale(1); }
}

/* V2: Sidebar section dividers — match vertical border color */
[data-theme="v2"] .sidebar__section {
  border-color: #E8DDD0;
  padding: 0.375rem 1.25rem;
}
[data-theme="v2"] .sidebar__section:first-child {
  padding-top: 0;
}
[data-theme="v2"] .calendar-sidebar__section {
  padding: 0.75rem;
}

/* V2: Sidebar heading — bolder, more visible (#2) */
[data-theme="v2"] .sidebar__heading {
  color: #7A6A5A;
  font-size: 0.6875rem;
  font-weight: 800;
  letter-spacing: 0.1em;
}

/* V2: All/None toggle — properly sized (#5) */
[data-theme="v2"] .sidebar__cat-toggles {
  background: #F0E6DA;
  font-size: 0.75rem;
  padding: 2px;
  border-radius: 6px;
}
[data-theme="v2"] .sidebar__cat-toggle-btn {
  color: #9A8A7A;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.2rem 0.6rem;
}
[data-theme="v2"] .sidebar__cat-toggle-btn:hover {
  color: #6A5A4A;
}
[data-theme="v2"] .sidebar__cat-toggle-btn--active {
  background: #FFF5ED;
  color: #222222;
  box-shadow: 0 1px 3px rgba(180,100,40,0.08);
  font-weight: 700;
}

/* #19: Event cards — consistent height */
[data-theme="v2"] .event-card__row {
  min-height: 9rem;
}
[data-theme="v2"] .event-card__image-wrap {
  min-height: 9rem;
}
[data-theme="v2"] .event-card__body {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* #20: Smooth transition — stronger top shadow on content panel */
@media (min-width: 768px) {
  [data-theme="v2"] .content-layout {
    box-shadow: 0 -4px 20px rgba(120,60,20,0.15), 0 2px 16px rgba(180,100,40,0.1);
  }
}

/* Body background — Baja sunset gradient */
body[data-theme="v2"] {
  background: linear-gradient(160deg, #ef6e3d, #fccc70);
  background-attachment: fixed;
}

/* Content layout — sticky panel that covers header on scroll */
@media (min-width: 768px) {
  [data-theme="v2"] .content-layout {
    gap: 0;
    margin: 0 auto;
    max-width: var(--max-width);
    background: #F5EDE3;
    border-radius: 12px 12px 0 0;
    padding-top: 12px;
    overflow: visible;
    box-shadow: none;
    position: relative;
    z-index: 25;
    min-height: 100vh;
  }

  [data-theme="v2"] .sidebar-group {
    border-radius: 0;
    height: 100vh;
    position: sticky;
    top: 0;
    overflow: hidden;
    background: #F5EDE3;
  }

  [data-theme="v2"] .sidebar {
    width: 17rem;
    max-height: 100vh;
    overflow-y: auto;
  }

  [data-theme="v2"] .calendar-sidebar {
    max-height: 100vh;
    overflow-y: auto;
    border-radius: 0;
  }

  [data-theme="v2"] .main-column {
    background: #F5EDE3;
    padding-top: 0;
    padding-left: 0;
    padding-right: 0;
    overflow-y: clip;
  }

  [data-theme="v2"] .main {
    padding-right: 1.25rem;
    padding-left: 1.25rem;
  }
}

/* Mobile: warm off-white content area — full width, no bg bleed */
@media (max-width: 767px) {
  html {
    overflow-x: hidden;
  }

  [data-theme="v2"] .header__title {
    font-size: 1.25rem;
  }

  [data-theme="v2"] .header__subtitle {
    font-size: 0.7rem;
  }

  [data-theme="v2"] .header__inner {
    padding: 0.75rem 1rem;
    flex-wrap: nowrap;
  }

  [data-theme="v2"] .header__brand {
    min-width: 0;
    flex-shrink: 1;
  }

  [data-theme="v2"] .content-layout {
    background: transparent;
  }

  [data-theme="v2"] .main-column {
    background: #F5EDE3;
  }

  [data-theme="v2"] .mob-sticky-wrap {
    background: transparent;
    border-bottom: none;
  }

  [data-theme="v2"] .day-group__header {
    background: #F5EDE3;
    box-shadow: none;
  }
  [data-theme="v2"] .day-group__header.is-stuck {
    box-shadow: 0px 5px 10px rgba(120,80,30,0.08);
  }
}

/* V2: Day groups — extra bottom space so last card isn't hidden by next sticky header */
[data-theme="v2"] .day-group {
  padding-bottom: 1rem;
}

/* V2: Day group headers — blend with main area */
[data-theme="v2"] .day-group__header {
  background: #F5EDE3;
  border-radius: 0;
  padding: 0.375rem 0;
  margin-left: 0;
  margin-right: 0;
  margin-bottom: 0.375rem;
  border-bottom: 1px solid #E8DDD0;
  border-top: none;
  box-shadow: none;
  top: -1px;
}
[data-theme="v2"] .day-group__header.is-stuck {
  box-shadow: 0px 5px 10px rgba(120,80,30,0.08);
}

@media (min-width: 768px) {
  [data-theme="v2"] .day-group__header {
    padding: 0.75rem 1.25rem;
    margin-left: -1.25rem;
    margin-right: -1.25rem;
    padding-left: 2.5rem;
    margin-bottom: 0.75rem;
    box-shadow: none;
  }
  [data-theme="v2"] .day-group__header.is-stuck {
    box-shadow: 0px 5px 10px rgba(120,80,30,0.08);
  }
}

/* V2: Day header label — larger, more readable */
[data-theme="v2"] .day-group__label {
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #222222;
}

/* V2: Calendar icon before non-today day headers */
[data-theme="v2"] .day-group__header::before {
  content: '';
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%239A8A7A' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='4' width='18' height='18' rx='2' ry='2'/%3E%3Cline x1='16' y1='2' x2='16' y2='6'/%3E%3Cline x1='8' y1='2' x2='8' y2='6'/%3E%3Cline x1='3' y1='10' x2='21' y2='10'/%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
}

/* V2: Today header — green icon override */
[data-theme="v2"] .day-group--today .day-group__header::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23008A05' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='4' width='18' height='18' rx='2' ry='2'/%3E%3Cline x1='16' y1='2' x2='16' y2='6'/%3E%3Cline x1='8' y1='2' x2='8' y2='6'/%3E%3Cline x1='3' y1='10' x2='21' y2='10'/%3E%3C/svg%3E");
}
[data-theme="v2"] .day-group--today .day-group__label {
  color: #008A05;
}

/* Sidebar — warm tint with clear divider */
[data-theme="v2"] .sidebar,
[data-theme="v2"] .calendar-sidebar {
  background: #F5EDE3;
  border-color: #E8DDD0;
}
/* #3: Clear divider between sidebar columns */
[data-theme="v2"] .sidebar {
  border-right: 1px solid #E8DDD0;
}
/* #4: Calendar sidebar — ensure enough width */
[data-theme="v2"] .calendar-sidebar {
  min-width: 17rem;
}
[data-theme="v2"] .sidebar-group {
  background: #F5EDE3;
  border-color: #E8DDD0;
}

/* V2: Calendar panel dividers — match sidebar borders */
[data-theme="v2"] .calendar-sidebar__divider,
[data-theme="v2"] .cal-grid__divider {
  background: #E8DDD0;
}

/* V2: Calendar "More" button — warmer, more designed (#10) */
[data-theme="v2"] .cal-grid__more {
  background: #F0E6DA;
  color: #6A5A4A;
  border: 1px solid #E8DDD0;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.8125rem;
  padding: 0.4rem 1.25rem;
  transition: background 0.15s, color 0.15s;
}
[data-theme="v2"] .cal-grid__more:hover {
  background: #E5D9CE;
  color: #222222;
}

/* V2: Calendar grid — full warm treatment */
/* DOW headers — warm muted */
[data-theme="v2"] .cal-grid__dow {
  color: #B8A898;
}
/* Regular day numbers on warm bg */
[data-theme="v2"] .cal-grid__num {
  color: #4A3A2A;
}
/* Event count badge — warm beige bg */
[data-theme="v2"] .cal-grid__count {
  background: #F0E6DA;
  color: #9A8A7A;
  font-weight: 600;
}
/* Has-events days — warm cream */
[data-theme="v2"] .cal-grid__cell--has-events:not(.cal-grid__cell--today):not(.cal-grid__cell--selected):not(.cal-grid__cell--past) {
  background: #FFF5ED;
}
[data-theme="v2"] .cal-grid__cell--has-events .cal-grid__count {
  background: #E8DDD0;
  color: #E8652B;
}
/* Hover — warm */
[data-theme="v2"] .cal-grid__cell--has-events:hover:not(.cal-grid__cell--selected) {
  background: #F0E8E0;
}
[data-theme="v2"] .cal-grid__cell--has-events:hover:not(.cal-grid__cell--selected) .cal-grid__num {
  color: #222222;
}
/* Past days — warm muted */
[data-theme="v2"] .cal-grid__cell--past .cal-grid__num {
  color: #DDD4CA;
}
[data-theme="v2"] .cal-grid__cell--past .cal-grid__count {
  background: #EDE5DC;
  color: #C4B8AA;
}
/* Disabled days — warm muted */
[data-theme="v2"] .cal-grid__cell--disabled .cal-grid__num {
  color: #DDD4CA;
}
/* Selected (not today) — brand orange */
[data-theme="v2"] .cal-grid__cell--selected {
  background: #E8652B;
  box-shadow: 0 2px 6px rgba(232, 101, 43, 0.25);
}
[data-theme="v2"] .cal-grid__cell--selected .cal-grid__num {
  color: white;
}
[data-theme="v2"] .cal-grid__cell--selected .cal-grid__count {
  background: rgba(255,255,255,0.25);
  color: white;
}
/* Today (not selected) — green outline */
[data-theme="v2"] .cal-grid__cell--today {
  background: rgba(0,138,5,0.06);
  border-color: rgba(0,138,5,0.18);
}
[data-theme="v2"] .cal-grid__cell--today .cal-grid__num {
  color: #008A05;
  font-weight: 800;
}
/* Today + selected — green filled */
[data-theme="v2"] .cal-grid__cell--today.cal-grid__cell--selected {
  background: #008A05;
  border-color: #008A05;
}
[data-theme="v2"] .cal-grid__cell--today.cal-grid__cell--selected .cal-grid__num {
  color: white;
}

/* V2: Time of Day dropdown — warm theme */
[data-theme="v2"] .stdd__trigger {
  background: #FFF5ED;
  border-color: #E8DDD0;
}
[data-theme="v2"] .stdd__trigger--open {
  border-color: #C4A882;
  box-shadow: 0 0 0 1px #C4A882;
}
[data-theme="v2"] .stdd__panel {
  background: #FFF5ED;
  border-color: #E8DDD0;
  box-shadow: 0 4px 20px rgba(120,90,50,0.1);
  padding: 0.5rem 0.625rem;
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
}
[data-theme="v2"] .stdd__item {
  padding: 0.55rem 0.75rem;
  border-radius: 8px;
}
[data-theme="v2"] .stdd__item:hover {
  background: #FFF5ED;
}
[data-theme="v2"] .stdd__item--active {
  background: #E5D9CE;
  color: #222222;
}

/* V2: Clear filters — warm pill with slide-in */
@keyframes clearFilterSlideIn {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}
[data-theme="v2"] .sidebar__clear-filters {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  background: #FFF5ED;
  border: 1px solid #E8DDD0;
  border-radius: 9999px;
  color: #7A6A5A;
  font-size: 0.7rem;
  font-weight: 600;
  cursor: pointer;
  padding: 0.25rem 0.65rem 0.25rem 0.5rem;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
  font-family: var(--font);
  animation: clearFilterSlideIn 0.2s ease-out;
  margin-top: 0.35rem;
}
[data-theme="v2"] .sidebar__clear-filters:hover {
  background: #E8652B;
  color: white;
  border-color: #E8652B;
}
[data-theme="v2"] .sidebar__clear-filters:hover svg {
  stroke: white;
}
[data-theme="v2"] .sidebar__clear-filters[hidden] {
  display: none;
}

/* V2: Empty state — warm, contextual */
[data-theme="v2"] .empty-state {
  background: #FFF5ED;
  border: 1px dashed #E8DDD0;
  border-radius: 16px;
  padding: 2.5rem 1.5rem;
  color: #7A6A5A;
  margin: 1.5rem;
}
[data-theme="v2"] .empty-state__icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}
[data-theme="v2"] .empty-state__text {
  font-size: 1rem;
  font-weight: 600;
  color: #5A4A3A;
  margin-bottom: 0.25rem;
}
[data-theme="v2"] .empty-state__sub {
  font-size: 0.875rem;
  color: #9A8A7A;
  margin-top: 0.25rem;
}
[data-theme="v2"] .empty-state__clear {
  margin-top: 1rem;
  background: #E8652B;
  color: white;
  border: none;
  border-radius: 9999px;
  padding: 0.5rem 1.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  font-family: var(--font);
  cursor: pointer;
  transition: background 0.15s, transform 0.15s;
}
[data-theme="v2"] .empty-state__clear:hover {
  background: #D45520;
  transform: translateY(-1px);
}

/* V2: Active states — stronger contrast (#4) */
[data-theme="v2"] .sidebar__item--active,
[data-theme="v2"] .sidebar__town-btn--active,
[data-theme="v2"] .sidebar__town--active,
[data-theme="v2"] .sidebar__town--active:hover,
[data-theme="v2"] .category-filter__btn--active,
[data-theme="v2"] .category-filter__btn--active:hover {
  background: #E5D9CE;
  color: #222222;
  font-weight: 700;
}
[data-theme="v2"] .sidebar__town:hover,
[data-theme="v2"] .category-filter__btn:hover,
[data-theme="v2"] .sidebar__free-filter:hover {
  background: #FFF5ED;
}

/* V2: Hide free event filter (desktop + mobile) for now */
[data-theme="v2"] .sidebar__section:has(.sidebar__free-filter),
[data-theme="v2"] .sidebar__free-filter,
[data-theme="v2"] .mob__free-v3,
[data-theme="v2"] .mob__row-divider--free {
  display: none !important;
}
/* V2: Town & time triggers fill the row equally */
[data-theme="v2"] .mob__dropdown-trigger {
  flex: 1;
  min-width: 0;
}

/* Day strip — match filter area background */
[data-theme="v2"] .day-strip {
  background: #FFF5ED;
  border-color: #E8DDD0;
}
[data-theme="v2"] .day-strip__month {
  background: #FFF5ED;
}
[data-theme="v2"] .day-strip__day-name {
  color: #E8652B;
}

/* Event cards — white with warm border + lift on hover */
[data-theme="v2"] .event-card {
  background: white;
  border-color: #E8DDD0;
  box-shadow: 0 1px 4px rgba(180,100,40,0.06);
  transition: box-shadow 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}
[data-theme="v2"] .event-card:hover {
  box-shadow: 0 6px 16px rgba(180,100,40,0.12);
  border-color: #E8D4C0;
  transform: translateY(-2px);
}

/* V2: Hide card footer, make whole card clickable */
[data-theme="v2"] .event-card__footer {
  display: none;
}
[data-theme="v2"] .event-card__row {
  cursor: pointer;
}

/* Accent colors */
[data-theme="v2"] .event-details__summary-icon--clock,
[data-theme="v2"] .event-details__summary-icon--pin,
[data-theme="v2"] .event-details__summary-icon--user {
  color: #F25745;
}

/* CTA buttons */
[data-theme="v2"] .event-card__cta,
[data-theme="v2"] .event-card__share-btn--copy,
[data-theme="v2"] .submit-cta__btn {
  background: linear-gradient(135deg, #F2A63A, #E8652B);
  color: white;
}
[data-theme="v2"] .event-card__cta:hover,
[data-theme="v2"] .submit-cta__btn:hover {
  background: linear-gradient(135deg, #E8983A, #D94D3B);
}

/* Calendar — warm highlight */
[data-theme="v2"] .cal-day--has-events {
  background: rgba(232, 101, 43, 0.12);
  color: #E8652B;
}
[data-theme="v2"] .cal-day--today {
  border-color: #E8652B;
  background: linear-gradient(135deg, #F2A63A, #E8652B);
  color: white;
}

/* Mobile town bar */
[data-theme="v2"] .mobile-town-bar__btn--active {
  background: linear-gradient(135deg, #F2A63A, #E8652B);
  color: white;
  border-color: transparent;
}

/* Mobile filters */
[data-theme="v2"] .mobile-filters__apply-btn {
  background: linear-gradient(135deg, #F2A63A, #E8652B);
  color: white;
}

/* Filter pills */
[data-theme="v2"] .filter-pill--active {
  background: rgba(232, 101, 43, 0.1);
  color: #E8652B;
  border-color: #E8652B;
}

/* Submit CTA */
[data-theme="v2"] .submit-cta {
  background: #FFF5ED;
  border-color: #E8DDD0;
}

/* #17: Scroll fade indicators on sidebar and calendar */
@media (min-width: 768px) {
  [data-theme="v2"] .sidebar,
  [data-theme="v2"] .calendar-sidebar {
    mask-image: linear-gradient(to bottom, black calc(100% - 2rem), transparent 100%);
    -webkit-mask-image: linear-gradient(to bottom, black calc(100% - 2rem), transparent 100%);
  }
}

/* === Event image — zoom cursor === */
[data-theme="v2"] .event-details__image {
  cursor: zoom-in;
}
[data-theme="v2"] .event-details__image:hover {
  opacity: 0.92;
}

/* === V2: Mobile Warm Theme === */

/* Mobile filter container — match panel background */
[data-theme="v2"] .mob {
  background: #F5EDE3;
}

/* Dropdown triggers (town & time pills) */
[data-theme="v2"] .mob__dropdown-trigger {
  background: #FFF5ED;
  border-color: #E8DDD0;
}
[data-theme="v2"] #mob-town-trigger {
  overflow: visible;
  flex: 1.5;
  justify-content: flex-start;
}
[data-theme="v2"] #mob-town-trigger .mob__dropdown-label {
  max-width: none;
  flex: 1;
  text-align: left;
}
[data-theme="v2"] #mob-time-trigger {
  flex: 1;
}
[data-theme="v2"] .mob__dropdown-trigger:hover {
  border-color: #C4A882;
}
[data-theme="v2"] .mob__dropdown-trigger--open {
  border-color: #C4A882;
  box-shadow: 0 0 0 1px #C4A882;
}
[data-theme="v2"] .mob__dropdown-icon--coral {
  color: #E8652B;
}

/* Town +N extra badge */
[data-theme="v2"] .mob__dropdown-extra {
  background: #E8652B;
}

/* Row dividers */
[data-theme="v2"] .mob__row-divider {
  background: #E8DDD0;
}

/* Dropdown panels (town & time) */
[data-theme="v2"] .mob__dropdown-panel {
  background: #FFF5ED;
  border-color: #E8DDD0;
  box-shadow: 0 4px 20px rgba(120,90,50,0.1);
  padding: 0.375rem 0.5rem;
  gap: 0.25rem;
}
[data-theme="v2"] .mob__dropdown-item {
  color: #7A6A5A;
}
[data-theme="v2"] .mob__dropdown-item:hover {
  background: #FFF5ED;
}
[data-theme="v2"] .mob__dropdown-item--active {
  background: #E5D9CE;
  color: #222222;
}
[data-theme="v2"] .mob__dropdown-item-count {
  background: #F0E6DA;
  color: #6A5A4A;
  border-color: #E8DDD0;
}
[data-theme="v2"] .mob__dropdown-item--active .mob__dropdown-item-count {
  background: #F5EDE3;
  color: #5A4A3A;
  border-color: #E8DDD0;
  font-weight: 700;
}

/* Category accordion */
[data-theme="v2"] .mob__cat-accordion {
  background: #FFF5ED;
  border-color: #E8DDD0;
  margin-bottom: 0;
}
[data-theme="v2"] .mob__cat-accordion--open {
  background: #FFF5ED;
}
[data-theme="v2"] .mob__cat-header {
  color: #222222;
  font-size: 0.75rem;
}
[data-theme="v2"] .mob__cat-dot {
  border-color: #F5EDE3;
}
[data-theme="v2"] .mob__cat-body-inner {
  border-top-color: #E8DDD0;
}
[data-theme="v2"] .mob__cat-chevron {
  color: #222222;
}
[data-theme="v2"] .mob__cat-clear-icon {
  color: #C4A882;
}

/* Category All/None toggle */
[data-theme="v2"] .mob__cat-toggles {
  background: #F0E6DA;
}
[data-theme="v2"] .mob__cat-toggle-btn {
  color: #9A8A7A;
}
[data-theme="v2"] .mob__cat-toggle-btn:hover {
  color: #6A5A4A;
}
[data-theme="v2"] .mob__cat-toggle-btn--active {
  background: white;
  color: #222222;
  box-shadow: 0 1px 3px rgba(180,100,40,0.08);
}

/* Category items */
[data-theme="v2"] .mob__cat-item {
  background: transparent;
  color: #7A6A5A;
}
[data-theme="v2"] .mob__cat-item:hover {
  background: #FFF5ED;
}
[data-theme="v2"] .mob__cat-item--active {
  background: #E5D9CE;
  color: #222222;
}
[data-theme="v2"] .mob__cat-item-count {
  background: #F0E6DA;
  color: #6A5A4A;
  border-color: #E8DDD0;
}
[data-theme="v2"] .mob__cat-item--active .mob__cat-item-count {
  background: #F5EDE3;
  color: #5A4A3A;
  border-color: #E8DDD0;
  font-weight: 700;
}

/* Count row & view toggle — match All/None toggle exactly */
[data-theme="v2"] .mob__view-toggle {
  background: #F0E6DA;
  border-radius: 6px;
  padding: 2px;
}
[data-theme="v2"] .mob__view-toggle-icon {
  display: none;
}
[data-theme="v2"] .mob__view-toggle-sep {
  color: #E8DDD0;
}
[data-theme="v2"] .mob__view-toggle-option {
  color: #9A8A7A;
  border-radius: 6px;
  font-weight: 600;
}
[data-theme="v2"] .mob__view-toggle-option:hover {
  color: #6A5A4A;
}
[data-theme="v2"] .mob__view-toggle-option--active {
  background: #FFF5ED;
  color: #222222;
  border-radius: 6px;
  box-shadow: 0 1px 3px rgba(180,100,40,0.08);
  font-weight: 700;
}

/* Day strip — inactive days subtly lighter than strip background */
[data-theme="v2"] .day-strip__day {
  background: #FFF8F2;
}

/* Day strip — today green outline (matches month calendar) */
[data-theme="v2"] .day-strip__day--today {
  background: rgba(0,138,5,0.06);
  box-shadow: inset 0 0 0 1.5px rgba(0,138,5,0.18);
}
[data-theme="v2"] .day-strip__day--today:not(:disabled):hover {
  background: rgba(0,138,5,0.1);
  opacity: 1;
}
[data-theme="v2"] .day-strip__day--today .day-strip__weekday {
  color: #008A05;
  opacity: 0.7;
}
[data-theme="v2"] .day-strip__day--today .day-strip__date {
  color: #008A05;
}
[data-theme="v2"] .day-strip__day--today .day-strip__count {
  background: rgba(0,138,5,0.12);
  color: #008A05;
}
[data-theme="v2"] .day-strip__day--active:not(.day-strip__day--today) {
  background: #E8652B;
  box-shadow: 0 1px 3px rgba(232,101,43,0.25);
}
[data-theme="v2"] .day-strip__day:not(:disabled):hover {
  background: #FFF5ED;
}
[data-theme="v2"] .day-strip__weekday {
  color: #9A8A7A;
}
[data-theme="v2"] .day-strip__count {
  color: #E8652B;
}
[data-theme="v2"] .day-strip__day--active:not(.day-strip__day--today) .day-strip__weekday {
  color: rgba(255,255,255,0.8);
}
[data-theme="v2"] .day-strip__day--active:not(.day-strip__day--today) .day-strip__count {
  background: rgba(255,255,255,0.25);
  color: white;
}

/* Dropdown check icons — warm when active */
[data-theme="v2"] .mob__dropdown-check {
  color: #C4A882;
}
[data-theme="v2"] .mob__dropdown-item--active .mob__dropdown-check {
  color: #E8652B;
}

/* Mobile count group — holds count + clear together */
.mob__count-group {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  min-width: 0;
}

/* Mobile count number + label split */
.mob__count-text {
  white-space: nowrap;
}
.mob__count-number {
  font-size: 1rem;
  font-weight: 800;
  color: #222222;
}
.mob__count-label {
  font-size: 0.7rem;
  font-weight: 500;
  color: #999999;
}
[data-theme="v2"] .mob__count-number {
  color: #222222;
}
[data-theme="v2"] .mob__count-label {
  color: #9A8A7A;
}

/* Mobile clear filters pill */
.mob__clear-filters {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.2rem 0.6rem 0.2rem 0.45rem;
  border: 1px solid #EBEBEB;
  border-radius: 9999px;
  background: #F7F7F7;
  color: #717171;
  font-family: var(--font);
  font-size: 0.65rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
  animation: clearFilterSlideIn 0.2s ease-out;
}
.mob__clear-filters:hover {
  background: #222222;
  color: white;
  border-color: #222222;
}
.mob__clear-filters[hidden] {
  display: none !important;
}
[data-theme="v2"] .mob__clear-filters {
  background: #FFF5ED;
  border-color: #E8DDD0;
  color: #7A6A5A;
}
[data-theme="v2"] .mob__clear-filters:hover {
  background: #E8652B;
  color: white;
  border-color: #E8652B;
}

/* Mobile count text */
[data-theme="v2"] .mob__count-text {
  color: #5A4A3A;
}

/* Mobile date header area */
[data-theme="v2"] .mob__date-header {
  background: #F5EDE3;
  color: #5A4A3A;
}

/* Mobile calendar nav */
[data-theme="v2"] .mob__calendar-wrap {
  background: #FFF5ED;
}
[data-theme="v2"] .mob__calendar-prev,
[data-theme="v2"] .mob__calendar-next {
  color: #C4A882;
}
[data-theme="v2"] .mob__calendar-month-label {
  color: #5A4A3A;
}

/* === Mobile Filter Toggle Strip === */
.mob__filter-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.375rem;
  padding: 0.4rem 1rem;
  cursor: pointer;
  border: none;
  background: #F5EDE3;
  border-bottom: 1px solid #E8DDD0;
  width: 100%;
  font-family: var(--font);
  font-size: 0.6875rem;
  font-weight: 600;
  color: #9A8A7A;
  transition: color 0.15s;
}
@media (max-width: 767px) {
  .mob__filter-toggle:hover {
    color: #6A5A4A;
  }
  .mob__filter-toggle-chevron {
    width: 12px;
    height: 12px;
    transition: transform 0.25s ease;
  }
  .mob__filter-toggle--collapsed .mob__filter-toggle-chevron {
    transform: rotate(180deg);
  }
  /* Orange dot when filters are active and panel is collapsed */
  .mob__filter-toggle-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #E8652B;
    display: none;
  }
  .mob__filter-toggle--collapsed .mob__filter-toggle-dot--active {
    display: block;
  }
}

/* Collapsible filter content */
.mob__filter-collapsible {
  max-height: 500px;
  opacity: 1;
  overflow: visible;
  transition: max-height 0.3s ease, opacity 0.2s ease;
}
.mob__filter-collapsible--hidden {
  max-height: 0 !important;
  opacity: 0 !important;
  overflow: hidden !important;
  pointer-events: none;
}

/* === Fullscreen Image Modal === */
.image-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
}
.image-modal[hidden] {
  display: none;
}
.image-modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.88);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.image-modal__close {
  position: fixed;
  top: 0.75rem;
  right: 0.75rem;
  z-index: 10;
  background: rgba(0, 0, 0, 0.6);
  border: none;
  border-radius: 8px;
  color: white;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
  cursor: pointer;
  width: 2.25rem;
  height: 2.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  opacity: 1;
  transition: opacity 0.15s, background 0.15s, transform 0.15s;
}
.image-modal__close:hover {
  background: rgba(0, 0, 0, 0.8);
  transform: scale(1.1);
}

/* Scroll container — fit-to-height by default */
.image-modal__scroll {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  overflow: hidden;
}
.image-modal__img {
  max-height: 100vh;
  max-width: 100vw;
  object-fit: contain;
  cursor: zoom-in;
  transition: none;
}

/* Zoomed state — full-size image, scrollable, stays centered */
.image-modal--zoomed .image-modal__scroll {
  overflow: auto;
}
.image-modal--zoomed .image-modal__img {
  max-height: none;
  max-width: 100vw;
  width: auto;
  height: auto;
  margin: auto;
  cursor: zoom-out;
}

/* === Live Activity Indicator === */
.live-indicator {
  display: none;
  align-items: center;
  gap: 6px;
  font-size: 0.7rem;
  color: #6b7280;
  margin-left: 8px;
  vertical-align: middle;
}

.live-indicator__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #F78E50;
  position: relative;
}

.live-indicator__dot::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: #F78E50;
  animation: livePulse 2s ease-in-out infinite;
}

.live-indicator--fetching .live-indicator__dot::after {
  animation: liveSpin 0.8s linear infinite;
}

.live-indicator--offline .live-indicator__dot {
  background: #9ca3af;
}

.live-indicator--offline .live-indicator__dot::after {
  animation: none;
}

.live-indicator__text {
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.live-indicator--offline .live-indicator__text {
  color: #9ca3af;
}

.live-indicator__timestamp {
  color: #9ca3af;
  font-size: 0.65rem;
}

@keyframes livePulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(1.8); }
}

@keyframes liveSpin {
  0% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.5); opacity: 0.5; }
  100% { transform: scale(1); opacity: 1; }
}

/* === Entrance Animations === */
.feed-animated .event-card,
.feed-animated .day-group__header,
.feed-animated .cta-card {
  opacity: 0;
  transform: translateY(12px);
}

.feed-animated .event-card.revealed,
.feed-animated .day-group__header.revealed,
.feed-animated .cta-card.revealed {
  animation: feedEntrance 0.35s ease forwards;
}

@keyframes feedEntrance {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* === New Events Pill === */
.new-events-pill {
  position: relative;
  z-index: 25;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 4px;
  margin-bottom: -20px;
  animation: pillBounceIn 0.4s ease;
}

.new-events-pill__preview {
  display: none;
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  z-index: 30;
  margin-top: 8px;
  background: #1a1a1a;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.3);
  max-height: 50vh;
  overflow-y: auto;
  width: max-content;
  min-width: 250px;
  max-width: min(400px, 90vw);
}

.new-events-pill__row {
  display: flex;
  align-items: center;
  gap: 6px;
}

.new-events-pill__btn {
  background: #1a1a1a;
  color: #fff;
  border: none;
  border-radius: 999px;
  padding: 10px 16px 10px 18px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  display: flex;
  align-items: center;
  gap: 10px;
}

.new-events-pill__dot {
  position: relative;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #F78E50;
  box-shadow: 0 0 6px 2px rgba(247, 142, 80, 0.5);
  flex-shrink: 0;
}

.new-events-pill__dot::after {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  background: rgba(247, 142, 80, 0.5);
  animation: pillPulse 2s ease-in-out infinite;
}

@keyframes pillPulse {
  0%, 100% { transform: scale(1); opacity: 0.5; }
  50% { transform: scale(2); opacity: 0; }
}

.new-events-pill__caret {
  width: 14px;
  height: 14px;
  opacity: 0.6;
  transition: transform 0.2s ease;
  flex-shrink: 0;
}


.new-events-pill__btn:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

.new-events-pill__preview.open {
  display: block;
}

.new-events-pill__preview-item {
  padding: 12px 16px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  cursor: pointer;
  font-size: 0.875rem;
  color: #e5e7eb;
  transition: background 0.1s ease;
}

.new-events-pill__preview-item:hover {
  background: rgba(255,255,255,0.08);
}

.new-events-pill__preview-item:last-child {
  border-bottom: none;
}

.new-events-pill__date {
  font-weight: 600;
  color: #F78E50;
  margin-right: 6px;
}

.new-events-pill__town {
  color: #6b7280;
  font-size: 0.75rem;
}

.new-events-pill__more {
  padding: 8px 16px;
  font-size: 0.75rem;
  color: #6b7280;
  text-align: center;
}

.new-events-pill__dismiss {
  display: flex;
  justify-content: center;
  padding: 8px;
  border-top: 1px solid rgba(255,255,255,0.1);
}

.new-events-pill__dismiss-btn {
  background: none;
  border: none;
  color: #6b7280;
  font-size: 0.75rem;
  cursor: pointer;
  padding: 4px 12px;
}

.new-events-pill__dismiss-btn:hover {
  color: #9ca3af;
}

.new-events-pill--desktop {
  display: none;
}

@media (min-width: 768px) {
  .new-events-pill--mobile {
    display: none;
  }
  .new-events-pill--desktop {
    display: flex;
    position: sticky;
    top: 50px;
    z-index: 25;
  }
  .new-events-pill--desktop .new-events-pill__btn {
    padding: 14px 20px 14px 22px;
    font-size: 1rem;
    gap: 12px;
  }
  .new-events-pill--desktop .new-events-pill__dot {
    width: 12px;
    height: 12px;
  }
  .new-events-pill--desktop .new-events-pill__caret {
    width: 16px;
    height: 16px;
  }
  .new-events-pill--desktop .new-events-pill__preview {
    min-width: 350px;
    max-width: 500px;
  }
  .new-events-pill--desktop .new-events-pill__preview-item {
    padding: 14px 20px;
    font-size: 1rem;
  }
  .new-events-pill--desktop .new-events-pill__date {
    font-size: 1rem;
  }
  .new-events-pill--desktop .new-events-pill__town {
    font-size: 0.85rem;
  }
  .new-events-pill--desktop .new-events-pill__dismiss-btn {
    font-size: 0.85rem;
    padding: 6px 16px;
  }
}

@keyframes pillBounceIn {
  0% { opacity: 0; transform: translateY(-10px); }
  60% { transform: translateY(3px); }
  100% { opacity: 1; transform: translateY(0); }
}

/* Highlight uses box-shadow transition, not animation, to coexist with feedEntrance */
.event-card--highlight {
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.4) !important;
  transition: box-shadow 3s ease;
}

@media (prefers-reduced-motion: reduce) {
  .live-indicator__dot::after {
    animation: none;
  }
  .header__subtitle-text {
    transition: none;
  }
  .feed-animated .event-card,
  .feed-animated .day-group__header,
  .feed-animated .cta-card {
    opacity: 1;
    transform: none;
  }
  .feed-animated .event-card.revealed,
  .feed-animated .day-group__header.revealed,
  .feed-animated .cta-card.revealed {
    animation: none;
  }
  .new-events-pill {
    animation: none;
  }
  .event-card--highlight {
    transition: none;
  }
}
