/* =========================================================
   PSR (Property Site Representative) directory + profile
   Theme: primary #26ae61, heading #001935 (matches style.css)
   ========================================================= */

:root {
    --psr-primary: #26ae61;
    --psr-primary-dark: #1e8449;
    --psr-primary-soft: rgba(38, 174, 97, .1);
    --psr-navy: #0f2a47;
    --psr-navy-2: #16406b;
    --psr-heading: #001935;
    --psr-text: #4b5563;
    --psr-muted: #6b7280;
    --psr-border: #e6ebf1;
    --psr-soft: #f4f7fa;
    --psr-gradient: linear-gradient(135deg, #0f2a47 0%, #16406b 55%, #1d7a4c 120%);
    --psr-shadow: 0 20px 50px rgba(15, 42, 71, .12);
}

/* ---------- shared bits ---------- */
.psr-avatar {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    padding: 5px;
    background: linear-gradient(135deg, var(--psr-primary), var(--psr-navy-2));
    flex-shrink: 0;
}

.psr-avatar img,
.psr-avatar .psr-initials {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 4px solid #fff;
    object-fit: cover;
    background: #fff;
}

.psr-initials {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #e8f7ef, #dbe7f3) !important;
    color: var(--psr-navy-2);
    font-family: "Barlow Semi Condensed", sans-serif;
    font-weight: 700;
    letter-spacing: 1px;
}

.psr-verified {
    position: absolute;
    right: 4%;
    bottom: 6%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border: 3px solid #fff;
    border-radius: 50%;
    background: var(--psr-primary);
    color: #fff;
    font-size: 12px;
}

.psr-chip {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 6px 13px;
    border-radius: 999px;
    background: var(--psr-soft);
    color: var(--psr-heading);
    font-size: 13px;
    font-weight: 500;
    line-height: 1.2;
}

.psr-chip i {
    color: var(--psr-primary);
}

.psr-chip--green {
    background: var(--psr-primary-soft);
    color: var(--psr-primary-dark);
}

.psr-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 13px 26px;
    border: 1px solid transparent;
    border-radius: 999px;
    font-weight: 600;
    line-height: 1.2;
    white-space: nowrap;
    cursor: pointer;
    transition: all .2s ease;
}

.psr-btn-primary {
    background: var(--psr-primary);
    color: #fff;
    box-shadow: 0 12px 24px rgba(38, 174, 97, .28);
}

.psr-btn-primary:hover,
.psr-btn-primary:focus {
    background: var(--psr-primary-dark);
    color: #fff;
    transform: translateY(-1px);
}

.psr-btn-light {
    background: #fff;
    color: var(--psr-primary-dark);
    box-shadow: 0 12px 24px rgba(0, 0, 0, .15);
}

.psr-btn-light:hover {
    color: var(--psr-primary-dark);
    transform: translateY(-1px);
}

.psr-btn-outline {
    border-color: var(--psr-border);
    background: #fff;
    color: var(--psr-heading);
}

.psr-btn-outline:hover {
    border-color: var(--psr-primary);
    background: var(--psr-primary);
    color: #fff;
}

.psr-empty {
    padding: 56px 20px;
    border-radius: 18px;
    background: var(--psr-soft);
    text-align: center;
}

.psr-empty i {
    display: block;
    margin-bottom: 14px;
    color: #9ca3af;
    font-size: 2.2rem;
}

.psr-empty-text {
    color: var(--psr-muted);
    font-size: 15px;
}

/* =========================================================
   Directory page
   ========================================================= */
.psr-hero {
    position: relative;
    padding: 70px 0 90px;
    background: var(--psr-gradient);
    overflow: hidden;
    text-align: center;
}

.psr-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(255, 255, 255, .09) 1.5px, transparent 1.5px);
    background-size: 22px 22px;
    mask-image: linear-gradient(180deg, #000 0%, transparent 85%);
    -webkit-mask-image: linear-gradient(180deg, #000 0%, transparent 85%);
}

.psr-hero .container {
    position: relative;
    z-index: 1;
}

.psr-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .12);
    color: #c9f2db;
    font-size: 13px;
    letter-spacing: .6px;
    text-transform: uppercase;
}

.psr-hero-title {
    max-width: 820px;
    margin: 18px auto 14px;
    color: #fff;
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1.15;
}

.psr-hero-title span {
    color: #5fe39a;
}

.psr-hero-text {
    max-width: 720px;
    margin: 0 auto 26px;
    color: rgba(255, 255, 255, .82);
    font-size: 1.02rem;
    line-height: 1.7;
}

.psr-hero-stats {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 14px;
}

.psr-hero-stat {
    min-width: 150px;
    padding: 14px 22px;
    border: 1px solid rgba(255, 255, 255, .16);
    border-radius: 14px;
    background: rgba(255, 255, 255, .1);
    backdrop-filter: blur(6px);
}

.psr-hero-stat strong {
    display: block;
    color: #fff;
    font-family: "Barlow Semi Condensed", sans-serif;
    font-size: 1.9rem;
    line-height: 1;
}

.psr-hero-stat span {
    display: block;
    margin-top: 6px;
    color: rgba(255, 255, 255, .75);
    font-size: 13px;
}

/* search box floating over the hero edge */
.psr-search {
    position: relative;
    z-index: 2;
    max-width: 720px;
    margin: -34px auto 0;
}

.psr-search form {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px;
    border-radius: 999px;
    background: #fff;
    box-shadow: var(--psr-shadow);
}

.psr-search i {
    padding-left: 14px;
    color: var(--psr-muted);
}

.psr-search input {
    flex: 1 1 auto;
    min-width: 0;
    height: 46px;
    border: 0;
    background: transparent;
    color: var(--psr-heading);
    font-size: 15px;
    outline: none;
}

.psr-search input::placeholder {
    color: #9ca3af !important;
}

.psr-search .psr-btn {
    padding: 12px 26px;
}

.psr-search-clear {
    padding: 0 6px;
    color: var(--psr-muted);
    font-size: 13px;
    white-space: nowrap;
}

.psr-directory {
    padding: 50px 0 80px;
}

.psr-result-line {
    margin-bottom: 24px;
    color: var(--psr-muted);
    font-size: 15px;
}

.psr-result-line strong {
    color: var(--psr-heading);
}

/* PSR cards */
.psr-card {
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
    border: 1px solid var(--psr-border);
    border-radius: 20px;
    background: #fff;
    overflow: hidden;
    text-align: center;
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

.psr-card:hover {
    transform: translateY(-6px);
    border-color: transparent;
    box-shadow: 0 22px 44px rgba(15, 42, 71, .13);
}

.psr-card-cover {
    position: relative;
    height: 86px;
    background: var(--psr-gradient);
}

.psr-card-cover::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(255, 255, 255, .12) 1.2px, transparent 1.2px);
    background-size: 16px 16px;
}

.psr-card-avatar {
    width: 112px;
    height: 112px;
    margin: -56px auto 0;
    z-index: 1;
}

.psr-card-avatar .psr-initials {
    font-size: 2rem;
}

.psr-card-avatar .psr-verified {
    width: 26px;
    height: 26px;
    font-size: 10px;
}

.psr-card-body {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    align-items: center;
    padding: 14px 18px 20px;
}

.psr-card-name {
    margin: 0 0 4px;
    color: var(--psr-heading);
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.25;
}

.psr-card-name a {
    color: inherit;
}

.psr-card-name a:hover {
    color: var(--psr-primary);
}

.psr-card-role {
    margin-bottom: 10px;
    color: var(--psr-primary);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .5px;
    text-transform: uppercase;
}

.psr-card-chips {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px;
    margin-bottom: 16px;
}

.psr-card-chips .psr-chip {
    padding: 5px 10px;
    font-size: 12px;
}

.psr-card-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    width: 100%;
    margin-top: auto;
    margin-bottom: 16px;
    border: 1px solid var(--psr-border);
    border-radius: 14px;
}

.psr-card-stats div {
    padding: 10px 6px;
}

.psr-card-stats div + div {
    border-left: 1px solid var(--psr-border);
}

.psr-card-stats strong {
    display: block;
    color: var(--psr-heading);
    font-family: "Barlow Semi Condensed", sans-serif;
    font-size: 1.35rem;
    line-height: 1.1;
}

.psr-card-stats span {
    color: var(--psr-muted);
    font-size: 12px;
}

.psr-card .psr-btn {
    width: 100%;
    padding: 11px 20px;
}

/* =========================================================
   Profile page
   ========================================================= */
.psr-cover {
    position: relative;
    height: 250px;
    background: var(--psr-gradient);
    overflow: hidden;
}

.psr-cover::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(255, 255, 255, .1) 1.5px, transparent 1.5px);
    background-size: 22px 22px;
}

.psr-cover::after {
    content: '';
    position: absolute;
    width: 520px;
    height: 520px;
    right: -140px;
    top: -260px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(95, 227, 154, .25) 0%, transparent 65%);
}

.psr-cover-shape {
    position: absolute;
    left: -120px;
    bottom: -220px;
    width: 420px;
    height: 420px;
    border-radius: 50%;
    border: 60px solid rgba(255, 255, 255, .04);
}

/* main profile card */
.psr-head {
    position: relative;
    z-index: 2;
    margin-top: -150px;
    border-radius: 24px;
    background: #fff;
    box-shadow: var(--psr-shadow);
    overflow: hidden;
}

.psr-head-main {
    display: flex;
    align-items: center;
    gap: 30px;
    padding: 32px 34px 28px;
}

.psr-head-avatar {
    width: 172px;
    height: 172px;
}

.psr-head-avatar .psr-initials {
    font-size: 3.2rem;
}

.psr-head-info {
    flex: 1 1 auto;
    min-width: 0;
}

.psr-role {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--psr-primary);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: .5px;
    text-transform: uppercase;
}

.psr-name {
    margin: 6px 0 14px;
    color: var(--psr-heading);
    font-size: 2.4rem;
    font-weight: 700;
    line-height: 1.1;
}

.psr-head-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

/* call box on the right of the profile card */
.psr-callbox {
    flex: 0 0 290px;
    padding: 22px;
    border: 1px solid rgba(38, 174, 97, .2);
    border-radius: 18px;
    background: linear-gradient(160deg, #f1fbf5 0%, #ffffff 100%);
    text-align: center;
}

.psr-callbox-label {
    color: var(--psr-muted);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .6px;
    text-transform: uppercase;
}

.psr-callbox-number {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin: 8px 0 16px;
    color: var(--psr-heading);
    font-family: "Barlow Semi Condensed", sans-serif;
    font-size: 1.65rem;
    font-weight: 600;
    letter-spacing: 1px;
}

.psr-callbox-number i {
    color: var(--psr-primary);
    font-size: 1.1rem;
}

.psr-callbox .psr-btn {
    width: 100%;
}

.psr-callbox-note {
    margin-top: 10px;
    color: var(--psr-muted);
    font-size: 12px;
    line-height: 1.5;
}

.psr-callbox-own {
    color: var(--psr-primary-dark);
    font-size: 14px;
    font-weight: 600;
}

/* stats strip at the bottom of the profile card */
/* 3 columns while For Rent is hidden; back to 4 when it returns */
.psr-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    border-top: 1px solid var(--psr-border);
    background: #fbfcfd;
}

.psr-stat {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 20px 26px;
}

.psr-stat + .psr-stat {
    border-left: 1px solid var(--psr-border);
}

.psr-stat-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 48px;
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: var(--psr-primary-soft);
    color: var(--psr-primary);
    font-size: 19px;
}

.psr-stat:nth-child(2) .psr-stat-icon {
    background: rgba(22, 64, 107, .1);
    color: var(--psr-navy-2);
}

.psr-stat:nth-child(3) .psr-stat-icon {
    background: rgba(212, 155, 18, .12);
    color: #c48a0a;
}

.psr-stat:nth-child(4) .psr-stat-icon {
    background: rgba(124, 58, 237, .1);
    color: #7c3aed;
}

.psr-stat strong {
    display: block;
    color: var(--psr-heading);
    font-family: "Barlow Semi Condensed", sans-serif;
    font-size: 1.7rem;
    line-height: 1;
}

/* label only — must not hit .psr-stat-icon, which is also a span */
.psr-stat > div > span {
    display: block;
    margin-top: 4px;
    color: var(--psr-muted);
    font-size: 13px;
}

/* about / steps / glance */
.psr-body {
    padding: 44px 0 10px;
}

.psr-panel {
    padding: 28px 30px;
    border: 1px solid var(--psr-border);
    border-radius: 20px;
    background: #fff;
}

.psr-panel + .psr-panel {
    margin-top: 24px;
}

.psr-panel-title {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    color: var(--psr-heading);
    font-size: 1.45rem;
    font-weight: 700;
}

.psr-panel-title::before {
    content: '';
    width: 5px;
    height: 24px;
    border-radius: 4px;
    background: var(--psr-primary);
}

.psr-bio {
    color: var(--psr-text);
    font-size: 15px;
    line-height: 1.8;
    white-space: pre-line;
}

.psr-steps {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.psr-step {
    position: relative;
    padding: 22px 20px;
    border-radius: 16px;
    background: var(--psr-soft);
}

.psr-step-no {
    position: absolute;
    top: 14px;
    right: 18px;
    color: rgba(0, 25, 53, .08);
    font-family: "Barlow Semi Condensed", sans-serif;
    font-size: 2.6rem;
    font-weight: 700;
    line-height: 1;
}

.psr-step-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    margin-bottom: 14px;
    border-radius: 14px;
    background: #fff;
    color: var(--psr-primary);
    font-size: 18px;
    box-shadow: 0 8px 18px rgba(15, 42, 71, .08);
}

.psr-step-title {
    margin-bottom: 6px;
    color: var(--psr-heading);
    font-size: 1.1rem;
    font-weight: 700;
}

.psr-step-text {
    color: var(--psr-text);
    font-size: 14px;
    line-height: 1.6;
}

.psr-glance {
    margin: 0;
    padding: 0;
    list-style: none;
}

.psr-glance li {
    display: flex;
    gap: 14px;
    padding: 13px 0;
    border-bottom: 1px dashed var(--psr-border);
}

.psr-glance li:first-child {
    padding-top: 0;
}

.psr-glance li:last-child {
    padding-bottom: 0;
    border-bottom: 0;
}

.psr-glance-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 40px;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: var(--psr-primary-soft);
    color: var(--psr-primary);
}

.psr-glance-label {
    display: block;
    color: var(--psr-muted);
    font-size: 12px;
    letter-spacing: .4px;
    text-transform: uppercase;
}

.psr-glance-value {
    display: block;
    color: var(--psr-heading);
    font-size: 15px;
    font-weight: 500;
}

.psr-areas {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 8px;
}

/* properties */
.psr-properties {
    padding: 50px 0 60px;
}

.psr-properties-head {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 28px;
}

.psr-properties-title {
    margin: 0;
    color: var(--psr-heading);
    font-size: 1.9rem;
    font-weight: 700;
    text-transform: uppercase;
}

.psr-properties-title span {
    color: var(--psr-primary);
}

.psr-properties-sub {
    margin-top: 6px;
    color: var(--psr-muted);
    font-size: 15px;
}

.psr-tabs {
    display: inline-flex;
    gap: 4px;
    padding: 5px;
    border-radius: 999px;
    background: var(--psr-soft);
}

.psr-tab {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 18px;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: var(--psr-text);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all .2s ease;
}

.psr-tab small {
    padding: 2px 8px;
    border-radius: 999px;
    background: rgba(0, 25, 53, .07);
    font-size: 12px;
}

.psr-tab.active {
    background: #fff;
    color: var(--psr-primary-dark);
    box-shadow: 0 6px 16px rgba(15, 42, 71, .1);
}

.psr-tab.active small {
    background: var(--psr-primary);
    color: #fff;
}

/* call-to-action band */
.psr-cta {
    position: relative;
    margin-bottom: 80px;
    padding: 40px 44px;
    border-radius: 24px;
    background: var(--psr-gradient);
    overflow: hidden;
}

.psr-cta::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(255, 255, 255, .1) 1.5px, transparent 1.5px);
    background-size: 22px 22px;
}

.psr-cta-inner {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.psr-cta-title {
    margin: 0 0 6px;
    color: #fff;
    font-size: 1.7rem;
    font-weight: 700;
}

.psr-cta-text {
    color: rgba(255, 255, 255, .8);
    font-size: 15px;
}

/* social login phone modal (same look as property details) */
.social-phone-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 10550;
    align-items: center;
    justify-content: center;
}

.social-phone-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, .55);
    z-index: 10550;
    pointer-events: none;
}

.social-phone-modal-dialog {
    position: relative;
    width: 100%;
    max-width: 440px;
    margin: 0 1rem;
    z-index: 10551;
}

.social-phone-modal-content {
    position: relative;
    padding: 1.75rem;
    border-radius: 1rem;
    background: #fff;
    box-shadow: 0 20px 45px rgba(0, 0, 0, .12);
    pointer-events: auto;
    z-index: 10552;
}

.social-phone-modal-content h2 {
    margin-top: 0;
    margin-bottom: .75rem;
    font-size: 1.4rem;
}

.social-phone-modal-content .btn-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    border: none;
    background: transparent;
    font-size: 1.35rem;
    line-height: 1;
    cursor: pointer;
}

#social-phone-input {
    color: #333;
    font-size: 1rem;
    pointer-events: auto;
}

#social-phone-input::placeholder {
    color: #999 !important;
    opacity: 1;
}

/* ---------- responsive ---------- */
@media (max-width: 1199px) {
    .psr-head-main {
        flex-wrap: wrap;
    }

    .psr-callbox {
        flex: 1 1 100%;
        display: grid;
        grid-template-columns: 1fr auto;
        align-items: center;
        gap: 6px 20px;
        text-align: left;
    }

    .psr-callbox-number {
        justify-content: flex-start;
        margin: 4px 0 0;
    }

    .psr-callbox .psr-btn {
        grid-column: 2;
        grid-row: 1 / span 2;
        width: auto;
    }

    .psr-callbox-note {
        grid-column: 1 / -1;
        margin-top: 4px;
    }
}

@media (max-width: 991px) {
    .psr-hero-title {
        font-size: 2.1rem;
    }

    .psr-steps {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 767px) {
    .psr-hero {
        padding: 50px 0 80px;
    }

    .psr-hero-title {
        font-size: 1.8rem;
    }

    .psr-search form {
        border-radius: 18px;
        flex-wrap: wrap;
    }

    .psr-search i {
        display: none;
    }

    .psr-search input {
        flex-basis: 100%;
        padding: 0 12px;
    }

    .psr-search .psr-btn {
        flex: 1 1 auto;
    }

    .psr-cover {
        height: 190px;
    }

    .psr-head {
        margin-top: -110px;
        border-radius: 20px;
    }

    .psr-head-main {
        flex-direction: column;
        gap: 18px;
        padding: 26px 18px 20px;
        text-align: center;
    }

    .psr-head-avatar {
        width: 136px;
        height: 136px;
    }

    .psr-name {
        font-size: 1.8rem;
    }

    .psr-head-chips {
        justify-content: center;
    }

    .psr-callbox {
        display: block;
        width: 100%;
        text-align: center;
    }

    .psr-callbox-number {
        justify-content: center;
        margin: 8px 0 14px;
    }

    .psr-callbox .psr-btn {
        width: 100%;
    }

    .psr-stat {
        flex-direction: column;
        gap: 8px;
        padding: 16px 10px;
        text-align: center;
    }

    .psr-panel {
        padding: 22px 18px;
    }

    .psr-properties-title {
        font-size: 1.5rem;
    }

    .psr-tabs {
        width: 100%;
    }

    .psr-tab {
        flex: 1 1 0;
        justify-content: center;
        padding: 9px 8px;
    }

    .psr-cta {
        padding: 30px 22px;
        text-align: center;
    }

    .psr-cta-inner {
        justify-content: center;
    }

    .psr-cta .psr-btn {
        width: 100%;
    }
}
