/*
 * hyd-map-metro.css
 *
 * Skin for the Places map canvas (#area-map inside .atlas-stage > .map-wrap): the framed map
 * and its desaturated tiles, the photo pins and photo stacks for saved media with their popups,
 * and the Metro layer (line and station markers, legend, key and the #map-selection card). It
 * is linked in hyd-world.html after hyd-aqua.css. Leaflet's own styles come first
 * (vendor/leaflet.css and vendor/MarkerCluster.css); later Places sheets (hyd-mac-windows.css,
 * hyd-desktop-refinement.css, hyd-map-notes.css, hyd-map-cleanup.css, hyd-pocket-places.css)
 * restyle the toolbar and frame on top of this one.
 *
 * Live: the map frame and tile tint, the zoom control, and the media markers (.media-map-pin,
 * .media-photo-stack, the .media-area-pin area folders) and .map-media-popup that
 * hyd-map-recordings.js builds.
 *
 * Dormant: Metro is switched off (hyd-search.js sets METRO_ENABLED = false, and hyd-world.js
 * hides the Metro controls, legend, key, footnote and #map-selection while it is off).
 * Turning the flag on would not be enough to revive it: hyd-world.js also needs
 * window.HydMetroMap and window.HydMetroData, and hyd-world.html loads neither
 * hyd-metro-map.js nor hyd-metro-data.js. hyd-world.html has no markup for the legend, key,
 * selection card, .map-keeps or .map-invitation. Only editorial-rejected-hyd-world.js (an
 * earlier build that hyd-world.html does not load) creates .cluster-bubble and
 * .map-marker-inner, and nothing creates .media-stack-folder, so those rules are inert. The
 * .metro-* rules style markers that hyd-metro-map.js draws only when Metro is on. Everything is
 * kept as written (checked 2026-10-06; the area folders went live on 2026-10-07).
 *
 * Properties set from script and read here: --stop-color (hyd-metro-map.js) and
 * --selection-line and --badge-line (hyd-world.js). The !important declarations (station key
 * dot, [hidden] overrides, map pin thumbnails) are explained where they occur.
 *
 * Order: shared canvas, Metro legend, markers, key and selection card, responsive overrides
 * (1000 and 620 px), reduced motion, marker and cluster bubbles, then the live media pins,
 * stacks and popups.
 */

/* Areas and Metro now share one geographic canvas. */

/* --- Heading and invitation ---
   Spacing under the Places heading and the .map-invitation blurb (no markup for the blurb in
   hyd-world.html). */
#places .places-heading {
  padding-bottom: 8px;
}

.map-invitation {
  display: flex;
  align-items: center;
  gap: 9px;
  color: #c2d4cf;
  font: 11px Tahoma;
}

.map-invitation svg {
  width: 29px;
  height: 34px;
}

/* --- Metro legend (.atlas-legend) ---
   Line filter buttons (blue, red, green) and legend text. Dormant: Metro is off and its
   scripts are not loaded (see the header). */
.atlas-legend {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 30px 17px;
  flex-wrap: wrap;
  font: 11px Tahoma;
  color: #bdcec8;
}

.atlas-legend > span {
  margin-right: 8px;
  color: #e8eddb;
}

.atlas-legend button {
  display: flex;
  gap: 7px;
  align-items: center;
  padding: 6px 11px;
  border: 1px solid #6f8b84;
  border-radius: 12px;
  background: linear-gradient(#2c4447, #132b32);
  color: #e2ece3;
  font: 11px Tahoma;
  box-shadow: inset 0 1px #c6dfcc22;
}

.atlas-legend button[aria-pressed='true'] {
  background: linear-gradient(#dce7db, #afc4b6);
  color: #183b32;
  border-color: #e0eddf;
}

.atlas-legend i {
  height: 4px;
  width: 19px;
  background: #3876f0;
  border-radius: 5px;
  box-shadow: 0 0 0 1px #dae4e830;
}

.atlas-legend [data-map-line='red'] i {
  background: #df4b61;
}

.atlas-legend [data-map-line='green'] i {
  background: #21af7b;
}

.atlas-legend small {
  font: 10px Tahoma;
  color: #a5bdb6;
  margin-left: auto;
}

/* Map toolbar spacing. The toolbar itself is restyled by later Places sheets
   (hyd-mac-windows.css, hyd-desktop-refinement.css). */
.map-tools {
  padding-block: 10px 12px;
  gap: 10px;
}

.map-tools #map-density {
  font-size: 10px;
  padding: 8px;
}

.map-tools .map-status {
  font: 10px Tahoma;
}

/* --- Map frame and tiles ---
   .atlas-stage .map-wrap is the framed 550 px canvas. The tile pane's own filter is cleared and
   the tile layer is desaturated (saturate 0.35, contrast 0.96) so pins stand out; the zoom
   control gets a muted green skin. */
.atlas-stage {
  position: relative;
}

.atlas-stage .map-wrap {
  height: 550px;
  border: 1px solid #a4bcb1;
  border-radius: 9px;
  box-shadow: 0 6px 20px #0009;
  margin: 0 30px;
  background: #dde4db;
}

.atlas-stage .map-wrap:after,
.atlas-stage .map-compass {
  display: none;
}

#area-map {
  background: #d6e1d8;
}

#area-map .leaflet-tile-pane {
  filter: none;
}

#area-map .leaflet-tile-pane > .leaflet-layer {
  filter: saturate(0.35) contrast(0.96);
}

#area-map .leaflet-control-zoom {
  border: 1px solid #71877d;
  box-shadow: 0 3px 7px #203c3550;
  border-radius: 7px;
  overflow: hidden;
}

#area-map .leaflet-control-zoom a {
  background: linear-gradient(#f8f9f2, #c1cfc3);
  color: #284134;
  border-color: #91a898;
}

/* --- Metro lines and stations ---
   Markers and tooltips drawn by hyd-metro-map.js when Metro is on. --stop-color is set inline
   on each station marker, and hyd-metro-map.js toggles .metro-overview on the map container
   while the zoom is below 13. */
.metro-line-hit {
  cursor: pointer;
}

.metro-line-hit:focus-visible {
  stroke-opacity: 0.28;
  outline: none;
}

.metro-station-marker {
  display: grid;
  place-items: center;
  cursor: pointer;
  background: transparent;
  border: 0;
}

.metro-station-marker > span {
  display: block;
  width: 10px;
  height: 10px;
  border: 2px solid var(--stop-color);
  background: #fbfcf4;
  border-radius: 50%;
  box-shadow: 0 0 0 1px #233a4860;
  transition:
    scale 0.2s,
    box-shadow 0.2s;
}

.metro-station-marker.interchange > span {
  width: 14px;
  height: 14px;
  border: 3px double #263d47;
  background: #fffdf0;
}

.metro-station-marker:hover > span,
.metro-station-marker:focus-visible > span {
  scale: 1.5;
}

.metro-station-marker:focus-visible {
  outline: 2px dotted #16384a;
  border-radius: 50%;
}

.metro-station-marker.selected > span {
  width: 15px;
  height: 15px;
  background: var(--stop-color);
  border: 3px solid #fff;
  box-shadow:
    0 0 0 2px var(--stop-color),0 0 0 7px #fff9;
}

.metro-station-marker.muted:not(:hover):not(:focus-visible) {
  opacity: 0.45;
}

.metro-station-label.leaflet-tooltip {
  background: #eff5eccf;
  border: 1px solid #718a7e;
  color: #16362a;
  font: 10px/1.3 Tahoma;
  padding: 3px 6px;
  border-radius: 4px;
  box-shadow: 0 2px 4px #183b3520;
}

.metro-station-label:before {
  display: none;
}

.metro-tip {
  font: 11px Tahoma;
  background: #172e37;
  color: #edf4e9;
  border: 1px solid #a7bfb2;
  box-shadow: 0 3px 8px #0006;
}

.metro-overview .map-marker-inner {
  transform: scale(0.76);
  transform-origin: 50% 80%;
}

.metro-overview .map-marker-inner:hover {
  transform: scale(0.9);
}

/* --- Metro key and selection card ---
   The key in the map corner, the station key dot and the #map-selection card that opens on a
   station or line. --selection-line and --badge-line are set from hyd-world.js. */
.atlas-stage .map-key {
  z-index: 650;
  background: #f2f4e6ec;
  border: 1px solid #738d7e;
  box-shadow: 0 2px 5px #10251d33;
  padding: 7px 10px;
  border-radius: 5px;
  left: 12px;
  bottom: 26px;
  color: #284736;
  font: 10px Tahoma;
  display: flex;
  align-items: center;
  gap: 6px;
}

/* !important: hyd-world.css paints any i inside .map-key as a pink dot (.map-key i has higher
   specificity than this class), so the station dot needs !important to keep its blue ring and
   white fill. No HTML or script uses .station-key (checked 2026-10-06). */
.station-key {
  display: inline-block;
  width: 10px;
  height: 10px;
  border: 2px solid #3876f0 !important;
  border-radius: 50%;
  background: #fff !important;
}

.map-key .interchange-key {
  color: #273d45;
  font-size: 17px;
  margin-left: 6px;
}

#map-selection {
  position: absolute;
  z-index: 800;
  top: 16px;
  right: 46px;
  width: 268px;
  padding: 3px;
  background: #c8d0c9;
  border: 1px solid #e2ebe1;
  border-right-color: #697c70;
  border-bottom-color: #617064;
  border-radius: 8px;
  box-shadow: 0 8px 20px #11241c66;
  text-align: left;
}

/* !important: an author display value (.map-play is flex, #map-sample-note is block) beats the
   browser's built-in [hidden] rule, so hidden parts of the card need an explicit display: none
   that nothing can override. #map-selection and #map-empty are listed for the same reason. */
#map-selection[hidden],
#map-play[hidden],
#map-empty[hidden],
#map-sample-note[hidden] {
  display: none !important;
}

.map-selection-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 4px 7px;
  background: repeating-linear-gradient(0deg, #c1cac2 0 1px, #dee4d8 1px 3px);
  border-radius: 5px 5px 0 0;
  color: #2b4436;
  font: 10px Tahoma;
  text-shadow: 0 1px #f8ffed;
}

.map-selection-bar > button {
  width: 18px;
  height: 18px;
  border: 1px solid #85594e;
  background: radial-gradient(circle at 45% 25%, #ffe8d0, #ce7366);
  border-radius: 50%;
  color: #54352c;
  font: 14px Arial;
  padding: 0;
}

.map-selection-body {
  padding: 15px 13px 12px;
  background: #122b33;
  border-top: 3px solid var(--selection-line);
  border-radius: 0 0 4px 4px;
}

.map-selection-heading {
  display: flex;
  align-items: center;
  gap: 11px;
}

.map-selection-heading svg {
  width: 40px;
  height: 45px;
  flex: none;
  filter: drop-shadow(0 3px #07151c);
}

#map-selection-title {
  font: italic 24px/1.1 Georgia;
  color: #e4ede1;
  letter-spacing: -0.6px;
  margin: 0;
}

#map-selection-lines {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
  margin: 12px 0;
}

#map-selection-lines button {
  background: #173c47;
  color: #e9f1e7;
  border: 1px solid #719994;
  border-left: 4px solid var(--badge-line);
  padding: 5px 8px;
  font: 10px Tahoma;
  border-radius: 4px;
}

#map-selection-lines button[aria-pressed='true'] {
  background: #d8e5db;
  color: #1e3c32;
}

#map-selection-lines > span {
  display: block;
  width: 100%;
  font: 10px Tahoma;
  color: #b9cfc4;
}

#map-selection-description {
  font: 11px/1.5 Tahoma;
  color: #bdd1c7;
  margin: 0 0 13px;
}

.map-play {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  background: linear-gradient(#f2e3c2, #bdac87);
  border: 1px solid #ead5ad;
  border-right-color: #9e956e;
  border-bottom-color: #8c8666;
  border-radius: 6px;
  padding: 10px;
  color: #273d31;
}

.map-play > span {
  font: 16px Arial;
}

.map-play b {
  font: 12px Tahoma;
}

#map-sample-note {
  display: block;
  font: 9px Tahoma;
  color: #a8bfb3;
  margin: 8px 0 3px;
}

#map-empty {
  font: 12px Tahoma;
  color: #e3cfb4;
  margin: 12px 0 18px;
}

.map-keeps {
  display: flex;
  gap: 10px;
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid #37584e;
}

.map-keeps button {
  background: none;
  border: 0;
  padding: 0;
  font: 10px Tahoma;
  color: #c3d8c9;
}

.map-keeps button:hover {
  color: #fff4d0;
  text-decoration: underline;
}

.map-fallback {
  padding: 100px 35px;
  font: 16px Tahoma;
  color: #173c31;
}

.map-footnote a {
  color: #b5d4cc;
}

.area-directory-head {
  margin-top: 24px;
}

/* --- Up to 1000 px wide ---
   The selection card moves under the map and becomes a two-column grid; the map shortens to 465
   px. */
@media (max-width: 1000px) {
  #map-selection {
    position: relative;
    top: auto;
    right: auto;
    width: auto;
    margin: 17px 30px 0;
  }

  .map-selection-body {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px 20px;
    align-items: center;
    padding: 14px 18px;
  }

  .map-selection-heading {
    grid-column: 1;
    grid-row: 1 / span 2;
  }

  .map-selection-heading svg {
    width: 45px;
    height: 52px;
  }

  #map-selection-lines {
    grid-column: 2;
    margin: 0;
  }

  #map-selection-description {
    grid-column: 1;
    grid-row: 3;
    margin: 0;
  }

  .map-play,
  #map-empty {
    grid-column: 2;
    grid-row: 2 / span 2;
    margin: 0;
  }

  #map-sample-note {
    grid-column: 2;
    margin: 0;
  }

  .map-keeps {
    grid-column: 1;
    grid-row: 4;
    margin: 0;
    padding: 0;
    border: 0;
  }

  .atlas-stage .map-wrap {
    height: 465px;
  }

  .map-invitation {
    max-width: 190px;
    text-align: right;
    font-size: 10px;
  }

  .atlas-legend {
    gap: 8px;
  }

  .atlas-legend small {
    margin-left: 0;
  }
}

/* --- Up to 620 px wide ---
   Smaller type and tighter spacing; the map shortens to 440 px and gets 12 px side margins. */
@media (max-width: 620px) {
  #places .places-heading {
    padding-bottom: 3px;
  }

  .map-invitation {
    font-size: 9px;
    max-width: 155px;
  }

  .map-invitation svg {
    width: 23px;
    height: 28px;
    flex: none;
  }

  .map-tools {
    padding: 12px 15px 7px;
  }

  .map-tools label {
    width: 100%;
    max-width: none;
    flex: 1 1 100%;
  }

  .map-tools #map-density {
    font-size: 9px;
  }

  .map-tools .map-status {
    margin: 0;
    font-size: 9px;
  }

  .atlas-legend {
    padding: 0 15px 13px;
    gap: 7px;
  }

  .atlas-legend > span {
    font-size: 10px;
    margin-right: 1px;
  }

  .atlas-legend button {
    font-size: 10px;
    padding: 6px 8px;
    gap: 5px;
  }

  .atlas-legend i {
    width: 13px;
  }

  .atlas-legend small {
    width: 100%;
    padding-top: 2px;
    font-size: 9px;
  }

  .atlas-stage .map-wrap {
    height: 440px;
    margin: 0 12px;
  }

  .atlas-stage .map-key {
    font-size: 9px;
    left: 7px;
    padding: 5px 7px;
  }

  .metro-station-label.leaflet-tooltip {
    font-size: 9px;
  }

  .metro-overview .map-marker-inner {
    transform: scale(0.62);
  }

  #map-selection {
    margin: 14px 12px 0;
  }

  .map-selection-body {
    padding: 13px;
    gap: 9px 12px;
    grid-template-columns: 1fr 1.05fr;
  }

  #map-selection-title {
    font-size: 21px;
  }

  .map-selection-heading {
    gap: 8px;
  }

  .map-selection-heading svg {
    width: 29px;
    height: 38px;
  }

  #map-selection-description {
    font-size: 10px;
  }

  .map-play {
    padding: 10px 8px;
    gap: 7px;
  }

  .map-play b {
    font-size: 11px;
  }

  .map-keeps {
    gap: 8px;
  }

  .map-keeps button {
    font-size: 9px;
  }

  #map-selection-lines {
    gap: 5px;
  }

  #map-selection-lines button {
    font-size: 9px;
    padding: 5px 6px;
  }

  #map-sample-note {
    font-size: 8px;
  }

  .map-footnote {
    padding-inline: 15px;
  }
}

/* --- Reduced motion ---
   Station marker transitions (scale and shadow) are switched off by the OS setting and by the
   page's motion switch (.motion-off on body). */
@media (prefers-reduced-motion: reduce) {
  .metro-station-marker > span {
    transition: none;
  }
}

.motion-off .metro-station-marker > span {
  transition: none;
}

/* --- Marker and cluster bubbles ---
   Older area-marker bubbles (.map-marker-inner) and cluster counts (.cluster-bubble). Only
   editorial-rejected-hyd-world.js, which is not loaded, creates these classes. */
.map-wrap .map-marker-inner b {
  font: 11px/1.2 Tahoma;
  color: #17362c;
  background: #f1f1db;
  border: 1px solid #687c65;
  border-radius: 3px;
  padding: 4px 6px;
  text-shadow: none;
}

.map-wrap .map-marker-inner > span {
  color: #273841;
  text-shadow: none;
}

/* !important: fixes the thumbnail at 47 x 32 px regardless of the 53 x 35 px set by
   hyd-world.css (.map-marker-inner img) or any later image sizing. */
.map-wrap .map-marker-inner > img {
  width: 47px !important;
  height: 32px !important;
  max-width: 47px;
  min-width: 0;
  object-fit: cover;
}

.map-wrap .map-marker-inner {
  filter: drop-shadow(1px 2px 1px #233a3a55);
}

/* Second .metro-line-hit:focus-visible rule: where both set stroke-opacity, this later 0.2 wins
   over the 0.28 above. */
.metro-line-hit:focus-visible {
  stroke-width: 11;
  stroke-opacity: 0.2;
}

.map-wrap .cluster-bubble {
  background: linear-gradient(#f4e1ae, #c4ac73);
  border: 2px solid #f5f5df;
  color: #274132;
  box-shadow:
    0 0 0 1px #647d67,
    0 3px 6px #23392a44;
  font: bold 15px Tahoma;
}

.map-wrap .cluster-bubble:after {
  content: 'areas';
  position: absolute;
  top: auto;
  bottom: -9px;
  right: auto;
  font: 8px Tahoma;
  background: #e8efdb;
  color: #243e2e;
  border: 1px solid #798c74;
  border-radius: 3px;
  padding: 1px 4px;
  animation: none;
  text-shadow: none;
}

/* --- Media pins, stacks and popups (live) ---
   Built by hyd-map-recordings.js: .media-map-pin is a single photo pin, .media-photo-stack is
   the cluster icon (up to three fanned photos plus a play or photo glyph), and .map-media-popup
   is the popup shown for a pin. */

/* Each thumbnail is saved media; folders explicitly mark area-only collections. */
#area-map .media-map-marker {
  background: none;
  border: 0;
}

#area-map .media-map-pin {
  position: relative;
  width: 50px;
  height: 39px;
  padding: 3px;
  background: linear-gradient(#fff, #c9bed6);
  border: 1px solid #51485d;
  border-radius: 5px;
  box-shadow: 0 2px 5px #1b102d65;
}

#area-map .media-map-pin:after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 20px;
  border: 5px solid transparent;
  border-top-color: #51485d;
  border-bottom: 0;
}

#area-map .media-map-pin img {
  width: 42px;
  height: 29px;
  object-fit: cover;
  border-radius: 2px;
}

#area-map .media-map-pin > span {
  position: absolute;
  right: 3px;
  bottom: 3px;
  display: grid;
  place-items: center;
  width: 16px;
  height: 15px;
  border-radius: 3px;
  background: #21152bd9;
  color: #fff;
  font:
    10px Arial,
    sans-serif;
}

/* Folder-with-photos pin for area collections: memories with no exact spot of their own, at the
   area's reference point (hyd-map-recordings.js createCollectionMarker, live since 7 Oct 2026). */
#area-map .media-area-marker {
  background: none;
  border: 0;
}

#area-map .media-area-marker:focus-visible {
  outline: 3px solid #7555a6;
  outline-offset: 3px;
  border-radius: 5px;
}

#area-map .media-area-pin {
  position: relative;
  width: 50px;
  height: 43px;
  filter: drop-shadow(0 2px 2px #21142d50);
}

#area-map .media-area-pin:before {
  content: '';
  position: absolute;
  left: 2px;
  top: 10px;
  width: 44px;
  height: 28px;
  border: 1px solid #8d7148;
  border-radius: 3px;
  background: linear-gradient(#eedcb1, #c8a674);
  box-shadow: inset 0 1px #fff8;
}

#area-map .media-area-pin:after {
  content: '';
  position: absolute;
  left: 4px;
  top: 6px;
  width: 19px;
  height: 7px;
  border: 1px solid #997948;
  border-bottom: 0;
  border-radius: 3px 4px 0 0;
  background: #e4c998;
}

#area-map .media-area-pin .media-folder-photo {
  position: absolute;
  left: 10px;
  top: 3px;
  z-index: 1;
  width: 33px;
  height: 27px;
  border: 2px solid #faf8f3;
  border-radius: 2px;
  object-fit: cover;
  transform: rotate(-7deg);
  box-shadow: 0 1px 2px #35241965;
}

#area-map .media-area-pin .media-folder-front {
  position: absolute;
  left: 1px;
  right: 1px;
  bottom: 3px;
  z-index: 2;
  height: 16px;
  border: 1px solid #987848;
  border-radius: 2px 2px 4px 4px;
  background: linear-gradient(#f9e7bc, #dcc18d 45%, #caab75 48%, #e5cc9b);
  box-shadow: inset 0 1px #fff9;
}

#area-map .media-map-marker:focus-visible {
  outline: 3px solid #7555a6;
  outline-offset: 3px;
  border-radius: 5px;
}

/* Photo stack: the fan of photos, hover spread, glyph badge and focus ring. */
#area-map .media-photo-stack {
  border: 0;
  background: none;
  box-shadow: none;
}

#area-map .media-stack-art {
  position: relative;
  display: block;
  width: 64px;
  height: 54px;
}

#area-map .media-stack-photo {
  position: absolute;
  left: 8px;
  top: 10px;
  width: 48px;
  height: 36px;
  padding: 3px;
  border: 1px solid #9a939e;
  border-radius: 3px;
  background: linear-gradient(#fff, #ece8ef);
  box-shadow:
    inset 0 1px #fff,
    0 2px 3px #27142f65;
  transform-origin: 50% 80%;
  transition: transform 0.15s ease;
}

#area-map .media-stack-photo:nth-child(1) {
  transform: translate(-5px, -2px) rotate(-13deg);
}

#area-map .media-stack-photo:nth-child(2) {
  transform: translate(5px, -5px) rotate(9deg);
}

#area-map .media-stack-photo:nth-child(3) {
  transform: translate(0, 3px) rotate(-2deg);
}

#area-map .media-stack-photo img {
  width: 40px;
  height: 28px;
  border-radius: 1px;
  object-fit: cover;
}

#area-map .media-stack-glyph {
  position: absolute;
  right: 1px;
  bottom: 0;
  z-index: 4;
  display: grid;
  place-items: center;
  width: 19px;
  height: 18px;
  padding-left: 1px;
  border: 1px solid #68616e;
  border-radius: 50%;
  background: linear-gradient(#fff, #e7e2ec 46%, #c7bdcf 50%, #ebe4f2);
  color: #493557;
  box-shadow:
    inset 0 1px #fff,
    0 1px 2px #2a173857;
  font:
    9px/1 Arial,
    sans-serif;
}

/* Folder badge for area-only collections. No script adds .media-stack-folder (checked
   2026-10-06). */
#area-map .media-stack-folder {
  right: 0;
  bottom: 1px;
  width: 20px;
  height: 15px;
  padding: 0;
  border-color: #987748;
  border-radius: 2px;
  background: linear-gradient(#fae9bd, #d3b176);
}

#area-map .media-stack-folder:before {
  content: '';
  position: absolute;
  left: 1px;
  top: -5px;
  width: 9px;
  height: 4px;
  border: 1px solid #987748;
  border-bottom: 0;
  border-radius: 2px 3px 0 0;
  background: #f0d69f;
}

#area-map .media-photo-stack:focus-visible {
  outline: 3px solid #7555a6;
  outline-offset: 3px;
  border-radius: 7px;
}

#area-map .media-photo-stack:hover .media-stack-photo:nth-child(1) {
  transform: translate(-7px, -3px) rotate(-16deg);
}

#area-map .media-photo-stack:hover .media-stack-photo:nth-child(2) {
  transform: translate(7px, -6px) rotate(12deg);
}

/* Photo stack transitions are off under the OS reduced-motion setting. */
@media (prefers-reduced-motion: reduce) {
  #area-map .media-stack-photo {
    transition: none;
  }
}

/* Popup content: title, preview image, text and the open button. */
#area-map .map-media-popup {
  font:
    12px/1.45 Tahoma,
    sans-serif;
  color: #36263f;
}

#area-map .map-media-popup > b {
  display: block;
  margin-bottom: 8px;
  font:
    600 14px/1.3 Tahoma,
    sans-serif;
}

#area-map .map-media-popup > img {
  width: 100%;
  height: 112px;
  object-fit: cover;
  border-radius: 4px;
}

#area-map .map-media-popup > p {
  margin: 8px 0;
  font:
    10px/1.45 Tahoma,
    sans-serif;
}

#area-map .map-media-popup .map-media-open {
  width: 100%;
  margin-top: 6px;
  padding: 8px 10px;
  border: 1px solid #765d86;
  border-radius: 5px;
  background: linear-gradient(#e8d4f4, #b393c4);
  color: #34243f;
  font:
    11px/1.4 Tahoma,
    sans-serif;
  text-align: left;
  white-space: normal;
}

#area-map .map-media-popup .map-media-open:hover {
  background: #ecddf5;
}

#places .map-tools .map-status {
  max-width: none;
}
