/* =========================================================
  GLOBAL HEADER
========================================================= */

.wc-topbar {
  border-bottom: 1px solid #e5e7eb;
  background: #ffffff;
}

.topbar-grid {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 16px;
  padding: 12px 24px;
}

.brand img {
  height: 28px;
  max-height: 32px;
  width: auto;
  display: block;
}

.topbar-title h1 {
  margin: 0;
  text-align: center;
  font-size: 1.6rem;
  font-weight: 600;
  color: #111827;
}

.topbar-nav a {
  margin-left: 14px;
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  color: #2563eb;
}

.topbar-nav a:hover {
  text-decoration: underline;
}

/* =========================================================
  MAP LAYOUT
========================================================= */

.wc-map-layout {
  display: grid;
  grid-template-columns: 1fr 380px;
  min-height: calc(100vh - 72px);
}

#map {
  width: 100%;
  height: 100%;
  min-height: 420px;
}

/* =========================================================
  RIGHT PANEL (CITIES + QR)
========================================================= */

.wc-city-panel {
  background: #0f3d2e;
  color: #ffffff;
  padding: 18px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* Header text */
.wc-city-panel h2 {
  margin: 0 0 6px 0;
  font-size: 1.45rem;
}

.panel-subtitle {
  font-size: 0.85rem;
  color: #d1fae5;
  margin-bottom: 6px;
}

.city-instruction {
  font-size: 0.78rem;
  color: #a7f3d0;
  font-style: italic;
  margin-bottom: 10px;
}

/* =========================================================
  CITY LIST — TWO COLUMNS ✅
========================================================= */

.city-list {
  list-style: none;
  padding: 0;
  margin: 0 0 14px 0;

  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 14px;
  row-gap: 2px;

  /* ✅ Constrain height so QR stays visible */
  max-height: 260px;
}

.city-list li {
  font-size: 0.82rem;
  font-weight: 700;
  color: #34d399; /* Emerald */
  cursor: pointer;
  line-height: 1.4;
}

.city-list li:hover {
  text-decoration: underline;
}

/* =========================================================
  MAP MARKERS
========================================================= */

.city-pin {
  font-size: 13px;
  white-space: nowrap;
}

.city-pin span {
  margin-left: 4px;
  font-weight: 500;
}

/* =========================================================
  QR BLOCK — FIXED & VISIBLE ✅
========================================================= */

.wc-qr-box {
  margin-top: auto; /* ✅ pushes QR to bottom, always visible */
  background: #ffffff;
  color: #111827;
  border-radius: 14px;
  padding: 18px;
  text-align: center;
}

.wc-qr-box strong {
  display: block;
  margin-bottom: 6px;
  font-size: 1rem;
}

.wc-qr-box p {
  font-size: 0.8rem;
  color: #475569;
  margin-bottom: 10px;
}

/* ✅ QR IMAGE — THIS FIXES THE BROKEN ICON */
.wc-qr-box img {
  width: 140px;
  height: auto;
  display: block;
  margin: 6px auto;
}

.qr-footnote {
  font-size: 0.72rem;
  color: #64748b;
}

/* =========================================================
  STADIUM PAGE — SAFE (UNTOUCHED)
========================================================= */

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

.stadium-box {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 22px;
}

/* =========================================================
  MOBILE FALLBACK
========================================================= */

@media (max-width: 900px) {
  .wc-map-layout {
    grid-template-columns: 1fr;
  }

  .wc-city-panel {
    order: -1;
  }

  .city-list {
    grid-template-columns: 1fr;
    max-height: none;
  }

  #map {
    min-height: 360px;
  }
}
/* =========================================================
   DEEP LINK HIGHLIGHT (Stadium anchors)
========================================================= */
.stadium-box.highlight {
  border-color: #2563EB;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}
