/**
 * Frontend CSS
 */
.aw-card-wrapper {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    width: 100%;
}

.aw-card {
    margin: 12px;
    width: 256px;
}

.aw-card-wrapper .aw-card span {
    font-size: 0.7rem;
}

.aw-card-container {
    display: flex;
    flex-direction: column;

    box-shadow: 4px 9px 7px 1px #f0f0f0;
    border-radius: 6px;
}

.aw-card-body {
    padding: 12px;

}

.aw-card-lower-body {
    display: flex;
    justify-content: space-between;
    padding: 12px;
    margin-top: 16px;
    border-radius: 6px;

    box-shadow: 4px 4px 8px 1px #f0f0f0;
    background: #fff;
    font-size: 0.9rem;
}

.aw_badge {
    color: white;
    background: #003a81;
    margin-top: 25px;
    margin-left: -9px;
    padding: 4px;

    border-top-right-radius: 4px;
    border-bottom-right-radius: 4px;
}

/**
* SINGLE 
**/
.aw-property-data-container {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.aw-property-data-box {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.aw-property-data-item {
    width: 25%;
    margin: 10px;
    width: 100%;

    text-align: center;

    border-radius: 8px;
    border: 2px solid #f2f2f2;
}

.aw-property-data-item p {
    margin: 6px;
}

.property-quick-info {
    display: flex;
    justify-content: space-between;
}

.property-label-surface-rooms {
    display: flex;
}

.property-label-surface-rooms p {
    margin-left: 2rem;
}

.aw-property-wrapper div h4 {
    color: #000;
    margin-top: 24px;
}

.aw-image-container {
    overflow: hidden;
    height: 100% !important;
    max-height: 160px;
}

.aw-image-full {
    width: 100%;
}

.aw-set-width-medium {
    width: 349px !important;
}

.aw-set-width-small {
    width: 256px !important;
}

.aw-image-container img {
    width: 100% !important;
}

.aw-image-container p {
    margin: 0px;
    margin-top: -24px;
}

.aw-align-center {
    display: flex;
    justify-content: center;
}

.aw-align-center img {
    margin: 0px 2px;
}

/**
*   OVERRIDES
**/
.splide__slide {
    width: 100%;
    height: 0;
    object-fit: cover !important;
    display: flex;
    justify-content: center;
    align-items: center;
    visibility: hidden;
}

.splide__list .is-active {
    visibility: visible;
    height: 100%;
}

.splide__list {
    align-items: flex-start;
}

.splide {
    margin: 0 auto;
}

.aw-thumbnails {
    display: flex;
    margin: 1rem auto 0;
    padding: 0;
    flex-wrap: wrap;
}

.aw-thumbnail {
    width: 70px;
    height: 45px;
    overflow: hidden;
    list-style: none;
    margin: 0 0.2rem;
    cursor: pointer;
    opacity: 0.3;
    margin: 1px 0.5px;
}

.aw-thumbnail.is-active {
    opacity: 1;
}

.aw-thumbnail img {
    width: 100%;
    height: auto;
}

button.splide__arrow,
button.splide__arrow:focus {
    border: none;
    background: transparent !important;
    outline: none;
}

body .splide__arrow svg {
    fill: black !important;
    z-index: 100;
    mix-blend-mode: difference;
}

/*
NEW ITEMS
*/
.property-quick-info {
    margin-top: 1rem;
}

.property-label h3 {
    margin-top: 0 !important;
}

.property-label-align-center {
    display: flex;
    align-items: center;
}

.property-label-align-center img {
    margin-right: 1rem;
}

.aw-prop-atts-list {
    margin-bottom: 2rem;
}

.aw-prop-atts-list-item {
    display: flex;
}

.aw-prop-atts-list-item div {
    width: 33%;
    padding: 4px;
}

.aw-prop-atts-list-item:nth-child(even) {
    background: rgba(204, 204, 204, 0.253)
}

/* Images gallery */
body div .awpa-wrap-images {
    display: flex;
    flex-wrap: nowrap;
    flex-direction: row;
    justify-content: flex-start;
    align-content: stretch;
    align-items: stretch;
    margin: 30px 0;
}

body div .awpa-wrap-images #main-slider,
body div .awpa-wrap-images #aw-thumbnails {
    flex: 1;
    display: flex;
    position: relative;
    align-items: flex-end;
    flex-wrap: wrap;
    flex-direction: row;
    align-content: flex-start;
    margin: 0;
}

body div .awpa-wrap-images #main-slider {
    justify-content: center;
}

body div .awpa-wrap-images #aw-thumbnails {
    justify-content: center;
    height: 350px;
    overflow-y: auto;
}

body div .awpa-wrap-images #main-slider .splide__track {
    width: 100%;
    height: 350px;
    max-height: 350px;
}

body div .splide__track--fade>.splide__list {
    height: inherit;
}

body div .splide__track--fade>.splide__list>.splide__slide {
    height: inherit;
    display: block;
}

body div .awpa-wrap-images .aw-thumbnail img {
    max-width: 100%;
    width: 100%;
    height: 100%;
    max-height: 100%;
    object-fit: contain;
}

body div .awpa-wrap-images .aw-thumbnail {
    width: 20%;
    padding: 0 0.5% 0.5% 0.5%;
    height: 75px;
    overflow: hidden;
    list-style: none;
    cursor: pointer;
    margin: 0;
}

/**
*   RESPONSIVE
**/
@media only screen and (max-width: 760px) {
    body .aw-card-wrapper {
        justify-content: center;
        flex-direction: column;
        align-items: center;
    }

    .aw-image-container {
        height: 100% !important;
    }

    .aw-image-container img {
        width: 100% !important;
    }
}

@media(max-width: 767px) {
    body div .awpa-wrap-images {
        flex-direction: column;
    }

    body div .awpa-wrap-images #aw-thumbnails {
        padding: 0;
        margin: 5px 0 0 0;
        padding-inline-start: 0;
    }
}

@media(max-width: 999px) {
    body div .awpa-wrap-images #main-slider .splide__track {
        width: 85%;
        height: 100%;
        max-height: 100%;
    }

    body div .awpa-wrap-images #main-slider,
    body div .awpa-wrap-images #thumbnails {
        width: 100%;
        position: relative;
        max-width: 100%;
        padding: 0;
        margin: 20px 0;
        max-height: 200px;
        overflow-y: auto;
    }

    body div .awpa-wrap-images {
        display: flex;
        flex-wrap: nowrap;
        flex-direction: column;
        justify-content: flex-start;
        align-content: stretch;
        align-items: stretch;
    }

    body div .awpa-wrap-images #main-slider .splide__track {
        width: 75%;
    }

    body div .awpa-wrap-images {
        margin-top: 0;
    }

    body div .thumbnail {
        width: 25%;
        height: 60px;
    }
}