/* =========================================
   TOP EVENTS STRIP – FINAL MOBILE SAFE VERSION
   ========================================= */

/* Section wrapper */
.top-events-strip {
  position: relative;
  z-index: 1;
  background: transparent; /* background handled by ::before */
}

/* Full viewport background without layout shift */
.top-events-strip::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100vw;

  background: #ffffff;
  border-top: 1px solid rgba(0,0,0,0.08);
  border-bottom: 1px solid rgba(0,0,0,0.08);

  z-index: -1;
}

/* Container */
.tes-container {
  width: 100%;
  margin: 0 auto;
  padding: 10px 44px;
  position: relative;
  box-sizing: border-box;
}

/* Viewport */
.tes-viewport {
  width: 100%;
  overflow: hidden;
  position: relative;
  z-index: 0;
}

/* Track */
.tes-track {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 2px;

  /* Hide scrollbars */
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.tes-track::-webkit-scrollbar {
  display: none;
}

/* Card */
.tes-card {
  flex: 0 0 auto;
  width: 420px;
  min-height: 72px;
  display: grid;
  grid-template-columns: 58px 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid rgba(0,0,0,0.10);
  background: #ffffff;
  box-shadow: 0 6px 18px rgba(0,0,0,0.06);
  box-sizing: border-box;

  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.tes-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 26px rgba(0,0,0,0.10);
}

/* Logo container */
.tes-logo {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: rgba(0,0,0,0.04);
  border: 1px solid rgba(0,0,0,0.08);
}

.tes-logo img {
  max-width: 38px;
  max-height: 38px;
  width: auto;
  height: auto;
  display: block;
}

/* Info text */
.tes-info {
  min-width: 0;
}

.tes-event {
  margin: 0;
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0.03em;
  color: #111;
  text-transform: uppercase;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tes-meta {
  margin-top: 2px;
  font-size: 12px;
  color: rgba(0,0,0,0.66);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tes-dot {
  margin: 0 6px;
  opacity: 0.7;
}

.tes-venue {
  margin-top: 1px;
  font-size: 12px;
  color: rgba(0,0,0,0.80);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* CTA button */
.tes-cta {
  display: flex;
  align-items: center;
}

.tes-book {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 9px 12px;
  border-radius: 12px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 11px;
  text-decoration: none;
  color: #ffffff;
  background: #35ad79;
  border: 1px solid rgba(0,0,0,0.12);
  white-space: nowrap;
}

.tes-book:hover {
  filter: brightness(0.95);
}

/* Arrows */
.tes-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 34px;
  height: 34px;
  border-radius: 10px;
  border: 1px solid rgba(0,0,0,0.12);
  background: #ffffff;
  color: rgba(0,0,0,0.80);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 18px rgba(0,0,0,0.08);
  z-index: 2;
}

.tes-btn:hover {
  background: rgba(0,0,0,0.03);
}

.tes-btn:active {
  transform: translateY(-50%) translateY(1px);
}

.tes-prev { left: 8px; }
.tes-next { right: 8px; }

/* Hover zones (desktop only) */
.tes-hoverwrap {
  position: relative;
}

.tes-hover {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 38%;
  z-index: 1;
}

.tes-hover-left { left: 0; }
.tes-hover-right { right: 0; }

/* MOBILE ADJUSTMENTS */
@media (max-width: 768px) {

  .tes-container {
    padding: 10px 40px;
  }

  .tes-card {
    width: 320px;
  }

  /* Disable hover zones on touch devices */
  .tes-hover {
    display: none !important;
  }

  /* Keep arrows visible on mobile */
  .tes-btn {
    display: inline-flex;
  }
}

@media (max-width: 576px) {

  .tes-container {
    padding: 10px 36px;
  }

  .tes-card {
    width: 300px;
  }
}

/* Ensure navbar always stays above */
.navbar,
.navbar .navbar-toggler,
.navbar-toggler,
.navbar-brand {
  position: relative;
  z-index: 9999;
}