/* Player map layout */
/* Full-screen player map */

html, body.ssx-map-body {
  margin: 0;
  padding: 0;
  height: 100%;
  background: #050509;
  color: #f5f5f5;
  font-family: ui-sans-serif, system-ui, -apple-system, "SF Pro Text",
               Segoe UI, Roboto, Helvetica, Arial, sans-serif;
}

#player-map-shell {
  position: relative;
  width: 100%;
  height: 100%;
}

/* Header floats on top of map */

.pm-header {
  position: absolute;
  top: 14px;
  left: clamp(10px, 4vw, 24px);
  right: clamp(10px, 4vw, 24px);
  z-index: 1000;
  display: flex;
  align-items: center;
  gap: 10px;
}

.pm-back-btn {
  border-radius: 999px;
  width: 32px;
  height: 32px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(0, 0, 0, 0.85);
  color: #f5f5f5;
  font-size: 16px;
  cursor: pointer;
}

.pm-header-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.pm-header-label {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  opacity: 0.75;
}

.pm-header-title {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.08em;
}

.pm-header-sub {
  font-size: 11px;
  opacity: 0.7;
}

.pm-cta {
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(0, 0, 0, 0.8);
  padding: 6px 10px;
  font-size: 11px;
  color: #f5f5f5;
  cursor: not-allowed;
  opacity: 0.4;
}

/* Map fills viewport */

#playerMap {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.leaflet-container {
  background: #050509;
}

/* Location preview icons */

.pm-loc-icon {
  border-radius: 16px;
  overflow: hidden;
  box-shadow:
    0 8px 20px rgba(0, 0, 0, 0.8),
    0 0 0 1px rgba(255, 255, 255, 0.2);
}

.pm-loc-icon img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Player pin */

.pm-player-pin {
  width: 52px;
  height: 52px;
  border-radius: 999px;
  background: radial-gradient(circle at 30% 15%, #ffffff, #ff2455 45%, #310013 100%);
  border: 2px solid rgba(255, 255, 255, 0.8);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  overflow: hidden;
  box-shadow: 0 0 18px rgba(255, 36, 85, 0.8);
}

.pm-player-pin img {
  width: 90%;
  height: auto;
  object-fit: contain;
  transform: translateY(4px);
}

/* Popup text */

/* Title sprite overlay (top center) */
.pm-title-sprite {
  position: absolute;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 900;
  pointer-events: none;
}

.pm-title-sprite img {
  height: 40px;
  object-fit: contain;
  opacity: 0.8;
}

/* Cursor coordinates overlay (bottom-left) */
.pm-coord-readout {
  position: absolute;
  left: 10px;
  bottom: 16px;
  z-index: 1100;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.25);
  font-size: 11px;
  color: rgba(245, 245, 245, 0.9);
  pointer-events: none;
}

/* Slight adjustment so map footer doesn’t overlap coords too badly */
.home-footer {
  bottom: 6px;
}
