/* Shared journal and public map experience; story maps remain independent. */
#map-panel {
  background: #fbf8f2;
}
#map-panel .map-heading h3 {
  font-size: clamp(26px, 3vw, 36px);
  letter-spacing: -0.025em;
}
.map-journal-tools {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin: 18px 0;
}
.map-journal-button,
.map-search-result,
.map-first,
.map-memory-row {
  font: inherit;
  color: #39352f;
  border: 1px solid #d8d0c3;
  border-radius: 7px;
  background: #fffcf6;
  padding: 9px 12px;
  cursor: pointer;
  min-height: 42px;
}
.map-journal-button:hover,
.map-search-result:hover {
  background: #eee6d9;
}
.map-journal-button:focus-visible,
.map-search-result:focus-visible,
.map-passport-stamp:focus-visible {
  outline: 3px solid #b5563b;
  outline-offset: 3px;
}
.map-journal-button:disabled {
  opacity: 0.5;
  cursor: default;
}
.map-journal-search {
  flex: 1;
  min-width: 240px;
  position: relative;
  z-index: 12;
}
.map-journal-search input {
  width: 100%;
  border-radius: 8px;
  border: 1px solid #d8d0c3;
  background: #fffdf8;
  padding: 12px 14px;
  color: #39352f;
  font: inherit;
}
.map-search-results {
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  background: #fffdf8;
  border: 1px solid #d8d0c3;
  border-radius: 9px;
  box-shadow: 0 16px 36px #30251522;
  max-height: 420px;
  overflow: auto;
  padding: 12px;
}
.map-search-results h5 {
  margin: 15px 0 6px;
  color: #817464;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.map-search-result {
  display: block;
  border: 0;
  text-align: left;
  width: 100%;
}
.map-view-segments {
  display: flex;
  background: #eae3d7;
  padding: 3px;
  border-radius: 9px;
}
.map-view-segments button {
  background: transparent;
  border-color: transparent;
}
.map-view-segments [aria-pressed="true"] {
  background: #fffcf6;
  box-shadow: 0 1px 4px #30251522;
}
:is(#world-map, #public-map-box) {
  height: clamp(440px, 54vw, 720px);
  position: relative;
  background: #e8ede5;
  margin: 16px 0 0;
  isolation: isolate;
}
:is(#world-map, #public-map-box) > svg {
  height: 100%;
  width: 100%;
}
:is(#world-map, #public-map-box) .map-land path {
  fill: #d7ddd3;
  stroke: #f3f4ef;
  transition:
    fill 0.5s,
    opacity 0.5s;
}
:is(#world-map, #public-map-box) .map-land path.visited {
  fill: #b5563b;
}
:is(#world-map, #public-map-box) .map-land path.visited:hover,
:is(#world-map, #public-map-box) .map-land path.is-focused {
  fill: #cf7b5c;
}
:is(#world-map, #public-map-box) .map-land path.replay-muted {
  fill: #d7ddd3;
}
:is(#world-map, #public-map-box) .map-night {
  fill: #28251f1c;
  stroke: none;
  pointer-events: none;
}
:is(#world-map, #public-map-box) .map-stage-tools {
  position: absolute;
  z-index: 6;
  left: 16px;
  top: 16px;
  display: flex;
  gap: 6px;
  max-width: calc(100% - 32px);
  flex-wrap: wrap;
}
.map-stage-tools select {
  max-width: 125px;
  background: #fffdf5e8;
  border: 1px solid #d8d0c3;
  border-radius: 7px;
  font: inherit;
  padding: 6px;
}
.map-stage-tools.is-passport {
  display: none;
}
.map-globe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  touch-action: none;
  cursor: grab;
}
.map-globe:active {
  cursor: grabbing;
}
:is(#world-map, #public-map-box)[data-mode="globe"] .map-hint,
:is(#world-map, #public-map-box)[data-mode="passport"] .map-hint,
:is(#world-map, #public-map-box)[data-mode="globe"] .map-recall,
:is(#world-map, #public-map-box)[data-mode="passport"] .map-recall {
  display: none;
}
:is(#world-map, #public-map-box) .map-pin-ring {
  stroke: #b5563b;
  stroke-width: 3;
  fill: #faf7f0;
}
:is(#world-map, #public-map-box) .is-cluster .map-pin-ring {
  stroke: #3a3632;
}
:is(#world-map, #public-map-box) .map-at-night .map-pin-ring {
  filter: drop-shadow(0 0 8px #ffbb66);
}
:is(#world-map, #public-map-box) .map-on-this-day .map-pin-ring {
  animation: map-beacon 2.2s infinite;
}
.map-unread-dot {
  fill: #b5563b;
  stroke: #fffdf8;
  stroke-width: 2;
  display: none;
}
.map-unread .map-unread-dot {
  display: block;
}
.map-home-label {
  font: 700 9px sans-serif;
  text-anchor: middle;
  fill: #39352f;
  letter-spacing: 0.12em;
  display: none;
}
.map-at-home .map-home-label {
  display: block;
}
:is(#world-map, #public-map-box) .map-pin-label {
  font-size: 12px;
  paint-order: stroke;
  stroke: #f7f3e8;
  stroke-width: 3px;
}
:is(#world-map, #public-map-box) .map-city {
  transition: opacity 0.4s;
}
:is(#world-map, #public-map-box).is-replaying .journey-pins {
  opacity: 0;
  pointer-events: none;
}
:is(#world-map, #public-map-box) .map-wishlist-pins circle {
  fill: #fff9ed;
  stroke: #a47d5a;
  stroke-width: 2;
  stroke-dasharray: 4 3;
}
.map-wishlist-pins text {
  font: italic 12px Georgia;
  text-anchor: middle;
  fill: #6c523b;
  paint-order: stroke;
  stroke: #fffaf0;
  stroke-width: 3px;
}
.map-journal-strip {
  display: grid;
  grid-template-columns: repeat(var(--map-strip-cols, 3), minmax(0, 1fr));
  border: 1px solid #dfd6c8;
  border-radius: 0 0 8px 8px;
  background: #f6f0e6;
}
.map-journal-strip section {
  padding: 22px;
  min-width: 0;
  border-right: 1px solid #dfd6c8;
}
.map-journal-strip section:last-child {
  border: 0;
  max-height: 350px;
  overflow: auto;
}
.map-journal-strip h4 {
  margin: 0 0 14px;
  font: 600 11px sans-serif;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #897864;
}
.map-journal-strip strong {
  font:
    32px Newsreader,
    Georgia,
    serif;
}
.map-journal-strip p {
  font-size: 13px;
  line-height: 1.6;
  color: #776b5c;
}
.map-first {
  display: block;
  text-align: left;
  border: 0;
  background: none;
  padding: 5px 0;
  min-height: 30px;
  font-size: 13px;
}
.map-first:hover {
  text-decoration: underline;
}
.map-wish-row {
  display: flex;
  gap: 8px;
  margin: 4px 0;
  justify-content: space-between;
}
.map-wish-row button {
  border: 0;
  background: none;
  text-align: left;
}
:is(#world-map, #public-map-box) .map-place-card {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: auto;
  width: 360px;
  max-width: calc(100% - 32px);
  height: 100%;
  max-height: 100%;
  overflow: auto;
  border: 0;
  border-radius: 0;
  background: #fffbf3;
  box-shadow: -12px 0 36px #2b281c22;
  padding: 26px 22px;
  z-index: 10;
  animation: map-panel-in 0.5s ease;
}
:is(#world-map, #public-map-box) .map-place-card h4 {
  font:
    34px Newsreader,
    Georgia,
    serif;
}
:is(#world-map, #public-map-box) .map-card-thumbs {
  display: block;
  margin: -26px -22px 22px;
}
:is(#world-map, #public-map-box) .map-card-thumbs img {
  width: 100%;
  height: 200px;
  border-radius: 0;
  object-fit: cover;
}
:is(#world-map, #public-map-box) .map-card-thumbs img:not(:first-child) {
  display: none;
}
.map-memory-row {
  display: flex;
  width: 100%;
  gap: 12px;
  margin: 10px 0;
  text-align: left;
  background: transparent;
  border: 0;
  border-top: 1px solid #e5dccd;
  border-radius: 0;
  padding: 14px 0;
}
.map-memory-row img {
  width: 64px;
  height: 64px;
  object-fit: cover;
  border-radius: 4px;
}
.map-memory-row span {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}
.map-memory-row small,
.map-local-time {
  font-size: 12px;
  color: #807565;
}
.map-memory-row em {
  font:
    italic 17px/1.35 Newsreader,
    Georgia,
    serif;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.map-recall-label {
  font-size: 12px;
  font-weight: 600;
  color: #a44932;
  background: #f2e1cf;
  border-radius: 4px;
  padding: 8px;
}
.map-pin-tooltip {
  position: absolute;
  z-index: 8;
  width: 270px;
  padding: 18px;
  background: #fffbf3;
  border: 1px solid #d8d0c3;
  border-radius: 8px;
  box-shadow: 0 8px 28px #27211922;
  pointer-events: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.map-pin-tooltip em {
  font:
    italic 18px/1.3 Newsreader,
    Georgia,
    serif;
  max-height: 70px;
  overflow: hidden;
}
.map-pin-tooltip span,
.map-pin-tooltip small {
  font-size: 12px;
  color: #786a58;
}
.map-polaroids {
  position: absolute;
  left: 50%;
  top: 90px;
  transform: translateX(-50%);
  z-index: 7;
  display: flex;
  pointer-events: none;
}
.map-polaroid {
  width: 132px;
  padding: 10px;
  background: #fffaf0;
  box-shadow: 0 6px 20px #30251522;
  transform: rotate(var(--tilt));
  animation: map-panel-in 0.5s ease;
}
.map-polaroid img {
  width: 112px;
  height: 104px;
  object-fit: cover;
}
.map-polaroid em {
  font: italic 15px Georgia;
  display: block;
  max-height: 40px;
  overflow: hidden;
  margin: 8px 0;
}
.map-polaroid small {
  font-size: 9px;
  text-transform: uppercase;
}
.map-recall {
  position: absolute;
  bottom: 26px;
  right: 20px;
  width: 310px;
  background: #fffbf3;
  border: 1px solid #dfd1bf;
  border-radius: 9px;
  box-shadow: 0 8px 24px #30251522;
  display: flex;
  padding: 14px;
  gap: 12px;
  z-index: 5;
}
.map-recall img {
  width: 58px;
  height: 70px;
  object-fit: cover;
  border-radius: 4px;
}
.map-recall small {
  font-size: 9px;
  letter-spacing: 0.08em;
  color: #a44932;
}
.map-recall strong {
  display: block;
  font:
    23px Newsreader,
    Georgia,
    serif;
  margin: 6px 0;
}
.map-recall p {
  font: italic 15px/1.3 Georgia;
  margin: 7px 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.map-recall button {
  font-size: 12px;
  min-height: 36px;
  padding: 6px 9px;
}
.map-replay-caption {
  position: absolute;
  bottom: 24px;
  left: 24px;
  pointer-events: none;
  z-index: 5;
  max-width: 70%;
  text-shadow: 0 1px 10px #fff;
}
.map-replay-caption strong {
  display: block;
  font:
    56px Newsreader,
    Georgia,
    serif;
}
.map-replay-caption span {
  font-size: 14px;
}
:is(#world-map, #public-map-box) .map-replay-line {
  fill: none;
  stroke: #b5563b;
  stroke-width: 3;
  vector-effect: non-scaling-stroke;
}
.map-replay-dot {
  fill: #39352f;
  font-size: 13px;
  text-anchor: middle;
}
.map-milestone {
  position: absolute;
  left: 50%;
  top: 45%;
  transform: translate(-50%, -50%) rotate(-7deg);
  border: 6px double #b5563b;
  padding: 20px;
  color: #a44932;
  text-align: center;
  font: 700 32px sans-serif;
  background: #f8f1e8dd;
  z-index: 6;
}
.map-passport {
  position: absolute;
  inset: 0;
  overflow: auto;
  background: #ebe5da;
  padding: 18px 32px;
  z-index: 4;
}
.map-passport-heading {
  text-align: center;
  font: italic 17px Georgia;
  margin: 5px 0 14px;
}
.map-passport-spread {
  display: grid;
  grid-template-columns: 1fr 1fr;
  max-width: 900px;
  margin: auto;
  box-shadow: 0 12px 28px #392b1722;
}
.map-passport-page {
  min-height: 450px;
  padding: 16px 20px;
  background:
    repeating-radial-gradient(
      ellipse at 10% 30%,
      transparent 0 9px,
      #ad9d8420 10px 10.4px,
      transparent 11px 20px
    ),
    #f5eedf;
  border: 1px solid #dacdb7;
  box-shadow: inset -10px 0 20px #b7a38419;
}
.map-passport-page + section {
  box-shadow: inset 10px 0 20px #9a866533;
}
.map-passport-page header {
  font: 10px sans-serif;
  letter-spacing: 0.2em;
  color: #a3947b;
  border-bottom: 1px solid #d1c0a3;
  padding-bottom: 10px;
}
.map-stamp-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 8px;
  padding: 20px 0;
}
.map-passport-stamp {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 91px;
  gap: 5px;
  border: 4px double #a24e38;
  transform: rotate(var(--tilt));
  color: #9c4d36;
  background: transparent;
  cursor: pointer;
  padding: 8px;
}
.map-passport-stamp strong {
  font: 700 12px sans-serif;
  text-transform: uppercase;
  max-width: 100%;
  overflow-wrap: anywhere;
}
.map-passport-stamp span {
  font: italic 12px Georgia;
}
.map-passport-stamp b {
  font: 10px sans-serif;
}
.map-passport-stamp small {
  font: 7px sans-serif;
  letter-spacing: 0.08em;
}
.map-passport-stamp.stamp-0 {
  border-radius: 50%;
  border-color: #5c6f60;
  color: #5c6f60;
}
.map-passport-stamp.stamp-2 {
  border-radius: 40%;
  border-color: #6a607f;
  color: #6a607f;
}
.map-passport-nav {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 15px;
  flex-wrap: wrap;
  margin: 15px auto;
  font-size: 12px;
}
#map-panel [hidden] {
  display: none !important;
}
@keyframes map-panel-in {
  from {
    opacity: 0;
    translate: 20px 0;
  }
  to {
    opacity: 1;
    translate: 0 0;
  }
}
@keyframes map-beacon {
  50% {
    stroke: #dc8b65;
    stroke-width: 5;
    filter: drop-shadow(0 0 10px #b5563b99);
  }
}
@media (max-width: 760px) {
  .map-journal-search {
    flex-basis: 100%;
  }
  .map-journal-tools {
    gap: 7px;
  }
  .map-journal-strip {
    grid-template-columns: 1fr;
  }
  .map-journal-strip section {
    border-right: 0;
    border-bottom: 1px solid #dfd6c8;
    padding: 18px;
  }
  .map-passport {
    padding: 78px 12px 12px;
  }
  .map-passport-page {
    min-height: 350px;
    padding: 12px 8px;
  }
  .map-stamp-grid {
    gap: 13px 5px;
  }
  .map-passport-stamp {
    min-height: 80px;
    padding: 4px;
  }
  .map-passport-stamp strong {
    font-size: 9px;
  }
  .map-passport-stamp span {
    font-size: 10px;
  }
  .map-passport-stamp b {
    font-size: 8px;
  }
  .map-passport-stamp small {
    display: none;
  }
  .map-polaroids {
    display: none;
  }
  .map-pin-tooltip {
    display: none;
  }
  .map-recall {
    width: 280px;
    right: 12px;
    bottom: 32px;
  }
  .map-replay-caption strong {
    font-size: 38px;
  }
  :is(#world-map, #public-map-box) .map-place-card {
    top: auto;
    bottom: 0;
    left: 0;
    right: 0;
    max-width: 100%;
    width: 100%;
    height: 80%;
    border-radius: 16px 16px 0 0;
  }
  .map-stage-tools button {
    font-size: 12px;
  }
  .map-stage-tools select {
    font-size: 12px;
  }
  .map-journal-tools > .map-journal-button {
    font-size: 12px;
  }
  .map-view-segments button {
    padding: 7px 9px;
    font-size: 13px;
  }
}
@media (prefers-reduced-motion: reduce) {
  #map-panel *,
  #map-panel *::before,
  #map-panel *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}

.map-video-export {
  border-top: 1px solid #d8d0c3;
  margin-top: 24px;
  padding-top: 20px;
}
.map-video-export h3 {
  font:
    26px Newsreader,
    Georgia,
    serif;
  margin: 0 0 8px;
}
.map-video-export p {
  font-size: 14px;
  line-height: 1.5;
}
.map-export-options {
  display: grid;
  gap: 12px;
  margin: 18px 0;
}
.map-export-options label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  font-size: 14px;
}
.map-export-options select {
  max-width: 60%;
  padding: 8px;
  background: #fffbf3;
  border: 1px solid #d8d0c3;
  border-radius: 6px;
  font: inherit;
}
.map-video-export video {
  display: block;
  max-height: 400px;
  max-width: 100%;
  margin: 12px auto;
  border-radius: 8px;
}
.map-video-export progress {
  width: 100%;
  margin: 12px 0;
}
.map-story-outline {
  margin: 18px 0;
  padding: 14px 16px;
  border: 1px solid #d8d0c3;
  border-radius: 12px;
  background: #f4f1e7;
}
.map-story-outline p {
  margin: 0 0 8px;
}
.map-story-outline p:last-child {
  margin-bottom: 0;
}
.map-story-summary {
  font-weight: 600;
  color: #344e43;
}
.map-story-chapters {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 0;
  margin: 12px 0;
  list-style: none;
}
.map-story-chapters li {
  padding: 5px 9px;
  background: #fffaf0;
  border-radius: 20px;
  font-size: 12px;
  color: #445c50;
}

#map-panel {
  scroll-margin-top: calc(var(--journal-sticky-inset, 140px) + 20px);
}
:is(#world-map, #public-map-box) .map-cluster-tether {
  stroke: #59524588;
  stroke-width: 1;
  stroke-dasharray: 3 5;
  vector-effect: non-scaling-stroke;
  pointer-events: none;
  animation: map-tether-out 0.56s forwards;
}
@keyframes map-tether-out {
  to {
    opacity: 0;
  }
}

:is(#world-map, #public-map-box) .map-stage-tools.is-passport {
  display: none;
}

body:has(#map-panel:not([hidden])) .journal-toolbar .search-field {
  display: none;
}

/* Choreography and component proportions from the Map v2 handoff. */
#map-panel {
  position: relative;
  isolation: isolate;
  z-index: 0;
  container-type: inline-size;
}
:is(#world-map, #public-map-box) {
  height: clamp(440px, 54cqw, 720px);
  border-radius: 14px 14px 0 0;
  background: #eef0ea;
}
.map-view-segments {
  padding: 0;
  border: 1px solid #ddd3c5;
  background: #fffdf9;
  overflow: hidden;
}
.map-view-segments button {
  border-radius: 0;
  padding: 10px 17px;
}
.map-view-segments button + button {
  border-left: 1px solid #ddd3c5;
}
.map-view-segments [aria-pressed="true"] {
  background: #2a2622;
  color: #f7f1e8;
  box-shadow: none;
}
#map-sound[aria-pressed="true"] {
  color: #b5563b;
  border-color: #b5563b;
}
#map-replay {
  border-radius: 22px;
  background: #2a2622;
  border-color: #2a2622;
  color: #f7f1e8;
  box-shadow: 0 4px 14px #281e1433;
}
#map-replay-year {
  border-radius: 22px;
  width: 135px;
  flex: 0 0 135px;
  max-width: 135px;
}
:is(#world-map, #public-map-box) .map-stage-zoom {
  position: absolute;
  right: 20px;
  bottom: 20px;
  z-index: 6;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid #ddd3c5;
  border-radius: 10px;
  background: #fffdf9;
  box-shadow: 0 2px 10px #281e1414;
}
:is(#world-map, #public-map-box) .map-stage-zoom button {
  width: 48px;
  height: 40px;
  min-height: 40px;
  border: 0;
  border-radius: 0;
  background: transparent;
  font-size: 18px;
  padding: 0;
}
:is(#world-map, #public-map-box) .map-stage-zoom button + button {
  border-top: 1px solid #ddd3c5;
}
:is(#world-map, #public-map-box) .map-stage-zoom #map-zoom-reset {
  font-size: 11px;
  letter-spacing: 0.08em;
  font-weight: 600;
}
:is(#world-map, #public-map-box) .map-stage-zoom button:hover {
  background: #f6efe5;
}
:is(#world-map, #public-map-box)[data-mode="globe"] .map-stage-zoom,
:is(#world-map, #public-map-box)[data-mode="passport"] .map-stage-zoom,
:is(#world-map, #public-map-box).has-place-card .map-stage-zoom,
:is(#world-map, #public-map-box).has-place-card .map-recall {
  display: none;
}
:is(#world-map, #public-map-box) .map-land path.map-land-dim {
  opacity: 0.45;
}
:is(#world-map, #public-map-box) .map-city.map-pin-dim {
  opacity: 0.2;
}
:is(#world-map, #public-map-box) .map-city:hover {
  opacity: 1;
}
:is(#world-map, #public-map-box) .map-pin-visual {
  transform-origin: 0 0;
}
:is(#world-map, #public-map-box) .map-pin-photo,
:is(#world-map, #public-map-box) .map-pin-fill {
  animation: map-breathe 4.4s ease-in-out infinite;
  animation-delay: var(--breathe-delay, 0s);
  transform-origin: 0 0;
}
:is(#world-map, #public-map-box) .map-pin-ripple {
  opacity: 0;
  fill: none;
  stroke: #b5563b;
  stroke-width: 1.5;
  transform-origin: 0 0;
  pointer-events: none;
}
:is(#world-map, #public-map-box) .map-wish-heart {
  font: 21px sans-serif;
  fill: #b5563b;
  stroke: none;
}
:is(#world-map, #public-map-box) .map-wishlist-pins circle {
  stroke: #b5563b;
}
.map-recall {
  right: 84px;
  bottom: 20px;
}
.map-replay-caption strong {
  font-size: 72px;
  line-height: 1;
  animation: map-year-in 0.45s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.map-replay-caption span {
  display: block;
  margin-top: 8px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
}
:is(#world-map, #public-map-box)[data-mode="map"]:not(.is-replaying)
  .map-replay-caption
  strong {
  font-size: clamp(28px, 3cqw, 40px);
  line-height: 1.1;
}
:is(#world-map, #public-map-box):has(.map-replay-caption:not([hidden]))
  .map-hint {
  opacity: 0;
}
.map-polaroids {
  transform: none;
  gap: 0;
}
.map-polaroid {
  flex: 0 0 132px;
  margin-right: -4px;
  padding: 6px 6px 9px;
  animation: map-fan-in 0.5s cubic-bezier(0.2, 0.8, 0.2, 1) both;
  animation-delay: var(--fan-delay, 0ms);
}
.map-polaroid img {
  width: 120px;
  height: 104px;
}
.map-polaroid small {
  display: block;
  margin: 5px 2px 0;
  font-size: 9px;
  letter-spacing: 0.08em;
}
.map-polaroid em {
  font-family: Newsreader, Georgia, serif;
  margin: 7px 2px 4px;
}
.map-wish-popover {
  position: absolute;
  z-index: 11;
  width: 270px;
  max-width: calc(100% - 32px);
  left: 50%;
  top: 50%;
  transform: translate(-50%, 15px);
  background: #fffdf9;
  padding: 18px;
  border: 1px solid #e6dccd;
  border-radius: 12px;
  box-shadow: 0 12px 30px #281e1433;
}
.map-wish-popover small {
  color: #b5563b;
  font-size: 10px;
  letter-spacing: 0.14em;
}
.map-wish-popover strong {
  display: block;
  font:
    25px Newsreader,
    Georgia,
    serif;
  margin: 8px 0;
}
.map-wish-popover p {
  color: #8a8178;
  font-size: 12px;
  line-height: 1.6;
}
.map-wish-popover button + button {
  margin-left: 8px;
}
.map-distance-main {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 6px 0 16px;
}
.map-distance-globe {
  display: block;
  width: 132px;
  height: 132px;
  flex: 0 0 132px;
}
.map-distance-main .map-distance-laps {
  display: block;
  font:
    52px/1 Newsreader,
    Georgia,
    serif;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.04em;
}
.map-distance-unit {
  display: block;
  color: #5b544c;
  font-size: 13px;
  margin-top: 5px;
}
.map-journal-strip section > strong {
  display: block;
  font-size: 26px;
}
.map-journal-strip .map-first {
  display: flex;
  flex-direction: column;
  gap: 2px;
  width: 100%;
  min-height: 58px;
  margin: 0 0 8px;
  padding: 0;
}
.map-first small {
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #8a8178;
}
.map-first strong {
  font:
    22px/1.05 Newsreader,
    Georgia,
    serif;
}
.map-first span {
  font-size: 11px;
  color: #8a8178;
}
.map-first:hover {
  text-decoration: none;
  color: #b5563b;
}
.map-first:focus-visible {
  outline: 2px solid #b5563b;
  outline-offset: 3px;
}
.map-wish-row {
  padding: 6px 0;
  border-bottom: 1px solid #e6dccd;
}
.map-wish-row button:first-child {
  font:
    18px Newsreader,
    Georgia,
    serif;
}
.map-wish-row button:last-child {
  min-width: 42px;
}
.map-passport {
  padding: 22px 28px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
}
.map-passport-heading {
  margin: 0;
  font:
    14px "Public Sans",
    sans-serif;
  color: #5b544c;
  text-align: center;
}
.map-passport-heading strong {
  font:
    23px Newsreader,
    Georgia,
    serif;
  margin-right: 8px;
  color: #2a2622;
}
.map-passport-spread {
  width: min(100%, calc((clamp(440px, 54cqw, 720px) - 160px) * 1.44), 790px);
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin: 0 auto;
  box-shadow:
    0 30px 35px -12px #281e1459,
    0 9px 12px #281e1429;
  border-radius: 8px;
  animation: map-book-in 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.map-passport-spread::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: -5px -7px -10px;
  border-radius: 13px 13px 15px 15px;
  border: 1px solid #223b32;
  background:
    repeating-radial-gradient(
      ellipse at 30% 20%,
      #ffffff09 0 1px,
      transparent 1px 3px
    ),
    #30483b;
  box-shadow:
    inset 0 0 0 2px #c2a97645,
    inset 0 -3px 3px #122b2bb3;
}
.map-passport-spread::after {
  content: "";
  position: absolute;
  pointer-events: none;
  z-index: 2;
  width: 5px;
  top: 4%;
  bottom: 4%;
  left: calc(50% - 2.5px);
  background: repeating-linear-gradient(
    178deg,
    transparent 0 17px,
    #6e5d444d 18px,
    #e5d5bba6 19px 23px,
    transparent 24px 39px
  );
}
.map-passport-page {
  position: relative;
  min-height: 0;
  aspect-ratio: 0.72;
  padding: 0;
  overflow: hidden;
  background-color: #f5eedf;
  background-image:
    linear-gradient(
      90deg,
      #92784815,
      transparent 8%,
      #fffaf01f 70%,
      #6951331f 94%,
      #58472e4d 100%
    ),
    url("/data/passport-paper.svg");
  background-size: 100% 100%;
  border: 0;
  border-radius: 9px 2px 1px 9px;
  box-shadow:
    inset 1px 1px 1px #fff9,
    0 1px #ad997d,
    0 3px #efe4d0,
    0 4px #b8a68d,
    0 6px #e8ddc8;
}
.map-passport-page + section {
  border-radius: 2px 9px 9px 1px;
  background-image:
    linear-gradient(
      90deg,
      #58472e4d,
      #6951331f 6%,
      #fffaf01f 30%,
      transparent 92%,
      #92784815
    ),
    url("/data/passport-paper.svg");
  box-shadow:
    inset -1px 1px 1px #fff9,
    0 1px #ad997d,
    0 3px #efe4d0,
    0 4px #b8a68d,
    0 6px #e8ddc8;
}
.map-passport-page header {
  position: absolute;
  top: 18px;
  left: 0;
  right: 0;
  text-align: center;
  border: 0;
  padding: 0;
  font-size: 9px;
  letter-spacing: 0.25em;
  color: #82785f;
}
.map-passport-watermark {
  position: absolute;
  bottom: 10%;
  right: 8%;
  font:
    italic 76px Georgia,
    serif;
  color: transparent;
  -webkit-text-stroke: 0.65px #8d98763d;
  pointer-events: none;
}
.map-passport-page-number {
  position: absolute;
  bottom: 14px;
  left: 0;
  right: 0;
  text-align: center;
  font:
    12px Newsreader,
    Georgia,
    serif;
  color: #8a7c6a;
}
.map-stamp-grid {
  position: absolute;
  inset: 0;
  display: block;
  padding: 0;
}
.map-passport-stamp {
  position: absolute;
  width: 29%;
  aspect-ratio: 190/120;
  min-height: 0;
  padding: 0;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent;
  transform: translate(-50%, -50%) rotate(var(--tilt));
  mix-blend-mode: multiply;
  display: block;
  animation: map-stamp-in 0.42s cubic-bezier(0.2, 0.9, 0.3, 1.25) both;
  animation-delay: var(--stamp-delay, 0ms);
  transition: scale 0.2s;
}
.map-passport-stamp.stamp-0 {
  width: 26%;
  aspect-ratio: 1;
}
.map-passport-stamp svg {
  display: block;
  overflow: visible;
  opacity: var(--ink-pressure, 0.93);
}
.map-passport-stamp:hover {
  scale: 1.07;
}
.map-passport-stamp:focus-visible {
  outline: 2px solid #b5563b;
  outline-offset: 4px;
}
.map-passport-nav {
  margin: 9px 0 0;
  gap: 12px;
}
.map-milestone {
  border-radius: 6px;
  pointer-events: none;
  max-width: 80%;
}
:is(#world-map, #public-map-box) .map-replay-arrival .map-arrival-ripple {
  fill: none;
  stroke: #b5563b;
  transform-origin: 0 0;
  animation: map-arrival-ripple 1.1s ease-out forwards;
}
.map-replay-arrival text {
  animation: map-arrival-label 1.6s both;
}
@keyframes map-breathe {
  50% {
    scale: 1.05;
  }
}
@keyframes map-year-in {
  from {
    translate: 0 40%;
    opacity: 0;
  }
}
@keyframes map-fan-in {
  from {
    translate: var(--fan-from-x) var(--fan-from-y);
    scale: 0.4;
    opacity: 0;
  }
  to {
    translate: 0 0;
    scale: 1;
    opacity: 1;
  }
}
@keyframes map-book-in {
  from {
    translate: 0 16px;
    scale: 0.97;
    opacity: 0;
  }
}
@keyframes map-stamp-in {
  from {
    transform: translate(-50%, -50%) rotate(var(--tilt)) scale(1.18);
    opacity: 0;
  }
  to {
    transform: translate(-50%, -50%) rotate(var(--tilt)) scale(1);
    opacity: 1;
  }
}
@keyframes map-arrival-ripple {
  from {
    scale: 1;
    opacity: 0.9;
  }
  to {
    scale: 4;
    opacity: 0;
  }
}
@keyframes map-arrival-label {
  0% {
    opacity: 0;
  }
  20%,
  75% {
    opacity: 1;
  }
  100% {
    opacity: 0;
  }
}
@media (max-width: 760px) {
  .map-passport {
    justify-content: flex-start;
    padding: 18px 12px;
  }
  .map-passport-spread {
    width: 100%;
    max-width: 560px;
  }
  .map-passport-heading strong,
  .map-passport-heading span {
    display: block;
    margin: 3px 0;
  }
  .map-passport-page header {
    font-size: 8px;
    letter-spacing: 0.12em;
  }
  .map-passport-nav {
    gap: 8px;
  }
  .map-passport-nav button {
    font-size: 11px;
    padding: 7px;
  }
  .map-recall {
    width: auto;
    left: 12px;
    right: 76px;
    bottom: 20px;
    padding: 10px;
    gap: 8px;
  }
  .map-recall img {
    width: 44px;
    height: 55px;
  }
  :is(#world-map, #public-map-box) .map-stage-zoom {
    right: 12px;
    bottom: 20px;
  }
  :is(#world-map, #public-map-box) .map-stage-zoom button {
    width: 44px;
    height: 42px;
  }
  :is(#world-map, #public-map-box) .map-place-card {
    height: 62%;
  }
  .map-replay-caption strong {
    font-size: 44px;
  }
  .map-view-segments button {
    padding: 8px 10px;
  }
}
@media (max-width: 540px) {
  .map-passport-spread {
    grid-template-columns: 1fr;
    max-width: 330px;
  }
  .map-passport-spread::after {
    display: none;
  }
  .map-passport-page {
    min-height: 360px;
  }
  .map-passport-page,
  .map-passport-page + section {
    border-radius: 6px;
    box-shadow: inset 0 0 20px #9a866522;
  }
  .map-passport-page + section {
    margin-top: 12px;
  }
}
@media (prefers-reduced-motion: reduce) {
  #map-panel *,
  #map-panel *::before,
  #map-panel *::after {
    animation: none !important;
    transition: none !important;
  }
}

.map-replay-arrival circle {
  fill: #b5563b;
  stroke: #fff;
  stroke-width: 2;
}
.map-replay-arrival text {
  font: 13px Georgia;
  text-anchor: middle;
  fill: #39352f;
  paint-order: stroke;
  stroke: #f8f4eb;
  stroke-width: 4;
  stroke-linejoin: round;
}

.map-land path.map-land-hover {
  filter: brightness(1.16);
}
.map-passport-spread {
  flex: none;
}
:is(#world-map, #public-map-box) .map-card-close {
  z-index: 1;
  background: #fffbf3e8;
  border-radius: 50%;
}

.public-map-experience .public-map-zoom {
  position: absolute;
  left: auto;
}
.public-map-experience .public-map-fit {
  position: static;
}
.public-map-experience .public-map-legend {
  pointer-events: none;
}
.public-map-experience [data-mode="passport"] .public-map-legend,
.public-map-experience [data-mode="globe"] .public-map-legend {
  display: none;
}
.public-map-experience .map-journal-strip {
  margin-bottom: 20px;
}

.public-map-experience .public-map-owner {
  justify-content: flex-start;
}
.public-map-experience .map-journal-button:disabled#map-home {
  opacity: 1;
}

/* Browsing, replay and configuration have separate, labeled homes. */
.map-settings-menu {
  position: relative;
  margin-left: auto;
  z-index: 14;
}
.map-settings-menu > summary,
.map-legend > summary,
.map-recall summary {
  cursor: pointer;
  min-height: 44px;
  padding: 11px 12px;
  border-radius: 7px;
}
.map-settings-menu > summary {
  border: 1px solid #d8d0c3;
  background: #fffcf6;
}
.map-settings-menu[open] > summary {
  border-color: #a44932;
  background: #f2e1cf;
}
.map-settings-content {
  position: absolute;
  right: 0;
  top: calc(100% + 6px);
  display: grid;
  gap: 8px;
  padding: 12px;
  width: min(270px, 80vw);
  border: 1px solid #d8d0c3;
  border-radius: 8px;
  background: #fffcf6;
  box-shadow: 0 8px 24px #30251522;
}
.map-stage-tools {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 16px;
  padding: 12px 0;
  border-top: 1px solid #e5dccd;
}
.map-replay-year-field {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: #5c5348;
  margin: 0;
}
#map-replay-year {
  min-height: 44px;
  border-radius: 7px;
  width: auto;
  flex: 1;
}
#map-country-filter.has-active-filter {
  border-color: #a44932;
  background: #f2e1cf;
}
#map-panel
  :is(
    summary,
    select,
    .map-card-open,
    .map-card-zoom,
    .map-card-close,
    .map-card-scroll
  ):focus-visible,
.map-country-preview button:focus-visible {
  outline: 3px solid #a44932;
  outline-offset: 3px;
}
:is(#world-map, #public-map-box) .map-place-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 0;
}
.map-card-scroll {
  min-height: 0;
  flex: 1;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
  padding: 26px 22px 14px;
}
:is(#world-map, #public-map-box) .map-card-row {
  flex: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 12px 16px;
  background: #fffbf3;
  border-top: 1px solid #dfd1bf;
  box-shadow: 0 -6px 16px #30251508;
}
.map-card-row:has(> [hidden]):not(:has(> :not([hidden]))) {
  display: none;
}
#map-card-open {
  flex: 1;
  min-height: 44px;
  background: #a44932;
  color: #fffdf8;
  border-radius: 7px;
  padding: 10px 12px;
  text-align: center;
}
#map-card-zoom {
  min-height: 44px;
}
.map-memory-row em {
  -webkit-line-clamp: 2;
}
.map-memory-order,
.map-distance-source {
  display: block;
  margin-top: 12px;
  font-size: 12px;
  line-height: 1.5;
  color: #675a4b;
}
.map-legend {
  padding: 0 10px;
  border: 1px solid #dfd6c8;
  background: #fbf8f2;
  font-size: 12px;
  color: #5c5348;
}
.map-legend ul {
  margin: 0 12px 14px;
  padding-left: 18px;
  display: grid;
  gap: 6px;
}
#map-panel .map-recall {
  position: static;
  width: auto;
  margin: 10px 0;
  padding: 4px 10px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 4px 12px;
  box-shadow: none;
}
.map-recall details {
  flex: 1;
  min-width: 0;
}
.map-recall summary {
  font-size: 13px;
}
.map-recall-content {
  padding: 0 12px 12px;
}
.map-recall-content img {
  float: left;
  margin: 0 12px 8px 0;
}
#map-panel .map-recall button {
  min-height: 44px;
}
.map-country-preview {
  max-width: min(440px, calc(100vw - 32px));
}
.map-country-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.map-country-actions button {
  min-height: 44px;
}
@media (max-width: 760px) {
  .map-journal-search {
    min-width: 0;
    width: 100%;
  }
  .map-journal-tools {
    align-items: stretch;
  }
  .map-settings-menu > summary {
    font-size: 12px;
  }
  .map-view-segments button {
    min-height: 44px;
  }
  .map-stage-tools {
    gap: 8px;
  }
  :is(#world-map, #public-map-box) .map-card-thumbs img {
    height: 120px;
  }
  :is(#world-map, #public-map-box) .map-place-card h4 {
    font-size: 28px;
  }
  #map-panel .map-recall > div {
    padding-left: 12px;
  }
}
@media (max-width: 380px) {
  .map-settings-menu {
    margin-left: 0;
  }
  .map-settings-content {
    left: 0;
    right: auto;
  }
}
:is(#world-map, #public-map-box) .map-card-close {
  width: 44px;
  height: 44px;
  top: 4px;
  right: 4px;
}
:is(#world-map, #public-map-box) .map-place-card h4 {
  padding-right: 32px;
}
@media (max-width: 760px) {
  #map-panel .map-controls {
    grid-template-columns: minmax(0, 1fr) auto;
  }
  #map-panel .map-country-field {
    grid-column: auto;
    min-width: 0;
  }
  #map-panel .map-controls .button.small {
    padding: 10px 8px;
    min-height: 44px;
  }
}
.map-cluster-outline {
  display: none;
  fill: none;
  stroke: #3a3632;
  stroke-width: 1.5;
  pointer-events: none;
}
.is-cluster .map-cluster-outline {
  display: block;
}
@media (max-width: 540px) {
  #map-panel .map-recall details {
    flex-basis: 100%;
  }
}

/* Public browsing and shared map keyboard navigation. */
:is(#world-map, #public-map-box) .map-stage-zoom {
  top: 16px;
  right: 16px;
  bottom: auto;
  height: auto;
}
:is(#world-map, #public-map-box) .map-stage-zoom button {
  min-width: 44px;
  min-height: 44px;
  height: 44px;
}
.map-navigation-help {
  margin: 4px 0;
  font-size: 12px;
  color: #5b544c;
}
.map-skip-link {
  display: inline-block;
  font-size: 12px;
  padding: 8px 0;
}
.map-settings-content select {
  max-width: 100%;
  min-height: 44px;
}
:is(#world-map, #public-map-box) > svg:focus-visible {
  outline: 3px solid #74442e;
  outline-offset: -3px;
}
:is(#world-map, #public-map-box) .map-city:focus-visible {
  outline: none;
}
:is(#world-map, #public-map-box)
  .map-city:focus-visible
  :is(.map-pin-ring, .public-pin-ring) {
  stroke: #172f59;
  stroke-width: 4px;
}
:is(#world-map, #public-map-box) .map-pin-label {
  paint-order: stroke;
  stroke: #fffaf0;
  stroke-width: 3px;
}
.map-replay-progress {
  font-size: 13px;
}
:is(#world-map, #public-map-box) .map-replay-caption strong {
  font-size: clamp(20px, 3vw, 32px);
  line-height: 1.15;
}
:is(#world-map, #public-map-box) .map-replay-caption {
  max-width: calc(100% - 32px);
  background: #fffaf0ed;
  padding: 10px 14px;
  border-radius: 8px;
  pointer-events: none;
}
.replay-paused :is(.map-arrival-ripple, .map-replay-arrival text) {
  animation-play-state: paused;
}
.public-map-owner {
  padding: 18px 0 12px;
}
.public-map-owner > div:last-child {
  min-width: 0;
  flex: 1;
}
.public-map-owner h1 {
  overflow-wrap: anywhere;
}
.public-map-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin: 4px 0 8px;
}
.public-map-share {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
  min-width: 0;
}
.public-map-share input {
  max-width: 100%;
}
.public-map-share [role="status"] {
  font-size: 12px;
}
.public-map-experience .map-stage-tools {
  padding: 6px 0;
  border: 0;
}
.public-map-experience .map-journal-tools {
  margin-bottom: 6px;
}
.public-map-experience .map-navigation-help {
  max-width: 70ch;
}
.public-map-experience .public-map-legend {
  display: none;
}
.public-map-experience #public-map-box {
  margin-top: 4px;
}
.public-map-country-list {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 8px;
}
.public-map-place {
  min-height: 44px;
  padding: 8px 10px;
  border: 1px solid #ddd3c5;
  border-radius: 6px;
  text-align: left;
}
.public-map-place:focus-visible {
  outline: 3px solid #74442e;
  outline-offset: 2px;
}
.public-map-explored {
  font-size: 14px;
}
.public-map-explored b {
  font-size: inherit;
}
.public-place-panel {
  position: absolute;
  z-index: 8;
  top: 12px;
  right: 12px;
  bottom: 12px;
  width: min(340px, 42%);
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 14px;
  border: 1px solid #d8cbb8;
  border-radius: 10px;
  background: #fffaf1;
  box-shadow: 0 8px 30px #30251533;
}
.public-place-close {
  align-self: flex-end;
  min-height: 44px;
  padding: 8px 12px;
  border: 1px solid #ddd3c5;
  border-radius: 6px;
  background: #fffdf9;
}
.public-place-body {
  overflow: auto;
  min-height: 0;
  flex: 1;
  overscroll-behavior: contain;
}
.public-place-body h2 {
  font:
    26px/1.15 Newsreader,
    Georgia,
    serif;
  margin: 0 0 8px;
}
.public-place-body > p {
  margin: 0 0 12px;
  font-size: 13px;
}
.public-place-photos {
  display: grid;
  gap: 8px;
}
.public-photo-preview {
  min-width: 0;
}
.public-photo-open {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  border-radius: 6px;
  overflow: hidden;
  background: #ede5d7;
  cursor: pointer;
}
.public-photo-preview img {
  display: block;
  width: 100%;
  max-height: 220px;
  object-fit: cover;
  aspect-ratio: 4 / 3;
}
.public-photo-status {
  font-size: 13px;
  padding: 12px;
}
.public-place-panel > .button {
  flex: none;
  min-height: 44px;
}
.has-public-place .map-stage-zoom {
  visibility: hidden;
}
.public-photo-gallery {
  width: min(960px, calc(100vw - 24px));
  max-width: calc(100vw - 24px);
  max-height: calc(100dvh - 24px);
  padding: 16px;
  border: 1px solid #d8cbb8;
  border-radius: 12px;
  background: #fffaf1;
}
.public-photo-gallery::backdrop {
  background: #211a15bd;
}
.public-photo-gallery h2 {
  margin: 12px 0;
  font:
    26px/1.1 Newsreader,
    Georgia,
    serif;
}
.public-gallery-image {
  display: grid;
  place-items: center;
  min-height: 180px;
}
.public-gallery-image img {
  display: block;
  max-width: 100%;
  max-height: calc(100dvh - 230px);
  object-fit: contain;
}
.public-gallery-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}
.public-gallery-nav p {
  font-size: 13px;
}
.public-gallery-open {
  overflow: hidden;
}
:is(#world-map, #public-map-box)[data-mode="passport"] {
  height: auto;
  min-height: 0;
}
:is(#world-map, #public-map-box)[data-mode="passport"] > svg {
  position: absolute;
  inset: 0;
}
:is(#world-map, #public-map-box) .map-passport {
  position: relative;
  inset: auto;
  overflow: visible;
}
.map-passport-nav {
  flex-wrap: wrap;
}
.map-passport-heading:focus {
  outline: 2px solid #74442e;
  outline-offset: 4px;
}
@media (max-width: 640px) {
  .public-map-owner {
    flex-wrap: nowrap;
    gap: 10px;
  }
  .public-map-avatar {
    width: 40px;
    height: 40px;
  }
  .public-map-owner h1 {
    font-size: 25px;
  }
  .public-map-description {
    font-size: 14px;
    line-height: 1.3;
  }
  .public-map-stats {
    font-size: 12px;
  }
  .public-map-stats b {
    font-size: 13px;
  }
  .public-map-experience .map-stage-tools {
    gap: 6px 10px;
  }
  .map-navigation-help {
    font-size: 11px;
  }
  .public-place-panel {
    top: auto;
    left: 8px;
    right: 8px;
    bottom: 8px;
    width: auto;
    max-height: 58%;
    padding: 10px;
    gap: 6px;
  }
  .public-place-body h2 {
    font-size: 22px;
  }
  .public-place-close {
    padding: 6px 10px;
  }
  .public-place-photos {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .public-place-photos > p {
    grid-column: 1 / -1;
  }
  .public-photo-preview img {
    max-height: 110px;
  }
  .public-photo-gallery {
    padding: 12px;
  }
  .public-gallery-nav .button {
    font-size: 12px;
    padding: 10px;
  }
  .map-passport-spread {
    grid-template-columns: 1fr;
    max-width: 330px;
  }
  .map-passport-spread::after {
    display: none;
  }
  .map-passport-page {
    min-height: 380px;
    border-radius: 6px;
  }
  .map-passport-nav {
    justify-content: center;
  }
  :is(#world-map, #public-map-box) > svg,
  .map-globe {
    touch-action: pan-y pinch-zoom;
  }
}
.public-map-experience .public-map-owner {
  margin-bottom: 2px;
}
.public-map-experience .map-journal-tools {
  margin-top: 10px;
}
.public-map-experience .map-stage-tools {
  margin-left: auto;
}
.public-map-experience .map-navigation-help {
  max-width: none;
}
.map-navigation-help .map-skip-link {
  padding: 4px 6px;
}
@media (max-width: 640px) {
  .public-map-experience .map-stage-tools {
    margin-left: 0;
  }
}
.public-map-experience .public-map-share {
  width: auto;
}
