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

body.overlay-open {
    overflow: hidden;
}


.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;
}

/* =========================================================
   AGENT CONTACT OVERLAY
========================================================= */

.agent-overlay {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 99999;

    display: none;

    pointer-events: none;
}


/* =========================================================
   BACKDROP
========================================================= */

.agent-overlay-backdrop {
    position: absolute;
    inset: 0;

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

    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);

    opacity: 0;

    transition: opacity .35s ease;
}


/* =========================================================
   BOTTOM SHEET
========================================================= */

.agent-contact-sheet {
    position: absolute;

    left: 50%;
    bottom: 0;

    width: 100%;
    max-width: 650px;

    max-height: 88vh;

    background: #ffffff;

    transform: translate(-50%, 100%);

    border-radius: 28px 28px 0 0;

    box-shadow:
        0 -15px 50px rgba(0, 0, 0, .20);

    overflow-y: auto;

    padding:
        14px 22px
        calc(22px + env(safe-area-inset-bottom));

    transition:
        transform .4s cubic-bezier(.22, 1, .36, 1);

    scrollbar-width: thin;
}


/* =========================================================
   ACTIVE STATE
========================================================= */

.agent-overlay.active {
    display: block;
    pointer-events: auto;
}

.agent-overlay.active .agent-overlay-backdrop {
    opacity: 1;
}

.agent-overlay.active .agent-contact-sheet {
    transform: translate(-50%, 0);
}


/* =========================================================
   DRAG HANDLE
========================================================= */

.agent-sheet-handle {
    width: 45px;
    height: 5px;

    background: #d5d5d5;

    border-radius: 50px;

    margin: 0 auto 18px;
}


/* =========================================================
   CLOSE BUTTON
========================================================= */

.agent-overlay-close {
    position: absolute;

    top: 18px;
    right: 18px;

    width: 40px;
    height: 40px;

    border: none;

    border-radius: 50%;

    background: #f2f3f5;

    color: #333;

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

    font-size: 17px;

    cursor: pointer;

    transition: .25s ease;

    z-index: 10;
}

.agent-overlay-close:hover {
    background: #111;
    color: #fff;
}

.agent-overlay-close:active {
    transform: scale(.92);
}


/* =========================================================
   PROFILE HEADER
========================================================= */

.agent-profile-header {
    display: flex;
    align-items: center;

    padding:
        8px
        48px
        20px
        4px;
}


/* =========================================================
   AVATAR
========================================================= */

.agent-avatar-wrapper {
    position: relative;

    flex-shrink: 0;
}

.agent-avatar,
.agent-avatar-placeholder {
    width: 68px;
    height: 68px;

    border-radius: 50%;

    object-fit: cover;

    border: 3px solid #fff;

    box-shadow:
        0 4px 15px rgba(0, 0, 0, .15);
}

.agent-avatar-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;

    background: #0d6efd;

    color: #fff;

    font-size: 27px;
    font-weight: 700;
}


/* =========================================================
   STATUS DOT
========================================================= */

.agent-status-dot {
    position: absolute;

    right: 2px;
    bottom: 5px;

    width: 15px;
    height: 15px;

    background: #22c55e;

    border: 3px solid #fff;

    border-radius: 50%;
}


/* =========================================================
   PROFILE INFORMATION
========================================================= */

.agent-profile-info {
    margin-left: 15px;

    min-width: 0;
}

.agent-name-row {
    display: flex;
    align-items: center;

    gap: 7px;
}

.agent-name-row h2 {
    margin: 0;

    font-size: 21px;
    font-weight: 700;

    line-height: 1.2;
}

.agent-name-row h2 a {
    color: #151515;

    text-decoration: none;
}

.agent-verified {
    width: 19px;
    height: 19px;

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

    border-radius: 50%;

    background: #1677ff;

    color: #fff;

    font-size: 10px;
}

.agent-role {
    margin-top: 6px;

    color: #777;

    font-size: 13px;
}

.agent-role i {
    margin-right: 5px;

    color: #1677ff;
}


/* =========================================================
   LOCATION
========================================================= */

.agent-location {
    display: flex;
    align-items: center;

    gap: 12px;

    padding: 14px;

    background: #f7f8fa;

    border-radius: 16px;
}

.agent-location-icon {
    width: 40px;
    height: 40px;

    flex-shrink: 0;

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

    border-radius: 12px;

    background: #fff;

    color: #1677ff;

    font-size: 17px;

    box-shadow:
        0 3px 10px rgba(0, 0, 0, .05);
}

.agent-small-label {
    display: block;

    color: #999;

    font-size: 10px;
    font-weight: 700;

    letter-spacing: .8px;
}

.agent-location p {
    margin: 3px 0 0;

    color: #333;

    font-size: 14px;

    line-height: 1.4;
}


/* =========================================================
   DIVIDER
========================================================= */

.agent-divider {
    height: 1px;

    background: #eee;

    margin: 20px 0;
}


/* =========================================================
   ENQUIRY BOX
========================================================= */

.agent-enquiry-box {
    display: flex;

    align-items: flex-start;

    gap: 13px;

    margin-bottom: 18px;
}

.agent-enquiry-icon {
    width: 43px;
    height: 43px;

    flex-shrink: 0;

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

    border-radius: 13px;

    background: #eef5ff;

    color: #1677ff;

    font-size: 18px;
}

.agent-enquiry-box h3 {
    margin: 0 0 5px;

    font-size: 17px;
    font-weight: 700;

    color: #222;
}

.agent-enquiry-box p {
    margin: 0;

    font-size: 13px;

    line-height: 1.5;

    color: #777;
}


/* =========================================================
   SHOW CONTACT BUTTON
========================================================= */

.show-contact-btn {
    width: 100%;

    display: flex;
    align-items: center;

    border: none;

    padding: 14px;

    border-radius: 16px;

    background: #111;

    color: #fff;

    cursor: pointer;

    text-align: left;

    transition:
        transform .2s ease,
        background .2s ease;
}

.show-contact-btn:hover {
    background: #222;
}

.show-contact-btn:active {
    transform: scale(.98);
}

.show-contact-icon {
    width: 43px;
    height: 43px;

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

    border-radius: 12px;

    background: rgba(255,255,255,.12);

    font-size: 17px;
}

.show-contact-text {
    display: flex;
    flex-direction: column;

    margin-left: 12px;
}

.show-contact-text strong {
    font-size: 15px;
}

.show-contact-text small {
    margin-top: 2px;

    font-size: 11px;

    opacity: .65;
}

.contact-arrow {
    margin-left: auto;

    transition: transform .3s ease;
}

.show-contact-btn.active .contact-arrow {
    transform: rotate(180deg);
}


/* =========================================================
   CONTACT DETAILS
========================================================= */

.agent-contact-details {
    padding-top: 12px;
}


/* =========================================================
   CONTACT CARD
========================================================= */

.agent-contact-card {
    display: flex;
    align-items: center;

    width: 100%;

    padding: 13px;

    margin-bottom: 10px;

    border-radius: 15px;

    background: #f8f9fa;

    text-decoration: none;

    color: #222;

    transition:
        background .2s ease,
        transform .2s ease;
}

.agent-contact-card:hover {
    background: #f0f1f3;

    color: #222;

    transform: translateY(-1px);
}

.contact-card-icon {
    width: 43px;
    height: 43px;

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

    border-radius: 12px;

    font-size: 18px;

    background: #fff;
}

.contact-card-content {
    display: flex;
    flex-direction: column;

    margin-left: 12px;
}

.contact-card-content span {
    font-size: 9px;

    font-weight: 700;

    letter-spacing: .8px;

    color: #999;
}

.contact-card-content strong {
    margin-top: 3px;

    font-size: 14px;
}

.agent-contact-card > i:last-child {
    margin-left: auto;

    color: #aaa;

    font-size: 12px;
}


/* =========================================================
   PHONE
========================================================= */

.phone-card .contact-card-icon {
    color: #1677ff;
}

.phone-card .contact-card-content strong {
    color: #1677ff;
}


/* =========================================================
   WHATSAPP
========================================================= */

.whatsapp-card .contact-card-icon {
    color: #25d366;
}

.whatsapp-card .contact-card-content strong {
    color: #159447;
}


/* =========================================================
   WEBSITE
========================================================= */

.website-card .contact-card-icon {
    color: #7c3aed;
}


/* =========================================================
   SECURITY NOTE
========================================================= */

.contact-security-note {
    display: flex;
    align-items: center;

    gap: 8px;

    margin-top: 15px;

    padding: 11px;

    border-radius: 12px;

    background: #f7f7f7;

    color: #888;

    font-size: 11px;
}

.contact-security-note i {
    color: #22a55a;
}


/* =========================================================
   BRAND FOOTER
========================================================= */

.agent-overlay-brand {
    text-align: center;

    margin-top: 20px;
    padding-top: 15px;

    border-top: 1px solid #eee;

    font-size: 10px;

    color: #aaa;
}

.agent-overlay-brand strong {
    margin-left: 4px;

    color: #333;

    letter-spacing: .5px;
}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 480px) {

    .agent-contact-sheet {
        max-height: 92vh;

        border-radius: 25px 25px 0 0;

        padding-left: 16px;
        padding-right: 16px;
    }

    .agent-profile-header {
        padding-left: 2px;
        padding-right: 45px;
    }

    .agent-avatar,
    .agent-avatar-placeholder {
        width: 60px;
        height: 60px;
    }

    .agent-name-row h2 {
        font-size: 18px;
    }

    .agent-location p {
        font-size: 13px;
    }

}


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

.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: auto;
    cursor: pointer;
    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;
}
/*==========================================================*/

/* =========================================================
   MAIN PROPERTY PAGE CONTAINER
========================================================= */

.property-page-container {
    width: 70vw;
    max-width: 70vw;
    margin: 0 auto;
    padding: 0;
    box-sizing: border-box;
}

/* Keep media inside the container */
.property-page-container img,
.property-page-container video,
.property-page-container iframe {
    max-width: 100%;
}

/* =========================================================
   MOBILE
========================================================= */

@media screen and (max-width: 767px) {

    .property-page-container {
        width: 100%;
        max-width: 100%;
        margin: 0;
        padding: 0;
    }

}
