.mapping-block,
#mapping-map {
    position: relative;
    z-index: 0;
}

#mapping-map + .pagination {
    margin: 1rem auto;
    width: 100%;
    justify-content: center;
    text-align: center;
}

.leaflet-control-geosearch form input {
    border: 0 !important;
}


.leaflet-container a.leaflet-popup-close-button {
    right: 4px;
    top: 6px;
    line-height: 18px;
    font-weight: bold;
}

.leaflet-container .resource-link img {
    display: block;
    height: auto;
    margin: 0 0 0.5rem;
}

.group-filters {
    margin-bottom: 0.5rem;
}

.group-filter {
    display: inline-flex;
    margin-bottom: 0.5rem;
    border: 1px solid #e3e3e3;
    border-radius: 2px;
}

.group-filter > * {
    display: inline-block;
    padding: 0.25rem 0.5rem;
}

.group-filter-label {
    background-color: #e3e3e3;
}

.group-value {
    font-size: 1.125rem;
    display: block;
    margin-bottom: 14px;
}

.group-type {
    padding: 8px 21px;
    background: #e3e3e3;
    display: block;
    margin: -14px -25px 14px -21px;
    font-weight: bold;
}

.mapping-group-item-features-bar {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    align-items: flex-start;
    margin-top: 1rem;
}

.mapping-group-item-features-bar .filter {
    display: inline-flex;
    margin-right: 0.5rem;
}

.mapping-show-group-item-features {
    font-size: 14px;
    padding: 5px 7px;
    min-height: 0;
    line-height: 1;
}

.mapping-show-group-features {
    margin: 0 0 1rem;
}

.geojson-properties {
    overflow-y: auto;
    max-height: 200px;
}

.cluster-popup h4 {
    margin-top: 0;
    margin-bottom: 0;
}

.leaflet-popup-content .cluster-popup .cluster-list {
    max-height: 200px;
    overflow-y: auto;
    padding-right: 0.25rem;
}

.leaflet-popup-content .cluster-popup table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 0.5rem;
    margin-bottom: 0;
}

.leaflet-popup-content .cluster-popup .cluster-row:hover .cluster-val a {
    text-decoration: underline;
    cursor: pointer;
}

.leaflet-popup-content-wrapper {
    max-height: 350px;
    overflow: hidden;
}

.mapping-sidebar-enabled {
    overflow: hidden;
}

.mapping-sidebar-panel {
    background: #f4f6fb;
    border-right: 2px solid #8798b7;
    bottom: 0;
    box-shadow: 2px 0 8px rgba(20, 34, 58, 0.12);
    color: #17233b;
    display: none;
    left: 0;
    max-width: 430px;
    overflow: auto;
    position: absolute;
    top: 0;
    width: 34%;
    z-index: 900;
}

.mapping-sidebar-panel.is-open {
    display: block;
}

.mapping-sidebar-inner {
    padding: 18px 20px;
}

.mapping-sidebar-close {
    align-items: center;
    background: transparent;
    border: 2px solid #526482;
    border-radius: 50%;
    color: #526482;
    cursor: pointer;
    display: flex;
    font-size: 20px;
    height: 38px;
    justify-content: center;
    line-height: 1;
    padding: 0;
    position: absolute;
    right: 16px;
    top: 16px;
    width: 38px;
    z-index: 1;
}

.mapping-sidebar-header {
  border-bottom: 1px solid #d8deea;
  margin: -18px -20px 0;
  padding: 18px 64px 16px 20px;
}

.mapping-sidebar-back {
  background: transparent;
  border: 0;
  border-bottom: 1px dashed #d2d9e6;
  color: #244176;
  cursor: pointer;
  display: block;
  font-size: 16px;
  margin: -18px -20px 0;
  padding: 16px 20px;
  text-align: left;
  width: calc(100% + 40px);
}

.mapping-sidebar-back + .mapping-sidebar-header {
  margin-top: 0;
}

.mapping-sidebar-back:hover,
.mapping-sidebar-back:focus {
  background: #e9eef8;
}

.mapping-sidebar-header h3 {
    font-size: 20px;
    line-height: 1.25;
    margin: 0 0 8px;
}

.mapping-sidebar-header p {
    color: #526482;
    margin: 0;
}

.mapping-sidebar-list {
    list-style: none;
    margin: 0 -20px;
    padding: 0;
}

.mapping-sidebar-list li {
    border-bottom: 1px solid #d8deea;
}

.mapping-sidebar-list-item {
    align-items: center;
    background: transparent;
    border: 0;
    color: #17233b;
    cursor: pointer;
    display: flex;
    gap: 12px;
    padding: 14px 20px;
    text-align: left;
    width: 100%;
}

.mapping-sidebar-list-item:hover,
.mapping-sidebar-list-item:focus {
    background: #e9eef8;
}

.mapping-sidebar-list-dot {
    background: #526fa8;
    border-radius: 50%;
    flex: 0 0 auto;
    height: 8px;
    width: 8px;
}

.mapping-sidebar-list-arrow {
    color: #526482;
    margin-left: auto;
}

.mapping-sidebar-tabs {
    border-bottom: 2px solid #8798b7;
    display: flex;
    gap: 8px;
    margin: 0 -20px;
    padding: 12px 20px 0;
}

.mapping-sidebar-tab {
    background: transparent;
    border: 0;
    border-bottom: 4px solid transparent;
    color: #526482;
    cursor: pointer;
    padding: 8px 10px 10px;
}

.mapping-sidebar-tab.is-active {
    border-bottom-color: #244176;
    color: #244176;
    font-weight: 700;
}

.mapping-sidebar-content {
    padding-top: 18px;
}

.mapping-sidebar-media img {
    display: block;
    height: auto;
    width: 100%;
    max-width: 100%;
    border-radius: 0 !important;
}

.mapping-sidebar-content .group-type {
    margin: 0 0 12px;
}

.mapping-sidebar-content .group-value {
    margin-bottom: 16px;
}

.mapping-sidebar-content .mapping-popup-props {
    border-top: 3px dashed #d2d9e6;
    margin-top: 16px;
    padding-top: 14px;
    font-size: 13px;
}

.mapping-sidebar-content .mapping-popup-props h4 {
    color: #526482;
    font-size: 13px;
    letter-spacing: 0.08em;
    margin: 0 0 8px;
    text-transform: uppercase;
}

.mapping-sidebar-content .mapping-popup-props dd {
  margin-bottom: 0.5rem;
}

.mapping-sidebar-section {
    border-top: 3px dashed #d2d9e6;
    margin-top: 16px;
    padding-top: 14px;
}

.mapping-sidebar-section h4 {
    color: #526482;
    font-size: 13px;
    letter-spacing: 0.08em;
    margin: 0 0 8px;
    text-transform: uppercase;
}

.mapping-sidebar-section ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.mapping-sidebar-section li {
    margin: 0 0 8px;
}

@media (max-width: 800px) {
    .mapping-sidebar-panel {
        max-width: none;
        width: 86%;
    }
}

.leaflet-top,
.leaflet-bottom {
    z-index: 800;
}

.leaflet-container .leaflet-marker-pane img {
    border-radius: 0 !important;
}

.mapping-tabbed-popup {
    min-width: 260px;
}

.mapping-tabbed-popup-leaflet .leaflet-popup-content-wrapper {
    max-height: none;
    overflow: visible;
}

.mapping-tabbed-popup-leaflet .leaflet-popup-content {
    max-height: min(70vh, 520px);
    overflow: hidden;
}

.mapping-tabbed-popup-header h3 {
    font-size: 16px;
    line-height: 1.25;
    margin: 0 0 10px;
}

.mapping-popup-tabs {
    border-bottom: 2px solid #8798b7;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 0 -4px 10px;
    padding: 0 4px;
}

.mapping-popup-tab {
    background: transparent;
    border: 0;
    border-bottom: 3px solid transparent;
    color: #526482;
    cursor: pointer;
    padding: 6px 8px 8px;
}

.mapping-popup-tab.is-active {
    border-bottom-color: #244176;
    color: #244176;
    font-weight: 700;
}

.mapping-tabbed-popup-content {
    max-height: min(50vh, 360px);
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding-right: 8px;
    padding-top: 4px;
}
