/* ===== Agents Archive & Single ===== */
.pf-agents-archive,
.pf-agent-single-wrap {
    --pf-gold: #c9a84c;
    --pf-dark: #0f172a;
    --pf-muted: #64748b;
    --pf-radius: 16px;
    --pf-shadow: 0 4px 24px rgba(15, 23, 42, 0.08);
    background: #f8f9fb;
    max-width: none;
    padding: 0;
}

/* Archive */
.pf-agents-archive__header {
    background: linear-gradient(135deg, #0f172a 0%, #1e3a5f 100%);
    color: #fff;
    text-align: center;
    padding: 56px 24px 48px;
}

.pf-agents-archive__eyebrow {
    color: var(--pf-gold);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin: 0 0 12px;
}

.pf-agents-archive__title {
    font-size: clamp(2rem, 4vw, 2.75rem);
    margin: 0 0 12px;
    font-weight: 700;
}

.pf-agents-archive__desc {
    color: rgba(255, 255, 255, 0.75);
    max-width: 520px;
    margin: 0 auto;
    font-size: 1.05rem;
}

.pf-agents-grid {
    max-width: 1280px;
    margin: 0 auto;
    padding: 40px 24px;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 24px;
}

/* Agent card */
.pf-agent-card {
    background: #fff;
    border-radius: var(--pf-radius);
    overflow: hidden;
    box-shadow: var(--pf-shadow);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    display: flex;
    flex-direction: column;
}

.pf-agent-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.12);
}

.pf-agent-card__link {
    text-decoration: none;
    color: inherit;
    flex: 1;
}

.pf-agent-card__photo {
    position: relative;
    height: 280px;
    background: linear-gradient(135deg, #1e3a5f, #0f172a);
    overflow: hidden;
}

.pf-agent-card__photo img,
.pf-agent-card__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.pf-agent-card:hover .pf-agent-card__photo img {
    transform: scale(1.05);
}

.pf-agent-card__placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    font-weight: 700;
    color: var(--pf-gold);
    background: linear-gradient(135deg, #1e3a5f, #0f172a);
}

.pf-agent-card__body {
    padding: 22px 22px 16px;
    text-align: center;
}

.pf-agent-card__name {
    font-size: 1.15rem;
    font-weight: 700;
    margin: 0 0 6px;
    color: var(--pf-dark);
}

.pf-agent-card__role {
    font-size: 13px;
    color: var(--pf-gold);
    font-weight: 600;
    margin: 0 0 10px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.pf-agent-card__count {
    font-size: 13px;
    color: var(--pf-muted);
    margin: 0;
}

.pf-agent-card__actions {
    display: flex;
    border-top: 1px solid #f1f5f9;
}

.pf-agent-card__action {
    flex: 1;
    text-align: center;
    padding: 12px 8px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    color: var(--pf-muted);
    transition: background 0.2s, color 0.2s;
}

.pf-agent-card__action:hover {
    background: #f8fafc;
    color: var(--pf-dark);
}

.pf-agent-card__action--primary {
    background: linear-gradient(135deg, var(--pf-gold), #a88a3a);
    color: var(--pf-dark);
}

.pf-agent-card__action--primary:hover {
    background: linear-gradient(135deg, #d4b65c, var(--pf-gold));
    color: var(--pf-dark);
}

/* Single agent hero */
.pf-agent-profile {
    color: var(--pf-dark);
}

.pf-agent-hero {
    background: linear-gradient(135deg, #0f172a 0%, #1e3a5f 60%, #0f172a 100%);
    padding: 48px 24px;
}

.pf-agent-hero__inner {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 48px;
    flex-wrap: wrap;
}

.pf-agent-hero__photo {
    flex-shrink: 0;
    width: 220px;
    height: 220px;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid var(--pf-gold);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.pf-agent-hero__img,
.pf-agent-hero__photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.pf-agent-hero__photo .pf-agent-card__placeholder {
    font-size: 5rem;
    border-radius: 50%;
}

.pf-agent-hero__content {
    flex: 1;
    min-width: 280px;
    color: #fff;
}

.pf-agent-hero__eyebrow {
    color: var(--pf-gold);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin: 0 0 10px;
}

.pf-agent-hero__name {
    font-size: clamp(2rem, 4vw, 2.75rem);
    font-weight: 800;
    margin: 0 0 8px;
    letter-spacing: -0.02em;
}

.pf-agent-hero__position {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.7);
    margin: 0 0 24px;
}

.pf-agent-hero__stats {
    display: flex;
    gap: 32px;
    margin-bottom: 28px;
    flex-wrap: wrap;
}

.pf-agent-hero__stat-num {
    display: block;
    font-size: 2rem;
    font-weight: 800;
    color: var(--pf-gold);
    line-height: 1;
}

.pf-agent-hero__stat-label {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.6);
}

.pf-agent-hero__actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

/* Buttons */
.pf-agent-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 24px;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    border: 2px solid transparent;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.pf-agent-btn--sm {
    padding: 10px 18px;
    font-size: 14px;
}

.pf-agent-btn--primary {
    background: linear-gradient(135deg, var(--pf-gold), #a88a3a);
    color: var(--pf-dark);
    box-shadow: 0 4px 16px rgba(201, 168, 76, 0.35);
}

.pf-agent-btn--primary:hover {
    transform: translateY(-2px);
    color: var(--pf-dark);
}

.pf-agent-btn--outline {
    background: transparent;
    border-color: rgba(255, 255, 255, 0.4);
    color: #fff;
}

.pf-agent-hero .pf-agent-btn--outline {
    border-color: rgba(255, 255, 255, 0.4);
    color: #fff;
}

.pf-agent-btn--outline:hover {
    border-color: var(--pf-gold);
    color: #fff;
}

.pf-agent-btn--ghost {
    background: #fff;
    color: var(--pf-muted);
    border-color: #e2e8f0;
}

.pf-agent-btn--ghost:hover {
    color: var(--pf-dark);
}

/* Body */
.pf-agent-body {
    max-width: 1280px;
    margin: 0 auto;
    padding: 40px 24px 60px;
}

.pf-agent-block {
    background: #fff;
    border-radius: var(--pf-radius);
    padding: 32px;
    margin-bottom: 28px;
    box-shadow: var(--pf-shadow);
}

.pf-agent-block__head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 28px;
    flex-wrap: wrap;
}

.pf-agent-block__title {
    font-size: 1.35rem;
    font-weight: 700;
    margin: 0 0 6px;
    padding-bottom: 0;
    border: none;
}

.pf-agent-block__subtitle {
    color: var(--pf-muted);
    margin: 0;
    font-size: 14px;
}

.pf-agent-prose {
    font-size: 1rem;
    line-height: 1.8;
    color: #334155;
}

.pf-agent-block--listings .pf-properties-grid {
    margin: 0;
}

.pf-agent-listings-pagination {
    margin-top: 32px;
}

.pf-agent-empty {
    text-align: center;
    padding: 48px 24px;
    color: var(--pf-muted);
}

.pf-agent-empty p {
    margin-bottom: 20px;
}

/* Sticky contact bar */
.pf-agent-contact-bar {
    background: #fff;
    border-radius: var(--pf-radius);
    box-shadow: var(--pf-shadow);
    border-left: 4px solid var(--pf-gold);
}

.pf-agent-contact-bar__inner {
    padding: 24px 28px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.pf-agent-contact-bar__inner strong {
    display: block;
    font-size: 1rem;
    margin-bottom: 4px;
}

.pf-agent-contact-bar__inner span {
    font-size: 14px;
    color: var(--pf-muted);
}

.pf-agent-contact-bar__actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.pf-agent-contact-bar .pf-agent-btn--outline {
    border-color: #e2e8f0;
    color: var(--pf-dark);
}

.pf-agents-archive-pagination {
    max-width: 1280px;
    margin: 0 auto 48px;
    padding: 0 24px;
}

/* Contact Form 7 */
.pf-agent-block--enquiry {
    scroll-margin-top: 24px;
}

.pf-agent-enquiry-wrap {
    max-width: 640px;
}

.pf-agent-property-picker {
    margin-bottom: 24px;
    padding-bottom: 24px;
    border-bottom: 1px solid #e2e8f0;
}

.pf-agent-property-picker__label {
    display: block;
    font-size: 15px;
    font-weight: 700;
    color: var(--pf-dark);
    margin-bottom: 6px;
}

.pf-agent-property-picker__hint {
    margin: 0 0 12px;
    font-size: 14px;
    color: var(--pf-muted);
}

.pf-agent-property-picker__empty {
    margin: 0 0 20px;
    font-size: 14px;
    color: var(--pf-muted);
}

.pf-agent-property-picker__select {
    width: 100%;
}

.pf-agent-property-picker .select2-container {
    width: 100% !important;
}

.pf-agent-property-picker .select2-container--default .select2-selection--single {
    height: 48px;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 6px 8px;
}

.pf-agent-property-picker .select2-container--default .select2-selection--single .select2-selection__rendered {
    line-height: 34px;
    color: var(--pf-dark);
    padding-left: 6px;
}

.pf-agent-property-picker .select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 46px;
    right: 8px;
}

.pf-agent-property-picker .select2-container--default.select2-container--focus .select2-selection--single,
.pf-agent-property-picker .select2-container--default.select2-container--open .select2-selection--single {
    border-color: var(--pf-gold);
    box-shadow: 0 0 0 3px rgba(201, 168, 76, 0.15);
}

.pf-agent-property-picker .select2-container.pf-select2--error .select2-selection--single {
    border-color: #dc2626 !important;
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.12) !important;
}

.select2-dropdown {
    border-color: #e2e8f0;
    border-radius: 10px;
    overflow: hidden;
}

.select2-container--default .select2-results__option--highlighted.select2-results__option--selectable {
    background: var(--pf-gold);
    color: var(--pf-dark);
}

.pf-agent-property-picker__select--error {
    border-color: #dc2626 !important;
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.12) !important;
}

.pf-agent-property-picker__error {
    margin: 10px 0 0;
    font-size: 13px;
    color: #dc2626;
    font-weight: 600;
}

.pf-agent-property-selected {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 14px;
    margin-top: 16px;
    padding: 16px;
    background: #f8fafc;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
}

.pf-agent-property-selected__label {
    display: block;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--pf-muted);
    margin-bottom: 6px;
}

.pf-agent-property-selected__input {
    width: 100%;
    padding: 11px 12px;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    font-size: 14px;
    background: #fff;
    color: var(--pf-dark);
}

.pf-agent-cf7 .wpcf7 {
    max-width: none;
}

.pf-agent-cf7-form p {
    margin-bottom: 18px;
}

.pf-agent-cf7-form label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--pf-dark);
    margin-bottom: 6px;
}

.pf-agent-cf7 .pf-cf7-input,
.pf-agent-cf7 .pf-cf7-select,
.pf-agent-cf7 .pf-cf7-textarea,
.pf-agent-cf7 input[type="text"],
.pf-agent-cf7 input[type="email"],
.pf-agent-cf7 input[type="tel"],
.pf-agent-cf7 select,
.pf-agent-cf7 textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    font-size: 15px;
    background: #fff;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.pf-agent-cf7 .pf-cf7-input:focus,
.pf-agent-cf7 .pf-cf7-select:focus,
.pf-agent-cf7 .pf-cf7-textarea:focus,
.pf-agent-cf7 input:focus,
.pf-agent-cf7 select:focus,
.pf-agent-cf7 textarea:focus {
    outline: none;
    border-color: var(--pf-gold);
    box-shadow: 0 0 0 3px rgba(201, 168, 76, 0.15);
}

.pf-agent-cf7 .pf-cf7-textarea,
.pf-agent-cf7 textarea {
    min-height: 140px;
    resize: vertical;
}

.pf-agent-cf7 .pf-cf7-submit,
.pf-agent-cf7 input[type="submit"] {
    background: linear-gradient(135deg, var(--pf-gold), #a88a3a);
    color: var(--pf-dark);
    border: none;
    border-radius: 10px;
    padding: 14px 28px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.pf-agent-cf7 .pf-cf7-submit:hover,
.pf-agent-cf7 input[type="submit"]:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(201, 168, 76, 0.35);
}

.pf-agent-cf7 .wpcf7-not-valid-tip {
    font-size: 13px;
    margin-top: 6px;
}

.pf-agent-cf7 .wpcf7-response-output {
    margin: 16px 0 0;
    border-radius: 10px;
    padding: 12px 16px;
    font-size: 14px;
}

@media (max-width: 768px) {
    .pf-agent-hero__inner {
        flex-direction: column;
        text-align: center;
    }

    .pf-agent-hero__stats,
    .pf-agent-hero__actions {
        justify-content: center;
    }

    .pf-agents-grid {
        grid-template-columns: 1fr;
        padding: 24px 16px;
    }

    .pf-agent-body {
        padding: 24px 16px 40px;
    }

    .pf-agent-block {
        padding: 24px 20px;
    }
}
