@import url('https://fonts.googleapis.com/css2?family=Onest:wght@100..900&display=swap');

:root {
    --left-offset: 30px;
    --top-offset: 30px;
    --border-width: 1px;
}



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

}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: 'Onest';
}

img {
    max-width: 100%;
}


.black {
    background-color: #1D262B;
}

.text-black {
    color: #1D262B;
}

.white {
    color: white;
}

/* utility class */

.flex {
    display: flex;
}

.flex-col {
    flex-flow: column;
}


.between {
    justify-content: space-between;
}

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

.item-center {
    align-items: center;
}


.grid {
    display: grid;
}

.card {
    width:320px;
    height: 240px;
    margin: 0 auto;
    padding: 30px;
    position: relative;
    z-index: 10;
    background-color: lightblue;
    isolation: isolate;
    clip-path: polygon(10% 0 ,100% 0, 100%  100%, 0  100%, 0  10%);
    
}

.mycard {
  
    display: flex;
    justify-content: space-between;
    position: relative;
    width: 324px;
    height: 240px;
    z-index: 1;

    background: white;
    padding: 42px 24px 20px 16px;
    color: white;
    flex-flow: column;
    clip-path: polygon(var(--top-offset) 0 ,110% 0, 110%  110%, 0  110%, 0  var(--left-offset));
}

.mycard .border {
    width: calc(100% - var(--border-width) * 2);
    height: calc(100% - var(--border-width) * 2);
    display: block;
    position: absolute;
    background-color: #1D262B;
    z-index: -1;
    left: var(--border-width);
    top: var(--border-width);
    clip-path: polygon(var(--top-offset) 0 ,100% 0, 100%  100%, 0  100%, 0  var(--left-offset));
}

.mycard-link {
    color: white;
    text-decoration: none;
    display: flex;
    align-items: center;
}

.mycard-link::after {
    content: url('../images/line_folow.svg');
    margin-left: 16px;
}

.mycard-time {
    border: 1px solid white;
    border-radius: 30px;
    padding: 14px 24px;
}

.mycard-content {
    font-size: 18px;
    font-family: 'Onest';
    max-width: 240px;
}

.mycard-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: .8rem;
}

.mycard-footer a {
    transition: all 500ms;
}

.mycard-footer a:hover {
    color: #0481d4;
}

.container {
    /* display: grid; */
    max-width: 1024px;
    /* margin: 0 auto; */
    margin-inline: auto;
    /* outline: 1px solid lightgray; */
}



.header-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-block-end: 45px;

    h2 {
        font-size: 2.8rem;
        font-weight: 400;
    }
}




.link {
    color: white;
    text-decoration: none;
    display: flex;
    align-items: center;
    transition: all 500ms;
}

.link:hover {
    color: #0481d4;
}



/* activities style */

.activities__list {
    display: grid;
    grid-template-columns: repeat(4, 236px);
    grid-template-rows: 219px;
    overflow: hidden;
    justify-content: space-between;
}

.activitie__card {
    display: flex;
    flex-flow: column nowrap;
    background-color: #F5F5F5;
    color: black;
    clip-path: polygon(var(--top-offset) 0 ,110% 0, 110%  110%, 0  110%, 0  var(--left-offset));
    padding: 22px 25px;
    height: 220px;
    justify-content: space-between;
}

.activitie__link {
    color: #016BB2;
    text-decoration: none;
    font-size: 0.7rem;
}

.activitie__header {
    font-size: 1.1rem;
    font-weight: 400;
    max-inline-size: 15ch;
    min-block-size: 6ch;
    margin-bottom: 10px;
}

.activitie__icon {
    max-inline-size: 70px;
    max-block-size: 60px;
    margin-top: auto;
}

.activities__section {
    padding-block-end: 100px;
}

/* action style */

.actions__list {
    list-style-type: none;
    display: grid;
    grid-template-columns: repeat(3,1fr);
    column-gap: 3px;
    margin-block-end: 100px;

    .action__card {
        block-size: 116px;
    }
}

.action__card {
    display: flex;
    column-gap: 23px;
    border: 1px solid lightgray;
    color: #142D1F;
    padding: 16px 30px;
    overflow: hidden;

    .left__part {
        color: #016BB2;
        display:flex;
        align-items: center;
        justify-content: center;

        h2 {
            font-size: 1.6rem;
            font-weight: 300;

            .bigtext {
                font-size: 1.3em;
                font-weight: 500;
            }
        }
    }

    .right__part {
        display: flex;
        flex-flow: column nowrap;
        justify-content: space-between;

        h3 {
            font-size: 1.4rem;
            font-weight: 400;
            line-height: 21px;
        }

        span {
            font-size: 0.8rem;
            font-weight: 400;
            color: #016BB2;
            max-inline-size: 20ch;

        }
    }
}

.action__card-active {
    background-color: #016BB2;
    border:none;
    color: white;
    clip-path: polygon(var(--top-offset) 0 ,110% 0, 110%  110%, 0  110%, 0  var(--left-offset));

    .left__part {
        color: #FAFCFF;
    }

    .right__part {
        span {
            color: white;
        }
    }
}

/* input form style */
.filter__section {
    padding-block-end: 70px;
}

.filter__form {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}


.checkbox__wrapper {
    display: flex;
    column-gap: 8px;
}

label {
    display: inline-flex;
    justify-content: center;
    align-items: center;
}


input:checked + .checkbox__input {
    background-color: #016BB2;
    color: white;
}

input:has( + .checkbox__input) {
    display: none;
}

.checkbox__input {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #85878B;
    color: black;
    border-radius: 40px;
    user-select: none;
    cursor: pointer;
    font-weight: 500;
    padding-block: 18px;
    padding-inline: 25px;
    text-transform: capitalize;
    font-size: 0.9rem;
}

.input__wrapper {
    display: flex;
    color: black;
    align-items: center;
    border: 1px solid #85878B;;
    border-radius: 50px;
    padding-inline: 18px;
    font-size: 0.9rem;
    gap: 8px;

    input[type="text"] {
        border: none;
        outline: none;
        font-size: inherit;
        padding-block: 10px;
        max-inline-size: 20ch;
    }

    .input__element:not(:last-child) {
        border-right: 2px solid lightgray;
    }
}

.filter__form__wrapper {
    padding-block-end: 32px;
}

.filter__result__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(470px, 1fr));
    gap: 22px;
}

.card__project {
    color: black;
    border-block-end: 1px solid lightgray;
    padding-block-end: 28px;

    .card__image {
        width: 100%;
        border-radius: 5px;
    }
    
    .card__image__wrapper {
        margin-block-end: 16px;
    }

    .card__project__header {
        font-size: 1.5rem;
        font-weight: 400;
        margin-block-end: 15px;
    }

    .card__project__metro {
        display: flex;
        align-items: center;
        gap: 30px;
        margin-block-end: 10px;
    }

    .time__bage {
        display: flex;
        gap: 5px;
        align-items: center;
        font-size: 0.9rem; 

        &::before {
            content: "";
            background-image: url("../images/icons/pedestrian.png");
            background-size: contain;
            background-repeat: no-repeat;
            background-position: center center;
            width: 17px;
            height: 17px;
            filter: opacity(0.7);
            display: block;
        }
    }
    
    .metro__bage {
        display: flex;
        align-items: center;
        gap: 10px;
        font-size: 0.9rem; 

        &::before {
            content: "";
            display: block;
            width: 10px;
            height: 10px;
            border-radius:100%;
            background-color: #8FBC57;
        }
    }
    .summary__info {
        display: flex;
        flex-flow: column nowrap;
        gap: 5px;
    }
    .summary__info__item {
        display: flex;
        justify-content: space-between;
    }
}

    .card__info {
        border-block-end: 1px solid lightgray;
        padding-block-end: 10px;
    }


    .info__card {


        display: flex;
        flex-flow: column;
        justify-content: space-between;
        width: 100%;
        height: 100%;
        background-color: #1D262B;
        color: white;
        clip-path: polygon(var(--top-offset) 0 ,110% 0, 110%  110%, 0  110%, 0  var(--left-offset));
        padding: 34px;

        .info__card__header {
            display: flex;
            align-items: center;
            font-size: 1.5rem;
            font-weight: 400;
            max-inline-size: 15ch;
        }

        .info__card__footer {
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        .info__card__desc {
            max-inline-size: 20ch;
            font-size: 1.15rem;
        }

        .info__card__btn {
            display: flex;
            align-items: center;
            padding: 18px 26px;
            background-color: #1D262B;
            border: 2px solid #016BB2;
            border-radius: 5px;
            text-decoration: none;
            color: white;
            font-size: 0.9rem;
            max-height: 50px;
        }
    }

    .other__realty__section {
        padding-block-end: 100px;
    }

    .realty__list {
        display: grid;
        grid-template-columns: repeat(3, minmax(324px,1fr));
        gap: 18px;
        grid-auto-rows: 240px;
        list-style-type: none;
        
    }
        
    .realty__card {
        display: flex;
        /* border: 1px solid blue; */
        height: 100%;
        flex-flow: column nowrap;
        justify-content: space-between;
        padding: 24px 18px;
        color: white;
        position: relative;
        border-radius: 10px;
        overflow: hidden;
    }

    .realty__card__link {
        padding: 18px 28px;
        display: inline-block;
    }


    .realty__header {
        max-inline-size: 10ch;
        font-size: 1.5rem;
        font-weight: 400;
    }

    .realty__footer {
        text-align: right;
    }


    .realty__card__background {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        z-index: -1;
        object-fit: cover;
    }
