/* ===== NEXODAYZ TACTICAL MAP STYLES ===== */
@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Share+Tech+Mono&family=Rajdhani:wght@400;500;600;700&display=swap');

:root {
  --bg-dark: #07090d;
  --bg-panel: rgba(13, 17, 24, 0.92);
  --bg-panel-solid: #0d1118;
  --bg-card: rgba(22, 28, 38, 0.75);
  --border-color: rgba(255, 255, 255, 0.1);
  --border-glow: rgba(200, 121, 65, 0.35);

  --primary-red: #c0392b;
  --primary-red-glow: rgba(192, 57, 43, 0.4);
  --primary-amber: #c87941;
  --accent-gold: #f39c12;
  --accent-blue: #3498db;
  --accent-green: #2ecc71;

  --text-primary: #f0ece4;
  --text-secondary: #9aa0a6;
  --text-muted: #606770;

  --font-display: 'Bebas Neue', sans-serif;
  --font-mono: 'Share Tech Mono', monospace;
  --font-body: 'Rajdhani', sans-serif;

  --sidebar-w: 350px;
  --topbar-h: 60px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  background-color: var(--bg-dark);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 15px;
  -webkit-font-smoothing: antialiased;
}

/* Background Noise */
.noise-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.035'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 999;
}

/* Map Container */
#map-viewport {
  position: absolute;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 1;
  background: #0d0f12;

  /* Sizing tokens for GPU accelerated marker scaling */
  --poi-size: 24px;
  --poi-font: 13px;
  --poi-city-font: 15px;
  --poi-mil-font: 12px;
}

#map-viewport[data-zoom-tier="micro"] {
  --poi-size: 13px;
  --poi-font: 7.5px;
  --poi-city-font: 11px;
  --poi-mil-font: 9px;
}

#map-viewport[data-zoom-tier="small"] {
  --poi-size: 18px;
  --poi-font: 10px;
  --poi-city-font: 13px;
  --poi-mil-font: 11px;
}

#map-viewport[data-zoom-tier="medium"] {
  --poi-size: 25px;
  --poi-font: 13px;
  --poi-city-font: 16px;
  --poi-mil-font: 13px;
}

#map-viewport[data-zoom-tier="large"] {
  --poi-size: 32px;
  --poi-font: 17px;
  --poi-city-font: 21px;
  --poi-mil-font: 16px;
}

#map-viewport[data-zoom-tier="ultra"] {
  --poi-size: 40px;
  --poi-font: 21px;
  --poi-city-font: 26px;
  --poi-mil-font: 19px;
}

.leaflet-container {
  background-color: #07090d !important;
  font-family: var(--font-body) !important;
}

/* High performance markers */
.standard-poi-marker {
  width: var(--poi-size) !important;
  height: var(--poi-size) !important;
  font-size: var(--poi-font) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  border-radius: 6px !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.6) !important;
  cursor: pointer !important;
  border: 1.5px solid rgba(255, 255, 255, 0.85);
  box-sizing: border-box;
}

.city-poi-label {
  font-family: 'Rajdhani', sans-serif !important;
  font-weight: 700 !important;
  font-size: var(--poi-city-font) !important;
  white-space: nowrap !important;
  text-shadow: 0 0 6px #000, 0 0 12px #000 !important;
  letter-spacing: 0.5px !important;
}

.mil-poi-label {
  font-family: 'Rajdhani', sans-serif !important;
  font-weight: 700 !important;
  font-size: var(--poi-mil-font) !important;
  white-space: nowrap !important;
  text-transform: uppercase !important;
  text-shadow: 0 0 4px #000, 0 0 8px #000 !important;
  letter-spacing: 0.5px !important;
}

.mil-poi-icon {
  font-size: var(--poi-font) !important;
  filter: drop-shadow(0 0 3px #000) !important;
}

.gas-poi-icon {
  width: var(--poi-size) !important;
  height: var(--poi-size) !important;
  font-size: var(--poi-font) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  filter: drop-shadow(0 0 4px #000) !important;
}

/* Custom Marker Styling */
.custom-user-marker {
  width: var(--poi-size) !important;
  height: var(--poi-size) !important;
  font-size: var(--poi-font) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  border-radius: 50% !important;
  border: 2px solid #ffffff !important;
  box-shadow: 0 0 12px rgba(0, 0, 0, 0.8), 0 0 6px currentColor !important;
  cursor: pointer !important;
}

/* Shared Location Pulsing Marker */
.shared-location-marker {
  width: 24px;
  height: 24px;
  background: #00ffcc;
  border: 3px solid #ffffff;
  border-radius: 50%;
  box-shadow: 0 0 15px #00ffcc, 0 0 30px #00ffcc;
  animation: tacticalPulse 1.5s infinite;
}

@keyframes tacticalPulse {
  0% {
    transform: scale(0.9);
    box-shadow: 0 0 0 0 rgba(0, 255, 204, 0.7);
  }

  70% {
    transform: scale(1.15);
    box-shadow: 0 0 0 14px rgba(0, 255, 204, 0);
  }

  100% {
    transform: scale(0.9);
    box-shadow: 0 0 0 0 rgba(0, 255, 204, 0);
  }
}

/* Top Tactical Bar */
.tactical-topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--topbar-h);
  background: rgba(7, 9, 13, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
}

.topbar-left {
  display: flex;
  align-items: center;
  gap: 16px;
}

.back-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text-primary);
  text-decoration: none;
  font-family: var(--font-display);
  font-size: 16px;
  letter-spacing: 1px;
  padding: 6px 14px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 4px;
  transition: all 0.2s ease;
}

.back-btn:hover {
  background: var(--primary-red);
  border-color: var(--primary-red);
  box-shadow: 0 0 12px var(--primary-red-glow);
  color: #fff;
}

.brand-info {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand-logo {
  height: 32px;
  width: auto;
}

.map-title {
  font-family: var(--font-display);
  font-size: 20px;
  letter-spacing: 1.5px;
  color: var(--text-primary);
  line-height: 1;
}

.map-title span {
  color: var(--primary-amber);
}

.map-badge {
  font-family: var(--font-mono);
  font-size: 10px;
  padding: 2px 6px;
  background: rgba(200, 121, 65, 0.2);
  border: 1px solid var(--primary-amber);
  color: var(--primary-amber);
  border-radius: 3px;
  text-transform: uppercase;
}

/* Coords HUD */
.topbar-center {
  display: flex;
  align-items: center;
}

.hud-coords-box {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(200, 121, 65, 0.3);
  padding: 6px 14px;
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: 13px;
  color: #fff;
  box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.5);
}

.hud-label {
  color: var(--primary-amber);
  font-weight: bold;
}

.hud-val {
  color: #00ffcc;
  min-width: 140px;
}

/* Topbar Right Tools */
.topbar-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.tactical-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: var(--text-primary);
  padding: 7px 12px;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.tactical-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: var(--primary-amber);
  color: #fff;
}

.icon-btn {
  padding: 7px 9px;
}

/* Floating Sidebar */
.tactical-sidebar {
  position: fixed;
  top: calc(var(--topbar-h) + 12px);
  right: 12px;
  bottom: 12px;
  width: var(--sidebar-w);
  background: var(--bg-panel);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.2s ease;
}

.tactical-sidebar.collapsed {
  transform: translateX(calc(100% + 20px));
  opacity: 0;
  pointer-events: none;
}

.sidebar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border-color);
}

.sidebar-title {
  font-family: var(--font-display);
  font-size: 18px;
  letter-spacing: 1px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-primary);
}

.sidebar-title i {
  color: var(--primary-amber);
}

.sidebar-close-btn {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
  padding: 4px;
  display: flex;
  border-radius: 4px;
  transition: color 0.2s;
}

.sidebar-close-btn:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.1);
}

.sidebar-scrollable {
  flex: 1;
  overflow-y: auto;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.sidebar-scrollable::-webkit-scrollbar {
  width: 6px;
}

.sidebar-scrollable::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.2);
}

.sidebar-scrollable::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 3px;
}

.sidebar-scrollable::-webkit-scrollbar-thumb:hover {
  background: var(--primary-amber);
}

/* Sidebar Section Box */
.sidebar-box {
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 6px;
  padding: 12px;
}

.box-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.box-header-row .box-label {
  margin-bottom: 0;
}

.box-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--primary-amber);
  margin-bottom: 8px;
}

.btn-text-danger {
  background: transparent;
  border: none;
  color: #e74c3c;
  font-family: var(--font-mono);
  font-size: 10px;
  text-transform: uppercase;
  cursor: pointer;
  padding: 2px 4px;
  border-radius: 3px;
  transition: all 0.2s;
}

.btn-text-danger:hover {
  background: rgba(231, 76, 60, 0.2);
}

/* My Markers List */
.my-markers-list {
  max-height: 220px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.empty-markers-msg {
  font-size: 12px;
  color: var(--text-muted);
  text-align: center;
  padding: 8px 4px;
  font-style: italic;
}

.my-marker-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.07);
  padding: 6px 8px;
  border-radius: 4px;
  transition: all 0.15s;
}

.my-marker-item:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(200, 121, 65, 0.4);
}

.my-marker-left {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
  overflow: hidden;
  cursor: pointer;
}

.my-marker-icon-badge {
  width: 24px;
  height: 24px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  flex-shrink: 0;
}

.my-marker-info {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.my-marker-title {
  font-size: 13px;
  font-weight: 600;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.my-marker-notes {
  font-size: 11px;
  color: var(--text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.my-marker-coords {
  font-family: var(--font-mono);
  font-size: 10px;
  color: #00ffcc;
}

.my-marker-actions {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}

.marker-action-btn {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
  padding: 4px;
  border-radius: 3px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s;
}

.marker-action-btn:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
}

.marker-action-btn.delete-btn:hover {
  color: #e74c3c;
  background: rgba(231, 76, 60, 0.15);
}

/* Search Box */
.search-wrapper {
  position: relative;
}

.search-input {
  width: 100%;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 4px;
  color: #fff;
  padding: 8px 32px 8px 10px;
  font-family: var(--font-body);
  font-size: 14px;
  transition: border-color 0.2s;
}

.search-input:focus {
  outline: none;
  border-color: var(--primary-amber);
  box-shadow: 0 0 8px rgba(200, 121, 65, 0.3);
}

.search-icon-btn {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-secondary);
  pointer-events: none;
}

.search-results-list {
  max-height: 180px;
  overflow-y: auto;
  margin-top: 6px;
  background: rgba(10, 14, 20, 0.95);
  border: 1px solid var(--border-color);
  border-radius: 4px;
  display: none;
}

.search-results-list.active {
  display: block;
}

.search-result-item {
  padding: 8px 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background 0.15s;
}

.search-result-item:hover {
  background: rgba(200, 121, 65, 0.2);
}

.search-result-name {
  font-weight: 600;
  font-size: 13px;
  color: #fff;
}

.search-result-type {
  font-size: 11px;
  color: var(--text-secondary);
  font-family: var(--font-mono);
}

/* Coords Input Box */
.coord-input-row {
  display: flex;
  gap: 8px;
}

.coord-field {
  flex: 1;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 4px;
  color: #00ffcc;
  padding: 7px 10px;
  font-family: var(--font-mono);
  font-size: 13px;
}

.coord-field:focus {
  outline: none;
  border-color: var(--primary-amber);
}

.coord-go-btn {
  background: var(--primary-amber);
  border: none;
  color: #fff;
  padding: 0 14px;
  font-family: var(--font-display);
  font-size: 15px;
  letter-spacing: 1px;
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.2s;
}

.coord-go-btn:hover {
  background: #d8874c;
}

/* Quick Filter Buttons */
.filter-bulk-actions {
  display: flex;
  gap: 8px;
  margin-bottom: 10px;
}

.bulk-btn {
  flex: 1;
  padding: 6px;
  border: none;
  border-radius: 4px;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.2s;
}

.bulk-btn.all {
  background: rgba(46, 204, 113, 0.2);
  border: 1px solid rgba(46, 204, 113, 0.4);
  color: #2ecc71;
}

.bulk-btn.all:hover {
  background: #2ecc71;
  color: #000;
}

.bulk-btn.none {
  background: rgba(231, 76, 60, 0.2);
  border: 1px solid rgba(231, 76, 60, 0.4);
  color: #e74c3c;
}

.bulk-btn.none:hover {
  background: #e74c3c;
  color: #fff;
}

/* Filter Groups */
.filter-group-header {
  font-family: var(--font-display);
  font-size: 14px;
  letter-spacing: 1.5px;
  color: var(--text-secondary);
  text-transform: uppercase;
  margin: 12px 0 6px;
  padding-bottom: 4px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.filter-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 5px 4px;
  border-radius: 4px;
  cursor: pointer;
  user-select: none;
  transition: background 0.15s;
}

.filter-item:hover {
  background: rgba(255, 255, 255, 0.05);
}

.filter-item-left {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
}

.filter-item-icon {
  font-size: 16px;
  width: 20px;
  text-align: center;
}

.filter-checkbox {
  width: 16px;
  height: 16px;
  cursor: pointer;
}

.filter-count-badge {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
  background: rgba(0, 0, 0, 0.4);
  padding: 1px 6px;
  border-radius: 10px;
}

/* ===================================================
   BOTTOM ACTION DOCK (RESPONSIVE & CLEAN)
   =================================================== */
.izurvive-dock {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%) translateY(120%);
  width: min(600px, 95vw);
  background: rgba(14, 20, 30, 0.96);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-bottom: none;
  border-radius: 14px 14px 0 0;
  box-shadow: 0 -10px 45px rgba(0, 0, 0, 0.88), 0 0 25px rgba(0, 0, 0, 0.6);
  z-index: 2500;
  padding: 14px 18px 10px;
  transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}

.izurvive-dock.active {
  transform: translateX(-50%) translateY(0);
}

.dock-container {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* Row 1: Top Bar with Full Name Input */
.dock-top-row {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
}

.dock-btn-close {
  background: transparent;
  border: none;
  color: #8fa0b5;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6px;
  border-radius: 4px;
  flex-shrink: 0;
  transition: color 0.15s, background 0.15s;
}

.dock-btn-close:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
}

.dock-input-wrapper {
  flex: 1;
  min-width: 0; /* Prevents flex item overflow */
}

.dock-name-input {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 2px solid #303e52;
  color: #fff;
  font-family: var(--font-body);
  font-size: 17px;
  font-weight: 600;
  padding: 4px 2px;
  transition: border-color 0.2s;
  box-sizing: border-box;
}

.dock-name-input:focus {
  outline: none;
  border-bottom-color: #00ffcc;
}

.dock-name-input::placeholder {
  color: #63758d;
  font-weight: 400;
}

.dock-primary-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.dock-btn-save {
  background: #00ffcc;
  border: none;
  color: #07090d;
  font-family: var(--font-body);
  font-size: 13.5px;
  font-weight: 700;
  cursor: pointer;
  padding: 6px 12px;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
  transition: all 0.15s;
}

.dock-btn-save:hover {
  background: #33ffd6;
  transform: translateY(-1px);
  box-shadow: 0 0 12px rgba(0, 255, 204, 0.4);
}

.dock-btn-delete {
  background: rgba(231, 76, 60, 0.2);
  border: 1px solid rgba(231, 76, 60, 0.4);
  color: #e74c3c;
  cursor: pointer;
  padding: 6px 8px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s;
}

.dock-btn-delete:hover {
  background: #e74c3c;
  color: #fff;
}

/* Row 2: Notes input */
.dock-notes-row {
  width: 100%;
}

.dock-opt-input {
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 6px;
  color: #e1e7ee;
  padding: 6px 10px;
  font-size: 13px;
  font-family: var(--font-body);
  width: 100%;
  height: 34px;
  box-sizing: border-box;
}

.dock-opt-input:focus {
  outline: none;
  border-color: #00ffcc;
}

/* Row 3: Options row */
.dock-options-row {
  display: flex;
  gap: 10px;
  align-items: flex-end;
  justify-content: space-between;
}

.dock-option-col {
  display: flex;
  flex-direction: column;
  gap: 3px;
  position: relative;
}

.dock-tools-col {
  margin-left: auto;
}

.dock-opt-label {
  font-family: var(--font-mono);
  font-size: 10.5px;
  text-transform: uppercase;
  color: #7b8ea7;
  letter-spacing: 0.5px;
}

/* Color select pill & dropdown */
.dock-color-select-wrap {
  position: relative;
}

.dock-color-pill {
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 6px;
  padding: 0 8px;
  height: 34px;
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  color: #fff;
}

.color-dot {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, 0.6);
  display: inline-block;
}

.dock-color-dropdown {
  position: absolute;
  bottom: calc(100% + 6px);
  left: 0;
  background: #0e1520;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  padding: 8px;
  display: none;
  gap: 8px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.8);
  z-index: 2600;
}

.dock-color-dropdown.open {
  display: flex;
}

.dock-color-option {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s;
}

.dock-color-option:hover {
  transform: scale(1.2);
}

.dock-color-option.active {
  border-color: #fff;
  transform: scale(1.15);
  box-shadow: 0 0 8px currentColor;
}

/* Type select pill & dropdown */
.dock-type-select-wrap {
  position: relative;
}

.dock-type-pill {
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 6px;
  padding: 0 10px;
  height: 34px;
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  color: #fff;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
}

.dock-type-dropdown {
  position: absolute;
  bottom: calc(100% + 6px);
  left: 0;
  width: 170px;
  max-height: 220px;
  overflow-y: auto;
  background: #0e1520;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  padding: 6px;
  display: none;
  flex-direction: column;
  gap: 4px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.8);
  z-index: 2600;
}

.dock-type-dropdown.open {
  display: flex;
}

.dock-type-option {
  padding: 6px 8px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 13px;
  color: #d1dbe6;
  transition: background 0.15s, color 0.15s;
}

.dock-type-option:hover {
  background: rgba(0, 255, 204, 0.15);
  color: #00ffcc;
}

.dock-type-option.active {
  background: rgba(0, 255, 204, 0.2);
  color: #00ffcc;
  font-weight: 600;
}

/* Quick Tools */
.dock-quick-tools {
  display: flex;
  align-items: center;
  gap: 6px;
}

.dock-action-pill-btn {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #a2b4cc;
  font-family: var(--font-body);
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  padding: 0 10px;
  height: 34px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
  transition: all 0.15s;
}

.dock-action-pill-btn:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.15);
  border-color: #00ffcc;
}

/* Row 4: Bottom row */
.dock-bottom-row {
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 5px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.dock-coords-text {
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: #63758d;
}

/* Context Menu (Right Click) */
.map-context-menu {
  position: fixed;
  display: none;
  background: #0d121a;
  border: 1.5px solid #283344;
  border-radius: 4px;
  padding: 3px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.85), 0 0 10px rgba(0, 0, 0, 0.6);
  z-index: 3500;
  pointer-events: auto;
  user-select: none;
}

.map-context-menu.active {
  display: block;
}

.ctx-menu-btn {
  background: #121822;
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #e67e22;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.3px;
  cursor: pointer;
  padding: 6px 12px;
  border-radius: 3px;
  display: flex;
  align-items: center;
  gap: 7px;
  white-space: nowrap;
  transition: all 0.15s ease;
}

.ctx-menu-btn i,
.ctx-menu-btn svg {
  width: 14px;
  height: 14px;
  color: #e67e22;
  transition: transform 0.15s ease, color 0.15s ease;
}

.ctx-menu-btn:hover {
  background: #1a2332;
  border-color: #e67e22;
  color: #f39c12;
  box-shadow: 0 0 10px rgba(230, 126, 34, 0.35);
}

.ctx-menu-btn:hover i,
.ctx-menu-btn:hover svg {
  color: #f39c12;
  transform: scale(1.1);
}

/* Toast Notifications */
.tactical-toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(50px);
  background: rgba(13, 17, 24, 0.95);
  border: 1px solid var(--primary-amber);
  color: #fff;
  padding: 10px 20px;
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: 13px;
  z-index: 4000;
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.7);
  pointer-events: none;
}

.tactical-toast.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

/* Attribution Bar */
.map-attribution-badge {
  position: fixed;
  bottom: 10px;
  left: 10px;
  background: rgba(7, 9, 13, 0.75);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 4px 10px;
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
  z-index: 1000;
}

.map-attribution-badge a {
  color: var(--text-secondary);
  text-decoration: none;
}

.map-attribution-badge a:hover {
  color: var(--primary-amber);
}

/* Responsive Rules */
@media (max-width: 900px) {
  .hud-coords-box {
    display: none;
  }
}

@media (max-width: 768px) {
  .tactical-sidebar {
    top: auto;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    height: 70vh;
    border-radius: 16px 16px 0 0;
    transform: translateY(100%);
  }

  .tactical-sidebar.mobile-open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .map-title {
    display: none;
  }

  .map-badge {
    display: none;
  }

  .izurvive-dock {
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    max-width: 100vw;
    border-radius: 16px 16px 0 0;
    padding: 12px 14px max(12px, env(safe-area-inset-bottom, 12px));
    transform: translateY(120%);
    box-sizing: border-box;
  }

  .izurvive-dock.active {
    transform: translateY(0);
  }

  .dock-top-row {
    gap: 8px;
  }

  .dock-btn-save {
    padding: 6px 10px;
    font-size: 13px;
  }

  .dock-name-input {
    font-size: 14.5px;
  }

  .dock-options-row {
    flex-wrap: wrap;
    gap: 8px;
  }

  .dock-tools-col {
    margin-left: 0;
    width: 100%;
  }

  .dock-quick-tools {
    width: 100%;
    display: flex;
    gap: 8px;
  }

  .dock-action-pill-btn {
    flex: 1;
    justify-content: center;
    font-size: 12px;
    padding: 0 8px;
  }

  .dock-color-pill,
  .dock-type-pill {
    font-size: 12.5px;
    padding: 0 8px;
  }
}