.club-map-section {
  --map-navy: #0f2942;
  --map-ink: #0a2035;
  --map-gold: #f8c52c;
  --map-paper: #f3f6f8;
  position: relative;
  overflow: hidden;
  padding: clamp(5rem, 9vw, 8.5rem) 0 clamp(5.5rem, 10vw, 9rem);
  color: var(--map-navy);
  background:
    radial-gradient(circle at 90% 8%, rgba(38, 120, 171, .1), transparent 29rem),
    #eaf0f4;
  scroll-margin-top: 6rem;
}

.club-map-section::before,
.club-map-section::after {
  position: absolute;
  content: '';
  pointer-events: none;
  transform: rotate(-11deg);
}

.club-map-section::before {
  top: -11rem;
  right: 7%;
  width: 28rem;
  height: 46rem;
  border: 1px solid rgba(15, 41, 66, .07);
}

.club-map-section::after {
  right: -8rem;
  bottom: -25rem;
  width: 34rem;
  height: 48rem;
  background: rgba(255, 255, 255, .22);
}

.club-map-container {
  position: relative;
  z-index: 1;
  width: min(calc(100% - 2rem), 80rem);
  margin: 0 auto;
}

.club-map-header {
  display: grid;
  margin-bottom: clamp(2.5rem, 5vw, 4.5rem);
  align-items: end;
  grid-template-columns: minmax(0, 1.25fr) minmax(18rem, .75fr);
  gap: clamp(2rem, 7vw, 7rem);
}

.club-map-kicker {
  display: flex;
  align-items: center;
  gap: .8rem;
  margin: 0 0 1.35rem;
  color: #8b6800;
  font-size: .7rem;
  font-weight: 800;
  letter-spacing: .17em;
  text-transform: uppercase;
}

.club-map-kicker::before {
  width: 2.15rem;
  height: 2px;
  content: '';
  background: var(--map-gold);
}

.club-map-title {
  max-width: 14ch;
  margin: 0;
  font-size: clamp(3rem, 5.6vw, 5.75rem);
  font-weight: 800;
  line-height: .94;
  letter-spacing: -.06em;
  text-wrap: balance;
}

.club-map-summary { padding-bottom: .35rem; }

.club-map-copy {
  max-width: 32rem;
  margin: 0;
  color: #526678;
  font-size: 1.02rem;
  line-height: 1.75;
  text-wrap: pretty;
}

.club-map-meta {
  display: flex;
  margin-top: 1.75rem;
  padding-top: 1.25rem;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border-top: 1px solid rgba(15, 41, 66, .14);
}

.club-map-count {
  color: var(--map-navy);
  font-size: .82rem;
  font-variant-numeric: tabular-nums;
  font-weight: 750;
}

.club-map-live,
.club-map-toolbar-state {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  color: #647786;
  font-size: .67rem;
  font-weight: 750;
  letter-spacing: .09em;
  text-transform: uppercase;
}

.club-map-live::before,
.club-map-toolbar-state i {
  width: .48rem;
  height: .48rem;
  content: '';
  border-radius: 50%;
  background: var(--map-gold);
  box-shadow: 0 0 0 4px rgba(248, 197, 44, .16);
}

.club-map-device {
  position: relative;
  overflow: hidden;
  padding: .75rem;
  border: 1px solid rgba(15, 41, 66, .11);
  border-radius: 1.75rem;
  background: #e1e6e9;
  box-shadow:
    0 2.2rem 5rem rgba(15, 41, 66, .16),
    inset 0 1px 0 rgba(255, 255, 255, .9);
}

.club-map-device::before {
  position: absolute;
  z-index: 4;
  top: 50%;
  left: .29rem;
  width: .22rem;
  height: 2.5rem;
  content: '';
  border-radius: 1rem;
  background: #c4ccd1;
  transform: translateY(-50%);
}

.club-map-toolbar {
  position: relative;
  display: grid;
  min-height: 3.65rem;
  padding: 0 1.25rem;
  align-items: center;
  grid-template-columns: 1fr auto 1fr;
  border-radius: 1.05rem 1.05rem 0 0;
  color: var(--map-navy);
  background: rgba(255, 255, 255, .96);
  border-bottom: 1px solid rgba(15, 41, 66, .08);
}

.club-map-toolbar-brand {
  display: flex;
  align-items: center;
  gap: .6rem;
  font-size: .72rem;
  font-weight: 750;
}

.club-map-toolbar-mark {
  position: relative;
  width: 1.35rem;
  height: 1.35rem;
  border-radius: 50%;
  background: var(--map-navy);
}
.club-map-toolbar-mark::after {
  position: absolute;
  inset: .38rem;
  content: '';
  border-radius: 50%;
  background: var(--map-gold);
}

.club-map-toolbar-title { font-size: .75rem; font-weight: 650; }
.club-map-toolbar-state { justify-self: end; font-size: .59rem; }

.club-map-frame {
  position: relative;
  height: clamp(32rem, 48vw, 40rem);
  overflow: hidden;
  border-radius: 0 0 1.05rem 1.05rem;
  background: #dfe8ec;
}

#clubMap {
  width: 100%;
  height: 100%;
  z-index: 1;
  font-family: 'Space Grotesk', sans-serif;
}

.club-map-section .leaflet-tile-pane {
  filter: saturate(.72) contrast(.96) brightness(1.02);
}

.club-map-status {
  position: absolute;
  z-index: 510;
  right: 1.25rem;
  bottom: 1.25rem;
  max-width: min(30rem, calc(100% - 2.5rem));
  margin: 0;
  padding: .85rem 1rem;
  border: 1px solid rgba(15, 41, 66, .1);
  border-radius: .5rem;
  color: var(--map-navy);
  background: rgba(255, 255, 255, .95);
  box-shadow: 0 .75rem 2rem rgba(15, 41, 66, .13);
  font-size: .77rem;
  font-weight: 650;
  line-height: 1.5;
  backdrop-filter: blur(12px);
}

.club-map-marker-wrap { background: transparent; border: 0; }
.club-map-marker {
  position: relative;
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 3px solid #fff;
  border-radius: 50% 50% 50% 8px;
  background: var(--map-navy);
  box-shadow: 0 8px 20px rgba(15, 41, 66, .3);
  transform: rotate(-45deg);
  transition: transform 180ms ease, box-shadow 180ms ease;
}
.club-map-marker span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--map-gold);
}
.club-map-marker--institution { background: var(--map-gold); }
.club-map-marker--institution span {
  width: 11px;
  height: 11px;
  border-radius: 3px;
  background: var(--map-navy);
}
.club-map-marker-wrap:hover .club-map-marker {
  box-shadow: 0 10px 24px rgba(15, 41, 66, .42);
  transform: translateY(-2px) rotate(-45deg) scale(1.06);
}

.club-map-section .leaflet-popup-content-wrapper {
  border: 1px solid rgba(15, 41, 66, .1);
  border-radius: .65rem;
  box-shadow: 0 1rem 2.75rem rgba(15, 41, 66, .18);
}
.club-map-section .leaflet-popup-content { margin: 1.2rem 1.25rem; }
.club-popup { color: var(--map-navy); }
.club-popup__eyebrow {
  display: block;
  margin-bottom: .5rem;
  color: #866400;
  font-size: .58rem;
  font-weight: 800;
  letter-spacing: .14em;
}
.club-popup__title { display: block; font-size: 1.08rem; line-height: 1.25; }
.club-popup__verified { margin: .65rem 0 0; color: #506173; font-size: .76rem; font-weight: 650; line-height: 1.5; }
.club-map-section .leaflet-control-zoom { overflow: hidden; border: 0; border-radius: .55rem; box-shadow: 0 .6rem 1.5rem rgba(15, 41, 66, .18); }
.club-map-section .leaflet-control-zoom a { color: var(--map-navy); border-color: #e5ebee; }
.club-map-section .leaflet-control-attribution { color: #566b7b; font-size: 10px; }

@media (max-width: 900px) {
  .club-map-header { grid-template-columns: 1fr; gap: 1.5rem; }
  .club-map-title { max-width: 12ch; }
  .club-map-copy { max-width: 38rem; }
  .club-map-toolbar { grid-template-columns: 1fr auto; }
  .club-map-toolbar-title { display: none; }
}

@media (max-width: 639px) {
  .club-map-section { padding: 4rem 0 4.75rem; }
  .club-map-container { width: calc(100% - 1.25rem); }
  .club-map-header { margin-bottom: 2.25rem; padding: 0 .75rem; }
  .club-map-title { font-size: clamp(2.7rem, 13.6vw, 3.65rem); }
  .club-map-copy { font-size: .96rem; }
  .club-map-meta { align-items: flex-start; flex-direction: column; }
  .club-map-device { padding: .45rem; border-radius: 1.25rem; }
  .club-map-device::before { display: none; }
  .club-map-toolbar { min-height: 3.25rem; padding: 0 .8rem; border-radius: .8rem .8rem 0 0; }
  .club-map-toolbar-brand span:last-child { display: none; }
  .club-map-toolbar-state { font-size: .54rem; }
  .club-map-frame { height: 34rem; border-radius: 0 0 .8rem .8rem; }
  .club-map-status { right: .8rem; bottom: .8rem; max-width: calc(100% - 1.6rem); }
}

@media (prefers-reduced-motion: reduce) {
  .club-map-marker { transition: none; }
  .club-map-section .leaflet-zoom-animated { transition: none !important; }
}
