.block--layout-builder.block--inline-blockmap {
  padding-bottom: 0;
}

.block--layout-builder.block--inline-blockmap + .block--layout-builder:not(.has-full-width-bg) {
  padding-top: 20px;
}

.filter-roadworks--wrapper {
  padding: 20px 30px;
  position: relative;
  z-index: 500;
  transition-property: all;
  transition-duration: 0.5s;
  transition-timing-function: cubic-bezier(0.19, 1, 0.22, 1);
}

.filter-roadworks--wrapper .icon {
  pointer-events: none;
  position: absolute;
  right: 50px;
  top: 40px;
}

.filter-roadworks--wrapper input:focus:not(:placeholder-shown) {
  border-radius: 30px 30px 0 0;
}

.filter-roadworks--wrapper .ui-menu {
  z-index: 999;
}

.filter-roadworks--wrapper .ui-menu .ui-menu-item-wrapper {
  padding: 10px 30px;
}

.filter-roadworks--wrapper .ui-menu .ui-menu-item-wrapper.ui-state-active {
  border-color: transparent;
  background-color: #9FD0CC;
  color: #000000;
}

.gow-map--wrapper {
  position: relative;
  width: 100vw;
  margin-left: calc(-50vw + 50%);
  background-color: #ECF7F6;
}

.gow-map--wrapper .leaflet-control {
  margin-top: 20px;
  border: 0;
  border-radius: 0 10px 10px 0;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.15);
}

.gow-map--wrapper .leaflet-control-layers {
  margin-left: 0;
}

.gow-map--wrapper .leaflet-div-icon {
  background: transparent;
  border: none;
}

.gow-popup {
  z-index: 200;
  padding: 15px;
  width: 100%;
}

.gow-popup--content {
  font-size: 1rem;
}

.gow-popup--content h2 {
  font-size: 1.375rem;
  margin-bottom: 15px;
  font-weight: 500;
  padding-right: 50px;
}

.gow-popup--content .field__label {
  color: #2B0CE9;
  font-weight: 500;
}

.gow-popup--content .field--name-field-more-info .field__item {
  font-size: 1.125rem;
}

.gow-popup--close {
  display: block;
  color: #2B0CE9;
  z-index: 9;
  cursor: pointer;
  position: absolute;
  right: 15px;
}

.gow-popup--close svg {
  width: 28px;
}

.gow-popup .content {
  overflow: auto;
  padding-bottom: 20px;
}

.gow-popup .content-entity {
  height: 100%;
  overflow: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
}

.gow-popup .content--outer {
  overflow: auto;
}

.leaflet-tooltip {
  margin-top: 0;
  color: #fff;
  border: none;
  border-radius: 4px;
  line-height: 1;
  pointer-events: none;
  padding: 2px 3px;
  font-weight: 500;
}

.leaflet-tooltip::before {
  content: none;
}

.leaflet-tooltip.place-tooltip {
  background-color: #8C8C96;
}

.leaflet-tooltip.roadwork-tooltip {
  border: 1px solid #e33b3b;
}

.leaflet-tooltip.roadwork-tooltip.current-roadworks {
  background-color: #e33b3b;
}

.leaflet-tooltip.roadwork-tooltip.upcoming-roadworks {
  color: #e33b3b;
}

.leaflet-control-layers {
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.15);
  max-width: calc(100vw - 90px);
}

.leaflet-control-layers-toggle {
  position: relative;
  font-size: 0.875rem;
  font-weight: 500;
  padding: 12px 20px 12px 12px;
  height: auto !important;
  width: auto !important;
  background-image: none !important;
  display: flex;
  align-items: center;
  color: #2B0CE9 !important;
}

.leaflet-control-layers-toggle .icon {
  margin-right: 14px;
  display: block;
  width: 25px;
}

.leaflet-control-layers-expanded .leaflet-control-layers-toggle {
  display: block;
  padding: 0;
}

.leaflet-control-layers-expanded .leaflet-control-layers-toggle svg,
.leaflet-control-layers-expanded .leaflet-control-layers-toggle .toggle-label {
  display: none;
}

.leaflet-control-layers-close {
  position: absolute;
  left: 100%;
  background-color: #fff;
  border-radius: 0 10px 10px;
  padding: 1px 10px 6px 22px;
  margin-left: -10px;
  font-weight: 700;
  top: 0;
  font-size: 30px;
  line-height: 1;
  display: none;
  cursor: pointer;
}

.leaflet-control-layers-expanded .leaflet-control-layers-close {
  display: block;
}

.leaflet-control-layers-close-icon {
  transform: rotate(45deg);
}

.leaflet-control-layers-selector {
  display: block !important;
  position: relative !important;
  opacity: 1 !important;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  cursor: pointer;
  background-color: #fff !important;
  height: 24px !important;
  width: 60px !important;
  border-radius: 16px;
  border: 2px solid #2B0CE9;
  transition-property: background-color;
  transition-duration: 0.5s;
  transition-timing-function: cubic-bezier(0.19, 1, 0.22, 1);
  padding: 2px !important;
  flex-shrink: 0;
}

.leaflet-control-layers-selector::after {
  content: '';
  position: relative;
  display: block;
  height: 16px;
  width: 16px;
  margin-left: 0;
  background-color: #9FD0CC;
  border-radius: 16px;
  transition-property: margin;
  transition-duration: 0.5s;
  transition-timing-function: cubic-bezier(0.19, 1, 0.22, 1);
}

.leaflet-control-layers-selector:checked {
  background-color: #2B0CE9 !important;
}

.leaflet-control-layers-selector:checked::after {
  margin-left: 36px;
  background-color: #fff;
}

.leaflet-control-layers-overlays {
  padding: 20px;
  text-transform: lowercase;
}

.leaflet-control-layers-overlays label {
  margin-bottom: 10px;
}

.leaflet-control-layers-overlays label:last-child {
  margin-bottom: 0;
}

.leaflet-control-layers-overlays label > span {
  display: flex;
}

.leaflet-control-layers-overlays label > span > span {
  font-weight: 500;
  margin-top: 3px;
  padding-right: 40px;
  color: #2B0CE9;
  cursor: pointer;
  width: 100%;
}

.leaflet-control-layers-overlays label > span > span .bicycleRoute-label,
.leaflet-control-layers-overlays label > span > span .diversions-label {
  position: relative;
  display: block;
  width: 100%;
}

.leaflet-control-layers-overlays label > span > span .bicycleRoute-label::before,
.leaflet-control-layers-overlays label > span > span .diversions-label::before {
  position: absolute;
  bottom: 10px;
  right: -30px;
  content: "";
  display: block;
  height: 2px;
  width: 20px;
  background-color: #2B0CE9;
}

.leaflet-control-layers-overlays label > span > span .bicycleRoute-label::after,
.leaflet-control-layers-overlays label > span > span .diversions-label::after {
  position: absolute;
  bottom: 1px;
  right: -50px;
  content: "";
  display: block;
  height: 20px;
  width: 20px;
  border: 10px solid #2B0CE9;
  border-top-color: transparent;
  border-right-color: transparent;
  border-bottom-color: transparent;
}

.leaflet-control-layers-overlays label > span > span .bicycleRoute-label::before {
  background-color: #228B22;
}

.leaflet-control-layers-overlays label > span > span .bicycleRoute-label::after {
  border-left-color: #228B22;
}

.leaflet-control-layers-expanded {
  padding: 0;
}

.leaflet-control-layers label {
  font-size: 16px;
}

.roadworks-marker {
  z-index: 99999 !important;
}

.roadworks-marker img {
  transition-property: transform;
  transition-duration: 0.5s;
  transition-timing-function: cubic-bezier(0.19, 1, 0.22, 1);
  transform-origin: bottom center;
}

.gow-map--wrapper[data-zoom="16"] .roadworks-marker img {
  transform: scale(0.95);
}

.gow-map--wrapper[data-zoom="15"] .roadworks-marker img {
  transform: scale(0.85);
}

.gow-map--wrapper[data-zoom="14"] .roadworks-marker img {
  transform: scale(0.75);
}

.gow-map--wrapper[data-zoom="13"] .roadworks-marker img {
  transform: scale(0.65);
}

.gow-map--wrapper[data-zoom="12"] .roadworks-marker img {
  transform: scale(0.6);
}

.gow-map--wrapper[data-zoom="11"] .roadworks-marker img {
  transform: scale(0.55);
}

.gow-map--wrapper[data-zoom="10"] .roadworks-marker img {
  transform: scale(0.5);
}

.roadworks-marker:hover {
  z-index: 199999 !important;
}

.roadworks-marker:hover img {
  transform: scale(1.05) !important;
}

.gow-map--wrapper[data-zoom="16"] .roadworks-marker:hover img {
  transform: scale(1) !important;
}

.gow-map--wrapper[data-zoom="15"] .roadworks-marker:hover img {
  transform: scale(0.95) !important;
}

.gow-map--wrapper[data-zoom="14"] .roadworks-marker:hover img {
  transform: scale(0.85) !important;
}

.gow-map--wrapper[data-zoom="13"] .roadworks-marker:hover img {
  transform: scale(0.75) !important;
}

.gow-map--wrapper[data-zoom="12"] .roadworks-marker:hover img {
  transform: scale(0.7) !important;
}

@media all and (min-width: 48rem) {
  .block--layout-builder.block--inline-blockmap + .block--layout-builder:not(.has-full-width-bg) {
    padding-top: 40px;
  }
  .gow-popup {
    padding: 30px;
  }
  .gow-popup--close {
    right: 30px;
  }
}

@media all and (min-width: 64rem) {
  .block--layout-builder.block--inline-blockmap + .block--layout-builder:not(.has-full-width-bg) {
    padding-top: 90px;
  }
  .filter-roadworks--wrapper {
    position: absolute;
    right: 40px;
    width: 410px;
  }
  .gow-popup--active .filter-roadworks--wrapper {
    right: 0;
    width: 490px;
  }
  .filter-roadworks--wrapper .ui-menu {
    max-width: 350px;
  }
  .gow-popup--active .filter-roadworks--wrapper .ui-menu {
    max-width: 430px;
  }
  .gow-map--wrapper {
    overflow: hidden;
  }
  .gow-map--wrapper .leaflet-container {
    overflow: visible;
    flex-grow: 1;
  }
  .gow-map--wrapper.gow-popup--active .leaflet-control-zoom {
    margin-right: 480px;
  }
  .gow-popup {
    position: absolute;
    top: 100px;
    bottom: 30px;
    right: 0;
    background-color: #E2F1F0;
    border-radius: 20px 0 0 20px;
    padding: 32px 40px 40px;
    max-width: 460px;
  }
  .gow-popup--content {
    height: 100%;
  }
  .gow-popup--content h2 {
    padding-right: 30px;
  }
  .gow-popup .content {
    padding-bottom: 30px;
  }
  .gow-popup .content::after {
    content: '';
    height: 40px;
    width: 100%;
    display: block;
    bottom: 0;
    position: absolute;
    background: linear-gradient(0deg, #e2f1f0 8%, rgba(226, 241, 240, 0.5) 75%, rgba(226, 241, 240, 0) 100%);
  }
  .leaflet-control-layers-toggle {
    display: none !important;
  }
  .leaflet-control-layers-close {
    display: none !important;
  }
  .leaflet-control-layers-overlays {
    padding: 35px 25px;
  }
  .leaflet-control-layers-overlays label {
    margin-bottom: 20px;
  }
  .leaflet-control-layers .leaflet-control-layers-list {
    display: block !important;
  }
}

@media (max-width: 90rem) {
  .gow-popup--content h2 {
    font-size: calc(1.075rem + 0.33333vw) ;
  }
  .gow-popup--content .field--name-field-more-info .field__item {
    font-size: calc(1.025rem + 0.11111vw) ;
  }
}

