/************************ COMMON */

body {
    margin: 0;
    font-size: 0;
    padding-top: 80px;
    background-color: white;
    color: rgba(40, 42, 46, 1);
    font-size: 18px;
    font-weight: 300;
    font-family: Roboto;
    font-style: normal;
    text-decoration: none;
}

@media screen and (max-width: 600px) {
    body {
        font-size: 14px;
        padding-top: 0;
    }
}

.anchor {
    position: relative;
    top: -80px;
}

.gradient {
    position: absolute;
    width: 100%;
    height: 800px;
    background: linear-gradient(180deg, rgba(120, 170, 216, 1) 0%, rgba(255, 255, 255, 1) 75%);
}

#banner {

    font-size: 26px;
    color: white;
    background-color: rgb(22, 53, 81);
    text-align: center;
    width: 100%;
    padding: 20px;
    display: none;
}

/************************ BUTTONS */

button {
    width: 200px;
    height: 70px;
    border: 0;
    font-weight: 500;
    font-size: 24px;
    text-transform: uppercase;
    letter-spacing: 0px;
    color: white;
    background-color: black;
}

@media screen and (max-width: 600px) {
    button {
        width: 150px;
        height: 50px;
        font-size: 20px;
    }
}

.button-top {
    background-image: url('../img/button-top.png');
    background-repeat: no-repeat;
    background-color: transparent;
    border: 0;
    z-index: 600;
    position: fixed;
    bottom: 0;
    right: 140px;
    width: 40px;
    height: 37px;
    cursor: pointer;
}

@media screen and (max-width: 1200px) {
    .button-top {
        right: 20px;
    }
}

.button-top:hover {
    background-image: url('../img/button-top-hover.png');
}

button.more {
    font-size: 22px;
    width: 250px;
}

button.gray {
    background-color: #C9C9CA;
    color: black;
    text-transform: none;
}

/************************ CONTAINER */

div.container {
    position: relative;
    margin: 0 auto;
    width: 1200px;
    max-width: none;
    height: inherit;
    padding: 0;
}

@media screen and (max-width: 1200px) {
    div.container {
        width: 818px;
    }
}

@media screen and (max-width: 900px) {
    div.container {
        width: 600px;
    }
}

@media screen and (max-width: 600px) {
    div.container {
        width: 300px;
    }
}

/************************ HEADER */

.header {
    position: relative;
    font-weight: 500;
    font-size: 72px;
    text-transform: uppercase;
    border-bottom: 1px solid black;
    padding: 40px 0;
}

@media screen and (max-width: 900px) {
    .header {
        font-size: 48px;
        padding: 10px 0;
    }
}

@media screen and (max-width: 600px) {
    .header {
        font-size: 24px;
    }
}

/************************ SANDWICH */

#sandwich {
    display: none;
    width: 100%;
    height: 0;
    z-index: 1000;
    position: absolute;
    padding: 40px 20px;
    flex-wrap: nowrap;
    justify-content: space-between;
    align-items: center;
}

#sandwich .logo {
    height: 50px;
    cursor: pointer;
    margin-top: 10px;
}

#sandwich>button {
    background-image: url('../img/sandwich.png');
    width: 48px;
    height: 32px;
    border: 0;
    background-color: transparent;
}

#sandwich>a {
    display: block;
    margin-right: 50px;

    font-weight: 400;
}

#sandwichModal {
    display: none;
    position: fixed;
    z-index: 1500;
    width: 100%;
    left: 0;
    top: 0;
    background-color: #7EAEDA;
    color: white;
    padding-bottom: 50px;
}

#sandwichModal a {
    margin: 0 auto;
    padding: 10px 0;
}

#sandwichModal {
    text-align: center;
    padding: 50% 0;
}

#sandwichModal button {
    position: absolute;
    top: 10px;
    right: 5px;
    width: auto;
    height: auto;
    color: rgba(40, 42, 46, 1);
    margin: 0 0 0 auto;
    background-color: initial;
    background-image: none;
    font-weight: 900;
}

/************************ MENU */

#menu {
    width: 100%;
    height: 80px;
    z-index: 1000;
    position: fixed;
    top: 0;
    left: 0;
    min-width: 1200px;
    background-color: inherit;
    transition: 0.4s;
}

@media screen and (max-width: 1200px) {
    #menu {
        min-width: auto;
    }

    #menu.scroll {
        height: 120px;
    }
}

@media screen and (max-width: 900px) {
    #menu {
        height: 95px;
        padding-top: 10px;
    }
}

@media screen and (max-width: 600px) {
    #sandwich {
        display: flex;
    }

    #menu {
        display: none;
    }
}

#menu .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

@media screen and (max-width: 1200px) {
    #menu .container {
        align-items: flex-start;
    }
}

#menu .logo {
    width: 137px;
    cursor: pointer;
}

@media screen and (max-width: 1200px) {
    #menu .logo {
        margin-top: 10px;
    }
}

#menu .items, #sandwichModal .items {
    width: 100%;
    margin-top: 150px;
    display: flex;
    justify-content: space-around;
    transition: 0.4s;
}
@media screen and (max-width: 600px) {
    #sandwichModal .items {
        margin-top: 0;
        flex-direction: column;
    }
}

#menu.scroll .items {
    margin-top: 0;
}

@media screen and (max-width: 1200px) {
    #menu .items {
        position: absolute;
        justify-content: space-between;
        margin-top: 110px;
        margin-top: 100px;
    }

    #menu.scroll .items {
        margin-top: 80px;
    }
}

#menu .items a, #sandwichModal .items a {
    white-space: nowrap;
    font-style: normal;
    font-size: 20px;
    text-decoration: none;
    text-transform: uppercase;
    line-height: normal;
    letter-spacing: 0;
    mix-blend-mode: normal;
    color: rgba(40, 42, 46, 1);
}

#menu .items a.active, #sandwichModal .items a.active {
    font-weight: 500;
    color: black;
    pointer-events: none;
    cursor: default;
}

#menu .contacts, #sandwichModal .contacts {
    white-space: nowrap;
}
@media screen and (max-width: 600px) {
    #sandwichModal .contacts {
        margin-top: 50px;
    }
}

#menu .contacts a, #sandwichModal .contacts a {
    font-family: Roboto;
    font-weight: 400;
    font-size: 20px;
    color: rgba(40, 42, 46, 1);
    text-decoration: none;
    margin-right: 10px;
}

#menu .contacts a>img, #sandwichModal .contacts a>img {
    height: 15px;
}


/************************ FILTERS */

#filters {
    margin-top: -140px;
}

@media screen and (max-width: 900px) {
    #filters {
        margin-top: -120px;
    }
}

#filters form {
    width: 1200px;
    height: 300px;
    background-color: white;
    box-shadow: 1px 1px 40px rgba(0, 0, 0, 0.2), -1px -1px 30px rgba(0, 0, 0, 0.2);
    margin: 0 auto;
    z-index: 400;
    position: relative;
    padding: 75px;

    display: flex;
    flex-direction: row;
    align-items: flex-end;
    justify-content: space-between;
}

#filters form.a900 {
    display: none;
}

@media screen and (max-width: 1200px) {
    #filters form {
        width: 818px;
        height: auto;
        flex-direction: column;
        padding: 40px;
    }
}

@media screen and (max-width: 900px) {
    #filters form {
        display: none;
    }

    #filters form.a900 {
        width: 598px;
        display: flex;
        flex-direction: row;
        align-items: flex-start;
        padding: 30px 40px;
    }
}

@media screen and (max-width: 600px) {
    #filters form {
        width: 260px;
        height: auto;
        display: flex;
        flex-direction: column;
        padding: 20px;
    }

    #filters form.a900 {
        display: none;
    }
}

#filters form>div {
    height: 100%;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

@media screen and (max-width: 900px) {
    #filters form>div {
        row-gap: 4px;
    }
}

#filters form>div>div {
    display: flex;
    justify-content: space-between;
    column-gap: 100px;
}

@media screen and (max-width: 1200px) {
    #filters form>div>div {
        column-gap: 40px;
    }
}

@media screen and (max-width: 600px) {
    #filters form>div>div {
        flex-direction: column;
    }
}

#filters .selectize-control .selectize-input {
    height: 50px;
    width: 200px;
    overflow-y: auto;
    border: 0;
    padding: 10px 0px;
    padding-right: 30px;
    line-height: 15px;
    resize: none;
    box-shadow: none;
    font-size: 14px;
    text-transform: capitalize;
    background-color: transparent;
    cursor: pointer;
}

#filters .selectize-control .selectize-input input {
    width: 100% !important;
    height: 100%;
    cursor: pointer;
}

#filters .selectize-control .selectize-input [data-value] {
    background-image: linear-gradient(to bottom, black, gray);
    border: 0;
    font-size: 14px;
}

#filters .selectize-control .selectize-input input::placeholder {
    font-size: 24px;
    text-transform: capitalize;
    color: black;
}

@media screen and (max-width: 900px) {
    #filters form>div>div {
        font-size: 24px;
    }
}

@media screen and (max-width: 600px) {
    #filters form>div>div {
        font-size: 20px;
    }
}

#filters .selectize-control:after {
    content: ' ';
    display: block;
    position: absolute;
    top: 40%;
    right: 30px;
    margin-top: -8px;
    width: 10px;
    height: 10px;
    border-style: solid;
    border-width: 2px;
    border-color: #808080 #808080 transparent transparent;
    transform: rotate(135deg);
}

@media screen and (max-width: 900px) {
    #filters .selectize-control:after {
        right: 0;
    }
}

@media screen and (max-width: 600px) {
    #filters .selectize-control:after {
        right: 0;
    }
}

#filters .selectize-control:hover:after {
    border-color: black black transparent transparent;
}

#filters .selectize-control:has(.dropdown-active):after {
    top: 50%;
    border-color: transparent transparent #808080 #808080;
    z-index: 2;
}

#filters .selectize-control:has(.dropdown-active):hover:after {
    border-color: transparent transparent black black;
}

#filters .selectize-control .selectize-dropdown option {
    font-size: 14px;
}

.selectize-control.plugin-clear_button .clear {
    height: 10px;
    right: 23px;
}

@media screen and (max-width: 1200px) {

    .form>div>form select {
        font-size: 16px;

        height: 40px;
        width: 100%;
        padding: 0 10px;
        margin-bottom: 20px;
        font-size: 16px;
    }
}

#filters button {
    width: 200px;
    height: 70px;
    border: 0;
    font-weight: 400;
    font-size: 24px;
    text-transform: uppercase;
    letter-spacing: 0px;
    color: white;
    background-color: black;
}

@media screen and (max-width: 1200px) {
    #filters button {
        display: block;
    }
}

@media screen and (max-width: 900px) {
    #filters button {
        position: absolute;
        bottom: 40px;
    }
}

@media screen and (max-width: 600px) {
    #filters button {
        position: relative;
        bottom: 0;
        height: 50px;
        font-size: 20px;
        margin: 0 auto;
    }
}

/************************ CARDS */

.cards {
    width: 100%;
    margin-top: 30px;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 10px;
}

@media screen and (max-width: 1200px) {
    .cards {
        column-gap: 58px;
    }
}

@media screen and (max-width: 900px) {
    .cards {
        column-gap: 10px;
    }
}

@media screen and (max-width: 600px) {
    .cards {
        flex-direction: column;
    }
}

.cards>.card {
    padding: 0 5px;
    background-color: transparent;
    border: 0;
    width: 380px;
    height: 570px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    cursor: pointer;
    transition: 0.2s;
}

@media screen and (max-width: 1200px) {
    .cards>.card {
        row-gap: 10px;
    }
}

@media screen and (max-width: 900px) {
    .cards>.card {
        width: 295px;
        height: 555px;
    }
}

@media screen and (max-width: 600px) {
    .cards>.card {
        width: 290px;
        height: 500px;
    }
}

.cards>.card:hover {
    box-shadow: 1px 1px 10px rgba(0, 0, 0, 0.2);
    z-index: 500;
    transform: scale(1.01);
}

.cards>.card .deal {
    text-transform: capitalize;
    padding: 10px 0;
}

@media screen and (max-width: 900px) {
    .cards>.card .deal {
        padding: 0;
    }
}

.cards>.card>img {
    overflow: hidden;
    height: 100%;
    object-fit: contain;
}

.cards>.card .pid {
    padding: 10px 0;
    font-weight: 100;
    font-size: 24px;
    opacity: 0.5;
}

.cards>.card .title {
    font-weight: 500;
    text-transform: capitalize;
    height: 30%;
}

.cards>.card .properties {
    display: flex;
    justify-content: space-between;
    padding-right: 50px;
}

@media screen and (max-width: 900px) {
    .cards>.card .properties {
        padding-right: 0;
    }
}

.cards>.card .properties div {
    display: inline-block;
    font-size: 24px;
}

.cards>.card .properties img {
    margin-right: 5px;
}

.cards>.card .location img {
    margin-right: 5px;
}

.cards>.card .price {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cards>.card .price>div {
    font-weight: 500;
    font-size: 28px;
}

.cards>.card .price>a {
    justify-content: space-between;
    text-decoration: underline;
    text-transform: uppercase;
    color: rgba(0, 0, 0, 0.75);
    font-size: 18px;
    padding-right: 62px;
}

@media screen and (max-width: 1200px) {
    .cards>.card .price>a {
        padding-right: 0;
    }
}

/************************ SEARCH */

#search {
    display: none;
    margin: 150px 0;
}

@media screen and (max-width: 900px) {
    #footer .container {
        margin-top: 50px;
    }
}

#search button {
    /* display: none; */
    position: absolute;
    width: 200px;
    right: 0;
    bottom: -70px;
}

/************************ FOOTER */

#footer .container {
    margin-top: 200px;
    padding-top: 50px;
    border-top: 1px solid black;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
    gap: 30px;
}

@media screen and (max-width: 900px) {
    #footer .container {
        margin-top: 100px;
        flex-direction: column;
    }
}

@media screen and (max-width: 600px) {
    #footer .container {
        margin-top: 100px;
        flex-direction: column;
    }

    #footer .container *:not(span) {
        font-size: 14px !important;
    }
}

#footer .logo {
    width: 137px;
    cursor: pointer;
}

#footer span {
    font-weight: 500;
    font-size: 24px !important;
    display: block;
    padding-bottom: 20px;
}

#footer a {
    display: block;
    padding-bottom: 10px;
    white-space: nowrap;
    font-size: 20px;
    text-decoration: none;
    color: rgba(40, 42, 46, 1);
}

#footer .container>div {
    width: 75%;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
    gap: 30px;
}

@media screen and (max-width: 900px) {
    #footer .container>div {
        width: 100%;
    }
}

@media screen and (max-width: 600px) {
    #footer .container>div {
        flex-direction: column;
    }
}

#footer .container>div>div>div {
    display: flex;
    flex-direction: column;
}

@media screen and (max-width: 600px) {
    #footer .container>div>div>div {
        flex-direction: row;
        justify-content: flex-start;
        gap: 30px;
    }
}

#footer .container>div>div>div>div {
    display: flex;
    gap: 30px;
    margin-bottom: 30px;
}