/* Interactive map, complete backup, and tier-ordered recommendations. */
.sidebar-nav { overflow-y: auto; }

.recommendation-control-actions { display: flex; align-items: end; gap: 12px; }
.recommendation-view-switch { display: flex; flex-wrap: wrap; gap: 6px; }
.recommendation-view-switch .tier-tab { margin: 0; }
.recommendation-tier-group { display: grid; gap: 10px; padding: 14px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); }
.recommendation-tier-heading { display: flex; align-items: center; gap: 12px; }
.recommendation-tier-heading .tier-rank { width: 52px; min-height: 52px; }
.recommendation-tier-heading h3 { margin: 0; font-size: 17px; }
.recommendation-tier-heading p { margin: 2px 0 0; color: var(--muted); font-size: 10px; }

.map-page-heading { align-items: center; }
.map-help-strip { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 8px; margin-bottom: 12px; }
.map-help-strip > div { display: grid; gap: 2px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 9px; background: var(--panel); }
.map-help-strip strong { font-size: 10px; }
.map-help-strip span { color: var(--muted); font-size: 9px; }

.interactive-map-shell { display: grid; grid-template-columns: 260px minmax(360px,1fr) 300px; min-height: 700px; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--panel); box-shadow: var(--shadow); }
.map-filter-panel, .map-details-panel { min-width: 0; padding: 14px; background: var(--panel); }
.map-filter-panel { overflow-y: auto; border-right: 1px solid var(--line); }
.map-details-panel { overflow-y: auto; border-left: 1px solid var(--line); }
.map-main-column { position: relative; display: grid; grid-template-rows: auto minmax(0,1fr); min-width: 0; min-height: 0; }

/* Removed old map-switcher styles */
.map-filter-heading { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 14px 0 7px; }
.map-filter-heading strong { font-size: 10px; letter-spacing: .06em; text-transform: uppercase; }
.map-filter-heading span { color: var(--muted); font-size: 8px; }
.map-category-list { display: grid; gap: 4px; }
.map-category-option { display: grid; grid-template-columns: 18px 28px minmax(0,1fr) auto; align-items: center; gap: 7px; min-height: 37px; padding: 5px 7px; border: 1px solid transparent; border-radius: 7px; color: var(--muted); background: var(--panel); cursor: pointer; }
.map-category-option:hover { border-color: var(--line); color: var(--text); }
.map-category-option input { width: 15px; min-height: 15px; height: 15px; margin: 0; padding: 0; accent-color: var(--red); }
.map-category-option strong { overflow: hidden; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.map-category-option em { color: var(--muted-2); font-size: 8px; font-style: normal; }
.map-marker-mini, .map-marker-large { display: grid; place-items: center; border: 1px solid var(--line); color: var(--text); background: var(--panel-2); font-weight: 900; }
.map-marker-mini { width: 26px; height: 26px; border-radius: 7px; font-size: 7px; }
.map-marker-large { width: 48px; height: 48px; flex: 0 0 48px; border-radius: 11px; font-size: 10px; }
.map-filter-buttons { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-top: 8px; }
.map-hide-found { margin: 11px 0; }
.map-filter-panel > .button { width: 100%; }
.map-filter-panel > .button.active { background: #fff; color: var(--panel); }
.map-local-note { margin: 10px 0 0; color: var(--muted-2); font-size: 8px; line-height: 1.5; }

.map-toolbar { display: flex; min-height: 48px; align-items: center; justify-content: space-between; gap: 12px; padding: 7px 10px; border-bottom: 1px solid var(--line); background: var(--panel); }
.map-zoom-controls { display: flex; gap: 5px; }
.map-zoom-controls button { min-width: 32px; min-height: 32px; padding: 5px 8px; border: 1px solid var(--line); border-radius: 6px; color: var(--text); background: var(--panel); font-size: 10px; font-weight: 900; }
#map-coordinate-readout, #map-progress-readout { color: var(--muted); font-size: 8px; font-weight: 800; }
#map-progress-readout { text-align: right; }

.map-viewport { position: relative; min-height: 630px; overflow: hidden; outline: none; background: #050507; cursor: grab; touch-action: none; user-select: none; }
.map-viewport:focus-visible { box-shadow: inset 0 0 0 2px rgba(217,10,44,.7); }
.map-viewport.dragging { cursor: grabbing; }
.map-stage { position: absolute; left: 0; top: 0; width: 1000px; height: 1000px; transform-origin: 0 0; will-change: transform; }
.map-stage > img { position: absolute; inset: 0; width: 1000px; height: 1000px; max-width: none; object-fit: fill; pointer-events: none; }
.map-marker-layer { position: absolute; inset: 0; }
.map-marker { position: absolute; z-index: 2; display: grid; width: 28px; height: 28px; place-items: center; margin: -14px 0 0 -14px; padding: 0; border: 2px solid rgba(255,255,255,.8); border-radius: 50% 50% 50% 8px; color: var(--text); background: #23232a; box-shadow: 0 4px 12px rgba(0,0,0,.55); transform: rotate(-45deg); transition: width .12s ease, height .12s ease, margin .12s ease, filter .12s ease; }
.map-marker span { font-size: 7px; font-weight: 900; transform: rotate(45deg); }
.map-marker:hover, .map-marker.selected { z-index: 5; width: 34px; height: 34px; margin: -17px 0 0 -17px; filter: brightness(1.25); }
.map-marker.found, .map-marker.auto-found { box-shadow: 0 0 0 4px rgba(88,214,155,.32), 0 4px 12px rgba(0,0,0,.55); }
.map-marker.completed { border-color: #f1b74b; box-shadow: 0 0 0 4px rgba(241,183,75,.35), 0 4px 12px rgba(0,0,0,.55); }
.map-marker.favourite::after { content: "*"; position: absolute; right: -5px; top: -7px; color: #f1b74b; font-size: 15px; line-height: 1; transform: rotate(45deg); text-shadow: 0 1px 3px #000; }
.map-placement-hint { position: absolute; z-index: 10; left: 50%; top: 16px; max-width: calc(100% - 30px); padding: 9px 12px; border: 1px solid rgba(217,10,44,.55); border-radius: 999px; color: var(--text); background: rgba(9,9,12,.93); font-size: 9px; font-weight: 800; transform: translateX(-50%); pointer-events: none; }

.map-category-fast-travel { background: #2c6fae; }
.map-category-tower { background: #8d3261; }
.map-category-watchtower { background: #7554a9; }
.map-category-alpha-pal { background: #b23b3b; }
.map-category-dungeon { background: #4f4f5c; }
.map-category-journal { background: #8a6b2e; }
.map-category-custom { background: #248363; }

.map-details-empty { display: grid; min-height: 380px; place-items: center; align-content: center; text-align: center; }
.map-details-symbol { display: grid; width: 66px; height: 66px; place-items: center; margin-bottom: 12px; border: 1px solid var(--line); border-radius: 50%; color: var(--muted); font-size: 10px; font-weight: 900; }
.map-details-empty h3 { margin: 0; font-size: 18px; }
.map-details-empty p { margin: 7px 0 0; color: var(--muted); font-size: 10px; }
.map-detail-card { display: grid; gap: 13px; }
.map-detail-title { display: flex; align-items: center; gap: 11px; }
.map-detail-title h3 { margin: 3px 0 0; font-size: 19px; line-height: 1.05; }
.map-status-line { display: flex; flex-wrap: wrap; gap: 6px; }
.map-status, .map-favourite-badge { padding: 5px 8px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); background: var(--panel); font-size: 8px; font-weight: 900; text-transform: uppercase; }
.map-status.found, .map-status.auto-found { border-color: rgba(88,214,155,.35); color: #8ce2ba; }
.map-status.completed { border-color: rgba(241,183,75,.4); color: var(--gold); }
.map-favourite-badge { border-color: rgba(241,183,75,.3); color: var(--gold); }
.map-detail-info .info-row { min-height: 31px; }
.map-detail-copy { margin: 0; color: var(--muted); font-size: 10px; line-height: 1.6; }
.map-note { padding: 10px; border: 1px solid rgba(104,167,255,.25); border-radius: 8px; background: rgba(104,167,255,.055); }
.map-note strong { font-size: 9px; }
.map-note p { margin: 4px 0 0; color: #d6e3ff; font-size: 10px; white-space: pre-wrap; }
.map-all-player-note { margin: 0; padding: 8px; border-left: 2px solid var(--blue); color: var(--muted); background: var(--panel); font-size: 8px; }
.map-detail-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.map-detail-actions .button { min-height: 35px; padding: 6px 8px; font-size: 9px; }
.map-custom-form { grid-template-columns: 1fr; }
.map-coordinate-preview { padding: 9px; border: 1px solid var(--line); border-radius: 7px; color: var(--muted); background: var(--panel); font-size: 9px; }
.map-loading { min-height: 300px; display: grid; place-items: center; align-content: center; }
.map-loading p { color: var(--muted); font-size: 10px; }

.backup-explainer-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 11px; margin-bottom: 13px; }
.backup-explainer-card { display: flex; min-height: 245px; flex-direction: column; box-shadow: none; }
.backup-explainer-card.featured { border-color: rgba(217,10,44,.48); background: linear-gradient(145deg,rgba(217,10,44,.08),var(--panel)); }
.backup-step { display: grid; width: 34px; height: 34px; place-items: center; border: 1px solid var(--line); border-radius: 50%; color: var(--red-2); font-size: 11px; font-weight: 900; }
.backup-explainer-card h3 { margin: 16px 0 7px; font-size: 18px; }
.backup-explainer-card p { margin: 0 0 18px; color: var(--muted); font-size: 11px; line-height: 1.6; }
.backup-explainer-card .button { align-self: flex-start; margin-top: auto; }
.backup-current-data, .backup-import-panel, .backup-safety-note { margin-bottom: 13px; box-shadow: none; }
.backup-overview { margin: 14px 0 0; }
.backup-import-panel { display: flex; align-items: center; justify-content: space-between; gap: 22px; }
.backup-import-panel h3 { margin: 4px 0; font-size: 21px; }
.backup-import-panel p { max-width: 720px; margin: 0; color: var(--muted); font-size: 11px; }
.backup-choice-copy { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 13px; }
.backup-choice-copy > div { display: grid; gap: 2px; padding: 9px; border: 1px solid var(--line); border-radius: 8px; background: var(--panel); }
.backup-choice-copy strong { font-size: 9px; }
.backup-choice-copy span { color: var(--muted); font-size: 8px; }
.backup-safety-note strong { font-size: 12px; }
.backup-safety-note p { margin: 4px 0 0; color: var(--muted); font-size: 10px; }

.interactive-map-shell:fullscreen { width: 100vw; height: 100vh; grid-template-columns: 230px minmax(360px,1fr) 290px; border: 0; border-radius: 0; }
.interactive-map-shell:fullscreen .map-viewport { min-height: calc(100vh - 48px); }

@media (max-width: 1200px) {
  .interactive-map-shell { grid-template-columns: 210px minmax(330px,1fr); }
  .map-details-panel { grid-column: 1/-1; min-height: 210px; border-top: 1px solid var(--line); border-left: 0; }
  .map-detail-card { grid-template-columns: minmax(210px,.8fr) minmax(260px,1.2fr); align-items: start; }
  .map-detail-title, .map-status-line, .map-detail-copy, .map-note, .map-all-player-note { grid-column: 1; }
  .map-detail-info, .map-detail-actions { grid-column: 2; }
  .map-detail-info { grid-row: 1/4; }
  .map-detail-actions { grid-row: 4/7; }
}

@media (max-width: 900px) {
  .recommendation-control-actions { width: 100%; align-items: stretch; flex-direction: column; }
  .recommendation-view-switch { display: grid; grid-template-columns: 1fr 1fr; }
  .map-help-strip, .backup-explainer-grid { grid-template-columns: 1fr; }
  .backup-explainer-card { min-height: 0; }
  .interactive-map-shell { grid-template-columns: 1fr; }
  .map-filter-panel { border-right: 0; border-bottom: 1px solid var(--line); }
  .map-category-list { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .map-main-column { min-height: 600px; }
  .map-viewport { min-height: 550px; }
  .map-details-panel { grid-column: auto; }
  .map-detail-card { display: grid; grid-template-columns: 1fr; }
  .map-detail-title, .map-status-line, .map-detail-copy, .map-note, .map-all-player-note, .map-detail-info, .map-detail-actions { grid-column: 1; grid-row: auto; }
  .backup-import-panel { align-items: flex-start; flex-direction: column; }
  .backup-choice-copy { grid-template-columns: 1fr; }
}

@media (max-width: 650px) {
  .map-page-heading { align-items: flex-start; }
  .map-page-heading .action-row { width: 100%; }
  .map-page-heading .button { flex: 1; }
  .map-category-list { grid-template-columns: 1fr; }
  .map-toolbar { flex-wrap: wrap; }
  #map-progress-readout { width: 100%; text-align: left; }
  .map-main-column { min-height: 520px; }
  .map-viewport { min-height: 470px; }
  .map-detail-actions { grid-template-columns: 1fr; }
  .backup-overview { grid-template-columns: repeat(2,minmax(0,1fr)); }
}


/* Map asset and coordinate correction hotfix. */
.interactive-map-shell { position: relative; }
.map-main-column { background: radial-gradient(circle at 50% 42%, rgba(24,70,90,.18), transparent 58%), #11283c; }
.map-toolbar { position: relative; z-index: 4; box-shadow: 0 8px 22px rgba(0,0,0,.2); }
.map-viewport::after { content: ""; position: absolute; inset: 0; border: 1px solid rgba(255,255,255,.035); pointer-events: none; box-shadow: inset 0 0 80px rgba(0,0,0,.42); }
.map-stage > img { image-rendering: auto; filter: saturate(1.06) contrast(1.025); }

.map-marker { width: 34px; height: 34px; margin: -17px 0 0 -17px; overflow: visible; border: 1px solid rgba(255,255,255,.72); border-radius: 10px; background: rgba(10,10,13,.9); box-shadow: 0 3px 12px rgba(0,0,0,.62), 0 0 0 2px rgba(0,0,0,.25); transform: none; backdrop-filter: blur(4px); }
.map-marker:hover, .map-marker.selected { width: 42px; height: 42px; margin: -21px 0 0 -21px; border-color: var(--text); filter: none; transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,.72), 0 0 0 3px rgba(217,10,44,.35); }
.map-marker-pal { border-radius: 50%; background: #101015; }
.map-marker.favourite::after { right: -7px; top: -9px; transform: none; }
.map-asset-wrap { display: grid; width: 100%; height: 100%; place-items: center; overflow: hidden; }
.map-asset-wrap img { display: block; width: 100%; height: 100%; object-fit: contain; }
.map-asset-wrap img.failed { display: none; }
.map-asset-wrap img + .map-icon-fallback { display: none; }
.map-asset-wrap img.failed + .map-icon-fallback { display: grid; }
.map-icon-fallback { width: 100%; height: 100%; place-items: center; color: var(--text); font-size: 8px; font-weight: 900; }
.map-pin-asset { padding: 4px; border-radius: inherit; }
.map-marker-pal .map-pin-asset { padding: 1px; }
.map-marker-pal .map-pin-asset img { object-fit: cover; border-radius: 50%; background: var(--panel); }
.map-category-fast-travel .map-pin-asset, .map-category-tower .map-pin-asset, .map-category-watchtower .map-pin-asset { background: #08679f; }
.map-category-dungeon .map-pin-asset { background: #383943; }
.map-category-journal .map-pin-asset { background: #806429; }
.map-category-custom .map-pin-asset { background: #1e8e6d; }
.map-marker-label { position: absolute; z-index: 8; left: 50%; bottom: calc(100% + 8px); width: max-content; max-width: 220px; padding: 6px 8px; border: 1px solid rgba(255,255,255,.12); border-radius: 6px; color: var(--text); background: rgba(6,6,9,.96); box-shadow: 0 8px 22px rgba(0,0,0,.5); font-size: 9px; font-weight: 800; line-height: 1.2; opacity: 0; transform: translate(-50%,4px); pointer-events: none; transition: opacity .12s ease, transform .12s ease; }
.map-marker:hover .map-marker-label, .map-marker:focus-visible .map-marker-label, .map-marker.selected .map-marker-label { opacity: 1; transform: translate(-50%,0); }

.map-marker-mini, .map-marker-large { padding: 0; overflow: hidden; background: var(--panel); }
.map-marker-mini .map-category-asset { padding: 3px; }
.map-marker-large .map-detail-asset { padding: 4px; }
.map-marker-large .map-detail-asset img { object-fit: contain; }
.map-detail-title .map-category-alpha-pal .map-detail-asset { padding: 0; }
.map-detail-title .map-category-alpha-pal img { object-fit: cover; }
.map-detail-card { gap: 15px; }
.map-detail-title { padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.map-detail-title h3 { font-size: 21px; }
.map-detail-info { padding: 4px 0; border-top: 1px solid rgba(255,255,255,.025); border-bottom: 1px solid rgba(255,255,255,.025); }
.map-detail-actions .button { min-height: 39px; }

.map-category-option { grid-template-columns: 18px 34px minmax(0,1fr) auto; min-height: 45px; }
.map-marker-mini { width: 32px; height: 32px; border-radius: 9px; }
.map-category-option input, .map-hide-found input { appearance: none; display: grid; width: 17px; min-width: 17px; height: 17px; min-height: 17px; place-items: center; border: 1px solid var(--line-2); border-radius: 4px; background: var(--panel); }
.map-category-option input:checked, .map-hide-found input:checked { border-color: var(--red); background: var(--red); }
.map-category-option input:checked::after, .map-hide-found input:checked::after { content: ""; width: 8px; height: 4px; border-left: 2px solid #fff; border-bottom: 2px solid #fff; transform: translateY(-1px) rotate(-45deg); }
.map-hide-found { display: flex; min-height: 40px; align-items: center; gap: 9px; padding: 9px 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--panel); }
.map-hide-found span { color: var(--muted); font-size: 9px; font-weight: 800; }

.map-exit-fullscreen { display: none; position: fixed; z-index: 10020; top: 14px; right: 16px; min-height: 44px; padding: 9px 16px; border: 1px solid rgba(255,255,255,.24); border-radius: 9px; color: var(--text); background: #d90a2c; box-shadow: 0 12px 30px rgba(0,0,0,.5); font-size: 11px; font-weight: 900; letter-spacing: .02em; }
.interactive-map-shell:fullscreen .map-exit-fullscreen, .interactive-map-shell.is-fullscreen .map-exit-fullscreen { display: block; }
.interactive-map-shell:fullscreen .map-toolbar { padding-right: 160px; }

.backup-overview { grid-template-columns: repeat(3,minmax(0,1fr)); gap: 10px; }
.backup-overview .backup-stat { display: grid; grid-template-columns: minmax(0,1fr) auto; grid-template-rows: auto auto; align-items: center; gap: 5px 14px; min-height: 96px; padding: 15px 16px; background: var(--panel); }
.backup-overview .backup-stat > span { grid-column: 1; grid-row: 1; color: #c9c9d0; font-size: 9px; letter-spacing: .08em; }
.backup-overview .backup-stat > strong { grid-column: 2; grid-row: 1/3; margin: 0; color: var(--text); font-size: 31px; }
.backup-overview .backup-stat > small { grid-column: 1; grid-row: 2; margin: 0; color: var(--muted); font-size: 9px; line-height: 1.35; }

@media (max-width: 900px) {
  .backup-overview { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 520px) {
  .backup-overview { grid-template-columns: 1fr; }
  .map-exit-fullscreen { top: 9px; right: 9px; min-height: 40px; padding: 8px 11px; font-size: 9px; }
}

/* V15: fixed-size upright pins and contained desktop map layout. */
@media (min-width: 901px) {
  body.map-route-active .main-content {
    width: calc(100vw - 240px);
    max-width: calc(100vw - 240px);
    min-width: 0;
  }

  body.map-route-active .view-container,
  body.map-route-active #view-interactive-map,
  body.map-route-active .interactive-map-shell {
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }
}

.map-marker {
  width: 22px;
  height: 22px;
  margin: -11px 0 0 -11px;
  border-radius: 50%;
  transform: scale(var(--map-marker-scale, 1));
  transform-origin: center;
  backdrop-filter: none;
}

.map-marker:hover,
.map-marker.selected,
.map-marker.map-category-effigy:hover,
.map-marker.map-category-egg:hover,
.map-marker.map-category-chest:hover,
.map-marker.map-category-pal-spawn:hover {
  width: 26px;
  height: 26px;
  margin: -13px 0 0 -13px;
  transform: scale(var(--map-marker-scale, 1));
}

.map-marker.map-category-effigy,
.map-marker.map-category-egg,
.map-marker.map-category-chest,
.map-marker.map-category-pal-spawn {
  width: 20px;
  height: 20px;
  margin: -10px 0 0 -10px;
}

.map-marker-cluster,
.map-marker-cluster:hover {
  width: 26px;
  height: 26px;
  margin: -13px 0 0 -13px;
  transform: scale(var(--map-marker-scale, 1));
  border-width: 1px;
  font-size: 8px;
}

.map-marker > .map-asset-wrap,
.map-marker > .map-icon-fallback,
.map-marker-cluster > span:first-child {
  transform: none;
}

.map-pin-asset { padding: 2px; }
.map-marker-pal .map-pin-asset { padding: 0; }

.map-details-panel {
  min-width: 0;
  max-width: 100%;
  overflow-x: hidden;
}

.map-detail-title > div,
.map-detail-title h3,
.map-detail-copy,
.map-detail-info strong {
  min-width: 0;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.map-detail-actions,
.map-detail-actions .button {
  min-width: 0;
  max-width: 100%;
}

@media (max-width: 900px) {
  body.map-route-active .main-content {
    width: 100%;
    max-width: 100%;
  }
}


/* Force-refresh build diagnostic. Remove only after confirming V9 is live. */
.map-build-badge {
  display: inline-flex;
  min-height: 24px;
  align-items: center;
  margin: 0 0 8px 10px;
  padding: 4px 8px;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 999px;
  color: var(--text);
  background: #d90a2c;
  box-shadow: 0 5px 18px rgba(217,10,44,.2);
  font-size: 8px;
  font-weight: 900;
  letter-spacing: .08em;
  line-height: 1;
  vertical-align: middle;
}
.map-page-heading h2 { display: inline-block; }


/* V10 open game-data sync and expanded map categories. */
.map-data-loading{display:flex;min-height:340px;align-items:center;justify-content:center;gap:18px;border:1px solid var(--line);border-radius:14px;background:var(--panel);color:var(--text)}.map-data-loading p{margin:6px 0 0;color:var(--muted)}.map-loading-ring{width:42px;height:42px;border:4px solid var(--line-2);border-top-color:var(--red);border-radius:50%;animation:map-spin .8s linear infinite}@keyframes map-spin{to{transform:rotate(360deg)}}
.map-data-status{display:flex;align-items:center;justify-content:space-between;gap:16px;margin:0 0 14px;padding:11px 14px;border:1px solid var(--line);border-left:4px solid #4c89b9;border-radius:10px;background:var(--panel)}.map-data-status.live{border-left-color:#24c980}.map-data-status.cached{border-left-color:#55a8ff}.map-data-status.stale{border-left-color:#e5a83b}.map-data-status.fallback{border-left-color:#ef1242}.map-data-status>div{display:grid;gap:3px}.map-data-status strong{font-size:10px;text-transform:uppercase;letter-spacing:.08em}.map-data-status span{color:var(--muted);font-size:9px;line-height:1.4}.map-data-status-actions{display:flex!important;grid-auto-flow:column;align-items:center;justify-items:end}.map-source-note{margin:8px 0 0;color:var(--muted-2);font-size:8px;line-height:1.45}
.map-category-group{padding:13px 4px 5px;color:var(--muted);font-size:8px;font-weight:900;letter-spacing:.12em;text-transform:uppercase}.map-category-group:first-child{padding-top:2px}.map-category-option.is-unavailable{opacity:.58}.map-category-option.is-unavailable strong{display:grid;gap:2px}.map-category-option strong small{color:var(--muted-2);font-size:7px;font-weight:700}.map-category-option input:disabled{cursor:not-allowed}
.map-category-effigy .map-pin-asset{background:#14683f}.map-category-egg .map-pin-asset{background:#9c5b22}.map-category-chest .map-pin-asset{background:#754221}.map-category-npc .map-pin-asset{background:#216f9e}.map-category-quest .map-pin-asset{background:#6f45a6}.map-category-schematic .map-pin-asset{background:#117a90}.map-category-pal-spawn .map-pin-asset{background:#0b6b9b}.map-category-bounty-boss .map-pin-asset{background:#881d30}.map-category-oil-rig .map-pin-asset{background:#4b5562}.map-category-resource .map-pin-asset{background:#6f805a}.map-category-ore .map-pin-asset{background:#8c5b35}.map-category-meteor .map-pin-asset{background:#a22285}
.map-marker.map-category-effigy,.map-marker.map-category-egg,.map-marker.map-category-chest,.map-marker.map-category-resource,.map-marker.map-category-ore,.map-marker.map-category-meteor{width:28px;height:28px;margin:-14px 0 0 -14px;border-radius:50%}.map-marker.map-category-pal-spawn{width:24px;height:24px;margin:-12px 0 0 -12px;opacity:.88}.map-marker.map-category-pal-spawn:hover{width:34px;height:34px;margin:-17px 0 0 -17px;opacity:1}.map-marker.map-category-effigy:hover,.map-marker.map-category-egg:hover,.map-marker.map-category-chest:hover,.map-marker.map-category-resource:hover,.map-marker.map-category-ore:hover,.map-marker.map-category-meteor:hover{width:38px;height:38px;margin:-19px 0 0 -19px}
@media(max-width:900px){.map-data-status{align-items:flex-start;flex-direction:column}.map-data-status-actions{width:100%;display:flex!important;justify-content:space-between}}


/* V11 data synchronization fix. V10 blocked remote JSON via its own CSP. */
.map-sync-error{display:block;max-width:760px;margin-top:5px;color:#ff8da1;font-size:8px;line-height:1.35;word-break:break-word}
.map-data-status.fallback{background:linear-gradient(90deg,rgba(217,10,44,.12),var(--panel) 35%)}
.map-data-status.live{background:linear-gradient(90deg,rgba(36,201,128,.10),var(--panel) 35%)}


/* V12 orientation + performance hotfix. */
.map-marker{will-change:auto;box-shadow:0 2px 7px rgba(0,0,0,.58),0 0 0 1px rgba(0,0,0,.28)}
.map-marker:hover,.map-marker.selected{box-shadow:0 5px 15px rgba(0,0,0,.68),0 0 0 2px rgba(217,10,44,.3)}
.map-marker-cluster{display:grid;width:38px;height:38px;margin:-19px 0 0 -19px;place-items:center;border:2px solid rgba(255,255,255,.9);border-radius:50%;background:linear-gradient(145deg,#d90a2c,#8b061c);color: var(--text);font-size:10px;font-weight:900;letter-spacing:-.03em;box-shadow:0 4px 13px rgba(0,0,0,.72),0 0 0 3px rgba(217,10,44,.18)}
.map-marker-cluster:hover{width:44px;height:44px;margin:-22px 0 0 -22px;background:linear-gradient(145deg,#f20c35,#a10822)}
.map-marker-layer{contain:layout style paint}
.map-category-option.is-lazy em{color:#6fd6e8;font-size:7px;letter-spacing:.08em}
.map-category-option.is-loading{opacity:.65;pointer-events:none}
.map-category-option.is-loading::after{content:"Loading...";grid-column:3/5;color:#6fd6e8;font-size:7px;font-weight:800}
.map-stage{transform-origin:0 0;backface-visibility:hidden}
.map-stage>img{transform:translateZ(0)}


/* V13 compact viewport map, populated assets and no-page-scroll desktop layout. */
@media (min-width: 901px) {
  body.map-route-active { overflow: hidden; }
  body.map-route-active .main-content { height: 100vh; min-height: 0; overflow: hidden; }
  body.map-route-active .view-container { height: calc(100vh - 88px); min-height: 0; padding: 0; overflow: hidden; }
  body.map-route-active .view,
  body.map-route-active #view-interactive-map { height: 100%; min-height: 0; }
  body.map-route-active .app-footer { display: none; }
  body.map-route-active .interactive-map-shell { height: 100%; min-height: 0; grid-template-columns: 260px minmax(0,1fr) 300px; border: 0; border-radius: 0; box-shadow: none; }
  body.map-route-active .map-main-column,
  body.map-route-active .map-viewport,
  body.map-route-active .map-filter-panel,
  body.map-route-active .map-details-panel { min-height: 0; height: 100%; }
}

.map-filter-panel { display: grid; grid-template-rows: auto auto auto minmax(0,1fr) auto auto auto auto; gap: 8px; overflow: hidden; padding: 10px; }
.map-filter-header { display: flex; align-items: end; justify-content: space-between; gap: 10px; }
.map-filter-header > div { display: grid; gap: 1px; }
.map-filter-header strong { font-size: 16px; line-height: 1; }
.map-filter-header #map-result-count { color: var(--muted); font-size: 8px; font-weight: 800; }
.map-filter-fields { display: grid; grid-template-columns: 1fr; gap: 6px; }
.map-filter-fields .field { gap: 3px; }
.map-filter-fields label { font-size: 8px; }
.map-filter-fields input,
.map-filter-fields select { min-height: 36px; padding: 7px 10px; font-size: 11px; }
.map-toggle-btn { min-height: 36px; padding: 7px 9px; border: 1px solid var(--line); border-radius: 7px; color: var(--muted); background: var(--panel); font-size: 9px; font-weight: 900; cursor: pointer; text-transform: uppercase; letter-spacing: .04em; transition: border-color .15s, color .15s, background .15s; }
.map-toggle-btn:hover { color: var(--text); background: rgba(255,255,255,.04); }
.map-toggle-btn.active { border-color: rgba(217,10,44,.55); color: var(--text); background: rgba(217,10,44,.15); }

.map-layer-tabs { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 5px; }
.map-category-search { display: grid; gap: 4px; margin: 6px 0; }
.map-category-search span { color: var(--muted); font-size: 8px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; }
.map-category-search input { width: 100%; box-sizing: border-box; padding: 8px 9px; border: 1px solid var(--line); border-radius: 7px; background: var(--panel); color: var(--text); font: inherit; font-size: 10px; }
.map-layer-tabs button { display: flex; min-width: 0; min-height: 33px; align-items: center; justify-content: space-between; gap: 5px; padding: 6px 8px; border: 1px solid var(--line); border-radius: 7px; color: var(--muted); background: var(--panel); font-size: 8px; font-weight: 800; }
.map-layer-tabs button span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.map-layer-tabs button em { display: grid; min-width: 18px; height: 18px; place-items: center; border-radius: 999px; color: var(--text); background: var(--panel-2); font-size: 7px; font-style: normal; }
.map-layer-tabs button.active { border-color: rgba(217,10,44,.55); color: var(--text); background: rgba(217,10,44,.13); }
.map-layer-tabs button.active em { color: #fff; background: var(--red); }

.map-category-list { grid-template-columns: repeat(2,minmax(0,1fr)); align-content: start; gap: 6px; overflow: hidden; }
.map-category-option { grid-template-columns: 15px 28px minmax(0,1fr); min-height: 49px; gap: 6px; padding: 5px 6px; border-color: var(--line); }
.map-category-option:hover { border-color: var(--line-2); }
.map-category-option input { width: 14px; height: 14px; min-height: 14px; }
.map-category-option .map-marker-mini { width: 27px; height: 27px; }
.map-layer-copy { display: grid; min-width: 0; gap: 2px; }
.map-layer-copy strong { overflow: hidden; color: var(--text); font-size: 8px; line-height: 1.1; text-overflow: ellipsis; white-space: nowrap; }
.map-layer-copy small { overflow: hidden; color: var(--muted); font-size: 7px; line-height: 1.1; text-overflow: ellipsis; white-space: nowrap; }
.map-category-option.is-unavailable { opacity: .5; }
.map-filter-buttons { margin: 0; }
.map-filter-buttons .button { min-height: 31px; padding: 5px; font-size: 8px; }
.map-hide-found { min-height: 32px; margin: 0; padding: 6px 8px; }
.map-add-marker { min-height: 35px; padding: 7px 9px; font-size: 9px; }

.map-sync-compact { display: grid; grid-template-columns: 9px minmax(0,1fr) 28px; align-items: center; gap: 7px; min-height: 41px; padding: 6px 7px; border: 1px solid var(--line); border-radius: 8px; background: var(--panel); }
.map-sync-dot { width: 8px; height: 8px; border-radius: 50%; background: #6e7480; box-shadow: 0 0 0 3px rgba(110,116,128,.12); }
.map-sync-compact.live .map-sync-dot { background: #27d78e; box-shadow: 0 0 0 3px rgba(39,215,142,.13); }
.map-sync-compact.cached .map-sync-dot { background: #55a8ff; }
.map-sync-compact.stale .map-sync-dot { background: #e5a83b; }
.map-sync-copy { display: grid; min-width: 0; gap: 1px; }
.map-sync-copy strong { font-size: 8px; }
.map-sync-copy small { overflow: hidden; color: var(--muted); font-size: 7px; text-overflow: ellipsis; white-space: nowrap; }
.map-sync-compact button { width: 28px; height: 28px; padding: 0; border: 1px solid var(--line); border-radius: 6px; color: var(--text); background: var(--panel); font-size: 15px; }

.map-main-column { grid-template-rows: 44px minmax(0,1fr); }
.map-toolbar { min-height: 44px; padding: 6px 8px; }
.map-toolbar-right { display: flex; align-items: center; justify-content: flex-end; gap: 9px; }
.map-fullscreen-button { min-height: 31px; padding: 5px 9px; border: 1px solid var(--line); border-radius: 6px; color: var(--text); background: var(--panel); font-size: 8px; font-weight: 900; }
.map-viewport { min-height: 0; background-color: #11283c; background-image: linear-gradient(rgba(17,40,60,.78),rgba(17,40,60,.78)), var(--map-background); background-position: center; background-size: cover; }
.map-viewport::before { content: ""; position: absolute; inset: 0; z-index: 0; background: radial-gradient(circle at center, transparent 35%, rgba(0,0,0,.15)); pointer-events: none; }
.map-stage { z-index: 1; }
.map-details-panel { padding: 12px; overflow-y: auto; overscroll-behavior: contain; }
.map-details-empty { min-height: 100%; }
.map-marker-large { width: 58px; height: 58px; flex-basis: 58px; }
.map-detail-title h3 { font-size: 20px; }
.map-detail-asset img { object-fit: contain; }
.map-detail-title .map-category-alpha-pal .map-detail-asset img { object-fit: cover; }

.map-asset-wrap img { content-visibility: auto; }
.map-marker { contain: layout paint style; }
.map-marker-label { contain: content; }

@media (max-width: 1200px) and (min-width: 901px) {
  body.map-route-active .interactive-map-shell { grid-template-columns: 230px minmax(0,1fr) 255px; }
  .map-category-list { grid-template-columns: 1fr; }
  .map-category-option { min-height: 43px; }
}

@media (max-width: 900px) {
  body.map-route-active { overflow: auto; }
  .interactive-map-shell { height: auto; grid-template-columns: 1fr; }
  .map-filter-panel { grid-template-rows: auto; overflow: visible; }
  .map-category-list { grid-template-columns: repeat(2,minmax(0,1fr)); overflow: visible; }
  .map-main-column { min-height: 620px; }
  .map-viewport { min-height: 575px; }
}

@media (max-width: 520px) {
  .map-category-list { grid-template-columns: 1fr; }
  .map-layer-tabs { grid-template-columns: 1fr 1fr; }
  .map-toolbar { flex-wrap: wrap; height: auto; }
  .map-toolbar-right { width: 100%; justify-content: space-between; }
}

/* V15 final overrides: fixed-size upright pins and contained map layout. */
@media (min-width: 901px) {
  body.map-route-active .main-content {
    width: calc(100vw - 240px);
    max-width: calc(100vw - 240px);
    min-width: 0;
  }

  body.map-route-active .view-container,
  body.map-route-active #view-interactive-map,
  body.map-route-active .interactive-map-shell {
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }
}

.map-marker,
.map-marker.map-category-effigy,
.map-marker.map-category-egg,
.map-marker.map-category-chest,
.map-marker.map-category-pal-spawn {
  width: 20px;
  height: 20px;
  margin: -10px 0 0 -10px;
  border-width: 1px;
  border-radius: 50%;
  transform: scale(var(--map-marker-scale, 1));
  transform-origin: center;
  backdrop-filter: none;
}

.map-marker:hover,
.map-marker.selected,
.map-marker.map-category-effigy:hover,
.map-marker.map-category-egg:hover,
.map-marker.map-category-chest:hover,
.map-marker.map-category-pal-spawn:hover {
  width: 24px;
  height: 24px;
  margin: -12px 0 0 -12px;
  transform: scale(var(--map-marker-scale, 1));
}

.map-marker-cluster,
.map-marker-cluster:hover {
  width: 26px;
  height: 26px;
  margin: -13px 0 0 -13px;
  border-width: 1px;
  font-size: 8px;
  transform: scale(var(--map-marker-scale, 1));
}

.map-marker > .map-asset-wrap,
.map-marker > .map-icon-fallback,
.map-marker-cluster > span:first-child {
  transform: none;
}

.map-marker > .map-marker-label {
  transform: translate(-50%, 4px) rotate(0deg);
}

.map-marker:hover > .map-marker-label,
.map-marker:focus-visible > .map-marker-label,
.map-marker.selected > .map-marker-label {
  transform: translate(-50%, 0) rotate(0deg);
}

.map-pin-asset { padding: 2px; }
.map-marker-pal .map-pin-asset { padding: 0; }

.map-details-panel {
  min-width: 0;
  max-width: 100%;
  overflow-x: hidden;
}

.map-detail-title > div,
.map-detail-title h3,
.map-detail-copy,
.map-detail-info strong {
  min-width: 0;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.map-detail-actions,
.map-detail-actions .button {
  min-width: 0;
  max-width: 100%;
}

@media (max-width: 900px) {
  body.map-route-active .main-content {
    width: 100%;
    max-width: 100%;
  }
}


/* V16: stable zoom rendering and clearer map controls. */
.map-marker-layer,.map-marker,.map-marker-label{contain:none!important}
.map-marker-layer{z-index:3!important;overflow:visible!important}

@media (min-width:901px){
  body.map-route-active .interactive-map-shell{grid-template-columns:280px minmax(0,1fr) 320px!important}
  body.map-route-active .map-filter-panel{padding:12px!important}
}

.map-category-list{grid-template-columns:1fr!important;gap:6px!important;overflow-x:hidden!important;overflow-y:auto!important;padding-right:2px}
.map-category-option{grid-template-columns:34px minmax(0,1fr) 36px!important;min-height:44px!important;gap:9px!important;padding:6px 8px!important;border:1px solid var(--line)!important;border-radius:9px!important;background:var(--panel)!important}
.map-category-option:hover{border-color:var(--line-2)!important;background:var(--panel-2)!important}
.map-category-option:has(input:checked){border-color:rgba(217,10,44,.58)!important;background:rgba(217,10,44,.09)!important}
.map-category-option .map-marker-mini{grid-column:1;grid-row:1;width:30px!important;height:30px!important}
.map-category-option .map-layer-copy{grid-column:2;grid-row:1}
.map-category-option .map-layer-copy strong{color:var(--text);font-size:9px!important}
.map-category-option .map-layer-copy small{margin-top:2px;font-size:7px!important;color:var(--muted)}

.map-category-option input{position:relative;grid-column:3;grid-row:1;width:34px!important;min-width:34px!important;height:19px!important;min-height:19px!important;margin:0!important;border:1px solid var(--line-2)!important;border-radius:999px!important;background:var(--panel-2)!important;cursor:pointer}
.map-category-option input::after,.map-category-option input:checked::after{content:""!important;position:absolute!important;left:3px;top:3px;width:11px!important;height:11px!important;border:0!important;border-radius:50%!important;background:var(--muted-2)!important;transform:none!important;transition:left .14s ease,background .14s ease}
.map-category-option input:checked{border-color:var(--red)!important;background:var(--red)!important}
.map-category-option input:checked::after{left:18px;background:#fff!important}
.map-category-option input:disabled{cursor:not-allowed;opacity:.45}

.map-filter-buttons{gap:7px!important}
.map-filter-buttons .button{min-height:34px!important;border-radius:8px!important;font-size:8px!important}
.map-hide-found{border-radius:8px!important;background:var(--panel)!important;border:1px solid var(--line)!important}

.map-details-panel{padding:14px!important;overflow-x:hidden!important}
.map-detail-title{display:grid!important;grid-template-columns:44px minmax(0,1fr)!important;gap:10px!important;align-items:center!important}
.map-detail-title .map-marker-large{width:44px!important;height:44px!important;flex-basis:44px!important}
.map-detail-title h3{margin-top:3px!important;font-size:15px!important;line-height:1.18!important;overflow-wrap:anywhere!important;word-break:break-word!important}
.map-detail-actions{grid-template-columns:1fr!important}

@media (max-width:1200px) and (min-width:901px){
  body.map-route-active .interactive-map-shell{grid-template-columns:245px minmax(0,1fr) 285px!important}
}


/* V17: crisp screen-space markers, separate from the zoomed map image. */
.map-marker-layer-screen{
  position:absolute!important;
  inset:0!important;
  z-index:5!important;
  width:auto!important;
  height:auto!important;
  overflow:hidden!important;
  contain:layout style!important;
  pointer-events:none!important;
}

.map-marker-layer-screen .map-marker{
  pointer-events:auto!important;
  transform:none!important;
  filter:none!important;
  will-change:auto!important;
  contain:layout style!important;
}

.map-marker-layer-screen .map-marker:hover,
.map-marker-layer-screen .map-marker.selected,
.map-marker-layer-screen .map-marker-cluster,
.map-marker-layer-screen .map-marker-cluster:hover{
  transform:none!important;
}

.map-marker-layer-screen .map-asset-wrap img{
  image-rendering:auto!important;
  transform:none!important;
  backface-visibility:visible!important;
}

.map-marker-layer-screen .map-marker-label{
  contain:none!important;
  filter:none!important;
}


/* V18: render the map at its native 4096px resolution. */
.map-stage{
  width:4096px!important;
  height:4096px!important;
  will-change:auto!important;
  backface-visibility:visible!important;
}

.map-stage>img{
  width:4096px!important;
  height:4096px!important;
  max-width:none!important;
  transform:none!important;
  image-rendering:auto!important;
  backface-visibility:visible!important;
}



/* Hotfix: keep the map locked inside the viewport. */
.map-viewport { cursor: default; }
.map-viewport.can-pan { cursor: grab; }
.map-viewport.can-pan.dragging { cursor: grabbing; }
.map-filter-fields { grid-template-columns: 1fr !important; }


/* High contrast map control hotfix */
.map-filter-panel { background:#fff!important;color:#0f0f12!important; }
#map-result-count { color:#fff!important;background:#d90a2c!important;border-color:#d90a2c!important; }
.map-layer-tabs button { color:#151519!important;background:#fff!important;border:1px solid #bfc1c9!important; }
.map-layer-tabs button em { color:#0f0f12!important;background:#ececf0!important; }
.map-layer-tabs button:hover { background:#fff2f5!important;border-color:#d90a2c!important; }
.map-layer-tabs button.active { color:#fff!important;background:#d90a2c!important;border-color:#d90a2c!important;box-shadow:none!important; }
.map-layer-tabs button.active em { color:#d90a2c!important;background:#fff!important; }
.map-category-list { scrollbar-color:#d90a2c #ececf0!important; }
.map-category-option { color:#0f0f12!important;background:#fff!important;border-color:#c6c8d0!important; }
.map-category-option:hover { color:#0f0f12!important;background:#fff4f6!important;border-color:#d90a2c!important; }
.map-category-option:has(input:checked) { color:#0f0f12!important;background:#ffe6ec!important;border-color:#d90a2c!important; }
.map-category-option .map-layer-copy strong { color:#0f0f12!important; }
.map-category-option .map-layer-copy small { color:#4c4d55!important; }
.map-overlay-controls { padding:8px!important;border:1px solid rgba(255,255,255,.75)!important;border-radius:10px!important;background:rgba(255,255,255,.94)!important;box-shadow:0 8px 24px rgba(0,0,0,.22)!important; }
.map-toggle-btn { min-height:40px!important;color:#111!important;background:#fff!important;border:2px solid #111!important;border-radius:7px!important;font-weight:900!important;text-transform:uppercase!important; }
.map-toggle-btn:hover { color:#d90a2c!important;border-color:#d90a2c!important;background:#fff3f6!important; }
.map-toggle-btn.active { color:#fff!important;background:#d90a2c!important;border-color:#d90a2c!important;box-shadow:0 0 0 2px rgba(255,255,255,.8)!important; }
body.map-route-active { overflow-x:hidden!important; }
body.map-route-active .pal-atlas-content { min-height:0!important; }


/* Readable marker hover labels */
.map-marker-label,
.map-marker > .map-marker-label,
.map-marker-layer-screen .map-marker-label {
  color:#111114!important;
  background:#ffffff!important;
  border:2px solid #d90a2c!important;
  box-shadow:0 8px 24px rgba(0,0,0,.25)!important;
  text-shadow:none!important;
  font-size:10px!important;
  font-weight:900!important;
  padding:7px 9px!important;
}
.map-marker.selected .map-marker-label { background:#d90a2c!important;color:#fff!important; }

/* 2026-08 map controls + ocean edge hotfix */
@media (min-width: 901px) {
  body.map-route-active .interactive-map-shell { grid-template-columns: 300px minmax(0,1fr) 290px; }
}
.map-filter-panel { gap: 9px; }
.map-filter-header strong { font-size: 14px; line-height: 1.15; }
.map-filter-header small { margin-top: 3px; font-size: 8px; line-height: 1.35; }
.map-filter-fields label { font-size: 8px; font-weight: 800; }
.map-filter-fields input { min-height: 37px; font-size: 10px; }
.map-layer-tabs { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 5px; }
.map-layer-tabs button { min-height: 38px; padding: 7px 8px; font-size: 9px; }
.map-layer-tabs button em { min-width: 20px; height: 20px; font-size: 8px; }
.map-category-list { grid-template-columns: 1fr; gap: 6px; overflow-y: auto; padding-right: 2px; }
.map-category-option { grid-template-columns: 15px 32px minmax(0,1fr) auto; min-height: 52px; padding: 7px 8px; }
.map-category-option .map-marker-mini { width: 30px; height: 30px; }
.map-layer-copy strong { font-size: 9px; }
.map-layer-copy small { font-size: 8px; }
.map-selected-target { display:grid; gap:4px; padding:10px; border:1px solid rgba(217,10,44,.35); border-radius:9px; background:#fff5f7; }
.map-selected-target[hidden] { display:none; }
.map-selected-target > span { color:var(--red); font-size:7px; font-weight:900; letter-spacing:.09em; text-transform:uppercase; }
.map-selected-target > strong { overflow:hidden; color:var(--text); font-size:11px; line-height:1.25; text-overflow:ellipsis; }
.map-selected-target > button { min-height:29px; border:1px solid rgba(217,10,44,.28); border-radius:6px; color:var(--red); background:#fff; font-size:8px; font-weight:900; cursor:pointer; }
.map-selected-target > button:hover { border-color:var(--red); background:#fff0f3; }
.map-filter-buttons { display:grid; grid-template-columns:1fr 1fr; gap:6px; }
.map-hide-found span { font-size:9px; }

/* Match the viewport gutters to the ocean immediately outside the map border. */
.map-main-column,
.map-viewport {
  background-color: #0d364a !important;
}
.map-viewport {
  background-image: radial-gradient(circle at 50% 48%, rgba(17,66,83,.18), rgba(13,54,74,0) 62%) !important;
}
.map-viewport::before {
  background: linear-gradient(90deg, rgba(5,28,42,.08), transparent 12%, transparent 88%, rgba(5,28,42,.08)) !important;
}

.map-pal-filter-panel { border-top:1px solid var(--line); padding-top:9px; }
.map-pal-filter-head strong { font-size:10px; }
.map-pal-filter-head small { font-size:8px; }
.map-pal-filter-actions input { min-height:34px; font-size:9px; }
.map-pal-filter-option { min-height:45px; }
.map-pal-filter-option strong { font-size:9px; }
.map-pal-filter-option small { font-size:8px; }

@media (max-width:1200px) and (min-width:901px) {
  body.map-route-active .interactive-map-shell { grid-template-columns: 270px minmax(0,1fr) 255px; }
}


/* 2026-08-09 exhaustive-map discovery hotfix */
.map-category-ore .map-pin-asset{background:#8a5b35}
.map-category-iron-ore .map-pin-asset{background:#6d737c}
.map-category-coal .map-pin-asset{background:#30333a}
.map-category-sulfur .map-pin-asset{background:#a88924}
.map-category-pure-quartz .map-pin-asset{background:#7872a8}
.map-category-pal-crystal .map-pin-asset{background:#317fa4}
.map-category-crystal .map-pin-asset{background:#547da5}
.map-category-stone .map-pin-asset{background:#62666c}
.map-category-cave-mushroom .map-pin-asset{background:#73558b}
.map-category-red-berry .map-pin-asset{background:#a13245}
.map-category-dog-coin .map-pin-asset{background:#9a7626}
.map-category-skill-fruit .map-pin-asset{background:#3d7e55}
.map-category-treasure-map .map-pin-asset{background:#87622c}
.map-category-junk-pile .map-pin-asset{background:#6f6258}
.map-category-yakushima-pot .map-pin-asset{background:#806045}
.map-category-yakushima-crystal .map-pin-asset{background:#497c8a}
.map-category-yakushima-mushroom .map-pin-asset{background:#765f83}
.map-category-yakushima-tree .map-pin-asset{background:#3d724b}
.map-category-lotus-attack .map-pin-asset{background:#9b3f46}
.map-category-lotus-hp .map-pin-asset{background:#b65066}
.map-category-lotus-stamina .map-pin-asset{background:#4c8174}
.map-category-lotus-workspeed .map-pin-asset{background:#4c7396}
.map-category-lotus-weight .map-pin-asset{background:#74608f}
.map-category-fishing-spot .map-pin-asset{background:#257b9b}
.map-category-incident .map-pin-asset{background:#a55a2e}

.map-marker.map-category-ore,
.map-marker.map-category-iron-ore,
.map-marker.map-category-coal,
.map-marker.map-category-sulfur,
.map-marker.map-category-pure-quartz,
.map-marker.map-category-pal-crystal,
.map-marker.map-category-crystal,
.map-marker.map-category-stone,
.map-marker.map-category-cave-mushroom,
.map-marker.map-category-red-berry,
.map-marker.map-category-dog-coin,
.map-marker.map-category-skill-fruit,
.map-marker.map-category-treasure-map,
.map-marker.map-category-junk-pile,
.map-marker.map-category-yakushima-pot,
.map-marker.map-category-yakushima-crystal,
.map-marker.map-category-yakushima-mushroom,
.map-marker.map-category-yakushima-tree,
.map-marker.map-category-lotus-attack,
.map-marker.map-category-lotus-hp,
.map-marker.map-category-lotus-stamina,
.map-marker.map-category-lotus-workspeed,
.map-marker.map-category-lotus-weight,
.map-marker.map-category-fishing-spot,
.map-marker.map-category-incident {
  width:26px;height:26px;margin:-13px 0 0 -13px;border-radius:50%;
}

/* Match the viewport gutters to the dark ocean outside the playable border. */
.map-viewport {
  background-color:#071a27!important;
  background-image:radial-gradient(circle at center,#0b2839 0%,#071a27 62%,#061620 100%)!important;
}


/* =========================================================
   MAP CONTROLS V3 - fixed header/footer + real scroll region
   ========================================================= */
@media (min-width:901px){
  body.map-route-active .interactive-map-shell{
    grid-template-columns:320px minmax(0,1fr) 290px!important;
  }

  body.map-route-active .map-filter-panel{
    display:flex!important;
    flex-direction:column!important;
    min-height:0!important;
    height:100%!important;
    overflow:hidden!important;
    gap:10px!important;
    padding:14px 12px 12px!important;
    border-right:1px solid #d8d9df!important;
    background:#fff!important;
  }

  .map-filter-header,
  .map-filter-fields,
  .map-selected-target,
  .map-layer-tabs,
  .map-filter-footer{
    flex:0 0 auto!important;
  }

  .map-layer-scroll{
    flex:1 1 auto!important;
    min-height:0!important;
    overflow-y:auto!important;
    overflow-x:hidden!important;
    padding:1px 5px 8px 1px!important;
    overscroll-behavior:contain!important;
    scrollbar-width:thin!important;
    scrollbar-color:#c7c9d0 transparent!important;
  }

  .map-layer-scroll::-webkit-scrollbar{width:7px}
  .map-layer-scroll::-webkit-scrollbar-track{background:transparent}
  .map-layer-scroll::-webkit-scrollbar-thumb{
    border:2px solid #fff;
    border-radius:999px;
    background:#c7c9d0;
  }
  .map-layer-scroll::-webkit-scrollbar-thumb:hover{background:#9fa2ad}
}

.map-filter-header{
  align-items:center!important;
}
.map-filter-header>div{gap:2px!important}
.map-filter-header .eyebrow{
  color:#d90a2c!important;
  font-size:8px!important;
  font-weight:900!important;
  letter-spacing:.12em!important;
}
.map-filter-header strong{
  color:#0f0f12!important;
  font-size:17px!important;
  line-height:1.1!important;
}
.map-filter-header small{
  max-width:220px!important;
  color:#72737a!important;
  font-size:8px!important;
  line-height:1.4!important;
}
#map-result-count{
  min-width:50px!important;
  padding:6px 8px!important;
  border:0!important;
  border-radius:999px!important;
  color:#fff!important;
  background:#d90a2c!important;
  font-size:8px!important;
  font-weight:900!important;
  text-align:center!important;
  white-space:nowrap!important;
}

.map-filter-fields .field{gap:5px!important}
.map-filter-fields label{
  color:#3f4047!important;
  font-size:8px!important;
  font-weight:900!important;
}
.map-filter-fields input{
  width:100%!important;
  min-height:42px!important;
  padding:9px 12px!important;
  border:1px solid #c8cad2!important;
  border-radius:10px!important;
  color:#111216!important;
  background:#fff!important;
  font-size:10px!important;
  box-shadow:0 1px 2px rgba(0,0,0,.02)!important;
}
.map-filter-fields input:focus{
  border-color:#d90a2c!important;
  box-shadow:0 0 0 3px rgba(217,10,44,.08)!important;
  outline:none!important;
}

.map-selected-target{
  grid-template-columns:minmax(0,1fr) 30px!important;
  align-items:center!important;
  gap:8px!important;
  padding:8px 8px 8px 10px!important;
  border:1px solid rgba(217,10,44,.28)!important;
  border-radius:10px!important;
  background:#fff5f7!important;
}
.map-selected-target>div{
  display:grid!important;
  min-width:0!important;
  gap:2px!important;
}
.map-selected-target>div>span{
  color:#d90a2c!important;
  font-size:7px!important;
  font-weight:900!important;
  letter-spacing:.1em!important;
  text-transform:uppercase!important;
}
.map-selected-target>div>strong{
  overflow:hidden!important;
  color:#111216!important;
  font-size:10px!important;
  line-height:1.25!important;
  text-overflow:ellipsis!important;
  white-space:nowrap!important;
}
.map-selected-target>button{
  display:grid!important;
  width:30px!important;
  height:30px!important;
  min-height:30px!important;
  place-items:center!important;
  padding:0!important;
  border:1px solid rgba(217,10,44,.24)!important;
  border-radius:8px!important;
  color:#d90a2c!important;
  background:#fff!important;
  font-size:18px!important;
  line-height:1!important;
}
.map-selected-target>button:hover{
  color:#fff!important;
  background:#d90a2c!important;
  border-color:#d90a2c!important;
}

.map-layer-tabs{
  display:grid!important;
  grid-template-columns:repeat(3,minmax(0,1fr))!important;
  gap:5px!important;
}
.map-layer-tabs button{
  min-height:42px!important;
  padding:7px 7px!important;
  border:1px solid #c9cbd2!important;
  border-radius:9px!important;
  color:#222329!important;
  background:#fff!important;
  font-size:8px!important;
  font-weight:900!important;
  line-height:1.1!important;
}
.map-layer-tabs button span{
  white-space:normal!important;
  text-align:left!important;
}
.map-layer-tabs button em{
  min-width:18px!important;
  height:18px!important;
  font-size:7px!important;
}
.map-layer-tabs button:hover{
  border-color:#d90a2c!important;
  background:#fff6f8!important;
}
.map-layer-tabs button.active{
  color:#fff!important;
  border-color:#d90a2c!important;
  background:#d90a2c!important;
}
.map-layer-tabs button.active em{
  color:#d90a2c!important;
  background:#fff!important;
}

.map-category-list{
  display:block!important;
  overflow:visible!important;
  padding:0!important;
}
.map-layer-section{
  margin:0 0 12px!important;
}
.map-layer-section:last-child{margin-bottom:2px!important}
.map-layer-section-title{
  position:sticky!important;
  top:-1px!important;
  z-index:2!important;
  margin:0 0 5px!important;
  padding:6px 4px 5px!important;
  color:#6f7077!important;
  background:rgba(255,255,255,.96)!important;
  font-size:7px!important;
  font-weight:900!important;
  letter-spacing:.1em!important;
  text-transform:uppercase!important;
  backdrop-filter:blur(4px)!important;
}
.map-layer-section-list{
  display:grid!important;
  gap:5px!important;
}

.map-category-option{
  display:grid!important;
  grid-template-columns:32px minmax(0,1fr) 38px!important;
  min-height:46px!important;
  align-items:center!important;
  gap:9px!important;
  margin:0!important;
  padding:6px 7px!important;
  border:1px solid #d6d7dd!important;
  border-radius:9px!important;
  color:#111216!important;
  background:#fff!important;
}
.map-category-option:hover{
  border-color:#b8bbc4!important;
  background:#fafafd!important;
}
.map-category-option:has(input:checked){
  border-color:rgba(217,10,44,.62)!important;
  background:#fff4f6!important;
  box-shadow:inset 3px 0 0 #d90a2c!important;
}
.map-category-option>input{
  position:absolute!important;
  width:1px!important;
  height:1px!important;
  opacity:0!important;
  pointer-events:none!important;
}
.map-category-option .map-marker-mini{
  grid-column:1!important;
  width:30px!important;
  height:30px!important;
}
.map-category-option .map-layer-copy{
  grid-column:2!important;
  min-width:0!important;
}
.map-category-option .map-layer-copy strong{
  font-size:9px!important;
  line-height:1.15!important;
  white-space:normal!important;
}
.map-category-option .map-layer-copy small{
  margin-top:2px!important;
  color:#73747b!important;
  font-size:7px!important;
}
.map-category-option .map-switch{
  position:relative!important;
  grid-column:3!important;
  width:36px!important;
  height:20px!important;
  border:1px solid #c8cad1!important;
  border-radius:999px!important;
  background:#eceef1!important;
}
.map-category-option .map-switch::after{
  content:""!important;
  position:absolute!important;
  top:3px!important;
  left:3px!important;
  width:12px!important;
  height:12px!important;
  border-radius:50%!important;
  background:#7f828b!important;
  transition:left .14s ease,background .14s ease!important;
}
.map-category-option:has(input:checked) .map-switch{
  border-color:#d90a2c!important;
  background:#d90a2c!important;
}
.map-category-option:has(input:checked) .map-switch::after{
  left:19px!important;
  background:#fff!important;
}
.map-category-option.is-unavailable{
  opacity:.38!important;
  filter:grayscale(.65)!important;
}

.map-filter-footer{
  display:grid!important;
  gap:7px!important;
  padding-top:9px!important;
  border-top:1px solid #e1e2e6!important;
  background:#fff!important;
}
.map-filter-buttons{
  display:grid!important;
  grid-template-columns:1fr 1fr!important;
  gap:6px!important;
}
.map-filter-buttons .button{
  min-height:34px!important;
  padding:6px 7px!important;
  border-radius:8px!important;
  font-size:8px!important;
  font-weight:900!important;
}
.map-filter-footer-row{
  display:grid!important;
  grid-template-columns:minmax(0,1fr) 92px!important;
  gap:6px!important;
}
.map-hide-found{
  min-height:36px!important;
  align-items:center!important;
  margin:0!important;
  padding:6px 8px!important;
  border:1px solid #d1d3da!important;
  border-radius:8px!important;
  background:#fff!important;
}
.map-hide-found span{font-size:8px!important;font-weight:800!important}
.map-add-marker{
  width:100%!important;
  min-height:36px!important;
  margin:0!important;
  padding:6px 8px!important;
  border-radius:8px!important;
  font-size:8px!important;
}
.map-sync-compact{
  min-height:36px!important;
  padding:5px 6px!important;
  border-color:#d8d9df!important;
  border-radius:8px!important;
  background:#f8f8fa!important;
}
.map-sync-copy strong{font-size:7px!important}
.map-sync-copy small{font-size:6px!important}

.map-pal-filter-panel{
  margin-top:8px!important;
}
.map-pal-filter-list{
  max-height:none!important;
}

/* Mid-size desktop: keep menu usable without squeezing the map. */
@media (max-width:1280px) and (min-width:901px){
  body.map-route-active .interactive-map-shell{
    grid-template-columns:285px minmax(0,1fr) 255px!important;
  }
  .map-layer-tabs{
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
  }
}

/* Mobile/tablet: normal page scroll, no trapped internal scrollbar. */
@media (max-width:900px){
  .map-filter-panel{
    display:block!important;
    overflow:visible!important;
    max-height:none!important;
  }
  .map-layer-scroll{
    max-height:none!important;
    overflow:visible!important;
    padding:0!important;
  }
  .map-layer-tabs{
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
    margin-bottom:10px!important;
  }
  .map-filter-footer{
    margin-top:10px!important;
  }
}


/* Verified-only cleanup */
.map-filter-footer-row-single{
  grid-template-columns:1fr!important;
}
.map-filter-footer-row-single .map-hide-found{
  width:100%!important;
}


/* HF41: fishing marker contrast and clearer custom-marker placement */
.map-category-button[data-category-toggle="fishing-spot"] .map-category-asset,
.map-category-button[data-category-toggle="rare-fishing-spot"] .map-category-asset,
.map-detail-card.map-category-fishing-spot .map-marker-large,
.map-detail-card.map-category-rare-fishing-spot .map-marker-large {
  background: #10232b;
  border-color: #9ecad6;
}
.map-category-button[data-category-toggle="fishing-spot"] .map-category-asset img,
.map-category-button[data-category-toggle="rare-fishing-spot"] .map-category-asset img,
.map-detail-card.map-category-fishing-spot .map-asset-wrap img,
.map-detail-card.map-category-rare-fishing-spot .map-asset-wrap img {
  filter: saturate(1.5) contrast(1.35) brightness(.9);
}

.map-placement-hint {
  color: #17171b;
  background: #fff;
  border: 2px solid #d90a2c;
  box-shadow: 0 8px 24px rgba(0,0,0,.18);
  font-size: 10px;
}

.custom-marker-icon-picker {
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: 8px;
}
.custom-marker-icon-choice {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--panel);
  color: var(--text);
  text-align: left;
  font-weight: 800;
}
.custom-marker-icon-choice img {
  width: 30px;
  height: 30px;
  flex: 0 0 30px;
  object-fit: contain;
}
.custom-marker-icon-choice.active {
  border-color: #d90a2c;
  background: #fff4f6;
  box-shadow: inset 3px 0 0 #d90a2c;
}


/* HF42: journals, fishing visibility and custom marker UX */
.map-category-journal,
.map-category-journal .map-pin-asset,
.map-detail-card.map-category-journal,
.map-detail-card.map-category-journal .map-marker-large,
.map-detail-card.map-category-journal .map-asset-wrap {
  background:transparent!important;
}
.map-detail-card.map-category-journal .eyebrow,
.map-detail-card.map-category-journal h3,
.map-detail-card.map-category-journal .map-detail-copy,
.map-detail-card.map-category-journal .info-row,
.map-detail-card.map-category-journal .info-row strong {
  color:#17171b!important;
}
.map-category-button[data-category-toggle="journal"] .map-category-asset,
.map-detail-card.map-category-journal .map-marker-large {
  background:transparent!important;
  border-color:transparent!important;
}
.map-category-button[data-category-toggle="journal"] .map-category-asset img,
.map-detail-card.map-category-journal img {
  filter:none!important;
}

/* The in-game fishing texture is pale, so give it a dark high-contrast tile. */
.map-category-button[data-category-toggle="fishing-spot"] .map-category-asset,
.map-category-button[data-category-toggle="rare-fishing-spot"] .map-category-asset,
.map-detail-card.map-category-fishing-spot .map-marker-large,
.map-detail-card.map-category-rare-fishing-spot .map-marker-large,
.map-marker.map-category-fishing-spot .map-pin-asset,
.map-marker.map-category-rare-fishing-spot .map-pin-asset {
  background:#101319!important;
  border-color:#3b3f48!important;
}
.map-category-button[data-category-toggle="fishing-spot"] .map-category-asset img,
.map-category-button[data-category-toggle="rare-fishing-spot"] .map-category-asset img,
.map-detail-card.map-category-fishing-spot .map-asset-wrap img,
.map-detail-card.map-category-rare-fishing-spot .map-asset-wrap img,
.map-marker.map-category-fishing-spot img,
.map-marker.map-category-rare-fishing-spot img {
  filter:brightness(.72) contrast(1.8) saturate(1.65)!important;
}

/* Placement guidance is a clear instruction card, not an unexplained black bar. */
.map-placement-hint {
  top:12px!important;
  min-width:min(520px,calc(100% - 28px));
  padding:10px 14px!important;
  border:2px solid #d90a2c!important;
  border-radius:10px!important;
  color:#17171b!important;
  background:#fff!important;
  box-shadow:0 10px 26px rgba(0,0,0,.20)!important;
  text-align:center;
  line-height:1.35;
}

/* Make icon choices read as icon + text, and keep Save visible. */
.custom-marker-icon-choice { grid-template-columns:30px minmax(0,1fr)!important; }
.custom-marker-icon-choice img { display:block!important; flex:0 0 30px!important; }
.modal-shell:has(.map-custom-form) .modal-content { min-height:0!important; overflow:auto!important; }
.modal-shell:has(.map-custom-form) .modal-footer {
  position:sticky;
  bottom:0;
  z-index:2;
  flex:0 0 auto;
  background:#fff!important;
  border-top:1px solid var(--line)!important;
}
.modal-shell:has(.map-custom-form) #save-custom-marker { display:inline-flex!important; }
\n\n/* HF44: custom markers - stable page position and normal white details card */
.map-details-panel .map-detail-card.map-category-custom {
  background: #fff !important;
  color: #0f0f12 !important;
}
.map-details-panel .map-detail-card.map-category-custom .map-detail-title,
.map-details-panel .map-detail-card.map-category-custom .info-list,
.map-details-panel .map-detail-card.map-category-custom .info-row,
.map-details-panel .map-detail-card.map-category-custom .map-note {
  background: #fff !important;
  color: #0f0f12 !important;
}
.map-details-panel .map-detail-card.map-category-custom h3,
.map-details-panel .map-detail-card.map-category-custom p,
.map-details-panel .map-detail-card.map-category-custom strong,
.map-details-panel .map-detail-card.map-category-custom .info-row span,
.map-details-panel .map-detail-card.map-category-custom .map-detail-copy {
  color: #0f0f12 !important;
}
.map-details-panel .map-detail-card.map-category-custom .map-note {
  border-color: var(--line) !important;
}
/* Keep only the icon tile itself category-coloured, not the whole details panel. */
.map-details-panel .map-detail-card.map-category-custom .map-marker-large.map-category-custom,
.map-details-panel .map-detail-card.map-category-custom .map-marker-large.map-category-custom .map-pin-asset {
  background: #1e8e6d !important;
}

/* HF45: Custom marker details must visually match normal NPC details. */
.map-details-panel .map-detail-card.map-category-custom,
.map-details-panel .map-detail-card.map-category-custom .map-detail-title,
.map-details-panel .map-detail-card.map-category-custom .map-status-line,
.map-details-panel .map-detail-card.map-category-custom .map-detail-info,
.map-details-panel .map-detail-card.map-category-custom .info-list,
.map-details-panel .map-detail-card.map-category-custom .info-row,
.map-details-panel .map-detail-card.map-category-custom .map-detail-copy,
.map-details-panel .map-detail-card.map-category-custom .map-note,
.map-details-panel .map-detail-card.map-category-custom .map-all-player-note,
.map-details-panel .map-detail-card.map-category-custom .map-detail-actions {
  background: #fff !important;
  color: #0f0f12 !important;
}
.map-details-panel .map-detail-card.map-category-custom .map-marker-large,
.map-details-panel .map-detail-card.map-category-custom .map-marker-large.map-category-custom,
.map-details-panel .map-detail-card.map-category-custom .map-marker-large .map-pin-asset,
.map-details-panel .map-detail-card.map-category-custom .map-marker-large.map-category-custom .map-pin-asset,
.map-details-panel .map-detail-card.map-category-custom .map-detail-asset,
.map-details-panel .map-detail-card.map-category-custom .map-asset-wrap {
  background: #fff !important;
}
.map-details-panel .map-detail-card.map-category-custom .map-marker-large {
  border: 1px solid var(--line) !important;
}
.map-details-panel .map-detail-card.map-category-custom h3,
.map-details-panel .map-detail-card.map-category-custom p,
.map-details-panel .map-detail-card.map-category-custom strong,
.map-details-panel .map-detail-card.map-category-custom span,
.map-details-panel .map-detail-card.map-category-custom .eyebrow,
.map-details-panel .map-detail-card.map-category-custom .info-row span,
.map-details-panel .map-detail-card.map-category-custom .map-detail-copy,
.map-details-panel .map-detail-card.map-category-custom .map-note p,
.map-details-panel .map-detail-card.map-category-custom .map-note strong {
  color: #0f0f12 !important;
}
.map-details-panel .map-detail-card.map-category-custom .map-detail-title,
.map-details-panel .map-detail-card.map-category-custom .info-row {
  border-color: var(--line) !important;
}
.map-details-panel .map-detail-card.map-category-custom .map-note {
  border: 1px solid var(--line) !important;
  border-radius: 8px !important;
}
.map-details-panel .map-detail-card.map-category-custom .map-detail-actions .button-secondary,
.map-details-panel .map-detail-card.map-category-custom .map-detail-actions .button-outline,
.map-details-panel .map-detail-card.map-category-custom .map-detail-actions .button-danger {
  background: #fff !important;
  border-color: var(--line) !important;
}
.map-details-panel .map-detail-card.map-category-custom .map-detail-actions .button-secondary,
.map-details-panel .map-detail-card.map-category-custom .map-detail-actions .button-outline {
  color: #0f0f12 !important;
}
.map-details-panel .map-detail-card.map-category-custom .map-detail-actions .button-danger {
  color: var(--red) !important;
}
.map-details-panel .map-detail-card.map-category-custom .map-detail-actions .button-primary {
  background: var(--red) !important;
  color: #fff !important;
}


/* HF46: readable custom-marker delete confirmation */
.custom-marker-delete-confirm {
  display: grid;
  gap: 8px;
}
.custom-marker-delete-confirm p {
  margin: 0;
  color: #2f3037 !important;
  font-size: 12px;
  line-height: 1.55;
}
.custom-marker-delete-confirm strong {
  color: var(--red) !important;
  font-weight: 800;
}
.custom-marker-delete-confirm .custom-marker-delete-warning {
  color: #696b73 !important;
  font-size: 11px;
}
#delete-custom-marker {
  min-width: 120px;
}


/* HF47: force delete confirmation action to be visible inside modal body. */
.custom-marker-delete-actions {
  display: flex !important;
  justify-content: flex-end !important;
  align-items: center !important;
  gap: 8px !important;
  margin-top: 14px !important;
  padding-top: 14px !important;
  border-top: 1px solid var(--line) !important;
}
.custom-marker-delete-actions .button {
  display: inline-flex !important;
  visibility: visible !important;
  opacity: 1 !important;
  min-height: 42px !important;
  align-items: center !important;
  justify-content: center !important;
}
.custom-marker-delete-confirm-button {
  min-width: 128px !important;
  background: var(--red) !important;
  border: 1px solid var(--red) !important;
  color: #fff !important;
}
.custom-marker-delete-confirm-button:hover,
.custom-marker-delete-confirm-button:focus-visible {
  background: #b90826 !important;
  color: #fff !important;
}


/* HOTFIX 51 - Every selected map location uses the standard white details card.
   Category colours remain on map pins/toggles only. */
.map-details-panel,
.map-details-panel .map-detail-card,
.map-details-panel .map-detail-card[class*="map-category-"],
.map-details-panel .map-detail-card .map-detail-title,
.map-details-panel .map-detail-card .map-status-line,
.map-details-panel .map-detail-card .map-detail-info,
.map-details-panel .map-detail-card .info-list,
.map-details-panel .map-detail-card .info-row,
.map-details-panel .map-detail-card .map-detail-copy,
.map-details-panel .map-detail-card .map-note,
.map-details-panel .map-detail-card .map-all-player-note,
.map-details-panel .map-detail-card .map-detail-actions {
  background: #fff !important;
  color: #0f0f12 !important;
}

/* DARK THEME FIX: selected marker details must remain readable on the black panel. */
.map-details-panel .map-detail-card h1,
.map-details-panel .map-detail-card h2,
.map-details-panel .map-detail-card h3,
.map-details-panel .map-detail-card h4,
.map-details-panel .map-detail-card p,
.map-details-panel .map-detail-card span,
.map-details-panel .map-detail-card strong,
.map-details-panel .map-detail-card small,
.map-details-panel .map-detail-card .info-row span,
.map-details-panel .map-detail-card .info-row strong {
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
}

/* Keep the category eyebrow in the Versys red accent. */
.map-details-panel .map-detail-card .eyebrow {
  color: #ef1238 !important;
  -webkit-text-fill-color: #ef1238 !important;
}

.map-details-panel .map-detail-card .map-detail-title,
.map-details-panel .map-detail-card .info-row {
  border-color: var(--line) !important;
}

/* Match NPC icon/header tile treatment instead of colouring the detail card. */
.map-details-panel .map-detail-card .map-marker-large,
.map-details-panel .map-detail-card .map-detail-asset,
.map-details-panel .map-detail-card .map-asset-wrap {
  background: #fff !important;
}

/* Status/favourite chips stay neutral white. */
.map-details-panel .map-detail-card .map-status,
.map-details-panel .map-detail-card .map-favourite-badge {
  background: #fff !important;
  color: #33343a !important;
}

/* Normal secondary actions match NPC details. */
.map-details-panel .map-detail-card .map-detail-actions .button-outline,
.map-details-panel .map-detail-card .map-detail-actions .button-secondary {
  background: #fff !important;
  color: #33343a !important;
  border-color: var(--line) !important;
}

/* Keep the site's red primary/completed action. */
.map-details-panel .map-detail-card .map-detail-actions .button-primary {
  background: var(--red) !important;
  color: #fff !important;
}


/* Header-aware interactive map sizing. */
body.map-route-active .pal-atlas-layout,
body.map-route-active .pal-atlas-content {
  min-height: calc(100dvh - var(--versys-header-height, 82px)) !important;
}
body.map-route-active .view-container {
  min-height: calc(100dvh - var(--versys-header-height, 82px)) !important;
}
body.map-route-active .interactive-map-shell,
body.map-route-active .map-layout,
body.map-route-active .map-workspace {
  max-height: calc(100dvh - var(--versys-header-height, 82px)) !important;
}
@media (max-width: 900px) {
  body.map-route-active .interactive-map-shell,
  body.map-route-active .map-layout,
  body.map-route-active .map-workspace {
    max-height: none !important;
  }
}

/* Route/header safety: the map always begins below the fixed Versys header. */
body.map-route-active{scroll-padding-top:var(--versys-header-height,82px);}
body.map-route-active .pal-atlas-content{position:relative;top:auto!important;transform:none!important;}
body.map-route-active #view-interactive-map{scroll-margin-top:var(--versys-header-height,82px);}
@media(min-width:901px){body.map-route-active .pal-atlas-content,body.map-route-active .main-content{height:calc(100dvh - var(--versys-header-height,82px))!important;max-height:calc(100dvh - var(--versys-header-height,82px))!important;}}


/* V10: map controls and markers show raw game assets without white/black tiles. */
.map-marker,
.map-marker:hover,
.map-marker.selected,
.map-marker.map-category-effigy,
.map-marker.map-category-effigy:hover,
.map-marker.map-category-egg,
.map-marker.map-category-egg:hover,
.map-marker.map-category-chest,
.map-marker.map-category-chest:hover,
.map-marker.map-category-resource,
.map-marker.map-category-resource:hover,
.map-marker.map-category-ore,
.map-marker.map-category-ore:hover,
.map-marker.map-category-meteor,
.map-marker.map-category-meteor:hover,
.map-marker.map-category-pal-spawn,
.map-marker.map-category-pal-spawn:hover {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  border-radius: 0 !important;
  overflow: visible !important;
}
.map-category-option .map-marker-mini,
.map-marker-mini,
.map-marker-large,
.map-marker-mini .map-category-asset,
.map-marker-large .map-detail-asset,
.map-asset-wrap,
.map-pin-asset,
.map-category-fast-travel .map-pin-asset,
.map-category-tower .map-pin-asset,
.map-category-watchtower .map-pin-asset,
.map-category-journal .map-pin-asset,
.map-category-fishing-spot .map-pin-asset,
.map-category-rare-fishing-spot .map-pin-asset,
.map-category-incident .map-pin-asset {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}
.map-category-option .map-marker-mini,
.map-category-option .map-category-asset,
.map-marker-mini .map-category-asset,
.map-marker-large .map-detail-asset,
.map-pin-asset { padding: 0 !important; }
.map-category-option .map-asset-wrap img,
.map-marker .map-asset-wrap img,
.map-detail-title .map-asset-wrap img {
  object-fit: contain !important;
  background: transparent !important;
  border-radius: 0 !important;
  filter: drop-shadow(0 2px 5px rgba(0,0,0,.55));
}
.map-marker-cluster,
.map-marker-cluster:hover { border-radius: 50% !important; }


/* 2026-08-20 v11 journal/raw asset cleanup */
.map-marker.map-category-journal,
.map-marker.map-category-journal:hover,
.map-marker.map-category-journal.selected,
.map-category-journal .map-pin-asset,
.map-category-option .map-category-journal .map-category-asset,
.map-detail-title .map-category-journal .map-detail-asset {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}

.map-marker.map-category-journal {
  width: 26px !important;
  height: 26px !important;
  margin: -13px 0 0 -13px !important;
  border-radius: 0 !important;
  backdrop-filter: none !important;
}

.map-marker.map-category-journal .map-asset-wrap,
.map-marker.map-category-journal .map-asset-wrap img,
.map-category-option .map-category-journal .map-asset-wrap,
.map-detail-title .map-category-journal .map-asset-wrap {
  background: transparent !important;
  border-radius: 0 !important;
}


/* 2026-08-20 v12 journal control icon cleanup */
.map-category-option .map-category-journal.map-marker-mini,
.map-category-option .map-category-journal .map-category-asset,
.map-category-option .map-category-journal .map-asset-wrap,
.map-category-option .map-category-journal .map-asset-wrap img,
.map-category-option .map-category-journal .map-icon-fallback,
.map-detail-title .map-category-journal.map-marker-large,
.map-detail-title .map-category-journal .map-detail-asset,
.map-detail-title .map-category-journal .map-asset-wrap,
.map-detail-title .map-category-journal .map-asset-wrap img {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  border-radius: 0 !important;
}

.map-category-option .map-category-journal.map-marker-mini,
.map-detail-title .map-category-journal.map-marker-large {
  overflow: visible !important;
}


/* 2026-08-20 v15 map asset cleanup */
/* Remove the leftover white tile around icons in the right-side marker details. */
.map-detail-title .map-marker-large,
.map-detail-title .map-marker-large .map-detail-asset,
.map-detail-title .map-marker-large .map-asset-wrap,
.map-detail-title .map-marker-large .map-asset-wrap img,
.map-detail-title .map-marker-large.map-marker-pal,
.map-detail-title .map-marker-large.map-marker-pal .map-detail-asset,
.map-detail-title .map-marker-large.map-marker-pal .map-asset-wrap,
.map-detail-title .map-marker-large.map-marker-pal .map-asset-wrap img {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}

.map-detail-title .map-marker-large,
.map-detail-title .map-marker-large .map-asset-wrap {
  overflow: visible !important;
  border-radius: 0 !important;
}

/* Random Incident art is intentionally tiny in its source texture. Show it at 2x. */
.map-marker.map-category-incident .map-asset-wrap,
.map-category-option .map-category-incident .map-asset-wrap {
  overflow: visible !important;
}

.map-marker.map-category-incident .map-asset-wrap img,
.map-category-option .map-category-incident .map-asset-wrap img {
  transform: scale(2) !important;
  transform-origin: center !important;
}


/* 2026-08-20 v17 journals toggle remove white backing */
.map-category-option[data-category-toggle="journal"] .map-marker-mini,
.map-category-option[data-category-toggle="journal"] .map-asset-wrap,
.map-category-option[data-category-toggle="journal"] .map-category-asset,
.map-category-option[data-category-toggle="journal"] .map-category-asset img,
.map-category-option[data-category-toggle="journal"] .map-icon-fallback {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  border-radius: 0 !important;
}

.map-category-option[data-category-toggle="journal"] .map-marker-mini {
  overflow: visible !important;
}


/* 2026-08-20 v18: journals render as the transparent PNG itself, no icon tile. */
.map-category-option[data-category-toggle="journal"] > .map-journal-raw,
.map-marker.map-category-journal > .map-journal-raw,
.map-detail-card.map-category-journal .map-journal-raw {
  display: block !important;
  width: 30px !important;
  height: 30px !important;
  flex: 0 0 30px !important;
  object-fit: contain !important;
  padding: 0 !important;
  margin: 0 !important;
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,.35)) !important;
}
.map-marker.map-category-journal > .map-journal-raw {
  width: 26px !important;
  height: 26px !important;
}
.map-detail-card.map-category-journal .map-journal-raw {
  width: 44px !important;
  height: 44px !important;
}
.map-category-option[data-category-toggle="journal"]::before,
.map-category-option[data-category-toggle="journal"] .map-marker-mini,
.map-category-option[data-category-toggle="journal"] .map-asset-wrap {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}

/* 2026-08-20 v19: journal artwork must be transparent - no white tile anywhere. */
body.map-route-active button.map-category-option[data-category-toggle="journal"] > img.map-journal-raw,
body.map-route-active button.map-category-button[data-category-toggle="journal"] > img.map-journal-raw,
button[data-category-toggle="journal"] > img.map-journal-raw,
button[data-category-toggle="journal"] .map-category-asset,
button[data-category-toggle="journal"] .map-asset-wrap,
.map-marker.map-category-journal,
.map-marker.map-category-journal > img.map-journal-raw,
.map-detail-card.map-category-journal .map-marker-large,
.map-detail-card.map-category-journal img.map-journal-raw {
  background: transparent !important;
  background-color: transparent !important;
  background-image: none !important;
  border: 0 !important;
  box-shadow: none !important;
  border-radius: 0 !important;
}

/* V24 hotfix: restore dark map controls theme and remove white control cards */
.map-filter-panel{
  background:#0b0d12!important;
  color:#f3f4f8!important;
  border-color:rgba(255,255,255,.08)!important;
}
.map-filter-panel .map-filter-title,
.map-filter-panel .map-section-title,
.map-filter-panel .map-layer-copy strong,
.map-filter-panel .map-category-search span,
.map-filter-panel .map-hide-found,
.map-filter-panel .map-hide-found label,
.map-filter-panel .map-selected-target strong,
.map-filter-panel .map-selected-target p{
  color:#f3f4f8!important;
}
.map-filter-panel .map-layer-copy small,
.map-filter-panel .map-section-copy,
.map-filter-panel .map-selected-target small,
.map-filter-panel .map-help,
.map-filter-panel .map-note,
.map-filter-panel .map-empty,
.map-layer-section-title{
  color:#9aa0ad!important;
}
.map-layer-section-title{
  background:rgba(11,13,18,.96)!important;
  backdrop-filter:none!important;
}
.map-category-list{ scrollbar-color:#d90a2c #131722!important; }
.map-layer-tabs button{
  color:#f3f4f8!important;
  background:#11151f!important;
  border:1px solid rgba(255,255,255,.12)!important;
}
.map-layer-tabs button em{
  color:#f3f4f8!important;
  background:#1d2330!important;
}
.map-layer-tabs button:hover{
  color:#fff!important;
  background:#171c27!important;
  border-color:rgba(217,10,44,.6)!important;
}
.map-layer-tabs button.active{
  color:#fff!important;
  background:#d90a2c!important;
  border-color:#d90a2c!important;
}
.map-layer-tabs button.active em{
  color:#d90a2c!important;
  background:#fff!important;
}
.map-category-option{
  color:#f3f4f8!important;
  background:#141923!important;
  border-color:rgba(255,255,255,.10)!important;
  box-shadow:none!important;
}
.map-category-option:hover{
  color:#fff!important;
  background:#1a2030!important;
  border-color:rgba(217,10,44,.55)!important;
}
.map-category-option:has(input:checked){
  color:#fff!important;
  background:rgba(217,10,44,.14)!important;
  border-color:rgba(217,10,44,.72)!important;
  box-shadow:inset 3px 0 0 #d90a2c!important;
}
.map-category-option .map-layer-copy strong{ color:#f3f4f8!important; }
.map-category-option .map-layer-copy small{ color:#a2a8b4!important; }
.map-category-option .map-switch{
  border-color:rgba(255,255,255,.14)!important;
  background:#2a2f39!important;
}
.map-category-option .map-switch::after{
  background:#b6bcc7!important;
}
.map-category-option:has(input:checked) .map-switch{
  border-color:#d90a2c!important;
  background:#d90a2c!important;
}
.map-category-option:has(input:checked) .map-switch::after{ background:#fff!important; }
.map-toggle-btn{
  color:#f3f4f8!important;
  background:#11151f!important;
  border:1px solid rgba(255,255,255,.12)!important;
}
.map-toggle-btn:hover{
  color:#fff!important;
  background:#171c27!important;
  border-color:rgba(217,10,44,.58)!important;
}
.map-toggle-btn.active{
  color:#fff!important;
  background:#d90a2c!important;
  border-color:#d90a2c!important;
  box-shadow:none!important;
}
.map-selected-target{
  background:rgba(217,10,44,.10)!important;
  border-color:rgba(217,10,44,.35)!important;
}
.map-selected-target>button{
  color:#f3f4f8!important;
  background:#11151f!important;
  border-color:rgba(255,255,255,.12)!important;
}
.map-selected-target>button:hover{
  background:#171c27!important;
  border-color:rgba(217,10,44,.58)!important;
}

/* ========================================================================== 
   STAGE 22 v79 - SELECTED MARKER DETAILS POLISH
   Compact metric cards, cleaner hierarchy and responsive actions.
   ========================================================================== */
body.map-route-active .map-details-panel{
  padding:16px!important;
  background:#090a0e!important;
  border-left:1px solid rgba(255,255,255,.09)!important;
}
body.map-route-active .map-details-panel .map-detail-card{
  display:grid!important;
  grid-template-columns:1fr!important;
  gap:12px!important;
  align-content:start!important;
  color:#f6f7fb!important;
}
body.map-route-active .map-details-panel .map-detail-title{
  display:grid!important;
  grid-template-columns:48px minmax(0,1fr)!important;
  align-items:center!important;
  gap:11px!important;
  margin:0!important;
  padding:0 0 13px!important;
  border-bottom:1px solid rgba(255,255,255,.09)!important;
}
body.map-route-active .map-details-panel .map-detail-title .map-marker-large{
  width:48px!important;
  height:48px!important;
  min-width:48px!important;
  min-height:48px!important;
  border:1px solid rgba(255,255,255,.11)!important;
  border-radius:10px!important;
  background:#11131a!important;
  box-shadow:none!important;
  overflow:hidden!important;
}
body.map-route-active .map-details-panel .map-detail-title .map-marker-large img,
body.map-route-active .map-details-panel .map-detail-title .map-detail-asset,
body.map-route-active .map-details-panel .map-detail-title .map-asset-wrap{
  max-width:100%!important;
  max-height:100%!important;
}
body.map-route-active .map-details-panel .map-detail-title .eyebrow{
  display:block!important;
  margin:0 0 4px!important;
  color:#ff2448!important;
  font-size:8px!important;
  font-weight:900!important;
  line-height:1.2!important;
  letter-spacing:.12em!important;
  text-transform:uppercase!important;
}
body.map-route-active .map-details-panel .map-detail-title h3{
  margin:0!important;
  color:#fff!important;
  font-size:17px!important;
  line-height:1.18!important;
  letter-spacing:-.02em!important;
}
body.map-route-active .map-details-panel .map-status-line{
  display:flex!important;
  flex-wrap:wrap!important;
  gap:6px!important;
  margin:0!important;
}
body.map-route-active .map-details-panel .map-status,
body.map-route-active .map-details-panel .map-favourite-badge{
  display:inline-flex!important;
  align-items:center!important;
  min-height:25px!important;
  padding:5px 9px!important;
  border:1px solid rgba(255,255,255,.12)!important;
  border-radius:999px!important;
  background:#11131a!important;
  color:#c6c9d2!important;
  font-size:8px!important;
  font-weight:900!important;
  line-height:1!important;
  letter-spacing:.035em!important;
}
body.map-route-active .map-details-panel .map-status.found,
body.map-route-active .map-details-panel .map-status.auto-found{
  border-color:rgba(88,214,155,.35)!important;
  color:#8ce2ba!important;
  background:rgba(88,214,155,.07)!important;
}
body.map-route-active .map-details-panel .map-status.completed{
  border-color:rgba(241,183,75,.38)!important;
  color:#f1c86c!important;
  background:rgba(241,183,75,.07)!important;
}
body.map-route-active .map-details-panel .map-favourite-badge{
  border-color:rgba(241,183,75,.28)!important;
  color:#f1c86c!important;
  background:rgba(241,183,75,.06)!important;
}

/* Turn the old horizontal info rows into small readable metric cards. */
body.map-route-active .map-details-panel .map-detail-info,
body.map-route-active .map-details-panel .info-list{
  display:grid!important;
  grid-template-columns:repeat(2,minmax(0,1fr))!important;
  gap:7px!important;
  margin:0!important;
  padding:0!important;
  border:0!important;
  background:transparent!important;
}
body.map-route-active .map-details-panel .map-detail-info .info-row,
body.map-route-active .map-details-panel .info-list .info-row{
  display:flex!important;
  flex-direction:column!important;
  align-items:flex-start!important;
  justify-content:center!important;
  gap:5px!important;
  min-width:0!important;
  min-height:61px!important;
  margin:0!important;
  padding:9px 10px!important;
  border:1px solid rgba(255,255,255,.09)!important;
  border-radius:8px!important;
  background:#0f1117!important;
  box-shadow:none!important;
}
body.map-route-active .map-details-panel .map-detail-info .info-row span,
body.map-route-active .map-details-panel .info-list .info-row span{
  width:100%!important;
  color:#858b98!important;
  -webkit-text-fill-color:#858b98!important;
  font-size:8px!important;
  font-weight:800!important;
  line-height:1.25!important;
  letter-spacing:.04em!important;
  text-transform:uppercase!important;
}
body.map-route-active .map-details-panel .map-detail-info .info-row strong,
body.map-route-active .map-details-panel .info-list .info-row strong{
  width:100%!important;
  color:#fff!important;
  -webkit-text-fill-color:#fff!important;
  font-size:12px!important;
  font-weight:850!important;
  line-height:1.28!important;
  text-align:left!important;
  overflow-wrap:anywhere!important;
}
/* Resource composition is normally the last/high-value field - give it a full row. */
body.map-route-active .map-details-panel .map-detail-info .info-row:last-child:nth-child(odd),
body.map-route-active .map-details-panel .info-list .info-row:last-child:nth-child(odd){
  grid-column:1/-1!important;
}
body.map-route-active .map-details-panel .map-detail-copy{
  margin:0!important;
  padding:11px 12px!important;
  border:1px solid rgba(255,255,255,.08)!important;
  border-left:3px solid #d90a2c!important;
  border-radius:8px!important;
  background:#0d0f14!important;
  color:#b8bdc8!important;
  -webkit-text-fill-color:#b8bdc8!important;
  font-size:10px!important;
  line-height:1.6!important;
}
body.map-route-active .map-details-panel .map-note{
  margin:0!important;
  padding:10px 11px!important;
  border:1px solid rgba(104,167,255,.2)!important;
  border-radius:8px!important;
  background:rgba(104,167,255,.045)!important;
}
body.map-route-active .map-details-panel .map-detail-actions{
  display:grid!important;
  grid-template-columns:1fr 1fr!important;
  gap:7px!important;
  margin:0!important;
  padding-top:2px!important;
  background:transparent!important;
}
body.map-route-active .map-details-panel .map-detail-actions .button{
  min-height:40px!important;
  margin:0!important;
  padding:8px 9px!important;
  border-radius:8px!important;
  font-size:9px!important;
  font-weight:850!important;
  line-height:1.15!important;
  box-shadow:none!important;
}
body.map-route-active .map-details-panel .map-detail-actions .button-primary{
  background:#e80931!important;
  border-color:#e80931!important;
  color:#fff!important;
}
body.map-route-active .map-details-panel .map-detail-actions .button-secondary,
body.map-route-active .map-details-panel .map-detail-actions .button-outline{
  background:#11131a!important;
  border-color:rgba(255,255,255,.12)!important;
  color:#f3f4f7!important;
}
/* Favourite is a tertiary action and reads cleaner full-width. */
body.map-route-active .map-details-panel .map-detail-actions [data-map-action="favourite"]{
  grid-column:1/-1!important;
}

@media (max-width:1380px) and (min-width:901px){
  body.map-route-active .map-details-panel{padding:12px!important;}
  body.map-route-active .map-details-panel .map-detail-info,
  body.map-route-active .map-details-panel .info-list{grid-template-columns:1fr!important;}
  body.map-route-active .map-details-panel .map-detail-info .info-row:last-child,
  body.map-route-active .map-details-panel .info-list .info-row:last-child{grid-column:auto!important;}
  body.map-route-active .map-details-panel .map-detail-actions{grid-template-columns:1fr!important;}
  body.map-route-active .map-details-panel .map-detail-actions [data-map-action="favourite"]{grid-column:auto!important;}
}
@media (max-width:900px){
  body.map-route-active .map-details-panel{
    padding:13px!important;
    border-left:0!important;
    border-top:1px solid rgba(255,255,255,.09)!important;
  }
  body.map-route-active .map-details-panel .map-detail-info,
  body.map-route-active .map-details-panel .info-list{grid-template-columns:repeat(2,minmax(0,1fr))!important;}
}
@media (max-width:560px){
  body.map-route-active .map-details-panel .map-detail-info,
  body.map-route-active .map-details-panel .info-list{grid-template-columns:1fr!important;}
  body.map-route-active .map-details-panel .map-detail-info .info-row:last-child,
  body.map-route-active .map-details-panel .info-list .info-row:last-child{grid-column:auto!important;}
  body.map-route-active .map-details-panel .map-detail-actions{grid-template-columns:1fr!important;}
  body.map-route-active .map-details-panel .map-detail-actions [data-map-action="favourite"]{grid-column:auto!important;}
}


/* 2026-08-30 map asset ring cleanup v92 */
body.map-route-active .map-marker-layer-screen .map-marker:not(.map-marker-cluster),
body.map-route-active .map-marker-layer-screen .map-marker:not(.map-marker-cluster):hover,
body.map-route-active .map-marker-layer-screen .map-marker:not(.map-marker-cluster).selected {
  outline: 0 !important;
  box-shadow: 0 3px 10px rgba(0,0,0,.72) !important;
}
body.map-route-active .map-marker-layer-screen .map-marker:not(.map-marker-cluster):hover,
body.map-route-active .map-marker-layer-screen .map-marker:not(.map-marker-cluster).selected {
  box-shadow: 0 5px 14px rgba(0,0,0,.80) !important;
}
body.map-route-active .map-marker-layer-screen .map-marker-cluster,
body.map-route-active .map-marker-layer-screen .map-marker-cluster:hover {
  box-shadow: 0 3px 10px rgba(0,0,0,.75) !important;
}


/* 2026-09-03: map switch labels must never split into multiple lines. */
.map-overlay-controls .map-toggle-btn {
  white-space: nowrap !important;
  word-break: keep-all !important;
  overflow-wrap: normal !important;
  hyphens: none !important;
}
