/* ../source/app/src/client/wordpress/viewer.css */
.mapcore-wordpress-map {
  position: relative;
  width: 100%;
  height: var(--mapcore-map-height, 500px);
  min-height: 240px;
  isolation: isolate;
}
.mapcore-wordpress-map__canvas {
  width: 100%;
}
.mapcore-wordpress-map__loading {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  box-sizing: border-box;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 1rem;
  color: #1d2327;
  background: #f0f0f1;
  font-family:
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  font-size: .875rem;
  font-weight: 600;
  line-height: 1.4;
  gap: .75rem;
}
.mapcore-wordpress-map__spinner {
  box-sizing: border-box;
  width: 1.5rem;
  height: 1.5rem;
  flex: 0 0 1.5rem;
  border: .1875rem solid rgb(34 113 177 / 25%);
  border-top-color: #2271b1;
  border-radius: 50%;
  animation: mapcore-wordpress-map-spin .75s linear infinite;
}
@keyframes mapcore-wordpress-map-spin {
  to {
    transform: rotate(1turn);
  }
}
@media (prefers-reduced-motion: reduce) {
  .mapcore-wordpress-map__spinner {
    animation: none;
  }
}
.mapcore-map-layout {
  display: flex;
  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 0;
  flex-direction: column;
}
.mapcore-map-layout__above {
  position: relative;
  z-index: 4;
  min-width: 0;
  flex: 0 0 auto;
}
.mapcore-map-layout__above-mount {
  display: flex;
  width: 100%;
}
.mapcore-map-layout__below {
  position: relative;
  z-index: 4;
  min-width: 0;
  flex: 0 0 auto;
}
.mapcore-map-layout__below-mount {
  display: flex;
  width: 100%;
}
.mapcore-map-layout__canvas {
  position: relative;
  min-width: 0;
  min-height: 0;
  flex: 1 1 auto;
}
.mapcore-categories-legend {
  box-sizing: border-box;
  display: flex;
  width: 100%;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  align-items: center;
  padding: 0.625rem;
  border-top: 1px solid #c3c4c7;
  background: #fff;
  color: #1d2327;
  font-family:
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
}
.mapcore-categories-legend__item {
  display: flex;
  min-width: 0;
  gap: 0.5rem;
  align-items: center;
  font-size: 0.875rem;
  line-height: 1.25;
}
.mapcore-categories-legend__swatch {
  position: relative;
  display: grid;
  box-sizing: border-box;
  width: 30px;
  height: 30px;
  flex: 0 0 30px;
  place-items: center;
  overflow: hidden;
  padding: 5px;
  color: var(--mapcore-category-text, #fff);
  border: 2px solid var(--mapcore-category-border, #fff);
  border-radius: var(--mapcore-marker-border-radius, 50%);
  background: var(--mapcore-category-fill, #2563eb);
  box-shadow: 0 2px 5px rgb(0 0 0 / 35%);
  font-size: 0.75rem;
  line-height: 1;
}
.mapcore-categories-legend__swatch.has-square-corner-top-left {
  border-top-left-radius: 0;
}
.mapcore-categories-legend__swatch.has-square-corner-top-right {
  border-top-right-radius: 0;
}
.mapcore-categories-legend__swatch.has-square-corner-bottom-right {
  border-bottom-right-radius: 0;
}
.mapcore-categories-legend__swatch.has-square-corner-bottom-left {
  border-bottom-left-radius: 0;
}
.mapcore-categories-legend__swatch.is-shape-pin {
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
.mapcore-categories-legend__swatch.is-shape-pin::before {
  position: absolute;
  inset: 0;
  box-sizing: border-box;
  content: "";
  border: 2px solid var(--mapcore-category-border, #fff);
  border-radius: 50% 50% 50% 0;
  background: var(--mapcore-category-fill, #2563eb);
  box-shadow: 0 2px 5px rgb(0 0 0 / 35%);
  transform: rotate(-45deg);
}
.mapcore-categories-legend__swatch-content {
  position: relative;
  z-index: 1;
  display: grid;
  width: 100%;
  height: 100%;
  place-items: center;
}
.mapcore-categories-legend__image {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.mapcore-categories-legend__text,
.mapcore-categories-legend__label {
  overflow: hidden;
  text-overflow: ellipsis;
}
.maplibregl-map {
  height: 100%;
}
.maplibregl-map .maplibregl-ctrl button .maplibregl-ctrl-icon {
  display: flex;
  width: 100%;
  height: 100%;
  align-items: center;
  justify-content: center;
  background-position: 50%;
  background-repeat: no-repeat;
}
@media (hover: hover) {
  .maplibregl-map .maplibregl-ctrl button:not(:disabled):hover {
    background-color: #f3f4f6;
  }
}
.mapcore-wordpress-map__error {
  box-sizing: border-box;
  margin: 0;
  padding: 1rem;
  border: 1px solid #d63638;
  background: #fcf0f1;
  color: #3c434a;
}
.mapcore-wordpress-map__access {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 2;
  display: grid;
  box-sizing: border-box;
  width: min(24rem, calc(100% - 2rem));
  padding: 1rem;
  border: 1px solid #c3c4c7;
  border-radius: .25rem;
  background: #fff;
  box-shadow: 0 .25rem 1rem rgb(0 0 0 / 15%);
  color: #1d2327;
  gap: .75rem;
  transform: translate(-50%, -50%);
}
.mapcore-wordpress-map__access h2,
.mapcore-wordpress-map__access p {
  margin: 0;
}
.mapcore-wordpress-map__access label {
  display: grid;
  gap: .35rem;
  font-weight: 600;
}
.mapcore-wordpress-map__access input,
.mapcore-wordpress-map__access button {
  box-sizing: border-box;
  min-height: 2.5rem;
  padding: .5rem .75rem;
  border: 1px solid #8c8f94;
  border-radius: .25rem;
  font: inherit;
}
.mapcore-wordpress-map__access button {
  border-color: #2271b1;
  color: #fff;
  background: #2271b1;
  cursor: pointer;
}
.mapcore-wordpress-map__access-error {
  min-height: 1.25em;
  color: #b32d2e;
}
.mapcore-wordpress-map .place-map-anchor {
  position: absolute;
  width: 2rem;
  height: 2rem;
  margin: 0;
  padding: 0;
  border: .1875rem solid #fff;
  background: #2563eb;
  box-shadow: 0 .25rem .75rem rgb(24 39 75 / 35%);
}
.mapcore-wordpress-map .place-map-anchor[data-marker-shape=pin] {
  width: 30px;
  height: 40px;
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: transparent !important;
  box-shadow: none;
}
.mapcore-wordpress-map .place-map-anchor[data-marker-shape=rectangle] {
  border-radius: var(--mapcore-marker-border-radius, 50%);
}
.mapcore-wordpress-map .place-map-anchor[data-marker-square-corner=top-left] {
  border-top-left-radius: 0;
}
.mapcore-wordpress-map .place-map-anchor[data-marker-square-corner=top-right] {
  border-top-right-radius: 0;
}
.mapcore-wordpress-map .place-map-anchor[data-marker-square-corner=bottom-right] {
  border-bottom-right-radius: 0;
}
.mapcore-wordpress-map .place-map-anchor[data-marker-square-corner=bottom-left] {
  border-bottom-left-radius: 0;
}
.mapcore-wordpress-map .place-map-anchor__content {
  position: relative;
  z-index: 1;
  display: grid;
  width: 100%;
  height: 100%;
  overflow: hidden;
  place-items: center;
  color: inherit;
  font-size: .68rem;
  font-weight: 800;
  line-height: 1;
}
.mapcore-wordpress-map .place-map-anchor[data-marker-shape=pin] .place-map-anchor__content {
  position: absolute;
  top: 0;
  left: 0;
  width: 30px;
  height: 30px;
  padding: 4px;
}
.mapcore-wordpress-map .place-map-anchor__image {
  width: 75%;
  height: 75%;
  object-fit: contain;
}
.mapcore-wordpress-map .place-map-anchor__text {
  overflow: hidden;
  max-width: 100%;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.mapcore-wordpress-map .place-map-anchor__pin-shape {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 0;
  width: 30px;
  height: 40px;
  overflow: visible;
  filter: drop-shadow(0 2px 2px rgb(0 0 0 / 35%));
}
.mapcore-wordpress-map .place-map-anchor__pin-body {
  stroke-linejoin: round;
  stroke-width: 2px;
}
.mapcore-wordpress-map .place-map-anchor__pin-focus {
  fill: none;
  opacity: 0;
  stroke: #014dbd;
  stroke-linejoin: round;
  stroke-width: 6px;
}
.mapcore-wordpress-map .place-map-anchor:focus-visible,
.mapcore-wordpress-map .place-map-anchor--selected {
  outline: .25rem solid rgb(1 77 189 / 30%);
  outline-offset: .15rem;
}
.mapcore-wordpress-map .place-map-anchor--popup-open:hover {
  cursor: pointer !important;
}
.mapcore-wordpress-map .place-map-anchor--has-popup:hover {
  cursor: pointer !important;
}
.mapcore-wordpress-map .place-map-popup {
  display: grid;
  max-width: 18rem;
  gap: .5rem;
  overflow-wrap: anywhere;
}
.mapcore-wordpress-map .place-map-popup > * {
  min-width: 0;
  max-width: 100%;
}
.mapcore-wordpress-map .place-map-popup strong,
.mapcore-wordpress-map .place-map-popup p {
  display: block;
  margin: 0;
}
.mapcore-wordpress-map .place-map-popup a {
  color: #2271b1;
}
.mapcore-wordpress-map .mapcore-post-type-marker-featured-image {
  display: block;
  width: 100%;
  height: auto;
}
.mapcore-wordpress-map .mapcore-distance-scale {
  display: grid;
  box-sizing: border-box;
  padding: 2px 0;
  color: #333;
  background: rgb(255 255 255 / 75%);
  font-size: 10px;
  line-height: 1;
  text-align: center;
  white-space: nowrap;
  pointer-events: none;
  grid-template-rows: auto 6px auto;
}
.mapcore-wordpress-map .mapcore-distance-scale__line {
  box-sizing: border-box;
  height: 4px;
  border-right: 2px solid currentcolor;
  border-left: 2px solid currentcolor;
  grid-row: 2;
  grid-column: 1;
  justify-self: start;
}
.mapcore-wordpress-map .mapcore-distance-scale__imperial {
  grid-row: 1;
  grid-column: 1;
}
.mapcore-wordpress-map .mapcore-distance-scale__line--imperial {
  align-self: start;
  border-bottom: 2px solid currentcolor;
}
.mapcore-wordpress-map .mapcore-distance-scale__line--metric {
  align-self: end;
  border-top: 2px solid currentcolor;
}
.mapcore-wordpress-map .mapcore-distance-scale__metric {
  grid-row: 3;
  grid-column: 1;
}
.mapcore-wordpress-map .mapcore-map-preview-close-control__button > span {
  display: block;
  font-size: 1.5rem;
  line-height: 1;
  transform: translateY(-0.0625rem);
}
.maplibregl-popup-close-button {
  padding: 0 5px;
}
