/* ==========================================================================
   PF redesign, pass 2: page layouts rebuilt to the Property Finder structure.
   Loaded after pf.css. Uses the same tokens (--pf-*) and stays scoped to body.pf.
   ========================================================================== */

/* ---------- Property list card on /properties (shares .pf-card with /listings) ---------- */
body.pf .pf-card--responsive { max-width: none; }
body.pf .pf-card__image-link { display: block; width: 100%; height: 100%; }
body.pf .pf-card__image-link img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
body.pf .pf-card__type {
    font-weight: 600;
    color: var(--pf-purple);
}

@media (max-width: 767.98px) {
    body.pf .pf-card--responsive { flex-direction: column; }
    body.pf .pf-card--responsive .pf-card__media {
        flex: 0 0 auto;
        width: 100%;
        height: 220px;
        border-radius: var(--pf-r-l) var(--pf-r-l) 0 0;
    }
    body.pf .pf-card--responsive .pf-card__content { padding: 12px; }
    body.pf .pf-card--responsive .pf-card__bottom { flex-wrap: wrap; }
    body.pf .pf-card--responsive .pf-card__actions { width: 100%; }
    body.pf .pf-card--responsive .pf-card__actions > * { flex: 1 1 0; }
    body.pf .pf-card--responsive .pf-card__actions .pf-btn { width: 100%; min-width: 0; }
}

/* ---------- Property grid card (home, grid view, wishlist, agent pages) ---------- */
body.pf .property-listing.pf-gcard {
    position: relative;
    display: flex;
    flex-direction: column;
    height: calc(100% - 24px);
    margin-bottom: 24px;
    background: var(--pf-white);
    border: 1px solid var(--pf-border);
    border-radius: var(--pf-r-l);
    overflow: hidden;
    box-shadow: none;
    transition: box-shadow .2s ease;
}
body.pf .property-listing.pf-gcard:hover { box-shadow: var(--pf-shadow-m); }

body.pf .pf-gcard .pf-gcard__media {
    position: relative;
    height: 220px;
    background: var(--pf-bg-soft);
    border-radius: 0;
    overflow: hidden;
}
body.pf .pf-gcard .pf-gcard__media .list-img-slide,
body.pf .pf-gcard .pf-gcard__media .click,
body.pf .pf-gcard .pf-gcard__media .slick-list,
body.pf .pf-gcard .pf-gcard__media .slick-track,
body.pf .pf-gcard .pf-gcard__media .slick-slide > div,
body.pf .pf-gcard .pf-gcard__media .click > div,
body.pf .pf-gcard .pf-gcard__media a { height: 100%; }
body.pf .pf-gcard .pf-gcard__media img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
}
body.pf .pf-gcard .pf-gcard__noimage img { object-fit: contain; padding: 40px; opacity: .5; }
body.pf .pf-gcard .slick-dots { bottom: 10px; }
body.pf .pf-gcard .slick-dots li button:before { color: var(--pf-white); opacity: .6; font-size: 7px; }
body.pf .pf-gcard .slick-dots li.slick-active button:before { opacity: 1; color: var(--pf-white); }
body.pf .pf-gcard .slick-prev,
body.pf .pf-gcard .slick-next { display: none !important; }

body.pf .pf-gcard__body {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    padding: 12px 16px 12px;
}
body.pf .pf-gcard__meta {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    line-height: 16px;
    color: var(--pf-text-2);
}
body.pf .pf-gcard__type {
    font-weight: 600;
    color: var(--pf-purple);
}
body.pf .pf-gcard__category:before {
    content: "\00b7";
    margin-right: 6px;
}
body.pf .pf-gcard__price {
    margin-top: 4px;
    font-size: 20px;
    font-weight: 700;
    line-height: 28px;
    color: var(--pf-text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
body.pf .pf-gcard__title {
    margin: 2px 0 8px;
    font-size: 14px;
    font-weight: 400;
    line-height: 22px;
    min-height: 22px;
    color: var(--pf-text-2);
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
body.pf .pf-gcard__title a { color: inherit !important; text-decoration: none; }
body.pf .pf-gcard__title a:hover { color: var(--pf-text) !important; }
body.pf .pf-gcard__specs { margin-bottom: 2px; }
body.pf .pf-gcard__location { margin-top: auto; padding-top: 4px; }

body.pf .pf-gcard__footer {
    display: flex;
    gap: 8px;
    padding: 12px 16px;
    border-top: 1px solid var(--pf-border);
}
body.pf .pf-gcard__footer .pf-btn { flex: 1 1 0; min-width: 0; }

/* ---------- Properties page: search header ---------- */
body.pf .pf-listhead {
    padding: 24px 0 8px;
    background: var(--pf-white);
}
body.pf .pf-listhead__title {
    margin: 0 0 16px;
    font-size: 24px;
    line-height: 32px;
    font-weight: 700;
}
body.pf .pf-listhead__form {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: var(--pf-white);
    border: 1px solid var(--pf-border);
    border-radius: var(--pf-r-xl);
    box-shadow: var(--pf-shadow-s);
}
body.pf .pf-listhead__types.choose-property-type {
    flex: 0 0 auto;
    width: auto;
    height: auto;
    padding: 4px;
    margin: 0;
    background: var(--pf-bg-soft);
    border-radius: var(--pf-r-full);
}
body.pf .choose-property-type ul {
    display: flex;
    gap: 4px;
    margin: 0;
    padding: 0;
    list-style: none;
}
body.pf .choose-property-type ul li { flex: 0 0 auto; margin: 0; padding: 0; }
body.pf .choose-property-type input[type=radio] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}
body.pf .choose-property-type label.checkbox-custom-label {
    display: inline-flex;
    align-items: center;
    height: 36px;
    margin: 0;
    padding: 0 20px;
    font-size: 14px;
    font-weight: 600;
    color: var(--pf-text);
    border-radius: var(--pf-r-full);
    cursor: pointer;
    transition: background-color .15s ease;
}
body.pf .choose-property-type label.checkbox-custom-label:before,
body.pf .choose-property-type label.checkbox-custom-label:after { display: none !important; }
body.pf .choose-property-type input:checked + label.checkbox-custom-label {
    background: var(--pf-white);
    color: var(--pf-purple);
    box-shadow: 0 1px 3px rgba(0, 0, 0, .12);
}
body.pf .pf-listhead__search {
    position: relative;
    flex: 1 1 auto;
}
body.pf .pf-listhead__search i {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--pf-text-2);
    font-size: 14px;
}
body.pf .pf-listhead__search .form-control {
    height: 44px;
    padding-left: 42px;
    border-radius: var(--pf-r-full);
    background: var(--pf-white);
}
body.pf .pf-listhead__submit {
    height: 44px;
    padding: 0 28px;
    border-radius: var(--pf-r-full);
}

/* ---------- Properties page: result list ---------- */
body.pf .pf-listing-section { padding-top: 8px; }
body.pf .pf-results-col--list { max-width: 960px; }
body.pf .pf-listing-section .filter_search_opt a {
    height: 40px;
    margin: 0 0 16px;
    font-size: 14px;
    font-weight: 600;
    color: var(--pf-purple) !important;
    background: var(--pf-white);
    border: 1px solid var(--pf-purple-200);
    border-radius: var(--pf-r-m);
}
body.pf .pf-listing-section .filter_search_opt a:hover { background: var(--pf-purple-50); }
body.pf .pf-sortbar__count { white-space: nowrap; }

/* Cards without a photo: light block with an icon instead of the big placeholder */
body.pf .pf-nophoto {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 100%;
    height: 100%;
    min-height: 100%;
    color: var(--pf-text-3);
    font-size: 12px;
    background: linear-gradient(135deg, var(--pf-purple-50), var(--pf-bg-soft));
    text-decoration: none;
}
body.pf .pf-nophoto i { font-size: 28px; color: var(--pf-purple-200); }
body.pf .pf-nophoto:hover { color: var(--pf-text-2); }
body.pf .pf-gcard .pf-gcard__media .pf-nophoto { height: 220px; }

body.pf .item-sorting-box.pf-sortbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin: 8px 0 16px;
    padding: 0;
    background: none;
    border: 0;
    box-shadow: none;
}
body.pf .pf-sortbar__count {
    font-size: 14px;
    color: var(--pf-text);
}
body.pf .pf-sortbar__count strong { font-weight: 700; }
body.pf .pf-sortbar__range { color: var(--pf-text-2); }
body.pf .pf-sortbar__right {
    display: flex;
    align-items: center;
    gap: 8px;
}
body.pf .pf-sortbar .sorting-by { min-width: 190px; }
body.pf .pf-sortbar .select2-container--default .select2-selection--single,
body.pf .pf-sortbar select.form-control {
    height: 40px;
    border-radius: var(--pf-r-full);
}
body.pf .pf-viewtoggle {
    display: flex;
    gap: 0;
    margin: 0;
    padding: 2px;
    list-style: none;
    background: var(--pf-bg-soft);
    border-radius: var(--pf-r-full);
}
body.pf .pf-viewtoggle li { margin: 0; }
body.pf .pf-viewtoggle a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    color: var(--pf-text-2);
    background: transparent !important;
    border: 0 !important;
    border-radius: 50%;
}
body.pf .pf-viewtoggle a.active {
    color: var(--pf-purple);
    background: var(--pf-white) !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, .12);
}

@media (max-width: 767.98px) {
    body.pf .pf-listhead { padding-top: 16px; }
    body.pf .pf-listhead__title { font-size: 20px; margin-bottom: 12px; }
    body.pf .pf-listhead__form { flex-wrap: wrap; padding: 10px; }
    body.pf .pf-listhead__types.choose-property-type { width: 100%; }
    body.pf .choose-property-type ul li { flex: 1 1 0; }
    body.pf .choose-property-type label.checkbox-custom-label { width: 100%; justify-content: center; }
    body.pf .pf-listhead__search { flex-basis: 100%; }
    body.pf .pf-listhead__submit { width: 100%; }
    body.pf .pf-sortbar__range { display: none; }
    body.pf .pf-sortbar .sorting-by { min-width: 150px; }
}

/* ---------- Long SEO text blocks (properties page, home) ---------- */
body.pf .seo-content-section {
    padding: 48px 0;
    background: var(--pf-bg-soft) !important;
    border-top: 1px solid var(--pf-border);
}
body.pf .seo-content-section .container { max-width: 960px; }
body.pf .seo-content-section .seo-main-title {
    font-size: 22px;
    line-height: 32px;
    margin: 0 0 8px;
}
body.pf .seo-content-section .seo-section-title {
    font-size: 18px;
    line-height: 28px;
    margin-top: 32px !important;
}
body.pf .seo-content-section p,
body.pf .seo-content-section li {
    font-size: 14px;
    line-height: 24px;
    color: var(--pf-text-2);
}

@media (max-width: 767.98px) {
    body.pf .pf-viewtoggle { display: none; }
    body.pf .pf-sortbar .sorting-by { min-width: 0; width: 170px; }
}


/* ==========================================================================
   Home page
   ========================================================================== */

/* ---------- Hero ---------- */
body.pf .pf-hero.hero-banner {
    position: relative;
    display: block;
    min-height: 0;
    padding: 72px 0 56px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}
body.pf .pf-hero.hero-banner:before {
    background: linear-gradient(180deg, rgba(0, 0, 0, .5) 0%, rgba(0, 0, 0, .3) 55%, rgba(0, 0, 0, .15) 100%);
}
body.pf .pf-hero__inner {
    position: relative;
    z-index: 2;
    max-width: 920px;
}
body.pf .pf-hero__title {
    margin: 0;
    font-size: 48px;
    line-height: 60px;
    font-weight: 700;
    color: var(--pf-white) !important;
    text-align: center;
    text-shadow: 0 2px 12px rgba(0, 0, 0, .3);
}
body.pf .pf-hero__subtitle {
    margin: 8px 0 28px;
    font-size: 18px;
    line-height: 28px;
    color: rgba(255, 255, 255, .95) !important;
    text-align: center;
}
body.pf .pf-hero__tabs {
    display: flex;
    justify-content: space-between;
    gap: 4px;
    max-width: 560px;
    margin: 0 auto -1px;
    padding: 6px;
    background: var(--pf-white);
    border-radius: var(--pf-r-full);
    box-shadow: var(--pf-shadow-m);
    position: relative;
    z-index: 3;
}
body.pf .pf-hero__tabs input { position: absolute; opacity: 0; pointer-events: none; }
body.pf .pf-hero__tabs label,
body.pf .pf-hero__tabs a {
    flex: 1 1 0;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 40px;
    margin: 0;
    padding: 0 12px;
    font-size: 14px;
    font-weight: 600;
    color: var(--pf-text) !important;
    border-radius: var(--pf-r-full);
    white-space: nowrap;
    text-decoration: none;
    cursor: pointer;
    transition: background-color .15s ease, color .15s ease;
}
body.pf .pf-hero__tabs label:hover,
body.pf .pf-hero__tabs a:hover { background: var(--pf-bg-soft); }
body.pf .pf-hero__tabs input:checked + label {
    background: var(--pf-purple-100);
    color: var(--pf-purple) !important;
}
body.pf .pf-hero__card {
    margin-top: 16px;
    padding: 20px 24px;
    background: var(--pf-white);
    border-radius: var(--pf-r-xl);
    box-shadow: var(--pf-shadow-l);
}
body.pf .pf-hero__search {
    position: relative;
    display: flex;
    align-items: center;
    height: 48px;
    padding: 0 4px 0 16px;
    border: 1px solid var(--pf-border);
    border-radius: var(--pf-r-full);
    background: var(--pf-white);
}
body.pf .pf-hero__search:focus-within {
    border-color: var(--pf-purple-600);
    box-shadow: 0 0 0 3px rgba(100, 89, 178, .12);
}
body.pf .pf-hero__search > i { color: var(--pf-text-2); font-size: 15px; }
body.pf .pf-hero__search .form-control {
    flex: 1 1 auto;
    height: 44px;
    padding: 0 12px;
    border: 0;
    box-shadow: none;
    background: transparent;
    font-size: 15px;
}
body.pf .pf-hero__search .form-control:focus { box-shadow: none; }
body.pf .pf-hero__submit {
    height: 38px;
    padding: 0 24px;
    border-radius: var(--pf-r-full);
}
body.pf .pf-hero__filters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 14px;
}
body.pf .pf-hero__filter {
    position: relative;
    width: 200px;
}
body.pf .pf-hero__filter select.form-control,
body.pf .pf-hero__filter .select2-container--default .select2-selection--single {
    height: 36px;
    min-height: 36px;
    padding: 0 14px;
    font-size: 13px;
    border: 1px solid var(--pf-border);
    border-radius: var(--pf-r-full);
    background: var(--pf-white);
}
body.pf .pf-hero__filter .select2-container { width: 100% !important; }
body.pf .pf-hero__filter .select2-container--default .select2-selection--single .select2-selection__rendered {
    line-height: 34px;
    padding: 0 18px 0 0;
    color: var(--pf-text);
}
body.pf .pf-hero__filter .select2-container--default .select2-selection--single .select2-selection__placeholder { color: var(--pf-text); }
body.pf .pf-hero__filter .select2-container--default .select2-selection--single .select2-selection__arrow { height: 34px; right: 8px; }

@media (max-width: 767.98px) {
    body.pf .pf-hero.hero-banner { padding: 40px 0 32px; }
    body.pf .pf-hero__title { font-size: 30px; line-height: 38px; }
    body.pf .pf-hero__subtitle { font-size: 15px; line-height: 22px; margin-bottom: 20px; }
    body.pf .pf-hero__tabs { overflow-x: auto; scrollbar-width: none; justify-content: flex-start; }
    body.pf .pf-hero__tabs::-webkit-scrollbar { display: none; }
    body.pf .pf-hero__tabs label, body.pf .pf-hero__tabs a { flex: 0 0 auto; padding: 0 16px; }
    body.pf .pf-hero__card { padding: 14px; }
    body.pf .pf-hero__search { height: auto; flex-wrap: wrap; padding: 4px 4px 4px 14px; border-radius: var(--pf-r-xl); }
    body.pf .pf-hero__search .form-control { flex-basis: calc(100% - 30px); }
    body.pf .pf-hero__submit { width: 100%; margin: 4px 0 0 -10px; flex: 1 0 100%; }
    body.pf .pf-hero__filter { width: calc(50% - 4px); }
}

/* ---------- Sections ---------- */
body.pf .pf-home-section { padding: 48px 0; background: var(--pf-white); }
body.pf .pf-home-section--soft { background: var(--pf-purple-50); }
body.pf .pf-section-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 24px;
}
body.pf .pf-section-head__title {
    margin: 0;
    font-size: 28px;
    line-height: 36px;
    font-weight: 700;
}
body.pf .pf-section-head__text {
    max-width: 760px;
    margin: 6px 0 0;
    font-size: 15px;
    line-height: 24px;
    color: var(--pf-text-2) !important;
}
body.pf .pf-section-head__link {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    font-weight: 600;
    color: var(--pf-purple);
    text-decoration: none;
}
body.pf .pf-section-head__link i { font-size: 11px; }
body.pf .pf-section-head__link:hover { text-decoration: underline; }
body.pf .pf-section-foot { margin-top: 8px; text-align: center; }

@media (max-width: 767.98px) {
    body.pf .pf-home-section { padding: 32px 0; }
    body.pf .pf-section-head { align-items: flex-start; }
    body.pf .pf-section-head__title { font-size: 22px; line-height: 30px; }
    body.pf .pf-section-head__text { font-size: 14px; }
}

/* ---------- Project card ---------- */
body.pf .pf-pcard .pf-tag--purple { background: var(--pf-purple); }
body.pf .pf-pcard__price-label {
    font-size: 11px;
    line-height: 16px;
    color: var(--pf-text-2);
}
body.pf .pf-pcard .pf-gcard__price { margin-top: 0; font-size: 18px; }
body.pf .pf-pcard__price-to { font-weight: 600; color: var(--pf-text-2); font-size: 15px; }
body.pf .pf-pcard__title {
    margin: 6px 0 4px;
    font-size: 16px;
    font-weight: 700;
    line-height: 24px;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
body.pf .pf-pcard__title a { color: var(--pf-text) !important; text-decoration: none; }
body.pf .pf-pcard__text {
    margin: 0 0 6px;
    font-size: 13px;
    line-height: 20px;
    color: var(--pf-text-2) !important;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
body.pf .pf-pcard__footer { align-items: center; justify-content: space-between; }
body.pf .pf-pcard__footer .pf-btn { flex: 0 0 auto; }
body.pf .pf-pcard__count {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: var(--pf-text-2);
}

/* ---------- How it works (static block) ---------- */
body.pf #ismain-homes .raw-html-embed > section { padding: 48px 0; }
body.pf #ismain-homes .raw-html-embed .sec-heading { text-align: left; }
body.pf #ismain-homes .raw-html-embed .row.justify-content-center > [class*=col-] { flex: 0 0 100%; max-width: 100%; text-align: left !important; }
body.pf .middle-icon-features-item {
    height: calc(100% - 24px);
    margin: 0 0 24px;
    padding: 24px;
    text-align: left;
    background: var(--pf-white);
    border: 1px solid var(--pf-border);
    border-radius: var(--pf-r-l);
}
body.pf .middle-icon-features-item .icon-features-wrap { text-align: left; margin-bottom: 16px; }
body.pf .middle-icon-features-item .icon-features-wrap:before,
body.pf .middle-icon-features-item .icon-features-wrap:after { display: none; }
body.pf .middle-icon-large-features-box {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    margin: 0;
    border-radius: var(--pf-r-l);
    background: var(--pf-purple-50) !important;
}
body.pf .middle-icon-large-features-box i {
    font-size: 22px;
    color: var(--pf-purple) !important;
}
body.pf .middle-icon-features-content { text-align: left; }
body.pf .middle-icon-features-content h4 { margin: 0 0 6px; font-size: 17px; font-weight: 700; }
body.pf .middle-icon-features-content p { margin: 0; font-size: 14px; line-height: 22px; color: var(--pf-text-2); }

/* ---------- Purple promo (cover banner) ---------- */
body.pf .pf-promo-section { padding-top: 16px; }
body.pf .pf-promo {
    display: flex;
    align-items: stretch;
    min-height: 280px;
    overflow: hidden;
    background: var(--pf-purple);
    border-radius: var(--pf-r-xl);
}
body.pf .pf-promo__content {
    flex: 1 1 55%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 48px;
}
body.pf .pf-promo__title {
    margin: 0 0 10px;
    font-size: 30px;
    line-height: 40px;
    color: var(--pf-white) !important;
}
body.pf .pf-promo__text {
    margin: 0 0 24px;
    font-size: 16px;
    line-height: 26px;
    color: rgba(255, 255, 255, .85) !important;
}
body.pf .pf-promo__actions { display: flex; flex-wrap: wrap; gap: 12px; }
body.pf .pf-btn--ghost-light {
    background: transparent;
    border-color: rgba(255, 255, 255, .6);
    color: var(--pf-white) !important;
}
body.pf .pf-btn--ghost-light:hover { background: rgba(255, 255, 255, .12); color: var(--pf-white) !important; }
body.pf .pf-promo__media {
    flex: 1 1 45%;
    background-size: cover;
    background-position: center;
    clip-path: ellipse(85% 100% at 100% 50%);
}

@media (max-width: 767.98px) {
    body.pf .pf-promo { flex-direction: column-reverse; }
    body.pf .pf-promo__media { min-height: 160px; clip-path: none; }
    body.pf .pf-promo__content { padding: 24px; }
    body.pf .pf-promo__title { font-size: 22px; line-height: 30px; }
    body.pf .pf-promo__actions .pf-btn { flex: 1 1 100%; }
}

/* ---------- Article cards (blog) ---------- */
body.pf .pf-article {
    display: flex;
    flex-direction: column;
    height: calc(100% - 24px);
    margin-bottom: 24px;
    overflow: hidden;
    background: var(--pf-white);
    border: 1px solid var(--pf-border);
    border-radius: var(--pf-r-l);
    transition: box-shadow .2s ease;
}
body.pf .pf-article:hover { box-shadow: var(--pf-shadow-m); }
body.pf .pf-article__thumb { display: block; height: 200px; overflow: hidden; background: var(--pf-bg-soft); }
body.pf .pf-article__thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
body.pf .pf-article:hover .pf-article__thumb img { transform: scale(1.03); }
body.pf .pf-article__body {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    padding: 16px;
}
body.pf .pf-article__date { font-size: 12px; color: var(--pf-text-2); }
body.pf .pf-article__title {
    margin: 4px 0 8px;
    font-size: 16px;
    line-height: 24px;
    font-weight: 700;
}
body.pf .pf-article__title a { color: var(--pf-text) !important; text-decoration: none; }
body.pf .pf-article__title a:hover { color: var(--pf-purple) !important; }
body.pf .pf-article__text {
    margin: 0 0 12px;
    font-size: 13px;
    line-height: 20px;
    color: var(--pf-text-2) !important;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
body.pf .pf-article__more {
    margin-top: auto;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    font-weight: 600;
    color: var(--pf-purple);
    text-decoration: none;
}
body.pf .pf-article__more i { font-size: 10px; }

/* ---------- Home SEO text (page content after the shortcodes) ---------- */
/* Only direct children of the page content that are plain HTML, never the shortcode sections */
body.pf #ismain-homes > .ck-content > figure.table,
body.pf #ismain-homes > .ck-content > p,
body.pf #ismain-homes > .ck-content > h1,
body.pf #ismain-homes > .ck-content > h2,
body.pf #ismain-homes > .ck-content > h3,
body.pf #ismain-homes > .ck-content > ul,
body.pf #ismain-homes > .ck-content > ol {
    width: auto !important;
    max-width: 960px;
    margin-left: auto !important;
    margin-right: auto !important;
    padding-left: 16px;
    padding-right: 16px;
}
body.pf #ismain-homes > .ck-content > figure.table { padding-top: 48px; padding-bottom: 48px; }
body.pf #ismain-homes > .ck-content > figure.table table,
body.pf #ismain-homes > .ck-content > figure.table td {
    width: 100% !important;
    border: 0 !important;
    background: transparent !important;
}
body.pf #ismain-homes > .ck-content > figure.table *,
body.pf #ismain-homes > .ck-content > p * {
    font-family: var(--pf-font) !important;
    background-color: transparent !important;
}
body.pf #ismain-homes > .ck-content > figure.table span[style*="font-size"],
body.pf #ismain-homes > .ck-content > p span[style*="font-size"] { font-size: inherit !important; }
body.pf #ismain-homes > .ck-content > figure.table p,
body.pf #ismain-homes > .ck-content > figure.table li,
body.pf #ismain-homes > .ck-content > p,
body.pf #ismain-homes > .ck-content > ul li {
    font-size: 14px !important;
    line-height: 24px !important;
    color: var(--pf-text-2) !important;
}
body.pf #ismain-homes > .ck-content > figure.table td > p:first-child strong {
    display: block;
    margin-bottom: 4px;
    font-size: 24px !important;
    line-height: 34px;
    color: var(--pf-text) !important;
}
body.pf #ismain-homes > .ck-content > figure.table h1,
body.pf #ismain-homes > .ck-content > figure.table h2,
body.pf #ismain-homes > .ck-content > figure.table h3,
body.pf #ismain-homes > .ck-content > figure.table h1 *,
body.pf #ismain-homes > .ck-content > figure.table h2 *,
body.pf #ismain-homes > .ck-content > figure.table h3 * {
    font-size: 18px !important;
    line-height: 28px !important;
    color: var(--pf-text) !important;
}
body.pf #ismain-homes > .ck-content > figure.table p strong { color: var(--pf-text) !important; }
/* Resido draws a dark gradient on every direct link inside the image wrapper; the grid card's
   save button is such a link, so reset it to the small round icon in the corner */
body.pf .pf-gcard .listing-img-wrapper > a:before,
body.pf .pf-gcard .listing-img-wrapper > a:after { display: none !important; }
body.pf .property-listing.pf-gcard .listing-img-wrapper > a.pf-card__save {
    position: absolute !important;
    top: 8px;
    right: 8px;
    left: auto;
    width: 32px !important;
    height: 32px !important;
    display: flex;
    background: rgba(0, 0, 0, .25);
    border-radius: 50%;
    font-size: 16px;
}
body.pf .property-listing.pf-gcard .listing-img-wrapper > a.pf-card__save:hover { background: rgba(0, 0, 0, .4); }
body.pf .middle-icon-large-features-box:before,
body.pf .middle-icon-large-features-box:after { display: none !important; }
body.pf .pf-hero__tabs label:before,
body.pf .pf-hero__tabs label:after { display: none !important; }
body.pf .pf-hero__tabs label { padding-left: 12px !important; }

/* ==========================================================================
   Global: "Become an agent" call to action (footer widget, raw HTML in the CMS)
   ========================================================================== */
body.pf .call-to-act-wrap,
body.pf section.theme-bg.call-to-act-wrap {
    padding: 0 0 48px;
    background: transparent !important;
}
body.pf .call-to-act {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 32px 40px;
    background: var(--pf-purple-50);
    border: 1px solid var(--pf-purple-100);
    border-radius: var(--pf-r-xl);
}
body.pf .call-to-act-head h3 {
    margin: 0 0 4px;
    font-size: 24px;
    line-height: 32px;
    font-weight: 700;
    color: var(--pf-text) !important;
}
body.pf .call-to-act-head span {
    font-size: 15px;
    color: var(--pf-text-2) !important;
}
body.pf .btn.btn-call-to-act,
body.pf a.btn-call-to-act {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    height: 48px;
    padding: 0 28px;
    font-size: 15px;
    font-weight: 600;
    color: var(--pf-white) !important;
    background: var(--pf-red) !important;
    border: 0 !important;
    border-radius: var(--pf-r-m) !important;
    box-shadow: none !important;
}
body.pf .btn.btn-call-to-act:hover { background: var(--pf-red-hover) !important; }

@media (max-width: 767.98px) {
    body.pf .call-to-act { flex-direction: column; align-items: flex-start; padding: 24px; }
    body.pf .call-to-act-head h3 { font-size: 20px; line-height: 28px; }
    body.pf .btn.btn-call-to-act { width: 100%; }
}

/* ---------- Property detail: map ---------- */
body.pf .gmap_canvas { height: auto; }
body.pf .gmap_canvas p { margin: 0 0 8px; font-size: 14px; color: var(--pf-text-2); }
body.pf .gmap_canvas iframe {
    display: block;
    width: 100%;
    height: 320px;
    border: 1px solid var(--pf-border) !important;
    border-radius: var(--pf-r-l);
}

/* ==========================================================================
   Global fixes for the remaining pages
   ========================================================================== */

/* Page title band: compact, left aligned, site font (Resido forces 200px and a serif subtitle) */
body.pf .page-title {
    height: auto !important;
    min-height: 0 !important;
    display: block !important;
    padding: 32px 0 28px !important;
    background: var(--pf-purple-50) !important;
    border-bottom: 1px solid var(--pf-purple-100);
}
body.pf .page-title .ipt-title {
    margin: 0;
    font-size: 30px;
    line-height: 40px;
}
body.pf .page-title .ipn-subtitle {
    display: block;
    max-width: 820px;
    margin-top: 4px;
    font-family: var(--pf-font) !important;
    font-style: normal !important;
    font-size: 15px;
    line-height: 24px;
    color: var(--pf-text-2) !important;
}
@media (max-width: 767.98px) {
    body.pf .page-title { padding: 20px 0 !important; }
    body.pf .page-title .ipt-title { font-size: 22px; line-height: 30px; }
    body.pf .page-title .ipn-subtitle { font-size: 14px; }
}

/* CMS content (about, terms, blog posts): editor inline fonts follow the site font */
body.pf .ck-content,
body.pf .ck-content p,
body.pf .ck-content li,
body.pf .ck-content span,
body.pf .ck-content em,
body.pf .ck-content h1,
body.pf .ck-content h2,
body.pf .ck-content h3,
body.pf .ck-content h4,
body.pf .post-content,
body.pf .post-content p,
body.pf .post-content span { font-family: var(--pf-font) !important; }
body.pf .scontent .ck-content p,
body.pf .post-detail .ck-content p,
body.pf .blog-page .ck-content p,
body.pf .ck-content p { font-style: normal; }
body.pf .ck-content p,
body.pf .ck-content li { font-size: 15px; line-height: 26px; color: var(--pf-text); }
body.pf .ck-content p span[style*="font-size"],
body.pf .ck-content li span[style*="font-size"] { font-size: inherit !important; }
body.pf .ck-content p span[style*="color"],
body.pf .ck-content li span[style*="color"] { color: inherit !important; }
body.pf .ck-content h2, body.pf .ck-content h2 * { font-size: 22px !important; line-height: 32px; color: var(--pf-text) !important; }
body.pf .ck-content h3, body.pf .ck-content h3 * { font-size: 18px !important; line-height: 28px; color: var(--pf-text) !important; }
body.pf .ck-content img { max-width: 100%; height: auto; border-radius: var(--pf-r-l); }

/* Blog list cards: "Continue" link */
body.pf .bl-continue {
    font-family: var(--pf-font) !important;
    font-style: normal !important;
    font-size: 14px;
    font-weight: 600;
    color: var(--pf-purple) !important;
}
body.pf .blog-wrap-grid .blog-info,
body.pf .blog-wrap-grid .post-date { font-size: 12px; color: var(--pf-text-2); }

/* Register / login: inputs with a leading icon */
body.pf .simple-form .form-group .input-with-icon .form-control,
body.pf .modal-body .input-with-icon .form-control,
body.pf .input-with-icon .form-control { padding-left: 40px; }
body.pf .input-with-icon i,
body.pf .input-with-icon img {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
}
body.pf .input-with-icon { position: relative; }
body.pf .pf-hero__search .form-control,
body.pf .pf-listhead__search .form-control { padding-left: 12px; }
body.pf .pf-listhead__search .form-control { padding-left: 42px; }

/* Contact page info icons */
body.pf .contact-info i,
body.pf .contact-info .icon,
body.pf .cn-info-icon i,
body.pf .contact-info svg { color: var(--pf-purple) !important; }

/* Agent / team profile: Sale / Rent tab strip */
body.pf .nav-tabs.customize-tab,
body.pf .customize-tab,
body.pf .property-tab .nav-tabs,
body.pf ul.nav.nav-tabs.bg-dark,
body.pf .nav-tabs.theme-bg {
    background: transparent !important;
    border-bottom: 1px solid var(--pf-border) !important;
    padding: 0 !important;
    gap: 8px;
}
body.pf .block-wraps { border: 1px solid var(--pf-border); border-radius: var(--pf-r-l); background: var(--pf-white); box-shadow: none; }
body.pf .block-wraps-header,
body.pf .block-wraps-header .block-header {
    background: transparent !important;
    border: 0 !important;
    padding: 16px 20px 0 !important;
}
body.pf .customize-tab .nav-link {
    height: 36px;
    display: inline-flex;
    align-items: center;
    padding: 0 18px;
    font-size: 14px;
    font-weight: 600;
    color: var(--pf-text) !important;
    background: var(--pf-bg-soft) !important;
    border: 0 !important;
    border-radius: var(--pf-r-full) !important;
    margin: 0 0 12px;
}
body.pf .customize-tab .nav-link.active {
    color: var(--pf-purple) !important;
    background: var(--pf-purple-100) !important;
}
body.pf .simple-form button[type=submit].btn,
body.pf #sign-up button[type=submit].btn {
    height: 48px;
    font-size: 15px;
    font-weight: 600;
    color: var(--pf-white) !important;
    background: var(--pf-red) !important;
    border-radius: var(--pf-r-m) !important;
}
body.pf .simple-form button[type=submit].btn:hover { background: var(--pf-red-hover) !important; }
body.pf .simple-form select.form-control { height: 40px !important; padding-left: 40px; }

/* ==========================================================================
   Agents list
   ========================================================================== */
body.pf .pf-agent-search {
    margin-top: 24px;
    padding: 16px 16px 0;
    background: var(--pf-white);
    border: 1px solid var(--pf-border);
    border-radius: var(--pf-r-xl);
    box-shadow: var(--pf-shadow-s);
}
body.pf .pf-agent-search .form-label { font-size: 12px; color: var(--pf-text-2); }
body.pf .pf-agent-search .select2-container--default .select2-selection--single { border-radius: var(--pf-r-full); }
body.pf .pf-agent-search .pf-btn { border-radius: var(--pf-r-full); }
body.pf .pf-agents-section { padding: 16px 0 48px; }
body.pf .agent-tier-heading {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 16px 0 16px;
    font-size: 22px;
    line-height: 30px;
    font-weight: 700;
}
body.pf .agent-tier-heading i { font-size: 18px; color: var(--pf-purple); }
body.pf .agent-tier-elite .agent-tier-heading i { color: #c99700; }

body.pf .agents-grid.pf-agent-card {
    display: flex;
    flex-direction: column;
    height: calc(100% - 24px);
    margin: 0 0 24px;
    padding: 0;
    background: var(--pf-white);
    border: 1px solid var(--pf-border);
    border-radius: var(--pf-r-l);
    box-shadow: none;
    text-align: left;
    transition: box-shadow .2s ease;
}
body.pf .pf-agent-card:hover { box-shadow: var(--pf-shadow-m); }
body.pf .pf-agent-card__top {
    flex: 1 1 auto;
    display: flex;
    gap: 16px;
    padding: 20px;
}
body.pf .pf-agent-card__avatar { flex: 0 0 auto; }
body.pf .pf-agent-card__avatar img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid var(--pf-border);
    background: var(--pf-bg-soft);
}
body.pf .pf-agent-card__info { min-width: 0; }
body.pf .pf-agent-card__name {
    margin: 4px 0 2px;
    font-size: 17px;
    line-height: 24px;
    font-weight: 700;
}
body.pf .pf-agent-card__name a { color: var(--pf-text) !important; text-decoration: none; }
body.pf .pf-agent-card__name a:hover { color: var(--pf-purple) !important; }
body.pf .pf-agent-card__company {
    font-size: 13px;
    color: var(--pf-text-2);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
body.pf .pf-agent-card__stats {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}
body.pf .pf-agent-card__stats span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 26px;
    padding: 0 10px;
    font-size: 12px;
    font-weight: 600;
    color: var(--pf-purple);
    background: var(--pf-purple-50);
    border-radius: var(--pf-r-full);
}
body.pf .pf-agent-card__actions {
    display: flex;
    gap: 8px;
    padding: 12px 20px;
    border-top: 1px solid var(--pf-border);
}
body.pf .pf-agent-card__actions .pf-btn { flex: 1 1 0; min-width: 0; padding: 0 8px; }

/* ==========================================================================
   Project detail
   ========================================================================== */
body.pf .pf-project-detail .pf-detail__title {
    margin: 10px 0 8px;
    font-size: 26px;
    line-height: 36px;
    font-weight: 700;
    color: var(--pf-text);
}
body.pf .pf-project-detail__price-label { font-size: 12px; color: var(--pf-text-2); }
body.pf .pf-project-detail__price-to { font-weight: 600; color: var(--pf-text-2); }
body.pf .pf-project-detail__facts {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 20px;
    font-size: 14px;
    color: var(--pf-text-2);
}
body.pf .pf-project-detail__facts i { margin-right: 6px; color: var(--pf-purple); }
body.pf .pf-project-detail .bg-white.border.shadow-sm {
    margin-top: 24px;
    padding: 24px !important;
    border-color: var(--pf-border) !important;
    border-radius: var(--pf-r-l) !important;
    box-shadow: none !important;
}
body.pf .pf-project-detail .text-success { color: var(--pf-purple) !important; }
body.pf .pf-project-detail .bg-light { background: var(--pf-purple-50) !important; }
body.pf .pf-project-detail .ms-md-3 { margin-left: 0 !important; }
body.pf .pf-project-detail .border.rounded-3 { border-color: var(--pf-border) !important; border-radius: var(--pf-r-l) !important; }
body.pf .pf-project-detail .table thead th {
    font-size: 12px;
    font-weight: 600;
    color: var(--pf-text-2);
    background: var(--pf-bg-soft);
    border-bottom: 1px solid var(--pf-border);
}
@media (max-width: 767.98px) {
    body.pf .pf-project-detail .pf-detail__title { font-size: 20px; line-height: 28px; }
    body.pf .pf-project-detail .bg-white.border.shadow-sm { padding: 16px !important; }
    body.pf .pf-project-detail .border.rounded-3.p-4 { padding: 16px !important; }
}

/* ---------- Projects list ---------- */
body.pf .projects-page-wrapper section.bg-light {
    padding: 24px 0 0 !important;
    background: var(--pf-white) !important;
}
body.pf .projects-page-wrapper .section-search-wrapper .eclip-search,
body.pf .projects-page-wrapper .section-search-wrapper .hero-search-content {
    padding: 0;
    box-shadow: none;
    border-radius: 0;
    background: transparent;
}
body.pf .projects-page-wrapper .section-search-wrapper {
    padding: 12px;
    background: var(--pf-white);
    border: 1px solid var(--pf-border);
    border-radius: var(--pf-r-xl);
    box-shadow: var(--pf-shadow-s);
}
body.pf .projects-page-wrapper .container.mt-5 { margin-top: 24px !important; }
body.pf .projects-page-wrapper .item-sorting h4 { font-size: 15px; font-weight: 400; color: var(--pf-text-2); }
body.pf .projects-page-wrapper .filter_search_opt a {
    height: 40px;
    margin: 0 0 12px;
    font-size: 14px;
    font-weight: 600;
    color: var(--pf-purple) !important;
    background: var(--pf-white);
    border: 1px solid var(--pf-purple-200);
    border-radius: var(--pf-r-m);
}

/* ---------- Contact form submit ---------- */
body.pf .contact-form button[type=submit].btn,
body.pf form.contact-form .btn-theme-light-2,
body.pf form[action*="contact"] button[type=submit].btn {
    height: 44px;
    padding: 0 28px;
    color: var(--pf-white) !important;
    background: var(--pf-red) !important;
    border-radius: var(--pf-r-m) !important;
}
body.pf form[action*="contact"] button[type=submit].btn:hover { background: var(--pf-red-hover) !important; }

/* ---------- Sidebar "featured properties" widget ---------- */
body.pf .sides_list_property {
    display: flex;
    gap: 12px;
    align-items: center;
    margin-bottom: 12px;
    padding: 10px;
    background: var(--pf-white);
    border: 1px solid var(--pf-border);
    border-radius: var(--pf-r-l);
    box-shadow: none;
}
body.pf .sides_list_property_thumb {
    flex: 0 0 72px;
    width: 72px;
    height: 72px;
    margin: 0;
    overflow: hidden;
    border-radius: var(--pf-r-m);
    background: var(--pf-purple-50);
}
body.pf .sides_list_property_thumb img { width: 100%; height: 100%; object-fit: cover; }
body.pf .sides_list_property_thumb img[src*="placeholder"] { object-fit: contain; padding: 14px; opacity: .35; }
body.pf .sides_list_property_detail { flex: 1 1 auto; min-width: 0; padding: 0; }
body.pf .sides_list_property_detail h4 { margin: 0; font-size: 14px; line-height: 20px; }
body.pf .sides_list_property_detail h4 a { color: var(--pf-text) !important; }
body.pf .sides_list_property_detail > span { font-size: 12px; color: var(--pf-text-2); }
body.pf .lists_property_price { display: flex; align-items: center; justify-content: space-between; margin-top: 4px; }
body.pf .property_types_vlix {
    height: 20px;
    padding: 0 8px;
    line-height: 20px;
    font-size: 11px;
    font-weight: 600;
    text-transform: capitalize;
    color: var(--pf-purple) !important;
    background: var(--pf-purple-50) !important;
    border-radius: var(--pf-r-s);
}
body.pf .lists_property_price_value h4 { margin: 0; font-size: 14px; font-weight: 700; }

/* ==========================================================================
   Auth pages (login, register, forgot / reset password, verify)
   ========================================================================== */
body.pf .pf-auth {
    padding: 48px 16px 56px;
    background: var(--pf-purple-50);
}
body.pf .pf-auth__card {
    width: 100%;
    max-width: 440px;
    margin: 0 auto;
    padding: 32px;
    background: var(--pf-white);
    border: 1px solid var(--pf-border);
    border-radius: var(--pf-r-xl);
    box-shadow: var(--pf-shadow-m);
}
body.pf .pf-auth__card--wide { max-width: 620px; }
body.pf .pf-auth__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    margin: 0 auto 16px;
    font-size: 20px;
    color: var(--pf-purple);
    background: var(--pf-purple-50);
    border-radius: 50%;
}
body.pf .pf-auth__title {
    margin: 0;
    font-size: 26px;
    line-height: 34px;
    font-weight: 700;
    text-align: center;
}
body.pf .pf-auth__subtitle {
    margin: 6px 0 24px;
    font-size: 14px;
    line-height: 22px;
    color: var(--pf-text-2) !important;
    text-align: center;
}
body.pf .pf-auth .alert { margin-bottom: 16px; border-radius: var(--pf-r-m); font-size: 14px; }
body.pf .pf-auth__form { margin: 0; }
body.pf .pf-auth__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 16px;
}
body.pf .pf-field { margin-bottom: 16px; }
body.pf .pf-field__label {
    display: block;
    margin: 0 0 6px;
    font-size: 13px;
    font-weight: 600;
    color: var(--pf-text);
}
body.pf .pf-field__control { position: relative; }
body.pf .pf-field__control > i {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 14px;
    color: var(--pf-text-2);
    pointer-events: none;
}
body.pf .pf-field__control .form-control {
    height: 48px;
    padding-left: 40px;
    font-size: 15px;
    border-radius: var(--pf-r-m);
}
body.pf .pf-field .invalid-feedback { margin-top: 4px; font-size: 12px; }

body.pf .pf-auth__row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: -4px 0 20px;
}
body.pf .pf-check {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    font-size: 14px;
    font-weight: 400;
    color: var(--pf-text);
    cursor: pointer;
}
body.pf .pf-check input {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    margin: 0;
    border: 1.5px solid #b8b8b8;
    border-radius: var(--pf-r-s);
    background: var(--pf-white);
    display: inline-grid;
    place-content: center;
    cursor: pointer;
}
body.pf .pf-check input:checked {
    background: var(--pf-purple);
    border-color: var(--pf-purple);
}
body.pf .pf-check input:checked:after {
    content: "";
    width: 5px;
    height: 9px;
    margin-top: -2px;
    border: solid var(--pf-white);
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}
body.pf .pf-auth__link {
    font-size: 14px;
    font-weight: 600;
    color: var(--pf-purple) !important;
    text-decoration: none;
}
body.pf .pf-auth__link:hover { text-decoration: underline; }
body.pf .pf-auth__social:empty { display: none; }
body.pf .pf-auth__social { margin-top: 16px; text-align: center; }
body.pf .pf-auth__footer {
    margin: 20px 0 0;
    padding-top: 20px;
    font-size: 14px;
    text-align: center;
    color: var(--pf-text-2) !important;
    border-top: 1px solid var(--pf-border);
}

/* Individual / Property dealer switch */
body.pf .pf-segment {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}
body.pf .pf-segment input { position: absolute; opacity: 0; pointer-events: none; }
body.pf .pf-segment label {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 48px;
    margin: 0;
    font-size: 14px;
    font-weight: 600;
    color: var(--pf-text);
    background: var(--pf-white);
    border: 1px solid var(--pf-border);
    border-radius: var(--pf-r-m);
    cursor: pointer;
    transition: border-color .15s ease, background-color .15s ease;
}
body.pf .pf-segment label:before,
body.pf .pf-segment label:after { display: none !important; }
body.pf .pf-segment input:checked + label {
    color: var(--pf-purple);
    background: var(--pf-purple-50);
    border-color: var(--pf-purple-600);
    box-shadow: inset 0 0 0 1px var(--pf-purple-600);
}

@media (max-width: 575.98px) {
    body.pf .pf-auth { padding: 24px 12px 32px; }
    body.pf .pf-auth__card { padding: 24px 18px; }
    body.pf .pf-auth__grid { grid-template-columns: 1fr; }
    body.pf .pf-auth__title { font-size: 22px; }
}

/* ---------- 404 ---------- */
body.pf .pf-error { padding: 72px 16px 80px; background: var(--pf-purple-50); text-align: center; }
body.pf .pf-error__inner { max-width: 560px; margin: 0 auto; }
body.pf .pf-error__code {
    font-size: 96px;
    line-height: 1;
    font-weight: 700;
    letter-spacing: -2px;
    color: var(--pf-purple);
}
body.pf .pf-error__title { margin: 16px 0 8px; font-size: 26px; line-height: 34px; }
body.pf .pf-error__text { margin: 0 0 28px; font-size: 15px; line-height: 24px; color: var(--pf-text-2) !important; }
body.pf .pf-error__actions { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; }
@media (max-width: 575.98px) {
    body.pf .pf-error__code { font-size: 72px; }
    body.pf .pf-error__actions .pf-btn { flex: 1 1 100%; }
    body.pf .pf-segment label { font-size: 13px; gap: 6px; padding: 0 6px; }
}

/* ---------- Empty states ---------- */
body.pf .pf-empty-state {
    max-width: 480px;
    margin: 16px auto 24px;
    padding: 40px 24px;
    text-align: center;
    background: var(--pf-white);
    border: 1px dashed var(--pf-purple-200);
    border-radius: var(--pf-r-xl);
}
body.pf .pf-empty-state__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    margin-bottom: 16px;
    font-size: 22px;
    color: var(--pf-purple);
    background: var(--pf-purple-50);
    border-radius: 50%;
}
body.pf .pf-empty-state__title { margin: 0 0 6px; font-size: 18px; }
body.pf .pf-empty-state__text { margin: 0 0 20px; font-size: 14px; color: var(--pf-text-2) !important; }
body.pf .wishlist-page { padding: 32px 0; }

/* ---------- Agent / agency profile header ---------- */
body.pf .agency-content-info .prt-types,
body.pf .agency-content-info .badge,
body.pf [class*="agency"] .prt-types {
    color: var(--pf-purple) !important;
    background: var(--pf-white) !important;
}
body.pf .prt-detio span {
    display: inline-flex;
    align-items: center;
    height: 28px;
    padding: 0 12px;
    font-size: 13px;
    font-weight: 600;
    color: var(--pf-purple) !important;
    background: var(--pf-white) !important;
    border-radius: var(--pf-r-full);
}

/* Property / project detail: contact form lines up with the Call / WhatsApp buttons */
body.pf .pf-agent-box__form form,
body.pf .pf-agent-box__form .row { padding-left: 0 !important; padding-right: 0 !important; margin-left: 0; margin-right: 0; }
body.pf .pf-agent-box__form .row > [class*=col-] { padding-left: 0; padding-right: 0; }
body.pf .pf-agent-box__form-title { padding: 0 !important; }
body.pf .pf-detail__title { font-size: 20px; line-height: 30px; font-weight: 600; }
body.pf .sides-widget-body.pf-agent-box__form { padding-left: 0 !important; padding-right: 0 !important; }
body.pf .pf-agent-box__form .form-group { padding-left: 0 !important; padding-right: 0 !important; }

/* ---------- Google map with location pin (property + project detail) ---------- */
body.pf .pf-map__address {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 12px;
    font-size: 14px;
    color: var(--pf-text);
}
body.pf .pf-map__address i { color: var(--pf-red); }
body.pf .pf-map__frame {
    position: relative;
    height: 340px;
    overflow: hidden;
    background: var(--pf-bg-soft);
    border: 1px solid var(--pf-border);
    border-radius: var(--pf-r-l);
}
body.pf .pf-map__frame iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}
body.pf .pf-map__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-top: 12px;
}
body.pf .pf-map__note { font-size: 12px; color: var(--pf-text-2); }
@media (max-width: 575.98px) {
    body.pf .pf-map__frame { height: 260px; }
    body.pf .pf-map__actions .pf-btn { flex: 1 1 auto; }
}
body.pf .pf-error__reasons {
    margin: 8px auto 28px;
    padding: 20px 24px;
    text-align: left;
    background: var(--pf-white);
    border: 1px solid var(--pf-border);
    border-radius: var(--pf-r-l);
}
body.pf .pf-error__reasons h4 { margin: 0 0 8px; font-size: 15px; }
body.pf .pf-error__reasons ul { margin: 0 0 12px; padding-left: 18px; font-size: 14px; line-height: 24px; color: var(--pf-text-2); }
body.pf .pf-error__reasons p { margin: 0; font-size: 14px; }

/* Agent card: original contact text, mail icon and property count */
body.pf .pf-agent-card__top { position: relative; }
body.pf .pf-agent-card__contact {
    margin: 6px 0 0;
    padding: 0;
    list-style: none;
    font-size: 13px;
    line-height: 20px;
    color: var(--pf-text-2);
    word-break: break-word;
}
body.pf .pf-agent-card__contact strong { color: var(--pf-text); font-weight: 600; }
body.pf .pf-agent-card__mail {
    position: absolute;
    top: 16px;
    right: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    color: var(--pf-purple) !important;
    background: var(--pf-purple-50);
    border-radius: 50%;
    text-decoration: none;
}
body.pf .pf-agent-card__info { padding-right: 32px; }
body.pf .pf-agent-card__actions { align-items: center; justify-content: space-between; }
body.pf .pf-agent-card__actions .pf-btn { flex: 0 0 auto; padding: 0 18px; }
body.pf .pf-agent-card__count {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 600;
    color: var(--pf-purple);
}

/* The mobile bottom navigation was removed (not part of the original site), so nothing reserves space for it */



/* ==========================================================================
   Search suggestions (recent searches + cities / locations)
   ========================================================================== */
body.pf .pf-suggest { position: relative; }
body.pf .pf-suggest__clear {
    flex: 0 0 auto;
    width: 28px;
    height: 28px;
    margin-right: 6px;
    padding: 0;
    font-size: 20px;
    line-height: 26px;
    color: var(--pf-text-2);
    background: transparent;
    border: 0;
    border-radius: 50%;
    cursor: pointer;
}
body.pf .pf-suggest__clear:hover { background: var(--pf-bg-soft); color: var(--pf-text); }
body.pf .pf-listhead__search .pf-suggest__clear {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
}
body.pf .pf-suggest__panel {
    position: absolute;
    left: 0;
    right: 0;
    top: calc(100% + 6px);
    z-index: 1050;
    max-height: 340px;
    overflow-y: auto;
    padding: 8px 0;
    text-align: left;
    background: var(--pf-white);
    border: 1px solid var(--pf-border);
    border-radius: var(--pf-r-l);
    box-shadow: var(--pf-shadow-l);
}
body.pf .pf-suggest__panel[hidden] { display: none; }
body.pf .pf-suggest__title {
    padding: 8px 20px 6px;
    font-size: 15px;
    font-weight: 700;
    color: var(--pf-text);
}
body.pf .pf-suggest__item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 10px 20px;
    cursor: pointer;
    transition: background-color .1s ease;
}
body.pf .pf-suggest__item:hover,
body.pf .pf-suggest__item.is-active { background: var(--pf-purple-50); }
body.pf .pf-suggest__item > i { flex: 0 0 18px; font-size: 15px; color: var(--pf-text-2); text-align: center; }
body.pf .pf-suggest__text { display: flex; flex-direction: column; flex: 1 1 auto; min-width: 0; }
body.pf .pf-suggest__name {
    font-size: 15px;
    line-height: 22px;
    color: var(--pf-text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
body.pf .pf-suggest__name strong { font-weight: 700; }
body.pf .pf-suggest__sub { font-size: 13px; line-height: 18px; color: var(--pf-text-2); }
body.pf .pf-suggest__count {
    flex: 0 0 auto;
    min-width: 26px;
    padding: 0 8px;
    font-size: 12px;
    font-weight: 600;
    line-height: 22px;
    text-align: center;
    color: var(--pf-purple);
    background: var(--pf-purple-50);
    border-radius: var(--pf-r-full);
}
body.pf .pf-suggest__item--recent .pf-suggest__name { font-size: 14px; font-weight: 600; }
body.pf .pf-suggest__remove {
    flex: 0 0 auto;
    width: 28px;
    height: 28px;
    padding: 0;
    font-size: 18px;
    color: var(--pf-text-2);
    background: transparent;
    border: 0;
    border-radius: 50%;
    opacity: 0;
    cursor: pointer;
}
body.pf .pf-suggest__item--recent:hover .pf-suggest__remove { opacity: 1; }
body.pf .pf-suggest__remove:hover { background: var(--pf-border); color: var(--pf-text); }
@media (hover: none) { body.pf .pf-suggest__remove { opacity: 1; } }

/* Hero card must not clip the suggestion panel / dropdowns */
body.pf .pf-hero__card,
body.pf .pf-hero__form { overflow: visible; position: relative; z-index: 5; }
body.pf .pf-hero.hero-banner { overflow: visible; z-index: 4; }

/* Category / City filters: small label above each pill */
body.pf .pf-hero__filter { display: flex; flex-direction: column; gap: 4px; }
body.pf .pf-hero__filter-label {
    padding-left: 14px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .02em;
    text-transform: uppercase;
    color: var(--pf-text-2);
}

/* ==========================================================================
   Select2 dropdowns (category, city, sort) in the PF style
   ========================================================================== */
body.pf .select2-container--open { z-index: 1060; }
body.pf .select2-dropdown.pf-select-dropdown {
    margin-top: 6px;
    overflow: hidden;
    border: 1px solid var(--pf-border) !important;
    border-radius: var(--pf-r-l) !important;
    box-shadow: var(--pf-shadow-l);
}
body.pf .select2-container--open .select2-dropdown--above.pf-select-dropdown { margin-top: -6px; }
body.pf .pf-select-dropdown .select2-search--dropdown { position: relative; padding: 10px 10px 6px; }
body.pf .pf-select-dropdown .select2-search--dropdown:before {
    content: "\f002";
    position: absolute;
    left: 24px;
    top: 50%;
    margin-top: 2px;
    transform: translateY(-50%);
    font-family: "Font Awesome 5 Free", "Font Awesome 6 Free";
    font-weight: 900;
    font-size: 13px;
    color: var(--pf-text-2);
    pointer-events: none;
}
body.pf .pf-select-dropdown .select2-search__field {
    height: 40px;
    padding: 0 12px 0 36px !important;
    font-size: 14px;
    border: 1px solid var(--pf-border) !important;
    border-radius: var(--pf-r-full) !important;
    outline: none;
}
body.pf .pf-select-dropdown .select2-search__field:focus { border-color: var(--pf-purple-600) !important; }
body.pf .pf-select-dropdown--nosearch .select2-search--dropdown { display: none; }
body.pf .pf-select-dropdown .select2-results__options { max-height: 280px !important; padding: 4px 0; }
body.pf .pf-select-dropdown .select2-results__option {
    padding: 10px 16px;
    font-size: 14px;
    color: var(--pf-text);
}
body.pf .pf-select-dropdown .select2-results__option--highlighted,
body.pf .pf-select-dropdown .select2-results__option--highlighted[aria-selected] {
    color: var(--pf-purple) !important;
    background: var(--pf-purple-50) !important;
}
body.pf .pf-select-dropdown .select2-results__option[aria-selected=true],
body.pf .pf-select-dropdown .select2-results__option--selected {
    font-weight: 600;
    color: var(--pf-purple);
    background: var(--pf-purple-100);
}
body.pf .pf-select-dropdown .select2-results__message { color: var(--pf-text-2); }
body.pf .pf-hero__search.pf-suggest,
body.pf .pf-listhead__search.pf-suggest { z-index: 20; }
body.pf .pf-hero__filters { position: relative; z-index: 1; }
body.pf .select2-dropdown.pf-select-dropdown { min-width: 260px; }
body.pf .pf-hero.hero-banner { z-index: 30; }
@media (max-width: 767.98px) {
    body.pf .pf-hero__search .pf-suggest__clear {
        position: absolute;
        right: 10px;
        top: 8px;
        margin: 0;
    }
    body.pf .pf-hero__search .form-control { padding-right: 36px; }
}

/* Selected values as chips inside the search box */
body.pf .pf-suggest__chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    flex: 0 1 auto;
    margin-left: 10px;
    max-width: 70%;
}
body.pf .pf-suggest__chips[hidden] { display: none; }
body.pf .pf-chip-token {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    max-width: 260px;
    height: 32px;
    padding: 0 6px 0 14px;
    font-size: 14px;
    font-weight: 600;
    color: var(--pf-purple);
    background: var(--pf-purple-50);
    border: 1px solid var(--pf-purple-600);
    border-radius: var(--pf-r-full);
    white-space: nowrap;
}
body.pf .pf-chip-token__text { overflow: hidden; text-overflow: ellipsis; }
body.pf .pf-chip-token__remove {
    flex: 0 0 auto;
    width: 22px;
    height: 22px;
    padding: 0;
    font-size: 17px;
    line-height: 20px;
    color: var(--pf-purple);
    background: transparent;
    border: 0;
    border-radius: 50%;
    cursor: pointer;
}
body.pf .pf-chip-token__remove:hover { background: var(--pf-purple-100); }
body.pf .pf-hero__search .form-control,
body.pf .pf-listhead__search .form-control { min-width: 120px; }

/* Properties page box: chips sit inside the pill next to the icon */
body.pf .pf-listhead__search.pf-suggest {
    display: flex;
    align-items: center;
    min-height: 44px;
    border: 1px solid var(--pf-border);
    border-radius: var(--pf-r-full);
    background: var(--pf-white);
    padding-left: 32px;
}
body.pf .pf-listhead__search.pf-suggest:focus-within { border-color: var(--pf-purple-600); box-shadow: 0 0 0 3px rgba(100, 89, 178, .12); }
body.pf .pf-listhead__search.pf-suggest .form-control {
    flex: 1 1 auto;
    height: 42px;
    padding-left: 12px;
    border: 0;
    box-shadow: none !important;
    background: transparent;
}
body.pf .pf-listhead__search.pf-suggest > i { left: 16px; }
body.pf .pf-listhead__search.pf-suggest .pf-suggest__clear { position: static; transform: none; margin-right: 8px; }

@media (max-width: 767.98px) {
    body.pf .pf-suggest__chips { max-width: none; flex-basis: calc(100% - 40px); margin: 4px 0 0 8px; }
    body.pf .pf-hero__search .pf-suggest__chips { order: 0; }
}
body.pf .pf-suggest__chips { flex: 0 0 auto; flex-wrap: nowrap; max-width: 65%; overflow: hidden; }
body.pf .pf-hero__search { height: auto; min-height: 48px; }
body.pf .pf-hero__search .form-control,
body.pf .pf-listhead__search.pf-suggest .form-control { flex: 1 1 80px; min-width: 80px; }
body.pf .pf-hero__filter .select2-selection__clear {
    position: absolute;
    right: 28px;
    top: 50%;
    transform: translateY(-50%);
    margin: 0;
    font-size: 16px;
    color: var(--pf-text-2);
}
@media (max-width: 767.98px) {
    body.pf .pf-suggest__chips { flex-wrap: wrap; max-width: none; }
}

/* Category / City with a value: the field turns into a chip, ï¿½ replaces the arrow */
body.pf .pf-hero__filter .select2-container--default .select2-selection--single { position: relative; }
body.pf .pf-hero__filter .select2-container--default .select2-selection--single:has(.select2-selection__clear) {
    background: var(--pf-purple-50) !important;
    border-color: var(--pf-purple-600) !important;
}
body.pf .pf-hero__filter .select2-selection--single:has(.select2-selection__clear) .select2-selection__rendered {
    padding-right: 28px !important;
    font-weight: 600;
    color: var(--pf-purple) !important;
}
body.pf .pf-hero__filter .select2-selection--single:has(.select2-selection__clear) .select2-selection__arrow { display: none; }
body.pf .pf-hero__filter .select2-selection__clear {
    position: absolute !important;
    right: 8px !important;
    top: 50% !important;
    transform: translateY(-50%);
    float: none !important;
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    margin: 0 !important;
    padding: 0 !important;
    font-size: 17px !important;
    line-height: 1 !important;
    font-weight: 400;
    color: var(--pf-purple) !important;
    background: transparent;
    border: 0;
    border-radius: 50%;
    z-index: 2;
}
body.pf .pf-hero__filter .select2-selection__clear:hover { background: var(--pf-purple-100); }
body.pf .pf-hero__filter .select2-container--focus .select2-selection--single,
body.pf .pf-hero__filter .select2-container--open .select2-selection--single { box-shadow: 0 0 0 3px rgba(100, 89, 178, .12); border-color: var(--pf-purple-600) !important; }
@media (min-width: 768px) {
    body.pf .pf-hero__filter { width: auto; min-width: 200px; max-width: 320px; }
    body.pf .pf-hero__filter .select2-container { width: auto !important; min-width: 200px; max-width: 320px; }
}

/* List and grid views share one width so the count / sort bar never moves */
body.pf .pf-results-col--list { max-width: none; }

/* Buy / Rent / New projects tabs above the home search (nothing selected by default) */
body.pf .pf-hero__tabs {
    display: flex;
    gap: 4px;
    max-width: 520px;
    margin: 0 auto 14px;
    padding: 6px;
    background: var(--pf-white);
    border-radius: var(--pf-r-full);
    box-shadow: var(--pf-shadow-m);
}
body.pf .pf-hero__tabs input { position: absolute; opacity: 0; pointer-events: none; }
body.pf .pf-hero__tabs label,
body.pf .pf-hero__tabs a {
    flex: 1 1 0;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 44px;
    margin: 0;
    padding: 0 12px !important;
    font-size: 15px;
    font-weight: 600;
    color: var(--pf-text) !important;
    border-radius: var(--pf-r-full);
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
}
body.pf .pf-hero__tabs label:before,
body.pf .pf-hero__tabs label:after { display: none !important; }
body.pf .pf-hero__tabs label:hover,
body.pf .pf-hero__tabs a:hover { background: var(--pf-bg-soft); }
body.pf .pf-hero__tabs input:checked + label { background: var(--pf-purple-100); color: var(--pf-purple) !important; }
body.pf .pf-hero__tabs input:focus-visible + label { outline: 2px solid var(--pf-focus); }
body.pf .pf-hero__submit-icon { display: none; }

/* ==========================================================================
   Mobile home hero in the Property Finder app style
   ========================================================================== */
@media (max-width: 767.98px) {
    body.pf .pf-hero.hero-banner { padding: 40px 0 28px; }
    body.pf .pf-hero__title { font-size: 32px; line-height: 40px; }
    body.pf .pf-hero__subtitle { margin-bottom: 22px; }
    body.pf .pf-hero__tabs { max-width: none; margin-bottom: 12px; padding: 5px; }
    body.pf .pf-hero__tabs label,
    body.pf .pf-hero__tabs a { flex: 1 1 auto; height: 40px; padding: 0 10px !important; font-size: 15px; }

    /* The white card disappears: pill search + filters sit straight on the photo */
    body.pf .pf-hero__card { padding: 0; background: transparent; box-shadow: none; border-radius: 0; }
    body.pf .pf-hero__search {
        flex-wrap: nowrap;
        height: 56px;
        min-height: 56px;
        padding: 0 6px 0 18px;
        background: var(--pf-white);
        border: 0;
        border-radius: var(--pf-r-full);
        box-shadow: var(--pf-shadow-m);
    }
    body.pf .pf-hero__search > i.fa-search { display: none; }
    body.pf .pf-hero__search .form-control { flex: 1 1 auto; height: 52px; padding: 0 8px 0 0; font-size: 16px; }
    body.pf .pf-hero__search .pf-suggest__clear { position: static; margin-right: 4px; }
    body.pf .pf-hero__submit {
        flex: 0 0 44px;
        width: 44px;
        height: 44px;
        margin: 0;
        padding: 0;
        border-radius: 50%;
    }
    body.pf .pf-hero__submit-text { display: none; }
    body.pf .pf-hero__submit-icon { display: inline-block; font-size: 17px; }
    body.pf .pf-hero__search .pf-suggest__chips { flex-wrap: nowrap; flex-basis: auto; max-width: 55%; margin: 0 6px 0 0; overflow-x: auto; scrollbar-width: none; }

    body.pf .pf-hero__filters { margin-top: 10px; gap: 8px; }
    body.pf .pf-hero__filter { width: calc(50% - 4px); }
    body.pf .pf-hero__filter .select2-container--default .select2-selection--single,
    body.pf .pf-hero__filter select.form-control {
        height: 40px;
        background: rgba(255, 255, 255, .95);
        border-color: transparent;
        box-shadow: var(--pf-shadow-s);
    }
}

/* ==========================================================================
   Agent / Team profile header (shared .agency markup)
   ========================================================================== */
body.pf .agent-page { padding: 24px 0 0 !important; background: var(--pf-white) !important; }
body.pf .agency.agency-list,
body.pf .agency {
    display: flex;
    align-items: center;
    gap: 28px;
    margin: 0 !important;
    padding: 28px 32px !important;
    background: var(--pf-white) !important;
    border: 1px solid var(--pf-border);
    border-radius: var(--pf-r-xl);
    box-shadow: var(--pf-shadow-s);
    color: var(--pf-text);
    top: 0 !important;
}
body.pf .agency:before, body.pf .agency:after { display: none !important; }
body.pf .agency .agency-avatar {
    flex: 0 0 120px;
    width: 120px !important;
    max-width: 120px !important;
    margin: 0 !important;
    padding: 0 !important;
    position: static !important;
}
body.pf .agency .agency-avatar img,
body.pf .agency .agency-avatar img.img-thumbnail {
    display: block;
    width: 120px !important;
    height: 120px !important;
    max-width: none;
    padding: 0;
    object-fit: cover;
    border: 4px solid var(--pf-white);
    border-radius: 50%;
    background: var(--pf-purple-50);
    box-shadow: 0 0 0 1px var(--pf-purple-100), var(--pf-shadow-m);
}
body.pf .agency .agency-content { flex: 1 1 auto; min-width: 0; padding: 0 !important; margin: 0 !important; }
body.pf .agency .agency-name h4 { margin: 0 0 4px; font-size: 26px; line-height: 34px; font-weight: 700; }
body.pf .agency .agency-name h4 a { color: var(--pf-text) !important; text-decoration: none; }
body.pf .agency .agency-name span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 15px;
    font-weight: 600;
    color: var(--pf-purple) !important;
}
body.pf .agency .agency-name span i { color: var(--pf-purple); }
body.pf .agency .agency-desc p {
    margin: 10px 0 12px;
    max-width: 820px;
    font-size: 14px;
    line-height: 22px;
    color: var(--pf-text-2) !important;
}
body.pf .agency .prt-detio span {
    color: var(--pf-purple) !important;
    background: var(--pf-purple-50) !important;
    border: 1px solid var(--pf-purple-100);
}
@media (max-width: 767.98px) {
    body.pf .agency.agency-list,
    body.pf .agency { flex-direction: column; text-align: center; gap: 14px; padding: 22px 18px !important; }
    body.pf .agency .agency-avatar { flex-basis: auto; }
    body.pf .agency .agency-avatar img { width: 96px !important; height: 96px !important; }
    body.pf .agency .agency-name h4 { font-size: 21px; line-height: 28px; }
}

/* Agent info block + Our team */
body.pf .block-wraps .block-header h4,
body.pf .block-wrap .block-title { font-size: 17px; font-weight: 700; color: var(--pf-text); }
body.pf .dw-proprty-info li a,
body.pf .block-wraps a:not(.nav-link):not(.pf-btn) { color: var(--pf-purple); }
body.pf .dw-proprty-info li strong { display: block; font-size: 12px; font-weight: 600; color: var(--pf-text-2); }
body.pf .block-wraps img.img-thumbnail,
body.pf .team-member img,
body.pf .our-team img {
    width: 88px;
    height: 88px;
    padding: 0;
    object-fit: cover;
    border-radius: 50%;
    border: 1px solid var(--pf-border);
}

/* ==========================================================================
   Blog list cards (theme loop)
   ========================================================================== */
body.pf .blog-wrap-grid {
    height: calc(100% - 24px);
    margin-bottom: 24px;
    padding: 0 !important;
    overflow: hidden;
    background: var(--pf-white);
    border: 1px solid var(--pf-border) !important;
    border-radius: var(--pf-r-l) !important;
    box-shadow: none !important;
    display: flex;
    flex-direction: column;
    transition: box-shadow .2s ease;
}
body.pf .blog-wrap-grid:hover { box-shadow: var(--pf-shadow-m) !important; }
body.pf .blog-wrap-grid .blog-thumb { margin: 0 !important; height: 200px; overflow: hidden; border-radius: 0 !important; }
body.pf .blog-wrap-grid .blog-thumb img { width: 100%; height: 100%; object-fit: cover; border-radius: 0 !important; transition: transform .3s ease; }
body.pf .blog-wrap-grid:hover .blog-thumb img { transform: scale(1.03); }
body.pf .blog-wrap-grid .blog-info { padding: 14px 16px 0; font-size: 12px; color: var(--pf-text-2); }
body.pf .blog-wrap-grid .blog-info i { color: var(--pf-text-2); }
body.pf .blog-wrap-grid .blog-body { flex: 1 1 auto; display: flex; flex-direction: column; padding: 6px 16px 16px !important; }
body.pf .blog-wrap-grid .bl-title { margin: 0 0 8px; font-size: 16px; line-height: 24px; font-weight: 700; }
body.pf .blog-wrap-grid .bl-title a { color: var(--pf-text) !important; }
body.pf .blog-wrap-grid .bl-title a:hover { color: var(--pf-purple) !important; }
body.pf .blog-wrap-grid .blog-body p {
    margin: 0 0 12px;
    font-size: 13px;
    line-height: 20px;
    color: var(--pf-text-2);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
body.pf .blog-wrap-grid .bl-continue { margin-top: auto; }
body.pf .pf-post-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 14px; font-size: 12px; color: var(--pf-text-2); }
body.pf .pf-post-meta__item { display: inline-flex; align-items: center; gap: 5px; }
body.pf .pf-post-meta a { color: var(--pf-purple); }

/* Agent header text was inheriting Resido's white colour */
body.pf .agency .agency-name h4,
body.pf .agency .agency-name h4 a,
body.pf .agency h4 { color: var(--pf-text) !important; }
body.pf .agency .agency-name span,
body.pf .agency .agency-name span * { color: var(--pf-purple) !important; }
body.pf .agency .agency-desc p,
body.pf .agency p { color: var(--pf-text-2) !important; }

/* Blog cards: image to the edges, Continue link inside the card */
body.pf .blog-wrap-grid .blog-thumb,
body.pf .blog-wrap-grid .blog-thumb a { display: block; padding: 0 !important; }
body.pf .blog-wrap-grid .bl-continue:before,
body.pf .blog-wrap-grid .bl-continue:after { position: static !important; display: inline-block; margin-left: 6px; }
body.pf .blog-wrap-grid .bl-continue { position: relative; display: inline-flex; align-items: center; padding-right: 0 !important; }

/* Our Team members: round photos */
body.pf .block-wrap .block-body .agency-avatar { width: 96px; height: 96px; margin-bottom: 10px; }
body.pf .block-wrap .block-body .agency-avatar img {
    width: 96px !important;
    height: 96px !important;
    padding: 0 !important;
    object-fit: cover;
    border: 3px solid var(--pf-white) !important;
    border-radius: 50% !important;
    box-shadow: 0 0 0 1px var(--pf-purple-100), var(--pf-shadow-s);
}
body.pf .block-wrap .block-body a.text-center { color: var(--pf-text); text-decoration: none; }
body.pf .block-wrap .block-body a.text-center h5,
body.pf .block-wrap .block-body a.text-center h4 { font-size: 15px; font-weight: 700; margin: 0; }
body.pf .agency.agency-list .agency-name h4,
body.pf .agency.agency-list .agency-name a,
body.pf .agency.agency-list h4 { color: var(--pf-text) !important; }
body.pf .agency.agency-list .agency-name span,
body.pf .agency.agency-list i { color: var(--pf-purple) !important; }
body.pf .agency.agency-list .agency-desc,
body.pf .agency.agency-list p { color: var(--pf-text-2) !important; }
body.pf .blog-wrap-grid .bl-continue:before { order: 2; }

/* ==========================================================================
   Blog post page
   ========================================================================== */
body.pf .post-featured-img { overflow: hidden; border-radius: var(--pf-r-l); }
body.pf .post-featured-img img {
    width: 100%;
    max-height: 460px;
    object-fit: cover;
    border-radius: var(--pf-r-l);
}
body.pf .blog-details .post-details h2,
body.pf .blog-details .post-title { font-size: 28px; line-height: 38px; margin: 10px 0 16px; }

/* Sidebar widgets */
body.pf .single-widgets {
    margin-bottom: 20px;
    padding: 20px;
    background: var(--pf-white);
    border: 1px solid var(--pf-border);
    border-radius: var(--pf-r-l);
    box-shadow: none;
}
body.pf .single-widgets .title { margin: 0 0 14px; font-size: 17px; font-weight: 700; }
body.pf .single-widgets:has(> ul:empty),
body.pf .widget_category:not(:has(li)) { display: none; }
body.pf .widget_thumb_post ul { margin: 0; padding: 0; list-style: none; }
body.pf .widget_thumb_post li { display: flex; gap: 12px; align-items: center; margin-bottom: 14px; }
body.pf .widget_thumb_post li:last-child { margin-bottom: 0; }
body.pf .widget_thumb_post .left img {
    width: 72px !important;
    height: 72px;
    padding: 0;
    margin: 0 !important;
    object-fit: cover;
    border: 0;
    border-radius: var(--pf-r-m);
}
body.pf .widget_thumb_post .right { display: flex; flex-direction: column; min-width: 0; }
body.pf .widget_thumb_post .feed-title {
    font-size: 14px;
    line-height: 20px;
    font-weight: 600;
    color: var(--pf-text) !important;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
body.pf .widget_thumb_post .feed-title:hover { color: var(--pf-purple) !important; }
body.pf .widget_thumb_post .post-date { margin-top: 4px; font-size: 12px; color: var(--pf-text-2); }
body.pf .widget_thumb_post .post-date i { margin-right: 4px; }
body.pf .single-widgets.widget_thumb_post ul li .left { flex: 0 0 64px; width: 64px; height: 64px; margin: 0; padding: 0; }
body.pf .single-widgets.widget_thumb_post ul li .left img { width: 64px !important; height: 64px !important; float: none !important; }
body.pf .single-widgets.widget_thumb_post ul li .right { flex: 1 1 auto; padding: 0; margin: 0; }
body.pf .single-widgets.widget_thumb_post ul li .right .feed-title,
body.pf .single-widgets.widget_thumb_post ul li .right a.feed-title { font-size: 14px !important; line-height: 20px !important; font-weight: 600 !important; }
body.pf .single-widgets.widget_thumb_post ul li .right .post-date { font-size: 12px !important; }

/* Blog images: show the whole picture at its own 16:9 shape instead of a cropped 200px strip */
body.pf .pf-article__thumb,
body.pf .blog-wrap-grid .blog-thumb {
    height: auto !important;
    aspect-ratio: 16 / 9;
}
body.pf .pf-article__thumb img,
body.pf .blog-wrap-grid .blog-thumb img {
    width: 100%;
    height: 100% !important;
    object-fit: cover;
    object-position: center;
}

/* Purple promo banner: heading always white */
body.pf section.pf-promo-section .pf-promo .pf-promo__content h2.pf-promo__title,
body.pf section.pf-promo-section .pf-promo .pf-promo__content h2.pf-promo__title * { color: #fff !important; }

/* The listing card used in grids (home, agent / team pages, wishlist, grid view) */
body.pf .pf-mcard.pf-mcard--grid {
    display: flex;
    flex-direction: column;
    height: calc(100% - 24px);
    margin-bottom: 24px;
}
body.pf .pf-mcard.pf-mcard--grid .pf-mcard__body { flex: 1 1 auto; display: flex; flex-direction: column; }
body.pf .pf-mcard.pf-mcard--grid .pf-mcard__actions { margin-top: auto; }
body.pf .pf-mcard.pf-mcard--grid .pf-mcard__title {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Agent / team page: property cards use the full phone width */
@media (max-width: 767.98px) {
    body.pf .block-wraps,
    body.pf section.min.gray-simple .block-wraps { border: 0 !important; background: transparent !important; }
    body.pf .block-wraps .block-wraps-header,
    body.pf .block-wraps .block-wraps-header .block-header,
    body.pf .block-wraps .block-body { padding-left: 0 !important; padding-right: 0 !important; }
    body.pf .block-wraps .tab-content .row > [class*=col-] { padding-left: 0; padding-right: 0; }
    body.pf .block-wraps .tab-content .row { margin-left: 0; margin-right: 0; }
}
/* Grid cards: "Listed …" sits under the agent name instead of on top of it */
body.pf .pf-mcard--grid .pf-mcard__agent { flex-wrap: wrap; }
body.pf .pf-mcard--grid .pf-mcard__agent-info { flex: 1 1 auto; min-width: 0; }
body.pf .pf-mcard--grid .pf-mcard__agent-name { white-space: normal; overflow: visible; }
body.pf .pf-mcard--grid .pf-mcard__listed { position: static; flex: 0 0 auto; margin-left: auto; align-self: flex-start; }
@media (max-width: 767.98px) {
    body.pf .block-wraps { padding: 0 !important; box-shadow: none !important; }
    body.pf section.min.gray-simple .container { padding-left: 12px; padding-right: 12px; }
}
body.pf .pf-agent-card__counts { display: flex; flex-wrap: wrap; gap: 6px 14px; }
body.pf .pf-agent-card__count--rent { color: #00814b; }

/* ---------- Property detail: listed by (agency + agent) and similar properties ---------- */
body.pf .pf-detail-agents,
body.pf .pf-detail-similar { margin-top: 32px; }
body.pf .pf-detail-agents__title { margin: 0 0 16px; font-size: 22px; line-height: 30px; font-weight: 700; }
body.pf .pf-detail-agents__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; }
body.pf .pf-detail-agents__card {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    padding: 20px;
    background: var(--pf-white);
    border: 1px solid var(--pf-border);
    border-radius: var(--pf-r-l);
}
body.pf .pf-detail-agents__logo,
body.pf .pf-detail-agents__photo {
    flex: 0 0 72px;
    width: 72px;
    height: 72px;
    object-fit: cover;
    border: 1px solid var(--pf-border);
    background: var(--pf-purple-50);
}
body.pf .pf-detail-agents__logo { border-radius: var(--pf-r-m); }
body.pf .pf-detail-agents__photo { border-radius: 50%; }
body.pf .pf-detail-agents__info { min-width: 0; }
body.pf .pf-detail-agents__label {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: var(--pf-purple);
}
body.pf .pf-detail-agents__name { margin: 2px 0 4px; font-size: 18px; line-height: 26px; font-weight: 700; }
body.pf .pf-detail-agents__name a { color: var(--pf-text) !important; }
body.pf .pf-detail-agents__name a:hover { color: var(--pf-purple) !important; }
body.pf .pf-detail-agents__sub { font-size: 14px; color: var(--pf-text-2); }
body.pf .pf-detail-agents__sub i { margin-right: 6px; color: var(--pf-purple); }
body.pf .pf-detail-agents__text { margin: 8px 0 0; font-size: 13px; line-height: 20px; color: var(--pf-text-2) !important; }

/* Mobile Call / WhatsApp bar with the agent photo */
body.pf .pf-detail__mobile-bar-photo { display: none; }
@media (max-width: 991.98px) {
    body.pf .pf-detail__mobile-bar { grid-template-columns: 44px 1fr 1fr !important; align-items: center; }
    body.pf .pf-detail__mobile-bar-photo {
        display: block;
        width: 44px;
        height: 44px;
        object-fit: cover;
        border-radius: 50%;
        border: 2px solid var(--pf-white);
        box-shadow: 0 0 0 1px var(--pf-purple-100);
    }
}
@media (max-width: 575.98px) {
    body.pf .pf-detail-agents__grid { grid-template-columns: 1fr; }
}

/* Card agent row: agent on the left, agency logo + name on the right */
body.pf .pf-mcard__agent { display: flex; align-items: flex-end; gap: 10px; flex-wrap: nowrap !important; }
body.pf .pf-mcard__agent-info { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; }
body.pf .pf-mcard__agent-name {
    font-size: 15px !important;
    font-weight: 700 !important;
    color: var(--pf-text) !important;
    white-space: nowrap !important;
    overflow: hidden;
    text-overflow: ellipsis;
}
body.pf .pf-mcard__agent .pf-mcard__listed {
    position: static !important;
    margin: 2px 0 0 !important;
    font-size: 11px;
    color: var(--pf-text-2);
}
body.pf .pf-mcard__company {
    flex: 0 1 auto;
    max-width: 45%;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px 4px 4px;
    font-size: 12px;
    font-weight: 600;
    color: var(--pf-purple);
    background: var(--pf-purple-50);
    border: 1px solid var(--pf-purple-100);
    border-radius: var(--pf-r-full);
    min-width: 0;
}
body.pf .pf-mcard__company img {
    flex: 0 0 26px;
    width: 26px;
    height: 26px;
    object-fit: cover;
    border-radius: 50%;
    background: var(--pf-white);
}
body.pf .pf-mcard__company span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
body.pf .pf-mcard__avatar img { width: 56px !important; height: 56px !important; }

/* Desktop list card: agent photo + name, then agency logo + name */
body.pf .pf-card__agent { gap: 12px; }
body.pf .pf-card__agent-text { display: flex; flex-direction: column; min-width: 0; line-height: 1.2; }
body.pf .pf-card__agent-role { font-size: 10px; font-weight: 700; letter-spacing: .04em; color: var(--pf-purple); }
body.pf .pf-card__agent-link--person img { width: 40px !important; height: 40px !important; }
body.pf .pf-card__agent-link--person .pf-card__agent-name { font-size: 14px; font-weight: 700; }
body.pf .pf-card__agent-link--company {
    padding: 4px 10px 4px 4px !important;
    background: var(--pf-purple-50);
    border: 1px solid var(--pf-purple-100) !important;
    border-left-width: 1px !important;
    border-radius: var(--pf-r-full);
}
body.pf .pf-card__agent-link--company img { width: 26px !important; height: 26px !important; }
body.pf .pf-card__agent-link--company .pf-card__agent-name { color: var(--pf-purple); }

/* Listings menu: city dropdown */
body.pf .pf-city-menu a { display: flex !important; align-items: center; justify-content: space-between; gap: 12px; }
body.pf .pf-city-menu__count {
    min-width: 26px;
    padding: 0 8px;
    font-size: 11px;
    font-weight: 600;
    line-height: 20px;
    text-align: center;
    color: var(--pf-purple);
    background: var(--pf-purple-50);
    border-radius: 999px;
}
/* Header dropdowns (Listings cities, Agents) open above the page content */
body.pf .header.pf-header { position: relative; z-index: 1000; }
body.pf .pf-header .nav-dropdown { z-index: 1001; }

/* ==========================================================================
   Sticky search (desktop) + search button (phones)
   ========================================================================== */
body.pf .pf-sticky-search {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1040;
    background: var(--pf-white);
    border-bottom: 1px solid var(--pf-border);
    box-shadow: var(--pf-shadow-m);
    animation: pfSlideDown .2s ease;
}
body.pf .pf-sticky-search[hidden] { display: none; }
@keyframes pfSlideDown { from { transform: translateY(-100%); } to { transform: translateY(0); } }
body.pf .pf-sticky-search__inner {
    display: flex;
    align-items: center;
    gap: 16px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 10px 16px;
}
body.pf .pf-sticky-search__logo img { height: 34px; width: auto; display: block; }
body.pf .pf-sticky-search__form { flex: 1 1 auto; min-width: 0; }
body.pf .pf-sticky-search__box {
    display: flex;
    align-items: center;
    min-height: 46px;
    padding: 0 4px 0 16px;
    background: var(--pf-white);
    border: 1px solid var(--pf-border);
    border-radius: var(--pf-r-full);
}
body.pf .pf-sticky-search__box:focus-within { border-color: var(--pf-purple-600); box-shadow: 0 0 0 3px rgba(100, 89, 178, .12); }
body.pf .pf-sticky-search__box > i { color: var(--pf-text-2); }
body.pf .pf-sticky-search__box .form-control {
    flex: 1 1 80px;
    min-width: 80px;
    height: 42px;
    border: 0;
    box-shadow: none !important;
    background: transparent;
    font-size: 15px;
}
body.pf .pf-sticky-search__submit { height: 38px; padding: 0 22px; border-radius: var(--pf-r-full); }
body.pf .pf-sticky-search__close {
    display: none;
    width: 36px;
    height: 36px;
    font-size: 22px;
    color: var(--pf-text-2);
    background: var(--pf-bg-soft);
    border: 0;
    border-radius: 50%;
}

body.pf .pf-search-fab {
    position: fixed;
    right: 16px;
    bottom: calc(var(--pf-bottom-nav-h, 64px) + 16px + env(safe-area-inset-bottom));
    z-index: 1030;
    width: 52px;
    height: 52px;
    font-size: 18px;
    color: var(--pf-white);
    background: var(--pf-red);
    border: 0;
    border-radius: 50%;
    box-shadow: 0 6px 18px rgba(234, 57, 52, .35);
}
body.pf .pf-search-fab[hidden] { display: none; }

@media (max-width: 991.98px) {
    body.pf .pf-sticky-search__logo { display: none; }
    body.pf .pf-sticky-search__close { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 36px; }
    body.pf .pf-sticky-search__inner { gap: 8px; padding: 10px 12px; }
    body.pf .pf-sticky-search__submit { padding: 0 14px; }
    /* keep the back-to-top button clear of the search button */
    body.pf #back2Top.top-scroll { right: 80px; }
}

body.pf .pf-search-fab { z-index: 10000; }


/* ---------- Sticky search v2: search + filter pills, no logo; top search button on phones ---------- */
body.pf .pf-sticky-search__inner { flex-wrap: nowrap; gap: 12px; max-width: 1400px; justify-content: center; }
body.pf .pf-sticky-search__box { flex: 0 1 560px; min-width: 260px; }
body.pf .pf-sticky-search__filters { display: flex; gap: 8px; flex: 0 0 auto; }
body.pf .pf-pill-select { position: relative; margin: 0; }
body.pf .pf-pill-select select {
    -webkit-appearance: none;
    appearance: none;
    height: 46px;
    padding: 0 38px 0 18px;
    font-size: 14px;
    font-weight: 600;
    color: var(--pf-text);
    background: var(--pf-white);
    border: 1px solid var(--pf-border);
    border-radius: var(--pf-r-full);
    cursor: pointer;
    max-width: 220px;
}
body.pf .pf-pill-select:after {
    content: "\f107";
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    font-family: "Font Awesome 5 Free", "Font Awesome 6 Free";
    font-weight: 900;
    font-size: 13px;
    color: var(--pf-text-2);
    pointer-events: none;
}
body.pf .pf-pill-select select:hover { border-color: var(--pf-purple-200); }
body.pf .pf-pill-select select:focus { outline: none; border-color: var(--pf-purple-600); }
body.pf .pf-pill-select select:has(option:checked:not([value=""])) {
    color: var(--pf-purple);
    background: var(--pf-purple-50);
    border-color: var(--pf-purple-600);
}

/* Phones: search button fixed at the top */
body.pf .pf-search-top {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1035;
    padding: 8px 12px;
    background: var(--pf-white);
    border-bottom: 1px solid var(--pf-border);
    box-shadow: var(--pf-shadow-s);
    animation: pfSlideDown .2s ease;
}
body.pf .pf-search-top[hidden] { display: none; }
body.pf .pf-search-top__btn {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    height: 44px;
    padding: 0 16px;
    font-size: 15px;
    color: var(--pf-text-2);
    text-align: left;
    background: var(--pf-bg-soft);
    border: 1px solid var(--pf-border);
    border-radius: var(--pf-r-full);
}
body.pf .pf-search-top__btn i { color: var(--pf-red); }

@media (max-width: 991.98px) {
    body.pf .pf-sticky-search__inner { flex-wrap: wrap; }
    body.pf .pf-sticky-search__box { flex: 1 1 calc(100% - 50px); min-width: 0; order: 1; }
    body.pf .pf-sticky-search__close { order: 2; }
    body.pf .pf-sticky-search__filters { order: 3; flex: 1 1 100%; overflow-x: auto; scrollbar-width: none; }
    body.pf .pf-sticky-search__filters::-webkit-scrollbar { display: none; }
    body.pf .pf-pill-select select { height: 38px; font-size: 13px; padding: 0 32px 0 14px; }
    body.pf #back2Top.top-scroll { right: 16px; }
}

/* Property detail: safety note and disclaimer (client text) */
body.pf .pf-disclaimer {
    margin: 32px 0 8px;
    padding: 24px 28px;
    background: var(--pf-bg-soft);
    border: 1px solid var(--pf-border);
    border-radius: var(--pf-r-l);
}
body.pf .pf-disclaimer__title { display: flex; align-items: center; gap: 10px; margin: 0 0 12px; font-size: 20px; line-height: 28px; font-weight: 700; }
body.pf .pf-disclaimer__title i { color: var(--pf-purple); }
body.pf .pf-disclaimer p,
body.pf .pf-disclaimer li { font-size: 14px; line-height: 22px; color: var(--pf-text-2) !important; }
body.pf .pf-disclaimer ul { margin: 0 0 14px; padding-left: 20px; }
body.pf .pf-disclaimer li { margin-bottom: 6px; list-style: disc; }
body.pf .pf-disclaimer__legal { margin: 0; padding-top: 14px; border-top: 1px solid var(--pf-border); }
body.pf .pf-disclaimer__legal strong { color: var(--pf-text); }
@media (max-width: 575.98px) { body.pf .pf-disclaimer { padding: 18px 16px; } }

/* Standard content on best-agents city / area pages */
body.pf .pf-seo-content { padding: 40px 0 24px; margin-top: 24px; background: var(--pf-bg-soft); border-top: 1px solid var(--pf-border); }
body.pf .pf-seo-content .container { max-width: 960px; }
body.pf .pf-seo-content h2 { margin: 0 0 12px; font-size: 26px; line-height: 34px; }
body.pf .pf-seo-content h3 { margin: 28px 0 10px; font-size: 19px; line-height: 28px; }
body.pf .pf-seo-content h4 { margin: 16px 0 4px; font-size: 15px; line-height: 22px; font-weight: 700; }
body.pf .pf-seo-content p,
body.pf .pf-seo-content li { font-size: 14px; line-height: 23px; color: var(--pf-text-2) !important; }
body.pf .pf-seo-content ul { margin: 0 0 12px; padding-left: 20px; }
body.pf .pf-seo-content li { list-style: disc; margin-bottom: 6px; }
body.pf .pf-seo-content li strong { color: var(--pf-text); }
body.pf .pf-faq { padding: 4px 20px 12px; background: var(--pf-white); border: 1px solid var(--pf-border); border-radius: var(--pf-r-l); }

/* Header scrolls away with the page; only the search bar sticks (client request) */
body.pf .header.pf-header.header-fixed {
    position: relative !important;
    top: auto !important;
    box-shadow: none;
    animation: none;
}

/* ==========================================================================
   Agents pages: search on top, breadcrumb + count, PF-style wide agent card
   ========================================================================== */
body.pf .pf-agents-top { padding-top: 8px; }
body.pf .pf-agents-top .container.mb-4 { margin-bottom: 0 !important; }
body.pf .pf-agents-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 20px 0 8px;
}
body.pf .pf-crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 13px; color: var(--pf-text-2); }
body.pf .pf-crumbs a { color: var(--pf-purple); }
body.pf .pf-crumbs__current { color: var(--pf-text); font-weight: 600; }
body.pf .pf-agents-meta__count { font-size: 14px; color: var(--pf-text-2); white-space: nowrap; }
body.pf .agent-tier-heading { margin-top: 24px; }

body.pf .agents-grid.pf-agent-card.pf-agent-card--wide {
    position: relative;
    flex-direction: row;
    min-height: 200px;
    overflow: hidden;
}
body.pf .pf-agent-card__photo {
    flex: 0 0 170px;
    width: 170px;
    background: var(--pf-purple-50);
}
body.pf .pf-agent-card__photo img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
body.pf .pf-agent-card__main {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    flex-direction: column;
    padding: 18px 20px 14px;
}
body.pf .pf-agent-card--wide .pf-agent-card__name { margin: 0 34px 2px 0; font-size: 19px; line-height: 26px; }
body.pf .pf-agent-card--wide .pf-agent-card__company { margin-bottom: 8px; }
body.pf .pf-agent-card--wide .pf-badge { align-self: flex-start; margin-bottom: 8px; }
body.pf .pf-agent-card--wide .pf-agent-card__contact { margin: 0 0 12px; }
body.pf .pf-agent-card--wide .pf-agent-card__mail { top: 14px; right: 14px; }
body.pf .pf-agent-card--wide .pf-agent-card__actions {
    margin-top: auto;
    padding: 12px 0 0;
    border-top: 1px solid var(--pf-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}
body.pf .pf-agent-card__chip {
    display: inline-flex;
    align-items: center;
    height: 28px;
    padding: 0 10px;
    font-size: 13px;
    font-weight: 600;
    color: var(--pf-purple);
    background: var(--pf-purple-50);
    border-radius: var(--pf-r-s);
}
body.pf .pf-agent-card--wide .pf-agent-card__counts { gap: 8px; }

@media (max-width: 575.98px) {
    body.pf .pf-agent-card__photo { flex-basis: 112px; width: 112px; }
    body.pf .pf-agent-card__main { padding: 14px 14px 12px; }
    body.pf .pf-agent-card--wide .pf-agent-card__name { font-size: 16px; line-height: 22px; }
    body.pf .pf-agent-card--wide .pf-agent-card__actions { flex-wrap: wrap; }
    body.pf .pf-agents-meta { flex-wrap: wrap; }
}
body.pf .pf-agent-card__photo { position: relative; align-self: stretch; }
body.pf .pf-agent-card__photo img { position: absolute; inset: 0; width: 100% !important; height: 100% !important; object-fit: cover; }
body.pf .agent-tier-section { margin-top: 8px; }
body.pf section.pf-agents-section { padding-top: 0 !important; }
body.pf .pf-agents-section .agent-tier-section:first-child .agent-tier-heading { margin-top: 8px; }

/* Agency page logo: square/rectangle so the full logo shows (team photos stay round) */
body.pf .agency .agency-avatar { flex: 0 0 160px; width: 160px !important; max-width: 160px !important; }
body.pf .agency .agency-avatar img,
body.pf .agency .agency-avatar img.img-thumbnail {
    width: 160px !important;
    height: auto !important;
    max-height: 160px;
    object-fit: contain;
    padding: 6px !important;
    border: 1px solid var(--pf-border) !important;
    border-radius: 12px !important;
    background: var(--pf-white);
    box-shadow: var(--pf-shadow-s);
}
@media (max-width: 767px) {
    body.pf .agency .agency-avatar { flex-basis: auto; width: 120px !important; max-width: 120px !important; }
    body.pf .agency .agency-avatar img { width: 120px !important; height: auto !important; max-height: 120px; }
}

/* Construction projects by city (/best-construction-projects-in-{city}) */
body.pf .pf-projects-city { padding: 0 0 48px; }
body.pf .pf-projects-city__heading { margin: 24px 0 16px; font-size: 22px; font-weight: 700; color: var(--pf-text); }
body.pf .pf-projects-city__switch { display: inline-flex; align-items: center; gap: 8px; margin: 0; font-size: 14px; color: var(--pf-text-2); }
body.pf .pf-projects-city__switch select {
    height: 40px;
    padding: 0 34px 0 14px;
    font-size: 14px;
    font-weight: 600;
    color: var(--pf-text);
    border: 1px solid var(--pf-border);
    border-radius: var(--pf-r-full);
    background: var(--pf-white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23222' stroke-width='2.5'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat right 12px center;
    -webkit-appearance: none;
    appearance: none;
    cursor: pointer;
}
body.pf .pf-projects-city .pf-pcard { margin-bottom: 24px; }
body.pf .pf-tag--featured { background: var(--pf-red, #ef3e3a); }
body.pf .pf-projects-city .pf-empty { margin: 32px 0; }

/* "New" tag on listing cards (first days after a property is added) */
body.pf .pf-tag--new { background: var(--pf-success, #00814b); }

/* Agents cards: logo and agent information half and half (client, like Property Finder) */
body.pf .agents-grid.pf-agent-card.pf-agent-card--wide { min-height: 230px; }
body.pf .pf-agent-card--wide .pf-agent-card__photo {
    flex: 0 0 50%;
    width: 50%;
    max-width: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    background: var(--pf-white);
    border-right: 1px solid var(--pf-border);
}
body.pf .pf-agent-card--wide .pf-agent-card__photo img {
    position: absolute;
    inset: 16px;
    width: calc(100% - 32px) !important;
    height: calc(100% - 32px) !important;
    object-fit: contain;
}
body.pf .pf-agent-card--wide .pf-agent-card__main { flex: 0 0 50%; width: 50%; max-width: 50%; }
@media (max-width: 575px) {
    body.pf .pf-agent-card--wide .pf-agent-card__photo img { inset: 10px; width: calc(100% - 20px) !important; height: calc(100% - 20px) !important; }
}

/* Elite Agent / Premium Agent badge above the agent name and logo */
body.pf .pf-member-badge-row { display: flex; width: 100%; flex-basis: 100%; margin: 0 0 6px; }
body.pf .pf-member-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 2px 9px;
    font-size: 11px;
    font-weight: 700;
    line-height: 18px;
    letter-spacing: .02em;
    text-transform: uppercase;
    border-radius: var(--pf-r-full, 999px);
    white-space: nowrap;
}
body.pf .pf-member-badge i { font-size: 10px; }
body.pf .pf-member-badge--elite { color: #5a4200; background: linear-gradient(135deg, #ffe27a, #f2b705); border: 1px solid #e0a800; }
body.pf .pf-member-badge--premium { color: var(--pf-white, #fff); background: var(--pf-purple, #6459b2); border: 1px solid var(--pf-purple, #6459b2); }
body.pf .pf-card__agent { flex-wrap: wrap; }
body.pf .pf-mcard .pf-member-badge-row { padding: 0 12px; margin: 8px 0 -2px; }
body.pf .pf-agent-box .pf-member-badge-row { justify-content: center; margin-bottom: 10px; }

/* Elite / Premium badge sits on the property dealer (agency), not the team member */
body.pf .pf-mcard__company-col { flex: 0 1 auto; max-width: 45%; display: flex; flex-direction: column; align-items: flex-end; gap: 4px; margin-left: auto; }
body.pf .pf-mcard__company-col .pf-mcard__company { max-width: 100%; }
body.pf .pf-mcard .pf-mcard__company-col .pf-member-badge-row,
body.pf .pf-mcard .pf-mcard__agent-info .pf-member-badge-row { padding: 0; margin: 0 0 2px; justify-content: flex-end; }
body.pf .pf-mcard .pf-mcard__agent-info .pf-member-badge-row { justify-content: flex-start; }
body.pf .pf-card__agent-text .pf-member-badge-row { margin: 0 0 3px; }
body.pf .pf-card__agent-text .pf-member-badge,
body.pf .pf-mcard .pf-member-badge { font-size: 10px; padding: 1px 7px; line-height: 16px; }
