/* ============================================================
   index.css — Styles specific to the home/index page.
   Requires base.css (loaded by base.html) first.
   ============================================================ */

/* ---- Welcome / Hero ---- */

.welcome {
  min-height: calc(100vh - 86px);
  display: flex;
  flex-direction: column;
}

.hero {
  display: grid;
  grid-template-columns: 1.05fr 1.35fr;
  gap: 24px;
  align-items: stretch;
  padding: 0 0 0 56px;
  flex: 1;
}

.hero-copy {
  background: #ffffff;
  padding: 40px 20px 40px 0;
}

.hero-copy h1 {
  font-size: clamp(40px, 4vw, 58px);
  line-height: 1.05;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.hero-copy h1 span {
  color: var(--purple);
  font-style: italic;
}

.hero-copy p {
  margin-top: 16px;
  color: var(--ink-soft);
  font-size: 16px;
  line-height: 1.6;
  max-width: 420px;
}

.hero-copy a {
  font-family: inherit;
  border-radius: 10px;
  padding: 12px 18px;
  font-weight: 600;
  cursor: pointer;
}

.hero-actions {
  margin-top: 22px;
  display: flex;
  gap: 16px;
}

.hero-media {
  display: flex;
  align-items: stretch;
  justify-content: center;
}

.media-card {
  width: 100%;
  height: 100%;
  min-height: 420px;
  border-radius: 0;
  overflow: hidden;
  position: relative;
  box-shadow: var(--shadow);
}

.media-card::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 130px;
  background: linear-gradient(180deg, rgba(90, 44, 160, 0) 0%, rgba(90, 44, 160, 0.36) 62%, #5a2ca0 100%);
  pointer-events: none;
  z-index: 2;
}

.media-photo {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 20% 20%, rgba(86, 234, 255, 0.35), transparent 50%),
    radial-gradient(circle at 70% 30%, rgba(255, 88, 166, 0.45), transparent 55%),
    linear-gradient(120deg, #0f0e3c, #241b7a 50%, #4d2fb7);
  filter: saturate(1.2);
}

.media-photo::after {
  /* HEADER HERO SECTION ACCENT */
  content: "";
  position: absolute;
  inset: 0;
  /* background-image: url("https://images.unsplash.com/photo-1470229722913-7c0e2dbbafd3?auto=format&fit=crop&w=1200&q=80"); */
  /* background-image: url("https://imagedelivery.net/PDJEe_CLFqeOnI-JI4vrSw/450f7d57-0590-4422-3bc0-a590ae813000/header"); */
  background-image: var(--hero-image, url("https://imagedelivery.net/PDJEe_CLFqeOnI-JI4vrSw/450f7d57-0590-4422-3bc0-a590ae813000/header"));
  background-size: cover;
  background-position: center;
  opacity: 0.78;
  mix-blend-mode: screen;
}

.media-overlay {
  position: absolute;
  bottom: 20px;
  right: 24px;
  text-align: right;
  color: #ffffff;
  text-decoration: none;
  z-index: 3;
}

.media-overlay .eyebrow {
  font-size: 12px;
  letter-spacing: 0.14em;
  opacity: 0.8;
  margin-bottom: 8px;
}

.media-overlay h3 {
  font-size: 18px;
  font-weight: 700;
}

.media-overlay .meta {
  font-size: 12px;
  opacity: 0.75;
}

/* ---- Newsletter ---- */

.newsletter {
  display: none;
  margin-top: auto;
  background: linear-gradient(180deg, #af74e6, #8a4dcd);
  color: #ffffff;
  padding: 36px 56px 46px;
}

.newsletter-inner {
  text-align: center;
  max-width: 720px;
  margin: 0 auto;
}

.newsletter h2 {
  font-size: clamp(26px, 3vw, 36px);
  font-weight: 700;
  margin-bottom: 10px;
}

.newsletter p {
  font-size: 14px;
  line-height: 1.6;
  opacity: 0.9;
}

.newsletter-form {
  margin-top: 20px;
  display: inline-flex;
  gap: 12px;
  background: rgba(255, 255, 255, 0.2);
  padding: 10px;
  border-radius: 14px;
}

.newsletter-form input {
  border: none;
  background: transparent;
  outline: none;
  color: #ffffff;
  min-width: 240px;
  font-size: 14px;
}

.newsletter-form input::placeholder {
  color: rgba(255, 255, 255, 0.7);
}

.newsletter-form button {
  background: #ffffff;
  color: #6e35b7;
  border-radius: 10px;
  padding: 10px 18px;
  font-weight: 700;
}

.fineprint {
  display: block;
  margin-top: 12px;
  font-size: 11px;
  letter-spacing: 0.08em;
  opacity: 0.75;
}

/* ---- Advertisement carousel ---- */

.ad-carousel {
  position: relative;
  margin-top: -1px;
  background: linear-gradient(180deg, #5a2ca0 0%, #803eca 58%, #4b30b5 100%);
  color: #ffffff;
  padding: 24px 56px 30px;
  overflow: hidden;
}

.ad-carousel::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 42px;
  background: linear-gradient(180deg, rgba(90, 44, 160, 0.96) 0%, rgba(128, 62, 202, 0) 100%);
  pointer-events: none;
}

.ad-carousel-track {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  align-items: stretch;
  position: relative;
  z-index: 1;
}

.ad-slide {
  display: none;
  grid-template-rows: auto 1fr;
  gap: 0;
  align-items: stretch;
  min-width: 0;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  transition: opacity 220ms ease, transform 220ms ease;
}

.ad-slide.is-active,
.ad-slide.is-visible {
  display: grid;
}

.ad-slide.is-active,
.ad-slide.is-visible {
  pointer-events: auto;
  transform: translateX(0);
}

.ad-slide-media {
  display: block;
  min-height: 132px;
  height: 132px;
  overflow: hidden;
  background: #4b30b5;
  border-radius: 8px 8px 0 0;
}

.ad-slide-media img {
  width: 100%;
  height: 100%;
  min-height: 132px;
  object-fit: cover;
  display: block;
}

.ad-slide-copy {
  align-self: stretch;
  display: flex;
  flex-direction: column;
  max-width: none;
  padding: 16px;
}

.ad-slide-copy .eyebrow {
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #f2e9fb;
  margin-bottom: 6px;
}

.ad-slide-copy h2 {
  font-size: 18px;
  line-height: 1.18;
  font-weight: 800;
  margin-bottom: 8px;
  color: #ffffff;
}

.ad-slide-copy p {
  color: rgba(255, 255, 255, 0.82);
  font-size: 12px;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.ad-slide-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: auto;
  padding-top: 14px;
}

.ad-slide-footer span {
  color: #f2e9fb;
  font-size: 12px;
  font-weight: 700;
}

.ad-slide-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0 12px;
  background: #ffffff;
  color: #5a2ca0;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 12px 26px rgba(28, 10, 48, 0.2);
}

.ad-carousel-controls {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 14px;
  margin-top: 18px;
  position: relative;
  z-index: 1;
}

.ad-carousel-controls > button {
  width: 38px;
  height: 38px;
  padding: 0;
  display: inline-grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.16);
  color: #ffffff;
  border-radius: 8px;
  font-size: 28px;
  line-height: 1;
  box-shadow: 0 10px 24px rgba(28, 10, 48, 0.18);
}

.ad-carousel-dots {
  display: flex;
  gap: 8px;
}

.ad-carousel-dots button {
  width: 9px;
  height: 9px;
  padding: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.38);
}

.ad-carousel-dots button.is-active {
  width: 24px;
  background: #ffffff;
}

/* ---- App compact advertisements ---- */

.app-ad-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 22px;
}

.app-ad-card {
  display: grid;
  grid-template-columns: 84px 1fr;
  height: 96px;
  background: #ffffff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 16px 30px rgba(34, 25, 60, 0.08);
}

.app-ad-media {
  display: block;
  height: 96px;
  background: #f2e9fb;
}

.app-ad-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.app-ad-body {
  padding: 10px 12px;
  display: grid;
  gap: 4px;
  align-content: start;
}

.app-ad-body h3 {
  font-size: 13px;
  line-height: 1.25;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.app-ad-body p {
  display: none;
  color: #60606f;
  font-size: 11px;
  line-height: 1.35;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.app-ad-cta {
  width: fit-content;
  margin-top: 0;
  padding: 4px 10px;
  font-size: 11px;
  line-height: 1.1;
}

/* ---- Events section ---- */

.no-events {
  height: 80vh;
}

.events {
  padding: 96px 56px 60px;
  background: #f6f5f9;
  position: relative;
}

.events-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  margin-bottom: 22px;
}

.events-header h2 {
  font-size: 22px;
  font-weight: 700;
}

.events-header p {
  font-size: 13px;
  color: #7a7488;
}

.events-tabs {
  display: flex;
  gap: 12px;
}

.events-header-text {
  position: absolute;
  box-shadow: 0 0 36px 46px #f6f5f9;
  background: #f6f5f9;
}

.events-tabs-overflow {
  width: 100%;
  height: 100px;
  overflow-x: auto;
  overflow-y: hidden;
  margin-left: 378px;
  padding-left: 127px;
  white-space: nowrap; 
  display: ruby;
  -ms-overflow-style: none;
  scrollbar-width: none;
  padding-top: 25px;
  scroll-behavior: smooth;
  overscroll-behavior-inline: contain;
}

.tab {
  padding: 9px 16px;
  font-size: 12px;
  border-radius: 20px;
}

.current-location-tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.filters-tab {
  display: none;
}

.events-grid {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 24px;
}

.events-fab {
  display: none;
}

.filters-fab {
  display: none;
}

.scroll-top-fab {
  display: none;
}

.filters-fab img {
  display: block;
}

/* ---- Filters sidebar ---- */

@media (min-width: 981px) {
  .filters {
    display: block;
    position: sticky;
    left: auto;
    right: auto;
    bottom: auto;
    transform: none;
    width: auto;
  }

  .events-fab {
    display: none;
  }

  .filters-fab {
    display: none;
  }
}

.filters {
  position: sticky;
  top: var(--header-offset);
  align-self: start;
}

.filters-card {
  background: #ffffff;
  border-radius: 20px;
  padding: 18px 16px;
  box-shadow: 0 18px 40px rgba(43, 31, 68, 0.08);
}

.filters-title {
  font-size: 16px;
  font-weight: 700;
  color: #6b3bb5;
  margin-bottom: 12px;
}

.filter-block {
  padding: 14px 0;
  border-top: 1px solid #efeaf6;
}

.filter-head {
  display: inline-flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 13px;
  color: #4d4660;
  margin-bottom: 10px;
  background: #f2f0f6;
  border: none;
  padding: 8px 12px;
  border-radius: 12px;
  cursor: pointer;
}

.chev {
  color: #9b93b4;
  transition: transform 0.2s ease;
}

.filter-content {
  display: grid;
  gap: 10px;
  overflow: hidden;
  max-height: 1000px;
  opacity: 1;
  transition: max-height 0.25s ease, opacity 0.25s ease;
}

.filter-block.collapsed .filter-content {
  max-height: 0;
  opacity: 0;
}

.filter-block.collapsed .chev {
  transform: rotate(0deg);
}

.filter-list {
  list-style: none;
  display: grid;
  gap: 8px;
  font-size: 13px;
  color: #7a728f;
  max-height: 160px;
  overflow-y: auto;
  padding-right: 4px;
}

.filter-list li {
  padding: 6px 8px;
  border-radius: 10px;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.filter-list .active {
  background: #efe7fb;
  color: #6b3bb5;
  font-weight: 600;
}

.filter-list::-webkit-scrollbar {
  width: 6px;
}

.filter-list::-webkit-scrollbar-thumb {
  background: rgba(137, 120, 182, 0.35);
  border-radius: 999px;
}

/* ---- Calendar filter ---- */

.calendar-card {
  border: 1px solid #f0ecf6;
  border-radius: 14px;
  padding: 12px;
  font-size: 12px;
  color: #6f6880;
}

.calendar-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
  color: #433b58;
  font-weight: 600;
}

.cal-nav {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 1px solid #e6daf6;
  background: #ffffff;
  color: #6b3bb5;
  display: grid;
  place-items: center;
  font-size: 16px;
  padding: 0;
  cursor: pointer;
}

.calendar-weekdays {
  margin-bottom: 6px;
}

.calendar-selected {
  font-weight: 500;
  color: #8a829e;
}

.filter-selected-category,
.filter-selected-city {
  font-weight: 500;
  color: #8a829e;
}

.filter-selected-category:not(:empty)::before,
.filter-selected-city:not(:empty)::before {
  content: "· ";
}

.calendar-days {
  min-height: 160px;
}

.calendar-day {
  border: none;
  background: transparent;
  color: #6f6880;
  font-size: 12px;
  padding: 6px 0;
  border-radius: 8px;
  cursor: pointer;
}

.calendar-day.is-today {
  color: #6b3bb5;
  font-weight: 600;
}

.calendar-day.is-selected {
  background: #6b3bb5;
  color: #ffffff;
}

.calendar-day.is-outside {
  color: #c4bdd6;
}

.calendar-day.is-disabled {
  color: #c9c3d6;
  cursor: not-allowed;
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
  text-align: center;
}

.calendar-grid span:nth-child(-n + 7) {
  font-weight: 600;
  color: #9a92af;
}

/* ---- Location filter ---- */

.filter-placeholder {
  font-size: 12px;
  color: #8a829e;
  padding: 6px 0 2px;
}

.filter-search {
  border: 1px solid #ece6f5;
  border-radius: 12px;
  padding: 8px 10px;
  font-size: 12px;
  color: #6f6880;
  outline: none;
}

.location-list {
  list-style: none;
  display: grid;
  gap: 8px;
  font-size: 13px;
  color: #7a728f;
  max-height: 33vh;
  overflow-y: auto;
  padding-right: 4px;
}

.location-list li {
  padding: 6px 8px;
  border-radius: 10px;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.location-list li.active {
  background: #efe7fb;
  color: #6b3bb5;
  font-weight: 600;
}

.location-list::-webkit-scrollbar {
  width: 6px;
}

.location-list::-webkit-scrollbar-thumb {
  background: rgba(137, 120, 182, 0.35);
  border-radius: 999px;
}

/* ---- Price filter ---- */

.price-row {
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

.price-row input {
  width: 100%;
  border: 1px solid #ece6f5;
  border-radius: 12px;
  padding: 6px 8px;
  font-size: 12px;
  color: #6f6880;
}

.price-slider {
  margin: 12px 0;
  height: 4px;
  background: #efe7fb;
  border-radius: 999px;
  position: relative;
}

.price-range {
  position: absolute;
  left: var(--min, 0%);
  right: calc(100% - var(--max, 100%));
  height: 100%;
  background: #6b3bb5;
  border-radius: inherit;
}

.price-slider input[type="range"] {
  position: absolute;
  inset: -6px 0;
  width: 100%;
  background: none;
  pointer-events: auto;
  -webkit-appearance: none;
  appearance: none;
  z-index: 2;
}

.price-slider input[type="range"]::-webkit-slider-runnable-track {
  height: 4px;
  background: transparent;
}

.price-slider input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #ffffff;
  border: 2px solid #6b3bb5;
  margin-top: -5px;
}

.price-slider input[type="range"]::-moz-range-track {
  height: 4px;
  background: transparent;
}

.price-slider input[type="range"]::-moz-range-thumb {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #ffffff;
  border: 2px solid #6b3bb5;
}

.price-slider .range-min {
  z-index: 3;
}

.price-slider .range-max {
  z-index: 4;
}

.filters-actions {
  display: flex;
  gap: 10px;
  margin-top: 8px;
  justify-content: center;
}

.filters-actions .ghost {
  border-radius: 999px;
  padding: 8px 16px;
  font-size: 12px;
  background: #ffffff;
}

.filters-actions .primary {
  border-radius: 999px;
  padding: 8px 16px;
  font-size: 12px;
}

/* ---- Event cards ---- */

.events-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.events-results {
  display: grid;
  gap: 18px;
}

.location-scope {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 16px;
  background: #ffffff;
  border: 1px solid #ebe4f4;
  border-radius: 16px;
  box-shadow: 0 14px 28px rgba(34, 25, 60, 0.06);
}

.location-scope[hidden] {
  display: none;
}

.location-scope-text {
  display: grid;
  gap: 2px;
  color: #4d4660;
}

.location-scope-label {
  color: #8a829e;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.location-scope-text strong {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  width: fit-content;
  color: #2c2438;
  cursor: pointer;
  font-size: 16px;
  text-decoration: underline;
  text-decoration-color: rgba(86, 66, 120, 0.35);
  text-decoration-style: dotted;
  text-underline-offset: 3px;
}

.location-scope-text strong::after {
  content: "";
  width: 14px;
  height: 14px;
  flex: 0 0 14px;
  opacity: 0.7;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 20h9'/%3E%3Cpath d='M16.5 3.5a2.12 2.12 0 0 1 3 3L7 19l-4 1 1-4Z'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 20h9'/%3E%3Cpath d='M16.5 3.5a2.12 2.12 0 0 1 3 3L7 19l-4 1 1-4Z'/%3E%3C/svg%3E") center / contain no-repeat;
}

.location-scope-text strong:hover,
.location-scope-text strong:focus-visible {
  color: #5f3fa3;
  text-decoration-color: currentColor;
  outline: none;
}

.location-scope-text span:last-child {
  color: #6f6880;
  font-size: 12px;
}

.location-scope-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.location-scope-chip,
.location-scope-all {
  border-radius: 999px;
  padding: 8px 12px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.location-scope-chip {
  border: 1px solid #e6daf6;
  background: #ffffff;
  color: #6b3bb5;
}

.location-scope-chip.is-active {
  background: #6b3bb5;
  border-color: #6b3bb5;
  color: #ffffff;
}

.location-scope-all {
  background: #ffffff;
}

/* Shared event section (from URL hash) */

.shared-event-section {
  grid-column: 1 / -1;
}

.shared-event-section h3 {
  font-size: 14px;
  font-weight: 700;
  color: #6b3bb5;
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.shared-event-section .event-card {
  grid-column: 1 / -1;
  grid-template-columns: 200px 1fr;
  background: linear-gradient(135deg, rgba(107, 59, 181, 0.04), rgba(107, 59, 181, 0.02));
  border: 1.5px solid rgba(107, 59, 181, 0.15);
}

.recommended-events-heading {
  grid-column: 1 / -1;
  font-size: 14px;
  font-weight: 700;
  color: #6b3bb5;
  margin-top: 24px;
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.events-day-header {
  grid-column: 1 / -1;
  font-size: 16px;
  font-weight: 700;
  color: #2c2438;
  margin-top: 24px;
  margin-bottom: 14px;
  padding-bottom: 8px;
  border-bottom: 2px solid #e0dce8;
}

.top-events-cta {
  grid-column: 1 / -1;
  display: grid;
  justify-items: center;
  gap: 14px;
  margin-top: 28px;
  padding: 28px 24px;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(107, 59, 181, 0.08), rgba(107, 59, 181, 0.03));
  border: 1px solid rgba(107, 59, 181, 0.14);
  text-align: center;
}

.top-events-cta p {
  max-width: 460px;
  color: #4d4660;
  font-size: 14px;
  line-height: 1.5;
}

.event-card--skeleton {
  cursor: default;
  pointer-events: none;
  box-shadow: 0 16px 30px rgba(34, 25, 60, 0.06);
}

.event-card--skeleton .event-media {
  min-height: 110px;
}

.skeleton-block {
  position: relative;
  overflow: hidden;
  background: #e5e1ec;
}

.skeleton-block::after {
  content: "";
  position: absolute;
  inset: 0;
  transform: translateX(-100%);
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.55), transparent);
  animation: skeleton-sweep 1.35s ease-in-out infinite;
}

.skeleton-tag {
  width: 72px;
  height: 18px;
  border-radius: 10px;
}

.skeleton-action {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: inline-block;
}

.skeleton-line {
  height: 11px;
  border-radius: 999px;
}

.skeleton-line--title {
  width: min(260px, 92%);
  height: 16px;
  margin-top: 2px;
}

.skeleton-line--short {
  width: min(120px, 44%);
}

.skeleton-line--medium {
  width: min(190px, 68%);
}

.skeleton-line--price {
  width: 58px;
}

@keyframes skeleton-sweep {
  100% {
    transform: translateX(100%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .skeleton-block::after {
    animation: none;
  }
}

/* ---- City prompt ---- */

.city-prompt {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: end center;
  padding: 24px;
  background: rgba(24, 18, 36, 0.22);
  opacity: 0;
  pointer-events: none;
  overflow-y: auto;
  transition: opacity 0.2s ease;
  z-index: 20;
}

.city-prompt.is-visible {
  opacity: 1;
  pointer-events: auto;
}

.city-prompt-panel {
  position: relative;
  width: min(520px, 100%);
  max-height: calc(100svh - 48px);
  overflow: visible;
  background: #ffffff;
  border: 1px solid rgba(107, 59, 181, 0.14);
  border-radius: 18px;
  box-shadow: 0 24px 70px rgba(34, 25, 60, 0.24);
  padding: 24px 56px 24px 24px;
}

.city-prompt-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 32px;
  height: 32px;
  padding: 0;
  border: none;
  border-radius: 50%;
  display: inline-grid;
  place-items: center;
  background: #f2f0f6;
  color: #4d4660;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}

.city-prompt-kicker {
  color: #6b3bb5;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.city-prompt h2 {
  margin-top: 8px;
  color: #2c2438;
  font-size: 22px;
  line-height: 1.25;
}

.city-prompt-copy {
  margin-top: 10px;
  color: #6f6880;
  font-size: 13px;
  line-height: 1.55;
}

.city-prompt-form {
  margin-top: 18px;
  display: grid;
  gap: 12px;
}

.city-prompt-label {
  color: #4d4660;
  font-size: 12px;
  font-weight: 700;
}

.city-prompt-field {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: start;
}

.city-prompt-combobox {
  position: relative;
  min-width: 0;
}

.city-prompt-field input {
  width: 100%;
  min-width: 0;
  border: 1px solid #ece6f5;
  border-radius: 12px;
  padding: 12px 14px;
  color: #4d4660;
  font-size: 14px;
  outline: none;
}

.city-prompt-field input:focus {
  border-color: #8f4ad8;
}

.city-prompt-options {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  z-index: 2;
  max-height: 220px;
  overflow-y: auto;
  padding: 6px;
  background: #ffffff;
  border: 1px solid #ece6f5;
  border-radius: 12px;
  box-shadow: 0 16px 34px rgba(34, 25, 60, 0.16);
}

.city-prompt-options[hidden] {
  display: none;
}

.city-prompt-option {
  width: 100%;
  border: none;
  border-radius: 10px;
  background: transparent;
  color: #4d4660;
  cursor: pointer;
  display: block;
  padding: 9px 10px;
  text-align: left;
  font: inherit;
  font-size: 13px;
}

.city-prompt-option:hover,
.city-prompt-option.is-active {
  background: #efe7fb;
  color: #6b3bb5;
}

.city-prompt-empty {
  color: #8a829e;
  font-size: 12px;
  padding: 9px 10px;
}

.city-prompt-field .ghost {
  border-radius: 12px;
  padding: 10px 12px;
  font-size: 12px;
  white-space: nowrap;
}

.city-prompt-actions {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
}

.city-prompt-location {
  border: 1px solid #e6daf6;
  border-radius: 999px;
  background: #ffffff;
  color: #6b3bb5;
  padding: 10px 14px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.city-prompt-actions .primary {
  border-radius: 999px;
  padding: 10px 18px;
}

.city-prompt-status {
  min-height: 18px;
  color: #8a829e;
  font-size: 12px;
}

.city-prompt-login {
  display: inline-block;
  margin-top: 4px;
  color: #6b3bb5;
  font-size: 13px;
  font-weight: 700;
}

.event-card {
  display: grid;
  grid-template-columns: 130px 1fr;
  background: #ffffff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 16px 30px rgba(34, 25, 60, 0.08);
  cursor: pointer;
  position: relative;
  transition: box-shadow 0.25s ease-in-out;
}

.event-card:hover {
  box-shadow: 0 20px 42px rgba(34, 25, 60, 0.14);
}

.event-card.is-expanded {
  box-shadow: 0 24px 52px rgba(34, 25, 60, 0.2);
}

.events-cards:has(.event-card.is-expanded) .event-card:not(.is-expanded) {
  align-self: start;
}

.event-media {
  background-size: cover;
  background-position: center;
  min-height: 110px;
}

.event-body {
  padding: 14px 14px 12px;
  display: grid;
  gap: 6px;
}

.event-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.event-body h3 {
  font-size: 14px;
  line-height: 1.3;
}

.tag {
  display: inline-block;
  font-size: 10px;
  padding: 4px 8px;
  border-radius: 10px;
  background: #f2e9fb;
  color: #6b3bb5;
  font-weight: 600;
  width: fit-content;
}

.event-actions {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.event-action {
  width: 4vw;
  max-width: 20px;
  border: none;
  padding: 0;
  background: transparent;
  color: #8f4ad8;
  cursor: pointer;
}

.event-action svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  transition: transform 0.18s ease, opacity 0.18s ease, fill 0.18s ease;
}

.event-action:hover svg {
  opacity: 0.8;
  transform: scale(1.06);
}

.event-action.is-active svg {
  fill: #8f4ad8;
}

.event-meta {
  font-size: 11px;
  color: #8a829e;
}

.event-meta.price {
  color: #6b3bb5;
  font-weight: 600;
}

.event-meta.price.free {
  color: #2e7d32;
}

/* ---- Card expand ---- */

.event-details {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease-in-out;
}

.event-card.is-expanded .event-details {
  max-height: 200vh;
}

.event-desc {
  font-size: 11.5px;
  color: #60606f;
  line-height: 1.5;
  margin-top: 6px;
  padding-top: 8px;
  border-top: 1px solid #f0eaf8;
  word-wrap: break-word;
}

.event-info-row {
  display: flex;
  gap: 12px;
  margin-top: 6px;
  flex-wrap: wrap;
}

.event-info-item {
  font-size: 10.5px;
  color: #8a829e;
}

.btn-register {
  display: inline-block;
  margin-top: 10px;
  background: #8f4ad8;
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 7px 16px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease-in-out;
}

.btn-register:hover {
  background: #6b3bb5;
}

/* ---- Responsive ---- */

@media (max-width: 980px) {
  .welcome {
    position: relative;
    margin-top: calc(-1 * var(--header-h));
    min-height: calc(100svh);
  }

  .hero {
    grid-template-columns: 1fr;
    padding: 0;
    gap: 0;
    position: relative;
    min-height: 60vh;
    flex: 1;
  }

  .hero-copy {
    position: relative;
    padding: 110px 16px 40px;
    background: transparent;
    color: #ffffff;
    height: 70vh;
    z-index: 4;
  }

  .hero-copy h1 {
    font-size: 38px;
    color: #ffffff;
  }

  .hero-copy h1 span {
    color: #b47bff;
  }

  .hero-copy p {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.75);
  }

  .hero-actions {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero-actions .ghost {
    background: transparent;
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.4);
  }

  .hero-media {
    position: absolute;
    inset: 0;
    z-index: 3;
    pointer-events: none;
  }

  .media-card {
    min-height: unset;
    border-radius: 0;
    box-shadow: none;
  }

  .media-photo::after {
    opacity: 0.9;
    mix-blend-mode: normal;
  }

  .media-photo::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(7, 6, 35, 0.9) 0%, rgba(7, 6, 35, 0.6) 45%, rgba(7, 6, 35, 0.2) 100%);
    z-index: 1;
  }

  .media-card::after {
    height: 96px;
  }

  .media-overlay {
    right: 16px;
    bottom: 24px;
    z-index: 4;
    pointer-events: auto;
  }

  .newsletter {
    display: none;
    padding: 1vh 1vw 1vh;
    margin-bottom: 0;
  }

  .ad-carousel {
    padding: 20px 18px 28px;
  }

  .ad-carousel-track {
    display: block;
    position: relative;
    min-height: 0;
  }

  .ad-slide {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    opacity: 0;
    pointer-events: none;
    position: absolute;
    inset: 0;
    transform: translateX(24px);
  }

  .ad-slide.is-visible {
    display: grid;
  }

  .ad-slide.is-active {
    opacity: 1;
    pointer-events: auto;
    position: relative;
    transform: translateX(0);
  }

  .ad-slide-media,
  .ad-slide-media img {
    min-height: 180px;
    height: 180px;
  }

  .ad-slide-copy h2 {
    font-size: 24px;
  }

  .ad-slide-copy p {
    font-size: 13px;
  }

  .ad-carousel-controls {
    justify-content: center;
  }

  .app-ad-strip {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .app-ad-card {
    grid-template-columns: 82px 1fr;
    border-radius: 12px;
    height: 100px;
  }

  .app-ad-media,
  .app-ad-media img {
    height: 100px;
  }

  .app-ad-body {
    padding: 10px 12px;
    gap: 4px;
  }

  .app-ad-body h3 {
    font-size: 13px;
  }

  .newsletter h2 {
    font-size: 22px;
  }

  .newsletter p {
    font-size: 11px;
  }

  .newsletter-form {
    width: 90%;
    flex-direction: column;
    margin: 1% 5% 0 5%;
  }

  .newsletter-form input {
    min-width: unset;
    width: 100%;
  }

  .newsletter-form button {
    width: 100%;
  }

  .fineprint {
    font-size: 9px;
  }

  .events {
    padding: 84px 24px 50px;
  }

  .events-header {
    flex-direction: column;
    align-items: flex-start;
    margin-bottom: 10px;
  }

  .events-grid {
    grid-template-columns: 1fr;
  }

  .events-cards {
    grid-template-columns: 1fr;
  }

  .location-scope {
    align-items: flex-start;
    flex-direction: column;
  }

  .location-scope-actions {
    justify-content: flex-start;
    width: 100%;
  }

  .shared-event-section .event-card {
    grid-template-columns: 150px 1fr;
  }

  .events-header-text {
    box-shadow: none;
    background: #f6f5f9;
  }

  .events-tabs-overflow {
    width:100%;
    margin-left: 0;
    padding-left: 0;
    margin-top: 40px;
  }


  .events-fab {
    position: fixed;
    right: 8px;
    bottom: 16px;
    display: none;
    justify-content: flex-end;
    pointer-events: none;
    z-index: 3;
  }

  .city-prompt {
    align-items: start;
    justify-items: center;
    padding: 14px;
    padding-top: max(14px, env(safe-area-inset-top));
    padding-bottom: max(14px, env(safe-area-inset-bottom));
  }

  .city-prompt-panel {
    max-height: calc(100svh - 28px);
    padding: 22px 52px 18px 16px;
  }

  .city-prompt.is-keyboard-open {
    place-items: start center;
  }

  .city-prompt.is-keyboard-open .city-prompt-panel {
    max-height: calc(100svh - 28px);
  }

  .city-prompt-field {
    grid-template-columns: 1fr;
  }

  .city-prompt-options {
    position: static;
    margin-top: 6px;
    max-height: min(32svh, 190px);
  }

  .city-prompt-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .events-fab.is-visible {
    display: flex;
  }

  .events-fab {
    flex-direction: column;
    align-items: center;
    gap: 8px;
  }

  .filters-tab {
    padding: 9px 16px;
    font-size: 12px;
    border-radius: 20px;
    display: block;
  }

  .filters-fab {
    pointer-events: auto;
    width: 10vw;
    height: 10vw;
    max-width: 96px;
    max-height: 96px;
    border-radius: 50%;
    border: none;
    background: #ffffff;
    box-shadow: 0 6px 16px rgba(45, 30, 70, 0.16);
    display: grid;
    place-items: center;
    margin-bottom: 16px;
    padding: 0;
  }

  .scroll-top-fab {
    pointer-events: auto;
    width: 10vw;
    height: 10vw;
    max-width: 96px;
    max-height: 96px;
    border-radius: 50%;
    border: none;
    background: #ffffff;
    color: #8f4ad8;
    display: none;
    place-items: center;
    box-shadow: 0 4px 10px rgba(45, 30, 70, 0.18);
    padding: 0;
  }

  .scroll-top-fab.is-visible {
    display: grid;
  }

  .scroll-top-fab svg {
    width: 100%;
    height: 100%;
    max-width: 96px;
    max-height: 96px;
    object-fit: contain;
    fill: currentColor;
  }

  .filters-fab img {
    width: 100%;
    height: 100%;
    max-width: 96px;
    max-height: 96px;
    object-fit: contain;
  }

  .filters {
    display: block;
    position: fixed;
    left: 0;
    right: 0;
    top: var(--header-h);
    bottom: auto;
    width: 100%;
    z-index: 20;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-14px);
    transition: opacity 0.22s ease, transform 0.22s ease, visibility 0.22s ease;
    filter: drop-shadow(0 6px 14px rgba(26, 16, 43, 0.14));
  }

  .filters.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
  }

  .filters-card {
    border-radius: 0 0 16px 16px;
    max-height: calc(100svh - var(--header-h) - 8px);
    overflow-y: auto;
  }

  .filter-content {
    gap: 10px;
  }

  .calendar-card {
    padding: 12px;
    font-size: 12px;
  }

  .calendar-top {
    margin-bottom: 10px;
  }

  .cal-nav {
    width: 26px;
    height: 26px;
    font-size: 16px;
  }

  .calendar-grid {
    gap: 6px;
  }

  .calendar-days {
    min-height: 160px;
  }

  .calendar-day {
    padding: 6px 0;
    font-size: 12px;
  }

  .filter-search {
    font-size: 11px;
  }
}

/* Event card link wrapper */
.event-card-link {
  text-decoration: none;
  color: inherit;
  display: grid;
}

@media (min-width: 981px) {
  .filters-tab {
    display: none !important;
  }
}
