.simpleSearchRow {
    width: 100%;
    margin-top: 14vh;
    margin-bottom: 40px;
}

.advancedSearchRow {
    margin-top: 14vh;
    height: 0;
    overflow: hidden;
    transition: all 0.3s ease-in-out;
}

.advancedSearchRow {
    margin-top: 0;
}

html body .advancedSearchTitle {
    cursor: auto;
    padding: 25px 10.5%;
}

html body .advancedSearchTitle .arrowSvg {
    display: none;
}

html body .advancedSearchContent {
    padding: 40px 10.5%;
    height: auto !important;
}

html body .advancedSearchContent.show {
    padding: 40px 10.5%;
}

.advancedSearchRow.isActive {
    display: block;
    margin-bottom: 40px;
}

html body .advancedSearch, html body .advancedSearchTitle {
    border-radius: 0;
}

.filterRow {
    width: 100%;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 60px;
    background-color: rgb(1, 68, 33);
    padding: 25px 10.5%;
    box-sizing: border-box;
    box-shadow: 0px 7px 4px rgba(0, 0, 0, 0.4);
}

.filterRowLeft, .filterRowRight {
    display: flex;
    flex-direction: row;
    align-items: center;
}

.filterRow p {
    margin: 0;
    font-family: 'Roboto';
    color: #014421;
    font-weight: 400;
    font-size: 0.9em;
}

.filterButtonSort {
    background-color: white;
    border-radius: 26px;
    margin-right: 25px;
    padding: 9px 15px;
    box-sizing: border-box;
    transition: all 0.3s ease-in-out;
}

.filterRowLeft select#sortSelect {
    font-size: 0.9em;
    font-family: 'Myriad';
    cursor: pointer;
    text-decoration: none;
    line-height: 90%;
    box-sizing: border-box;
    display: block;
    text-align: center;
    transition: all 0.3s ease-in-out;
    color: #014421;
    border: none;
}

.filterButtonViews {
    padding: 10px;
    border-radius: 26px;
    background-color: white;
    font-size: 1em;
    font-family: 'Myriad';
    cursor: pointer;
    text-decoration: none;
    line-height: 90%;
    box-sizing: border-box;
    width: 140px;
    display: block;
    text-align: center;
    transition: all 0.3s ease-in-out;
    margin-right: 25px;
}

.filterButtonFavs, .filterButtonDesc {
    padding: 10px;
    border-radius: 26px;
    background-color: white;
    font-size: 1em;
    font-family: 'Myriad';
    cursor: pointer;
    text-decoration: none;
    line-height: 90%;
    box-sizing: border-box;
    width: 140px;
    display: block;
    text-align: center;
    transition: all 0.3s ease-in-out;
}

.filterButtonSort:hover, .filterButtonViews:hover, .filterButtonFavs:hover, .filterButtonDesc:hover {
    opacity: 0.8;
}

.filterButtonFavs {
    margin-right: 25px;
}

.filterRowRightBlock svg, .filterRowRightList svg {
    width: 100%;
    height: 100%;
    display: block;
    pointer-events: none;
    position: relative;
    z-index: 1;
}

.filterRowRightBlock, .filterRowRightList {
    width: 20px;
    cursor: pointer;
    padding: 10px;
    border-radius: 10px;
    position: relative;
}

.filterRowRightBlock::after, .filterRowRightList::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.3);
    transform: scale(0);
    transition: all 0.3s ease-in-out;
    border-radius: 10px;
    z-index: 0;
}

.filterRowRightBlock.isActive::after, .filterRowRightList.isActive::after {
    transform: scale(1);
}

.filterRowRightBlock {
    margin-right: 20px;
}

.filterButtonViews.isActive, .filterButtonFavs.isActive, .filterButtonDesc.isActive {
    background-color: rgb(250 235 206);
}

#sortSelect option {
    background-color: white;
    font-family: 'Roboto';
    font-size: 0.9em;
    cursor: pointer;
    text-align: left;
}

select#sortSelect:focus-visible {
    outline: none;
}

.viviendasRow {
    width: 80%;
    margin: auto;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
}

a.viviendaBlock {
    text-decoration: none;
    width: calc(33.3% - 60px);
    margin-right: 90px;
    height: 575px;
    margin-bottom: 60px;
    border-radius: 20px;
    box-shadow: 0px 0px 12px rgba(0, 0, 0, 1);
    background-color: rgb(1, 68, 33);
    transition: all 0.3s ease-in-out;
}

a.viviendaBlock.list {
    width: 100%;
    margin-right: 0;
}

a.viviendaBlock:nth-child(3n) {
    margin-right: 0;
}

.viviendaInnerTop {
    width: 100%;
    height: 55%;
    position: relative;
    padding: 10px;
    box-sizing: border-box;
}

.viviendaImg img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    border-radius: 20px;
}

.viviendaInnerBottom {
    width: 100%;
    height: 45%;
    box-sizing: border-box;
    border-radius: 20px;
    padding: 12px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding-bottom: 17px;
}

.viviendaImg {
    width: 100%;
    height: 100%;
}

.viviendaPrice {
    position: absolute;
    top: 0;
    left: 100%;
    background-color: rgb(1, 68, 33);
    border-bottom-left-radius: 20px;
    border-top-right-radius: 20px;
    transform: translate(calc(-100% - 8px), 8px);
    box-sizing: border-box;
    padding: 7px 20px;
}

.viviendaPrice p {
    margin: 0;
    font-family: 'Roboto';
    color: white;
    font-weight: 400;
    font-size: 1.3em;
    white-space: nowrap;
}

.viviendaInnerBottom :is(p, section) {
    margin: 0;
    font-family: 'Playfair Display';
    color: white;
    font-weight: 500;
    font-size: 0.9em;
    display: -webkit-box;
    -webkit-line-clamp: 5;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.viviendaLocation p {
    font-size: 0.8em;
}

.viviendaInnerBottom .viviendaText section {
    font-family: 'Roboto';
}

.viviendaText > p:first-of-type {
    margin-bottom: 10px;
    font-size: 1.2em;
}

.viviendaPrice.discount {
    background-color: #d51c1c;
}

.viviendaCaract {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
}

.viviendaCaractSeparator {
    width: 1px;
    height: 80%;
    background-color: white;
    margin: 0 10%;
}

.viviendaLocation {
    display: flex;
    flex-direction: row;
    align-items: center;
    margin-bottom: 15px;
}

.viviendaLocationImg svg {
    width: 100%;
    height: 100%;
    display: block;
}

.viviendaLocationImg {
    width: 12px;
    margin-right: 8px;
}

.pagination {
    display: flex;
    justify-content: center;
    margin: 50px 0;
}

.pagination .page-numbers {
    padding: 10px 15px;
    text-decoration: none;
}

.pagination .current {
    font-weight: bold;
}

.pagination :is(a, span) {
    margin-right: 5px;
    border: 1px solid rgb(1, 68, 33);
    border-radius: 7px;
    color: rgb(1, 68, 33);
    font-family: 'Roboto';
    font-size: 0.9em;
}

.pagination a.last-page {
    margin-right: 0;
}

.pagination :is(a, span) {
    margin-right: 5px;
    border: 1px solid rgb(1, 68, 33);
    color: rgb(1, 68, 33);
    font-family: 'Roboto';
    font-size: 0.9em;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    border-radius: 0;
}


.pagination a.last-page {
    margin-right: 0;
}

.pagination a:is(.first-page, .prev, .next, .last-page) {
    padding: 10px;
    font-size: 1.3em;
    border-width: 2px;
}

span.precio-tachado {
    text-decoration: line-through;
    margin-right: 6px;
}

.viviendaBan, .viviendaBed {
    display: flex;
    flex-direction: row;
}

.viviendaBanIcon {
    width: 20px;
    margin-right: 10px;
}

.viviendaBedIcon {
    width: 20px;
    margin-right: 10px;
}

.filterBy {
    display: flex;
    flex-direction: row;
    align-items: center;
}

.filterBy > p {
    color: white;
    margin-right: 25px;
}

@media only screen and (max-width: 1600px) {
    a.viviendaBlock {
        margin-right: 45px;
        width: calc(33.3% - 30px);
    }
}

@media only screen and (max-width: 1200px) {
    html body .advancedSearchTitle, html body .advancedSearchContent, .filterRow {
        padding: 25px 5.6%;
    }
    .viviendasRow {
        width: 90%;
    }
    a.viviendaBlock {
        margin-right: 30px;
        width: calc(33.3% - 20px);
    }
    .filterRowRightBlock {
        margin-right: 5px;
    }
    html body .advancedSearchContent.show {
        padding: 25px 5.6%;
    }
}

@media only screen and (max-width: 1000px) {
    html body .advancedSearchTitle, html body .advancedSearchContent, .filterRow {
        padding: 25px 3%;
    }
    .viviendasRow {
        width: 95%;
    }
    a.viviendaBlock {
        margin-right: 50px;
        width: calc(50% - 25px);
        margin-bottom: 50px;
    }
    a.viviendaBlock:nth-child(3n) {
        margin-right: 50px;
    }
    a.viviendaBlock:nth-of-type(even) {
        margin-right: 0;
    }
    .filterButtonViews, .filterButtonFavs, .filterButtonDesc {
        width: 100px;
    }
    .filterBy > p, .filterButtonSort, .filterButtonViews, .filterButtonFavs {
        margin-right: 15px;
    } 
    .filterBy > p {
        font-size: 0.8em;
    }
    html body .advancedSearchContent.show {
        padding: 25px 3%;
    }
}

@media only screen and (max-width: 800px) {
    .filterRow {
        flex-direction: column;
    }
    .filterRowLeft, .filterRowRight {
        justify-content: space-between;
        width: 100%;
    }
    .filterRowLeft {
        margin-bottom: 15px;
    }
    .filterRowRight {
        justify-content: center;
    }
    .filterButtonViews, .filterButtonFavs, .filterButtonDesc {
        width: 100px;
    }
    .filterButtonSort, .filterButtonViews, .filterButtonFavs {
        margin-right: 0;
    }
    .filterBy > p {
        margin-right: 15px;
    }
    .filterBy > p, .filterButtonSort, .filterButtonViews, .filterButtonFavs, .filterButtonDesc {
        font-size: 0.9em;
    }
}

@media only screen and (max-width: 600px) {
    a.viviendaBlock {
        margin-right: 0;
        width: 100%;
        margin-bottom: 50px;
    }
    a.viviendaBlock:nth-of-type(3n) {
        margin-right: 0;
    }
    .viviendasRow {
        width: 85%;
    }
    .filterRowLeft {
        margin-bottom: 0;
    }
    .filterRowRight {
        display: none;
    }
    .filterBy > p, .filterButtonSort, .filterButtonViews, .filterButtonFavs, .filterButtonDesc {
        font-size: 0.8em;
    }
    .filterRowLeft {
        flex-wrap: wrap;
    }
    .filterBy {
        width: 100%;
        margin-bottom: 15px;
        flex-direction: column;
        justify-content: center;
    }
    .filterBy > p {
        margin-right: 0;
        margin-bottom: 7.5px;
    }
    .filterButtonViews, .filterButtonFavs, .filterButtonDesc {
        width: 31%;
    }
}

@media only screen and (max-width: 500px) {
    .viviendasRow {
        width: 95%;
    }
}