/* ═══════════════════════════════════════
   Map Section
═══════════════════════════════════════ */
.alliance-map-section {
  padding: 64px 0 80px;
}

.alliance-map-section__header {
  margin-bottom: 32px;
}

.alliance-map-section__label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--color-black, #1a1a1a);
  margin-bottom: 10px;
}

.alliance-map-section__title {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 800;
  color: var(--color-black, #1a1a1a);
  line-height: 1.15;
  margin: 0;
}

#alliance-map {
  width: 100%;
  height: 500px;
  border-radius: var(--radius, 8px);
  overflow: hidden;
  position: relative;
  z-index: 1;
}

.leaflet-top,
.leaflet-bottom { z-index: 10 !important; }
.leaflet-pane   { z-index: 4  !important; }

/* ═══════════════════════════════════════
   Tooltip Gallery (hover)
═══════════════════════════════════════ */
.alm-tt {
  position: fixed;
  z-index: 99998;
  width: 240px;
  background: #141414;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0,0,0,0.6), 0 0 0 1px rgba(255,255,255,0.08);
  opacity: 0;
  transform: translateY(4px) scale(0.97);
  transition: opacity 0.18s ease, transform 0.18s ease;
  pointer-events: auto;
}

.alm-tt--in {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.alm-tt__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 10px 9px 13px;
  border-bottom: 1px solid rgba(255,255,255,0.07);
}

.alm-tt__name {
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.alm-tt__x {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.11);
  color: rgba(255,255,255,0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
}
.alm-tt__x svg { width: 11px; height: 11px; }

.alm-tt__stage {
  position: relative;
  height: 160px;
  display: flex;
  align-items: stretch;
  background: #0a0a0a;
}

.alm-tt__frame {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px 40px;
  box-sizing: border-box;
  overflow: hidden;
}

.alm-tt__img {
  display: block;
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  border-radius: 5px;
  transition: opacity 0.15s ease, transform 0.15s ease;
  cursor: zoom-in;
}

.alm-tt__img:hover {
  transform: scale(1.03);
  opacity: 0.9;
}

.alm-tt__arr {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.14);
  color: rgba(255,255,255,0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  z-index: 2;
  transition: background 0.15s;
}
.alm-tt__arr:hover { background: rgba(255,255,255,0.18); }
.alm-tt__arr svg   { width: 13px; height: 13px; }
.alm-tt__arr--p    { left: 6px; }
.alm-tt__arr--n    { right: 6px; }

.alm-tt__foot {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
  border-top: 1px solid rgba(255,255,255,0.07);
}

.alm-tt__dots {
  display: flex;
  align-items: center;
  gap: 5px;
}

.alm-tt__dot {
  height: 4px;
  width: 4px;
  border-radius: 2px;
  background: rgba(255,255,255,0.22);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: width 0.18s ease, background 0.18s ease;
}
.alm-tt__dot--on {
  width: 16px;
  background: #fff;
}

.alm-tt__hint {
  font-size: 10px;
  color: rgba(255,255,255,0.3);
  text-align: center;
  padding: 5px 8px 7px;
}

/* ═══════════════════════════════════════
   Fullscreen Lightbox (on click)
═══════════════════════════════════════ */
.alb {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  box-sizing: border-box;
  opacity: 0;
  transition: opacity 0.26s ease;
}

.alb--in { opacity: 1; }

.alb__bd {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.92);
  backdrop-filter: blur(6px);
  cursor: zoom-out;
}

.alb__card {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 860px;
  max-height: calc(100vh - 40px);
  background: #141414;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 32px 80px rgba(0,0,0,0.65), 0 0 0 1px rgba(255,255,255,0.06);
}

.alb__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 18px 16px 22px;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  flex-shrink: 0;
  gap: 12px;
}

.alb__name {
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.alb__x {
  flex-shrink: 0;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.11);
  color: rgba(255,255,255,0.65);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.16s, color 0.16s;
  padding: 0;
}
.alb__x:hover { background: rgba(255,255,255,0.15); color: #fff; }
.alb__x svg   { width: 15px; height: 15px; }

.alb__stage {
  position: relative;
  flex-shrink: 0;
  height: clamp(260px, 55vh, 540px);
  display: flex;
  align-items: stretch;
  background: #0a0a0a;
}

.alb__frame {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px 72px;
  box-sizing: border-box;
  overflow: hidden;
}

.alb__img {
  display: block;
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  border-radius: 8px;
  transition: opacity 0.22s ease;
}

.alb__arr {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255,255,255,0.09);
  border: 1px solid rgba(255,255,255,0.16);
  color: rgba(255,255,255,0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  z-index: 2;
  transition: background 0.18s, border-color 0.18s;
}
.alb__arr:hover { background: rgba(255,255,255,0.20); border-color: rgba(255,255,255,0.35); }
.alb__arr--p { left: 14px; }
.alb__arr--n { right: 14px; }
.alb__arr svg { width: 18px; height: 18px; }

.alb__foot {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px 20px;
  border-top: 1px solid rgba(255,255,255,0.07);
  flex-shrink: 0;
}

.alb__dots {
  display: flex;
  align-items: center;
  gap: 7px;
}

.alb__dot {
  height: 6px;
  width: 6px;
  border-radius: 3px;
  background: rgba(255,255,255,0.22);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: width 0.22s ease, background 0.22s ease;
}
.alb__dot--on {
  width: 24px;
  background: #fff;
}
.alb__dot:hover:not(.alb__dot--on) {
  background: rgba(255,255,255,0.45);
}

body.alb-open { overflow: hidden; }

/* ═══════════════════════════════════════
   Responsive
═══════════════════════════════════════ */
@media (max-width: 640px) {
  #alliance-map { height: 340px; }
  .alm-tt { width: 200px; }
  .alm-tt__stage { height: 130px; }
  .alb { padding: 0; align-items: flex-end; }
  .alb__card { max-height: 90vh; border-radius: 20px 20px 0 0; max-width: 100%; }
  .alb__stage { height: clamp(200px, 46vh, 380px); }
  .alb__frame { padding: 12px 52px; }
  .alb__arr { width: 36px; height: 36px; }
  .alb__arr svg { width: 15px; height: 15px; }
  .alb__arr--p { left: 8px; }
  .alb__arr--n { right: 8px; }
}