#album-map.travel-map-frame {
  max-width: none;
  margin: 0;
  aspect-ratio: auto;
  background: var(--card);
  color: var(--ink);
  font-family: "Noto Sans Armenian", "Arial Armenian", Sylfaen, Arial, sans-serif;
}

.travel-map-viewport {
  position: relative;
  width: 100%;
  aspect-ratio: 400 / 405;
  overflow: hidden;
  overflow: clip;
  background:
    radial-gradient(ellipse at 36% 34%, #f6eacf, transparent 66%),
    repeating-linear-gradient(121deg, #75532a09 0 1px, transparent 1px 4px),
    #e7d4af;
  touch-action: pan-y;
  -webkit-user-select: none;
  user-select: none;
}

.travel-map-viewport.is-zoomed { touch-action: none; cursor: grab; }
.travel-map-viewport.is-dragging { cursor: grabbing; }

.travel-map-art, .travel-map-labels, .travel-map-pins {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

/* Its own GPU layer: Android WebView otherwise leaves faint seams where it tiles the map. */
.travel-map-art, .travel-map-labels, .travel-map-pins { transform: translateZ(0); }
.travel-map-art path, .travel-map-art line { vector-effect: non-scaling-stroke; }
.travel-map-art .country { fill: #ede0bd; stroke: #73583b; stroke-width: 1.25; fill-rule: evenodd; }
.travel-map-art .marz { stroke: #80644085; stroke-width: .65; fill-rule: evenodd; }
.travel-map-art .country-edge { fill: none; stroke: #705036; stroke-width: 1.15; stroke-linejoin: round; }
.travel-map-art .lake { fill: #77a5a7; stroke: #577f81; stroke-width: .6; fill-rule: evenodd; }
.travel-map-art .river { fill: none; stroke: #5a929a; stroke-width: .95; stroke-linecap: round; }
.travel-map-art .planned, .travel-map-art .travelled { fill: none; stroke-linecap: round; stroke-linejoin: round; }
.travel-map-art .planned { stroke: #78523b; opacity: .84; stroke-width: 1.55; stroke-dasharray: 2 4; }
.travel-map-art .travelled { stroke: #b8453a; stroke-width: 3.25; }
.travel-map-art .leader { stroke: #68513c; stroke-width: .75; opacity: .8; }
.travel-map-art .true-point { fill: #554631; }
.travel-map-art .peak { color: #82634a; }
.travel-map-art .masis { color: #9d7854; opacity: .75; }

.travel-map-labels.is-moving { visibility: hidden; }
.travel-map-label {
  position: absolute;
  top: 0;
  left: 0;
  color: #574332;
  font-size: 10px;
  line-height: 1.15;
  font-weight: 700;
  text-align: center;
  white-space: nowrap;
  text-shadow: -.7px -.7px #f7ecd4, .7px -.7px #f7ecd4, -.7px .7px #f7ecd4, .7px .7px #f7ecd4;
}
.travel-map-label.is-hidden { visibility: hidden; }
.travel-map-label.stop-name { color: #322820; }
.travel-map-label.water-name { color: #315d61; font-size: 9px; font-weight: 600; }
.travel-map-label.peak-name { color: #644936; font-size: 9px; }
.travel-map-label small { display: block; font-size: 8px; font-weight: 500; }

.travel-map-viewport .travel-map-pin {
  position: absolute;
  top: 0;
  left: 0;
  display: grid;
  place-items: center;
  width: 28px;
  height: 22px;
  min-width: 0;
  min-height: 0;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 5px;
  background: none;
  color: #fff6df;
  box-shadow: none;
  cursor: pointer;
  pointer-events: auto;
  transition: none;
  -webkit-tap-highlight-color: transparent;
}
.travel-map-pin-face {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1px;
  width: 26px;
  height: 17px;
  border: 1px solid #fff3d8;
  border-radius: 5px;
  background: #5b5b52;
  color: inherit;
  box-shadow: 0 1px 1px #3726154d;
  font: 800 9px/1 system-ui, sans-serif;
  font-variant-numeric: tabular-nums;
}
.travel-map-pin-icon { width: 10px; height: 10px; }
.travel-map-pin.is-earned .travel-map-pin-face { background: #b8453a; }
.travel-map-pin.is-current .travel-map-pin-face { border-color: #ffdc80; box-shadow: 0 0 0 2px #a96b2e; }
.travel-map-pin.is-current:not(.is-earned) .travel-map-pin-face { background: #392d20; }
.travel-map-viewport .travel-map-pin:focus-visible { z-index: 1; outline: 2px solid #49331f; outline-offset: 1px; }
.travel-map-pin:hover .travel-map-pin-face { border-color: #ffdc80; }

.travel-map-compass {
  position: absolute;
  top: 15px;
  right: 59px;
  color: #6e5132;
  font-size: 12px;
  font-weight: 800;
  text-align: center;
  pointer-events: none;
}
.travel-map-compass span {
  display: block;
  margin: 4px auto 0;
  width: 15px;
  height: 23px;
  background: linear-gradient(90deg, #755332 50%, #ad8c57 50%);
  clip-path: polygon(50% 0, 100% 92%, 50% 70%, 0 92%);
}

.travel-map-controls {
  position: absolute;
  top: 10px;
  right: 9px;
  display: grid;
  border: 1px solid var(--line);
  border-radius: var(--chip-radius);
  background: var(--blue-soft);
  box-shadow: var(--card-shadow);
}
.travel-map-controls button {
  width: 38px;
  height: 36px;
  min-width: 0;
  min-height: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: none;
  color: var(--secondary-ink);
  box-shadow: none;
  font: 500 22px/1 system-ui, sans-serif;
  cursor: pointer;
  touch-action: manipulation;
}
.travel-map-controls button + button { border-top: 1px solid var(--line); }
.travel-map-controls button:first-child { border-radius: 9px 9px 0 0; }
.travel-map-controls button:last-child { border-radius: 0 0 9px 9px; }
.travel-map-controls button:active { background: var(--tab-on); }
.travel-map-controls button:focus-visible { z-index: 1; outline-offset: 1px; }

.travel-map-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 4px 9px;
  min-height: 32px;
  border-top: 1px solid var(--line);
  padding: 6px 10px;
  background: var(--card);
  font-size: 10px;
}
.travel-map-footer a { margin-inline-start: auto; }
.travel-map-route-key { display: flex; flex-wrap: wrap; column-gap: 9px; }
.travel-map-route-key span { display: inline-flex; align-items: center; gap: 4px; }
.travel-map-route-key span::before { content: ""; width: 12px; border-top: 2px solid var(--ruby); }
.travel-map-route-key span + span::before { border-top: 2px dashed var(--muted); }
.travel-map-message { display: grid; place-items: center; padding: 12px; color: var(--muted); font-size: 13px; }
