.location-map-wrapper {
    display: flex;
    align-items: stretch;
    width: 100%;
}

.map-container {
    width: 70%;
    height: calc(100vh - 137px);
}

#location-map {
    width: 100%;
    height: 100%;
}

.location-map-sidebar {
    width: 30%;
    padding: 20px;
    border-left: 1px solid #ddd;
    height: 100%;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.locations-list {
    overflow: scroll;
    scroll-behavior: smooth;
    height: 100%;
    max-height: 70vh;
}

.location-map-sidebar-item {
    margin-bottom: 20px;
    padding: 12px 20px 20px;
    cursor: pointer;
    background: #fff9f5;
    color: var(--p3-pink);
    border-radius: 5px;
}

.elementor .location-map-sidebar-item h3,
.elementor .map-popup-wrapper h3 {
    font-size: 1.5rem;
    font-weight: 500;
    margin: 0;
    position: relative;
}

.elementor .location-map-sidebar-item h3 {
    line-height: 125%;
}

.elementor .location-map-sidebar-item.coming-soon h3 {
    padding-right: 140px;
}

.elementor .location-map-sidebar-item p {
    margin: 0;
}

.elementor .sidebar-item-button {
    display: inline-block;
    border-radius: 5px;
    line-height: 1;
    font-weight: 500;
    text-decoration: underline;
    font-weight: 600;
}

.location-map-sidebar-item.active {
    border-radius: 5px;
}

.location-search-wrapper {
    display: flex;
    padding: 0;
    border-bottom: 1px solid #ddd;
    align-items: center;
    justify-content: space-between;
    align-content: center;
    gap: 16px;
    padding-bottom: 16px;
}

.location-search-wrapper>div {
    flex: 1;
    position: relative;
    min-height: 40px;
    width: 100%;
    display: block;
}

#location-search-input {
    flex-grow: 1;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 2;
    border-radius: 5px;
}

#location-current-button {
    cursor: pointer;
}

#location-suggestions-container {
    display: none;
    position: absolute;
    bottom: 0;
    z-index: 1;
    transform: translateY(calc(100% - 43px));
    background: #fff;
    width: 100%;
    padding: 56px 0px 10px;
    border-radius: 5px;
    box-shadow: 0 10px 20px #00000024;
    flex-direction: column;
    gap: 0px;
    max-height: 200px;
    overflow: scroll;
    font-size: 0.88rem;
    line-height: normal;
}

.location-suggestion {
    padding: 10px 16px;
}

.location-suggestion:hover {
    background: var(--p3-lightest-blue);
    cursor: pointer;
}

.mapboxgl-popup {
    z-index: 9999;
}

.mapboxgl-popup-content {
    border: 1px solid var(--p3-lightest-blue);
    border-radius: 10px;
    padding: 5px 20px 20px;
}

.map-popup-wrapper>*,
.map-popup-wrapper p {
    margin: 0 !important;
}

.map-popup-wrapper {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 320px;
    font-size: 0.88rem;
}

.elementor button.mapboxgl-popup-close-button {
    padding: 0;
    width: 25px;
    height: 25px;
    line-height: normal;
    font-weight: 400;
    margin: 4px;
    border: 0px;
    font-family: 'Font Awesome 6 Pro';
    font-size: 16px;
    transform: translate(50%, -50%);
}

.elementor .popup-buttons {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    gap: 4px;
}

.elementor .popup-buttons a {
    flex: 1;
    text-align: center;
    padding: 8px;
    display: inline-block;
    background: var(--p3-dark-green);
    color: #fff;
    font-weight: 500;
    font-size: 0.75rem;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

.elementor .popup-buttons a.pricing {
    background: var(--p3-pink);
    display: none;
}

#location-current-button {
    padding: 10px;
    border: 0px;
    position: relative;
    top: 1px;
}

.sidebar-container.sidebar-heading {
    margin: 24px 0;
}

.sidebar-container.sidebar-heading h2 {
    margin: 0 !important;
}

button.mapboxgl-ctrl-attrib-button {
    display: none !important;
}

.location-map-sidebar-item.coming-soon {
    padding: 12px 20px;
    opacity: 0.66;
    background: var(--p3-lightest-blue);
    color: var(--p3-dark-green);
}

.location-map-sidebar-item.coming-soon.reserved {
    filter: saturate(0);
}

.location-map-sidebar-item.coming-soon.active {
    opacity: 1;
}

.location-map-sidebar-item.coming-soon .item-content-wrapper {
    display: none;
}

.location-map-sidebar-item.coming-soon h3:after {
    content: 'Coming soon';
    display: inline-flex;
    text-align: right;
    float: right;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    padding: 10px 10px;
    background: var(--p3-dark-green);
    border-radius: 5px;
    color: #fff;
    position: absolute;
    right: 0;
    top: 50%;
    height: auto;
    line-height: 1;
    transform: translate(0px, -50%);
    color: #fff;
}

.location-map-sidebar-item.coming-soon.reserved h3:after {
    content: 'Reserved';
}

.location-map-sidebar-item a {
    font-weight: 600;
}

.location-map-sidebar-item.full a {
    color: var(--p3-pink);
}

.map-popup-wrapper .coming-soon-content,
.map-popup-wrapper .popup-buttons .coming-soon {
    display: none;
}

.map-popup-wrapper.coming-soon .popup-buttons .learn-more,
.map-popup-wrapper.coming-soon .popup-buttons .pricing,
.map-popup-wrapper.coming-soon .location-content {
    display: none;
}

.map-popup-wrapper.coming-soon .coming-soon-content,
.map-popup-wrapper.coming-soon .popup-buttons .coming-soon {
    display: block;
}

@media all and (max-width:1366px) {
    .elementor .location-map-sidebar-item p {
        margin: 0 0 4px;
    }

    .elementor .location-map-sidebar-item h3,
    .elementor .map-popup-wrapper h3 {
        margin-bottom: 16px;
    }

    .map-container {
        width: 70%;
        height: calc(100vh - 51px);
    }

    .sidebar-container.sidebar-heading {
        margin: 16px 0;
    }
}

@media all and (max-width:1200px) {
    .map-container {
        width: 63%;
    }

    .location-map-sidebar {
        width: 37%;
    }

    .elementor .location-map-sidebar-item h3,
    .elementor .map-popup-wrapper h3 {
        font-size: 1.25rem;
    }

    .elementor .location-map-sidebar-item.coming-soon h3:after {
        font-size: 10px;
    }
}

@media all and (max-width:900px) {
    .map-container {
        width: 57%;
    }

    .location-map-sidebar {
        width: 43%;
    }

    .elementor .location-map-sidebar-item.coming-soon h3 {
        padding-right: 0;
    }

    .elementor .location-map-sidebar-item.coming-soon h3:after {
        display: none;
    }
}

@media all and (max-width:767px) {
    .location-map-wrapper {
        flex-direction: column-reverse;
        height: calc(100vh - 160px);
    }

    .map-container,
    .location-map-sidebar {
        width: 100%;
    }

    .locations-list {
        max-height: 17vh;
    }

    .location-map-sidebar-item a {
        pointer-events: none;
    }

    .map-container {
        height: 100%;
    }

    .location-map-sidebar-item>div {
        display: none;
    }

    .elementor .location-map-sidebar-item h3 {
        margin-bottom: 0px;
        padding-right: 100px;
    }

    .location-map-sidebar-item {
        border: 1px solid var(--p3-lightest-blue);
        border-radius: 5px;
        padding: 8px 20px;
        position: relative;
    }

    .location-map-sidebar-item.coming-soon h3:after {
        width: auto;
        font-size: 8px;
    }

    .location-map-sidebar {
        max-height: 340px;
        height: auto;
    }

    .sidebar-container.sidebar-heading {
        margin: 0;
    }

    .location-map-sidebar-item {
        padding: 6px 20px;
    }

    .map-popup-wrapper {
        width: auto;
    }



    .sidebar-container.locations-list {
        display: none;
    }
}