/* ══ VIEW: MAP ══ */
#view-map { flex-direction: column; }
.map-tab-bar { background: var(--blue-deep); display: flex; overflow-x: auto; flex-shrink: 0; scrollbar-width: none; border-bottom: 1px solid rgba(255,255,255,0.07); }
.map-tab-bar::-webkit-scrollbar { display: none; }
.map-tab { flex-shrink: 0; padding: 10px 14px; font-size: 12px; font-weight: 600; color: rgba(255,255,255,0.35); cursor: pointer; border-bottom: 3px solid transparent; transition: color 0.15s, border-color 0.15s; white-space: nowrap; user-select: none; }
.map-tab:hover { color: rgba(255,255,255,0.65); }
.map-tab.active { color: var(--blue-pale); border-bottom-color: var(--blue-pale); }
.map-tab.locked { cursor: default; opacity: 0.45; }
.map-tab.locked:hover { color: rgba(255,255,255,0.35); }
.map-tab.locked .lock-icon { font-size: 9px; margin-left: 4px; opacity: 0.7; }
#map-container { flex: 1; position: relative; }
.map-coming-soon {
  position: absolute; inset: 0; z-index: 600;
  background: rgba(2,26,60,0.72);
  backdrop-filter: blur(1px);
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-align: center;
  padding: 32px;
}
.map-coming-soon.visible { display: flex; }
.map-coming-soon-icon { font-size: 32px; }
.map-coming-soon-title { color: #fff; font-size: 17px; font-weight: 700; letter-spacing: -0.01em; }
.map-coming-soon-sub { color: rgba(255,255,255,0.6); font-size: 13px; line-height: 1.5; max-width: 240px; }
#the-map { width: 100%; height: 100%; }
.map-legend { position: absolute; top: 12px; right: 12px; z-index: 500; background: var(--blue-main); border: 1px solid rgba(255,255,255,0.2); border-radius: 20px; padding: 7px 14px; color: #fff; font-size: 11px; box-shadow: var(--shadow-md); pointer-events: none; }
.map-legend strong { display: block; font-size: 9px; color: rgba(255,255,255,0.5); margin-bottom: 1px; text-transform: uppercase; letter-spacing: 0.5px; }
.map-legend-count { color: var(--blue-pale); font-weight: 700; }
.pin { width: 30px; height: 30px; border-radius: 50% 50% 50% 0; transform: rotate(-45deg); display: flex; align-items: center; justify-content: center; box-shadow: 0 3px 12px rgba(0,0,0,0.28); cursor: pointer; border: 2.5px solid rgba(255,255,255,0.6); }
.pin-em { transform: rotate(45deg); font-size: 13px; line-height: 1; }
.pop-wrap { font-family: 'Quicksand', sans-serif; min-width: 240px; max-width: 280px; }
.pop-head { padding: 11px 13px; display: flex; align-items: flex-start; gap: 9px; }
.pop-icon { width: 32px; height: 32px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 15px; flex-shrink: 0; background: rgba(255,255,255,0.18); }
.pop-title { font-size: 13px; font-weight: 700; color: #fff; line-height: 1.3; }
.pop-cat { font-size: 9.5px; color: rgba(255,255,255,0.6); margin-top: 2px; text-transform: uppercase; letter-spacing: 0.5px; }
.pop-body { padding: 10px 13px 12px; background: #fff; }
.pop-desc { font-size: 11.5px; color: #334; line-height: 1.6; font-weight: 500; }
.pop-meta { margin-top: 8px; display: flex; flex-wrap: wrap; gap: 5px; }
.pop-meta-item { font-size: 10px; color: #006494; background: #E0F7FA; padding: 3px 8px; border-radius: 20px; font-weight: 600; border: 1px solid #B2EBF2; }
.pop-addr-link { font-size: 10px; color: #006494; background: #E0F7FA; padding: 3px 8px; border-radius: 20px; font-weight: 600; border: 1px solid #B2EBF2; text-decoration: none; display: inline-flex; align-items: center; gap: 3px; }
.pop-addr-link:hover { background: #B2EBF2; }
.pop-tip { margin-top: 8px; background: #EEF9FF; border-left: 3px solid #00B4D8; padding: 6px 9px; font-size: 10.5px; color: #555; font-style: italic; line-height: 1.5; border-radius: 0 5px 5px 0; }
.leaflet-popup-content-wrapper { padding: 0; border-radius: 12px; overflow: hidden; box-shadow: 0 8px 32px rgba(0,0,0,0.22); border: none; }
.leaflet-popup-content { margin: 0; line-height: 1; }
.leaflet-popup-tip-container { display: none; }
