*{
    margin:0;
    padding:0;
    box-sizing:border-box;
    font-family:Arial, sans-serif;
}

body{
    background:#f5f7fb;
    color:#222;
}

/* HEADER */

.main-header{
    
    width:100%;
    height:100px;
    background:white;
    display:flex;
    justify-content:space-between;
    align-items:center;
    padding:0 60px;
    position:sticky;
    top:0;
    z-index:25000;
   box-shadow:
0 2px 0 #e4e7ef;
    border-bottom:
1px solid #e4e7ef;
}

.logo{
    display:flex;
    align-items:center;
}

.logo-img{
    height:80px;
    width:auto;
    object-fit:contain;
}

.call-btn{
    background:#007003;
    color:white;
    text-decoration:none;
    padding:14px 28px;
    border-radius:12px;
    font-weight:bold;
    transition:0.3s;
}

.call-btn:hover{
    opacity:0.9;
}

/* MOBILE---- Just onece */ 

@media(max-width:768px){

    .main-header{
        padding:0 20px;
    }

    .call-btn{
        padding:12px 18px;
        font-size:14px;
    }

}

.results-section{
    padding:60px 20px;
}

.results-container{
    max-width:1300px;
    margin:auto;
}

.results-title{
    margin-bottom:35px;
    color:#000881;
}

.houses-grid{

    display:grid;

    grid-template-columns:
    repeat(auto-fit,minmax(340px,340px));

    gap:35px;

    justify-content:center;
}

.house-card{

    background:white;

    border-radius:22px;

    overflow:hidden;

    transition:
    transform 0.28s ease,
    box-shadow 0.28s ease;

    cursor:pointer;

    box-shadow:
    0 4px 14px rgba(0,0,0,0.06);
}
.house-card:hover{

    transform:
    translateY(-6px);

    box-shadow:
    0 18px 38px rgba(0,0,0,0.12);
}

.house-box:hover,
.house-card:hover{
    transform:translateY(-5px);
}

.house-thumb{
    transition:
transform 0.35s ease;
    width:100%;
    height:260px;
    object-fit:cover;
    opacity:0;
}
.house-card:hover
.house-thumb{

    transform:scale(1.04);
}
.house-thumb.loaded{

    opacity:1;
}

.house-info,
.house-content{
    padding:25px;
}

.house-info h2,
.house-content h3{
    margin-bottom:15px;
    color:#000881;
}

.house-price{
    margin-bottom:20px;
    color:#555;
    font-weight:bold;
    font-size:18px;
}

.view-btn{
    width:100%;
    height:50px;
    border:none;
    background:#007003;
    color:white;
    border-radius:12px;
    font-size:16px;
    font-weight:bold;
    cursor:pointer;
    text-decoration:none;

    display:flex;
    justify-content:center;
    align-items:center;
}

.no-results{
    background:white;
    padding:40px;
    border-radius:20px;
    text-align:center;
    font-size:20px;
}

.viewer-container{
    max-width:1300px;
    margin:auto;
    padding:40px 20px;
}

.viewer-section{
    margin-bottom:60px;
}

.viewer-section h2{
    margin-bottom:25px;
    color:#000881;
}

.viewer-images{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(300px,1fr));
    gap:25px;
}

.image-link{
    display:block;
    border-radius:20px;
    overflow:hidden;
}

.viewer-image{
    opacity:0;

transition:
opacity 0.35s ease;
    width:100%;
    border-radius:20px;
    transition:0.3s;
    cursor:pointer;
}
.viewer-image.loaded{

    opacity:1;
}

.viewer-image:hover{
    transform:scale(1.03);
}

.viewer-videos{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(350px,1fr));
    gap:25px;
}

.viewer-video{
    width:100%;
    border-radius:20px;
}

.download-area{
    margin-top:40px;
    text-align:center;
}

.download-btn{
    background:#000881;
    color:white;
    border:none;
    height:60px;
    padding:0 40px;
    border-radius:16px;
    font-size:17px;
    font-weight:bold;
    opacity:0.5;
    cursor:not-allowed;
}

.house-details-box{
    background:white;
    border-radius:25px;
    padding:40px;
    margin-bottom:50px;
    box-shadow:0 5px 20px rgba(0,0,0,0.08);
}

.details-title{
    color:#000881;
    margin-bottom:30px;
}

.details-grid{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(220px,1fr));
    gap:25px;
}

.detail-item{
    background:#f5f7fb;
    padding:20px;
    border-radius:18px;
}

.detail-item span{
    display:block;
    margin-bottom:10px;
    color:#666;
    font-size:14px;
}

.detail-item strong{
    color:#222;
    font-size:18px;
}

.gallery-modal{

    position:fixed;

    top:0;
    left:0;

    width:100%;
    height:100%;

    background:rgba(0,0,0,0.92);

    display:none;

    justify-content:center;
    align-items:center;

    z-index:999999;

    padding:20px;
}

.gallery-image{

    max-width:100%;
    max-height:100%;

    border-radius:20px;
}

.close-gallery{

    position:absolute;

    top:25px;
    right:35px;

    color:white;

    font-size:50px;

    cursor:pointer;

    z-index:9999999;
}

.pdf-download-btn{

    width:100%;
    height:50px;

    background:#000881;

    color:white;

    border-radius:14px;

    display:flex;
    justify-content:center;
    align-items:center;

    text-decoration:none;

    font-weight:bold;

    margin-top:15px;

    transition:0.3s;
}

.pdf-download-btn:hover{

    background:#007003;
}

/* EXPLORER */

.explorer-layout{

    display:flex;

    align-items:flex-start;
}

.explorer-sidebar{

    position:fixed;
    z-index:9999;

    top:80px;
    left:0;

    width:320px;

    height:calc(100vh - 80px);

    overflow-y:auto;

    background:white;

    padding:30px;
}

.sidebar-title{

    text-align:center;

    font-size:30px;

    font-weight:1000;

    color:#000881;

    margin-bottom:35px;

    font-family:'Poppins',sans-serif;

    letter-spacing:-2px;

    line-height:1;
}

.sidebar-form{

    display:flex;
    flex-direction:column;

    gap:18px;
}

.sidebar-form select{

    height:55px;

    border-radius:14px;

    border:1px solid #ddd;

    padding:0 15px;

    font-size:15px;
}

.sidebar-buttons{

    position:sticky;

    bottom:20px;

    margin-top:30px;

    background:white;

    padding-top:10px;

    z-index:10000;
}

.reset-btn{

    width:100%;

    height:58px;

    border:none;

    border-radius:14px;

    background:#ffdede;

    color:#c40000;

    font-size:17px;

    font-weight:700;

    margin-top:18px;

    cursor:pointer;

    transition:0.3s;

    font-family:'Poppins',sans-serif;
}

.back-btn{

    width:100%;

    height:58px;

    border:none;

    border-radius:14px;

    background:#dce8ff;

    color:#000881;

    font-size:17px;

    font-weight:700;

    margin-top:14px;

    cursor:pointer;

    transition:0.3s;

    font-family:'Poppins',sans-serif;
}

.reset-btn:hover,
.back-btn:hover{

    transform:translateY(-2px);
}


.reset-btn{

    width:100%;

    height:58px;

    border:none;

    border-radius:14px;

    background:#ffdede;

    color:#c40000;

    font-size:17px;

    font-weight:700;

    margin-top:18px;

    cursor:pointer;

    transition:0.3s;

    font-family:'Poppins',sans-serif;
}

.reset-btn:hover{

    transform:translateY(-2px);
}

.back-btn{

    width:100%;

    height:58px;

    border:none;

    border-radius:14px;

    background:#dce8ff;

    color:#000881;

    font-size:17px;

    font-weight:700;

    margin-top:14px;

    cursor:pointer;

    transition:0.3s;

    font-family:'Poppins',sans-serif;
}

.back-btn:hover{

    transform:translateY(-2px);
}

.explorer-content{

    flex:1;
    position:relative;

    z-index:1;

    margin-left:320px;

    padding:30px;
}

.results-toolbar{

    width:100%;

    height:70px;

    background:white;

    border-radius:18px;

    display:flex;

    align-items:center;

    justify-content:flex-start;

    padding:0 30px;

    margin-bottom:35px;

    box-shadow:
    0 5px 20px rgba(0,0,0,0.05);
}

.results-text{

    font-size:18px;

    font-weight:bold;

    color:#666;
}


/* MOBILE again once only*/

@media(max-width:900px){

    .explorer-layout{

        flex-direction:column;
    }

    .explorer-sidebar{
        position:relative;

        top:0;
        left:0;

        width:100%;

        height:auto;
    }

    .explorer-content{

        width:100%;

        margin-left:0;
    }

    .results-count{

        position:relative;

        top:0;
        right:0;
    }

}


/* MOBILE FILTER SYSTEM Full Mobile Starts here */

.mobile-filter-bar{

    display:none;
}

.close-sidebar-btn{

    display:none;
}

.sidebar-overlay{

    display:none;
}

@media(max-width:768px){
    
    /* MOBILE VIEW HOUSE COMPACT */

.viewer-container{

    padding:14px;
}

.house-details-box{

    padding:16px;

    border-radius:16px;
}

.details-title{

    font-size:26px;

    margin-bottom:14px;
}

.details-grid{

    display:grid;

    grid-template-columns:1fr 1fr;

    gap:8px;
}

.detail-item{

    padding:10px;

    border-radius:12px;
}

.detail-item span{

    font-size:11px;
}

.detail-item strong{

    font-size:13px;
}

.viewer-section{

    margin-top:18px;
}

.viewer-section h2{

    font-size:22px;

    margin-bottom:12px;
}
    
.explorer-sidebar 
.sidebar-title{

    font-size:28px;

    font-weight:1000;

    white-space:nowrap;

    line-height:1;

    margin-bottom:18px;
}

    .mobile-filter-bar{

    display:flex;

    align-items:center;

    padding:12px 16px 4px 16px;

    background:transparent;

    position:sticky;

    top:80px;

    z-index:9998;
}

    .mobile-filter-btn{

    display:flex;

    align-items:center;

    justify-content:center;

    gap:8px;

    padding:0 18px;

    height:48px;

    border:none;

    border-radius:16px;

    background:#000881;

    color:white;

    font-size:16px;

    font-weight:700;

    font-family:'Poppins',sans-serif;

    box-shadow:0 4px 14px rgba(0,0,0,0.12);
}

    .explorer-sidebar{
        box-shadow:
4px 0 18px rgba(0,0,0,0.04);

        position:fixed;

        left:-100%;

        top:0px;

        width:45%;

        max-width:180px;

        height:100vh;

        background:white;

        z-index:21000;

        transition:0.35s;

        padding-top:60px;
        justify-content:flex-start;
    }

    .explorer-sidebar.active{

        left:0;
    }

    .close-sidebar-btn{

        display:block;

        position:absolute;

        top:20px;

        right:20px;

        width:42px;

        height:42px;

        border:none;

        border-radius:50%;

        background:#f1f1f1;

        font-size:18px;
    }

    .sidebar-overlay{

        position:fixed;

        inset:0;

        background:rgba(0,0,0,0.45);

        z-index:9999;

        display:none;
    }

    .sidebar-overlay.active{

        display:block;
    }
    
    .explorer-sidebar
    .sidebar-title{

    font-size:30px;

    margin-bottom:22px;
}

.explorer-sidebar select{

    height:40px;

    font-size:15px;

    margin-bottom:6px;

    border-radius:8px;
}

.explorer-sidebar .reset-btn,
.explorer-sidebar .back-btn{

    height:46px;

    font-size:15px;

    margin-top:10px;

    border-radius:12px;
}

.viewer-videos{

    grid-template-columns:1fr;
}

.viewer-video{

    width:100%;

    max-width:100%;

    display:block;
}

}

/* SKELETON LOADING */

.skeleton-grid{

    display:grid;

    grid-template-columns:
    repeat(auto-fit,minmax(280px,1fr));

    gap:24px;
}

.skeleton-card{

    height:320px;

    border-radius:22px;

    background:
    linear-gradient(
        90deg,
        #f1f1f1 25%,
        #e5e5e5 37%,
        #f1f1f1 63%
    );

    background-size:
    400% 100%;

    animation:
    skeletonLoading 1.2s ease infinite;
}

@keyframes skeletonLoading{

    0%{
        background-position:
        100% 50%;
    }

    100%{
        background-position:
        0 50%;
    }

}