@charset "UTF-8";
/**
 * Map styles
 *
 * @author      David Voglgsang
 *
*/
@import '../../node_modules/ol/ol.css';
/*=======================================================
Table of Contents:
–––––––––––––––––––––––––––––––––––––––––––––––––––––––––
  1.0 SETTINGS
    1.1 CONTAINER
    1.2 CONTAINER INNER
    1.3 MARKERS
    1.4 POPUP
    1.5 TEXT SEARCH
  2.0 EXTERN STYLES
    2.1 SWISSTOPO
=======================================================*/
/*==================================================================================
  1.0 SETTINGS
==================================================================================*/
/* 1.1 CONTAINER
/––––––––––––––––––––––––*/
.wp-block-map {
  width: 100%;
  height: var(--map__height, 250px);
  /* 1.2 CONTAINER INNER
  /––––––––––––––––––––––––*/
  /* Layer switcher (dimensions) control under zoom */
  /* 1.3 MARKERS
  /––––––––––––––––––––––––*/
  /* 1.4 POPUP
  /––––––––––––––––––––––––*/
  /* 1.5 TEXT SEARCH
  /––––––––––––––––––––––––*/
}
.wp-block-map.map-blocker {
  position: relative;
}
.wp-block-map.map-blocker:before {
  display: block;
  content: "";
  width: 100%;
  height: 100%;
  position: absolute;
  z-index: 1;
  left: 0;
  top: 0;
}
.wp-block-map.map-blocker .ol-zoom,
.wp-block-map.map-blocker .map-dimensions-switcher,
.wp-block-map.map-blocker .map-address-search {
  display: none;
}
.wp-block-map .map-inner {
  width: 100%;
  height: 100%;
}
.wp-block-map .map-dimensions-switcher {
  position: absolute;
  left: 0.5em;
  top: 4.8em;
  display: flex;
  flex-direction: column;
}
.wp-block-map .map-dimensions-switcher button {
  background-color: transparent;
  background-repeat: no-repeat;
  background-position: center;
  background-size: 70% 70%;
  color: var(--map__icon_color_hover, inherit);
}
.wp-block-map .map-dimensions-switcher button:hover, .wp-block-map .map-dimensions-switcher button:focus {
  color: var(--map__icon_color_hover, inherit);
}
.wp-block-map .map-dimensions-switcher .btn-layer-pixelkarte {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M7 9h10v2H7zM7 13h6v2H7z' fill='white'/></svg>");
}
.wp-block-map .map-dimensions-switcher .btn-layer-swissimage {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><circle cx='8' cy='10' r='2' fill='white'/><path d='M3 16l5-3 4 2 4-3 5 3v3H3z' fill='white'/></svg>");
}
.wp-block-map .map-dimensions-switcher .btn-layer-lightbasemap {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M3 18l4-6 4 3 4-5 6 8H3z' fill='white' opacity='.85'/><path d='M3 18h18' stroke='white' stroke-width='1.5' fill='none'/></svg>");
}
.wp-block-map .map-dimensions-switcher .btn-layer-OSM,
.wp-block-map .map-dimensions-switcher .btn-layer-osm {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M6 18l6-6 6 6' stroke='white' stroke-width='2' fill='none'/><circle cx='12' cy='8' r='2' fill='white'/></svg>");
}
.wp-block-map .map-dimensions-switcher .is-active {
  color: var(--map__icon_color_active, inherit);
}
.wp-block-map .map-markers {
  display: none;
}
.wp-block-map .map-popup {
  background-color: var(--map__popup_background, #ffffff);
  padding: var(--map__popup_padding, 10px);
  color: var(--map__popup_color, #000);
  border-radius: var(--map__popup_borderRadius, 0);
  border-width: var(--map__popup_borderWidth, 0px);
  border-style: var(--map__popup_borderRadius, solid);
  border-color: var(--map__popup_borderColor, #000);
  max-width: var(--map__popup_maxWidth, 280px);
}
.wp-block-map .map-popup .map-popup-content img {
  max-width: 100%;
}
.wp-block-map .map-address-search {
  position: absolute;
  z-index: 1;
  top: 0.5em;
  right: 0.5em;
  line-height: 1.2;
  width: 30%;
}
.wp-block-map .map-address-search:not(.active) ul {
  height: 0 !important;
  margin: 0;
  padding: 0;
  border: 0px solid;
}
.wp-block-map .map-address-search input {
  width: 100%;
  box-sizing: border-box;
}
.wp-block-map .map-address-search ul {
  list-style: none;
  overflow: hidden;
  max-width: 100%;
}
.wp-block-map .map-address-search ul li {
  cursor: pointer;
}

/*==================================================================================
  2.0 EXTERN STYLES
==================================================================================*/
/* 2.1 SWISSTOPO
/––––––––––––––––––––––––*/
.ol-box {
  box-sizing: border-box;
  border-radius: 2px;
  border: 2px solid #00f;
}

.ol-attribution.ol-unselectable {
  display: none !important;
}

.ol-mouse-position {
  top: 8px;
  right: 8px;
  position: absolute;
}

.ol-scale-line {
  background: rgba(0, 60, 136, 0.3);
  border-radius: 4px;
  bottom: 8px;
  left: 8px;
  padding: 2px;
  position: absolute;
}

.ol-scale-line-inner {
  border: 1px solid #eee;
  border-top: none;
  color: #eee;
  font-size: 10px;
  text-align: center;
  margin: 1px;
  will-change: contents, width;
}

.ol-overlay-container {
  will-change: left, right, top, bottom;
}

.ol-unsupported {
  display: none;
}

.ol-unselectable, .ol-viewport {
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.ol-selectable {
  -webkit-touch-callout: default;
  -webkit-user-select: auto;
  -moz-user-select: auto;
  -ms-user-select: auto;
  user-select: auto;
}

.ol-grabbing {
  cursor: -webkit-grabbing;
  cursor: -moz-grabbing;
  cursor: grabbing;
}

.ol-grab {
  cursor: move;
  cursor: -webkit-grab;
  cursor: -moz-grab;
  cursor: grab;
}

.ol-control {
  position: absolute;
  background-color: rgba(255, 255, 255, 0.4);
  border-radius: 4px;
  padding: 2px;
}

.ol-control:hover {
  background-color: rgba(255, 255, 255, 0.6);
}

.ol-zoom {
  top: 0.5em;
  left: 0.5em;
}

.ol-rotate {
  top: 0.5em;
  right: 0.5em;
  transition: opacity 0.25s linear, visibility 0s linear;
}

.ol-rotate.ol-hidden {
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s linear, visibility 0s linear 0.25s;
}

.ol-zoom-extent {
  top: 4.643em;
  left: 0.5em;
}

.ol-full-screen {
  right: 0.5em;
  top: 0.5em;
}

@media print {
  .ol-control {
    display: none;
  }
}
.ol-control button {
  display: block;
  margin: 1px;
  padding: 0;
  color: #fff;
  font-size: 1.14em;
  font-weight: 700;
  text-decoration: none;
  text-align: center;
  height: 1.375em;
  width: 1.375em;
  line-height: 0.4em;
  background-color: var(--map__button_color, rgba(51, 51, 51, 0.5)) !important;
  border: none;
  border-radius: 2px;
}

.ol-control button::-moz-focus-inner {
  border: none;
  padding: 0;
}

.ol-zoom-extent button {
  line-height: 1.4em;
}

.ol-compass {
  display: block;
  font-weight: 400;
  font-size: 1.2em;
  will-change: transform;
}

.ol-touch .ol-control button {
  font-size: 1.5em;
}

.ol-touch .ol-zoom-extent {
  top: 5.5em;
}

.ol-control button:focus, .ol-control button:hover {
  text-decoration: none;
  background-color: var(--map__button_color_hover, rgba(51, 51, 51, 0.8)) !important;
}

.ol-zoom .ol-zoom-in {
  border-radius: 2px 2px 0 0;
}

.ol-zoom .ol-zoom-out {
  border-radius: 0 0 2px 2px;
}

.ol-attribution {
  text-align: right;
  bottom: 0.5em;
  right: 0.5em;
  max-width: calc(100% - 1.3em);
}

.ol-attribution ul {
  margin: 0;
  padding: 0 0.5em;
  font-size: 0.7rem;
  line-height: 1.375em;
  color: #000;
  text-shadow: 0 0 2px #fff;
}

.ol-attribution li {
  display: inline;
  list-style: none;
  line-height: inherit;
}

.ol-attribution li:not(:last-child):after {
  content: " ";
}

.ol-attribution img {
  max-height: 2em;
  max-width: inherit;
  vertical-align: middle;
}

.ol-attribution button, .ol-attribution ul {
  display: inline-block;
}

.ol-attribution.ol-collapsed ul {
  display: none;
}

.ol-attribution.ol-logo-only ul {
  display: block;
}

.ol-attribution:not(.ol-collapsed) {
  background: rgba(255, 255, 255, 0.8);
}

.ol-attribution.ol-uncollapsible {
  bottom: 0;
  right: 0;
  border-radius: 4px 0 0;
  height: 1.1em;
  line-height: 1em;
}

.ol-attribution.ol-logo-only {
  background: 0 0;
  bottom: 0.4em;
  height: 1.1em;
  line-height: 1em;
}

.ol-attribution.ol-uncollapsible img {
  margin-top: -0.2em;
  max-height: 1.6em;
}

.ol-attribution.ol-logo-only button, .ol-attribution.ol-uncollapsible button {
  display: none;
}

.ol-zoomslider {
  top: 4.5em;
  left: 0.5em;
  height: 200px;
}

.ol-zoomslider button {
  position: relative;
  height: 10px;
}

.ol-touch .ol-zoomslider {
  top: 5.5em;
}

.ol-overviewmap {
  left: 0.5em;
  bottom: 0.5em;
}

.ol-overviewmap.ol-uncollapsible {
  bottom: 0;
  left: 0;
  border-radius: 0 4px 0 0;
}

.ol-overviewmap .ol-overviewmap-map, .ol-overviewmap button {
  display: inline-block;
}

.ol-overviewmap .ol-overviewmap-map {
  border: 1px solid #7b98bc;
  height: 150px;
  margin: 2px;
  width: 150px;
}

.ol-overviewmap:not(.ol-collapsed) button {
  bottom: 1px;
  left: 2px;
  position: absolute;
}

.ol-overviewmap.ol-collapsed .ol-overviewmap-map, .ol-overviewmap.ol-uncollapsible button {
  display: none;
}

.ol-overviewmap:not(.ol-collapsed) {
  background: rgba(255, 255, 255, 0.8);
}

.ol-overviewmap-box {
  border: 2px dotted rgba(0, 60, 136, 0.7);
}

.ol-overviewmap .ol-overviewmap-box:hover {
  cursor: move;
}

/*==================================================================================
  3.0 BACKEND
==================================================================================*/
/* 3.1 POST COORDINATES
/––––––––––––––––––––––––*/
.wp-admin .popup[data-content=map-popup] .popup-content[data-id=popup-map] {
  --popup__width: 1200px;
}
.wp-admin .popup[data-content=map-popup] .popup-content[data-id=popup-map] .wp-block-map {
  --map__height: 100vh;
}

.components-modal__frame .form-builder-swisstopo,
.components-modal__frame .form-builder-map {
  position: relative;
}
