.wp-block-rsr-landmarks-map,
.rsr-landmarks-map {
  --rsr-landmarks-bg: #201d1d;
  --rsr-landmarks-panel: #2a2727;
  --rsr-landmarks-panel-border: rgba(255, 255, 255, 0.1);
  --rsr-landmarks-text: #f2f2f2;
  --rsr-landmarks-muted: rgba(242, 242, 242, 0.62);
  --rsr-landmarks-accent: var(--wp--preset--color--red, #f6421e);
  --rsr-landmarks-marker: var(--wp--preset--color--red, #f6421e);
  --rsr-landmarks-marker-active: var(--wp--preset--color--deep-red, #d10907);
  --rsr-landmarks-info-width: min(30rem, calc(100% - 2rem));
  --rsr-landmarks-ease: cubic-bezier(0.625, 0.05, 0, 1);
  color: var(--rsr-landmarks-text);
  position: relative;
  width: 100%;
}

.rsr-landmarks-map__wrap {
  background: var(--rsr-landmarks-bg);
  border-radius: 0;
  height: 100vh;
  height: 100svh;
  max-height: 100vh;
  max-height: 100svh;
  overflow: clip;
  position: relative;
  width: 100%;
}

.rsr-landmarks-map__map {
  background: var(--rsr-landmarks-bg);
  height: 100%;
  inset: 0;
  position: absolute;
  width: 100%;
  z-index: 0;
}

.rsr-landmarks-map__states {
  align-items: center;
  background: var(--rsr-landmarks-panel);
  border: 1px solid var(--rsr-landmarks-panel-border);
  border-radius: 999px;
  box-shadow: 0 0.35rem 1.5rem rgba(0, 0, 0, 0.18);
  color: var(--rsr-landmarks-text);
  display: flex;
  flex-wrap: nowrap;
  gap: 0.4rem;
  left: 1rem;
  max-width: calc(100% - var(--rsr-landmarks-info-width) - 3rem);
  min-width: 0;
  padding: 0.25rem;
  position: absolute;
  top: 1rem;
  z-index: 12;
}

.rsr-landmarks-map__states-label {
  color: var(--rsr-landmarks-muted);
  flex: 0 0 auto;
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1;
  padding: 0.45rem 0.55rem;
  white-space: nowrap;
}

.rsr-landmarks-map__states-scroll {
  display: flex;
  flex: 1 1 auto;
  flex-wrap: nowrap;
  gap: 0.2rem;
  min-width: 0;
  overflow: auto hidden;
  padding-inline: 0.2rem;
  scrollbar-width: none;
}

.rsr-landmarks-map__states-scroll::-webkit-scrollbar {
  display: none;
}

.rsr-landmarks-map__state-button {
  align-items: center;
  appearance: none;
  background: transparent;
  border: 0;
  border-radius: 999px;
  color: var(--rsr-landmarks-muted);
  cursor: pointer;
  display: inline-flex;
  flex: 0 0 auto;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 700;
  gap: 0.35rem;
  letter-spacing: 0;
  line-height: 1;
  min-height: 2rem;
  padding: 0.45rem 0.65rem;
  text-transform: uppercase;
  transition: background-color 180ms ease, color 180ms ease;
}

.rsr-landmarks-map__state-button:hover,
.rsr-landmarks-map__state-button:focus-visible,
.rsr-landmarks-map__state-button[data-active="true"] {
  background: rgba(255, 255, 255, 0.08);
  color: var(--rsr-landmarks-text);
}

.rsr-landmarks-map__state-button:focus-visible {
  outline: 2px solid var(--rsr-landmarks-accent);
  outline-offset: 2px;
}

.rsr-landmarks-map__states[data-rsr-states-overflow="true"] {
  align-items: flex-start;
  border-radius: 1rem;
  flex-direction: column;
  padding: 0.65rem 0.75rem 0.75rem;
}

.rsr-landmarks-map__states[data-rsr-states-overflow="true"] .rsr-landmarks-map__states-label {
  padding: 0 0.35rem;
}

.rsr-landmarks-map__states[data-rsr-states-overflow="true"] .rsr-landmarks-map__states-scroll {
  flex: 0 1 auto;
  mask-image: linear-gradient(90deg, transparent 0, #000 1.1rem, #000 calc(100% - 1.1rem), transparent 100%);
  width: 100%;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 1.1rem, #000 calc(100% - 1.1rem), transparent 100%);
}

.rsr-landmarks-map__state-count {
  align-items: center;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  color: inherit;
  display: inline-flex;
  font-size: 0.68rem;
  height: 1.15rem;
  justify-content: center;
  min-width: 1.15rem;
  padding-inline: 0.28rem;
}

.rsr-landmarks-map__info {
  background: var(--rsr-landmarks-panel);
  border: 1px solid var(--rsr-landmarks-panel-border);
  border-radius: 1rem;
  bottom: 1rem;
  box-shadow: 0 0 1rem rgba(0, 0, 0, 0.18);
  color: var(--rsr-landmarks-text);
  overflow: hidden;
  position: absolute;
  right: 1rem;
  top: 1rem;
  transition: opacity 650ms var(--rsr-landmarks-ease), transform 650ms var(--rsr-landmarks-ease), visibility 650ms var(--rsr-landmarks-ease);
  width: var(--rsr-landmarks-info-width);
  z-index: 10;
}

.rsr-landmarks-map[data-collapsed="true"] .rsr-landmarks-map__info {
  opacity: 0;
  transform: translateX(4rem);
  visibility: hidden;
}

.rsr-landmarks-map__collection {
  height: 100%;
  width: 100%;
}

.rsr-landmarks-map__list {
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  height: 100%;
  inset: 0;
  list-style: none;
  margin: 0;
  overflow: hidden auto;
  padding: 4.75rem 1rem 4rem;
  position: absolute;
  scroll-behavior: smooth;
  scrollbar-color: rgba(255, 255, 255, 0.28) transparent;
  width: 100%;
}

.rsr-landmarks-map__item {
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid transparent;
  border-radius: 0.5rem;
  color: inherit;
  cursor: pointer;
  display: flex;
  flex: 0 0 auto;
  flex-direction: column;
  gap: 0.65rem;
  outline: 0;
  padding: 1rem;
  transition: background-color 180ms ease, border-color 180ms ease, box-shadow 180ms ease, opacity 180ms ease;
}

.rsr-landmarks-map__item[data-rsr-state-visible="false"] {
  display: none;
}

.rsr-landmarks-map__item:focus-visible {
  outline: 2px solid var(--rsr-landmarks-accent);
  outline-offset: 2px;
}

.rsr-landmarks-map__item[data-active="false"] {
  opacity: 0.74;
}

.rsr-landmarks-map__item[data-active="true"] {
  background: rgba(246, 66, 30, 0.16);
  border-color: rgba(246, 66, 30, 0.82);
  box-shadow: inset 0.25rem 0 0 var(--rsr-landmarks-accent);
  opacity: 1;
}

.rsr-landmarks-map__item-text {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.rsr-landmarks-map__item-label {
  color: var(--rsr-landmarks-muted);
  font-size: 0.68rem;
  font-weight: 700;
  line-height: 1.3;
  text-transform: uppercase;
}

.rsr-landmarks-map__item-title {
  color: var(--rsr-landmarks-text);
  font-size: 1.18rem;
  font-weight: 600;
  line-height: 1.18;
}

.rsr-landmarks-map__details {
  color: var(--rsr-landmarks-muted);
  font-size: 0.82rem;
  line-height: 1.42;
}

.rsr-landmarks-map__detail {
  margin: 0;
}

.rsr-landmarks-map__detail + .rsr-landmarks-map__detail {
  margin-block-start: 0.45rem;
}

.rsr-landmarks-map__address {
  color: var(--rsr-landmarks-text);
  overflow-wrap: anywhere;
}

.rsr-landmarks-map__close {
  position: absolute;
  right: 1rem;
  top: 1rem;
  z-index: 11;
}

.rsr-landmarks-map__close-button {
  align-items: center;
  appearance: none;
  background: var(--rsr-landmarks-text);
  border: 0;
  border-radius: 999px;
  color: var(--rsr-landmarks-bg);
  cursor: pointer;
  display: flex;
  height: 2.5rem;
  justify-content: center;
  padding: 0;
  width: 2.5rem;
}

.rsr-landmarks-map__close-icon,
.rsr-landmarks-map__reopen-icon {
  display: block;
  height: 0.9rem;
  position: relative;
  width: 0.9rem;
}

.rsr-landmarks-map__close-icon::before,
.rsr-landmarks-map__close-icon::after {
  background: currentColor;
  content: "";
  height: 1.15rem;
  left: 50%;
  position: absolute;
  top: 50%;
  width: 1.5px;
}

.rsr-landmarks-map__close-icon::before {
  transform: translate(-50%, -50%) rotate(45deg);
}

.rsr-landmarks-map__close-icon::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}

.rsr-landmarks-map__reopen {
  align-items: center;
  appearance: none;
  background: var(--rsr-landmarks-panel);
  border: 1px solid var(--rsr-landmarks-panel-border);
  border-right: 0;
  border-radius: 0.5rem 0 0 0.5rem;
  color: var(--rsr-landmarks-text);
  cursor: pointer;
  display: flex;
  height: 3rem;
  justify-content: center;
  opacity: 0;
  padding: 0 0.5rem;
  position: absolute;
  right: 0;
  top: 50%;
  transform: translate(2rem, -50%);
  transition: opacity 400ms var(--rsr-landmarks-ease), transform 400ms var(--rsr-landmarks-ease), visibility 400ms var(--rsr-landmarks-ease);
  visibility: hidden;
  z-index: 12;
}

.rsr-landmarks-map__reopen-icon::before {
  border-color: currentColor;
  border-style: solid;
  border-width: 1.5px 1.5px 0 0;
  content: "";
  height: 0.75rem;
  left: 50%;
  position: absolute;
  top: 50%;
  transform: translate(-60%, -50%) rotate(45deg);
  width: 0.75rem;
}

.rsr-landmarks-map[data-collapsed="true"] .rsr-landmarks-map__reopen {
  opacity: 1;
  transform: translate(0, -50%);
  visibility: visible;
}

.rsr-landmarks-map__controls {
  align-items: center;
  background: var(--rsr-landmarks-panel);
  border: 1px solid var(--rsr-landmarks-panel-border);
  border-radius: 999px;
  bottom: 1rem;
  color: var(--rsr-landmarks-text);
  display: flex;
  gap: 0.85rem;
  padding: 0.25rem;
  position: absolute;
  right: calc(var(--rsr-landmarks-info-width) + 2rem);
  transition: right 650ms var(--rsr-landmarks-ease);
  z-index: 10;
}

.rsr-landmarks-map[data-collapsed="true"] .rsr-landmarks-map__controls {
  right: 1rem;
}

.rsr-landmarks-map__nav-button {
  align-items: center;
  appearance: none;
  background: transparent;
  border: 0;
  border-radius: 999px;
  color: inherit;
  cursor: pointer;
  display: inline-flex;
  height: 2rem;
  justify-content: center;
  padding: 0;
  width: 2rem;
}

.rsr-landmarks-map__nav-button:hover,
.rsr-landmarks-map__nav-button:focus-visible {
  background: rgba(255, 255, 255, 0.08);
}

.rsr-landmarks-map__nav-button:disabled {
  cursor: default;
  opacity: 0.38;
}

.rsr-landmarks-map__nav-button:focus-visible,
.rsr-landmarks-map__close-button:focus-visible,
.rsr-landmarks-map__reopen:focus-visible {
  outline: 2px solid var(--rsr-landmarks-accent);
  outline-offset: 2px;
}

.rsr-landmarks-map__nav-icon {
  border-color: currentColor;
  border-style: solid;
  border-width: 1.5px 1.5px 0 0;
  display: block;
  height: 0.65rem;
  width: 0.65rem;
}

.rsr-landmarks-map__nav-icon--prev {
  transform: translateX(0.12rem) rotate(-135deg);
}

.rsr-landmarks-map__nav-icon--next {
  transform: translateX(-0.12rem) rotate(45deg);
}

.rsr-landmarks-map__counter {
  color: inherit;
  font-size: 0.875rem;
  font-weight: 700;
  min-width: 3.8rem;
  text-align: center;
}

.rsr-landmarks-map__marker {
  align-items: center;
  appearance: none;
  background: var(--rsr-landmarks-marker);
  border: 0;
  border-radius: 999px;
  box-shadow: 0 0 0 2px rgba(32, 29, 29, 0.96), 0 0.25rem 0.9rem rgba(0, 0, 0, 0.28);
  color: var(--rsr-landmarks-text);
  cursor: pointer;
  display: flex;
  height: 2.5rem;
  justify-content: center;
  padding: 0;
  position: relative;
  transition: box-shadow 180ms ease, transform 180ms ease;
  width: 2.5rem;
}

.rsr-landmarks-map__marker::before {
  border: 1.5px solid currentColor;
  border-radius: 999px;
  content: "";
  height: 1.05rem;
  width: 1.05rem;
}

.rsr-landmarks-map__marker::after {
  background: currentColor;
  border-radius: 999px;
  content: "";
  height: 0.3rem;
  position: absolute;
  width: 0.3rem;
}

.rsr-landmarks-map__marker[data-active="true"] {
  background: var(--rsr-landmarks-marker-active);
  box-shadow: 0 0 0 2px rgba(32, 29, 29, 0.96), 0 0 0 0.42rem rgba(255, 255, 255, 0.86), 0 0 0 0.66rem rgba(246, 66, 30, 0.56);
  transform: scale(1.14);
}

.rsr-landmarks-map__marker:focus-visible {
  outline: 2px solid var(--rsr-landmarks-text);
  outline-offset: 0.45rem;
}

.rsr-landmarks-map .mapboxgl-ctrl-group {
  background: var(--rsr-landmarks-panel);
  border-radius: 4px;
  overflow: hidden;
}

.rsr-landmarks-map .mapboxgl-ctrl-group button {
  background: var(--rsr-landmarks-panel) !important;
}

.rsr-landmarks-map .mapboxgl-ctrl button .mapboxgl-ctrl-icon {
  filter: invert(1);
}

.rsr-landmarks-map .mapboxgl-ctrl-group button + button {
  border-top: 1px solid var(--rsr-landmarks-panel-border);
}

.rsr-landmarks-map .mapboxgl-ctrl-logo,
.rsr-landmarks-map .mapboxgl-ctrl-attrib {
  display: none !important;
}

.rsr-landmarks-map .mapboxgl-ctrl-bottom-left {
  bottom: 1rem;
  left: 1rem;
}

.rsr-landmarks-map__map-message {
  align-items: center;
  background: rgba(32, 29, 29, 0.88);
  color: var(--rsr-landmarks-text);
  display: flex;
  inset: 0;
  justify-content: center;
  padding: 2rem;
  position: absolute;
  text-align: center;
  z-index: 20;
}

.rsr-landmarks-map__map-message[hidden] {
  display: none;
}

.rsr-landmarks-map__map-message p {
  margin: 0;
  max-width: 25rem;
}

.rsr-landmarks-map__screen-reader {
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  height: 1px;
  overflow: hidden;
  position: absolute;
  white-space: nowrap;
  width: 1px;
}

.rsr-landmarks-map__empty {
  background: var(--rsr-landmarks-panel);
  border: 1px solid var(--rsr-landmarks-panel-border);
  border-radius: 8px;
  color: var(--rsr-landmarks-text);
  margin: 0;
  padding: 1.5rem;
}

@media (max-width: 991px) {
  .rsr-landmarks-map__wrap {
    display: flex;
    flex-direction: column;
    height: 100vh;
    height: 100svh;
    min-height: min(38rem, 100vh);
    min-height: min(38rem, 100svh);
  }

  .rsr-landmarks-map__map {
    flex: 0 0 min(46vh, 24rem);
    flex-basis: min(46svh, 24rem);
    inset: auto;
    order: 1;
    position: relative;
  }

  .rsr-landmarks-map__states {
    border-left: 0;
    border-radius: 0;
    border-right: 0;
    box-shadow: none;
    flex: 0 0 auto;
    left: auto;
    max-width: none;
    order: 2;
    padding: 0.6rem 1rem;
    position: relative;
    top: auto;
    width: 100%;
  }

  .rsr-landmarks-map__states-label {
    flex: 0 0 auto;
  }

  .rsr-landmarks-map__state-button {
    flex: 0 0 auto;
  }

  .rsr-landmarks-map__info {
    border-left: 0;
    border-radius: 0;
    border-right: 0;
    border-top: 0;
    bottom: auto;
    box-shadow: none;
    flex: 1 1 auto;
    min-height: 0;
    order: 3;
    position: relative;
    right: auto;
    top: auto;
    width: 100%;
  }

  .rsr-landmarks-map[data-collapsed="true"] .rsr-landmarks-map__info {
    opacity: 1;
    transform: none;
    visibility: visible;
  }

  .rsr-landmarks-map__list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    overflow: hidden auto;
    padding: 1rem 1rem 4rem;
    position: relative;
  }

  .rsr-landmarks-map__item {
    flex: 0 0 auto;
    gap: 0.6rem;
    min-height: 0;
    min-width: 0;
    padding: 1rem;
  }

  .rsr-landmarks-map__item-title {
    font-size: 1.12rem;
  }

  .rsr-landmarks-map__close,
  .rsr-landmarks-map__reopen {
    display: none;
  }

  .rsr-landmarks-map__controls {
    border-left: 0;
    border-radius: 0;
    border-right: 0;
    bottom: auto;
    flex: 0 0 auto;
    justify-content: space-between;
    order: 4;
    padding: 1rem 1.25rem;
    position: relative;
    right: auto;
    width: 100%;
    z-index: 10;
  }
}

@media (prefers-reduced-motion: reduce) {
  .rsr-landmarks-map *,
  .rsr-landmarks-map *::before,
  .rsr-landmarks-map *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.001ms !important;
  }
}
