/* ── FIFA World Cup 2026 Section ────────────────────────────────────────── */
.wc-section {
  padding: 28px 0 0;
  background: linear-gradient(135deg, #0a1628 0%, #0d2040 50%, #0a1628 100%);
  position: relative;
  overflow: hidden;
}
.wc-section::before {
  content: '⚽';
  position: absolute;
  font-size: 320px;
  opacity: 0.03;
  top: -60px;
  right: -60px;
  pointer-events: none;
}

/* Header */
.wc-header {
  text-align: center;
  padding: 0 24px 18px;
}
.wc-badge {
  display: inline-block;
  background: linear-gradient(135deg, #c9a227, #f0c040);
  color: #000;
  font-weight: 700;
  font-size: 0.7rem;
  padding: 3px 10px;
  border-radius: 20px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.wc-title {
  color: #fff;
  font-size: 1.25rem;
  font-weight: 800;
  margin: 0 0 4px;
  line-height: 1.2;
}
.wc-subtitle {
  color: rgba(255,255,255,0.5);
  font-size: 0.78rem;
  line-height: 1.4;
  margin: 0;
}

/* Carousel */
.wc-carousel-wrap {
  overflow: hidden;
  width: 100%;
  max-width: 100%;
  cursor: grab;
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 6%, black 94%, transparent 100%);
  mask-image: linear-gradient(to right, transparent 0%, black 6%, black 94%, transparent 100%);
  display: block;
}
.wc-carousel-wrap:active { cursor: grabbing; }
.wc-carousel-wrap:hover .wc-carousel {
  animation-play-state: paused;
}

.wc-carousel {
  display: flex;
  flex-wrap: nowrap;
  gap: 12px;
  padding: 8px 32px 18px;
  width: max-content;
  animation: wcScroll 50s linear infinite;
  will-change: transform;
}

@keyframes wcScroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* Individual cards */
.wc-card {
  flex-shrink: 0;
  width: 210px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 14px;
  padding: 14px 14px 12px;
  transition: background 0.2s, transform 0.2s;
  position: relative;
  overflow: hidden;
}
.wc-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.04) 0%, transparent 60%);
  pointer-events: none;
}
.wc-card:hover {
  background: rgba(255,255,255,0.1);
  transform: translateY(-4px);
}

.wc-final {
  border-color: rgba(201,162,39,0.5);
  background: rgba(201,162,39,0.08);
}
.wc-final:hover {
  background: rgba(201,162,39,0.14);
}

.wc-card-badge {
  display: inline-block;
  background: linear-gradient(135deg, #c9a227, #f0c040);
  color: #000;
  font-size: 0.65rem;
  font-weight: 800;
  padding: 3px 10px;
  border-radius: 20px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.wc-city-emoji {
  font-size: 1.6rem;
  margin-bottom: 5px;
  line-height: 1;
}

.wc-card h3 {
  color: #fff;
  font-size: 0.88rem;
  font-weight: 700;
  margin: 0 0 4px;
  line-height: 1.2;
}

.wc-stadium {
  color: rgba(255,255,255,0.55);
  font-size: 0.72rem;
  margin: 0 0 3px;
}

.wc-capacity {
  color: rgba(255,255,255,0.4);
  font-size: 0.68rem;
  margin: 0 0 5px;
}

.wc-matches {
  color: rgba(255,255,255,0.7);
  font-size: 0.73rem;
  margin: 0 0 8px;
  line-height: 1.4;
}
.wc-matches strong { color: #f0c040; }

.wc-tips {
  display: flex;
  flex-direction: column;
  gap: 4px;
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 7px;
}
.wc-tips span {
  color: rgba(255,255,255,0.45);
  font-size: 0.68rem;
  line-height: 1.3;
}

/* Trip planner grid */
.wc-planner {
  padding: 22px 0 32px;
}
.wc-planner h3 {
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
  margin: 0 0 14px;
  text-align: center;
}
.wc-planner-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.wc-tip-card {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.09);
  border-radius: 10px;
  padding: 12px 14px;
  transition: background 0.2s;
}
.wc-tip-card:hover { background: rgba(255,255,255,0.09); }
.wc-tip-icon {
  font-size: 1.2rem;
  margin-bottom: 5px;
}
.wc-tip-card h4 {
  color: #fff;
  font-size: 0.82rem;
  font-weight: 700;
  margin: 0 0 4px;
}
.wc-tip-card p {
  color: rgba(255,255,255,0.45);
  font-size: 0.73rem;
  line-height: 1.45;
  margin: 0;
}

/* Touch support — always on */
.wc-carousel-wrap {
  touch-action: pan-x;
  -webkit-overflow-scrolling: touch;
}

/* ── Tablet ── */
@media (max-width: 1024px) {
  .wc-planner-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 900px) {
  .wc-title { font-size: 1.2rem; }
  .wc-card { width: 200px; }
  .wc-planner-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ── Mobile ── */
@media (max-width: 768px) {
  /* World Cup section */
  .wc-section { padding: 20px 0 0; }
  .wc-header { padding: 0 20px 16px; }
  .wc-title { font-size: 1.1rem; }
  .wc-subtitle { font-size: 0.76rem; }
  .wc-carousel { padding: 8px 20px 16px; gap: 10px; }
  .wc-card { width: 185px; padding: 13px 13px 11px; border-radius: 12px; }
  .wc-planner { padding: 20px 0 28px; }
  .wc-planner h3 { font-size: 0.95rem; margin-bottom: 14px; }
  .wc-planner-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .wc-tip-card { padding: 12px 14px; }

  /* USA hero */
  .usa-hero { min-height: 100dvh; }

  /* State search input — full width */
  .state-search-wrap { width: 100%; }
  .state-search-wrap input { width: 100%; font-size: 16px; min-height: 44px; } /* 16px prevents iOS zoom */
  .state-dropdown { width: 100%; }

  /* Place cards */
  .place-cards-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .top-places-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
}

/* ── Small phones ── */
@media (max-width: 540px) {
  .wc-card { width: 168px; }
  .wc-city-emoji { font-size: 1.35rem; }
  .wc-card h3 { font-size: 0.82rem; }
  .wc-planner-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
  .place-cards-grid { grid-template-columns: 1fr; }
  .top-places-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 400px) {
  .wc-card { width: 155px; padding: 11px 11px 9px; }
  .wc-carousel { padding: 6px 14px 14px; gap: 8px; }
  .wc-planner-grid { grid-template-columns: 1fr; }
  .top-places-grid { grid-template-columns: 1fr; }
}

/* Searchable state combobox */
.state-search-wrap {
  position: relative;
}

.state-search-wrap input {
  height: 42px;
  padding: 0 14px;
  border-radius: 10px;
  border: 1.5px solid var(--border);
  background: var(--surface);
  color: var(--text);
  font-size: 0.875rem;
  font-family: var(--font);
  width: 180px;
  transition: border-color 0.2s;
  outline: none;
}
.state-search-wrap input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(26,107,255,0.12);
}
.state-search-wrap input::placeholder { color: var(--text-muted); }

.state-dropdown {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  width: 220px;
  max-height: 280px;
  overflow-y: auto;
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: 12px;
  box-shadow: 0 16px 48px rgba(0,0,0,0.5);
  z-index: 400;
  display: none;
}
.state-dropdown.open { display: block; }

.state-option {
  padding: 9px 14px;
  cursor: pointer;
  font-size: 0.875rem;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 8px;
  transition: background 0.12s;
}
.state-option:hover, .state-option.highlighted {
  background: rgba(26,107,255,0.12);
  color: #fff;
}
.state-option.selected {
  background: rgba(26,107,255,0.2);
  font-weight: 600;
}
.state-option-clear {
  padding: 8px 14px;
  font-size: 0.8rem;
  color: var(--text-muted);
  cursor: pointer;
  border-bottom: 1px solid var(--border);
}
.state-option-clear:hover { color: var(--primary); }

/* USA page overrides */
.usa-hero { position: relative; height: 100vh; min-height: 600px; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.usa-hero-bg { position: absolute; inset: 0; }
.usa-hero-bg .hero-slide { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: 0; transition: opacity 1s ease; }
.usa-hero-bg .hero-slide.active { opacity: 1; }

.navbar .nav-links a.active {
  color: var(--primary);
  font-weight: 600;
}

/* Region badge on place cards */
.badge-region {
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(4px);
}

/* Top places chips on state cards */
.card-places {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-bottom: 8px;
}
.place-chip {
  font-size: 0.72rem;
  padding: 3px 8px;
  border-radius: 20px;
  background: rgba(26,107,255,0.1);
  border: 1px solid rgba(26,107,255,0.25);
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 160px;
}

/* Place picture cards on detail page */
.place-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
  margin-top: 12px;
}
.place-pic-card {
  border-radius: 12px;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--border);
  transition: transform 0.2s, box-shadow 0.2s;
}
.place-pic-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.4);
}
.place-pic-wrap {
  position: relative;
  height: 150px;
  overflow: hidden;
}
.place-pic-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s;
}
.place-pic-card:hover .place-pic-img { transform: scale(1.05); }
.place-pic-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.65) 0%, transparent 60%);
}
.place-pic-name {
  position: absolute;
  bottom: 10px;
  left: 12px;
  right: 12px;
  font-size: 0.9rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.2;
}
.place-pic-desc {
  padding: 10px 12px;
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin: 0;
}

/* Top places grid on detail page */
.top-places-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 10px;
  margin-top: 8px;
}
.top-place-item {
  background: rgba(26,107,255,0.08);
  border: 1px solid rgba(26,107,255,0.2);
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 0.875rem;
  color: var(--text);
  font-weight: 500;
  transition: background 0.15s, border-color 0.15s;
}
.top-place-item:hover {
  background: rgba(26,107,255,0.16);
  border-color: var(--primary);
}

.wc-full-guide-btn {
  display: inline-block;
  background: linear-gradient(135deg, #16a34a, #15803d);
  color: #fff;
  font-weight: 700;
  font-size: 1rem;
  padding: 14px 32px;
  border-radius: 50px;
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 4px 20px rgba(22,163,74,0.35);
}
.wc-full-guide-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(22,163,74,0.5);
  color: #fff;
}

/* World Cup badge on state cards */
.badge-wc {
  background: linear-gradient(135deg, #16a34a, #15803d);
  color: #fff;
  font-weight: 700;
  letter-spacing: 0.02em;
}

/* World Cup callout on state detail page */
.wc-state-callout {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  background: linear-gradient(135deg, rgba(22,163,74,0.12), rgba(21,128,61,0.06));
  border: 1px solid rgba(22,163,74,0.35);
  border-radius: 14px;
  padding: 20px 24px;
  margin-bottom: 28px;
}
.wc-callout-icon {
  font-size: 2rem;
  line-height: 1;
  flex-shrink: 0;
}
.wc-callout-body strong {
  display: block;
  color: #4ade80;
  font-size: 1rem;
  margin-bottom: 6px;
}
.wc-callout-body p {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin: 0 0 12px;
}
.wc-callout-btn {
  display: inline-block;
  background: #16a34a;
  color: #fff;
  padding: 7px 16px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s, transform 0.2s;
}
.wc-callout-btn:hover {
  background: #15803d;
  transform: translateY(-1px);
}

@media (max-width: 768px) {
  .season-grid-2col { grid-template-columns: 1fr !important; }
}
