/* COUNT THE CATCH — tournaments (explore) page extras (page-specific; styles.css untouched) */

/* ---------- filter bar ---------- */
.filter-bar {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr 1fr;
  gap: 12px;
  align-items: end;
  margin-bottom: 30px;
}
.filter-bar .field { margin-bottom: 0; }
.filter-bar .field label {
  display: block; font-size: 11px; font-weight: 800; letter-spacing: .1em;
  text-transform: uppercase; color: var(--muted); margin-bottom: 8px;
}
.filter-bar .go { display: flex; gap: 10px; }
.filter-bar .go .btn { flex: 1; white-space: nowrap; }
.filter-bar .clear-btn { white-space: nowrap; }
@media (max-width: 1100px) { .filter-bar { grid-template-columns: 1fr 1fr 1fr; } }
@media (max-width: 700px)  { .filter-bar { grid-template-columns: 1fr 1fr; } }

.result-line {
  display: flex; align-items: center; justify-content: space-between;
  gap: 14px; flex-wrap: wrap; margin-bottom: 18px;
}
.result-line .count { font-size: 13px; color: var(--muted); font-weight: 600; }
.sort-row { display: flex; align-items: center; gap: 12px; }
.sort-row label { font-size: 12px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
.sort-row .select { width: auto; min-width: 190px; }
.view-toggle { margin-left: 0; }

/* ---------- featured banner + map ---------- */
.feat-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 18px; align-items: stretch; }
@media (max-width: 900px) { .feat-grid { grid-template-columns: 1fr; } }

.feat-banner {
  position: relative; overflow: hidden; border-radius: var(--radius);
  border: 1px solid var(--border); min-height: 340px; display: flex;
}
.feat-banner .fb-bg { position: absolute; inset: 0; }
.feat-banner .fb-bg img { width: 100%; height: 100%; object-fit: cover; }
.feat-banner .fb-shade {
  position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(5,8,5,.92) 0%, rgba(5,8,5,.62) 45%, rgba(5,8,5,.18) 100%),
              linear-gradient(0deg, rgba(5,8,5,.85), transparent 60%);
}
.feat-banner .fb-body {
  position: relative; z-index: 2; display: flex; width: 100%;
  padding: 30px; gap: 24px; align-items: center; justify-content: space-between; flex-wrap: wrap;
}
.feat-banner h3 {
  font-family: var(--font-display); font-style: italic; text-transform: uppercase;
  font-size: clamp(30px, 3.4vw, 46px); color: #fff; margin: 14px 0 12px; line-height: 1.02;
}
.feat-banner .fb-meta { display: flex; flex-direction: column; gap: 8px; font-size: 13.5px; color: #d5dcd3; }
.feat-banner .fb-meta span { display: flex; align-items: center; gap: 9px; }
.feat-banner .fb-meta svg { width: 15px; height: 15px; color: var(--lime); flex: none; }
.feat-banner .fb-script {
  font-family: var(--font-script); font-size: clamp(26px, 2.6vw, 38px); color: #fff;
  line-height: 1.1; transform: rotate(-4deg); text-shadow: 0 2px 14px rgba(0,0,0,.6);
}
.feat-banner .fb-right { text-align: right; display: flex; flex-direction: column; gap: 14px; align-items: flex-end; }
.feat-banner .fb-stats { display: flex; gap: 28px; }
.feat-banner .fb-stats .amt { font-size: 30px; font-weight: 800; color: var(--lime); }
.feat-banner .fb-stats .lbl { font-size: 10.5px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-top: 4px; }
@media (max-width: 700px) { .feat-banner .fb-right { align-items: flex-start; text-align: left; } }

.map-card {
  background: linear-gradient(180deg, #0c1710, #080d09);
  border: 1px solid var(--border); border-radius: var(--radius);
  padding: 22px; display: flex; flex-direction: column;
}
.map-card h3 {
  font-family: var(--font-display); font-style: italic; text-transform: uppercase;
  font-size: 22px; color: #fff; margin: 14px 0 8px;
}
.map-card p { font-size: 12.5px; color: var(--muted); line-height: 1.6; margin-bottom: 14px; }
.map-card .btn { margin-top: auto; align-self: flex-start; }
.usa-map { width: 100%; height: auto; display: block; }
.usa-map .us-land { fill: #12281a; stroke: rgba(166,255,0,.28); stroke-width: 1.5; }
.usa-map .us-inset { fill: #0e1c13; stroke: rgba(166,255,0,.2); stroke-width: 1; }
.usa-map .pin { cursor: pointer; }
.usa-map .pin circle.dot {
  fill: rgba(232,238,230,.5); stroke: #070b08; stroke-width: 1.5;
  transition: fill .15s ease, r .15s ease;
}
.usa-map .pin:hover circle.dot { fill: var(--lime); }
.usa-map .pin.has circle.dot { fill: var(--lime); }
.usa-map .pin text {
  fill: #0a0f0a; font-size: 9px; font-weight: 800; text-anchor: middle;
  pointer-events: none; font-family: var(--font-sans);
}
.usa-map .pin .st-lbl {
  fill: rgba(232,238,230,.55); font-size: 8px; font-weight: 700;
  text-anchor: middle; pointer-events: none; font-family: var(--font-sans);
}
.map-card.flash { animation: map-flash 1.2s ease; }
@keyframes map-flash {
  0%, 100% { box-shadow: none; }
  30% { box-shadow: 0 0 0 3px rgba(166,255,0,.45); }
}

/* ---------- explore grid cards ---------- */
#tournament-grid.explore-grid { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1100px) { #tournament-grid.explore-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 700px)  { #tournament-grid.explore-grid { grid-template-columns: 1fr; } }

.t-foot2 {
  display: flex; gap: 18px; margin: 12px 0 14px; padding-top: 12px;
  border-top: 1px solid rgba(30,42,30,.6);
}
.t-foot2 .mini .amt { font-size: 21px; font-weight: 800; color: var(--lime); }
.t-foot2 .mini .amt.plain { color: #e8eee6; font-size: 15px; font-weight: 700; }
.t-foot2 .mini .lbl { font-size: 10px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-top: 3px; }
.t-card .btn-block { width: 100%; justify-content: center; }

/* list layout rows (styles.css handles .list-layout basics) */
.list-layout .t-card .in { justify-content: center; }
.list-layout .t-card .btn-block { width: auto; }

/* ---------- pagination ---------- */
.pagination { flex-wrap: wrap; }
.pagination button:disabled { opacity: .35; cursor: default; }
.pagination button:disabled:hover { border-color: var(--border); }
.pagination .ellipsis { color: var(--muted); padding: 0 4px; font-weight: 700; align-self: center; }

/* ---------- empty / error ---------- */
.explore-empty, .explore-err {
  grid-column: 1 / -1; text-align: center; padding: 56px 28px;
  border: 1px dashed var(--border); border-radius: var(--radius);
  background: rgba(166,255,0,.02); color: var(--muted);
}
.explore-empty h3, .explore-err h3 {
  font-family: var(--font-display); font-style: italic; text-transform: uppercase;
  color: #e8eee6; font-size: 24px; margin-bottom: 10px;
}
.explore-empty p, .explore-err p { font-size: 14px; margin-bottom: 20px; }
.explore-empty .btn-row, .explore-err .btn-row { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* loading skeletons (shared look with home.css) */
.skel {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--card);
}
.skel .sk-photo { aspect-ratio: 16/9; }
.skel .sk-line { height: 14px; border-radius: 7px; margin: 14px 18px 0; }
.skel .sk-line.w60 { width: 60%; }
.skel .sk-line.w40 { width: 40%; margin-bottom: 18px; }
.skel .sk-photo, .skel .sk-line {
  background: linear-gradient(90deg, #0d130d 25%, #162016 50%, #0d130d 75%);
  background-size: 200% 100%;
  animation: sk-shimmer 1.4s infinite linear;
}
@keyframes sk-shimmer { to { background-position: -200% 0; } }
