@import "./palette.css";
@import "./typography.css";
@import "./header.css";
@import "./footer.css";

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

a {
    text-decoration: none;
}

html {
    scrollbar-width: thin;
    scrollbar-color: var(--accent) var(--background);
    scrollbar-gutter: stable;
}

::-webkit-scrollbar {
    width: 5px;
}

::-webkit-scrollbar-track {
    border-radius: 5px;
}

::-webkit-scrollbar-thumb {
    background-color: var(--accent);
    border-radius: 5px;
}

img {
    image-rendering: -webkit-optimize-contrast;
}

body {
    position: relative;
    font-family: "Montserrat Alternates";
    color: #000;
}

#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #393939;
    z-index: 1;
}

#preloader.hide-preloader {
    animation: hidePreloader 1s;
}

#preloader.preloader-hidden {
    display: none;
}

@keyframes hidePreloader {
    0% {
        opacity: 1;
    }

    100% {
        opacity: 0;
    }
}

.container {
    max-width: 1240px;
}

section {
    padding: 0px 0 70px 0;
}

.flats {
    padding-top: 25px;
}

.card {
    position: relative;
    margin-bottom: 10px;
    margin-top: 10px;
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
}

.card:hover {
    box-shadow: 0px 0px 20px -6px rgba(211, 148, 90, 0.9);
}

.card-stats {
    padding: 15px;
}

.fav__ico {
    position: absolute;
    right: 3%;
    top: 2%;
    z-index: 1;
}

.fav__ico._active path {
    fill: #d3945a;
}

.flat__img {}

.flats .card .btn {
    display: block;
}

.flat__description {
    padding: 0;
}

.flat__item_link {
    position: absolute;
    width: 100%;
    height: 100%;
    left: 0;
    right: 0;
}

.btn:focus,
.btn.focus {
    outline: 0;
    box-shadow: none;
}

a:hover {
    text-decoration: none;
}

.fav-row {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
}

.fav-row .card {
    margin-right: 30px;
}

.pagination {}

.paginate {
    display: flex;
    padding: 0 !important;

    margin-top: 20px !important;
    margin-bottom: 40px !important;
}

.pagination__item {}

.pagination__link {
    border: 1px solid #d1d7dc;
    box-sizing: border-box;
}

.pagination__item:last-child .pagination__link {
    border: 2px solid #d3945a;
    border-radius: 1px 20px;
    margin-left: 30px;
}

.pagination__link {
    padding: 10px 20px !important;
    text-decoration: none;
    color: var(--black);
    font-weight: 700;
}

.pagination__link:hover,
.pagination__link.active {
    color: var(--white);
    background-color: #d3945a;
    border-color: #d3945a;
}

/******************** callback button **********************/
#uptocall-mini {
    cursor: pointer;
    background-color: #0c257c;
    border-radius: 50%;
    box-shadow: none;
    cursor: pointer;
    width: 64px;
    height: 64px;
    text-align: center;
    position: fixed;
    right: 16px;
    bottom: 24px;
    z-index: 999;
    transition: 0.3s;
    outline: none;
}

#uptocall-mini .uptocall-mini-phone {
    display: flex;
    align-items: center;
    justify-content: center;
}

.uptocall-mini-phone svg {
    height: 32px;
    width: 32px;
}

#uptocall-mini .uptocall-mini-phone {
    -moz-border-radius: 50% !important;
    -webkit-border-radius: 50% !important;
    border-radius: 50% !important;
    -moz-background-clip: padding;
    -webkit-background-clip: padding-box;
    background-clip: padding-box;
    background-color: rgba(12, 37, 124, 0.5);
    width: 64px;
    height: 64px;
    -webkit-animation: uptocallmini 1.5s 0s ease-out infinite;
    -moz-animation: uptocallmini 1.5s 0s ease-out infinite;
    animation: uptocallmini 1.5s 0s ease-out infinite;
}

@media (max-width: 991px) {

    #uptocall-mini,
    #uptocall-mini .uptocall-mini-phone {
        width: 56px;
        height: 56px;
    }

    .uptocall-mini-phone svg {
        height: 23px;
        width: 23px;
    }
}

@media (max-width: 768px) {

    #uptocall-mini,
    #uptocall-mini .uptocall-mini-phone {
        width: 46px;
        height: 46px;
    }

    .uptocall-mini-phone svg {
        height: 19px;
        width: 19px;
    }
}

@-webkit-keyframes uptocallphone {
    0% {
        -ms-transform: rotate(0deg);
        -webkit-transform: rotate(0deg);
        transform: rotate(0deg);
    }

    25% {
        -ms-transform: rotate(30deg);
        -webkit-transform: rotate(30deg);
        transform: rotate(30deg);
    }

    50% {
        -ms-transform: rotate(0deg);
        -webkit-transform: rotate(0deg);
        transform: rotate(0deg);
    }

    75% {
        -ms-transform: rotate(-30deg);
        -webkit-transform: rotate(-30deg);
        transform: rotate(-30deg);
    }

    100% {
        -ms-transform: rotate(0deg);
        -webkit-transform: rotate(0deg);
        transform: rotate(0deg);
    }
}

@-moz-keyframes uptocallphone {
    0% {
        -ms-transform: rotate(0deg);
        -webkit-transform: rotate(0deg);
        transform: rotate(0deg);
    }

    25% {
        -ms-transform: rotate(30deg);
        -webkit-transform: rotate(30deg);
        transform: rotate(30deg);
    }

    50% {
        -ms-transform: rotate(0deg);
        -webkit-transform: rotate(0deg);
        transform: rotate(0deg);
    }

    75% {
        -ms-transform: rotate(-30deg);
        -webkit-transform: rotate(-30deg);
        transform: rotate(-30deg);
    }

    100% {
        -ms-transform: rotate(0deg);
        -webkit-transform: rotate(0deg);
        transform: rotate(0deg);
    }
}

@keyframes uptocallphone {
    0% {
        -ms-transform: rotate(0deg);
        -webkit-transform: rotate(0deg);
        transform: rotate(0deg);
    }

    25% {
        -ms-transform: rotate(30deg);
        -webkit-transform: rotate(30deg);
        transform: rotate(30deg);
    }

    50% {
        -ms-transform: rotate(0deg);
        -webkit-transform: rotate(0deg);
        transform: rotate(0deg);
    }

    75% {
        -ms-transform: rotate(-30deg);
        -webkit-transform: rotate(-30deg);
        transform: rotate(-30deg);
    }

    100% {
        -ms-transform: rotate(0deg);
        -webkit-transform: rotate(0deg);
        transform: rotate(0deg);
    }
}

@-webkit-keyframes uptocallmini {
    0% {
        box-shadow: 0 0 8px 6px rgba(23, 167, 167, 0),
            0 0 0px 0px rgba(0, 0, 0, 0), 0 0 0px 0px rgba(23, 167, 167, 0);
    }

    10% {
        box-shadow: 0 0 8px 6px #0c257c, 0 0 12px 10px rgba(0, 0, 0, 0),
            0 0 12px 14px #0c257c;
    }

    100% {
        box-shadow: 0 0 8px 6px rgba(23, 167, 167, 0),
            0 0 0px 40px rgba(0, 0, 0, 0), 0 0 0px 40px rgba(23, 167, 167, 0);
    }
}

@-moz-keyframes uptocallmini {
    0% {
        box-shadow: 0 0 8px 6px rgba(23, 167, 167, 0),
            0 0 0px 0px rgba(0, 0, 0, 0), 0 0 0px 0px rgba(23, 167, 167, 0);
    }

    10% {
        box-shadow: 0 0 8px 6px #0c257c, 0 0 12px 10px rgba(0, 0, 0, 0),
            0 0 12px 14px #0c257c;
    }

    100% {
        box-shadow: 0 0 8px 6px rgba(23, 167, 167, 0),
            0 0 0px 40px rgba(0, 0, 0, 0), 0 0 0px 40px rgba(23, 167, 167, 0);
    }
}

@keyframes uptocallmini {
    0% {
        box-shadow: 0 0 8px 6px rgba(23, 167, 167, 0),
            0 0 0px 0px rgba(0, 0, 0, 0), 0 0 0px 0px rgba(23, 167, 167, 0);
    }

    10% {
        box-shadow: 0 0 8px 6px #0c257c, 0 0 12px 10px rgba(0, 0, 0, 0),
            0 0 12px 14px #0c257c;
    }

    100% {
        box-shadow: 0 0 8px 6px rgba(23, 167, 167, 0),
            0 0 0px 40px rgba(0, 0, 0, 0), 0 0 0px 40px rgba(23, 167, 167, 0);
    }
}

@media (max-width: 1024px) {
    .fav-row {
        grid-template-columns: 1fr 1fr 1fr;
    }
}

@media (max-width: 850px) {
    .fav-row {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    section {
        padding: 0 35px;
    }
}

@media (max-width: 600px) {
    .pagination__link {
        padding: 5px 15px !important;
        text-decoration: none;
        color: var(--black);
        font-weight: 500;
        font-size: 10px;
    }

    .pagination__item:last-child .pagination__link {
        margin-left: 5px;
    }


    .fav-row {
        grid-template-columns: 1fr;
    }

    .fav-row .card {
        margin-right: 0;
        display: grid;
        grid-template-columns: 1fr 1.5fr;
    }

    .fav-row .card .card-img-top {}

    .fav-row .card .card-stats {
        margin: auto;
        border-left: 1px solid var(--lightGray);
        padding-right: 0;
    }

    .fav-row .flat__img {
        padding-right: 0 !important;
        padding: 15px;
    }

    .fav-row .card h4 {
        letter-spacing: unset;
        margin: 0;
    }

    .fav-row .card h3 {
        font-size: 18px;
    }

    .fav-row .card .sub_two {}

    .fav-row .card .fav__ico {
        right: 0%;
        left: 3%;
        top: 5%;
    }
}

@media(max-width: 600px) {}