/* Discovery 2.0 - phase 2: home cards, tour discovery and date shortcuts.
   Never override the CRM's event grid column-count or visibility settings. */
.tfe-discovery-home .tfe-discovery-datebar {
  display:flex; align-items:center; gap:10px; flex-wrap:wrap;
  margin:0 0 clamp(17px,2.5vw,24px);
}
.tfe-discovery-home .tfe-discovery-datebar__label {
  font-size:12px;font-weight:750;color:#667793;margin-right:4px;
}
.tfe-discovery-home .tfe-discovery-datebar__chip {
  display:inline-flex;align-items:center;justify-content:center;gap:8px;
  min-height:38px;padding:8px 15px;border:1px solid #d9e4f3;
  border-radius:999px;background:#fff;color:#1b3f77!important;
  font-size:12px;font-weight:750;text-decoration:none!important;
  transition:background .2s,border-color .2s,transform .2s;
}
.tfe-discovery-home .tfe-discovery-datebar__chip span {font-weight:600;color:#6a85b3;}
.tfe-discovery-home .tfe-discovery-datebar__chip:hover {
  background:#eaf1ff;border-color:#8facf0;transform:translateY(-1px);
}
.tfe-discovery-home .tfe-discovery-datebar__chip:focus-visible {
  outline:2px solid #2459d8;outline-offset:3px;
}
/* More legible premium cards with their single caption visible on hover and touch.
   No extra grid widths: layout/quantity still belong to CRM and existing styles. */
.tfe-discovery-home .tfe-slider-lock .tfe-card-item {
  border-radius:15px!important;overflow:hidden;
  transition:transform .22s ease,box-shadow .22s ease!important;
  box-shadow:0 8px 24px rgba(17,38,74,.085);
}
.tfe-discovery-home .tfe-slider-lock .tfe-card-item:hover {
  transform:translateY(-4px);box-shadow:0 16px 34px rgba(17,38,74,.15);
}
.tfe-discovery-home .tfe-slider-lock .tfe-card-inner {border-radius:15px!important;overflow:hidden;}
.tfe-discovery-home .tfe-slider-lock .tfe-card-caption {
  opacity:1!important;transform:none!important;
  padding:46px clamp(10px,1.35vw,16px) 13px!important;
  background:linear-gradient(0deg,rgba(8,20,43,.98),rgba(8,20,43,.82) 49%,transparent 100%)!important;
  transition:none!important;
}
.tfe-discovery-home .tfe-slider-lock .tfe-card-item:hover .tfe-card-caption {opacity:1!important;transform:none!important;}
.tfe-discovery-home .tfe-slider-lock .tfe-card-caption-title {
  color:#fff!important;font-family:var(--tfe-font-head,'e-Ukraine Head',sans-serif)!important;
  font-size:clamp(12px,1.23vw,16px)!important;line-height:1.28!important;
  letter-spacing:-.017em!important;font-weight:750!important;
}
.tfe-discovery-home .tfe-slider-lock .tfe-card-caption-meta {
  color:#d5e2f5!important;font-size:clamp(10px,.94vw,12px)!important;font-weight:500!important;
}
.tfe-discovery-home .tfe-slider-lock .tfe-card-caption-date {
  border-radius:6px!important;box-shadow:none!important;
  background:rgba(255,255,255,.96)!important;
  color:#163668!important;font-size:clamp(9px,.87vw,11px)!important;
}
.tfe-discovery-home .tfe-slider-lock .tfe-card-caption-price {color:#fff!important;font-size:clamp(10px,.98vw,13px)!important;}
.tfe-discovery-home .tfe-slider-lock .tfe-card-caption-cta {
  background:#f4f7ff!important;color:#1a4290!important;
  border-radius:8px!important;padding:7px 10px!important;
  font-size:clamp(9px,.84vw,11px)!important;box-shadow:none!important;
}
.tfe-discovery-home .tfe-slider-lock .tfe-card-item .tfe-overlay {display:none!important;}
.tfe-discovery-home .tfe-slider-lock .tfe-card-status--soldout .tfe-card-caption-cta,
.tfe-discovery-home .tfe-slider-lock .tfe-card-status--ended .tfe-card-caption-cta {
  background:#e2e8f0!important;color:#475569!important;
}
.tfe-discovery-home .tfe-slider-lock .tfe-card-status--notify .tfe-card-caption-cta {
  background:#f0f4fb!important;color:#294a7f!important;
}

/* Tours: curated grid, not the event poster grid, with its own independent count. */
.tfe-discovery-home .tfe-discovery-tours {scroll-margin-top:95px;}
.tfe-discovery-home .tfe-discovery-tours__heading {
  display:flex;justify-content:space-between;align-items:end;gap:18px;
  margin-bottom:clamp(18px,2.7vw,30px);
}
.tfe-discovery-home .tfe-discovery-tours__eyebrow {
  display:block;margin-bottom:8px;letter-spacing:.12em;text-transform:uppercase;
  font-size:10px;font-weight:800;color:#5374b7;
}
.tfe-discovery-home .tfe-discovery-tours__heading h2 {
  margin:0;font-family:var(--tfe-font-head,'e-Ukraine Head',sans-serif);
  font-size:clamp(25px,3vw,38px);font-weight:800;letter-spacing:-.038em;
  line-height:1.18;color:#132747;
}
.tfe-discovery-home .tfe-discovery-tours__heading p {
  color:#667793;font-size:13px;margin:9px 0 0;
}
.tfe-discovery-home .tfe-discovery-tours__all {
  color:#194ea5!important;font-size:12px;font-weight:800;
  text-decoration:none!important;white-space:nowrap;padding:11px 0;
}
.tfe-discovery-home .tfe-discovery-tours__all:hover {text-decoration:underline!important;}
.tfe-discovery-home .tfe-discovery-tours__grid {
  display:grid;
  /* Fixed tracks prevent a single tour from swallowing the entire row. */
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:clamp(12px,1.7vw,20px);
}
.tfe-discovery-home .tfe-discovery-tour {
  min-width:0;max-width:270px;display:block;background:#fff;border:1px solid #e2eaf5;
  border-radius:16px;overflow:hidden;text-decoration:none!important;
  box-shadow:0 8px 24px rgba(10,29,69,.045);
  transition:transform .2s,box-shadow .2s;
}
.tfe-discovery-home .tfe-discovery-tour:hover {transform:translateY(-4px);box-shadow:0 18px 36px rgba(10,29,69,.12);}
.tfe-discovery-home .tfe-discovery-tour:focus-visible {outline:3px solid #3875e7;outline-offset:3px;}
.tfe-discovery-home .tfe-discovery-tour__image {
  position:relative;aspect-ratio:4/5;background:linear-gradient(155deg,#0e2452,#3a6add);
  overflow:hidden;
}
.tfe-discovery-home .tfe-discovery-tour__image img {
  width:100%!important;height:100%!important;object-fit:cover!important;
  aspect-ratio:4/5;display:block;transition:transform .34s;
}
.tfe-discovery-home .tfe-discovery-tour:hover .tfe-discovery-tour__image img {transform:scale(1.035);}
.tfe-discovery-home .tfe-discovery-tour__fallback {
  display:flex;height:100%;align-items:center;justify-content:center;
  color:#fff;font-size:20px;font-weight:800;
}
.tfe-discovery-home .tfe-discovery-tour__tag {
  position:absolute;bottom:12px;left:12px;right:12px;padding:10px 13px;
  display:flex;justify-content:space-between;gap:10px;
  color:#fff;background:rgba(9,24,53,.78);border:1px solid rgba(255,255,255,.16);
  border-radius:9px;backdrop-filter:blur(8px);
  font-size:11px;font-weight:800;
}
.tfe-discovery-home .tfe-discovery-tour__info {padding:15px 15px 17px;}
.tfe-discovery-home .tfe-discovery-tour__info h3 {
  margin:0 0 8px;color:#142844;font-family:var(--tfe-font-head,'e-Ukraine Head',sans-serif);
  font-size:clamp(14px,1.3vw,17px);line-height:1.28;font-weight:800;
  display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;
}
.tfe-discovery-home .tfe-discovery-tour__info p {margin:0;color:#667793;font-size:11px;line-height:1.6;}
@media (min-width:701px) and (max-width:1050px) {
  .tfe-discovery-home .tfe-discovery-tours__grid {grid-template-columns:repeat(3,minmax(0,1fr));}
}
@media(max-width:700px){
  .tfe-discovery-home .tfe-discovery-datebar {gap:8px;margin-bottom:16px;}
  .tfe-discovery-home .tfe-discovery-datebar__label {width:100%;}
  .tfe-discovery-home .tfe-discovery-datebar__chip {padding:8px 11px;min-height:36px;}
  .tfe-discovery-home .tfe-discovery-tours__heading {align-items:flex-start;flex-direction:column;gap:8px;}
  .tfe-discovery-home .tfe-discovery-tours__grid {grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;}
  .tfe-discovery-home .tfe-discovery-tour__tag {left:7px;right:7px;bottom:7px;padding:7px;font-size:9px;}
  .tfe-discovery-home .tfe-discovery-tour__info {padding:12px 10px;}
  .tfe-discovery-home .tfe-slider-lock .tfe-card-caption {padding:36px 9px 9px!important;}
}
@media(max-width:370px){
  .tfe-discovery-home .tfe-discovery-tours__grid {gap:8px;}
  .tfe-discovery-home .tfe-discovery-tour__info h3 {font-size:12px;}
}
@media(prefers-reduced-motion:reduce){
  .tfe-discovery-home .tfe-discovery-datebar__chip,
  .tfe-discovery-home .tfe-slider-lock .tfe-card-item,
  .tfe-discovery-home .tfe-discovery-tour,
  .tfe-discovery-home .tfe-discovery-tour__image img {transition:none!important;transform:none!important;}
}
