.pilots-map-page .layout-content {
    padding-top: 16px;
}

.map-wrapper {
    display: flex;
    flex-direction: row;
    gap: 40px;
}

.filter-wrapper {
    margin-top: 80px;
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.filter {
    width: 30vw;
    position: relative;
    z-index: 2;
}

.filter[is-open="true"] {
    z-index: 30;
}
  
.filter-header {
    padding: 7px 20px;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid var(--color-text-main);
    cursor: pointer;
}

.filter-title {
    font-size: 24px;
    line-height: 1.0833;
}

.arrow-down {
    width: 24px;
    height: 24px;
    position: relative;
    flex: 0 0 24px;
}

.arrow-down::before,
.arrow-down::after {
    content: "";
    position: absolute;
    top: 10px;
    width: 9px;
    height: 2px;
    background: var(--color-text-main);
}

.arrow-down::before {
    left: 3px;
    transform: rotate(40deg);
}

.arrow-down::after {
    right: 3px;
    transform: rotate(-40deg);
}

.filter-options {
    display: none;
    width: 100%;
    position: absolute;
    left: 0;
    top: 50px;
    background-color: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(100px);
    -webkit-backdrop-filter: blur(100px);
    border-radius: 20px;
    overflow: auto;
    max-height: 40vh;
    z-index: 3;
}

.filter-option {
    font-size: 24px;
    line-height: 1;
    padding: 20px 20px;
    cursor: pointer;
}

.filter-option:hover,
.filter-option[is-active="true"] {
    background-color: rgba(255, 255, 255, 0.6);
}

.clear-filter-button {
    max-width: 150px;
    padding: 23px;
    border: 1px solid white;
    border-radius: 45px;
    background-color: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(100px);
    -webkit-backdrop-filter: blur(100px);
    white-space: nowrap;
}

.interactive-map-section {
    padding: 100px 100px 0px 100px;
    display: flex;
    flex-direction: column;
    position: relative;
}

#svg-wrapper {
    position: relative;
}

.interactive-map {
    width: calc(70vw - 200px);
}


.interactive-map path {
    cursor: pointer;
}

.interactive-map path.hovered {
    fill: #BBA2CD;
    opacity: 0.4;
}

.interactive-map path.highlight {
    fill: #BBA2CD;
}
.popup {
    position: absolute;
    background-color: rgba(255, 255, 255, 0.4);
    border: 1px solid white;
    border-radius: 15px;
    padding: 15px;
    max-width: 300px;
    /* pointer-events: none; */
    font-size: 14px;
    backdrop-filter: blur(100px);
    -webkit-backdrop-filter: blur(100px);
    z-index: 4; /* Make sure the popup is on top of other elements */
}

.popup-title {
    font-size: 26px;
}

.popup-link {
    margin-top: 16px!important;
    margin-bottom: 0px!important;
    color: var(--color-lavender);
}

.popup-subnote {
    margin-top: 20px;
    font-size: 12px;
}

@media only screen and (max-width: 1024px) {
   .map-wrapper {
        flex-direction: column;
        gap: 0px;
    }
  
    .filter-wrapper {
        margin-top: 40px;
        flex-direction: row;
        gap: 40px;
    }
    .interactive-map-section {
        padding: 80px 60px 0px 60px;
    }
    
    #svg-wrapper {
        left: -90px;
    }

    .interactive-map {
        width: calc(100vw - 120px);
    }
}

@media only screen and (max-width: 769px) {
  .filter-wrapper {
        margin-top: 40px;
        flex-direction: column;
        margin-bottom: 30px;
        gap: 30px;
    }
    .filter {
        width: calc(100vw - 120px);
    }
     #svg-wrapper {
        left: -40px;
    }
}

@media only screen and (max-width: 480px) {
   .filter {
        width: 100%;
    }
    .filter-header {
        padding: 7px 10px;
    }

    .filter-title {
        font-size: 20px;
        line-height: 1;
    }
    .arrow-down {
        width: 18px;
        height: 18px;
    }
    .clear-filter-button {
        max-width: 120px;
        padding: 20px;
    }
    .interactive-map {
        width: calc(100vw - 0px);
    }
    .interactive-map-section {
        padding: 60px 40px 0px 40px;
    }
    #svg-wrapper {
        left: -60px;
    }
    .popup {
        max-width: 170px;
    }
    .popup-title {
        font-size: 22px;
    }
    
    .popup-link {
        margin-top: 10px!important;
    }
    
    .popup-subnote {
        margin-top: 10px;
        font-size: 12px;
    }
}

.interactive-map path {
    transition: fill 240ms ease, opacity 240ms ease;
}
.interactive-map path:focus:not(:focus-visible) {
    outline: none;
}
