/* Microsite vNext treatment for individual agent profiles. */

.csh-vnext.page-team-agent .header-page {
    isolation: isolate;
    min-height: clamp(340px, 42vh, 460px);
}

.csh-vnext.page-team-agent .header-page .header-bg,
.csh-vnext.page-team-agent .header-page .header-bg-mobile {
    z-index: -2;
}

.csh-vnext.page-team-agent .header-page .header-bg::after,
.csh-vnext.page-team-agent .header-page .header-bg-mobile::after {
    background: linear-gradient(90deg, rgba(8, 13, 19, .82), rgba(8, 13, 19, .2));
}

.csh-vnext.page-team-agent .search-box-header {
    position: absolute;
    z-index: 3;
    top: 43%;
    left: max(1rem, calc((100vw - var(--csh-content-width)) / 2 + 2rem));
    display: block;
    width: min(640px, calc(100% - 2rem));
    margin-top: 0 !important;
    padding: clamp(1.5rem, 4vw, 3rem);
    transform: translateY(-50%);
    color: #ffffff;
    background: rgba(12, 18, 24, .72);
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: var(--csh-radius-lg);
    box-shadow: var(--csh-shadow);
    backdrop-filter: blur(14px);
}

.csh-vnext.page-team-agent .search-box-header h1,
.csh-vnext.page-team-agent .search-box-header h3 {
    color: #ffffff;
    text-wrap: balance;
}

.csh-vnext.page-team-agent .search-box-header h1 {
    margin: 0;
    font-size: clamp(2.25rem, 5vw, 4.25rem);
    line-height: 1.03;
}

.csh-vnext.page-team-agent .search-box-header h3 {
    margin: .85rem 0 0;
    font-size: clamp(1rem, 2vw, 1.35rem);
    line-height: 1.4;
}

.csh-vnext.page-team-agent #page-content {
    position: relative;
    padding: 0 0 clamp(2.5rem, 5vw, 5rem);
    background: var(--csh-bg);
}

.csh-vnext.page-team-agent .agent-profile {
    align-items: flex-start;
    gap: clamp(1.5rem, 3vw, 3rem) 0;
    width: min(1180px, calc(100% - 2rem));
    position: relative;
    z-index: 4;
    margin: -132px auto clamp(3rem, 6vw, 5rem);
    padding: clamp(1.25rem, 3vw, 2.5rem);
    background: var(--csh-surface);
    border: 1px solid var(--csh-border);
    border-radius: var(--csh-radius-lg);
    box-shadow: var(--csh-shadow-sm);
}

.csh-vnext.page-team-agent .agent-profile-media {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.csh-vnext.page-team-agent .team-image {
    width: min(100%, 340px);
    overflow: hidden;
    background: var(--csh-surface-muted);
    border: 1px solid var(--csh-border);
    border-radius: var(--csh-radius);
    box-shadow: var(--csh-shadow-sm);
}

.csh-vnext.page-team-agent .team-image a,
.csh-vnext.page-team-agent .team-image img {
    display: block;
    width: 100%;
}

.csh-vnext.page-team-agent .team-image img {
    height: auto;
    max-height: 430px;
    object-fit: cover;
    object-position: center top;
}

.csh-vnext.page-team-agent .agent-profile-social {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: .65rem;
    margin: 1.25rem 0 0;
    padding: 0;
    list-style: none;
}

.csh-vnext.page-team-agent .agent-profile-social > li {
    display: block;
    margin: 0;
}

.csh-vnext.page-team-agent .agent-profile-social > li > a {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    padding: 0;
    color: #ffffff;
    background: var(--csh-primary);
    border: 1px solid var(--csh-primary);
    border-radius: 50%;
    text-decoration: none;
}

.csh-vnext.page-team-agent .agent-profile-social > li > a:hover,
.csh-vnext.page-team-agent .agent-profile-social > li > a:focus {
    color: #ffffff;
    filter: brightness(.9);
    text-decoration: none;
}

.csh-vnext.page-team-agent .agent-profile-social i {
    font-size: 1.1rem;
}

.csh-vnext.page-team-agent .agent-profile-ratings {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: .75rem;
    margin-top: 1rem;
}

.csh-vnext.page-team-agent .agent-profile-ratings img {
    display: block;
    width: auto;
    max-width: 135px;
    max-height: 46px;
}

.csh-vnext.page-team-agent .agent-profile-content {
    color: var(--csh-text);
    font-size: 1rem;
    line-height: 1.75;
}

.csh-vnext.page-team-agent .agent-bio,
.csh-vnext.page-team-agent .agent-bio p,
.csh-vnext.page-team-agent .agent-bio div,
.csh-vnext.page-team-agent .agent-bio span,
.csh-vnext.page-team-agent .agent-bio font,
.csh-vnext.page-team-agent .agent-bio li {
    color: var(--csh-text) !important;
    font-family: inherit !important;
    font-size: 1rem !important;
    font-weight: 400 !important;
    line-height: 1.75 !important;
}

.csh-vnext.page-team-agent .agent-bio {
    overflow-wrap: anywhere;
}

.csh-vnext.page-team-agent .agent-bio > :first-child {
    margin-top: 0 !important;
}

.csh-vnext.page-team-agent .agent-bio > p:first-of-type {
    color: var(--csh-text) !important;
    font-family: Georgia, "Times New Roman", serif !important;
    font-size: clamp(1.08rem, 1.7vw, 1.25rem) !important;
    font-style: italic;
    line-height: 1.7 !important;
}

.csh-vnext.page-team-agent .agent-bio h1,
.csh-vnext.page-team-agent .agent-bio h2,
.csh-vnext.page-team-agent .agent-bio h3,
.csh-vnext.page-team-agent .agent-bio h4,
.csh-vnext.page-team-agent .agent-bio h5,
.csh-vnext.page-team-agent .agent-bio h6 {
    margin: 1.4rem 0 .55rem !important;
    color: var(--csh-text) !important;
    font-family: inherit !important;
    font-size: clamp(1.05rem, 2vw, 1.3rem) !important;
    font-weight: 650 !important;
    line-height: 1.35 !important;
    text-transform: none !important;
}

.csh-vnext.page-team-agent .agent-bio strong,
.csh-vnext.page-team-agent .agent-bio b {
    font-weight: 650 !important;
}

.csh-vnext.page-team-agent .agent-bio a {
    color: var(--csh-primary) !important;
    font: inherit !important;
    font-weight: 600 !important;
    overflow-wrap: anywhere;
}

.csh-vnext.page-team-agent .agent-bio img {
    max-width: 100% !important;
    height: auto !important;
}

.csh-vnext.page-team-agent .contact-details {
    margin-top: 1.5rem;
    padding: 1rem 1.25rem;
    background: var(--csh-surface-muted);
    border: 1px solid var(--csh-border);
    border-radius: var(--csh-radius);
}

.csh-vnext.page-team-agent .contact-row {
    display: grid;
    grid-template-columns: 32px 82px minmax(0, 1fr);
    align-items: center;
    gap: .5rem;
    padding: .65rem 0;
    border-bottom: 1px solid var(--csh-border);
}

.csh-vnext.page-team-agent .contact-row:last-child {
    border-bottom: 0;
}

.csh-vnext.page-team-agent .contact-icon {
    color: var(--csh-primary);
    font-size: 1.1rem;
    text-align: center;
}

.csh-vnext.page-team-agent .contact-label {
    font-weight: 700;
}

.csh-vnext.page-team-agent .contact-text {
    min-width: 0;
    overflow-wrap: anywhere;
}

.csh-vnext.page-team-agent #properties {
    align-items: stretch;
    row-gap: 1rem;
    margin-top: 1.5rem;
}

.csh-vnext.page-team-agent #properties > [class*="col-"] {
    position: relative;
    display: flex;
    padding: .5rem !important;
}

@media (min-width: 1200px) {
    .csh-vnext.page-team-agent #properties > [class*="col-"] {
        flex: 0 0 20%;
        max-width: 20%;
    }
}

@media (min-width: 768px) and (max-width: 1199.98px) {
    .csh-vnext.page-team-agent #properties > [class*="col-"] {
        flex: 0 0 33.333333%;
        max-width: 33.333333%;
    }
}

.csh-vnext.page-team-agent #properties .property-box {
    width: 100%;
    overflow: hidden;
    background: var(--csh-surface);
    border: 1px solid var(--csh-border);
    border-radius: var(--csh-radius);
    box-shadow: var(--csh-shadow-sm);
}

.csh-vnext.page-team-agent #properties .property-box-picture-bg {
    width: 100%;
    aspect-ratio: 4 / 3;
    background-color: var(--csh-surface-muted);
    background-position: center center !important;
    background-repeat: no-repeat !important;
    background-size: contain !important;
}

.csh-vnext.page-team-agent #properties .property-box-label,
.csh-vnext.page-team-agent #properties .property-box .tag,
.csh-vnext.page-team-agent #properties .property-box .tag > div {
    border-radius: 0 !important;
}

.csh-vnext.page-team-agent #properties .property-box .tag {
    position: relative !important;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .45rem;
    width: 100% !important;
    height: 52px !important;
    margin: 0;
    padding: 13px .5rem 0 !important;
    overflow: hidden;
    background: var(--csh-primary);
}

.csh-vnext.page-team-agent #properties .property-box .tag > div:not(.listingClock) {
    width: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    color: #ffffff;
    font-size: .68rem;
    font-weight: 750;
    line-height: 1.1;
    text-align: center !important;
    text-transform: uppercase;
}

.csh-vnext.page-team-agent .listingClock.clock.flip-clock-wrapper {
    position: relative;
    float: none !important;
    width: 132px !important;
    height: 24px;
    margin: 0;
    padding: 0 !important;
    text-align: center;
}

.csh-vnext.page-team-agent .listingClock.clock.flip-clock-wrapper ul {
    position: relative;
    float: left;
    width: 16px;
    height: 22px;
    margin: 1px;
    padding: 0;
    overflow: hidden;
    color: #ffffff;
    background: #111820;
    border-radius: 3px;
    box-shadow: none;
    font-size: 13px;
    font-weight: 800;
    line-height: 22px;
}

.csh-vnext.page-team-agent .listingClock.clock.flip-clock-wrapper ul li,
.csh-vnext.page-team-agent .listingClock.clock.flip-clock-wrapper ul li a,
.csh-vnext.page-team-agent .listingClock.clock.flip-clock-wrapper ul li a div,
.csh-vnext.page-team-agent .listingClock.clock.flip-clock-wrapper ul li a div div.inn {
    width: 100%;
    height: 100%;
    color: #ffffff;
    background: #111820;
    font-size: 13px;
    line-height: 22px;
}

.csh-vnext.page-team-agent .listingClock.clock .flip-clock-divider {
    position: relative;
    display: inline-block;
    float: left;
    width: 6px;
    height: 22px;
}

.csh-vnext.page-team-agent .listingClock.clock .flip-clock-divider:first-child {
    width: 0;
}

.csh-vnext.page-team-agent .listingClock.clock .flip-clock-divider .flip-clock-label {
    position: absolute;
    top: -11px;
    right: -34px;
    color: rgba(255, 255, 255, .9);
    background: transparent;
    font-size: 7px;
    font-weight: 750;
    text-transform: uppercase;
}

.csh-vnext.page-team-agent .listingClock.clock .flip-clock-dot {
    position: absolute;
    left: 2px;
    display: block;
    width: 2px;
    height: 2px;
    background: rgba(255, 255, 255, .8);
    border-radius: 50%;
}

.csh-vnext.page-team-agent .listingClock.clock .flip-clock-dot.top { top: 7px; }
.csh-vnext.page-team-agent .listingClock.clock .flip-clock-dot.bottom { bottom: 7px; }

.csh-vnext.page-team-agent #properties .property-box-meta {
    flex-wrap: nowrap;
    margin-right: 0;
    margin-left: 0;
}

.csh-vnext.page-team-agent #properties .property-box-meta-item {
    min-width: 0;
    padding-right: .2rem;
    padding-left: .2rem;
}

.csh-vnext.page-team-agent #properties .property-box-meta-item strong,
.csh-vnext.page-team-agent #properties .property-box-meta-item span {
    display: block;
    max-width: 100%;
    overflow: visible;
    font-size: .78rem;
    text-align: center;
    white-space: nowrap;
}

.csh-vnext.page-team-agent #properties .property-box-meta-item strong {
    font-size: 1rem;
}

.csh-vnext.page-team-agent #properties .save-favorite {
    position: absolute;
    z-index: 6;
    top: 1rem;
    right: 1rem;
    display: block;
    width: 44px;
    height: 44px;
    color: var(--csh-primary);
    text-decoration: none;
}

.csh-vnext.page-team-agent #properties .save-favorite:visited,
.csh-vnext.page-team-agent #properties .save-favorite:hover,
.csh-vnext.page-team-agent #properties .save-favorite:focus,
.csh-vnext.page-team-agent #properties .save-favorite:active {
    color: var(--csh-primary);
    text-decoration: none;
}

.csh-vnext.page-team-agent #properties .save-favorite > div {
    position: static;
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    margin: 0;
    padding: 0;
    background: #ffffff;
    border: 1px solid rgba(15, 23, 42, .1);
    border-radius: 50%;
    box-shadow: 0 6px 18px rgba(15, 23, 42, .18);
}

.csh-vnext.page-team-agent #properties .save-favorite i {
    font-size: 1rem;
}

.csh-vnext.page-team-agent .agent-listings-action {
    margin: 1.5rem 0 clamp(2.5rem, 5vw, 4rem);
}

.csh-vnext.page-team-agent .agent-listings-action .text-center,
.csh-vnext.page-team-agent .agent-listings-action .pagination {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

.csh-vnext.page-team-agent .agent-listings-action .text-center {
    gap: 1rem;
}

.csh-vnext.page-team-agent .agent-listings-action .pagination {
    gap: .4rem;
    width: 100%;
    margin: 0;
    padding: 0;
    list-style: none;
}

.csh-vnext.page-team-agent .agent-listings-action .pagination > li {
    display: block;
    margin: 0;
}

.csh-vnext.page-team-agent .agent-listings-action .pagination > li > a,
.csh-vnext.page-team-agent .agent-listings-action .pagination > li > span {
    display: grid;
    place-items: center;
    float: none;
    min-width: 42px;
    min-height: 42px;
    margin: 0;
    padding: .5rem .65rem;
    color: var(--csh-text);
    background: var(--csh-surface);
    border: 1px solid var(--csh-border);
    border-radius: .5rem;
    text-decoration: none;
}

.csh-vnext.page-team-agent .agent-listings-action .pagination > li > a:hover,
.csh-vnext.page-team-agent .agent-listings-action .pagination > li > a:focus,
.csh-vnext.page-team-agent .agent-listings-action .pagination > .active > a {
    color: #ffffff;
    background: var(--csh-primary);
    border-color: var(--csh-primary);
    text-decoration: none;
}

.csh-vnext.page-team-agent .agent-listings-action .pagination-gap > span {
    color: var(--csh-text-muted);
    background: transparent;
    border-color: transparent;
}

.csh-vnext.page-team-agent .agent-listings-action .btn {
    min-height: 46px;
    padding: .7rem 1.25rem;
    border-radius: .55rem;
}

.csh-vnext.page-team-agent #form {
    width: min(100%, 1050px);
    margin: 0 auto;
    padding: clamp(1.25rem, 3vw, 2rem);
    background: var(--csh-surface);
    border: 1px solid var(--csh-border);
    border-radius: var(--csh-radius-lg);
    box-shadow: var(--csh-shadow-sm);
}

.csh-vnext.page-team-agent #callout-panel {
    position: fixed !important;
    right: 1rem !important;
    bottom: -303px;
    left: auto !important;
    z-index: 1000;
    width: min(520px, calc(100vw - 2rem)) !important;
    max-width: calc(100vw - 2rem);
    height: 300px;
    margin: 0 !important;
}

.csh-vnext.page-team-agent #callout-panel #callout-tab {
    position: absolute;
    top: -38px;
    right: 0;
    width: 100%;
    min-height: 38px;
    padding: .55rem .75rem;
    color: #ffffff;
    background: #0d1117;
    border: 1px solid rgba(255, 255, 255, .8);
    border-radius: .5rem .5rem 0 0;
    font-weight: 700;
    line-height: 1.2;
    text-align: center;
    cursor: pointer;
}

.csh-vnext.page-team-agent #callout-panel #callout-body {
    width: 100%;
    height: 300px;
    padding: 1.25rem;
    color: #ffffff;
    background: #0d1117;
    border: 1px solid rgba(255, 255, 255, .8) !important;
    border-radius: 0 0 0 .5rem !important;
    box-shadow: var(--csh-shadow) !important;
}

.csh-vnext.page-team-agent #callout-panel #callout-body .row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .75rem;
    margin: 0;
    align-items: start;
}

.csh-vnext.page-team-agent #callout-panel #callout-body .row > label {
    display: none;
}

.csh-vnext.page-team-agent #callout-panel #callout-body .row > [class*="col-"] {
    width: auto;
    max-width: none;
    padding: 0;
}

.csh-vnext.page-team-agent #callout-panel #callout-body .btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: auto !important;
    min-height: 44px;
    margin: 0;
    padding: .65rem .8rem;
    font-size: .95rem;
    line-height: 1.3;
    white-space: normal;
    text-align: center;
}

@media (max-width: 767.98px) {
    .csh-vnext.page-team-agent .header-page {
        min-height: 390px;
    }

    .csh-vnext.page-team-agent .search-box-header {
        right: 1rem;
        left: 1rem;
        width: auto;
        padding: 1.35rem;
    }

    .csh-vnext.page-team-agent .search-box-header h1 {
        font-size: clamp(2rem, 10vw, 3rem);
    }

    .csh-vnext.page-team-agent .agent-profile {
        margin-top: -72px;
    }

    .csh-vnext.page-team-agent .contact-row {
        grid-template-columns: 30px minmax(0, 1fr);
    }

    .csh-vnext.page-team-agent .contact-label {
        grid-column: 2;
    }

    .csh-vnext.page-team-agent .contact-text {
        grid-column: 2;
    }

    .csh-vnext.page-team-agent #callout-panel #callout-body .row {
        grid-template-columns: 1fr;
    }

    .csh-vnext.page-team-agent #callout-panel {
        right: .5rem !important;
        bottom: -255px;
        width: calc(100vw - 1rem) !important;
        max-width: calc(100vw - 1rem);
        height: 300px;
    }

    .csh-vnext.page-team-agent #callout-panel #callout-body {
        height: 300px;
        padding: .85rem;
    }
}
