.leaflet-marker-icon.restaurant-map-marker {
  z-index: var(--marker-stack, 1) !important;
}
.restaurant-map-marker:focus-visible {
  z-index: 2147483647 !important;
}
.restaurant-map-marker .rating-marker {
  width: var(--marker-size, 40px);
  height: var(--marker-size, 40px);
  left: calc(50px - var(--marker-size, 40px) / 2);
  top: calc(58px - var(--marker-size, 40px) / 2);
  font-size: var(--marker-font, 16px);
  transition:
    width 220ms ease,
    height 220ms ease,
    left 220ms ease,
    top 220ms ease,
    padding 220ms ease,
    font-size 220ms ease,
    background-color 220ms ease,
    color 220ms ease,
    box-shadow 220ms ease;
}
.restaurant-map-marker .rating-marker:not(.wanted-marker) {
  padding: 0 0 calc(var(--marker-size, 40px) * 0.09);
}
.restaurant-map-marker .wanted-marker {
  padding: 0;
  border-style: solid;
}
.wanted-marker svg {
  width: var(--marker-heart, 22px);
  height: var(--marker-heart, 22px);
  display: block;
}
.restaurant-map-marker.is-selected .rating-marker {
  color: var(--wine);
  background: var(--paper);
  border-color: var(--wine);
  box-shadow:
    0 0 0 3px var(--paper),
    0 0 0 5px var(--wine),
    0 3px 12px #34202840;
}
.restaurant-map-marker.is-selected .wanted-marker {
  background: var(--wine);
  color: var(--paper);
}
.restaurant-marker-label {
  position: absolute;
  top: 45px;
  left: var(--marker-label-left, 79px);
  max-width: 174px;
  height: 26px;
  padding: 3px 7px;
  box-sizing: border-box;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  background: #fcf8f0f0;
  color: #4d3735;
  border: 1px solid #8e78652b;
  border-radius: 4px;
  font: 500 12px/18px var(--sans);
  box-shadow: 0 1px 4px #35251f12;
  visibility: hidden;
  pointer-events: none;
}
.restaurant-marker-label.is-visible {
  visibility: visible;
  pointer-events: auto;
}
.is-selected .restaurant-marker-label {
  color: var(--wine);
  font-weight: 600;
  border-color: #74273966;
}
.marker-value {
  display: flex;
  align-items: center;
  justify-content: center;
}
.restaurant-map-marker.is-reduced .rating-marker {
  width: 18px;
  height: 18px;
  min-width: 0;
  min-height: 0;
  left: 41px;
  top: 49px;
  padding: 0;
  border: 2px solid var(--paper);
  background: var(--wine);
  box-shadow: 0 1px 4px #34202840;
}
.is-reduced .rating-marker::after {
  content: "";
  position: absolute;
  inset: -7px;
  border-radius: 50%;
}
.is-reduced .marker-value,
.is-reduced .marker-laurel,
.is-reduced .restaurant-marker-label {
  visibility: hidden;
  pointer-events: none;
}
@media (prefers-reduced-motion: reduce) {
  .restaurant-map-marker .rating-marker {
    transition: none;
  }
}
.map-locate {
  position: absolute;
  z-index: 800;
  right: 14px;
  bottom: 32px;
  width: 44px;
  height: 44px;
  min-height: 44px;
  padding: 10px;
  display: grid;
  place-items: center;
  border: 1px solid #9b81644d;
  border-radius: 4px;
  background: var(--paper);
  color: var(--wine);
  box-shadow: 0 2px 8px #34202820;
  touch-action: manipulation;
}
.map-locate svg {
  width: 22px;
  height: 22px;
}
.map-locate.has-location {
  color: #316a83;
}
.map-locate:focus-visible {
  outline: 2px solid var(--wine);
  outline-offset: 3px;
}
.map-locate[aria-busy="true"] {
  opacity: 0.65;
}
.user-location-marker {
  background: none;
  border: none;
  pointer-events: none;
  display: grid;
  place-items: center;
}
.location-dot {
  width: 16px;
  height: 16px;
  box-sizing: border-box;
  border-radius: 50%;
  background: #316a83;
  border: 3px solid #fffaf1;
  box-shadow:
    0 0 0 1px #316a83,
    0 1px 7px #24455650;
}
.masthead .membership-link[hidden] {
  display: none;
}
#atlas #map-panel {
  container: restaurant-map / inline-size;
}
#atlas #map-panel .map-fit {
  left: auto;
  right: 12px;
  top: 12px;
  z-index: 800;
  min-width: 44px;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 10px 12px;
}
.map-fit svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}
#atlas #map .leaflet-top .leaflet-control-zoom {
  margin: 12px 0 0 12px !important;
}
@container restaurant-map (max-width: 260px) {
  #atlas #map-panel .map-fit {
    width: 44px;
    padding: 10px;
  }
  .map-fit span {
    display: none;
  }
}
@container restaurant-map (max-width: 115px) {
  #atlas #map-panel .map-fit {
    left: 12px;
    right: auto;
    top: 112px;
  }
}
