/* cookies */
.cookies {
    position: fixed;
    bottom: 0;
    left: 0;
    box-sizing: border-box;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    width: 400px;
    height: 100px;
    color: var(--white-color);
    background-color: var(--primary-color);
    font-size: 14px;
    border-top: 1px solid var(--white-color);
    border-right: 1px solid var(--white-color);
}
.cookies a {
    color: var(--white-color);
    cursor: pointer;
    text-decoration: underline;
    transition: color var(--transition-text);
}
.cookies a:hover {
    color: var(--black-color);
}
.close {
    position: absolute;
    top: 0;
    right: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 24px;
    cursor: pointer;
    transition: color var(--transition-text);
    margin: 8px 8px 0 0;
}
/* ad */
.ad-box {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    box-sizing: border-box;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    flex-direction: column;
    width: 400px;
    height: 150px;
    gap: 20px;
    color: var(--text-color);
    background-color: var(--white-color);
    font-size: 14px;
    box-shadow: 0 0 10px var(--primary-color);
    border-radius: 20px;
    transition: opacity var(--transition-text);
}
.ad-box h2 {
    font-size: 24px;
    font-weight: 400;
}
.ad-close {
    position: absolute;
    top: 0;
    right: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 24px;
    cursor: pointer;
    transition: color var(--transition-text);
    margin: 8px 8px 0 0;;
}
.ad-close:hover {
    color: var(--primary-color);
}

/** gallery **/
.gallery {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 0 auto;
    padding: 0;
    list-style: none;
    width: 100%;
    height: 650px;
    background-image: url(../static/img/illustration1.jpg);
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    transition: background-image 0.5s ease-in-out;
}
.gallery ul {
    align-self: flex-end;
    margin-bottom: 20px;
}
#gallery-state li {
    display: inline-block;
    margin: 0 4px;
    cursor: pointer;
    background-color: rgba(0, 0, 0, 0.4);
    width: 11px;
    height: 11px;
    border-radius: 50%;
    transition: background-color var(--transition-text);
}
.gallery #button-previous, #button-next {
    color: var(--white-color);
    font-size: 36px;
    transition: color, background-color var(--transition-text);
    background-color: rgba(0, 0, 0, 0.3);
    padding: 20px 5px;
    cursor: pointer;
}
.gallery #button-previous {
    border-top-right-radius: 5px;
    border-bottom-right-radius: 5px;
}
.gallery #button-next {
    border-top-left-radius: 5px;
    border-bottom-left-radius: 5px;
}
.gallery #button-previous:hover, #button-next:hover {
    background-color: var(--white-color);
    color: var(--black-color);
}

#gallery-state li:hover {
    background-color: var(--white-color);
}
.active-li {
    background-color: var(--white-color) !important;
}

/** info-box-1 **/
.info-box-1 {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-self: center;
    text-align: center;
    gap: 40px;
    padding: 50px 0;

    color: var(--white-color);
    background-color: var(--primary-color);
    width: 100%;
    height: fit-content;
}
.info-box-1 h1 {
    font-size: 29px;
    font-weight: 600;
}
.info-box-1 p {
    font-size: 18px;
    font-weight: 500;
    line-height: 26px;
}

/** info-box-2 **/
.info-box-2 {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    gap: 40px;
    padding: 50px 0;

    font-size: 18px;
    font-weight: 300;

    color: var(--black-color);
}

/** current-property-box **/
.current-property-box {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    gap: 20px;
    padding: 100px 0;
    width: 100%;
    color: var(--black-color);
    background-color: var(--light-gray-color);
}
.current-property-box hr {
    border: none;
    height: 2px;
    background-color: var(--primary-color);
    width: 100px;
}
.current-property-box h2 {
    font-size: 29px;
    font-weight: 400;
}
.current-property-box h3 {
    line-height: 26px;
    font-size: 18px;
    font-weight: 400;
}
.current-property-box p {
    font-size: 18px;
    font-weight: 300;
    line-height: 26px;
    max-width: 100%;
}
.current-property-box .property-row {
    box-sizing: border-box;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 40px;
    margin: 0 400px;
}
.property {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    gap: 20px;
    padding: 20px 0;
    text-align: center;
    width: 370px;
}
.property img {
    width: 370px;
    height: 250px;
}

/** info-box-3 **/
.info-box-3 {
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    margin: 50px 400px;

    color: var(--black-color);
}
.info-box-3 .info-row {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    align-items: flex-start;
    gap: 40px;
    margin-bottom: 50px;
}
.info-box-3 hr {
    border: none;
    height: 2px;
    background-color: var(--primary-color);
    width: 100px;
}
.info-box {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 20px;
    width: 270px;
}
.info-box h2 {
    font-size: 18px;
    font-weight: 400;
    line-height: 26px;
}
.info-box p {
    font-size: 18px;
    font-weight: 300;
    line-height: 26px;
}
.info-box-3 img {
    width: 270px;
    height: 180px;
    transition: filter var(--transition-text);
    max-width: 100%;
}
.info-box-3 img:hover {
    filter: opacity(0.8);
}

/** protfolio-box **/
.portfolio-box {
    box-sizing: border-box;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: var(--light-gray-color);
    padding: 0 100px;
    height: fit-content;
    width: 100%;
}
.portfolio-box .portfolio-column {
    box-sizing: border-box;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    flex-direction: column;
    gap: 30px;
    text-align: left;
    max-width: 430px;
}
.portfolio-box h2 {
    font-size: 29px;
    font-weight: 400;
}
.portfolio-box p {
    font-size: 18px;
    font-weight: 300;
    line-height: 26px;
}
.portfolio-box i {
    font-style: italic;
}
.portfolio-box hr {
    border: none;
    height: 2px;
    background-color: var(--primary-color);
    width: 50px;
    margin: 0;
}
.portfolio-box img {
    height: 600px;
    margin: 0 160px;
}
.portfolio-box .moto {
    font-size: 18px;
    font-weight: 500;
    line-height: 26px;
}

/** realized-property-sales **/
.realized-property-sales {
    box-sizing: border-box;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    gap: 20px;
    padding: 100px 0;
    width: 100%;
    height: fit-content;
    color: var(--black-color);
}
.realized-property-sales .realized-property-row {
    box-sizing: border-box;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 5px;
    margin: 20px 0;
    width: 100%;
}
.realized-property-row a {
    cursor: default;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    box-sizing: border-box;
    overflow: hidden;
    cursor: pointer;
}
.realized-property-row p {
    z-index: 10;
    position: absolute;
    color: rgba(240, 248, 255, 0);
    transition: color var(--transition-text);
}
.realized-property-row a:hover p {
    color: var(--white-color);
}
.realized-property-sales img {
    width: auto;
    height: 100%;
    max-height: 400px;
    display: block;
    transition: filter var(--transition-text);
}
.realized-property-row img:hover {
    filter: brightness(0.8);
}
.realized-property-sales hr {
    border: none;
    height: 2px;
    background-color: var(--primary-color);
    width: 100px;
}
.realized-property-sales h2 {
    font-size: 29px;
    font-weight: 400;
}
.realized-property-sales p {
    line-height: 18px;
    font-size: 18px;
    font-weight: 300;
    text-align: center;
}

/** reference-box **/
/* Main reference-box container */
.reference-box {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    padding: 50px 0;
    width: 100%;
    color: var(--white-color);
    height: 400px;
    background-image: url(../static/img/background3.jpg);
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    background-attachment: fixed; 
}

/* Slideshow container */
.reference-slide-show {
    position: relative;
    width: 800px;
    height: 100%;
}

/* The reference container which will be draggable */
#references-container {
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
}

/* Adjust individual reference size */
.references {
    position: absolute;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    gap: 20px;
    text-align: center;
    width: 100%;
    height: 400px;

    top: 0;
    left: 0;
    transition: transform 0.4s ease-in-out;
}
.references:not(.active) {
    top: 0;
    left: 100%;
}

@keyframes prev1 {
    from {
        left: 0%;
    }
    to {
        left: 100%;
    }
}
@keyframes prev2 {
    from {
        left: -100%;
    }
    to {
        left: 0%;
    }
}
@keyframes next1 {
    from {
        left: 0%;
    }
    to {
        left: -100%;
    }
}
@keyframes next2 {
    from {
        left: 100%;
    }
    to {
        left: 0%;
    }
}


.reference-box  .fa-chevron-left,.reference-box .fa-chevron-right{
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 36px;
    border: 2px solid var(--white-color);
    border-radius: 50%;
    width: 60px;
    height: 60px;
    transition: background-color var(--transition-text), border var(--transition-text);
    cursor: pointer;
}

#next-reference, #previous-reference {
    margin: 0 auto;
}

#next-reference:hover, #previous-reference:hover {
    border: 2px solid var(--primary-color);
    background-color: var(--primary-color);
}

.references i {
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 36px;
    border: 2px solid var(--white-color);
    border-radius: 50%;
    cursor: default;
    height: 90px;
    width: 90px;
    font-size: 46px;
    margin: 0 auto;
}
line {
    display: block;
    border: 1px solid var(--white-color);
    margin: 0 auto;
    height: 15px;
    width: 0;
}
circle {
    display: block;
    border: 2px solid var(--white-color);
    margin: 0 auto;
    height: 15px;
    width: 15px;
    border-radius: 50%;
}
.reference-icon-rings {
    margin-bottom: 20px;
}
.references h3 {
    font-size: 21px;
    font-weight: 300;
    line-height: 32px;
}
.references h4 {
    font-size: 13px;
    font-weight: 300;
    line-height: 26px;
}
.references p {
    font-size: 11px;
    font-weight: 300;
    line-height: 26px;
}
.references hr {
    border: none;
    height: 2px;
    background-color: var(--white-color);
    width: 50px;
    margin: 0 auto;
}
/** reference-button-box **/
.reference-button-box {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    padding: 50px 0;
    width: 100%;
    color: var(--black-color);
    height: 80px;
}
.none {
    display: none;
}


/** responsivity **/
@media  screen and (max-width: 1530px) {
    .info-box-1 {
        padding: 50px 0;
    }
    .info-box-2 {
        padding: 50px 0;
    }
    .current-property-box {
        padding: 50px 0;
    }
    .info-box-3 {
        margin: 50px 0;
    }
    .portfolio-box {
        padding: 0 50px;
    }
    .realized-property-sales {
        padding: 50px 0;
    }
    .reference-box {
        height: 400px;
    }
    .info-box-4 {
        padding: 50px 0;
    }
    
}
@media  screen and (max-width: 1440px) {
    .info-box-3 .info-row {
        grid-template-columns: repeat(2, 1fr);
    }
    .gallery {
        height: 500px;
    }
    .info-box-1 {
        padding: 50px 0;
    }
    .info-box-2 {
        padding: 50px 0;
    }
    .current-property-box {
        padding: 50px 0;
    }
    .info-box-3 {
        margin: 50px 0;
    }
    .portfolio-box {
        padding: 0 50px;
    }
    .portfolio-box img {
        height: 500px;
        margin: 0 50px;
    }
    .realized-property-sales {
        padding: 50px 0;
    }
    .realized-property-sales .realized-property-row {
        grid-template-columns: repeat(2, 1fr);
    }
    .info-box-4 {
        padding: 50px 0;
    }
    
}
@media  screen and (max-width: 1240px) {
    .info-box-1 {
        padding: 50px 0;
    }
    .info-box-2 {
        padding: 50px 0;
    }
    .current-property-box {
        padding: 50px 0;
    }
    .current-property-box .property-row img {
        height: 200px;
        width: 300px;
    }
    .info-box-3 {
        margin: 50px 0;
    }
    .portfolio-box {
        padding: 50px 0;
        flex-direction: column;
        gap: 100px;
    }
    .portfolio-column {
        align-items: center !important;
    }
    .realized-property-sales {
        padding: 50px 0;
    }
    .reference-box {
        height: 500px;
    }
    .info-box-4 {
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
    }
    .info-box-4-content {
        display: flex;
        justify-content: center;
        align-items: flex-start;
        flex-direction: column;
        gap: 50px;
        width: initial;
    }
    .reference-slide-show {
        width: 600px;
        height: 400px;
    }
}
@media screen and (max-width: 980px) {
    .gallery {
        height: 350px;
    }
    .property-row {
        flex-direction: column;
        gap: 20px;
        margin: 0 20px;
    }
    
}
@media screen and (max-width: 720px) {
    .gallery {
        height: 250px;
    }
    .info-box-3 .info-row {
        grid-template-columns: repeat(1, 1fr);
    }
    .realized-property-sales .realized-property-row {
        grid-template-columns: repeat(1, 1fr);
    }
    .reference-slide-show {
        position: relative;
        width: 400px;
        height: 400px;
    }
    
}
@media screen and (max-width: 550px) {
    .reference-slide-show {
        position: relative;
        width: 800px;
        height: 400px;
    }
    #previous-reference, #next-reference {
        display: none;
    }
    .reference-icon-rings {
        display: none;
    }
}
@media screen and (max-width: 437px) {
    .ad-box {
        width: 100%;
        height: 150px;
        border-radius: 0;
    }
    .ad-box h2 {
        font-size: 18px;
    }
    .property {
        width: 300px;
    }
    .property p {
        width: 300px;
        word-break: break-all;
    }
    .gallery {
        height: 180px;
    }
    main img {
        width: 100%;
        height: auto;
    }
    .current-property-box {
        text-align: center;
    }
    .portfolio-column {
        padding: 0 20px;
    }
    .portfolio-box img {
        width: 100%;
        height: auto;
    }
    .reference-box {
        height: 400px;
    }
    .info-box-4-content {
        justify-content: center;
        align-items: center;
    }
    .info-box-4 .info-line {
        justify-content: center;
        align-items: center;
        flex-direction: column;
    }
}
