/* ============================================================
   MEDC Invitational — Official Map Pool page
   ============================================================ */

.map-pool-wrap {
  padding: 24px 0 48px;
  max-width: 1100px;
  margin: 0 auto;
}

/* ---------- Hero / header ---------- */
.map-pool-hero {
  margin-bottom: 24px;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.95) 0%, rgba(13, 18, 35, 0.9) 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
}

.map-pool-hero__content {
  max-width: 720px;
}

.map-pool-hero__title {
  margin: 0 0 8px;
  font-size: clamp(24px, 3.2vw, 32px);
  font-weight: 800;
  letter-spacing: 0.03em;
  color: rgba(234, 240, 255, 0.98);
}

.map-pool-hero__subtitle {
  margin: 0 0 10px;
  font-size: 16px;
  color: rgba(183, 195, 230, 0.95);
  line-height: 1.45;
}

.map-pool-hero__helper {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
}

/* ---------- Map count + divider ---------- */
.map-pool-count {
  margin: 0 0 8px;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(147, 197, 253, 0.9);
}

.map-pool-divider {
  height: 1px;
  margin-bottom: 24px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.12), transparent);
}

/* ---------- Map grid ---------- */
.map-pool-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 32px;
}

.map-card {
  background: rgba(13, 18, 35, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  overflow: hidden;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.map-card:hover {
  border-color: rgba(96, 165, 250, 0.35);
  box-shadow: 0 0 24px rgba(59, 130, 246, 0.12);
  transform: translateY(-2px);
}

.map-card__thumb {
  position: relative;
  aspect-ratio: 16 / 10;
  background: linear-gradient(145deg, rgba(30, 41, 59, 0.9), rgba(15, 23, 42, 0.95));
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.map-card__thumb-placeholder {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(148, 163, 184, 0.4);
  position: relative;
  z-index: 0;
}

.map-card__thumb .map-card__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  z-index: 1;
}

.map-card__thumb .map-card__img[src=""],
.map-card__thumb .map-card__img:not([src]) {
  display: none;
}

/* Hide "Map" placeholder when an image is present (loaded or broken) */
.map-card__thumb:has(.map-card__img) .map-card__thumb-placeholder {
  display: none;
}

.map-card__body {
  padding: 14px 16px;
}

.map-card__title {
  margin: 0 0 8px;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: rgba(234, 240, 255, 0.98);
  line-height: 1.3;
}

.map-card__badge {
  display: inline-block;
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 4px 8px;
  border-radius: 6px;
  background: rgba(96, 165, 250, 0.15);
  color: rgba(147, 197, 253, 0.95);
}

/* ---------- Tournament notice ---------- */
.map-pool-notice {
  margin-bottom: 28px;
  background: rgba(13, 18, 35, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-left: 4px solid rgba(96, 165, 250, 0.5);
  border-radius: 12px;
}

.map-pool-notice__title {
  margin: 0 0 10px;
  font-size: 15px;
  font-weight: 700;
  color: rgba(234, 240, 255, 0.95);
}

.map-pool-notice__text {
  margin: 0 0 10px;
  font-size: 14px;
  line-height: 1.5;
  color: rgba(183, 195, 230, 0.9);
}

.map-pool-notice__text:last-child {
  margin-bottom: 0;
}

/* ---------- CTAs ---------- */
.map-pool-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.map-pool-cta {
  padding: 12px 22px;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  border-radius: 10px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.map-pool-cta:hover {
  transform: translateY(-2px);
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .map-pool-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
  }
}

@media (max-width: 640px) {
  .map-pool-wrap {
    padding: 16px 0 40px;
  }

  .map-pool-hero {
    margin-bottom: 20px;
  }

  .map-pool-hero__title {
    font-size: 22px;
  }

  .map-pool-hero__subtitle {
    font-size: 15px;
  }

  .map-pool-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
    margin-bottom: 28px;
  }

  .map-card__body {
    padding: 12px 14px;
  }

  .map-card__title {
    font-size: 14px;
  }

  .map-pool-notice {
    margin-bottom: 24px;
  }

  .map-pool-ctas {
    flex-direction: column;
    align-items: stretch;
  }

  .map-pool-cta {
    text-align: center;
  }
}

@media (max-width: 380px) {
  .map-pool-grid {
    grid-template-columns: 1fr;
  }
}
