/* TicketsFest Discovery Design 3.0 | Phase 3 | 10.2.55
   Shared, scoped presentation for home, events listing and single tour.
   IMPORTANT: never change display/grid-template-columns/width of event card grids;
   the CRM controls horizontal card count and page content.
   Never restyle booking widgets, checkout, or the individual event page. */

/* Shared design language - each scope is opt-in and cannot leak into admin. */
.tfe-discovery-home,
.tfe-events-page--premium,
body.single-tour .tfe-page-wrapper {
  --tfe3-ink: var(--tfe-text);
  --tfe3-muted: var(--tfe-muted);
  --tfe3-blue: var(--tfe-primary);
  --tfe3-border: var(--tfe-border);
  --tfe3-soft: var(--tfe-soft);
  --tfe3-shadow: var(--tfe-shadow);
  --tfe3-radius: var(--tfe-radius-card);
}

/* Homepage - editorial hierarchy without changing CRM-driven grids. */
.tfe-discovery-home :is(#tfe-home-top,#tfe-home-upcoming,#tfe-home-cities,
  .tfe-growth-section--month,.tfe-growth-section--spotlight,
  .tfe-growth-section--nearby) .tfe-section-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 9px 12px;
  margin-bottom: clamp(17px, 2vw, 24px);
}
.tfe-discovery-home :is(#tfe-home-top,#tfe-home-upcoming,#tfe-home-cities,
  .tfe-growth-section--month,.tfe-growth-section--spotlight,
  .tfe-growth-section--nearby) .tfe-section-title {
  font-family: var(--tfe-font-head, 'e-Ukraine Head', system-ui, sans-serif);
  font-size: clamp(23px, 2.75vw, 36px);
  font-weight: 700;
  letter-spacing: -.025em;
  line-height: 1.2;
  color: var(--tfe3-ink);
  overflow-wrap: anywhere;
}
.tfe-discovery-home :is(.tfe-section-lead,.tfe-discovery-tours__heading p) {
  color: var(--tfe3-muted);
  line-height: 1.65;
  max-width: 740px;
}
.tfe-discovery-home .tfe-city-card {
  background: #fff;
  border-color: var(--tfe3-border);
  border-radius: var(--tfe3-radius);
  box-shadow: var(--tfe3-shadow);
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}
.tfe-discovery-home .tfe-city-card strong {
  color: var(--tfe3-ink);
  font-family: var(--tfe-font-head, 'e-Ukraine Head', system-ui, sans-serif);
  font-size: clamp(15px, 1.6vw, 21px);
  line-height: 1.25;
  font-weight: 700;
  overflow-wrap: anywhere;
}
.tfe-discovery-home .tfe-city-card :is(.tfe-city-kicker,span:last-child) {
  font-weight: 700;
}
.tfe-discovery-home .tfe-city-card:is(:hover,:focus-visible) {
  border-color: #9bb9ed;
  box-shadow: 0 16px 36px rgba(16, 37, 76, .12);
}
.tfe-discovery-home :is(.tfe-view-all,.tfe-discovery-tours__all) {
  font-family: var(--tfe-font, 'e-Ukraine', system-ui, sans-serif);
  font-weight: 700;
}
.tfe-discovery-home .tfe-discovery-datebar__chip {
  border-color: var(--tfe3-border);
  font-weight: 700;
}
.tfe-discovery-home .tfe-discovery-tour {
  border-radius: var(--tfe3-radius);
  border-color: var(--tfe3-border);
  box-shadow: var(--tfe3-shadow);
}
.tfe-discovery-home .tfe-discovery-tour__info h3 {
  color: var(--tfe3-ink);
  font-weight: 700;
  overflow-wrap: anywhere;
}
.tfe-discovery-home .tfe-discovery-tour__info p {color: var(--tfe3-muted);}
/* The existing fixed 4/3/2 tour tracks are intentional, including for a single tour. */

/* Events archive - match the same dark navy hero and soft cards, keep filters native. */
.tfe-events-page--premium .tfe-events-hero--premium {
  background: #101f3e;
}
.tfe-events-page--premium .tfe-events-hero .tfe-hero-title {
  font-family: var(--tfe-font-head, 'e-Ukraine Head', system-ui, sans-serif);
  font-size: clamp(32px, 4.7vw, 62px);
  font-weight: 700;
  letter-spacing: -.035em;
  line-height: 1.12;
  overflow-wrap: anywhere;
}
.tfe-events-page--premium .tfe-events-hero .tfe-hero-desc {
  line-height: 1.7;
  max-width: 750px;
}
.tfe-events-page--premium .tfe-events-popular-links a {
  border-radius: 999px;
  transition: border-color .2s ease, background-color .2s ease;
}
.tfe-events-page--premium .tfe-events-section-head h2,
.tfe-events-page--premium .tfe-events-archive-head h2,
.tfe-events-page--premium .tfe-premium-section-heading h2 {
  font-family: var(--tfe-font-head, 'e-Ukraine Head', system-ui, sans-serif);
  font-weight: 700;
  letter-spacing: -.026em;
  line-height: 1.18;
  color: var(--tfe3-ink);
}
.tfe-events-page--premium .tfe-events-section-head p,
.tfe-events-page--premium .tfe-events-faq__item p {
  color: var(--tfe3-muted);
  line-height: 1.65;
}
.tfe-events-page--premium .tfe-events-faq__inner {
  border-color: var(--tfe3-border);
  border-radius: 22px;
}
.tfe-events-page--premium .tfe-events-faq__item {
  border-color: var(--tfe3-border);
  border-radius: var(--tfe3-radius);
  box-shadow: 0 8px 24px rgba(16, 37, 76, .04);
}

/* Single tour - align blue actions, section typography and soft surfaces
   with the homepage and catalog. No grid layout or ticket logic changes. */
body.single-tour .tfe-hero-title,
body.single-tour .tfe-section-title,
body.single-tour #tour-schedule .tfe-tour-schedule-title {
  font-family: var(--tfe-font-head, 'e-Ukraine Head', system-ui, sans-serif);
  font-weight: 700;
  letter-spacing: -.025em;
}
body.single-tour .tfe-hero-badge {letter-spacing: .06em;}
body.single-tour .tfe-tour-hero-actions .tfe-btn--primary {
  background: #fff;
  color: #143d89;
  border: 1px solid #fff;
  box-shadow: 0 10px 28px rgba(4, 18, 47, .2);
  border-radius: 12px;
}
body.single-tour .tfe-tour-hero-actions .tfe-btn--primary:is(:hover,:focus-visible) {
  background: #eaf1ff;
  color: #143d89;
}
body.single-tour .tfe-tour-local-nav a {
  border-color: var(--tfe3-border);
  font-weight: 700;
}
body.single-tour .tfe-tour-local-nav a:focus-visible {
  outline: 3px solid #7aa5ed;
  outline-offset: 3px;
}
body.single-tour #tour-schedule .tfe-tour-schedule-item,
body.single-tour .tfe-stat-box {
  border-color: var(--tfe3-border);
  box-shadow: var(--tfe3-shadow);
}
body.single-tour #tour-schedule .tfe-tour-schedule-btn:not(.is-muted) {
  background: var(--tfe3-blue);
}
body.single-tour #tour-schedule .tfe-tour-schedule-btn:not(.is-muted):hover {
  background: #164596;
}
body.single-tour #tour-schedule .tfe-tour-schedule-btn:focus-visible {
  outline: 3px solid #7aa5ed;
  outline-offset: 3px;
}
body.single-tour :is(#tour-schedule,#tour-about) {scroll-margin-top: 116px;}

@media (max-width: 768px) {
  .tfe-discovery-home :is(#tfe-home-top,#tfe-home-upcoming,#tfe-home-cities,
    .tfe-growth-section--month,.tfe-growth-section--spotlight,
    .tfe-growth-section--nearby) .tfe-section-title {font-size: clamp(21px, 5.8vw, 29px);}
  .tfe-discovery-home .tfe-discovery-tour__info h3 {font-size: clamp(12px, 3.6vw, 15px);}
  .tfe-events-page--premium .tfe-events-hero .tfe-hero-title {font-size: clamp(30px, 7.5vw, 42px);}
  body.single-tour .tfe-tour-mobile-sticky {
    background: var(--tfe-primary);
    border-color: #18499e;
    color: #fff !important;
  }
  body.single-tour .tfe-tour-mobile-sticky:focus-visible {
    outline: 3px solid #8bb7ff;
    outline-offset: 3px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .tfe-discovery-home .tfe-city-card,
  .tfe-events-page--premium .tfe-events-popular-links a {transition: none !important;transform: none !important;}
}
