/* Antera map wiki, detail zoom, and mobile layout */
.wiki-bar { position: absolute; right: 10px; bottom: 10px; z-index: 1000; display: flex; gap: 6px; }
.wiki-bar button, .wiki-head button { min-height: 44px; min-width: 44px; padding: 0 12px; background: var(--stone, #4d4333); color: var(--accent, #ffd36b); border: 2px solid var(--stone-edge, #1e180d); font: inherit; cursor: pointer; }
.wiki { position: absolute; z-index: 1100; top: 0; right: 0; bottom: 0; width: min(360px, 100%); display: flex; flex-direction: column; background: #e9dcbd; color: #2b1a08;
  border-left: 3px solid #3a2810; box-shadow: -6px 0 18px rgba(0,0,0,.35); transform: translateX(100%); transition: transform .25s ease; }
.wiki.open { transform: none; }
.wiki-head { display: flex; gap: 6px; padding: 8px; background: #cdbb93; border-bottom: 2px solid #3a2810; }
.wiki-head input { flex: 1; min-width: 0; min-height: 44px; padding: 0 10px; font-size: 16px; border: 2px solid #3a2810; background: #f6edd6; color: #2b1a08; }
.wiki-body { flex: 1; overflow-y: auto; -webkit-overflow-scrolling: touch; padding: 12px 14px 24px; font-size: 15px; line-height: 1.5; }
.wiki-body h3 { margin: 6px 0 8px; font-family: 'Russo One', sans-serif; font-weight: 400; font-size: 1.5rem; border-bottom: 2px solid #3a2810; }
.wiki-body h4 { margin: 14px 0 4px; padding-left: 8px; border-left: 5px solid #3a2810; font-size: 1rem; }
.wiki-body ul { margin: 0; padding-left: 20px; } .wiki-body li { padding: 3px 0; }
.wiki-body a { color: #7a2c0a; } .wiki-body small { color: #6b5a3e; }
.wiki-body .back { display: inline-block; padding: 8px 0; }
.infobox { float: right; margin: 0 0 8px 12px; border: 1px solid #3a2810; background: #f6edd6; font-size: .85rem; }
.infobox th { text-align: left; padding: 3px 8px; background: #cdbb93; } .infobox td { padding: 3px 8px; }
.map-wrapper.map-full { position: fixed; inset: 0; z-index: 3000; max-width: none; height: 100vh; height: 100dvh; aspect-ratio: auto; border: 0; border-radius: 0; }
@media (max-width: 700px) {
  .map-wrapper { aspect-ratio: auto; height: 78vh; height: 78svh; min-height: 420px; }
  .wiki { top: auto; left: 0; width: 100%; height: 58%; border-left: 0; border-top: 3px solid #3a2810; transform: translateY(100%); }
  .wiki.open { transform: none; }
  .wiki-bar { bottom: 8px; }
  .leaflet-bar a { width: 40px; height: 40px; line-height: 40px; }
  .map-legend { display: none; }
}
@media (pointer: coarse) { .base-icon { transform: scale(1.25); } .poi-name { font-size: 13px; } }

/* terrain controls */
.leaflet-control-layers { background: #e9dcbd; color: #2b1a08; border: 2px solid #3a2810; border-radius: 0; font-size: 14px; }
.leaflet-control-layers label { display: block; padding: 4px 2px; }
.map-readout { position: absolute; z-index: 900; left: 50%; top: 8px; transform: translateX(-50%); padding: 4px 10px; background: rgba(233,220,189,.92); color: #2b1a08; border: 2px solid #3a2810; font-size: 13px; pointer-events: none; white-space: nowrap; }
.contour-label { background: none; border: 0; }
.contour-label span { position: absolute; transform: translate(-50%,-50%); font: 600 10px 'Chakra Petch', sans-serif; color: #4a2c14; text-shadow: 0 0 2px #e9dcbd, 0 0 2px #e9dcbd, 0 0 3px #e9dcbd; white-space: nowrap; }
.iso-label span { color: #7a1f0c; }
.temp-legend { background: #e9dcbd; color: #2b1a08; border: 2px solid #3a2810; padding: 6px 10px; font-size: 13px; line-height: 1.5; }
.temp-legend i { display: inline-block; width: 14px; height: 10px; margin-right: 6px; border: 1px solid #3a2810; }
@media (max-width: 700px) { .leaflet-control-layers-toggle { width: 44px; height: 44px; } .map-readout { top: auto; bottom: 66px; font-size: 12px; } }
