/* ── Loading screen ── */
.map-loader {
  position: fixed;
  top: 57px;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2000;
  background: #08080c;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.6s ease;
}

.map-loader.loaded {
  opacity: 0;
  pointer-events: none;
}

.loader-content {
  text-align: center;
}

.loader-spinner {
  width: 40px;
  height: 40px;
  margin: 0 auto 1.5rem;
  border: 2px solid rgba(212, 212, 216, 0.15);
  border-top-color: rgba(212, 212, 216, 0.6);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.loader-text {
  font-family: 'EB Garamond', 'Georgia', serif;
  font-size: 1.1rem;
  color: rgba(212, 212, 216, 0.5);
  letter-spacing: 0.06em;
  font-style: italic;
}

/* ── World Map ── */
#world-map {
  position: fixed;
  top: 57px;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
  background: #08080c;
}

/* Override Leaflet's default styles for dark theme */
.leaflet-container {
  font-family: 'EB Garamond', 'Georgia', serif;
  -webkit-tap-highlight-color: transparent;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

.leaflet-container * {
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

/* Dark background behind the map */
#world-map::before {
  content: '';
  position: absolute;
  inset: 0;
  background: #08080c;
  z-index: 0;
}

/* Zoom controls */
.leaflet-control-zoom {
  border: 1px solid var(--border) !important;
  border-radius: 4px !important;
  overflow: hidden;
}

.leaflet-control-zoom a {
  background: rgba(0, 0, 0, 0.85) !important;
  color: var(--text-muted) !important;
  border-color: var(--border) !important;
  width: 40px !important;
  height: 40px !important;
  line-height: 40px !important;
  font-size: 20px !important;
  transition: color 0.2s, background 0.2s;
}

.leaflet-control-zoom a:hover {
  background: rgba(30, 30, 40, 0.95) !important;
  color: var(--text) !important;
}

/* Attribution */
.leaflet-control-attribution {
  background: rgba(0, 0, 0, 0.6) !important;
  color: var(--text-muted) !important;
  font-size: 0.65rem !important;
  font-family: var(--font-ui) !important;
}

.leaflet-control-attribution a {
  color: var(--accent-dim) !important;
}

/* ── Region polygon styling ── */
.region-polygon {
  transition: fill-opacity 0.2s, stroke-width 0.2s;
}

/* ── Map marker hit areas ── */
.map-marker {
  border-radius: 3px;
  background: transparent;
  border: none;
  cursor: pointer;
  transition: background 0.2s;
}

.map-marker:hover {
  background: rgba(167, 139, 250, 0.12);
}

.map-marker-capital {
  width: 160px;
  height: 40px;
}

.map-marker-capital:hover {
  background: rgba(200, 180, 100, 0.12);
}

.map-marker-kingdom {
  width: 200px;
  height: 44px;
}

.map-marker-kingdom:hover {
  background: rgba(255, 220, 120, 0.12);
}

.map-marker-city {
  width: 120px;
  height: 32px;
}

.map-marker-town {
  width: 110px;
  height: 32px;
}

.map-marker-region {
  width: 180px;
  height: 36px;
}

.map-marker-region:hover {
  background: rgba(212, 212, 216, 0.08);
}

.map-marker-sea {
  width: 180px;
  height: 36px;
}

.map-marker-sea:hover {
  background: rgba(100, 160, 220, 0.1);
}

.map-marker-mountain {
  width: 120px;
  height: 30px;
}

.map-marker-mountain:hover {
  background: rgba(180, 160, 140, 0.12);
}

.map-marker-river {
  width: 140px;
  height: 30px;
}

.map-marker-river:hover {
  background: rgba(60, 180, 220, 0.12);
}

.map-marker-abandoned {
  width: 120px;
  height: 30px;
}

.map-marker-abandoned:hover {
  background: rgba(180, 80, 80, 0.12);
}

.map-marker-landmark {
  width: 100px;
  height: 26px;
}

.map-marker-landmark:hover {
  background: rgba(60, 140, 80, 0.12);
}

.map-marker-bridge {
  width: 100px;
  height: 26px;
}

.map-marker-bridge:hover {
  background: rgba(100, 100, 100, 0.12);
}

/* ── Map labels ── */
.map-label {
  font-family: 'Montserrat', 'Helvetica', sans-serif;
  color: var(--text);
  text-shadow: 0 0 6px rgba(0, 0, 0, 0.9), 0 0 12px rgba(0, 0, 0, 0.7);
  white-space: nowrap;
  pointer-events: none;
  letter-spacing: 0.04em;
  -webkit-tap-highlight-color: transparent;
  -webkit-user-select: none;
  user-select: none;
}

.leaflet-interactive {
  outline: none !important;
  -webkit-tap-highlight-color: transparent !important;
  box-shadow: none !important;
}

.leaflet-interactive:focus,
.leaflet-interactive:active {
  outline: none !important;
  box-shadow: none !important;
}

.leaflet-marker-icon:focus,
.leaflet-marker-icon:active {
  outline: none !important;
  box-shadow: none !important;
  -webkit-tap-highlight-color: transparent !important;
}

.map-label:focus,
.map-label:active {
  outline: none !important;
  box-shadow: none !important;
}

.label-inner {
  display: inline-block;
  transform: scale(var(--label-scale, 0.5));
  transform-origin: 0 0;
  white-space: nowrap;
  position: relative;
  line-height: 1.1;
}

/* Shared marker shape base — centred on the coordinate point.
   Counter-scale the parent so the marker stays a fixed size
   and translate(-50%,-50%) stays pixel-accurate. */
.label-inner::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  transform: scale(calc(var(--marker-scale, 1) / var(--label-scale, 1))) translate(calc(-50% + 3px), -50%);
  transform-origin: 0 0;
}

/* All anchors: marker is absolute at [0,0] (the coordinate).
   .label-text is positioned relative to that via transform. */

/* Anchor: right — text to the right of the marker */
.map-label-anchor-right .label-text {
  display: inline-block;
  margin-left: 5px;
  transform: translateY(-50%);
}

/* Anchor: left — text to the left of the marker */
.map-label-anchor-left .label-inner {
  transform: scale(var(--label-scale, 0.5));
  transform-origin: 0 0;
}
.map-label-anchor-left .label-text {
  display: inline-block;
  transform: translate(calc(-100% - 5px), -50%);
  text-align: right;
}

/* Anchor: top — text above the marker, centred */
.map-label-anchor-top .label-text {
  display: block;
  transform: translate(-50%, -100%);
  padding-bottom: 5px;
  text-align: center;
}

/* Anchor: bottom — text below the marker, centred */
.map-label-anchor-bottom .label-text {
  display: block;
  transform: translateX(-50%);
  padding-top: 5px;
  text-align: center;
}

.map-label-kingdom {
  font-size: 36px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255, 220, 120, 0.9);
}

.map-label-kingdom .label-inner::before {
  display: none;
}

.map-label-region {
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(212, 212, 216, 0.9);
  font-family: var(--font-ui);
}

.map-label-capital {
  font-size: 15px;
  font-weight: 600;
  color: rgba(200, 180, 100, 0.9);
}

.map-label-capital .label-inner::before {
  width: 30px;
  height: 30px;
  border: 4px solid rgba(200, 180, 100, 0.9);
  background: rgba(200, 180, 100, 0.4);
  border-radius: 50%;
}

.map-label-city {
  font-size: 10px;
  font-weight: 400;
}

.map-label-city .label-inner::before {
  width: 24px;
  height: 24px;
  background: rgba(212, 212, 216, 0.8);
  border: 2px solid rgba(40, 40, 50, 0.8);
  border-radius: 50%;
  box-sizing: border-box;
}

.map-label-town {
  font-size: 9px;
  color: rgba(200, 200, 210, 0.85);
}

.map-label-town .label-inner::before {
  width: 18px;
  height: 18px;
  background: rgba(90, 90, 100, 0.9);
  border: 2px solid rgba(255, 255, 255, 0.7);
  border-radius: 50%;
  box-sizing: border-box;
}

.map-label-landmark {
  font-size: 4px;
  font-style: italic;
  color: rgba(60, 140, 80, 0.9);
}

.map-label-landmark .label-inner::before {
  width: 5px;
  height: 5px;
  background: rgba(60, 140, 80, 0.9);
  border: 1.5px solid rgba(20, 60, 40, 0.8);
  border-radius: 1px;
  box-sizing: border-box;
  transform: scale(var(--marker-scale, 1)) translate(calc(-50% + 3px), -50%) rotate(45deg);
}

.map-label-sea {
  font-size: 14px;
  font-style: italic;
  letter-spacing: 0.12em;
  color: rgba(255, 255, 255, 0.85);
}

.map-label-sea .label-inner::before {
  display: none;
}

.map-label-mountain {
  font-size: 8px;
  color: rgba(220, 200, 180, 1);
    text-shadow: 0.3px 0.3px 2px rgba(0, 0, 0, 0.9);
}

.map-label-mountain .label-inner::before {
  width: 20px;
  height: 18px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 18'%3E%3Cpolygon points='10,1 1,17 19,17' fill='none' stroke='%23b4a08c' stroke-width='2'/%3E%3C/svg%3E") no-repeat center;
  border: none;
  border-radius: 0;
  transform: scale(var(--marker-scale, 1)) translate(calc(-50% + 3px), -50%);
}

.map-label-river {
  font-size: 8px;
  font-style: italic;
  color: rgba(180, 225, 255, 0.9);
    text-shadow: 0.3px 0.3px 0 rgba(0, 0, 0, 0.3);
}

.map-label-river .label-inner::before {
  display: none;
}

.map-label-bridge {
  font-size: 4px;
  color: rgba(180, 180, 190, 0.9);
  text-shadow: 0.3px 0.3px 0 rgba(0, 0, 0, 0.3);
}

.map-label-bridge .label-inner::before {
  width: 6px;
  height: 2px;
  background: rgba(80, 80, 85, 0.9);
  border: 1px solid rgba(200, 200, 210, 0.6);
  border-radius: 1px;
  text-shadow: 0.3px 0.3px 0 rgba(0, 0, 0, 0.3);
  transform: scale(var(--marker-scale, 1)) translate(calc(-50% + 3px), -50%) rotate(var(--label-angle, 0deg));
}

.map-label-abandoned {
  font-size: 6px;
  text-decoration: line-through;
  color: rgb(157, 39, 39);
  text-shadow: 0.3px 0.3px 0 rgba(0, 0, 0, 0.3);
}

.map-label-abandoned .label-inner::before {
  width: 5px;
  height: 5px;
  border: 1.5px solid rgba(157, 39, 39, 0.9);
  background: rgba(255, 255, 255, 0.9);
  box-sizing: border-box;
  transform: scale(var(--marker-scale, 1)) translate(calc(-50% + 3px), -50%) rotate(45deg);
}

.map-label-lake {
  font-size: 10px;
  font-style: italic;
  color: rgba(255, 255, 255, 0.85);
  text-shadow: 0.3px 0.3px 0 rgba(0, 0, 0, 0.3);
}

.map-label-lake .label-inner::before {
  display: none;
}

/* ── Leaflet popups ── */
.leaflet-popup-content-wrapper {
  background: rgba(14, 14, 18, 0.95) !important;
  border: 1px solid var(--border) !important;
  border-radius: 6px !important;
  color: var(--text) !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.6) !important;
}

.leaflet-popup-tip {
  background: rgba(14, 14, 18, 0.95) !important;
  border: 1px solid var(--border) !important;
  box-shadow: none !important;
}

.leaflet-popup-content {
  font-family: 'EB Garamond', 'Georgia', serif !important;
  font-size: 0.95rem !important;
  line-height: 1.5 !important;
  margin: 12px 16px !important;
}

.leaflet-popup-content h3 {
  font-family: var(--font-ui);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent);
  margin: 0 0 0.4rem 0;
  letter-spacing: 0.04em;
}

.leaflet-popup-content .popup-type {
  font-family: var(--font-ui);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.leaflet-popup-content .popup-lore {
  color: var(--text);
  font-size: 0.95rem;
}

.leaflet-popup-close-button {
  color: var(--text-muted) !important;
  font-size: 20px !important;
  padding: 4px 8px !important;
}

.leaflet-popup-close-button:hover {
  color: var(--text) !important;
}

/* ── Info panel (slide-in sidebar) ── */
.info-panel {
  position: fixed;
  top: 57px;
  left: 0;
  width: 340px;
  height: calc(100vh - 57px);
  background: rgba(10, 10, 14, 0.95);
  border-left: 1px solid var(--border);
  padding: 2rem 1.5rem;
  z-index: 1000;
  overflow-y: auto;
  transform: translateX(-100%);
  transition: transform 0.3s ease;
  scrollbar-width: none;
}

.info-panel::-webkit-scrollbar {
  display: none;
}

.info-panel.open {
  transform: translateX(0);
}

.info-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 4px;
  color: var(--text);
  font-size: 1.5rem;
  cursor: pointer;
  line-height: 1;
  padding: 0.25rem 0.5rem;
  transition: color 0.2s, background 0.2s;
  z-index: 10;
}

.info-close:hover {
  color: var(--text);
}

.info-title {
  font-family: 'EB Garamond', 'Georgia', serif;
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.25rem;
}

.info-type {
  font-family: var(--font-ui);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent-dim);
  margin-bottom: 1.25rem;
}

.info-kingdom {
  font-size: 1.4em;
}

.info-status {
  font-style: italic;
}

.info-lore {
  font-family: 'EB Garamond', 'Georgia', serif;
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text);
}

.info-lore p {
  margin-bottom: 1rem;
}

/* ── Coordinate picker (dev tool) ── */
.coord-toggle {
  position: fixed;
  top: calc(57px + 10px);
  left: 90px;
  z-index: 1000;
  background: rgba(0, 0, 0, 0.85);
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-family: var(--font-ui);
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.5rem 1rem;
  border-radius: 4px;
  cursor: pointer;
  transition: color 0.2s, background 0.2s;
}

.coord-toggle:hover {
  color: var(--text);
  background: rgba(30, 30, 40, 0.95);
}

.coord-toggle.active {
  color: rgba(120, 200, 160, 1);
  border-color: rgba(120, 200, 160, 0.5);
}

.coord-toast {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  z-index: 2000;
  background: rgba(10, 10, 14, 0.95);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 0.5rem 1.2rem;
  font-family: var(--font-ui);
  font-size: 0.9rem;
  color: var(--text);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s, transform 0.2s;
}

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

/* ── Search panel ── */
.search-toggle {
  position: fixed;
  top: calc(57px + 10px);
  left: 10px;
  z-index: 1000;
  background: rgba(0, 0, 0, 0.85);
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-family: var(--font-ui);
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.5rem 1rem;
  border-radius: 4px;
  cursor: pointer;
  transition: color 0.2s, background 0.2s;
}

.search-toggle:hover {
  color: var(--text);
  background: rgba(30, 30, 40, 0.95);
}

.search-panel {
  position: fixed;
  top: calc(57px + 50px);
  left: 10px;
  z-index: 1000;
  width: 280px;
  max-height: calc(100vh - 57px - 70px);
  background: rgba(10, 10, 14, 0.92);
  border: 1px solid var(--border);
  border-radius: 6px;
  display: none;
  flex-direction: column;
  overflow: hidden;
}

.search-panel.open {
  display: flex;
}

.search-input {
  width: 100%;
  padding: 0.7rem 1rem;
  background: rgba(255, 255, 255, 0.05);
  border: none;
  border-bottom: 1px solid var(--border);
  color: var(--text);
  font-family: var(--font-ui);
  font-size: 0.85rem;
  outline: none;
  box-sizing: border-box;
}

.search-input::placeholder {
  color: var(--text-muted);
}

.search-results {
  overflow-y: auto;
  scrollbar-width: none;
  padding: 0.5rem 0;
}

.search-results::-webkit-scrollbar {
  display: none;
}

.search-kingdom-group {
  padding: 0.5rem 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.search-kingdom-group:last-child {
  border-bottom: none;
}

.search-kingdom-name {
  font-family: var(--font-ui);
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(255, 220, 120, 0.85);
  margin-bottom: 0.4rem;
  padding-bottom: 0.3rem;
  border-bottom: 1px solid rgba(255, 220, 120, 0.2);
}

.search-item {
  display: block;
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  color: var(--text);
  font-family: var(--font-ui);
  font-size: 0.8rem;
  padding: 0.3rem 0;
  cursor: pointer;
  transition: color 0.2s;
}

.search-item:hover {
  color: var(--accent);
}

.search-item-type {
  color: var(--text-muted);
  font-size: 0.65rem;
  margin-left: 0.4rem;
}

/* ── Map key/legend ── */
.key-toggle {
  position: fixed;
  top: calc(57px + 120px);
  right: 10px;
  z-index: 1000;
  background: rgba(0, 0, 0, 0.85);
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-family: var(--font-ui);
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.5rem 1rem;
  border-radius: 4px;
  cursor: pointer;
  transition: color 0.2s, background 0.2s;
}

.key-toggle:hover {
  color: var(--text);
  background: rgba(30, 30, 40, 0.95);
}

.map-key {
  position: fixed;
  top: calc(57px + 160px);
  right: 10px;
  z-index: 1000;
  background: rgba(10, 10, 14, 0.92);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 1rem 1.2rem;
  font-family: var(--font-ui);
  font-size: 0.85rem;
  color: var(--text-muted);
  display: none;
  max-height: calc(100vh - 57px - 180px);
  overflow-y: auto;
  scrollbar-width: none;
}

.map-key.open {
  display: block;
}

.key-deselect {
  display: block;
  width: 100%;
  margin-top: 0.5rem;
  padding: 0.4rem 0;
  background: none;
  border: 1px solid var(--border);
  border-radius: 3px;
  color: var(--text-muted);
  font-family: var(--font-ui);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  cursor: pointer;
  transition: color 0.2s;
}

.key-deselect:hover {
  color: var(--text);
}

.key-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 4px 0;
  cursor: pointer;
}

.key-item input[type="checkbox"] {
  width: 14px;
  height: 14px;
  accent-color: var(--accent-dim, #888);
  cursor: pointer;
  margin: 0;
}

.key-icon {
  display: inline-block;
  width: 10px;
  height: 10px;
  flex-shrink: 0;
}

.key-icon-kingdom {
  background: rgba(255, 220, 120, 0.9);
  border-radius: 2px;
}

.key-icon-capital {
  width: 10px;
  height: 10px;
  border: 2px solid rgba(200, 180, 100, 0.9);
  background: rgba(200, 180, 100, 0.4);
  border-radius: 50%;
  box-sizing: border-box;
}

.key-icon-region {
  background: none;
  border: none;
  color: rgba(212, 212, 216, 0.6);
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  width: auto;
  height: auto;
}
.key-icon-region::after { content: 'Aa'; }

.key-icon-city {
  width: 8px;
  height: 8px;
  background: rgba(212, 212, 216, 0.8);
  border-radius: 50%;
}

.key-icon-town {
  width: 6px;
  height: 6px;
  background: rgba(160, 160, 170, 0.7);
  border-radius: 50%;
}

.key-icon-landmark {
  width: 7px;
  height: 7px;
  background: rgba(60, 140, 80, 0.9);
  border-radius: 1px;
  transform: rotate(45deg);
}

.key-icon-mountain {
  width: 0;
  height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-bottom: 8px solid rgba(180, 160, 140, 0.8);
  background: none;
}

.key-icon-sea {
  background: none;
  color: rgba(100, 160, 220, 0.7);
  font-style: italic;
  font-size: 0.6rem;
  width: auto;
  height: auto;
}
.key-icon-sea::after { content: '~'; }

.key-icon-river {
  background: none;
  color: rgba(60, 180, 220, 0.8);
  font-style: italic;
  font-size: 0.6rem;
  width: auto;
  height: auto;
}
.key-icon-river::after { content: '~'; }

.key-icon-abandoned {
  width: 7px;
  height: 7px;
  border: 1.5px solid rgba(180, 80, 80, 0.8);
  background: transparent;
  transform: rotate(45deg);
  box-sizing: border-box;
}

.key-icon-bridge {
  width: 20px;
  height: 3px;
  background: rgba(80, 80, 85, 0.9);
  border-radius: 1px;
}

.key-icon-lake {
  background: none;
  color: rgba(80, 140, 200, 0.8);
  font-style: italic;
  font-size: 0.6rem;
  width: auto;
  height: auto;
}
.key-icon-lake::after { content: '~'; }

/* ── Compass rose ── */
.compass-rose {
  position: fixed;
  bottom: 2rem;
  left: 2rem;
  z-index: 500;
  opacity: 0.35;
  pointer-events: none;
  transition: opacity 0.3s;
}

.compass-rose svg {
  width: 60px;
  height: 60px;
}

/* ── Map breadcrumb (for sub-maps) ── */
.map-breadcrumb {
  position: fixed;
  top: calc(57px + 1rem);
  left: 50%;
  transform: translateX(-50%);
  z-index: 500;
  display: none;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-ui);
  font-size: 0.8rem;
  background: rgba(0, 0, 0, 0.8);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 0.4rem 1rem;
}

.map-breadcrumb.visible {
  display: flex;
}

.map-breadcrumb a {
  color: var(--accent-dim);
  transition: color 0.2s;
}

.map-breadcrumb a:hover {
  color: var(--accent);
}

.map-breadcrumb span {
  color: var(--text-muted);
}

.map-breadcrumb .bc-current {
  color: var(--text);
}

/* ── Responsive ── */
@media (max-width: 768px) {
  #world-map {
    top: auto;
    position: relative;
    height: calc(100vh - 90px);
  }

  .info-panel {
    width: 100%;
    top: 90px;
    height: calc(100vh - 90px);
  }

  .compass-rose {
    bottom: 1rem;
    left: 1rem;
  }

  .compass-rose svg {
    width: 40px;
    height: 40px;
  }
}
