/*
* Propseller Top Agents - [top_agents] shortcode
* Colors and fonts reference the child theme variables declared in listify-child/style.css
* Figma: Website Design (Master) node 7738-8710
*/

.top-agents-container {
    max-width: 1140px;
    margin: 0 auto;
}

/* ── Header ─────────────────────────────────────────────────────────────── */

.top-agents-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 40px;
    margin-bottom: 45px;
}

.top-agents-title {
    margin: 0;
    max-width: 534px;
    font-family: 'Source Serif Pro', serif;
    font-size: 36px;
    font-weight: 400;
    line-height: 1.5;
    color: var(--onyx-black, #221F2B);
}

.top-agents-title em {
    font-weight: 600;
    font-style: italic;
    color: var(--propseller-blue, #3F5CD6);
}

.top-agents-subtitle {
    margin: 0;
    max-width: 534px;
    font-family: 'Open Sans', sans-serif;
    font-size: 18px;
    line-height: 1.5;
    color: var(--onyx-black, #221F2B);
}

.top-agents-subtitle strong,
.top-agents-subtitle b {
    color: var(--propseller-blue, #3F5CD6);
}

.top-agents-arrows {
    display: flex;
    gap: 20px;
    flex-shrink: 0;
    margin-bottom: 5px;
}

.top-agents-arrow {
    width: 34px;
    height: 34px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: var(--propseller-blue, #3F5CD6);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.2s ease;
}

.top-agents-arrow:hover {
    background: var(--propseller-blue, #3F5CD6);
    opacity: 0.85;
}

.top-agents-arrow.swiper-button-disabled {
    opacity: 0.2;
    cursor: default;
    pointer-events: none;
}

.top-agents-arrow svg {
    display: block;
}

/* ── Carousel ───────────────────────────────────────────────────────────── */

/* Base container styles normally provided by the .swiper class, which is
   intentionally not used here (see agents-wrapper.php) */
.top-agents-swiper {
    position: relative;
    overflow: hidden;
    list-style: none;
    padding: 0;
    z-index: 1;
    /* Dragging intercepts text selection anyway, so hide the I-beam cursor */
    cursor: default;
    -webkit-user-select: none;
    user-select: none;
}

.top-agents-swiper .swiper-wrapper {
    display: flex;
    padding-bottom: 25px;
}

.top-agents-swiper .top-agents-card {
    width: 420px;
    flex-shrink: 0;
}

.top-agents-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid #EFEFEF; /* Mercury Grey */
    border-radius: 16px;
    box-shadow: 0 0 25px rgba(34, 31, 43, 0.1);
    overflow: hidden;
}

/* ── Photo area ─────────────────────────────────────────────────────────── */

.top-agents-photo {
    position: relative;
    height: 250px;
    overflow: hidden;
    background: linear-gradient(78deg, #221F2B 0%, #42404F 100%);
}

/* Blue glow behind the agent (blurred circle in the design) */
.top-agents-photo::before {
    content: "";
    position: absolute;
    left: 50%;
    top: 589px;
    width: 1200px;
    height: 1200px;
    transform: translate(-50%, -50%);
    background: radial-gradient(circle closest-side, rgba(63, 92, 214, 0.55) 0%, rgba(63, 92, 214, 0.4) 30%, rgba(63, 92, 214, 0) 72%);
}

/* Photo is flush to the right edge of the card, with a little headroom above
   the hair. Sized by WIDTH: the trimmed cut-outs are 450x673 (2x retina), so
   255px keeps them near-2x sharp and ~381px tall in a 250px area — i.e.
   deliberately cropped at the bottom by the card edge. */
.top-agents-photo img {
    position: absolute;
    right: 0;
    top: 10px;
    width: 255px;
    height: auto;
    max-width: none;
    transition: scale 1.5s ease;
}

/* Slow zoom on card hover */
.top-agents-card:hover .top-agents-photo img {
    scale: 1.05;
}

/* Dark fade so the name stays readable over the photo */
.top-agents-photo::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 120px;
    background: linear-gradient(180deg, rgba(34, 31, 43, 0) 0%, #221F2B 99%);
}

.top-agents-details {
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    padding: 20px 26px;
    z-index: 2;
}

.top-agents-region {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 7px;
    font-family: 'Open Sans', sans-serif;
    font-size: 12px;
    line-height: 1.5;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    color: #fff;
}

.top-agents-region svg {
    flex-shrink: 0;
}

.top-agents-name {
    margin: 0;
    font-family: 'Source Serif Pro', serif;
    font-size: 30px!important;
    font-weight: 400;
    line-height: 36px!important;
    color: #fff;
}

.top-agents-job-title {
    margin: 0;
    font-family: 'Open Sans', sans-serif;
    font-size: 14px;
    line-height: 1.5;
    color: #fff;
}

/* ── Highlights ─────────────────────────────────────────────────────────── */

.top-agents-stats {
    display: flex;
    margin: 0;
    padding: 0;
    list-style: none;
    border-bottom: 1px solid #EFEFEF;
}

.top-agents-stats li {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    margin: 0;
    padding: 20px 8px;
    text-align: center;
}

.top-agents-stats li + li {
    border-left: 1px solid #EFEFEF;
}

.top-agents-stat-value {
    font-family: 'Source Serif Pro', serif;
    font-size: 24px;
    font-weight: 600;
    line-height: 1.2;
    color: var(--propseller-blue, #3F5CD6);
}

.top-agents-stat-label {
    font-family: 'Open Sans', sans-serif;
    font-size: 9px;
    line-height: 1.2;
    letter-spacing: 0.9px;
    text-transform: uppercase;
    white-space: nowrap;
    color: var(--ash-grey, #6B6D84);
}

/* ── Quote ──────────────────────────────────────────────────────────────── */

.top-agents-quote {
    flex: 1;
    margin: 0;
    padding: 20px;
    border: 0;
    background: rgba(63, 92, 214, 0.05);
    quotes: none;
}

.top-agents-quote::before,
.top-agents-quote::after {
    content: none;
}

.top-agents-quote p {
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-family: 'Open Sans', sans-serif;
    font-size: 14px;
    font-style: italic;
    line-height: 1.5;
    color: var(--ash-grey, #6B6D84);
}

/* ── Pagination ─────────────────────────────────────────────────────────── */

.top-agents-pagination {
    --swiper-pagination-bullet-horizontal-gap: 0px;
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 5px;
}

.top-agents-pagination .swiper-pagination-bullet {
    width: 8px;
    height: 8px;
    border-radius: 500px;
    background: var(--propseller-blue, #3F5CD6);
    opacity: 0.2;
    transition: width 0.3s ease, opacity 0.3s ease;
}

.top-agents-pagination .swiper-pagination-bullet-active {
    width: 32px;
    opacity: 1;
}

/* ── Mobile ─────────────────────────────────────────────────────────────── */

@media (max-width: 767px) {

    .top-agents-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 50px;
        margin-bottom: 30px;
    }

    .top-agents-title {
        font-size: 28px;
    }

    .top-agents-title em {
        font-size: 30px;
    }

    .top-agents-swiper .top-agents-card {
        width: 100%;
    }

    .top-agents-photo {
        height: 200px;
    }

    .top-agents-photo img {
        width: 225px;
    }

    .top-agents-stat-label {
        font-size: 8px;
        letter-spacing: 0.8px;
    }

}
