/* ==========================================================================
   FindEventsNearMe — Design System & Stylesheet
   Modern, responsive layout matching high-fidelity reference design.
   ========================================================================== */

:root {
  --primary: #1d63ed;
  --primary-hover: #1553cc;
  --primary-light: #eff6ff;
  --primary-border: #bfdbfe;
  
  --ink: #0f172a;
  --ink-secondary: #334155;
  --ink-muted: #64748b;
  --ink-light: #94a3b8;
  
  --bg-page: #f8fafc;
  --bg-card: #ffffff;
  --border-light: #f1f5f9;
  --border-card: #e2e8f0;
  
  --danger: #ef4444;
  --danger-light: #fee2e2;
  --success: #16a34a;
  --warning: #d97706;
  
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-pill: 9999px;
  
  --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.06);
  --shadow-card: 0 4px 20px -2px rgba(15, 23, 42, 0.06), 0 2px 6px -1px rgba(15, 23, 42, 0.04);
  --shadow-hover: 0 12px 30px -4px rgba(15, 23, 42, 0.12), 0 4px 10px -2px rgba(15, 23, 42, 0.06);
  --shadow-floating: 0 20px 45px -12px rgba(15, 23, 42, 0.25);
  
  --shell-width: 1220px;
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg-card);
  color: var(--ink);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: color 0.15s ease;
}

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

p {
  margin: 0 0 1rem;
}

h1, h2, h3, h4, h5, h6 {
  color: var(--ink);
  margin: 0 0 0.5rem;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

.shell {
  width: min(100% - 40px, var(--shell-width));
  margin-inline: auto;
}

.text-primary { color: var(--primary) !important; }
.text-danger { color: var(--danger) !important; }
.text-muted { color: var(--ink-muted) !important; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  top: -60px;
  left: 20px;
  z-index: 999;
  background: var(--ink);
  color: #ffffff;
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  transition: top 0.2s ease;
}
.skip-link:focus {
  top: 15px;
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #ffffff;
  border-bottom: 1px solid var(--border-light);
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.03);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 68px;
  gap: 20px;
}

/* Brand */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
}
.brand img {
  display: block;
}
.brand-icon {
  font-size: 1.6rem;
  line-height: 1;
  color: var(--primary);
}
.brand-text {
  font-size: 1.32rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #0f172a;
}
.brand-text span {
  color: var(--primary);
  font-weight: 800;
}

/* Primary Nav */
.primary-nav {
  display: flex;
  align-items: center;
  gap: 24px;
}

.nav-item {
  color: var(--ink-secondary);
  font-weight: 500;
  font-size: 0.95rem;
  padding: 8px 2px;
  position: relative;
  transition: color 0.15s ease;
}
.nav-item:hover {
  color: var(--primary);
}
.nav-item.active {
  color: var(--primary);
  font-weight: 700;
}
.nav-item.active::after {
  content: "";
  position: absolute;
  bottom: -15px;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--primary);
  border-radius: var(--radius-pill);
}

/* Dropdown */
.nav-dropdown {
  position: relative;
}
.nav-dropdown-btn {
  background: transparent;
  border: none;
  font: inherit;
  color: var(--ink-secondary);
  font-weight: 500;
  font-size: 0.95rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 2px;
}
.nav-dropdown-btn:hover {
  color: var(--primary);
}
.nav-arrow {
  font-size: 0.72rem;
  transition: transform 0.2s ease;
}
.nav-dropdown.is-open .nav-arrow {
  transform: rotate(180deg);
}
.nav-dropdown-menu {
  display: none;
  position: absolute;
  top: calc(100% + 12px);
  left: 50%;
  transform: translateX(-50%);
  background: #ffffff;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-card);
  box-shadow: 0 15px 35px -10px rgba(15, 23, 42, 0.2);
  padding: 16px;
  min-width: 380px;
  z-index: 110;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.nav-dropdown.is-open .nav-dropdown-menu {
  display: grid;
}
.dropdown-heading {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-light);
  margin-bottom: 8px;
}
.nav-dropdown-group a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 8px;
  border-radius: var(--radius-sm);
  color: var(--ink-secondary);
  font-size: 0.88rem;
  font-weight: 500;
}
.nav-dropdown-group a:hover {
  background: var(--primary-light);
  color: var(--primary);
}
.nav-dropdown-group a i {
  font-size: 0.85rem;
  width: 16px;
  text-align: center;
  color: var(--primary);
}

/* Nav Tools: Location, Mobile Toggle */
.nav-tools {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.location-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: transparent;
  border: 1px solid transparent;
  padding: 6px 10px;
  border-radius: var(--radius-pill);
  font: inherit;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--ink-secondary);
  cursor: pointer;
  transition: all 0.15s ease;
  /* A long city name must never push the header around. */
  max-width: 260px;
  min-width: 0;
}
.location-btn:hover {
  background: var(--bg-page);
  border-color: var(--border-card);
  color: var(--ink);
}
.location-btn .location-name {
  font-weight: 600;
  min-width: 0;
  max-width: 180px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.location-btn .fa-solid,
.location-btn .nav-arrow {
  flex-shrink: 0;
}

.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--border-card);
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  font-size: 1.1rem;
  color: var(--ink);
  cursor: pointer;
  align-items: center;
  justify-content: center;
}
.nav-toggle .nav-toggle-open { display: inline-flex; }
.nav-toggle .nav-toggle-close { display: none; }
.nav-toggle[aria-expanded="true"] .nav-toggle-open { display: none; }
.nav-toggle[aria-expanded="true"] .nav-toggle-close { display: inline-flex; }

/* Location Modal */
.modal-dialog {
  padding: 0;
  border: none;
  border-radius: var(--radius-lg);
  box-shadow: 0 25px 50px -12px rgba(15, 23, 42, 0.35);
  max-width: 520px;
  width: 90vw;
  background: #ffffff;
}
.modal-dialog::backdrop {
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(4px);
}
.modal-content {
  padding: 24px;
}
.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}
.modal-header h3 {
  margin: 0;
  font-size: 1.25rem;
  display: flex;
  align-items: center;
  gap: 8px;
}
.modal-close {
  background: transparent;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--ink-light);
  line-height: 1;
}
.modal-close:hover { color: var(--ink); }
.modal-input-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  margin-bottom: 20px;
  background: var(--bg-page);
}
.modal-input-wrap i { color: var(--ink-light); }
.modal-input-wrap input {
  flex: 1;
  border: none;
  background: transparent;
  font: inherit;
  outline: none;
}
.modal-label {
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--ink-light);
  margin-bottom: 12px;
}
.modal-cities-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 8px;
}
.modal-city-chip {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  background: var(--bg-page);
  color: var(--ink-secondary);
  font-size: 0.85rem;
  font-weight: 500;
  border: 1px solid var(--border-card);
}
.modal-city-chip:hover, .modal-city-chip.active {
  background: var(--primary-light);
  border-color: var(--primary-border);
  color: var(--primary);
  font-weight: 600;
}

/* ==========================================================================
   Hero Section with Dynamic Animated Background Slideshow
   ========================================================================== */
.hero-slideshow-container {
  position: relative;
  overflow: hidden;
  min-height: 480px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #0f172a;
}

.hero-slides-wrapper {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.hero-slide {
  position: absolute;
  inset: -10px; /* Slight bleed for ken burns zoom */
  background-size: cover;
  background-position: center center;
  opacity: 0;
  transform: scale(1);
  transition: opacity 1.5s cubic-bezier(0.4, 0, 0.2, 1), transform 7s ease-out;
  will-change: opacity, transform;
}

.hero-slide.is-active {
  opacity: 1;
  transform: scale(1.06);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(
    180deg,
    rgba(15, 23, 42, 0.5) 0%,
    rgba(15, 23, 42, 0.65) 50%,
    rgba(15, 23, 42, 0.78) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 3;
  text-align: center;
  color: #ffffff;
  padding: 60px 16px;
  max-width: 960px;
}

.hero-title {
  color: #ffffff;
  font-size: clamp(2.4rem, 5.2vw, 3.6rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 12px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
}

.hero-subtitle {
  color: rgba(255, 255, 255, 0.92);
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  font-weight: 400;
  max-width: 680px;
  margin: 0 auto 36px;
  line-height: 1.5;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
}

/* ==========================================================================
   Floating Pill Search Bar
   ========================================================================== */
.hero-search-bar-wrap {
  max-width: 920px;
  margin: 0 auto;
}

.search-form {
  background: #ffffff;
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-floating);
  display: flex;
  align-items: center;
  padding: 6px 8px 6px 20px;
  border: 1px solid rgba(255, 255, 255, 0.6);
  position: relative;
}

.search-form .field {
  display: flex;
  align-items: center;
  min-width: 0;
  position: relative;
}

.search-form .field-grow {
  flex: 2.2 1 200px;
}

.search-form .field-category {
  flex: 1.4 1 150px;
}

.search-form .field-date {
  flex: 1.3 1 140px;
}

.search-form .field-distance {
  flex: 1.1 1 120px;
}

.search-divider {
  width: 1px;
  height: 30px;
  background: var(--border-card);
  margin: 0 8px;
  flex-shrink: 0;
}

.input-with-icon {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
}

.field-icon {
  color: var(--primary);
  font-size: 0.95rem;
  flex-shrink: 0;
}

.search-form input,
.search-form select {
  width: 100%;
  border: none;
  background: transparent;
  font: inherit;
  font-size: 0.92rem;
  color: var(--ink);
  outline: none;
  padding: 10px 4px;
}

.search-form input::placeholder {
  color: var(--ink-muted);
  font-size: 0.92rem;
}

.select-wrap {
  position: relative;
}

.select-wrap select {
  appearance: none;
  cursor: pointer;
  padding-right: 22px;
}

.select-chevron {
  position: absolute;
  right: 4px;
  font-size: 0.72rem;
  color: var(--ink-muted);
  pointer-events: none;
}

.field-btn {
  margin-left: 8px;
  flex-shrink: 0;
}

.search-submit-btn {
  background: var(--primary);
  color: #ffffff;
  border: none;
  border-radius: var(--radius-pill);
  padding: 13px 30px;
  font: inherit;
  font-size: 0.96rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  transition: all 0.15s ease;
  box-shadow: 0 4px 14px rgba(29, 99, 237, 0.4);
}

.search-submit-btn:hover {
  background: var(--primary-hover);
  box-shadow: 0 6px 18px rgba(29, 99, 237, 0.5);
  transform: translateY(-1px);
}

/* Autocomplete list dropdown */
.autocomplete { position: relative; }
.autocomplete-list {
  position: absolute;
  top: calc(100% + 14px);
  left: -12px;
  right: -12px;
  background: #ffffff;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-card);
  box-shadow: 0 20px 40px -10px rgba(15, 23, 42, 0.25);
  padding: 8px;
  list-style: none;
  margin: 0;
  max-height: 280px;
  overflow-y: auto;
  z-index: 120;
}
.autocomplete-list[hidden] { display: none; }
.autocomplete-option {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background 0.1s ease;
}
.autocomplete-option[aria-selected="true"],
.autocomplete-option:hover {
  background: var(--primary-light);
}
.autocomplete-icon {
  color: var(--primary);
  font-size: 0.9rem;
}
.autocomplete-text-wrap {
  display: flex;
  flex-direction: column;
}
.autocomplete-option__title {
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--ink);
}
.autocomplete-option__detail {
  font-size: 0.76rem;
  color: var(--ink-muted);
}
.autocomplete-empty {
  padding: 12px;
  color: var(--ink-muted);
  font-size: 0.88rem;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* ==========================================================================
   Pastel Circular Category Navigation Row
   ========================================================================== */
.categories-bar-section {
  background: #ffffff;
  border-bottom: 1px solid var(--border-light);
  padding: 32px 0 28px;
}

.category-circles-row {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: clamp(16px, 3.2vw, 36px);
}

.category-circle-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  transition: transform 0.18s ease;
}

.category-circle-item:hover {
  transform: translateY(-4px);
}

.circle-icon {
  width: 62px;
  height: 62px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 8px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.category-circle-item:hover .circle-icon {
  box-shadow: 0 8px 18px -4px rgba(0, 0, 0, 0.12);
}

.circle-label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--ink-secondary);
  text-align: center;
}

/* Category Circle Pastel Themes */
.circle-pink { background: #ffe4e6; color: #e11d48; }
.circle-green { background: #dcfce7; color: #16a34a; }
.circle-purple { background: #f3e8ff; color: #9333ea; }
.circle-amber { background: #fef3c7; color: #d97706; }
.circle-red { background: #fee2e2; color: #dc2626; }
.circle-cyan { background: #cffafe; color: #0891b2; }
.circle-blue { background: #dbeafe; color: #2563eb; }
.circle-lavender { background: #ede9fe; color: #7c3aed; }
.circle-gray { background: #f1f5f9; color: #64748b; }

/* ==========================================================================
   Sections & Section Headers
   ========================================================================== */
.section {
  padding: 48px 0 64px;
}

.section-header-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 24px;
  flex-wrap: wrap;
  gap: 12px;
}

.section-title {
  font-size: 1.55rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin: 0;
}

.section-subtitle {
  color: var(--ink-muted);
  font-size: 0.92rem;
  margin: 4px 0 0;
}

.view-all-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--primary);
  font-weight: 700;
  font-size: 0.92rem;
  transition: gap 0.15s ease;
}
.view-all-link:hover {
  gap: 9px;
}
.view-all-link i {
  font-size: 0.75rem;
}

/* ==========================================================================
   Event Cards Grid
   ========================================================================== */
.event-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 24px;
}

.event-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
}

.event-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

.event-card-media-wrap {
  position: relative;
  aspect-ratio: 16 / 9;
  background: var(--bg-page);
  overflow: hidden;
}

.event-card-media {
  display: block;
  width: 100%;
  height: 100%;
}

.event-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.event-card:hover .event-card-media img {
  transform: scale(1.03);
}

.image-fallback {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
  color: var(--ink-muted);
}
.fallback-icon {
  font-size: 1.8rem;
  color: var(--primary);
}

/* Favorite Heart Button Overlaid on Card Image */
.event-card-fav-btn {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(15, 23, 42, 0.35);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #ffffff;
  font-size: 1.05rem;
  transition: all 0.15s ease;
  z-index: 5;
}

.event-card-fav-btn:hover {
  transform: scale(1.1);
  background: rgba(15, 23, 42, 0.6);
}

.event-card-fav-btn .fav-marked { display: none; }
.event-card-fav-btn .fav-unmarked { display: block; }

.event-card-fav-btn.is-favorited {
  background: #ffffff;
  color: var(--danger);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}
.event-card-fav-btn.is-favorited .fav-unmarked { display: none; }
.event-card-fav-btn.is-favorited .fav-marked { display: block; }

/* Event Card Body */
.event-card-body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}

.event-card-category {
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.badge-pink, .badge-violet { color: #db2777; }
.badge-green { color: #16a34a; }
.badge-purple { color: #9333ea; }
.badge-orange, .badge-amber { color: #d97706; }
.badge-red { color: #dc2626; }
.badge-teal, .badge-cyan { color: #0891b2; }
.badge-blue { color: #2563eb; }
.badge-gray, .badge-slate { color: #64748b; }

.event-card-title {
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.35;
  margin: 2px 0 6px;
}
.event-card-title a {
  color: var(--ink);
}
.event-card-title a:hover {
  color: var(--primary);
}

.event-card-meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: auto;
  padding-top: 6px;
}

.event-card-meta p {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 0.85rem;
  color: var(--ink-secondary);
}

.event-card-meta i {
  width: 14px;
  text-align: center;
  font-size: 0.82rem;
  color: var(--ink-light);
}

.meta-venue {
  color: var(--ink-muted) !important;
}

.meta-distance {
  color: var(--ink-muted) !important;
  font-weight: 500;
}

/* ==========================================================================
   Value Props Section (4 Columns Highlights)
   ========================================================================== */
.value-props-section {
  background: var(--bg-page);
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
  padding: 56px 0;
  margin-top: 24px;
}

.value-props-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 32px;
}

.value-prop-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.value-prop-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: var(--primary-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  margin-bottom: 14px;
}

.value-prop-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 6px;
}

.value-prop-card p {
  font-size: 0.88rem;
  color: var(--ink-muted);
  line-height: 1.5;
  margin: 0;
}

/* ==========================================================================
   How It Works
   ========================================================================== */
.how-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.how-step {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  padding: 26px 26px 28px;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.how-step::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), #60a5fa);
}

.how-step:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

.how-step-number {
  position: absolute;
  top: 16px;
  right: 22px;
  font-size: 2.5rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--primary-border);
}

.how-step-icon {
  width: 46px;
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  background: var(--primary-light);
  color: var(--primary);
  font-size: 1.2rem;
}

.how-step h3 {
  margin: 4px 0 0;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--ink);
}

.how-step p {
  margin: 0;
  font-size: 0.92rem;
  color: var(--ink-muted);
  line-height: 1.6;
  max-width: 44ch;
}

@media (max-width: 600px) {
  .how-step { padding: 22px 20px 24px; }
  .how-step-number { font-size: 2.1rem; top: 14px; right: 18px; }
}

/* ==========================================================================
   City Chips
   ========================================================================== */
.chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.chip-list a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border: 1px solid var(--border-card);
  border-radius: var(--radius-pill);
  background: #ffffff;
  color: var(--ink-secondary);
  font-size: 0.88rem;
  font-weight: 500;
  transition: all 0.15s ease;
}

.chip-list a:hover {
  border-color: var(--primary);
  background: var(--primary-light);
  color: var(--primary);
}

.chip-icon {
  font-size: 0.78rem;
  color: var(--primary);
}

/* ==========================================================================
   Listing Page
   ========================================================================== */
.eyebrow-light {
  color: #93c5fd;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.75rem;
  font-weight: 700;
  margin-bottom: 6px;
}

/* Category/city hero reuses the home hero slideshow; add listing-only bits */
.listing-hero .hero-content {
  padding-top: 44px;
}

.listing-hero .breadcrumbs ol {
  justify-content: center;
}

.listing-hero .eyebrow-light {
  margin-bottom: 4px;
}

.listing-hero .hero-subtitle {
  margin-bottom: 32px;
}

.listing-results-section {
  padding-top: 36px;
}

.results-header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 24px;
}

.results-count-title {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  row-gap: 8px;
  gap: 12px;
  min-width: 0;
}

.results-count-title h2 {
  font-size: 1.25rem;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}
.results-count-title h2 i {
  color: var(--primary);
  font-size: 1.05rem;
  flex-shrink: 0;
}

.active-filter-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: var(--primary-light);
  color: var(--primary);
  border: 1px solid var(--primary-border);
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  font-size: 0.82rem;
  font-weight: 600;
  /* Pill keeps one line: the row wraps instead of squeezing the label. */
  white-space: nowrap;
  flex-shrink: 0;
}

/* Editorial & FAQ */
.editorial-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  padding: clamp(24px, 4vw, 44px);
  margin-top: 0;
}

.editorial-header {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  padding-bottom: 24px;
  margin-bottom: 28px;
  border-bottom: 1px solid var(--border-card);
}

.editorial-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--primary-light);
  color: var(--primary);
  border: 1px solid var(--primary-border);
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.editorial-title {
  margin: 0;
  font-size: clamp(1.35rem, 2.6vw, 1.9rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.25;
  color: var(--ink);
}

.editorial-lede {
  margin: 0;
  max-width: 76ch;
  color: var(--ink-muted);
  font-size: 1rem;
  line-height: 1.65;
}

.editorial-body {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}

.editorial-block {
  background: var(--bg-page);
  border: 1px solid var(--border-light);
  border-left: 3px solid var(--primary);
  border-radius: var(--radius-md);
  padding: 20px 22px;
}

.editorial-block h3 {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 10px;
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.35;
  color: var(--ink);
}

.editorial-block-index {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 32px;
  height: 24px;
  padding: 0 8px;
  background: var(--primary-light);
  color: var(--primary);
  border: 1px solid var(--primary-border);
  border-radius: var(--radius-pill);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.editorial-block p {
  margin: 0;
  color: var(--ink-secondary);
  font-size: 0.95rem;
  line-height: 1.7;
}

.faq-container {
  margin-top: 32px;
  border-top: 1px solid var(--border-card);
  padding-top: 26px;
}

.faq-title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  font-size: 1.12rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.faq-title i {
  color: var(--primary);
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 18px;
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.faq-item:hover {
  border-color: var(--primary-border);
}

.faq-item[open] {
  border-color: var(--primary-border);
  box-shadow: var(--shadow-sm);
}

.faq-item summary {
  padding: 15px 18px;
  font-weight: 600;
  font-size: 0.97rem;
  color: var(--ink);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  list-style: none;
}

.faq-item summary:hover {
  color: var(--primary);
}
.faq-item summary::-webkit-details-marker { display: none; }

.faq-chevron {
  flex: 0 0 auto;
  width: 26px;
  height: 26px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--primary-light);
  color: var(--primary);
  font-size: 0.7rem;
  transition: transform 0.2s ease;
}
.faq-item[open] .faq-chevron { transform: rotate(180deg); }

.faq-answer {
  padding: 0 18px 16px;
  color: var(--ink-secondary);
  font-size: 0.93rem;
  line-height: 1.7;
  max-width: 80ch;
}

.faq-answer p {
  margin: 0;
}

/* ==========================================================================
   Event Details Page
   ========================================================================== */
.event-details-wrapper {
  padding: 24px 0 64px;
  background: var(--bg-page);
}

.event-hero-card {
  background: #ffffff;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-card);
  box-shadow: var(--shadow-card);
  padding: clamp(24px, 4vw, 40px);
  margin: 20px 0 32px;
}

.event-hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 40px;
  align-items: center;
}

/* A long title or link must never widen the column it sits in. */
.event-hero-grid > * {
  min-width: 0;
}

.event-hero-info .event-card-category {
  display: inline-block;
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  background: var(--bg-page);
  border: 1px solid var(--border-card);
}

.event-page-title {
  font-size: clamp(1.8rem, 4vw, 2.7rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
  text-wrap: balance;
  overflow-wrap: break-word;
  margin: 12px 0 22px;
}

.event-quick-meta {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 28px;
}

.quick-meta-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: var(--bg-page);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 12px 14px;
}

.meta-icon-box {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  background: var(--primary-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.05rem;
  flex-shrink: 0;
}

.quick-meta-item strong {
  display: block;
  font-size: 0.85rem;
  color: var(--ink-light);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.quick-meta-item p {
  margin: 2px 0 0;
  font-size: 0.96rem;
  color: var(--ink);
}

.event-action-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 22px;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  font: inherit;
  font-weight: 600;
  font-size: 0.94rem;
  cursor: pointer;
  transition: all 0.15s ease;
}

.button-primary {
  background: var(--primary);
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(29, 99, 237, 0.35);
}
.button-primary:hover {
  background: var(--primary-hover);
  color: #ffffff;
  box-shadow: 0 6px 16px rgba(29, 99, 237, 0.45);
}

.button-ghost {
  background: #ffffff;
  color: var(--ink-secondary);
  border-color: var(--border-card);
}
.button-ghost:hover {
  background: var(--bg-page);
  color: var(--ink);
  border-color: var(--ink-light);
}

.button-small {
  min-height: 38px;
  padding: 0 16px;
  font-size: 0.88rem;
}

.btn-fav-toggle .fav-marked { display: none; }
.btn-fav-toggle .fav-unmarked { display: inline-block; }
.btn-fav-toggle.is-favorited .fav-unmarked { display: none; }
.btn-fav-toggle.is-favorited .fav-marked { display: inline-block; }
.btn-fav-toggle.is-favorited {
  border-color: var(--danger);
  color: var(--danger);
  background: var(--danger-light);
}

.button-ext-icon {
  font-size: 0.72rem;
  opacity: 0.8;
}

.event-main-image {
  margin: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  aspect-ratio: 16 / 10;
  background: var(--bg-page);
}
.event-main-image img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transition: transform 0.35s ease;
}
.event-main-image:hover img {
  transform: scale(1.04);
}

/* Event Content Layout */
.event-content-layout {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 32px;
  margin-bottom: 36px;
}

.event-description-box {
  background: #ffffff;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-card);
  padding: 32px;
}

.prose-content {
  color: var(--ink-secondary);
  font-size: 1rem;
  line-height: 1.7;
}

.details-card {
  background: #ffffff;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-card);
  padding: 24px;
}

.sidebar-title {
  font-size: 1.15rem;
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.sidebar-title i { color: var(--primary); }

.detail-list {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 12px 14px;
  margin: 0;
  font-size: 0.92rem;
}

.detail-list dt {
  color: var(--ink-muted);
  display: flex;
  align-items: center;
  gap: 6px;
}
.detail-list dt i {
  font-size: 0.82rem;
  color: var(--primary);
  width: 14px;
}

.detail-list dd {
  margin: 0;
  color: var(--ink);
  font-weight: 500;
}

.event-nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.event-nav-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: var(--radius-pill);
  background: #ffffff;
  border: 1px solid var(--border-card);
  color: var(--ink-secondary);
  font-size: 0.9rem;
  font-weight: 600;
  transition: all 0.15s ease;
}
.event-nav-chip:hover {
  background: var(--primary-light);
  border-color: var(--primary-border);
  color: var(--primary);
}

/* Nearby events: closest to this venue first, under the explore links */
.nearby-events {
  margin-top: 36px;
  padding-top: 28px;
  border-top: 1px solid var(--border-card);
}

.nearby-events .section-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1.25rem;
}
.nearby-events .section-title i {
  color: var(--primary);
}

.nearby-events .section-subtitle {
  margin: 6px 0 18px;
}

/* ==========================================================================
   Pagination
   ========================================================================== */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 40px;
  flex-wrap: wrap;
}

.page-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-width: 42px;
  min-height: 42px;
  padding: 0 14px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-card);
  background: #ffffff;
  color: var(--ink-secondary);
  font-weight: 600;
  font-size: 0.92rem;
  transition: all 0.15s ease;
}

.page-link:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--primary-light);
}

.page-link.current {
  background: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
}

.page-gap {
  padding: 0 6px;
  color: var(--ink-light);
}

/* ==========================================================================
   Breadcrumbs
   ========================================================================== */
.breadcrumbs-shell {
  padding: 14px 0;
}

.breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
}

.breadcrumbs li {
  display: flex;
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, 0.7);
}

.breadcrumbs li a {
  color: rgba(255, 255, 255, 0.85);
  font-weight: 500;
}
.breadcrumbs li a:hover {
  color: #ffffff;
}

.breadcrumbs li + li::before {
  content: "/";
  color: rgba(255, 255, 255, 0.4);
}

.breadcrumbs [aria-current="page"] {
  color: #ffffff;
  font-weight: 600;
}

.event-details-wrapper .breadcrumbs li,
.event-details-wrapper .breadcrumbs li a {
  color: var(--ink-muted);
}
.event-details-wrapper .breadcrumbs li + li::before {
  color: var(--border-card);
}
.event-details-wrapper .breadcrumbs [aria-current="page"] {
  color: var(--ink);
}

/* ==========================================================================
   Notices & Empty States
   ========================================================================== */
.notice {
  background: var(--bg-page);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  padding: 14px 18px;
  color: var(--ink-secondary);
  display: flex;
  align-items: center;
  gap: 10px;
}
.notice-warn {
  background: #fffbeb;
  border-color: #fde68a;
  color: #92400e;
}
.notice-warn i { color: #d97706; }

.empty-state-page {
  padding: 64px 0 80px;
}

.empty-state-card {
  background: #ffffff;
  border-radius: var(--radius-lg);
  box-shadow: none;
  padding: 48px 24px;
  text-align: center;
  width: 90%;
  margin: 0 auto;
}

.empty-state-badge {
  display: inline-block;
  font-size: 2.2rem;
  font-weight: 900;
  color: var(--primary);
  background: var(--primary-light);
  padding: 6px 20px;
  border-radius: var(--radius-pill);
  margin-bottom: 16px;
}

.empty-icon {
  font-size: 3rem;
  color: var(--ink-light);
  margin-bottom: 16px;
  display: block;
}

.not-found-search-wrap {
  margin: 28px 0 20px;
}

.not-found-quick-links {
  display: flex;
  justify-content: center;
  gap: 12px;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  background: #ffffff;
  border-top: 1px solid var(--border-light);
  padding: 64px 0 32px;
  margin-top: 48px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 48px;
}

.footer-brand-col p {
  color: var(--ink-muted);
  font-size: 0.92rem;
  line-height: 1.6;
  margin: 14px 0 20px;
  max-width: 38ch;
}

.footer-social-links {
  display: flex;
  gap: 12px;
}

.footer-social-links a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--bg-page);
  color: var(--ink-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  border: 1px solid var(--border-card);
  transition: all 0.15s ease;
}

.footer-social-links a:hover {
  background: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
}

.site-footer h2 {
  font-size: 0.96rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.site-footer ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.site-footer li a {
  color: var(--ink-muted);
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.site-footer li a:hover {
  color: var(--primary);
}
.site-footer li a i {
  font-size: 0.8rem;
  color: var(--ink-light);
}

.footer-bottom {
  border-top: 1px solid var(--border-light);
  padding-top: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  color: var(--ink-light);
  font-size: 0.85rem;
}
.footer-bottom p { margin: 0; }
.footer-bottom a { color: var(--ink-muted); }
.footer-bottom a:hover { color: var(--primary); }

/* ==========================================================================
   Share buttons: WhatsApp, Facebook, X, Pinterest, Gmail
   ========================================================================== */
.share-section {
  background: var(--bg-card);
  border-top: 1px solid var(--border-card);
}

.share-section .shell {
  display: flex;
  justify-content: center;
  padding-block: 26px;
}

.share-widget {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.share-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--ink-secondary);
}

.share-links {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.share-link {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  color: #ffffff;
  box-shadow: var(--shadow-sm);
  transition: transform 0.15s ease, filter 0.15s ease;
}

.share-link:hover {
  transform: translateY(-2px);
  filter: brightness(1.08);
}

.share-link:focus-visible {
  outline: 3px solid var(--primary);
  outline-offset: 2px;
}

.share-whatsapp { background: #25d366; }
.share-facebook { background: #1877f2; }
.share-x { background: #0f172a; }
.share-pinterest { background: #e60023; }
.share-gmail { background: #ea4335; }

.event-hero-info .share-widget {
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px dashed var(--border-card);
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */
@media (max-width: 1024px) {
  .primary-nav { gap: 16px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .event-hero-grid { grid-template-columns: 1fr; gap: 24px; }
  /* Single column: the poster leads, the details follow */
  .event-hero-media { order: -1; }
  .event-content-layout { grid-template-columns: 1fr; margin-bottom: 24px; }

  /* Compact edges: breadcrumbs align with the cards, no oversized bottom band */
  .breadcrumbs-shell { padding: 10px 0; }
  .breadcrumbs ol { row-gap: 6px; }
  .breadcrumbs li { min-width: 0; }
  .event-details-wrapper { padding: 16px 0 32px; }
  .event-hero-card { margin: 16px 0 24px; padding: clamp(20px, 4vw, 28px); }
  .site-footer { margin-top: 24px; padding: 40px 0 24px; }
}

@media (max-width: 1024px) {
  .nav-wrap { min-height: 60px; gap: 12px; }
  .nav-toggle { display: inline-flex; }
  .nav-tools { gap: 8px; }

  .primary-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #ffffff;
    flex-direction: column;
    align-items: flex-start;
    padding: 16px 20px 20px;
    border-bottom: 1px solid var(--border-card);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
    gap: 10px;
    max-height: calc(100vh - 60px);
    max-height: calc(100dvh - 60px);
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
  }
  .primary-nav[data-open="true"] { display: flex; }
  .nav-item.active::after { display: none; }
  .nav-item { width: 100%; padding: 8px 0; }
  .nav-dropdown { width: 100%; }
  .nav-dropdown-btn { width: 100%; justify-content: space-between; padding: 8px 0; }
  .nav-dropdown-menu {
    position: static;
    transform: none;
    box-shadow: none;
    border: none;
    padding: 8px 0 12px 12px;
    min-width: 0;
    grid-template-columns: 1fr;
  }

  /* Search form (mobile/tablet only): compact, modern stacked fields.
     Desktop keeps the original floating pill untouched. */
  .search-form {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    width: 100%;
    max-width: 100%;
    padding: 14px;
    border-radius: var(--radius-lg);
    box-shadow: 0 16px 36px -20px rgba(15, 23, 42, 0.45);
  }
  .search-divider { display: none; }

  .search-form .field {
    flex: 0 0 auto;
    width: 100%;
    max-width: 100%;
    min-height: 46px;
    padding: 0 12px;
    background: var(--bg-page);
    border: 1px solid #e2e8f0;
    border-radius: var(--radius-md);
    transition: background 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
  }
  .search-form .field:focus-within {
    background: #ffffff;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.16);
  }

  /* One consistent control size; box-sizing keeps heights exact.
     16px text stops iOS Safari auto-zooming on focus. */
  .search-form input,
  .search-form select {
    -webkit-appearance: none;
    appearance: none;
    box-sizing: border-box;
    width: 100%;
    min-width: 0;
    height: 44px;
    padding: 0;
    font-size: 16px;
    line-height: 1.4;
  }
  .search-form input::placeholder {
    font-size: 16px;
    color: var(--ink-muted);
    opacity: 1;
  }

  /* Icons sit on one baseline, perfectly centered, never shifting layout */
  .search-form .input-with-icon {
    position: relative;
    gap: 0;
    min-width: 0;
  }
  .search-form .field-icon {
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    font-size: 18px;
    pointer-events: none;
  }
  .search-form .input-with-icon input,
  .search-form .input-with-icon select {
    padding-left: 28px;
  }
  .search-form .select-wrap select { padding-right: 26px; }
  .search-form .select-chevron {
    right: 2px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 12px;
    color: var(--ink-muted);
    pointer-events: none;
  }

  /* Native date field: same box as the others, tidy picker icon */
  .search-form input[type="date"] { color: var(--ink); }
  .search-form input[type="date"]::-webkit-calendar-picker-indicator {
    opacity: 0.5;
    cursor: pointer;
    margin: 0;
  }
  .search-form input[type="date"]:focus::-webkit-calendar-picker-indicator { opacity: 0.85; }

  .autocomplete-list {
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    max-height: 240px;
  }

  .field-btn {
    margin-left: 0;
    margin-top: 0;
    width: 100%;
  }
  .search-submit-btn {
    width: 100%;
    min-height: 48px;
    padding: 12px 20px;
    justify-content: center;
    gap: 10px;
    font-size: 16px;
    font-weight: 700;
    border-radius: var(--radius-md);
    background: #2563eb;
    box-shadow: 0 8px 18px -10px rgba(37, 99, 235, 0.75);
  }
  .search-submit-btn i { font-size: 16px; }
  .search-submit-btn:hover {
    background: #1d4ed8;
    box-shadow: 0 10px 22px -10px rgba(37, 99, 235, 0.8);
    transform: none;
  }
  .search-submit-btn:active {
    background: #1e40af;
    transform: translateY(1px);
    box-shadow: none;
  }
  .search-submit-btn:focus-visible {
    outline: 3px solid rgba(37, 99, 235, 0.45);
    outline-offset: 2px;
  }

  .category-circles-row {
    gap: 16px;
  }
  .circle-icon {
    width: 52px;
    height: 52px;
    font-size: 1.2rem;
  }
  .circle-label {
    font-size: 0.76rem;
  }
}

@media (max-width: 600px) {
  .shell { width: min(100% - 32px, var(--shell-width)); }
  .hero-slideshow-container { min-height: 440px; }
  .hero-title { font-size: 2.1rem; }
  .footer-grid { grid-template-columns: 1fr; }
  .event-grid { grid-template-columns: 1fr; }
  .location-btn .location-name { display: none; }

  /* Header: keep logo, icons and menu button inside the shell on small screens */
  .nav-wrap { gap: 8px; }
  .brand { flex-shrink: 1; min-width: 0; }
  .brand-text {
    font-size: 1.1rem;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .nav-tools { gap: 4px; }
  .location-btn { padding: 6px 8px; }
  .location-btn .nav-arrow { display: none; }
  .nav-toggle { width: 38px; height: 38px; }

  /* Search form: full-width fields, 12px spacing, no horizontal overflow */
  .search-form { padding: 12px; gap: 12px; }

  /* Results header: title gets its own line, badges sit together underneath */
  .results-count-title { width: 100%; }
  .results-count-title h2 { width: 100%; font-size: 1.12rem; }
  .results-count-title .active-filter-badge { font-size: 0.78rem; padding: 4px 9px; }

  /* Location modal: input and Apply button stack for easy tapping */
  .modal-dialog { width: 92vw; }
  .modal-content { padding: 20px 16px; }
  .modal-search-form .modal-input-wrap { flex-wrap: wrap; padding: 10px 12px; }
  .modal-search-form .modal-input-wrap input { font-size: 16px; min-width: 0; }
  .modal-search-form .modal-input-wrap .button {
    width: 100%;
    margin-top: 6px;
    min-height: 44px;
  }

  /* Share buttons: wrap onto their own row, stay tap friendly */
  .share-section .shell { justify-content: flex-start; padding-block: 18px; }
  .share-widget { width: 100%; gap: 10px; }
  .share-label { width: 100%; }
  .share-link { width: 42px; height: 42px; font-size: 1.05rem; }

  /* Event page: tighter edges, less dead space above and below the content */
  .breadcrumbs-shell { padding: 8px 0; }
  .event-details-wrapper { padding: 12px 0 24px; }
  .event-hero-card { margin: 12px 0 18px; padding: 18px 16px; }
  .event-description-box { padding: 20px 16px; }
  .details-card { padding: 18px 16px; }
  .event-nav-links { margin-top: 16px; }
  .site-footer { margin-top: 16px; padding: 32px 0 20px; }

  /* Hero card on phones: poster on top, one action button per row */
  .event-main-image { aspect-ratio: 16 / 9; }
  .quick-meta-item { padding: 10px 12px; }
  .event-action-buttons { gap: 10px; }
  .event-action-buttons .button { flex: 1 1 100%; }

  /* Nearby events: tighter block on phones */
  .nearby-events { margin-top: 28px; padding-top: 22px; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-slide {
    transition: opacity 0.5s ease;
    transform: none !important;
  }
  .event-main-image img {
    transition: none;
  }
  .event-main-image:hover img {
    transform: none;
  }
}
/* ===========================================================================
   Informational pages: About, Privacy, and Terms
   ========================================================================== */
.info-page {
  padding: 24px 0 64px;
  background: var(--bg-page);
}

.info-page .breadcrumbs li,
.info-page .breadcrumbs li a {
  color: var(--ink-muted);
}
.info-page .breadcrumbs li + li::before { color: var(--border-card); }
.info-page .breadcrumbs [aria-current="page"] { color: var(--ink); }

.info-page-hero {
  max-width: 780px;
  margin: 20px 0 32px;
}
.info-page-hero .eyebrow { margin-bottom: 10px; }
.info-page-hero h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  margin-bottom: 14px;
}
.info-page-hero > p:last-child {
  color: var(--ink-secondary);
  font-size: clamp(1rem, 2vw, 1.15rem);
  line-height: 1.7;
  margin: 0;
}

.info-page-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 290px;
  align-items: start;
  gap: 28px;
}
.info-page-card,
.info-page-aside-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
}
.info-page-card { padding: clamp(24px, 4vw, 42px); }
.info-page-section + .info-page-section {
  margin-top: 32px;
  padding-top: 32px;
  border-top: 1px solid var(--border-light);
}
.info-page-section h2 {
  font-size: clamp(1.22rem, 2vw, 1.5rem);
  margin-bottom: 12px;
}
.info-page-section p {
  max-width: 76ch;
  color: var(--ink-secondary);
  line-height: 1.75;
}
.info-page-section p:last-child { margin-bottom: 0; }
.info-page-list {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}
.info-page-list li {
  position: relative;
  padding-left: 24px;
  color: var(--ink-secondary);
}
.info-page-list li::before {
  content: "";
  position: absolute;
  top: 0.62em;
  left: 2px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--primary);
}
.info-page-aside { position: sticky; top: 92px; }
.info-page-aside-card { padding: 22px; }
.info-page-aside-card h2 {
  font-size: 1rem;
  margin-bottom: 14px;
}
.info-page-aside-card ul {
  display: grid;
  gap: 4px;
}
.info-page-aside-card a {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  padding: 9px 0;
  color: var(--ink-secondary);
  font-size: 0.92rem;
  font-weight: 600;
}
.info-page-aside-card a:hover { color: var(--primary); }
.info-page-aside-card i {
  color: var(--primary);
  font-size: 0.74rem;
  margin-top: 0.37em;
}

@media (max-width: 1024px) {
  .info-page-grid { grid-template-columns: 1fr; }
  .info-page-aside { position: static; }
}

@media (max-width: 600px) {
  .info-page { padding: 12px 0 28px; }
  .info-page-hero { margin: 12px 0 22px; }
  .info-page-card { padding: 22px 18px; }
  .info-page-section + .info-page-section { margin-top: 24px; padding-top: 24px; }
}
