/*==================================================
EGT Real Estate Portal
Frontend Styles
==================================================*/


/*==================================================
Reset
==================================================*/

*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}

img{
    max-width:100%;
    display:block;
}

a{
    text-decoration:none;
}

body{
    background:#f6f8fb;
    color:#222;
    font-family:inherit;
}


/*==================================================
Common Layout
==================================================*/

.egt-container{

    width:100%;

    max-width:1400px;

    margin:0 auto;

    padding:25px;

}

/*==================================================
Common Components
==================================================*/


/* Card */

.egt-card{

    background:#fff;

    border-radius:18px;

    overflow:hidden;

    box-shadow:0 8px 25px rgba(0,0,0,.08);

    transition:.35s;

}

.egt-card:hover{

    transform:translateY(-6px);

    box-shadow:0 18px 40px rgba(0,0,0,.12);

}


/* Button */

.egt-btn{

    display:block;

    width:100%;

    padding:14px;

    text-align:center;

    background:#0F766E;

    color:#fff;

    border-radius:10px;

    font-weight:600;

    transition:.3s;

}

.egt-btn:hover{

    background:#0b5f58;

    color:#fff;

}


/* Title */

.egt-title{

    font-size:22px;

    font-weight:700;

    line-height:1.4;

}

.egt-title a{

    color:#222;

}

.egt-title a:hover{

    color:#0F766E;

}


/* Price */

.egt-price{

    color:#0F766E;

    font-size:32px;

    font-weight:700;

}

/*==================================================
Property Listing
==================================================*/

.egt-properties-wrapper{

    display:grid;

    grid-template-columns:repeat(4,minmax(0,1fr));

    gap:28px;

}


/* Card */

.egt-property-card{

    display:flex;

    flex-direction:column;

}

.egt-property-image{

    position:relative;

    overflow:hidden;

}

.egt-property-image img{

    width:100%;

    height:240px;

    object-fit:cover;

    transition:.4s;

}

.egt-property-card:hover .egt-property-image img{

    transform:scale(1.06);

}


/* Property Type Badge */

.egt-property-type{

    position:absolute;

    top:15px;

    left:15px;

    background:#0F766E;

    color:#fff;

    padding:7px 14px;

    border-radius:30px;

    font-size:13px;

    font-weight:600;

}


/* Content */

.egt-property-content{

    display:flex;

    flex-direction:column;

    flex:1;

    padding:22px;

}


/* Title */

.egt-property-content .egt-title{

    margin-bottom:12px;

}


/* Location */

.egt-property-location{

    color:#666;

    font-size:15px;

    margin-bottom:18px;

}


/* Price */

.egt-property-content .egt-price{

    margin-bottom:22px;

}


/* Button */

.egt-property-content .egt-btn{

    margin-top:auto;

}
/*==================================================
Single Property
==================================================*/

.egt-single-layout{

    display:grid;

    grid-template-columns:2fr 1fr;

    gap:40px;

    margin:40px 0;

}


/* Left */

.egt-left{

    width:100%;

    min-width:0;

}


/* Right */

.egt-right{

    background:#fff;

    border-radius:18px;

    padding:35px;

    box-shadow:0 8px 25px rgba(0,0,0,.08);

    position:sticky;

    top:30px;

}


/* Single Title */

.egt-single-title{

    font-size:34px;

    font-weight:700;

    color:#222;

    margin-bottom:20px;

}


/* Single Price */

.egt-single-price{

    font-size:42px;

    font-weight:700;

    color:#0F766E;

    margin-bottom:25px;

}


/* Property Meta */

.egt-single-meta{

    display:flex;

    flex-direction:column;

    gap:18px;

}

.egt-single-meta p{

    color:#555;

    line-height:1.8;

    margin:0;

}


/* Description */

.egt-description-card{

    background:#fff;

    border-radius:18px;

    padding:35px;

    margin-top:45px;

    box-shadow:0 8px 25px rgba(0,0,0,.08);

}

.egt-description-card h2{

    font-size:28px;

    margin-bottom:20px;

}

.egt-description-card p{

    line-height:1.9;

    color:#555;

}

/*==================================================
Gallery (Splide)
==================================================*/

.egt-property-slider{
    width:100%;
}

.splide__track{
    border-radius:18px;
    overflow:hidden;
}

.egt-slider-image{
    width:100%;
    height:650px;
    object-fit:cover;
}

.splide__slide{
    background:#fff;
}

.splide__arrow{

    width:50px;
    height:50px;

    background:#fff;

    opacity:1;

    box-shadow:0 10px 25px rgba(0,0,0,.15);

}

.splide__arrow svg{

    fill:#0F766E;

}

.splide__arrow:hover{

    background:#0F766E;

}

.splide__arrow:hover svg{

    fill:#fff;

}

.splide__pagination{

    bottom:20px;

}

.splide__pagination__page{

    width:10px;
    height:10px;

    background:#ddd;

    opacity:1;

}

.splide__pagination__page.is-active{

    background:#0F766E;

    transform:scale(1.3);

}


/*==================================================
Related Properties
==================================================*/

.egt-related-properties{

    margin-top:60px;

}

.egt-related-properties h2{

    font-size:30px;

    margin-bottom:30px;

}

.egt-related-properties .egt-properties-wrapper{

    display:grid;

    grid-template-columns:repeat(4,1fr);

    gap:24px;

}

/*==================================================
Responsive
==================================================*/


/* Large Tablet */

@media (max-width:1200px){

    .egt-properties-wrapper{

        grid-template-columns:repeat(3,1fr);

    }

}


/* Tablet */

@media (max-width:1024px){

    .egt-container{

        padding:20px;

    }

    .egt-single-layout{

        grid-template-columns:1fr;

    }

    .egt-right{

        position:relative;

        top:auto;

        margin-top:30px;

    }

    .egt-slider-image{

        height:420px;

    }

    .egt-properties-wrapper{

        grid-template-columns:repeat(2,1fr);

    }

    .egt-related-properties .egt-properties-wrapper{

        grid-template-columns:repeat(2,1fr);

    }

}


/* Mobile */

@media (max-width:767px){

    .egt-container{

        padding:15px;

    }

    .egt-properties-wrapper{

        grid-template-columns:1fr;

        gap:18px;

    }

    .egt-property-image img{

        height:220px;

    }

    .egt-property-content{

        padding:18px;

    }

    .egt-title{

        font-size:18px;

    }

    .egt-price{

        font-size:26px;

    }

    .egt-single-title{

        font-size:26px;

    }

    .egt-single-price{

        font-size:34px;

    }

    .egt-slider-image{

        height:260px;

    }

    .egt-right{

        padding:20px;

    }

    .egt-description-card{

        padding:20px;

    }

    .egt-related-properties .egt-properties-wrapper{

        grid-template-columns:1fr;

    }

}