/* =========================================================
   IDEYFINDHOUSE — AGENT PROFILE HEADER
   Compact Premium Design
========================================================= */

.agent-header {
    width: 100%;
    background:
        linear-gradient(
            135deg,
            #063b2d 0%,
            #07543f 48%,
            #08785a 100%
        );
    color: #fff;
    position: relative;
    overflow: hidden;
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.16);
}

/* Subtle decorative glow */
.agent-header::before {
    content: "";
    position: absolute;
    width: 260px;
    height: 260px;
    right: -100px;
    top: -150px;
    background: rgba(255, 204, 92, 0.12);
    border-radius: 50%;
    pointer-events: none;
}

.agent-header::after {
    content: "";
    position: absolute;
    width: 180px;
    height: 180px;
    left: -100px;
    bottom: -130px;
    background: rgba(255, 255, 255, 0.04);
    border-radius: 50%;
    pointer-events: none;
}


/* =========================================================
   TOP ROW
========================================================= */

.header-top {
    width: 100%;
    max-width: 1200px;
    margin: auto;

    min-height: 55px;
    padding: 7px 18px;

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

    position: relative;
    z-index: 5;
}


/* =========================================================
   LOGO
========================================================= */

.site-logo {
    text-decoration: none;
    color: #fff;
}

.site-logo span {
    margin: 0;

    font-size: 20px;
    font-weight: 800;
    letter-spacing: -0.5px;

    color: #ffffff;
}

.site-logo span i {
    color: #f6c453;
    margin-left: 2px;
}


/* =========================================================
   RIGHT ACTIONS
========================================================= */

.header-actions {
    display: flex;
    align-items: center;
    gap: 7px;
}

.theme-toggle,
.search-btn,
.share-btn {
    width: 34px;
    height: 34px;

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

    border: 1px solid rgba(255,255,255,0.20);
    border-radius: 50%;

    background: rgba(255,255,255,0.10);
    color: #fff;

    backdrop-filter: blur(8px);

    cursor: pointer;

    transition:
        background .2s ease,
        transform .2s ease,
        border-color .2s ease;
}

.theme-toggle:hover,
.search-btn:hover,
.share-btn:hover {
    background: rgba(255,255,255,0.20);
    border-color: rgba(255,255,255,0.4);
    transform: translateY(-1px);
}

.theme-toggle i,
.search-btn i {
    font-size: 14px;
}


/* =========================================================
   SHARE BUTTON
========================================================= */

.share-btn .a2a_dd {
    width: 100%;
    height: 100%;

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

    background: transparent !important;
}

.share-btn .a2a_dd::before {
    content: "\f1e0";

    font-family: FontAwesome;
    font-size: 13px;

    color: #fff;
}


/* =========================================================
   MINI PROFILE LABEL
========================================================= */

.agent-mini-profile {
    width: fit-content;

    margin: 0 auto 4px;

    padding: 4px 11px;

    display: flex;
    align-items: center;
    gap: 6px;

    border-radius: 30px;

    background: rgba(255,255,255,0.09);
    border: 1px solid rgba(255,255,255,0.13);

    color: rgba(255,255,255,0.85);

    font-size: 11px;
    font-weight: 600;

    position: relative;
    z-index: 3;
}

.agent-mini-profile i {
    color: #f6c453;
    font-size: 12px;
}


/* =========================================================
   HERO
========================================================= */

.agent-hero {
    text-align: center;

    padding: 7px 15px 14px;

    position: relative;
    z-index: 2;
}


/* =========================================================
   TOP AGENT BADGE
========================================================= */

.top-agent-badge {
    width: fit-content;

    margin: 0 auto 5px;

    padding: 4px 10px;

    border-radius: 20px;

    background: linear-gradient(
        135deg,
        #f8d477,
        #e8a92d
    );

    color: #173c2f;

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

    box-shadow:
        0 3px 10px rgba(0,0,0,0.16);

    display: flex;
    align-items: center;
    gap: 5px;
}

.top-agent-badge i {
    font-size: 11px;
}


/* =========================================================
   AGENT PROFILE
========================================================= */

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

    margin: 0;
}


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

.agent-avatar {
    width: 62px;
    height: 62px;

    padding: 2px;

    border-radius: 50%;

    background: linear-gradient(
        135deg,
        #f7d477,
        #ffffff,
        #56c59a
    );

    box-shadow:
        0 5px 18px rgba(0,0,0,0.22);
}

.agent-avatar img {
    width: 100%;
    height: 100%;

    display: block;

    object-fit: cover;

    border-radius: 50%;

    background: #eee;

    cursor: pointer;
}


/* =========================================================
   AGENT NAME
========================================================= */

.agent-profile h1 {
    margin: 5px 0 1px;

    font-size: 20px;
    line-height: 1.15;

    font-weight: 800;

    color: #fff;

    text-shadow: 0 2px 5px rgba(0,0,0,0.15);
}


/* =========================================================
   DESCRIPTION
========================================================= */

.agent-hero > p {
    margin: 3px 0 0;

    font-size: 12px;
    line-height: 1.4;

    color: rgba(255,255,255,0.82);
}

.agent-hero > p strong {
    color: #f8d477;
    font-weight: 700;
}


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

@media (max-width: 600px) {

    .header-top {
        min-height: 48px;
        padding: 5px 12px;
    }

    .site-logo h1 {
        font-size: 17px;
    }

    .header-actions {
        gap: 5px;
    }

    .theme-toggle,
    .search-btn,
    .share-btn {
        width: 31px;
        height: 31px;
    }

    .agent-mini-profile {
        margin-bottom: 2px;
        padding: 3px 9px;
        font-size: 10px;
    }

    .agent-hero {
        padding: 5px 12px 11px;
    }

    .agent-avatar {
        width: 55px;
        height: 55px;
    }

    .agent-profile h1 {
        font-size: 18px;
        margin-top: 4px;
    }

    .agent-hero > p {
        font-size: 11px;
        margin-top: 2px;
    }

    .top-agent-badge {
        margin-bottom: 4px;
        padding: 3px 8px;
        font-size: 9px;
    }
}


/* =========================================================
   VERY SMALL DEVICES
========================================================= */

@media (max-width: 380px) {

    .site-logo h1 {
        font-size: 15px;
    }

    .agent-avatar {
        width: 50px;
        height: 50px;
    }

    .agent-profile h1 {
        font-size: 17px;
    }

    .agent-hero > p {
        font-size: 10px;
    }
}

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

.ad-panel{
    position:relative;
    background:#fff;
    border-radius:16px;
    overflow:hidden;
    margin:20px 0;
    border:1px solid #e8e8e8;
    box-shadow:0 8px 25px rgba(0,0,0,.08);
    animation:adFadeIn .4s ease;
}

/* Header */

.ad-panel-header{
    display:flex;
    justify-content:space-between;
    align-items:center;
    padding:12px 16px;
    background:linear-gradient(135deg,#f8f9fa,#ffffff);
    border-bottom:1px solid #eee;
}

.ad-panel-title{
    display:flex;
    align-items:center;
    gap:10px;
    font-size:14px;
    font-weight:700;
    color:#555;
    text-transform:uppercase;
    letter-spacing:.5px;
}

.ad-panel-title i{
    color:#ff9800;
    font-size:18px;
}

/* Close Button */

.ad-close-btn{
    width:36px;
    height:36px;
    border:none;
    border-radius:50%;
    background:#f3f3f3;
    color:#777;
    cursor:pointer;
    transition:.3s ease;
}

.ad-close-btn:hover{
    background:#ff4d4f;
    color:#fff;
    transform:rotate(90deg);
}

.ad-close-btn i{
    font-size:16px;
}

/* Body */

.ad-panel-body{
    padding:15px;
}

/* Entrance Animation */

@keyframes adFadeIn{
    from{
        opacity:0;
        transform:translateY(15px);
    }
    to{
        opacity:1;
        transform:translateY(0);
    }
}

/* Mobile */

@media(max-width:768px){

    .ad-panel{
        border-radius:12px;
        margin:15px 0;
    }

    .ad-panel-header{
        padding:10px 14px;
    }

    .ad-panel-body{
        padding:12px;
    }
}

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

.translator-row{
    display:flex;
    align-items:center;
    gap:8px;
    flex-wrap:nowrap;
    padding:4px 8px;
    background:#fff;
    border-radius:30px;
    width:fit-content;
    max-width:100%;
    box-shadow:0 2px 6px rgba(0,0,0,.08);
}

.translator-label{
    display:flex;
    align-items:center;
    gap:5px;
    font-size:13px;
    font-weight:600;
    color:#555;
    white-space:nowrap;
}

.translator-label i{
    color:#008751;
}

/* Reduce Google widget height */
#google_translate_element{
    line-height:1;
}

.goog-te-gadget{
    font-size:0 !important;
}

.goog-te-gadget .goog-te-combo{
    margin:0 !important;
    padding:4px 8px !important;
    height:32px;
    border-radius:20px;
    border:1px solid #ddd;
    font-size:13px !important;
    outline:none;
}

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

    .translator-row{
        width:100%;
        justify-content:center;
        padding:5px;
    }

    .translator-label{
        font-size:12px;
    }

    .goog-te-gadget .goog-te-combo{
        max-width:140px;
    }
}

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

.card-bottom {
    padding: 10px 12px;
    border-top: 1px solid #eee;
    font-size: 12px;
    color: #555;
}

/* Meta row */
.meta-row {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    margin-bottom: 6px;
}

.meta-item {
    font-size: 11px;
    color: #777;
}

.meta-separator {
    color: #ccc;
}

/* Location row */

.location-row {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.location-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 10px;
    border-radius: 25px;
    background: #f4f6f8;
    color: #333;
    text-decoration: none;
    font-size: 11px;
    transition: 0.2s ease;
    border: 1px solid transparent;
}

.location-pill:hover {
    background: #e7eef7;
    border-color: #cdd9e6;
    transform: translateY(-1px);
}

.location-pill.country {
    font-weight: 500;
}

.flag-icon {
    border-radius: 2px;
}

.clear-filters {
    display: inline-block;
    margin-bottom: 10px;
    font-size: 12px;
    color: #d9534f;
    text-decoration: none;
}

/*========================================*/
.agent-search-box{
    background:#fff;
    padding:20px;
    border-radius:15px;
    box-shadow:0 2px 12px rgba(0,0,0,0.08);
    margin:20px 0;
}

.agent-search-title{
    margin:0 0 15px;
    font-size:18px;
    color:#222;
    display:flex;
    align-items:center;
    gap:10px;
}

.agent-search-title i{
    color:#0d6efd;
}

.select-wrapper{
    position:relative;
}

.agent-select{
    width:100%;
    height:55px;
    border:1px solid #ddd;
    border-radius:12px;
    padding:0 45px;
    font-size:15px;
    background:#fafafa;
    color:#333;
    appearance:none;
    -webkit-appearance:none;
    -moz-appearance:none;
    outline:none;
    transition:all .3s ease;
}

.agent-select:focus{
    border-color:#0d6efd;
    background:#fff;
    box-shadow:0 0 0 4px rgba(13,110,253,.15);
}

.search-icon{
    position:absolute;
    left:15px;
    top:50%;
    transform:translateY(-50%);
    color:#888;
    font-size:16px;
}

.dropdown-icon{
    position:absolute;
    right:15px;
    top:50%;
    transform:translateY(-50%);
    color:#888;
    pointer-events:none;
}

@media(max-width:768px){

    .agent-search-box{
        padding:15px;
    }

    .agent-search-title{
        font-size:16px;
    }

    .agent-select{
        height:50px;
        font-size:14px;
    }

}


/*=======================================*/
.modern-card-head{
    display:flex;
    justify-content:space-between;
    align-items:center;
    padding:12px 14px;
    border-radius:14px;
    background:rgba(255,255,255,0.75);
    backdrop-filter: blur(10px);
    box-shadow: 0 6px 18px rgba(0,0,0,0.08);
    margin-bottom:8px;
}

.head-left{
    display:flex;
    align-items:center;
    gap:10px;
    min-width:0;
}

.property-avatar{
    width:40px;
    height:40px;
    border-radius:50%;
    display:flex;
    align-items:center;
    justify-content:center;
    font-weight:bold;
    color:#fff;
    background:linear-gradient(135deg,#4facfe,#00f2fe);
    text-transform:uppercase;
    flex-shrink:0;
}

.head-text{
    overflow:hidden;
}

.property-title{
    font-size:16px;
    font-weight:700;
    margin:0;
    white-space:nowrap;
    overflow:hidden;
    text-overflow:ellipsis;
}

.head-actions{
    display:flex;
    align-items:center;
    gap:12px;
    font-size:18px;
    color:#555;
}

.head-actions .closePost{
    font-size:22px;
    cursor:pointer;
    color:rgba(0,0,0,0.4);
    transition:0.2s;
}

.head-actions .closePost:hover{
    color:red;
    transform:scale(1.1);
}

.modern-description{
    padding:10px 14px;
    font-size:14px;
    line-height:1.5;
    color:#333;
    background:#fff;
    border-radius:0 0 14px 14px;
}

.see-more{
    display:inline-block;
    margin-top:6px;
    color:#007bff;
    cursor:pointer;
}

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


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

.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-profile {
    display: flex;
    align-items: center;
    gap: 15px;
}
*/
/*.agent-profile {
    background:linear-gradient(135deg,#008751,#00a86b);
    color:#fff;
    padding:15px;
    border-radius:0 0 25px 25px;
    box-shadow:0 4px 15px rgba(0,0,0,.12);
}

.agent-avatar{
    width: 250px;
    height: 180px;
    border-radius: 20px;
    background: linear-gradient(135deg, #0d6efd, #00c6ff);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 28px;
    flex-shrink: 0;
}

.agent-profile h1{
    margin: 0;
    font-size: 2rem;
    font-weight: 700;
}


.agent-avatar img{
    width: 250px;
    height: 180px;
    border-radius: 20px;
    object-fit: cover;
}*/


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


.image-overlay{
    display:none;
    position:fixed;
    top:0;
    left:0;
    width:100%;
    height:100%;
    background:rgba(0,0,0,.95);
    z-index:99999;
    justify-content:center;
    align-items:center;
    padding:20px;
    box-sizing:border-box;
}

.image-overlay img{
    max-width:95%;
    max-height:95%;
    border-radius:10px;
    box-shadow:0 0 30px rgba(255,255,255,.2);
}

.close-image{
    position:absolute;
    top:20px;
    right:30px;
    color:#fff;
    font-size:45px;
    cursor:pointer;
    font-weight:bold;
}

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

.contact-card{
    background:#fff;
    border-radius:20px;
    padding:25px;
    box-shadow:0 10px 30px rgba(0,0,0,.08);
    margin:20px 0;
}

.contact-header{
    display:flex;
    align-items:center;
    gap:10px;
    margin-bottom:20px;
    padding-bottom:15px;
    border-bottom:1px solid #eee;
}

.contact-header i{
    font-size:26px;
    color:#25D366;
}

.contact-header h3{
    margin:0;
    font-size:24px;
    color:#222;
}

.contacts{
    display:flex;
    flex-direction:column;
    gap:15px;
}

.contact-item{
    display:flex;
    align-items:center;
    gap:15px;
    text-decoration:none;
    padding:15px;
    border-radius:15px;
    transition:.3s;
    border:1px solid #f0f0f0;
}

.contact-item:hover{
    transform:translateY(-3px);
    box-shadow:0 8px 20px rgba(0,0,0,.08);
}

.contact-icon{
    width:55px;
    height:55px;
    border-radius:50%;
    display:flex;
    align-items:center;
    justify-content:center;
    color:#fff;
    font-size:22px;
    flex-shrink:0;
}

.call-btn .contact-icon{
    background:#ff4d4d;
}

.whatsapp-btn .contact-icon{
    background:#25D366;
}

.website-btn .contact-icon{
    background:#0d6efd;
}

.contact-details{
    display:flex;
    flex-direction:column;
}

.contact-details span{
    color:#777;
    font-size:14px;
}

.contact-details strong{
    color:#222;
    font-size:18px;
    margin-top:3px;
    word-break:break-all;
}

@media(max-width:768px){

    .contact-card{
        padding:20px;
    }

    .contact-details strong{
        font-size:16px;
    }

}

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

