.popup {
    position: fixed;
    top: 50%;
    left: 50%;
    background-color: white;
    width: 95vw;
    max-width: 1400px;
    overflow: hidden;
    z-index: 900;
}

.popup:after {
    position: fixed;
    content: "";
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: -2;
}

.popup:before {
    position: absolute;
    content: "";
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    background: #fff;
    z-index: -1;
}

.popup-container {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: white;
    border-radius: 5px;
    box-shadow: 2px 3px 3px rgba(0, 0, 0, 0.52);
    width: 95vw;
    max-width: 1400px;
    overflow: hidden;
    z-index: 901;
    opacity: 1;
}

.popup-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.popup-header h3 {
    margin: 0;
    font-size: 1.5em;
    padding: 3px 10px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.popup-header .close-button {
    font-size: 1.5em;
    font-weight: bold;
    border: none;
    background: transparent;
    cursor: pointer;
    color: #8798a5;
    padding: 3px 10px;
    transition: all 0.3s !important;
    user-select: none;
}
.popup-header .close-button:hover {
    background: #be1e2d;
}
.popup-content {
    display: flex;
    flex-wrap: wrap;
    padding: 15px;
    max-height: 400px;
    overflow-y: auto;
}

/* /////////////////////////////////// */

body:has(> .flexPopup) {
    height: 100%;
    overflow: hidden;
}
body:has(> .flexPopup) .mapFilter__container--fullscreen {
    position: fixed !important;
}

.flexPopup {
    position: absolute;
    content: "";
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.75);
    z-index: 9999;

    display: flex;
    justify-content: center;
    padding: 0 1rem;
    align-items: center;
}

.flexPopup__content {
    background-color: white;
    border-radius: 5px;
    box-shadow: 2px 3px 3px rgba(0, 0, 0, 0.52);
    z-index: 901;
    opacity: 1;
    width: 100%;
    max-width: 800px;
    position: relative;
}

@media only screen and (max-width: 767px) {
    .flexPopup__content {
        font-size: 10px;
    }
}

.flexPopup__content .header__location {
    font-size: 28px;
}

.bigPopup--content {
    margin: 1rem 2rem;
}

.details__highlight {
    font-size: 25px;
    font-weight: 700;
    color: var(--enfold-main-color-primary);
    margin-bottom: 0;
    white-space: nowrap;
    text-align: right;
    margin-right: 7px;
    width: 50%;
}

@media only screen and (max-width: 767px) {
    .details__highlight {
        font-size: 16px;
    }
}

.details__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-gap: 20px;
}

@media only screen and (max-width: 767px) {
    .details__grid {
        grid-template-columns: repeat(1, 1fr);
    }
}
@media only screen and (min-width: 768px) and (max-width: 1024px) {
    .details__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.details__gridItem {
    display: flex;
    align-items: center;
}

.details__text {
    font-size: 11px;
    line-height: 1;
    text-transform: uppercase;
    width: 50%;
}

.details__button {
    background-color: var(--enfold-main-color-primary) !important;
    width: 150px;
    height: 50px;
    justify-self: center;
}

.details--threeElements {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
}

.details--threeElements > * {
    align-self: end;
    justify-self: center;
    text-align: center;
}

.details--threeElements > *:first-child {
    justify-self: start;
}

.details--threeElements > *:last-child {
    justify-self: flex-end;
}

.details--separate {
    position: relative;
}

.details--separate::after {
    content: "";
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 100%;
    height: 1px;
    background-color: black;
    opacity: 0.5;
}

.margin-bottom {
    margin-bottom: 1rem;
}
