/**
 * @file
 * Reimagined Styles for the VTA World Cup landing page.
 * Ultra-premium, modern, cinematic design with "wow factor".
 */

/* ===== GENERAL RESET & BASE ===== */

body.node--type-worldcup-page #main-wrapper,
body.node--type-worldcup-page #main-wrapper main,
body.node--type-worldcup-page .block-system-main-block {
  width: 100% !important;
  max-width: none !important;
  padding: 0 !important;
  margin: 0 !important;
  background: #020617; /* Slate 950 - Deepest premium black/blue */
}

body.node--type-worldcup-page #main-wrapper .container {
  max-width: none !important;
  width: 100% !important;
  padding: 0 !important;
  margin: 0 !important;
}

body.node--type-worldcup-page .block-system-main-block {
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}

.worldcup-page {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  color: #f8fafc;
  line-height: 1.6;
  background: #020617;
  min-height: 100vh;
  width: 100%;
  max-width: none;
  overflow: hidden; /* BFC: prevents child margin collapse leaking past container */
  /* Fix #11: Removed scroll-behavior: smooth — this element doesn't scroll
     (overflow:hidden). The viewport/body is the scroll container. */
  position: relative;
}

/* Cinematic Ambient Lighting - huge soft glows in the background */
.worldcup-page::before {
  content: '';
  position: fixed;
  top: -20vh;
  left: 0;
  width: 100vw;
  height: 140vh;
  background: 
    radial-gradient(circle at 15% 30%, rgba(0, 102, 255, 0.08) 0%, transparent 40%),
    radial-gradient(circle at 85% 70%, rgba(253, 185, 19, 0.05) 0%, transparent 40%);
  pointer-events: none;
  z-index: 0;
}

.worldcup-page *,
.worldcup-page *::before,
.worldcup-page *::after {
  box-sizing: border-box;
}

/* ===== SITE HEADER OVERRIDES ===== */

body.node--type-worldcup-page {
  background: #020617 !important;
  scroll-behavior: smooth; /* Fix #11b: on body, the actual scroll container */
}

/* Ensure the footer wrapper itself has a dark bg so no white leaks
   between its child rows or above/below it on this page. */
body.node--type-worldcup-page .vta-footer {
  background: #141e2b;
}

body.node--type-worldcup-page .site-header {
  background: rgba(2, 6, 23, 0.6) !important;
  -webkit-backdrop-filter: blur(24px);
  backdrop-filter: blur(24px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

body.node--type-worldcup-page .site-header .menu--main .nav > .nav-item > a {
  color: rgba(255, 255, 255, 0.7);
  font-weight: 500;
  letter-spacing: 0.02em;
  transition: all 0.3s ease;
  text-transform: uppercase;
  font-size: 0.85rem;
}

body.node--type-worldcup-page .site-header .menu--main .nav > .nav-item > a:hover,
body.node--type-worldcup-page .site-header .menu--main .nav > .nav-item > a.active {
  color: #fff;
  text-shadow: 0 0 15px rgba(255, 255, 255, 0.5);
}

body.node--type-worldcup-page .site-header .menu--main .nav > .nav-item > a.active::after {
  background: #0066ff;
  box-shadow: 0 0 10px #0066ff;
  height: 3px;
  border-radius: 3px;
}

/* ===== HERO BANNER ===== */

.worldcup-hero {
  position: relative;
  min-height: 85vh;
  background-color: #020617;
  background-size: cover;
  background-position: center;
  background-attachment: fixed; /* Parallax effect */
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  z-index: 1;
}

/* Fix #1: iOS Safari doesn't support background-attachment: fixed —
   it causes the image to zoom/break. Disable on touch/coarse devices. */
@media (hover: none) and (pointer: coarse) {
  .worldcup-hero {
    background-attachment: scroll;
  }
}

/* Fix #2: Flex centering belongs on the overlay (it's position:absolute so the
   parent .worldcup-hero flex has no effect). Overlay becomes the flex container. */
.worldcup-hero__overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg,
    rgba(2, 6, 23, 0.1) 0%,
    rgba(2, 6, 23, 0.7) 60%,
    #020617 100%);
}

.worldcup-hero__content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 1000px;
  padding: 120px 24px 60px;
}

.worldcup-hero__title {
  font-size: clamp(3.5rem, 8vw, 6.5rem);
  font-weight: 900;
  margin: 0 0 16px;
  letter-spacing: -0.05em;
  line-height: 1.05;
  background: linear-gradient(135deg, #ffffff 0%, #94a3b8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-transform: uppercase;
}

.worldcup-hero__subtitle {
  font-size: clamp(1rem, 2vw, 1.4rem);
  font-weight: 800;
  margin: 0 0 32px;
  color: #fdb913;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  text-shadow: 0 0 24px rgba(253, 185, 19, 0.4);
}

.worldcup-hero__intro {
  font-size: 1.3rem;
  line-height: 1.8;
  max-width: 760px;
  margin: 0 auto;
  color: rgba(255, 255, 255, 0.75);
  font-weight: 400;
}

/* Ultra-modern gold separator line */
.worldcup-layout-content::before {
  content: '';
  display: block;
  width: 1px;
  height: 120px;
  background: linear-gradient(180deg, transparent, #fdb913, transparent);
  margin: 0 auto 40px;
  opacity: 0.6;
  box-shadow: 0 0 20px #fdb913;
}

/* ===== SECTIONS ===== */

.worldcup-layout-content {
  position: relative;
  z-index: 2;
}

.worldcup-section__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 80px 24px;
}

.worldcup-section__heading {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 900;
  color: #fff;
  margin: 0 0 32px;
  text-align: center;
  letter-spacing: -0.04em;
  position: relative;
}

/* Glowing dot accent instead of an underline */
.worldcup-section__heading::after {
  content: '';
  position: absolute;
  bottom: -20px;
  left: 50%;
  transform: translateX(-50%);
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #0066ff;
  box-shadow: 0 0 15px 4px rgba(0, 102, 255, 0.6);
}

.worldcup-section__body {
  font-size: 1.2rem;
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
  color: rgba(255, 255, 255, 0.65);
  line-height: 1.8;
}

/* Invisible background wrappers - we use the ambient page bg now */
.worldcup-section--white, .worldcup-section--light, .worldcup-section--dark {
  background: transparent;
}

/* ===== MATCH LISTING (WOW FACTOR CARDS) ===== */

.worldcup-matches__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 32px;
  padding-top: 24px;
}

.worldcup-match-card {
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.03) 0%, rgba(255, 255, 255, 0.01) 100%);
  /* Fix #4: Removed backdrop-filter — nothing visible behind solid bg, just GPU cost */
  border-radius: 24px;
  padding: 40px 32px;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.05);
  box-shadow: 0 25px 50px -12px rgba(0,0,0,0.5);
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
}

/* Dynamic glowing top edge */
.worldcup-match-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, #0066ff, #60a5fa);
  opacity: 0.7;
  transition: opacity 0.5s ease, box-shadow 0.5s ease;
}

.worldcup-match-card:hover {
  transform: translateY(-12px) scale(1.02);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.02) 100%);
  border-color: rgba(255, 255, 255, 0.15);
  box-shadow: 
    0 40px 80px -20px rgba(0,0,0,0.8),
    0 0 50px -10px rgba(0, 102, 255, 0.25);
}

.worldcup-match-card:hover::before {
  opacity: 1;
  box-shadow: 0 0 20px rgba(0, 102, 255, 0.8);
}

.worldcup-match-card--final::before, .worldcup-match-card--semifinal::before {
  background: linear-gradient(90deg, #fdb913, #fef08a);
}

.worldcup-match-card--final:hover, .worldcup-match-card--semifinal:hover {
  box-shadow: 
    0 40px 80px -20px rgba(0,0,0,0.8),
    0 0 50px -10px rgba(253, 185, 19, 0.25);
}
.worldcup-match-card--final:hover::before, .worldcup-match-card--semifinal:hover::before {
  box-shadow: 0 0 20px rgba(253, 185, 19, 0.8);
}

.worldcup-match-card__round {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: #fff;
  margin-bottom: 20px;
  padding: 6px 14px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 100px;
  align-self: flex-start;
}

.worldcup-match-card--final .worldcup-match-card__round,
.worldcup-match-card--semifinal .worldcup-match-card__round {
  background: rgba(253, 185, 19, 0.2);
  color: #fdb913;
}

.worldcup-match-card__title {
  font-size: 1.8rem;
  font-weight: 900;
  margin: 0 0 16px;
  color: #fff;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.worldcup-match-card__datetime {
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 32px;
  flex-grow: 1;
}

.worldcup-match-card__time {
  display: block;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.2rem;
  margin-top: 6px;
}

/* Premium Button Style */
.worldcup-match-card__link, 
.worldcup-section__body .field--name-field-link a {
  display: inline-block;
  padding: 16px 36px;
  background: linear-gradient(135deg, #fdb913 0%, #f59e0b 100%);
  color: #020617;
  text-decoration: none;
  border-radius: 100px;
  font-size: 1rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 10px 25px -5px rgba(253, 185, 19, 0.4);
  align-self: flex-start;
}

.worldcup-match-card__link:hover,
.worldcup-section__body .field--name-field-link a:hover {
  background: linear-gradient(135deg, #fcd34d 0%, #fbbf24 100%);
  color: #020617;
  transform: translateY(-4px);
  box-shadow: 0 20px 40px -5px rgba(253, 185, 19, 0.6);
  text-decoration: none;
}

/* ===== EMAIL SIGNUP CTA ===== */

.worldcup-signup {
  background: #0f172a;
  position: relative;
  border-top: 1px solid rgba(255,255,255,0.05);
  overflow: hidden;
  margin-top: 80px;
  text-align: center; /* Fix #5: Center the inline-block button */
}

.worldcup-signup::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(circle at 50% 100%, rgba(0, 102, 255, 0.2) 0%, transparent 70%);
  pointer-events: none;
}

.worldcup-signup__heading {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 900;
  margin: 0 0 20px;
  letter-spacing: -0.04em;
  background: linear-gradient(135deg, #fff 0%, #cbd5e1 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.worldcup-signup__text {
  font-size: 1.25rem;
  color: rgba(255,255,255,0.65);
  margin-bottom: 48px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.worldcup-signup__button {
  display: inline-block;
  padding: 20px 64px;
  background: linear-gradient(135deg, #0066ff 0%, #3b82f6 100%);
  color: #fff;
  text-decoration: none;
  border-radius: 100px;
  font-size: 1.15rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  box-shadow: 0 15px 35px -5px rgba(0, 102, 255, 0.5);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.worldcup-signup__button:hover {
  background: linear-gradient(135deg, #3b82f6 0%, #60a5fa 100%);
  color: #fff;
  transform: translateY(-6px) scale(1.03);
  box-shadow: 0 25px 50px -5px rgba(0, 102, 255, 0.7);
  text-decoration: none;
}

/* ===== PARKING & PRICING (MODERN PREMIUM) ===== */

.worldcup-parking__card {
  display: flex;
  align-items: center;
  gap: 40px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.03) 0%, rgba(255, 255, 255, 0.01) 100%);
  /* Fix #4: Removed backdrop-filter */
  border-radius: 24px;
  padding: 48px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  position: relative;
  overflow: hidden;
  box-shadow: 0 25px 50px -12px rgba(0,0,0,0.5);
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  max-width: 900px;
  margin: 0 auto;
}

.worldcup-parking__card::before {
  content: ''; position: absolute; top:0; bottom:0; left:0; width: 6px;
  background: #fdb913;
  box-shadow: 0 0 20px rgba(253, 185, 19, 0.6);
}

.worldcup-parking__card:hover {
  transform: translateY(-8px);
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.15);
  box-shadow: 
    0 35px 70px -15px rgba(0,0,0,0.7),
    0 0 40px -10px rgba(253, 185, 19, 0.2);
}

.worldcup-parking__badge { flex-shrink: 0; }
.worldcup-parking__badge svg { width: 80px; height: 80px; }
.worldcup-parking__badge svg circle { stroke: #fdb913; stroke-width: 2; fill: rgba(253, 185, 19, 0.1); }
.worldcup-parking__badge svg text { fill: #fdb913; font-weight: 900; font-size: 24px; }

.worldcup-parking__details { flex: 1; }
.worldcup-parking__price { font-size: 2.5rem; font-weight: 900; color: #fdb913; margin-bottom: 12px; line-height: 1; letter-spacing: -0.02em; }
.worldcup-parking__address { color: #fff; font-size: 1.2rem; font-weight: 600; margin-bottom: 12px; }
.worldcup-parking__notes { color: rgba(255,255,255,0.6); font-size: 1.05rem; }
.worldcup-parking__link a {
  display: inline-flex; align-items: center; gap: 8px;
  color: #fdb913; font-weight: 800; text-transform: uppercase; font-size: 0.95rem; letter-spacing: 0.05em; margin-top: 16px;
  transition: all 0.3s ease;
}
.worldcup-parking__link a:hover { color: #fff; transform: translateX(4px); text-decoration: none; }

.worldcup-pricing__highlight {
  background: linear-gradient(135deg, rgba(253, 185, 19, 0.1) 0%, transparent 100%);
  border: 1px solid rgba(253, 185, 19, 0.2);
  border-radius: 32px;
  padding: 56px;
  max-width: 760px;
  margin: 0 auto 40px;
  text-align: center;
  position: relative;
  box-shadow: 0 20px 50px -10px rgba(253, 185, 19, 0.15);
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  /* Fix #4: Removed backdrop-filter */
}
    
.worldcup-pricing__highlight:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 40px 80px -10px rgba(253, 185, 19, 0.25);
  border-color: rgba(253, 185, 19, 0.5);
}

.worldcup-pricing__highlight-text {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 900;
  color: #fdb913;
  letter-spacing: -0.03em;
  text-shadow: 0 0 40px rgba(253, 185, 19, 0.5);
  line-height: 1.1;
}

/* ===== TRIP PLANNER (DASHBOARD UI) ===== */

.worldcup-trip-planner {
  background: rgba(15, 23, 42, 0.4);
  /* Fix #4: Removed backdrop-filter */
  border-radius: 32px;
  padding: 56px;
  max-width: 1200px;
  margin: 0 auto;
  border: 1px solid rgba(255, 255, 255, 0.05);
  box-shadow: 0 30px 60px -15px rgba(0,0,0,0.6);
  position: relative;
}

.worldcup-trip-planner::before {
  content: ''; position: absolute; top: 0; left: 56px; right: 56px; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
}

.worldcup-trip-planner__header { margin-bottom: 40px; display: flex; align-items: center; gap: 20px; }
.worldcup-trip-planner__icon {
  width: 64px; height: 64px; border-radius: 16px;
  background: linear-gradient(135deg, #0066ff, #3b82f6);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 10px 20px rgba(0, 102, 255, 0.4);
}
.worldcup-trip-planner__icon svg { width: 32px; height: 32px; color: #fff; }
.worldcup-trip-planner__title { font-size: 2.2rem; font-weight: 900; color: #fff; margin: 0 0 4px; letter-spacing: -0.02em; }
.worldcup-trip-planner__subtitle { font-size: 1.1rem; color: rgba(255,255,255,0.6); margin: 0; }

.worldcup-trip-planner__form { margin-bottom: 40px; }
.worldcup-trip-planner__input-row { display: flex; gap: 16px; }

.worldcup-trip-planner__input {
  flex: 1;
  background: rgba(0,0,0,0.4);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 16px;
  padding: 20px 28px;
  font-size: 1.1rem;
  color: #fff;
  transition: all 0.3s ease;
  box-shadow: inset 0 2px 4px rgba(0,0,0,0.5);
}

.worldcup-trip-planner__input:focus {
  outline: none;
  border-color: #0066ff;
  box-shadow: 0 0 0 4px rgba(0, 102, 255, 0.2), inset 0 2px 4px rgba(0,0,0,0.5);
  background: rgba(0,0,0,0.6);
}

/* Fix #6: Explicit placeholder styling for dark bg */
.worldcup-trip-planner__input::placeholder {
  color: rgba(255, 255, 255, 0.35);
}

.worldcup-trip-planner__btn {
  padding: 20px 48px;
  background: linear-gradient(135deg, #0066ff 0%, #3b82f6 100%);
  color: #fff;
  border-radius: 16px;
  font-weight: 900;
  font-size: 1.1rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  border: none;
  box-shadow: 0 10px 25px -5px rgba(0, 102, 255, 0.5);
  cursor: pointer;
}

.worldcup-trip-planner__btn:hover {
  background: linear-gradient(135deg, #3b82f6 0%, #60a5fa 100%);
  box-shadow: 0 20px 40px -5px rgba(0, 102, 255, 0.7);
  transform: translateY(-4px);
}

.worldcup-trip-planner__map-container {
  border-radius: 20px;
  border: 1px solid rgba(255,255,255,0.1);
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0,0,0,0.4);
  margin-bottom: 32px;
}
.worldcup-trip-planner__map { width: 100%; height: 500px; }

/* Trip Planner Results */
.worldcup-trip-planner__results {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 32px;
}

.worldcup-trip-planner__summary {
  background: linear-gradient(90deg, rgba(0, 102, 255, 0.15) 0%, transparent 100%);
  border-left: 4px solid #0066ff;
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 24px;
}
.worldcup-trip-planner__summary-time { font-size: 1.5rem; font-weight: 800; color: #fff; }
.worldcup-trip-planner__summary-time strong { color: #0066ff; }
.worldcup-trip-planner__summary-dist { font-size: 1rem; color: rgba(255,255,255,0.6); margin-top: 8px; }

.worldcup-trip-planner__steps { list-style: none; padding: 0; margin: 0; }
.worldcup-trip-planner__step {
  display: flex; gap: 20px; padding: 20px 0;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.worldcup-trip-planner__step:last-child { border-bottom: none; }

.worldcup-trip-planner__step--vta {
  background: rgba(0, 102, 255, 0.05);
  border-radius: 16px;
  padding: 24px;
  margin: 8px -24px;
  border: 1px solid rgba(0, 102, 255, 0.1);
}

.worldcup-trip-planner__step-icon {
  width: 40px; height: 40px; border-radius: 50%;
  background: rgba(255,255,255,0.1); display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; color: #fff;
}
.worldcup-trip-planner__step--vta .worldcup-trip-planner__step-icon {
  background: #0066ff; box-shadow: 0 0 15px rgba(0, 102, 255, 0.5);
}

.worldcup-trip-planner__step-mode { font-size: 1.1rem; font-weight: 700; color: #fff; }
.worldcup-trip-planner__step-instructions { font-size: 1rem; color: rgba(255,255,255,0.7); margin-top: 4px; }
.worldcup-trip-planner__route-badge, .worldcup-trip-planner__vta-badge {
  display: inline-block; padding: 4px 10px; border-radius: 6px; font-size: 0.85rem; font-weight: 800; margin: 0 4px;
}
.worldcup-trip-planner__vta-badge { background: #0066ff; color: #fff; }

.worldcup-trip-planner__gmaps-link { text-align: center; margin-top: 32px; }
.worldcup-trip-planner__gmaps-link a {
  display: inline-flex; align-items: center; gap: 8px; padding: 16px 32px;
  background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1); border-radius: 100px;
  color: #fff; font-weight: 800; text-transform: uppercase; letter-spacing: 0.05em; text-decoration: none;
  transition: all 0.3s ease;
}
.worldcup-trip-planner__gmaps-link a:hover {
  background: rgba(255,255,255,0.1); border-color: rgba(255,255,255,0.2); transform: translateY(-2px);
}

/* ===== SERVICE MAP ===== */

#worldcup-map {
  border-radius: 24px;
  border: 1px solid rgba(255,255,255,0.1);
  box-shadow: 0 25px 50px -12px rgba(0,0,0,0.5);
  min-height: 500px;
}

.worldcup-map__legend {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px;
  margin-top: 32px; padding: 0; list-style: none;
}

.worldcup-map__legend-item {
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: 16px;
  padding: 24px;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.worldcup-map__legend-item::before {
  content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: #555;
  transition: all 0.3s ease;
}
.worldcup-map__legend-item--transit::before { background: #0066ff; }
.worldcup-map__legend-item--stadium::before { background: #fdb913; }
.worldcup-map__legend-item--parking::before { background: #22c55e; }

.worldcup-map__legend-item:hover {
  background: rgba(255,255,255,0.05);
  transform: translateY(-6px);
  box-shadow: 0 20px 40px -10px rgba(0,0,0,0.4);
  border-color: rgba(255,255,255,0.15);
}
.worldcup-map__legend-item:hover::before { width: 6px; box-shadow: 0 0 15px currentColor; }

.worldcup-map__legend-title { font-size: 1.2rem; font-weight: 800; color: #fff; margin-bottom: 8px; display: block; }
.worldcup-map__legend-description { font-size: 1rem; color: rgba(255,255,255,0.6); display: block; }

.worldcup-map__legend-type-label {
  display: inline-block; font-size: 0.75rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.1em;
  padding: 4px 12px; border-radius: 100px; margin-bottom: 12px;
}
.worldcup-map__legend-item--transit .worldcup-map__legend-type-label { background: rgba(0,102,255,0.2); color: #60a5fa; }
.worldcup-map__legend-item--stadium .worldcup-map__legend-type-label { background: rgba(253,185,19,0.2); color: #fdb913; }
.worldcup-map__legend-item--parking .worldcup-map__legend-type-label { background: rgba(34,197,94,0.2); color: #4ade80; }

/* Google Maps InfoWindow (Dark Mode) */
.gm-style .gm-style-iw-c {
  background: #0f172a !important;
  border-radius: 16px !important;
  padding: 0 !important;
  box-shadow: 0 25px 50px -12px rgba(0,0,0,0.8) !important;
  border: 1px solid rgba(255,255,255,0.1) !important;
}
.gm-style .gm-style-iw-d { overflow: auto !important; padding: 0 !important; }
.gm-style .gm-style-iw-tc::after { background: #0f172a !important; border: 1px solid rgba(255,255,255,0.1) !important; }
.gm-style .gm-style-iw-c button.gm-ui-hover-effect { filter: invert(1); top: 12px !important; right: 12px !important; }

.worldcup-map__iw-header { background: linear-gradient(135deg, #0066ff, #1e3a8a); padding: 16px 20px; }
.worldcup-map__iw-type-badge { color: #fff; font-weight: 800; font-size: 0.8rem; letter-spacing: 0.05em; display: flex; align-items: center; gap: 8px; }
.worldcup-map__iw-type-badge svg { color: #fdb913; }
.worldcup-map__iw-body { padding: 20px; background: #0f172a; }
.worldcup-map__iw-title { color: #fff; font-size: 1.2rem; font-weight: 800; margin: 0 0 8px; }
.worldcup-map__iw-desc { color: rgba(255,255,255,0.7); font-size: 0.95rem; margin: 0; line-height: 1.5; }
.worldcup-map__iw-footer { padding: 16px 20px; background: rgba(0,0,0,0.2); border-top: 1px solid rgba(255,255,255,0.05); }
.worldcup-map__iw-directions { color: #60a5fa; font-weight: 700; text-decoration: none; display: flex; align-items: center; gap: 6px; }
.worldcup-map__iw-directions:hover { color: #fff; }

/* Layout Builder fixes hidden labels */
.worldcup-section__body .field__label, .field--name-field-wc-bg-style { display: none; }
.worldcup-layout-content .layout { max-width: none; padding: 0; margin: 0; }
.worldcup-layout-content .layout__region { padding: 0; margin: 0; }
.worldcup-layout-content .block > .container { padding-left: 24px; padding-right: 24px; }

/* ===== RESPONSIVE ===== */

@media (max-width: 768px) {
  .worldcup-hero { min-height: 70vh; }
  .worldcup-hero__title { font-size: 3rem; }
  .worldcup-hero__subtitle { font-size: 0.9rem; letter-spacing: 0.2em; }
  .worldcup-section__inner { padding: 60px 16px; }
  .worldcup-section__heading { font-size: 2.2rem; }
  
  .worldcup-matches__grid { grid-template-columns: 1fr; }
  .worldcup-match-card { padding: 32px 24px; }
  .worldcup-match-card__title { font-size: 1.5rem; }
  
  .worldcup-parking__card { flex-direction: column; text-align: center; padding: 32px 24px; gap: 24px; }
  .worldcup-parking__card::before { width: 100%; height: 6px; top: 0; bottom: auto; left: 0; }
  .worldcup-parking__price { font-size: 2rem; }
  
  .worldcup-pricing__highlight { padding: 32px 24px; }
  .worldcup-pricing__highlight-text { font-size: 2.2rem; }
  
  .worldcup-trip-planner { padding: 32px 20px; }
  .worldcup-trip-planner__header { flex-direction: column; text-align: center; }
  .worldcup-trip-planner__input-row { flex-direction: column; }
  .worldcup-trip-planner__btn { width: 100%; }
  
  .worldcup-signup__heading { font-size: 2.2rem; }
  .worldcup-signup__button { padding: 16px 40px; font-size: 1rem; width: 100%; text-align: center; }
  
  .worldcup-map__legend { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  .worldcup-match-card, .worldcup-parking__card, .worldcup-pricing__highlight, .worldcup-trip-planner, .worldcup-signup__button, .worldcup-match-card__link {
    transition: none !important;
    transform: none !important;
  }
  /* Fix #10: Disable ALL animations for reduced-motion users */
  .worldcup-hero__title,
  .worldcup-hero__content,
  .worldcup-signup__button {
    animation: none !important;
  }
  .worldcup-page::before, .worldcup-signup::before { display: none; }
}

/* Trip Planner Interactive States */
.worldcup-trip-planner__error {
  margin-top: 16px; padding: 16px; background: rgba(239, 68, 68, 0.1); border: 1px solid rgba(239, 68, 68, 0.3); border-radius: 12px; color: #fca5a5; font-weight: 500; text-align: center;
}
.worldcup-trip-planner__loading {
  display: flex; align-items: center; justify-content: center; gap: 16px; padding: 48px 0; color: rgba(255,255,255,0.6); font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em;
}
.worldcup-trip-planner__spinner {
  width: 32px; height: 32px; border: 4px solid rgba(255,255,255,0.1); border-top-color: #0066ff; border-radius: 50%; animation: wc-spin 1s linear infinite;
}
@keyframes wc-spin { to { transform: rotate(360deg); } }

.worldcup-trip-planner__step-transit-detail { margin-top: 8px; font-size: 0.95rem; color: #fff; }
.worldcup-trip-planner__step-from, .worldcup-trip-planner__step-to { font-weight: 700; color: #60a5fa; }
.worldcup-trip-planner__step-arrow { color: rgba(255,255,255,0.3); margin: 0 6px; }
.worldcup-trip-planner__step-meta { margin-top: 4px; font-size: 0.85rem; color: rgba(255,255,255,0.5); font-weight: 500; }
.worldcup-trip-planner__alt-count { font-style: italic; color: rgba(255,255,255,0.4); }
.worldcup-trip-planner__step-dist { color: rgba(255,255,255,0.5); font-size: 0.9rem; }

/* ==========================================================================
   ENTRANCE ANIMATIONS & POLISH
   ========================================================================== */

/* Hero title shimmer sweep — luxury metallic highlight */
@keyframes wc-shimmer {
  0% { background-position: -200% center; }
  100% { background-position: 200% center; }
}

.worldcup-hero__title {
  background-size: 200% auto;
  background-image: linear-gradient(
    90deg,
    #ffffff 0%,
    #94a3b8 25%,
    #ffffff 50%,
    #94a3b8 75%,
    #ffffff 100%
  );
  animation: wc-shimmer 8s linear infinite;
}

/* Hero fade-in on load */
@keyframes wc-hero-enter {
  from { opacity: 0; transform: translateY(40px); }
  to   { opacity: 1; transform: translateY(0); }
}

.worldcup-hero__content {
  animation: wc-hero-enter 1.2s cubic-bezier(0.16, 1, 0.3, 1) 0.3s both;
}

/* Fix #3: Removed separate subtitle/intro animations — they're children of
   __content which already fades in, causing a compounded double-offset. */

/* Scroll-reveal: sections fade up when they enter view */
@keyframes wc-fade-up {
  from { opacity: 0; transform: translateY(60px); }
  to   { opacity: 1; transform: translateY(0); }
}

.worldcup-section__inner {
  animation: wc-fade-up 0.8s cubic-bezier(0.16, 1, 0.3, 1) both;
  animation-timeline: view();
  animation-range: entry 0% entry 30%;
}

/* Fix #9: Removed dead .worldcup-section + .worldcup-section::before rule —
   Layout Builder structure means adjacent .worldcup-section elements never occur. */

/* Match card staggered entrance via scroll timeline */
.worldcup-match-card {
  animation: wc-fade-up 0.7s cubic-bezier(0.16, 1, 0.3, 1) both;
  animation-timeline: view();
  animation-range: entry 0% entry 25%;
}

/* Subtle inner glow ring on match cards on hover */
.worldcup-match-card::after {
  content: '';
  position: absolute;
  inset: 1px;
  border-radius: 23px;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.5s ease;
  box-shadow: inset 0 0 30px rgba(0, 102, 255, 0.08);
}

.worldcup-match-card:hover::after { opacity: 1; }
.worldcup-match-card--final:hover::after,
.worldcup-match-card--semifinal:hover::after {
  box-shadow: inset 0 0 30px rgba(253, 185, 19, 0.08);
}

/* Legend items entrance */
.worldcup-map__legend-item {
  animation: wc-fade-up 0.6s cubic-bezier(0.16, 1, 0.3, 1) both;
  animation-timeline: view();
  animation-range: entry 0% entry 25%;
}

/* Signup pulsing glow behind button */
@keyframes wc-pulse-glow {
  0%, 100% { box-shadow: 0 15px 35px -5px rgba(0, 102, 255, 0.5); }
  50%      { box-shadow: 0 20px 45px -5px rgba(0, 102, 255, 0.7), 0 0 60px -10px rgba(0, 102, 255, 0.3); }
}

.worldcup-signup__button {
  animation: wc-pulse-glow 3s ease-in-out infinite;
}

.worldcup-signup__button:hover {
  animation: none; /* Stop pulse on hover, let the hover state take over */
}

/* Smooth focus rings for accessibility */
.worldcup-match-card__link:focus-visible,
.worldcup-signup__button:focus-visible,
.worldcup-trip-planner__btn:focus-visible,
.worldcup-section__body .field--name-field-link a:focus-visible,
.worldcup-parking__link a:focus-visible,
.worldcup-trip-planner__gmaps-link a:focus-visible,
.worldcup-trip-planner__input:focus-visible {
  outline: 2px solid #60a5fa;
  outline-offset: 4px;
}

/* Footer area: fade the bottom edge to black */
.worldcup-signup::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.06), transparent);
}

/* Active / pressed state micro-feedback */
.worldcup-match-card__link:active,
.worldcup-signup__button:active,
.worldcup-trip-planner__btn:active,
.worldcup-section__body .field--name-field-link a:active {
  transform: translateY(0) scale(0.98);
  transition-duration: 0.1s;
}

/* Gold accent text for emphasis spans in body content */
.worldcup-section__body strong,
.worldcup-section__body b {
  color: #fdb913;
  font-weight: 800;
}

/* Parking card scroll reveal */
.worldcup-parking__card {
  animation: wc-fade-up 0.8s cubic-bezier(0.16, 1, 0.3, 1) both;
  animation-timeline: view();
  animation-range: entry 0% entry 25%;
}

/* Pricing highlight entrance with scale */
@keyframes wc-scale-in {
  from { opacity: 0; transform: translateY(40px) scale(0.95); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

.worldcup-pricing__highlight {
  animation: wc-scale-in 0.8s cubic-bezier(0.16, 1, 0.3, 1) both;
  animation-timeline: view();
  animation-range: entry 0% entry 30%;
}

/* Trip planner entrance */
.worldcup-trip-planner {
  animation: wc-fade-up 0.8s cubic-bezier(0.16, 1, 0.3, 1) both;
  animation-timeline: view();
  animation-range: entry 0% entry 25%;
}

/* Disable scroll-driven animations for browsers that don't support them —
   they'll just appear instantly, which is fine. */
@supports not (animation-timeline: view()) {
  .worldcup-section__inner,
  .worldcup-match-card,
  .worldcup-map__legend-item,
  .worldcup-parking__card,
  .worldcup-pricing__highlight,
  .worldcup-trip-planner {
    animation: none;
    opacity: 1;
    transform: none;
  }
}
