/* TicketsFest Discovery 2.0: scoped first-screen refresh. Home card column counts remain CRM-owned. */
body.tfe-discovery-active { background: #f5f8ff; }
/* Refined existing floating header, with all menus and CRM location controls intact. */
body.tfe-discovery-active .tfe-header-wrap {
  background:rgba(255,255,255,.96);
  border-color:rgba(208,220,240,.84);
  box-shadow:0 12px 40px rgba(9,32,74,.11),0 1px 3px rgba(9,32,74,.04);
  max-width:1280px;
}
body.tfe-discovery-active .tfe-header-wrap.is-scrolled {
  background:rgba(255,255,255,.985);
  box-shadow:0 9px 30px rgba(9,32,74,.13);
}
.tfe-discovery-home { background: linear-gradient(180deg,#f9fbff 0%,#eef3fb 48%,#f9fbff 100%) !important; }
.tfe-discovery-home .tfe-discovery-stage {
  position:relative; isolation:isolate; overflow:hidden;
  background:radial-gradient(ellipse 48% 48% at 90% 12%,rgba(49,91,206,.20),transparent 75%),
             radial-gradient(ellipse 52% 65% at 8% 88%,rgba(26,89,171,.21),transparent 75%),
             linear-gradient(135deg,#0c1931 0%,#102549 55%,#0b1932 100%);
  padding:clamp(36px,5vw,68px) 0 clamp(32px,4vw,52px);
  margin:0 0 clamp(20px,3vw,40px);
}
.tfe-discovery-home .tfe-discovery-stage::before {
  content:"";pointer-events:none;position:absolute;inset:0;z-index:-1;opacity:.3;
  background:linear-gradient(90deg,transparent 0%,rgba(118,157,234,.19) 50%,transparent 100%);
  mask-image:linear-gradient(transparent 0%,#000 42%,transparent 100%);
}
.tfe-discovery-home .tfe-discovery-stage__inner {max-width:1280px;margin-inline:auto;position:relative;}
.tfe-discovery-home .tfe-discovery-intro {max-width:900px;margin:0 0 clamp(25px,3vw,38px);}
.tfe-discovery-home .tfe-discovery-eyebrow {display:inline-flex;align-items:center;gap:11px;color:#a9c3ff;font-size:11px;font-weight:800;letter-spacing:.17em;text-transform:uppercase;}
.tfe-discovery-home .tfe-discovery-eyebrow i {width:8px;height:8px;border-radius:50%;background:#6de0af;box-shadow:0 0 0 5px rgba(109,224,175,.12);}
.tfe-discovery-home .tfe-discovery-intro h1 {
  font-family:var(--tfe-font-head,"e-Ukraine Head",system-ui,sans-serif)!important;
  max-width:850px;color:#fff!important;background:none!important;-webkit-text-fill-color:#fff!important;
  font-weight:800!important;font-size:clamp(32px,5.1vw,66px)!important;
  letter-spacing:-.048em!important;line-height:1.08!important;
  margin:clamp(15px,2vw,24px) 0 16px!important;text-wrap:balance;
}
.tfe-discovery-home .tfe-discovery-intro h1 em {font-style:normal;color:#9cbcff!important;-webkit-text-fill-color:#9cbcff!important;}
.tfe-discovery-home .tfe-discovery-intro p {max-width:670px;margin:0;color:#c9d6eb!important;font-size:clamp(14px,1.35vw,18px);line-height:1.65;font-weight:400;}
.tfe-discovery-home .tfe-discovery-search {
  display:grid;grid-template-columns:minmax(250px,2.2fr) minmax(150px,1fr) minmax(150px,1fr) auto;
  gap:6px;align-items:stretch;padding:7px;
  background:#fff;border:1px solid rgba(255,255,255,.32);border-radius:19px;
  box-shadow:0 18px 60px rgba(1,10,29,.2);max-width:1190px;
}
.tfe-discovery-home .tfe-discovery-search > div {position:relative;padding:9px 14px;min-width:0;}
.tfe-discovery-home .tfe-discovery-search > div + div {border-left:1px solid #e8edf5;}
.tfe-discovery-home .tfe-discovery-search label {display:block;color:#64748b;font-size:11px;font-weight:700;letter-spacing:.02em;margin:0 0 4px;white-space:nowrap;}
.tfe-discovery-home .tfe-discovery-search__query-wrap {display:flex;align-items:center;gap:9px;}
.tfe-discovery-home .tfe-discovery-search__query-wrap svg {width:19px;height:19px;flex:none;color:#3560b2;}
.tfe-discovery-home .tfe-discovery-search input,
.tfe-discovery-home .tfe-discovery-search select {
  display:block;width:100%;height:30px;min-width:0;border:0!important;outline:0!important;
  background:transparent!important;color:#182947!important;font-family:var(--tfe-font,"e-Ukraine",system-ui,sans-serif)!important;
  font-size:13px!important;font-weight:600!important;line-height:1.5!important;
  padding:0!important;margin:0!important;box-shadow:none!important;max-width:none!important;
}
.tfe-discovery-home .tfe-discovery-search input::placeholder {color:#8492a9;opacity:1;font-weight:500;}
.tfe-discovery-home .tfe-discovery-search select {cursor:pointer;padding-right:20px!important;text-overflow:ellipsis;}
.tfe-discovery-home .tfe-discovery-search :is(input,select):focus-visible {outline:2px solid #7da8ff!important;outline-offset:4px!important;border-radius:4px;}
.tfe-discovery-home .tfe-discovery-search__submit {
  border:0;min-height:56px;display:inline-flex;align-items:center;justify-content:center;gap:12px;
  background:#2459d8;color:#fff;padding:0 20px;border-radius:13px;
  white-space:nowrap;font-family:var(--tfe-font,"e-Ukraine",system-ui,sans-serif);font-weight:800;font-size:13px;
  cursor:pointer;box-shadow:0 6px 16px rgba(36,89,216,.18);transition:background .2s ease,transform .2s ease;
}
.tfe-discovery-home .tfe-discovery-search__submit svg {width:17px;height:17px;flex:none;}
.tfe-discovery-home .tfe-discovery-search__submit:hover {background:#1745b6;transform:translateY(-1px);}
.tfe-discovery-home .tfe-discovery-search__submit:focus-visible {outline:3px solid #b4cbff;outline-offset:3px;}
.tfe-discovery-home .tfe-discovery-quicklinks {display:flex;gap:10px 26px;flex-wrap:wrap;margin:16px 0 0;}
.tfe-discovery-home .tfe-discovery-quicklinks a {color:#ccd9f2!important;text-decoration:none!important;font-size:12px;font-weight:700;display:inline-flex;gap:8px;align-items:center;}
.tfe-discovery-home .tfe-discovery-quicklinks a:hover {color:#fff!important;text-decoration:underline!important;}
.tfe-discovery-home .tfe-discovery-banner.tfe-hero-banner-section {
  background:transparent!important;position:relative!important;margin:clamp(28px,3vw,38px) 0 0!important;
  padding:0!important;border:0!important;width:100%!important;min-height:0!important;
}
.tfe-discovery-home .tfe-discovery-banner::before {display:none!important;}
.tfe-discovery-home .tfe-discovery-banner .tfe-banners-wrap {
  max-width:100%!important;width:100%!important;margin:0!important;border-radius:19px!important;
  overflow:hidden!important;box-shadow:0 22px 60px rgba(0,0,0,.22)!important;
  border:1px solid rgba(255,255,255,.14)!important;
}
.tfe-discovery-home .tfe-discovery-banner .tftb-slide-inner,
.tfe-discovery-home .tfe-discovery-banner .tftb-slide-img {aspect-ratio:1600/791!important;}
.tfe-discovery-home .tfe-discovery-categories {display:flex;gap:16px 26px;align-items:center;justify-content:space-between;flex-wrap:wrap;margin-bottom:clamp(28px,3.7vw,50px);}
.tfe-discovery-home .tfe-discovery-categories__label {color:#334768;font-weight:800;font-size:14px;letter-spacing:-.01em;}
.tfe-discovery-home .tfe-discovery-categories__items {display:flex;flex-wrap:wrap;gap:9px;}
.tfe-discovery-home .tfe-discovery-categories__items a {
  display:inline-flex;gap:8px;align-items:center;padding:11px 18px;background:#fff;color:#26416b!important;
  border:1px solid #dce6f7;border-radius:999px;box-shadow:0 3px 10px rgba(18,49,88,.03);
  text-decoration:none!important;font-size:12px;font-weight:750;transition:background .2s,border-color .2s,transform .2s;
}
.tfe-discovery-home .tfe-discovery-categories__items a span {font-size:18px;line-height:1;color:#3267dc;}
.tfe-discovery-home .tfe-discovery-categories__items a:hover {background:#eaf1ff;border-color:#89adef;transform:translateY(-1px);}
.tfe-discovery-home .tfe-discovery-categories__items a:focus-visible {outline:2px solid #225ee0;outline-offset:3px;}
/* First catalogs: cleaner editorial headings. Keep the original grid rules and CRM counts untouched. */
.tfe-discovery-home #tfe-home-top .tfe-section-header,
.tfe-discovery-home #tfe-home-upcoming .tfe-section-header {justify-content:flex-start!important;text-align:left!important;margin-bottom:clamp(15px,2vw,24px)!important;}
.tfe-discovery-home #tfe-home-top .tfe-section-title,
.tfe-discovery-home #tfe-home-upcoming .tfe-section-title {
  font-family:var(--tfe-font-head,"e-Ukraine Head",system-ui,sans-serif)!important;
  font-size:clamp(25px,2.9vw,37px)!important;letter-spacing:-.032em!important;
  color:#122342!important;background:none!important;-webkit-text-fill-color:#122342!important;
}
.tfe-discovery-home #tfe-home-top .tfe-flag-icon,
.tfe-discovery-home #tfe-home-upcoming .tfe-flag-icon {font-size:24px;}
.tfe-discovery-home #tfe-home-upcoming {scroll-margin-top:95px;}
.tfe-discovery-home #tfe-home-top {scroll-margin-top:95px;}
.tfe-discovery-home #tfe-home-upcoming .tfe-view-all {background:#173f93!important;color:#fff!important;border-color:#173f93!important;}
.tfe-discovery-home #tfe-home-upcoming .tfe-view-all:hover {background:#225cda!important;border-color:#225cda!important;}
@media (max-width:1000px) {
  .tfe-discovery-home .tfe-discovery-search {grid-template-columns:minmax(200px,1.5fr) repeat(2,minmax(120px,1fr));}
  .tfe-discovery-home .tfe-discovery-search__submit {grid-column:1/-1;min-height:45px;}
}
@media (max-width:700px) {
  .tfe-discovery-home .tfe-discovery-stage {padding:29px 0 32px!important;}
  .tfe-discovery-home .tfe-discovery-stage__inner {padding-inline:clamp(14px,4vw,22px)!important;max-width:100%!important;}
  .tfe-discovery-home .tfe-discovery-intro {margin-bottom:22px;}
  .tfe-discovery-home .tfe-discovery-intro h1 {font-size:clamp(31px,8vw,42px)!important;letter-spacing:-.034em!important;}
  .tfe-discovery-home .tfe-discovery-search {grid-template-columns:repeat(2,minmax(0,1fr));gap:0;padding:5px;border-radius:17px;}
  .tfe-discovery-home .tfe-discovery-search__query {grid-column:1/-1;border-bottom:1px solid #e7edf6;}
  .tfe-discovery-home .tfe-discovery-search > div {padding:11px 12px;}
  .tfe-discovery-home .tfe-discovery-search > div + div {border-left:0;}
  .tfe-discovery-home .tfe-discovery-search__location:nth-of-type(3) {border-left:1px solid #e7edf6!important;}
  .tfe-discovery-home .tfe-discovery-search__submit {grid-column:1/-1;min-height:48px;margin-top:3px;}
  .tfe-discovery-home .tfe-discovery-quicklinks {font-size:12px;margin-top:15px;}
  .tfe-discovery-home .tfe-discovery-banner {margin-top:22px!important;}
  .tfe-discovery-home .tfe-discovery-banner .tfe-banners-wrap {border-radius:13px!important;}
  .tfe-discovery-home .tfe-discovery-categories {margin-top:0;align-items:flex-start;gap:12px;}
  .tfe-discovery-home .tfe-discovery-categories__items {gap:7px;}
  .tfe-discovery-home .tfe-discovery-categories__items a {padding:9px 12px;}
}
@media (prefers-reduced-motion:reduce) {
  .tfe-discovery-home .tfe-discovery-search__submit,
  .tfe-discovery-home .tfe-discovery-categories__items a {transition:none!important;transform:none!important;}
}

/* Personal city CTA is only revealed by the client when a preferred city is stored. */
.tfe-discovery-mycity[hidden]{display:none!important}
