.overview-appartements {
    display: flex;
    flex-flow: row wrap;
    justify-content: flex-start;
    gap: 20px;
    color: #ffffff;
    margin: 40px 0;
}

.overview-appartements.align-items-center {
    justify-content: center;
}

.overview-appartements.align-items-right {
    justify-content: flex-end;
}

.overview-appartements > .item {
    position: relative;
    display: flex;
    flex: 1 1 100%;
    min-height: 400px;
    min-width: 100%;
    background-color: var(--wp--preset--color--primary, #004E9E);
    overflow: hidden;
}

.overview-appartements .item-wrapper {
    position: relative;
    display: flex;
    flex: 1 1 100%;
    align-items: flex-end;
}

.overview-appartements .image-wrapper {
    z-index: 0;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transition: all 0.3s ease;
}

.overview-appartements .item:hover .image-wrapper {
    transform: scale(1.05);
}

.overview-appartements .image-wrapper > img {
    position: absolute;
    top: -1px;
    left: -1px;
    width: 1px;
    height: 1px;
    opacity: 0;
    visibility: hidden;
}

.overview-appartements .image-overlay {
    z-index: 0;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--wp--preset--color--primary, #004E9E);
    opacity: 0.6;
    transition: all 0.3s ease;
}

html.no-touch .overview-appartements .image-overlay {
    opacity: 0.25;
}

.overview-appartements .item:hover .image-overlay {
    opacity: 0.6;
}

.overview-appartements a.appartement-link {
    z-index: 2;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.overview-appartements a.booking-link {
    z-index: 2;
    position: absolute;
    top: 20px;
    right: 20px;
    color: inherit;
    border: solid 1px currentColor;
    text-transform: uppercase;
    line-height: 1;
    padding: 0.5em;
    writing-mode: vertical-lr;
    transform: rotate(180deg);
}

.overview-appartements a.booking-link:hover,
.overview-appartements a.booking-link:active,
.overview-appartements a.booking-link:focus {
    color: #ffffff;
    border-color: var(--wp--preset--color--primary, #004E9E);
    background-color: var(--wp--preset--color--primary, #004E9E);
}

.overview-appartements .content-wrapper {
    z-index: 1;
    width: 100%;
    color: inherit;
    padding: 140px 20px 20px 20px;
}

.overview-appartements .content-wrapper .price {
    font-size: 20px;
    margin: 0;
}

.overview-appartements .content-wrapper .title {
    position: relative;
    color: inherit;
    font-size: 25px;
    margin-top: 0.25em;
    margin-bottom: 0.25em;
}

.overview-appartements .content-wrapper .sub-title {
    margin: 0;
    overflow: hidden;
    text-align: center;
}

html.no-touch .overview-appartements .content-wrapper .sub-title {
    height: 0;
    opacity: 0;
    text-align: center;
}

.overview-appartements .content-wrapper .details {
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 20px;
    padding: 15px 0 0;
    margin: 15px 0 0;
}

.overview-appartements .content-wrapper .details:before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg,#ffffff 0,#ffffff 0%,rgba(255,255,255,0.4) 0%,rgba(255,255,255,0.4) 100%);
    opacity: 1;
    transition: all 0.3s ease;
}

.overview-appartements .item:hover .content-wrapper .details:before {
    background: linear-gradient(90deg,#ffffff 0,#ffffff 100%,rgba(255,255,255,0.4) 100%,rgba(255,255,255,0.4) 100%);
}

html.no-touch .overview-appartements .content-wrapper .details * {
    opacity: 0;
    transition: all 0.3s ease;
}

html.no-touch .overview-appartements .item:hover .content-wrapper .details * {
    opacity: 1;
}

.overview-appartements .content-wrapper .details-content {
    display: flex;
    gap: 0.5em;
    line-height: 1;
}

.overview-appartements .content-wrapper .details-content .icon > img {
    width: 20px;
    height: auto;
}

.overview-appartements .item .content-wrapper .details-button {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-flow: row nowrap;
    gap: 0.5em;
    line-height: 1;
    text-transform: uppercase;
}

.overview-appartements .item .content-wrapper .details-button > svg {
    height: 0.8em;
    width: auto;
}

.overview-appartements .item .content-wrapper .details-button > svg * {
    fill: currentColor;
}

.overview-appartements-message {
    min-width: 100%;
    color: var(--wp--preset--color--content, #707070);
}

.overview-appartements-message h2 {
    font-size: 2rem;
    margin-top: 0;
}

@media (min-width: 768px) {

    .overview-appartements > .item {
        flex-basis: calc((100% - 20px) / 2);
        max-width: calc((100% - 20px) / 2);
        min-width: 335px;
    }

}

@media (min-width: 1200px) {

    .overview-appartements > .item {
        flex-basis: calc((100% - 40px) / 3);
        max-width: calc((100% - 40px) / 3);
    }

}