.bird-map.leaflet-container {
  --map-ocean: #173a40;
  --map-ink: #1b2b23;
  --map-control: #163332;
  --map-gold: #f8cb70;
  isolation: isolate;
  width: 100%;
  min-height: 220px;
  background-color: var(--map-ocean);
  color: #f5f4e8;
  font: inherit;
  cursor: grab;
}

.bird-map.leaflet-dragging,
.bird-map .leaflet-dragging { cursor: grabbing; }

.bird-map:focus-visible { outline: 3px solid var(--map-gold); outline-offset: -4px; }

.bird-map .leaflet-control-zoom {
  margin: 14px 14px 0 0;
  border: 1px solid rgb(231 243 215 / 28%);
  border-radius: 12px;
  box-shadow: 0 4px 12px rgb(6 19 16 / 24%);
}

.bird-map .leaflet-control-zoom a {
  display: grid;
  place-items: center;
  width: 40px;
  height: 39px;
  background: var(--map-control);
  color: #f3f5e9;
  border-color: rgb(231 243 215 / 25%);
  font-family: inherit;
  font-weight: 500;
  text-decoration: none;
  transition: background-color 150ms ease, color 150ms ease;
}

.bird-map .leaflet-control-zoom a:first-child { border-radius: 11px 11px 0 0; }
.bird-map .leaflet-control-zoom a:last-child { border-radius: 0 0 11px 11px; }
.bird-map .leaflet-control-zoom a.leaflet-disabled { color: #a4b7aa; }
.bird-map .leaflet-control-zoom a:hover { background: #31544a; }
.bird-map .leaflet-control-zoom a:focus-visible,
.bird-map .map-region-button:focus-visible,
.bird-map .leaflet-control-attribution a:focus-visible {
  z-index: 1;
  outline: 2px solid var(--map-gold);
  outline-offset: 3px;
}

.bird-map .map-compass {
  display: flex;
  flex-direction: column-reverse;
  align-items: center;
  gap: 1px;
  margin: 11px 20px 0 0;
  width: 29px;
  color: #f2f1d8;
  text-shadow: 0 1px 3px #162b25;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.15;
  pointer-events: none;
}

.bird-map .map-compass::before {
  width: 14px;
  height: 19px;
  background: linear-gradient(90deg, #f8efd1 49%, #a9bd9f 50%);
  clip-path: polygon(50% 0, 100% 100%, 50% 75%, 0 100%);
  content: '';
}

.bird-map .leaflet-control-attribution {
  margin: 0 0 7px 10px;
  padding: 2px 6px;
  border-radius: 4px;
  background: var(--map-control);
  color: #f0eee3;
  font-size: 16px;
  line-height: 1.15;
}

.bird-map .leaflet-control-attribution a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.bird-map .leaflet-control-scale { margin: 0 14px 8px 0; }
.bird-map .leaflet-control-scale-line {
  padding: 1px 5px 2px;
  border-color: #e4e6d4;
  border-width: 1px;
  text-shadow: 0 1px 3px #0e211e;
  background: var(--map-control);
  color: #f0eee3;
  font-size: 16px;
}

.bird-map .map-region-control { margin: 0 10px 9px; }
.bird-map .map-region-buttons { display: flex; flex-wrap: wrap; gap: 5px; }
.bird-map .map-region-button {
  border: 1px solid rgb(229 242 217 / 29%);
  border-radius: 7px;
  padding: 7px 10px;
  min-height: 36px;
  background: var(--map-control);
  color: #f3f4e9;
  font: inherit;
  font-size: 16px;
  font-weight: 650;
  line-height: 1;
  box-shadow: 0 2px 10px rgb(9 26 19 / 20%);
  cursor: pointer;
  transition: background-color 160ms ease, color 160ms ease, border-color 160ms ease;
}

.bird-map .map-region-button:hover,
.bird-map .map-region-button:active { background: var(--map-gold); color: var(--map-ink); border-color: var(--map-gold); }

.bird-map[data-rendered-base="map"] { background: #a4d5d9; }
.bird-map[data-rendered-base="satellite"] { background: #142c41; }
.bird-map .map-relief-image { filter: saturate(1.3) brightness(1.07); }

.bird-map .map-layer-chooser {
  --map-menu: #f7f8ee;
  position: relative;
  float: right;
  margin: 10px 14px 0 0;
  cursor: default;
}
.bird-map .leaflet-top.leaflet-right:has(.map-layer-chooser[open]) { z-index: 1100; }
.bird-map.leaflet-touch-drag.leaflet-touch-zoom:has(.map-layer-chooser[open]) { touch-action: pan-y; }

.bird-map .map-layer-trigger {
  display: flex;
  align-items: center;
  gap: 7px;
  min-height: 41px;
  padding: 6px 11px;
  border: 1px solid rgb(231 243 215 / 28%);
  border-radius: 9px;
  background: var(--map-control);
  color: #f8f6e8;
  font-size: 16px;
  font-weight: 720;
  line-height: 1.05;
  list-style: none;
  box-shadow: 0 3px 11px rgb(6 19 16 / 24%);
  cursor: pointer;
}

.bird-map .map-layer-trigger::-webkit-details-marker { display: none; }
.bird-map .map-layer-trigger::before {
  width: 12px;
  height: 12px;
  margin-right: 1px;
  border: 1.5px solid currentColor;
  border-radius: 2px;
  box-shadow: 2px 2px 0 -0.5px var(--map-control), 3px 3px 0 -0.5px currentColor;
  content: '';
}

.bird-map .map-layer-trigger:hover,
.bird-map .map-layer-chooser[open] .map-layer-trigger { background-color: #31544a; }

.bird-map .map-layer-panel {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  width: min(282px, calc(100vw - 46px));
  padding: 12px;
  border: 1px solid #afbaa4;
  border-radius: 11px;
  background: var(--map-menu);
  color: var(--map-ink);
  box-shadow: 0 7px 22px rgb(13 31 26 / 23%);
  overflow: auto;
  touch-action: pan-y;
  overscroll-behavior: contain;
}

.bird-map .map-layer-heading {
  margin: 0 0 8px;
  color: #234337;
  font-size: 16px;
  font-weight: 800;
  line-height: 1.2;
}

.bird-map .map-base-options { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; }
.bird-map .map-base-option {
  min-height: 38px;
  padding: 5px 3px;
  border: 1px solid #b2bea9;
  border-radius: 7px;
  background: #eef2e7;
  color: #214237;
  font-size: 16px;
  font-weight: 720;
  line-height: 1.15;
  cursor: pointer;
  transition: background-color 140ms ease, color 140ms ease, border-color 140ms ease;
}

.bird-map .map-base-option:hover { background-color: #d7e6cc; }
.bird-map .map-base-option[aria-pressed="true"] { background-color: #254e41; border-color: #254e41; color: #faf8ea; }
.bird-map .map-base-option:disabled { opacity: 0.44; cursor: default; }
.bird-map .map-layer-trigger:focus-visible { outline: 2px solid var(--map-gold); outline-offset: 3px; }
.bird-map :is(.map-base-option, .map-overlay-option input):focus-visible { outline: 2px solid #895b32; outline-offset: 2px; }

.bird-map .map-layer-caption { margin: 8px 0 0; color: #4b6254; font-size: 16px; line-height: 1.27; }
.bird-map .map-overlay-heading { margin-top: 11px; padding-top: 10px; border-top: 1px solid #d5dacb; }
.bird-map .map-overlay-options { display: grid; gap: 5px; }
.bird-map .map-overlay-option {
  display: flex;
  align-items: flex-start;
  gap: 7px;
  padding: 5px 2px;
  cursor: pointer;
}
.bird-map .map-overlay-option input { width: 18px; height: 18px; margin: 2px 0 0; flex: none; accent-color: #254e41; }
.bird-map .map-overlay-copy { display: grid; gap: 1px; }
.bird-map .map-overlay-name { font-size: 16px; line-height: 1.2; font-weight: 720; }
.bird-map .map-overlay-description { color: #4b6254; font-size: 16px; line-height: 1.27; }
.bird-map .map-layer-sources { margin: 8px 0 0; color: #4b6254; font-size: 16px; line-height: 1.3; }
.bird-map .map-layer-sources a { color: #325440; text-decoration: underline; }

.bird-map .map-base-status {
  position: absolute;
  z-index: 490;
  top: 62px;
  left: 12px;
  max-width: min(270px, calc(100% - 110px));
  margin: 0;
  padding: 5px 9px;
  border-radius: 6px;
  background: var(--map-control);
  color: #f3f4e9;
  font-size: 16px;
  line-height: 1.2;
  pointer-events: none;
}

.bird-map .map-label span {
  display: block;
  color: #eeeed5;
  text-align: center;
  white-space: nowrap;
  text-shadow: 0 1px 3px #122321, 0 0 6px #102e2a;
  transform: translate(calc(-50% + var(--label-shift-x, 0px)), calc(-50% + var(--label-shift-y, 0px)));
  width: max-content;
  max-width: 148px;
  line-height: 1;
  font-size: 16px;
  user-select: none;
}

.bird-map .map-label--sea span {
  color: #d3e2d4;
  font-family: Georgia, serif;
  font-size: 17px;
  font-style: italic;
  letter-spacing: 0.06em;
}

.bird-map .map-label--country span {
  color: #e5e8c9;
  text-transform: uppercase;
  letter-spacing: 0.19em;
  font-size: 16px;
  font-weight: 650;
}

.bird-map .map-label--landmark span {
  color: #efe7c5;
  font-size: 16px;
  font-weight: 650;
  letter-spacing: 0.04em;
}

.bird-map .map-label--city span {
  padding-left: 9px;
  color: #f7f4e4;
  font-size: 16px;
  font-weight: 600;
  white-space: normal;
  text-align: left;
  transform: translate(0, -50%);
}

.bird-map .map-label--city span::before {
  position: absolute;
  top: 50%;
  left: -2px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #eeecd6;
  box-shadow: 0 1px 4px #102e2d;
  transform: translateY(-50%);
  content: '';
}

.bird-map[data-rendered-base="map"] .map-label span {
  color: #254739;
  text-shadow: -1px -1px 0 #f5f2d9, 1px 1px 0 #f5f2d9, 0 0 4px #f5f2d9;
}
.bird-map[data-rendered-base="map"] .map-label--sea span { color: #285d6e; text-shadow: 0 0 4px #e6f4f3; }
.bird-map[data-rendered-base="map"] .map-label--city span::before { background: #2e5144; box-shadow: 0 0 2px #f5f2d9; }
.bird-map[data-rendered-base="map"] .map-compass { color: #254739; text-shadow: 0 1px 3px #f5f2d9; }
.bird-map[data-rendered-base="map"] .map-compass::before { background: linear-gradient(90deg, #27473b 49%, #54786a 50%); }

.bird-map .map-point-button {
  position: relative;
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--map-ink);
  cursor: pointer;
  touch-action: manipulation;
  transition: transform 160ms ease, background-color 160ms ease, box-shadow 160ms ease;
}

.bird-map .map-point--cluster .map-point-button {
  border: 2px solid #fff1bd;
  background-color: var(--map-gold);
  box-shadow: 0 0 0 3px rgb(248 203 112 / 27%), 0 4px 10px rgb(10 23 14 / 38%);
  font: inherit;
  font-size: 16px;
  font-weight: 750;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}

.bird-map .map-point--single .map-point-button::before,
.bird-map .map-point--approximate .map-point-button::before {
  box-sizing: border-box;
  width: 17px;
  height: 17px;
  border: 2px solid #fff1bd;
  border-radius: 50%;
  background: var(--map-gold);
  box-shadow: 0 0 0 2px rgb(248 203 112 / 35%), 0 2px 5px rgb(6 22 17 / 55%);
  content: '';
}

.bird-map .map-point--approximate .map-point-button::before {
  width: 23px;
  height: 23px;
  border: 2px dashed #fff1bd;
  background: rgb(30 55 46 / 82%);
}

.bird-map .map-point--approximate .map-point-button::after {
  position: absolute;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--map-gold);
  content: '';
}

.bird-map .map-point-button:hover,
.bird-map .map-point-button:focus-visible { transform: scale(1.13); }
.bird-map .map-point-button:active { transform: scale(0.94); }
.bird-map .map-point-button.is-selected,
.bird-map .map-point-button:focus-visible { outline: 2px solid #fff1bd; outline-offset: 3px; }
.bird-map .map-point--cluster .map-point-button:is(:hover, .is-selected) { background: #ffe4a0; }

@media (max-width: 550px) {
  .bird-map .leaflet-control-zoom { margin: 9px 9px 0 0; }
  .bird-map .leaflet-control-zoom a { width: 37px; height: 37px; }
  .bird-map .map-compass { display: none; }
  .bird-map .map-region-control { margin-inline: 8px; }
  .bird-map .map-region-buttons { gap: 4px; }
  .bird-map .map-region-button { min-height: 35px; padding-inline: 8px; font-size: 14px; }
  .bird-map .leaflet-control-attribution { margin-left: 8px; max-width: calc(100vw - 120px); }
  .bird-map .leaflet-control-scale { margin-right: 8px; }
  .bird-map .leaflet-control-attribution, .bird-map .leaflet-control-scale-line { font-size: 14px; }
  .bird-map .map-layer-chooser { margin-right: 9px; }
  .bird-map .map-layer-trigger { min-height: 36px; font-size: 14px; }
  .bird-map .map-layer-panel { padding: 10px; }
  .bird-map .map-base-status { top: 54px; left: 8px; }
  .bird-map :is(.map-base-option, .map-layer-caption, .map-overlay-name, .map-overlay-description, .map-layer-sources, .map-base-status) { font-size: 14px; }
  .bird-map .map-label span { font-size: 14px; }
  .bird-map .map-point--cluster .map-point-button { font-size: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  .bird-map *, .bird-map *::before { transition-duration: 0s !important; animation-duration: 0s !important; }
}
