.world-map {
  margin: 24px 30px 26px;
  scroll-margin-top: 16px;
  border: 1px solid #d8dfdf;
  border-radius: 10px;
  overflow: hidden;
  background: #f7f8f6;
}
.map-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 19px 22px 16px;
  background: #fdfdf9;
  border-bottom: 1px solid #dce2dd;
}
.map-heading h2 {
  font-weight: 550;
  font-size: 18px;
  letter-spacing: -0.3px;
}
.map-moment {
  font:
    11px/1.6 ui-monospace,
    monospace;
  color: #4e606c;
  text-align: right;
}
.map-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 220px;
}
.map-main {
  min-width: 0;
  border-right: 1px solid #dce2dd;
  display: flex;
  flex-direction: column;
}
.map-canvas {
  position: relative;
  aspect-ratio: 2/1;
  background: #eaf0f3;
  overflow: hidden;
  touch-action: pan-y;
  isolation: isolate;
  flex: 1;
  min-height: 260px;
}
.map-canvas.is-zoomed {
  touch-action: none;
  cursor: grab;
}
.map-canvas.is-dragging {
  cursor: grabbing;
}
.map-canvas svg {
  width: 100%;
  height: 100%;
  display: block;
  position: absolute;
  inset: 0;
}
.map-graticule {
  stroke: #ced9df;
  stroke-width: 0.7;
  fill: none;
  pointer-events: none;
}
.map-equator {
  stroke: #b8c9d1;
  stroke-dasharray: 4 5;
}
.map-region {
  stroke: #f7f8f4;
  stroke-width: 0.6;
  stroke-linejoin: round;
  cursor: pointer;
  vector-effect: non-scaling-stroke;
  fill: #d4d9d9;
}
.map-region:hover {
  stroke: #334b68;
  stroke-width: 1.3;
}
.map-region.in-plan {
  stroke: #496492;
  stroke-width: 1.2;
}
.map-region.exploring {
  stroke: #294dba;
  stroke-width: 1.8;
}
.map-unknown {
  fill: #d4d9d9;
}
.map-pin {
  position: absolute;
  transform: translate(-50%, -50%);
  z-index: 2;
  width: 36px;
  height: 36px;
  min-height: 36px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 0;
  background: transparent;
  padding: 0;
}
.map-pin .pin-number {
  background: #294dba;
  color: #fff;
  border: 2px solid #fff;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  font:
    600 10px/1 ui-sans-serif,
    sans-serif;
  display: grid;
  place-items: center;
  box-shadow: 0 1px 5px #233e6c44;
}
.map-pin[aria-pressed="true"] .pin-number {
  background: #fff;
  color: #294dba;
  border-color: #294dba;
}
.map-pin:focus-visible {
  outline: 2px solid #294dba;
  outline-offset: -3px;
}
.map-pin:hover .pin-number {
  background: #193f9e;
  color: #fff;
}
.pin-label {
  position: absolute;
  bottom: 33px;
  left: 50%;
  transform: translateX(-50%);
  padding: 4px 7px;
  white-space: nowrap;
  border-radius: 3px;
  background: #fffefaef;
  box-shadow: 0 1px 4px #28405216;
  font-size: 9px;
  pointer-events: none;
  color: #273d4f;
}
.pin-label strong {
  font-weight: 600;
}
.pin-label .pin-time {
  font-variant-numeric: tabular-nums;
  margin-left: 5px;
}
.pin-label::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: calc(50% - 4px);
  border-inline: 4px solid transparent;
  border-top: 4px solid #fffefa;
}
.map-controls {
  display: flex;
  position: absolute;
  left: 12px;
  bottom: 12px;
  z-index: 3;
  border: 1px solid #b6c7cf;
  background: #fffefa;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 2px 6px #223f5310;
}
.map-controls button {
  background: transparent;
  min-width: 36px;
  min-height: 36px;
  padding: 4px 9px;
  font-size: 19px;
  color: #344f65;
}
.map-controls button + button {
  border-left: 1px solid #d5dfe2;
}
.map-controls button:last-child {
  font-size: 10px;
}
.map-controls button:hover {
  background: #e6edf0;
}
.map-scale {
  position: absolute;
  right: 12px;
  bottom: 16px;
  font:
    9px ui-monospace,
    monospace;
  color: #526777;
  pointer-events: none;
}
.map-legend {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 7px 16px;
  padding: 12px 10px;
  border-top: 1px solid #dce2dd;
  font-size: 9px;
  background: #f6f8f5;
  color: #4c5b59;
}
.map-legend span {
  display: flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
}
.map-legend i {
  width: 9px;
  height: 9px;
  border: 1px solid #0001;
  border-radius: 2px;
}
.map-explorer {
  padding: 19px 17px;
  background: #fcfcf7;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 10px;
  min-width: 0;
}
.map-explorer .field {
  margin: 0;
}
.map-explorer .field > span {
  font-size: 10px;
}
.map-explorer select {
  font-size: 12px;
  padding: 9px 26px 9px 9px;
  min-height: 44px;
  width: 100%;
}
.map-explorer h3 {
  font-size: 17px;
  font-weight: 550;
  letter-spacing: -0.4px;
  line-height: 1.25;
  margin: 5px 0 0;
  overflow-wrap: anywhere;
}
.map-clock {
  font-size: 31px;
  letter-spacing: -1.1px;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}
.map-explorer .muted {
  font-size: 10px;
  line-height: 1.7;
}
.map-zone {
  overflow-wrap: anywhere;
  font-size: 9px;
  color: #596961;
}
.map-fit {
  font-size: 10px;
  color: #416048;
  min-height: 17px;
}
.map-add {
  font-size: 11px;
  padding: 9px;
  margin-top: auto;
}
.map-selected-cities {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  padding: 12px 16px;
  border-top: 1px solid #dce2dd;
  background: #fcfcf7;
}
.map-city-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 10px;
  padding: 5px 10px 5px 6px;
  min-height: 36px;
  border: 1px solid #d3dacf;
  border-radius: 5px;
  background: transparent;
  max-width: 100%;
  color: #425048;
}
.map-city-chip .chip-number {
  width: 19px;
  height: 19px;
  border-radius: 50%;
  background: #e3e9f5;
  color: #294dba;
  display: grid;
  place-items: center;
  font-size: 9px;
  font-weight: 600;
  flex-shrink: 0;
}
.map-city-chip[aria-pressed="true"] {
  background: #edf1fa;
  border-color: #9eafd1;
}
.map-city-chip .chip-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 160px;
}
.map-city-chip .chip-clock {
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.map-city-chip .chip-day {
  font-size: 9px;
  color: #77513d;
}
.map-scrubber {
  padding: 14px 20px 13px;
  background: #fdfdf9;
  border-top: 1px solid #dce2dd;
}
.map-scrubber-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 10px;
}
.map-scrubber label {
  font-size: 11px;
  font-weight: 550;
  color: #425048;
}
.map-scrubber output {
  font:
    11px ui-monospace,
    monospace;
  color: #294dba;
  text-align: right;
}
.map-range {
  padding: 0;
  background: transparent;
  border: 0;
  accent-color: #294dba;
  height: 35px;
  min-height: 35px;
  width: 100%;
  cursor: ew-resize;
}
.map-range:focus {
  outline-offset: 0;
}
.map-ticks {
  display: flex;
  justify-content: space-between;
  font:
    9px ui-monospace,
    monospace;
  color: #61716f;
  margin-top: -3px;
  pointer-events: none;
}
.map-footnote {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 16px;
  border-top: 1px solid #dce2dd;
  color: #5d6d70;
  font-size: 9px;
  line-height: 1.65;
}
.map-footnote a {
  white-space: nowrap;
}
.map-status {
  padding: 18px;
  font-size: 12px;
  color: var(--muted);
}
.map-retry {
  display: inline;
  margin-left: 10px;
  font-size: 12px;
  color: var(--blue);
  background: transparent;
  text-decoration: underline;
}
.map-help {
  font-size: 10px;
  color: #53656d;
  margin: 0;
  padding: 0 16px 12px;
  background: #f6f8f5;
}
@media (max-width: 1100px) {
  .map-layout {
    grid-template-columns: minmax(0, 1fr) 190px;
  }
  .world-map {
    margin-inline: 22px;
  }
  .map-canvas {
    min-height: 240px;
  }
  .pin-label {
    display: none;
  }
  .map-pin[aria-pressed="true"] .pin-label {
    display: block;
  }
  .map-heading h2 {
    font-size: 18px;
  }
}
@media (max-width: 750px) {
  .map-layout {
    grid-template-columns: 1fr;
  }
  .map-main {
    border-right: 0;
  }
  .map-canvas {
    min-height: 0;
    aspect-ratio: 2/1;
    flex: auto;
  }
  .map-explorer {
    border-top: 1px solid #dce2dd;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5px 15px;
    padding: 15px 16px;
  }
  .map-explorer > .field {
    grid-column: 1/-1;
    margin-bottom: 6px;
  }
  .map-explorer h3 {
    grid-column: 1;
    grid-row: 2;
    align-self: center;
  }
  .map-clock {
    grid-column: 2;
    grid-row: 2;
    text-align: right;
    font-size: 29px;
  }
  .map-date {
    grid-column: 2;
    grid-row: 3;
    text-align: right;
  }
  .map-zone {
    grid-column: 1;
    grid-row: 3;
  }
  .map-fit {
    grid-column: 1;
    grid-row: 4;
    align-self: center;
  }
  .map-add {
    grid-column: 2;
    grid-row: 4/6;
    align-self: center;
    min-height: 44px;
    margin-top: 3px;
  }
  .map-offset {
    grid-column: 1;
    grid-row: 5;
  }
  .map-moment {
    font-size: 9px;
  }
  .map-pin {
    width: 44px;
    height: 44px;
    min-height: 44px;
  }
  .map-pin .pin-number {
    width: 20px;
    height: 20px;
    font-size: 9px;
  }
  .pin-label {
    display: none !important;
  }
  .map-controls {
    left: 8px;
    bottom: 8px;
  }
  .map-controls button {
    min-height: 44px;
    min-width: 38px;
  }
  .map-controls button:last-child {
    font-size: 9px;
  }
  .map-scale {
    right: 10px;
    bottom: 10px;
    font-size: 8px;
  }
  .map-legend {
    gap: 5px 13px;
    font-size: 8px;
  }
  .map-help {
    font-size: 9px;
  }
  .map-city-chip {
    min-height: 44px;
  }
  .map-selected-cities {
    padding: 10px 12px;
    gap: 6px;
  }
  .map-city-chip .chip-name {
    max-width: 140px;
  }
  .map-range {
    min-height: 44px;
  }
  .map-heading {
    padding: 16px;
  }
  .map-footnote {
    flex-wrap: wrap;
    gap: 4px;
  }
  .map-scrubber {
    padding: 13px 15px;
  }
  .map-scrubber label {
    font-size: 10px;
  }
  .map-scrubber output {
    font-size: 10px;
  }
}
@media (max-width: 640px) {
  .world-map {
    margin: 20px 17px;
  }
  .map-heading {
    display: block;
  }
  .map-heading h2 {
    font-size: 18px;
  }
  .map-moment {
    text-align: left;
    margin-top: 8px;
  }
  .map-canvas {
    aspect-ratio: 1.75/1;
  }
  .map-scrubber-head {
    flex-wrap: wrap;
    gap: 2px;
  }
  .map-explorer h3 {
    font-size: 16px;
  }
  .map-clock {
    font-size: 25px;
  }
  .map-city-chip {
    font-size: 9px;
    gap: 5px;
    padding-right: 7px;
  }
  .map-explorer select {
    font-size: 16px;
  }
  .map-legend {
    justify-content: flex-start;
    padding-inline: 14px;
  }
  .map-selected-cities {
    display: grid;
    grid-template-columns: 1fr;
  }
  .map-city-chip .chip-name {
    max-width: none;
    flex: 1;
    text-align: left;
  }
  .map-footnote {
    font-size: 8px;
  }
}
@media print {
  .world-map {
    display: none;
  }
}
.map-heading h2 {
  line-height: 1.2;
}
@media (max-width: 640px) {
  .map-selected-cities {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
  }
  .map-city-chip {
    flex-shrink: 0;
  }
  .map-city-chip .chip-name {
    max-width: 130px;
    flex: initial;
  }
}
