/* v1.22.27 — shared production Chernarus renderer */
.wwz-chernarus-map {
  position: relative;
  overflow: hidden;
  min-height: 320px;
  background: #060606;
  cursor: crosshair;
  isolation: isolate;
}

.wwz-chernarus-map.leaflet-container {
  background: #060606;
  font-family: inherit;
}

.wwz-chernarus-map .leaflet-tile-pane {
  filter: saturate(.88) brightness(.86) contrast(1.04);
}

.wwz-chernarus-map .leaflet-overlay-pane canvas {
  pointer-events: none;
}

.wwz-chernarus-map .leaflet-control-container { pointer-events: none; }
.wwz-chernarus-map .leaflet-control { pointer-events: auto; }

.wwz-chernarus-map .leaflet-pane,
.wwz-chernarus-map .leaflet-control-container { z-index: auto; }

.wwz-chernarus-map .leaflet-tile-pane { z-index: 200; }
.wwz-chernarus-map .leaflet-overlay-pane { z-index: 400; }
.wwz-chernarus-map .leaflet-marker-pane { z-index: 600; }
.wwz-chernarus-map .leaflet-tooltip-pane { z-index: 650; }
.wwz-chernarus-map .leaflet-popup-pane { z-index: 700; }

.wwz-map-selection-marker {
  filter: drop-shadow(0 0 5px rgba(213, 43, 30, .75));
}

.wwz-map-poi-marker {
  cursor: pointer;
  filter: drop-shadow(0 2px 3px rgba(0, 0, 0, .8));
}

/* v1.22.31 — named map pins, authoritative bilingual labels and Admin public markers */
.wwz-map-location-div-icon,
.wwz-map-place-name-div-icon {
  background: transparent !important;
  border: 0 !important;
  overflow: visible !important;
}

.wwz-map-location-pin-wrap {
  --wwz-pin-colour: #d52b1e;
  position: absolute;
  left: 0;
  top: 0;
  width: 24px;
  height: 32px;
  pointer-events: auto;
  transform-origin: 12px 30px;
  filter: drop-shadow(0 3px 4px rgba(0, 0, 0, .82));
}

.wwz-map-location-pin {
  position: absolute;
  left: 2px;
  top: 1px;
  width: 20px;
  height: 20px;
  display: grid;
  place-items: center;
  box-sizing: border-box;
  border: 2px solid rgba(255, 248, 238, .96);
  border-radius: 50% 50% 50% 0;
  background: var(--wwz-pin-colour);
  transform: rotate(-45deg);
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, .55),
    inset 0 0 0 1px rgba(255, 255, 255, .12);
}

.wwz-map-location-pin::after {
  content: '';
  position: absolute;
  inset: 4px;
  border-radius: 50%;
  background: rgba(14, 13, 12, .92);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .20);
}

.wwz-map-location-pin-core {
  position: relative;
  z-index: 1;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #fff7ed;
  box-shadow: 0 0 3px rgba(255,255,255,.6);
}

.wwz-map-location-pin-label {
  position: absolute;
  left: 29px;
  top: 4px;
  min-width: max-content;
  max-width: 190px;
  padding: 3px 6px 4px;
  overflow: hidden;
  color: #fff8ef;
  background: rgba(9, 9, 9, .78);
  border: 1px solid rgba(255,255,255,.15);
  border-left: 2px solid var(--wwz-pin-colour);
  border-radius: 3px;
  box-shadow: 0 2px 6px rgba(0,0,0,.58);
  font-size: 10px;
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: .025em;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-shadow: 0 1px 2px #000;
  pointer-events: none;
}

.wwz-map-location-pin-wrap.is-custom .wwz-map-location-pin-label {
  color: #fff7df;
}

.wwz-map-location-pin-wrap.is-selected {
  z-index: 2;
  transform: scale(1.13);
  filter:
    drop-shadow(0 3px 5px rgba(0,0,0,.92))
    drop-shadow(0 0 7px color-mix(in srgb, var(--wwz-pin-colour) 75%, transparent));
}

.wwz-map-location-pin-wrap.is-selected .wwz-map-location-pin-label {
  background: rgba(13, 11, 10, .94);
  border-color: rgba(255,255,255,.28);
}

.wwz-map-location-pin-wrap.is-selection .wwz-map-location-pin {
  animation: wwz-map-pin-pulse 1.7s ease-in-out infinite;
}

@keyframes wwz-map-pin-pulse {
  0%, 100% { box-shadow: 0 0 0 1px rgba(0,0,0,.55), 0 0 0 0 rgba(213,43,30,.42); }
  50% { box-shadow: 0 0 0 1px rgba(0,0,0,.55), 0 0 0 6px rgba(213,43,30,0); }
}

.wwz-map-place-name {
  position: absolute;
  left: 0;
  top: 0;
  display: grid;
  width: max-content;
  max-width: 220px;
  transform: translate(-50%, -50%);
  gap: 1px;
  color: #f8f4ec;
  line-height: 1;
  text-align: center;
  white-space: nowrap;
  pointer-events: none;
  user-select: none;
  filter: drop-shadow(0 2px 2px rgba(0, 0, 0, .85));
}

.wwz-map-place-name-native,
.wwz-map-place-name-latin {
  display: block;
  text-shadow:
    -1px -1px 0 #080808,
     1px -1px 0 #080808,
    -1px  1px 0 #080808,
     1px  1px 0 #080808,
     0 2px 3px rgba(0,0,0,.95);
}

.wwz-map-place-name-native {
  font-size: 9px;
  font-weight: 950;
  letter-spacing: .025em;
  text-transform: uppercase;
}

.wwz-map-place-name-latin {
  color: rgba(248, 244, 236, .92);
  font-size: 7.5px;
  font-weight: 780;
  letter-spacing: .012em;
}

.wwz-map-place-name--capital .wwz-map-place-name-native {
  font-size: 13px;
  letter-spacing: .05em;
}

.wwz-map-place-name--capital .wwz-map-place-name-latin {
  font-size: 9.5px;
  font-weight: 900;
}

.wwz-map-place-name--city .wwz-map-place-name-native {
  font-size: 11px;
  letter-spacing: .04em;
}

.wwz-map-place-name--city .wwz-map-place-name-latin {
  font-size: 8.5px;
  font-weight: 850;
}

.wwz-map-place-name--village {
  color: #eee7dc;
}

.wwz-map-place-name--village .wwz-map-place-name-native {
  font-size: 9px;
}

.wwz-map-place-name--village .wwz-map-place-name-latin {
  color: rgba(232, 224, 214, .9);
  font-size: 7.5px;
}

.wwz-map-place-name--local,
.wwz-map-place-name--marine,
.wwz-map-place-name--hill,
.wwz-map-place-name--camp,
.wwz-map-place-name--ruin {
  color: #d8d0c6;
  opacity: .9;
}

.wwz-map-place-name--local .wwz-map-place-name-native,
.wwz-map-place-name--marine .wwz-map-place-name-native,
.wwz-map-place-name--hill .wwz-map-place-name-native,
.wwz-map-place-name--camp .wwz-map-place-name-native,
.wwz-map-place-name--ruin .wwz-map-place-name-native { font-size: 8px; }

.wwz-map-place-name--local .wwz-map-place-name-latin,
.wwz-map-place-name--marine .wwz-map-place-name-latin,
.wwz-map-place-name--hill .wwz-map-place-name-latin,
.wwz-map-place-name--camp .wwz-map-place-name-latin,
.wwz-map-place-name--ruin .wwz-map-place-name-latin {
  color: rgba(216, 208, 198, .82);
  font-size: 7px;
}

.wwz-map-place-name--marine { color: #b9d4df; }
.wwz-map-place-name--hill { color: #c8c3aa; }
.wwz-map-place-name--camp { color: #d7b98d; }
.wwz-map-place-name--ruin { color: #c8b6aa; }

.wwz-chernarus-map:fullscreen .wwz-map-location-pin-label {
  font-size: 11px;
}

.wwz-map-selection-disabled { cursor: grab; }
.wwz-map-selection-disabled:active { cursor: grabbing; }

.wwz-chernarus-map--picker,
.wwz-chernarus-map--delivery {
  width: 100%;
  aspect-ratio: 1;
  min-height: 300px;
  border: 1px solid var(--line-strong, rgba(255,255,255,.14));
}

.wwz-chernarus-map--saved-location {
  width: 100%;
  aspect-ratio: 16 / 10;
  min-height: 300px;
  border: 1px solid var(--line-strong, rgba(255,255,255,.14));
}

.wwz-chernarus-map:fullscreen,
.wwz-map-fullscreen-target:fullscreen .wwz-chernarus-map {
  width: 100vw;
  height: 100vh;
  min-height: 100vh;
  aspect-ratio: auto;
}

.wwz-chernarus-map .map-controls,
.wwz-chernarus-map .map-visual-controls,
.wwz-chernarus-map .coordinate-picker-controls,
.wwz-chernarus-map .member-map-controls,
.wwz-chernarus-map .saved-location-map-controls {
  z-index: 1000;
}

.map-visual-controls {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 10;
  width: min(210px, calc(100% - 90px));
  display: grid;
  gap: 10px;
  padding: 11px 12px;
  border: 1px solid rgba(238,232,222,.20);
  border-radius: 7px;
  background: rgba(7,6,6,.88);
  color: #f4ede5;
  backdrop-filter: blur(8px);
}

.map-visual-controls label,
.map-visual-controls label > span {
  display: grid;
  gap: 6px;
}

.map-visual-controls label > span {
  grid-template-columns: 1fr auto;
  align-items: center;
  color: #a9a19a;
  font-size: 8px;
  font-weight: 850;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.map-visual-controls output { color: #ffd35a; }

.map-visual-controls input[type="range"] {
  width: 100%;
  accent-color: #d52b1e;
  cursor: pointer;
}

.wwz-map-grid-label {
  background: transparent !important;
  border: 0 !important;
  pointer-events: none !important;
}

.wwz-map-grid-label span {
  display: block;
  width: max-content;
  padding: 2px 4px;
  border: 1px solid rgba(240,223,182,.25);
  border-radius: 3px;
  background: rgba(7,6,6,.72);
  color: #f0dfb6;
  font: 700 8px/1 ui-monospace, SFMono-Regular, Menlo, monospace;
  text-shadow: 0 1px 2px #000;
}

.wwz-chernarus-map .map-coordinate-readout,
.wwz-chernarus-map .coordinate-picker-hint,
.wwz-chernarus-map .member-map-readout,
.wwz-chernarus-map .saved-location-map-readout,
.wwz-chernarus-map .map-loading {
  z-index: 1000;
  pointer-events: auto;
}

.wwz-chernarus-map .map-loading.error {
  border-color: rgba(224, 75, 61, .55);
  background: rgba(42, 10, 8, .92);
}

.wwz-chernarus-map .map-loading.error span { display: none; }

.saved-location-map-shell {
  display: grid;
  gap: 8px;
  margin-top: 14px;
}

.saved-location-map-shell > small {
  color: #8f8882;
  line-height: 1.5;
}

.saved-location-map {
  position: relative;
  border-radius: 7px;
}

.saved-location-map-controls {
  position: absolute;
  top: 10px;
  left: 10px;
  display: grid;
  grid-template-columns: repeat(4, 38px);
  gap: 5px;
}

.saved-location-map-controls button {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255,255,255,.18);
  background: rgba(8,7,7,.92);
  color: #fff;
  font: inherit;
  font-size: 18px;
  font-weight: 900;
  cursor: pointer;
}

.saved-location-map-readout {
  position: absolute;
  right: 10px;
  bottom: 10px;
  left: 10px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 11px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(7,6,6,.90);
  font-size: 10px;
}

.saved-location-map-readout span { color: #9f9791; }

.map-controls button.active,
.coordinate-picker-controls button.active,
.member-map-controls button.active {
  border-color: rgba(255,190,42,.78) !important;
  background: rgba(54,38,8,.94) !important;
  color: #ffd35a !important;
}

.map-controls .map-layer-button {
  width: auto !important;
  min-width: 58px;
  padding-inline: 9px;
  font-size: 9px !important;
  letter-spacing: .05em;
  text-transform: uppercase;
}


.coordinate-picker-frame .leaflet-pane,
.member-coordinate-map .leaflet-pane,
.saved-location-map .leaflet-pane { border-radius: inherit; }

@media (max-width: 720px) {
  .wwz-chernarus-map--picker,
  .wwz-chernarus-map--delivery { min-height: 280px; }

  .wwz-chernarus-map--saved-location {
    aspect-ratio: 1;
    min-height: 280px;
  }

  .map-visual-controls {
    top: auto;
    right: 10px;
    bottom: 80px;
    width: min(190px, calc(100% - 20px));
  }
}


/* v1.22.30 — map location index and personal browser pins */
.map-location-panel {
  overflow: hidden;
}

.map-location-tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 5px;
  margin: 2px 3px 10px 0;
  padding: 4px;
  border: 1px solid rgba(255,255,255,.08);
  background: rgba(7,7,8,.58);
}

.map-location-tabs button {
  min-width: 0;
  padding: 8px 5px;
  border: 1px solid transparent;
  background: transparent;
  color: #7f7872;
  font: inherit;
  font-size: 8px;
  font-weight: 850;
  letter-spacing: .04em;
  text-transform: uppercase;
  cursor: pointer;
}

.map-location-tabs button:hover,
.map-location-tabs button:focus-visible {
  color: #d9d1ca;
  border-color: rgba(255,255,255,.1);
}

.map-location-tabs button.active {
  border-color: rgba(218,53,39,.38);
  background: rgba(177,35,25,.15);
  color: #ff8f83;
}

.map-location-tabs span {
  display: inline-grid;
  min-width: 17px;
  min-height: 17px;
  place-items: center;
  margin-left: 3px;
  padding: 0 4px;
  border-radius: 999px;
  background: rgba(255,255,255,.07);
  color: #c8c0ba;
  font-size: 7px;
}

.map-location-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0 3px 10px 0;
}

.map-location-tools .compact-action,
.map-import-label {
  min-height: 31px;
  padding: 7px 9px;
  font-size: 7px;
  letter-spacing: .04em;
  cursor: pointer;
}

.map-import-label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.map-import-label input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

.map-location-list {
  display: grid;
  gap: 5px;
}

.map-location-button {
  width: 100%;
  min-width: 0;
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr) 16px;
  gap: 9px;
  align-items: center;
  padding: 9px;
  border: 1px solid rgba(255,255,255,.075);
  background: rgba(255,255,255,.018);
  color: #aaa29b;
  cursor: pointer;
  text-align: left;
  transition: border-color 140ms ease, background 140ms ease, transform 140ms ease;
}

.map-location-button:hover,
.map-location-button:focus-visible {
  transform: translateX(2px);
  border-color: rgba(218,53,39,.28);
  background: rgba(212,36,24,.055);
  color: #f0e9e2;
}

.map-location-button.selected {
  border-color: rgba(239,75,62,.52);
  background: linear-gradient(90deg, rgba(212,36,24,.13), rgba(212,36,24,.035));
  color: #fff5ee;
}

.map-location-button[data-scope="custom"] {
  border-color: rgba(255,189,54,.12);
}

.map-location-button[data-scope="custom"].selected {
  border-color: rgba(255,189,54,.5);
  background: linear-gradient(90deg, rgba(255,189,54,.105), rgba(255,189,54,.02));
}

.map-location-symbol {
  width: 29px;
  height: 29px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255,255,255,.08);
  background: rgba(212,36,24,.11);
  color: var(--red-bright, #ef4b3e);
  font-size: 12px;
}

.map-location-button[data-scope="custom"] .map-location-symbol,
.map-location-button[data-scope="public"] .map-location-symbol {
  background: color-mix(in srgb, var(--pin-colour, #ffbd36) 13%, transparent);
  color: var(--pin-colour, #ffbd36);
}

.map-custom-panel[data-editor-scope="public"] {
  border-color: rgba(239,75,62,.28);
}

.map-custom-panel[data-editor-scope="public"] .map-custom-note {
  color: #ba8f89;
}

.map-location-button > span:nth-child(2) {
  min-width: 0;
}

.map-location-heading {
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.map-location-heading strong {
  min-width: 0;
  overflow: hidden;
  color: inherit;
  font-size: 9px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.map-location-heading em {
  flex: 0 0 auto;
  padding: 3px 5px;
  border: 1px solid rgba(255,255,255,.09);
  color: #776f69;
  font-size: 6px;
  font-style: normal;
  font-weight: 900;
  letter-spacing: .07em;
  text-transform: uppercase;
}

.map-location-button[data-scope="custom"] .map-location-heading em {
  border-color: rgba(255,189,54,.22);
  color: #d7aa50;
}

.map-location-button small {
  display: block;
  margin-top: 3px;
  overflow: hidden;
  color: #77706a;
  font-size: 7px;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.map-location-button .map-location-note {
  color: #5d5752;
}

.map-location-arrow {
  color: #665e58;
  font-size: 13px;
  text-align: center;
}

.map-detail-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.map-scope-badge {
  display: inline-flex;
  align-items: center;
  padding: 5px 7px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.035);
  color: #918984;
  font-size: 7px;
  font-weight: 850;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.map-scope-badge[data-scope="custom"] {
  border-color: rgba(255,189,54,.28);
  background: rgba(255,189,54,.07);
  color: #e3b554;
}

.map-scope-badge[data-scope="selection"] {
  border-color: rgba(76,167,255,.26);
  background: rgba(76,167,255,.06);
  color: #80bcf3;
}

.map-coordinate-list {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.map-detail-actions,
.map-details-empty-actions,
.map-custom-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.map-details-empty-actions {
  margin-top: 16px;
}

.map-detail-actions .compact-action {
  min-height: 32px;
  padding: 7px 10px;
  font-size: 7px;
}

.map-custom-panel {
  border-color: rgba(255,189,54,.18);
}

.map-panel-close {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255,255,255,.1);
  background: rgba(255,255,255,.025);
  color: #978f89;
  font: inherit;
  font-size: 17px;
  cursor: pointer;
}

.map-panel-close:hover {
  border-color: rgba(239,75,62,.35);
  color: #fff;
}

.map-custom-form {
  display: grid;
  gap: 10px;
}

.map-custom-form label {
  display: grid;
  gap: 5px;
}

.map-custom-form label > span {
  color: #78716b;
  font-size: 7px;
  font-weight: 850;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.map-custom-form input,
.map-custom-form select,
.map-custom-form textarea {
  width: 100%;
  box-sizing: border-box;
  padding: 9px 10px;
  border: 1px solid rgba(255,255,255,.1);
  outline: 0;
  background: rgba(5,5,6,.72);
  color: #e5ddd6;
  font: inherit;
  font-size: 9px;
}

.map-custom-form textarea {
  min-height: 70px;
  resize: vertical;
}

.map-custom-form input:focus,
.map-custom-form select:focus,
.map-custom-form textarea:focus {
  border-color: rgba(255,189,54,.42);
}

.map-custom-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.map-use-selection {
  width: 100%;
  font-size: 8px;
}

.map-custom-note {
  margin: 0;
  padding-top: 8px;
  border-top: 1px solid rgba(255,255,255,.07);
  color: #625c57;
  font-size: 7px;
  line-height: 1.5;
}

.wwz-map-custom-marker {
  filter: drop-shadow(0 0 5px rgba(255,189,54,.32));
}

@media (max-width: 1180px) {
  .map-custom-panel {
    grid-column: 1 / -1;
  }
}

@media (max-width: 560px) {
  .map-custom-grid {
    grid-template-columns: 1fr;
  }

  .map-location-tools > * {
    flex: 1 1 auto;
  }
}
