/* GLOBAL */
body{
    margin:0;
    padding:0;
    font-family:'Segoe UI',sans-serif;
    background:#f5f7fa;
    color:#222;
}

.first,
.second{
    width:100%;
}

.card{
    background:#fff;
    border-radius:18px;
    overflow:hidden;
    box-shadow:0 8px 25px rgba(0,0,0,.08);
    margin-bottom:20px;
    position: relative;
}

/* PROPERTY HEADER */
.card-head{
    display:flex;
    align-items:center;
    gap:12px;
    padding:15px;
    background:#fff;
    border-bottom:1px solid #eee;
    position:relative;
}

.card-head h1{
    font-size:18px;
    font-weight:700;
    margin:0;
    flex:1;
    text-align:left;
}

/* DESCRIPTION */
.card-top{
    padding:15px;
    font-size:15px;
    line-height:1.7;
    text-align:left;
    background:#fff;
    position: relative;
}

/* VIDEO */
.card-middle{
    width:100%;
    background:#000;
    overflow:hidden;
}

.video{
    width:100%;
    height:100%;
    object-fit:cover;
    display:block;
}

/* INFO AREA */
.second{
    background:#fff;
    padding:15px;
    margin-top:10px;
    border-radius:18px;
    box-shadow:0 8px 25px rgba(0,0,0,.08);
}

/* LOCATION BUTTONS */
.btn-group{
    display:flex;
    flex-wrap:wrap;
    gap:8px;
    justify-content:center;
    margin-top:10px;
}

.btn-group a{
    background:#eef2f7;
    padding:8px 14px;
    border-radius:30px;
    font-size:13px;
    color:#333;
}

/* CTA BUTTONS */
.cta-link{
    display:inline-block;
    width:100%;
    text-align:center;
    margin-top:10px;
}

/* LOCATION SEARCH */
#locationSelect{
    border-radius:12px;
    border:1px solid #ddd;
    padding:12px;
    background:#fff;
}

/*===============================*/


@media(max-width:767px){

body{
    background:#f5f7fa;
}

.first,
.second,
.card{
    width:100vw;
    max-width:100vw;
    margin:0;
    border-radius:0;
}

.card-middle{
    height:320px;
}

.video{
    height:320px;
}

.card-head{
    padding:12px;
}

.card-head h1{
    font-size:16px;
}

.second{
    margin-top:0;
    border-radius:0;
    box-shadow:none;
}

.overlay{
    width:100vw;
}

}


/*=============================*/
/*Tablet
CSS*/

@media(min-width:768px){

body{
    padding:20px;
}

.first{
    max-width:850px;
    margin:auto;
}

.second{
    max-width:850px;
    margin:20px auto;
}

.card{
    border-radius:20px;
}

.card-middle{
    height:500px;
}

.video{
    height:500px;
}

}

/* Desktop
CSS*/

@media(min-width:1200px){

.first{
    max-width:950px;
}

.second{
    max-width:950px;
}

.card-middle{
    height:600px;
}

.video{
    height:600px;
}

}

/*===============================*/
.property-avatar{
    width:55px;
    height:55px;
    border-radius:50%;
    display:flex;
    align-items:center;
    justify-content:center;
    color:#fff;
    font-size:24px;
    font-weight:bold;
    flex-shrink:0;
}


.overlay{
    position:fixed;
    left:0;
    bottom:0;
    width:100%;
    background:#fff;
    border-top-left-radius:25px;
    border-top-right-radius:25px;
    box-shadow:0 -10px 30px rgba(0,0,0,.15);
    z-index:999;
    overflow-y:auto;
    transition:.4s;
}


.overlay-height-show{
    height:70%;
}

.overlay-height-hidden{
    height:0;
}
/*===============================*/

.animate-myDIV{
    color:#16a34a;
    animation:bounceArrow 1.5s infinite;
}

@keyframes bounceArrow{
    0%,100%{
        transform:translateY(0);
    }
    50%{
        transform:translateY(6px);
    }
}


/*==================================*/
.related-overlay{
    position:absolute;
    top:0;
    left:0;
    width:100%;
    height:100%;
    background:rgba(0,0,0,.92);
    display:none;
    justify-content:center;
    align-items:center;
    z-index:999;
    overflow-y:auto;
}

.overlay-box{
    width:90%;
    max-width:1000px;
    color:#fff;
}

.overlay-box h3{
    text-align:center;
    margin-bottom:20px;
}

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

.related-card{
    background:#222;
    border-radius:10px;
    overflow:hidden;
    text-decoration:none;
    color:#fff;
    transition:.3s;
}

.related-card:hover{
    transform:translateY(-5px);
}

.related-card img{
    width:100%;
    height:150px;
    object-fit:cover;
}

.related-card-content{
    padding:10px;
}

.related-card-content h4{
    font-size:16px;
    margin:0 0 8px;
}

.related-card-content p{
    margin:0;
    color:#bbb;
    font-size:14px;
}

#closeRelated{
    display:block;
    margin:25px auto 0;
    padding:10px 25px;
    border:none;
    background:#e74c3c;
    color:#fff;
    border-radius:6px;
    cursor:pointer;
}

/*=========================================================*/
/* Header Container */
.property-header{
    display:flex;
    align-items:center;
    gap:12px;
    padding:12px;
    background:#fff;
    border-radius:12px;
    box-shadow:0 2px 8px rgba(0,0,0,0.08);
    margin-bottom:15px;
}

/* Search Area */
.location-search-wrapper{
    position:relative;
    flex:1;
}

/* Select Box */
#locationSelect{
    width:100%;
    height:48px;
    padding:0 60px 0 15px;
    border:1px solid #ddd;
    border-radius:10px;
    background:#f8f9fa;
    font-size:15px;
    font-weight:500;
    color:#333;
    appearance:none;
    -webkit-appearance:none;
    -moz-appearance:none;
    outline:none;
    transition:0.3s;
}

#locationSelect:focus{
    border-color:#008751;
    background:#fff;
    box-shadow:0 0 0 3px rgba(0,135,81,.12);
}

/* Icons inside search */
.dropdown-icon{
    position:absolute;
    top:50%;
    right:18px;
    transform:translateY(-50%);
    color:#008751;
    font-size:18px;
    pointer-events:none;
    display:flex;
    align-items:center;
    gap:6px;
}

/* Share Button Container */
.share-wrapper{
    display:flex;
    align-items:center;
    justify-content:center;
    min-width:50px;
}

/* AddToAny Button */
.a2a_dd{
    display:flex !important;
    align-items:center;
    justify-content:center;
    width:48px;
    height:48px;
    border-radius:50%;
    background:#008751 !important;
    color:#fff !important;
    box-shadow:0 2px 6px rgba(0,0,0,0.15);
    transition:0.3s;
}

.a2a_dd:hover{
    transform:scale(1.08);
    background:#006b40 !important;
}

/* Mobile */
@media(max-width:600px){

    .property-header{
        padding:10px;
        gap:10px;
    }

    #locationSelect{
        font-size:14px;
    }

    .a2a_dd{
        width:44px;
        height:44px;
    }
}


/*=========================================*/
.property-location{
    display:flex;
    align-items:center;
    flex-wrap:wrap;
    gap:8px;
    padding:12px 15px;
    background:#fff;
    border-radius:12px;
    box-shadow:0 2px 8px rgba(0,0,0,.08);
    margin:15px 0;
}

.location-item{
    display:flex;
    align-items:center;
    gap:8px;
    padding:8px 14px;
    background:#f5f7fa;
    border-radius:30px;
    font-size:14px;
    font-weight:600;
    color:#333;
    transition:.3s;
    cursor:pointer;
    border:1px solid #ececec;
}

.location-item:hover{
    background:#008751;
    color:#fff;
    transform:translateY(-2px);
}

.location-item i{
    font-size:15px;
    color:#008751;
}

.location-item:hover i{
    color:#fff;
}

.location-separator{
    color:#999;
    font-size:16px;
}

.country-flag{
    width:24px;
    height:18px;
    object-fit:cover;
    border-radius:3px;
    border:1px solid #ddd;
}

.country-item{
    background:#eef8f2;
}

@media(max-width:768px){

    .property-location{
        padding:10px;
        gap:6px;
    }

    .location-item{
        font-size:13px;
        padding:7px 12px;
    }

    .location-separator{
        display:none;
    }
}


/*==========================================*/

.property-description{
    font-family: "Segoe UI", Roboto, Arial, sans-serif;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.9;
    color: #333;
    text-align: left;

    /* Preserve spaces and line breaks */
    white-space: pre-wrap;
    word-wrap: break-word;
    overflow-wrap: break-word;

    /* Styling */
    background: #fff;
    padding: 20px;
    border-radius: 12px;
    border: 1px solid #e9ecef;

    /* Better readability */
    letter-spacing: 0.2px;
    margin-top: 15px;
}
@media (max-width:768px){
    .property-description{
        font-size: 15px;
        line-height: 1.8;
        padding: 18px;
    }
}

.property-description::first-letter{
    font-size: 1.4em;
    font-weight: 600;
}


/*===========================================*/

.agent-name-link{
    text-decoration:none;
    display:block;
    margin:15px 0;
}

.agent-name-card{
    display:flex;
    align-items:center;
    gap:15px;
    background:#fff;
    padding:15px 18px;
    border-radius:14px;
    border:1px solid #eee;
    box-shadow:0 3px 10px rgba(0,0,0,.06);
    transition:all .3s ease;
}

.agent-name-card:hover{
    transform:translateY(-3px);
    box-shadow:0 8px 20px rgba(0,0,0,.12);
}

.agent-name-card .fa-user-circle{
    font-size:42px;
    color:#008751;
}

.agent-info{
    flex:1;
}

.agent-label{
    display:block;
    font-size:12px;
    color:#888;
    text-transform:uppercase;
    letter-spacing:1px;
    margin-bottom:4px;
}

.agent-info h4{
    margin:0;
    color:#222;
    font-size:20px;
    font-weight:700;
}

.agent-arrow{
    font-size:18px;
    color:#008751;
    transition:.3s;
}

.agent-name-card:hover .agent-arrow{
    transform:translateX(5px);
}

.section-divider{
    border:none;
    height:1px;
    background:linear-gradient(to right, transparent, #ddd, transparent);
    margin:20px 0;
}
/*==========================================================*/

