.pd-ssr-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1.5rem;
}

.pd-ssr-card {
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
    display: flex;
    flex-direction: column;
}

.pd-ssr-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

.pd-ssr-card h3 {
    font-size: 1rem;
    margin: 0.75rem 1rem 0.25rem;
    line-height: 1.3;
}

.pd-ssr-price {
    font-weight: 600;
    margin: 0 1rem;
}

.pd-ssr-meta,
.pd-ssr-neighborhood {
    margin: 0.25rem 1rem;
    color: #6b7280;
    font-size: 0.875rem;
}

.pd-ssr-card > *:last-child {
    margin-bottom: 1rem;
}

.pd-ssr-empty,
.pd-ssr-error {
    padding: 1rem;
    color: #6b7280;
}

.pd-ssr-error {
    color: #b91c1c;
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 4px;
}

.pd-ssr-card-link {
    display: flex;
    flex-direction: column;
    color: inherit;
    text-decoration: none;
    height: 100%;
}

.pd-ssr-card-link:hover h3 {
    text-decoration: underline;
}

.pd-ssr-detail-page {
    max-width: 960px;
    margin: 2rem auto;
    padding: 0 1rem;
}

.pd-ssr-detail-hero {
    width: 100%;
    height: auto;
    max-height: 520px;
    object-fit: cover;
    border-radius: 8px;
    display: block;
    margin-bottom: 1.5rem;
}

.pd-ssr-detail-card h1 {
    margin: 0 0 0.5rem;
}

.pd-ssr-gallery-wrap {
    position: relative;
    width: 100%;
    border-radius: 8px;
    overflow: hidden;
}

.pd-ssr-gallery {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.pd-ssr-gallery::-webkit-scrollbar { display: none; }

.pd-ssr-gallery img {
    flex: 0 0 100%;
    width: 100%;
    height: clamp(280px, 56vw, 560px);
    object-fit: cover;
    scroll-snap-align: start;
    display: block;
}

.pd-ssr-gallery-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 0;
    background: rgba(0, 0, 0, 0.55);
    color: #fff;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    z-index: 2;
    transition: background 0.15s ease;
}

.pd-ssr-gallery-nav:hover { background: rgba(0, 0, 0, 0.8); }
.pd-ssr-gallery-nav:disabled { opacity: 0.35; cursor: default; }
.pd-ssr-gallery-nav.prev { left: 12px; }
.pd-ssr-gallery-nav.next { right: 12px; }

.pd-ssr-gallery-counter {
    position: absolute;
    bottom: 12px;
    right: 12px;
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 0.75rem;
    z-index: 2;
}

.pd-ssr-map {
    width: 100%;
    border-radius: 8px;
    display: block;
}

img.pd-ssr-placeholder {
    object-fit: contain !important;
    background: #f3f4f6;
}

.pd-ssr-search-page {
    max-width: 1100px;
    margin: 2rem auto;
    padding: 0 1rem;
}

.pd-ssr-search-title {
    margin: 0 0 0.75rem;
    color: #111827;
    font-weight: 600;
    line-height: 1.2;
}

.pd-ssr-tablist {
    display: flex;
    gap: 0.25rem;
    margin-bottom: -1px;
}

.pd-ssr-tab {
    appearance: none;
    cursor: pointer;
    padding: 0.5rem 1rem;
    border: 1px solid #e5e7eb;
    border-bottom: none;
    border-radius: 8px 8px 0 0;
    background: #f3f4f6;
    color: #6b7280;
    font: inherit;
    font-weight: 600;
    line-height: 1.2;
}

.pd-ssr-tab.is-active {
    background: #fafafa;
    color: #111827;
}

.pd-ssr-tab[hidden] {
    display: none;
}

/* Square off the form's top-left corner so it joins the active tab cleanly. */
.pd-ssr-search-tabs .pd-ssr-search-form {
    border-top-left-radius: 0;
}

.pd-ssr-suggest-anchor {
    position: relative;
}

.pd-ssr-suggest {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 20;
    margin: 2px 0 0;
    padding: 0;
    max-height: 18rem;
    overflow-y: auto;
    list-style: none;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    background: #fff;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
}

.pd-ssr-suggest-item {
    padding: 0.5rem 0.75rem;
    cursor: pointer;
    font-size: 0.9rem;
    color: #111827;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.pd-ssr-suggest-item:hover,
.pd-ssr-suggest-item.is-active {
    background: #f3f4f6;
}

.pd-ssr-search-form {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem 1rem;
    align-items: end;
    margin-bottom: 1.5rem;
    padding: 1rem;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    background: #fafafa;
}

.pd-ssr-search-form .pd-ssr-field {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    font-size: 0.875rem;
    flex: 1 1 160px;
    min-width: 0;
}

.pd-ssr-search-form .pd-ssr-price-range {
    flex: 2 1 240px;
}

.pd-ssr-search-form .pd-ssr-pill-field {
    flex: 0 0 auto;
}

.pd-ssr-search-form:has(.pd-ssr-pill-field) .pd-ssr-search-submit {
    margin-left: 0;
}

.pd-ssr-row-break {
    flex-basis: 100%;
    width: 100%;
    height: 0;
    margin: 0;
}

.pd-ssr-search-form .pd-ssr-field > span {
    color: #374151;
    font-weight: 500;
}

.pd-ssr-search-form input,
.pd-ssr-search-form select {
    width: 100%;
    padding: 0.5rem 0.625rem;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    background: #fff;
    font: inherit;
    line-height: 1.3;
    box-sizing: border-box;
}

/* Fixed (locked) province/city value shown in place of a dropdown. */
.pd-ssr-search-form .pd-ssr-locked-value {
    width: 100%;
    padding: 0.5rem 0.625rem;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    background: #f3f4f6;
    color: #374151;
    font: inherit;
    line-height: 1.3;
    box-sizing: border-box;
}

.pd-ssr-search-form .pd-ssr-pill-group {
    display: flex;
    flex-wrap: wrap;
    gap: 0.375rem;
}

.pd-ssr-search-form .pd-ssr-pill {
    position: relative;
    cursor: pointer;
}

.pd-ssr-search-form .pd-ssr-pill input[type="radio"],
.pd-ssr-search-form .pd-ssr-pill input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
    width: 0;
    height: 0;
}

.pd-ssr-search-form .pd-ssr-pill > span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.25rem;
    padding: 0.4rem 0.7rem;
    border: 1px solid #d1d5db;
    border-radius: 999px;
    background: #fff;
    color: #374151;
    font-size: 0.875rem;
    line-height: 1;
    user-select: none;
    transition: background-color .15s, border-color .15s, color .15s;
}

.pd-ssr-search-form .pd-ssr-pill:hover > span {
    border-color: #9ca3af;
}

.pd-ssr-search-form .pd-ssr-pill input[type="radio"]:checked + span,
.pd-ssr-search-form .pd-ssr-pill input[type="checkbox"]:checked + span {
    background: #111827;
    border-color: #111827;
    color: #fff;
}

.pd-ssr-search-form .pd-ssr-pill input[type="radio"]:focus-visible + span,
.pd-ssr-search-form .pd-ssr-pill input[type="checkbox"]:focus-visible + span {
    outline: 2px solid #2563eb;
    outline-offset: 2px;
}

.pd-ssr-more-filters {
    flex-basis: 100%;
    width: 100%;
    margin: 0;
    border-top: 1px solid #e5e7eb;
    padding-top: 0.75rem;
}

.pd-ssr-more-filters > summary {
    cursor: pointer;
    color: #374151;
    font-size: 0.875rem;
    font-weight: 500;
    user-select: none;
    list-style: revert;
    padding: 0.25rem 0;
}

.pd-ssr-more-filters > summary:hover {
    color: #111827;
}

.pd-ssr-more-filters[open] > summary {
    margin-bottom: 0.75rem;
}

.pd-ssr-more-filters-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem 1rem;
    align-items: end;
}

.pd-ssr-more-filters-grid > .pd-ssr-field {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    font-size: 0.875rem;
    flex: 1 1 160px;
    min-width: 0;
}

/* Radius / "search near me" control */
.pd-ssr-near-me[hidden] { display: none; }

.pd-ssr-near-me-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
}

.pd-ssr-near-me-btn {
    padding: 0.5rem 0.9rem;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    background: #fff;
    color: #374151;
    font-size: 0.875rem;
    cursor: pointer;
    white-space: nowrap;
    transition: background-color .15s, border-color .15s, color .15s;
}

.pd-ssr-near-me-btn:hover { border-color: #9ca3af; }
.pd-ssr-near-me-btn[aria-pressed="true"] {
    background: #111827;
    border-color: #111827;
    color: #fff;
}
.pd-ssr-near-me-btn:disabled { opacity: 0.6; cursor: default; }

.pd-ssr-near-me-msg {
    margin: 0.35rem 0 0;
    font-size: 0.8125rem;
    color: #6b7280;
}

.pd-ssr-search-submit {
    padding: 0.6rem 1.25rem;
    border: 0;
    border-radius: 6px;
    background: #111827;
    color: #fff;
    font-weight: 600;
    cursor: pointer;
    align-self: end;
    height: fit-content;
    flex: 0 0 auto;
}

.pd-ssr-search-submit:hover {
    background: #1f2937;
}

/* Price range slider */
.pd-ssr-search-form .pd-ssr-price-range {
    grid-column: span 2;
    --pd-lo: 0%;
    --pd-hi: 100%;
}

.pd-ssr-price-range .pd-ssr-field-label {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 0.5rem;
    color: #374151;
    font-weight: 500;
    font-size: 0.875rem;
}

.pd-ssr-price-values {
    color: #111827;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
    font-size: 0.875rem;
}

.pd-ssr-price-track {
    position: relative;
    height: 40px;
    margin-top: 6px;
    padding: 0 12px;
}

.pd-ssr-price-track::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 12px;
    right: 12px;
    height: 4px;
    background: #e5e7eb;
    border-radius: 999px;
    transform: translateY(-50%);
}

.pd-ssr-price-track::after {
    content: '';
    position: absolute;
    top: 50%;
    left: calc(12px + (100% - 24px) * var(--pd-lo) / 100);
    right: calc(12px + (100% - 24px) * (100 - var(--pd-hi)) / 100);
    height: 4px;
    background: #111827;
    border-radius: 999px;
    transform: translateY(-50%);
    pointer-events: none;
}

.pd-ssr-price-track input[type="range"] {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 40px;
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
    pointer-events: none;
    -webkit-appearance: none;
    appearance: none;
    z-index: 2;
}

/* The thumb the user grabbed last sits on top so it can be moved off an end. */
.pd-ssr-price-track input[type="range"].is-active { z-index: 3; }

.pd-ssr-price-track input[type="range"]:focus { outline: none; }

.pd-ssr-price-track input[type="range"]::-webkit-slider-runnable-track {
    background: transparent;
    border: 0;
    height: 40px;
}

.pd-ssr-price-track input[type="range"]::-moz-range-track {
    background: transparent;
    border: 0;
    height: 40px;
}

.pd-ssr-price-track input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    pointer-events: auto;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #fff;
    border: 2px solid #111827;
    cursor: grab;
    margin-top: 9px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
    transition: transform 0.1s ease;
}

.pd-ssr-price-track input[type="range"]::-webkit-slider-thumb:hover { transform: scale(1.12); }
.pd-ssr-price-track input[type="range"]::-webkit-slider-thumb:active { cursor: grabbing; transform: scale(1.18); }

.pd-ssr-price-track input[type="range"]::-moz-range-thumb {
    pointer-events: auto;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #fff;
    border: 2px solid #111827;
    cursor: grab;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
    transition: transform 0.1s ease;
}

.pd-ssr-price-track input[type="range"]::-moz-range-thumb:hover { transform: scale(1.12); }
.pd-ssr-price-track input[type="range"]::-moz-range-thumb:active { cursor: grabbing; transform: scale(1.18); }

/* Button position modifiers */
.pd-ssr-search-form.pd-ssr-btn-right .pd-ssr-search-submit {
    margin-left: auto;
}

.pd-ssr-search-form.pd-ssr-btn-left .pd-ssr-search-submit {
    margin-right: auto;
}

.pd-ssr-search-form.pd-ssr-btn-full .pd-ssr-search-submit {
    flex: 1 1 100%;
    width: 100%;
}

.pd-ssr-pager {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin: 2rem 0 1rem;
    font-size: 0.95rem;
}

.pd-ssr-pager a,
.pd-ssr-pager span {
    padding: 0.5rem 0.875rem;
    border-radius: 6px;
}

.pd-ssr-pager a {
    color: #111827;
    text-decoration: none;
    border: 1px solid #d1d5db;
    background: #fff;
}

.pd-ssr-pager a:hover {
    background: #f3f4f6;
}

.pd-ssr-pager .is-disabled {
    color: #9ca3af;
    border: 1px solid #e5e7eb;
    background: #f9fafb;
    cursor: default;
}

.pd-ssr-pager-current {
    font-weight: 600;
}

/* ── Agent roster ────────────────────────────────────────────────────── */
.pd-ssr-agent-search {
    margin: 0 0 2rem;
}

.pd-ssr-agent-search-title {
    margin: 0 0 .5rem;
    font-size: clamp(2rem, 4vw, 3rem);
    line-height: 1.1;
    color: #111827;
}

.pd-ssr-agent-search-sub {
    margin: 0 0 1.5rem;
    max-width: 60ch;
    color: #6b7280;
    line-height: 1.5;
}

.pd-ssr-agent-search-bar {
    display: flex;
    gap: 1rem;
    align-items: stretch;
}

.pd-ssr-agent-search-input {
    flex: 1 1 auto;
    min-width: 0;
    padding: 1rem 1.5rem;
    font-size: 1rem;
    color: #111827;
    background: #fff;
    border: 1px solid #d1d5db;
    border-radius: 9999px;
    appearance: none;
}

.pd-ssr-agent-search-input:focus {
    outline: none;
    border-color: #111827;
}

.pd-ssr-agent-search-submit {
    flex: 0 0 auto;
    padding: 1rem 2.5rem;
    font-size: .85rem;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: #fff;
    background: #111827;
    border: none;
    border-radius: 9999px;
    cursor: pointer;
    transition: background .15s ease;
}

.pd-ssr-agent-search-submit:hover {
    background: #000;
}

.pd-ssr-agent-search-filters {
    display: flex;
    flex-wrap: wrap;
    gap: .75rem;
    margin-top: 1rem;
}

.pd-ssr-agent-search-select {
    padding: .65rem 1.25rem;
    font-size: .95rem;
    font-weight: 600;
    color: #111827;
    background: #f3f4f6;
    border: 1px solid transparent;
    border-radius: 9999px;
    cursor: pointer;
}

.pd-ssr-agent-search-select:focus {
    outline: none;
    border-color: #111827;
}

.pd-ssr-agents-noresults {
    margin: 1.5rem 0;
    color: #6b7280;
}

/* Agent search typeahead dropdown */
.pd-ssr-agent-suggest {
    border-radius: 12px;
    overflow: hidden;
}

.pd-ssr-agent-suggest .pd-ssr-suggest-item {
    display: flex;
    flex-direction: column;
    gap: 2px;
    white-space: normal;
    padding: 0.6rem 1rem;
}

.pd-ssr-suggest-name {
    font-weight: 600;
    color: #111827;
}

.pd-ssr-suggest-meta {
    font-size: 0.8rem;
    color: #6b7280;
}

.pd-ssr-suggest-empty {
    color: #6b7280;
    cursor: default;
}

.pd-ssr-suggest-empty:hover {
    background: transparent;
}

@media (max-width: 560px) {
    .pd-ssr-agent-search-bar { flex-direction: column; }
    .pd-ssr-agent-search-submit { padding: 1rem; }
}

.pd-ssr-agents-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 1.5rem;
    margin: 1.5rem 0;
}

.pd-ssr-agent-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    overflow: hidden;
    transition: box-shadow .15s ease, transform .15s ease;
}

.pd-ssr-agent-card:hover {
    box-shadow: 0 6px 18px rgba(0,0,0,.08);
    transform: translateY(-2px);
}

/* `display: flex` above outranks the UA [hidden] rule, so the JS filter's
   card.hidden = true wouldn't hide cards without this. */
.pd-ssr-agent-card[hidden] { display: none; }

/* The profile link wraps the photo + name; action rows sit outside it. */
.pd-ssr-agent-link {
    display: flex;
    flex-direction: column;
    color: inherit;
    text-decoration: none;
}

.pd-ssr-agent-card-body { flex: 1 1 auto; }

.pd-ssr-agent-photo {
    display: block;
    width: 100%;
    height: 260px;
    object-fit: cover;
    background: #f3f4f6;
}

.pd-ssr-agent-photo--empty {
    background: linear-gradient(135deg, #e5e7eb 0%, #f3f4f6 100%);
}

.pd-ssr-agent-card-body {
    padding: 14px 16px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

/* Neutralize theme heading/paragraph margins so the flex `gap` controls spacing. */
.pd-ssr-agent-card-body > * { margin: 0; }

/* ── Contact (phone / sms / email) row ── */
/* Flex row; each action grows equally so the buttons share the row width
   with the 8px gap between them. The row's horizontal margin matches the
   Learn More button below so they line up. */
.pd-ssr-agent-contact {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap;
    gap: 8px;
    margin: 0 !important;
    padding: 0 16px 12px !important;
    box-sizing: border-box;
}

.pd-ssr-agent-action {
    flex: 1 1 0 !important;
    min-width: 0;
    width: auto;
    box-sizing: border-box;
    /* !important: some themes force `a { display: inline-block }`, which
       collapses the flex centering and shoves the icon into a corner. */
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    height: 40px;
    min-width: 0;
    padding: 0;
    line-height: 1;
    color: #111827;
    background: #f3f4f6;
    border: 0;
    border-radius: 8px;
    box-shadow: none;
    text-decoration: none;
    transition: background .15s ease, color .15s ease;
}

.pd-ssr-agent-action:hover {
    background: #111827;
    color: #fff;
}

/* Lock icon size + centering against theme overrides. */
.pd-ssr-agent-action svg {
    width: 18px;
    height: 18px;
    display: block !important;
    flex: 0 0 auto;
    margin: 0;
}

/* ── Full-width "Learn more" button below contact row ── */
.pd-ssr-agent-learn-more {
    display: block;
    box-sizing: border-box;
    width: calc(100% - 32px);
    margin: 0 16px 12px;
    height: 40px;
    padding: 0 16px;
    line-height: 40px;
    text-align: center;
    text-decoration: none;
    color: #111827;
    background: #f3f4f6;
    border: 0;
    border-radius: 8px;
    box-shadow: none;
    transition: background .15s ease, color .15s ease;
}

.pd-ssr-agent-learn-more:hover {
    background: #111827;
    color: #fff;
}

/* ── Socials row ── */
.pd-ssr-agent-socials {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding: 0 16px 16px;
    margin-top: auto;
}

.pd-ssr-agent-social {
    flex: 0 0 auto;
    box-sizing: border-box;
    /* !important: see .pd-ssr-agent-action — guard the flex centering against
       themes that override `a` display. */
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 34px;
    height: 34px;
    min-width: 0;          /* override themes that force a min-width on links */
    padding: 0;            /* override theme link/button padding */
    line-height: 1;
    color: #6b7280;
    background: #f3f4f6;
    border: 0;             /* kill the theme's circle outline */
    border-radius: 50%;
    box-shadow: none;
    text-decoration: none;
    transition: color .15s ease, background .15s ease;
}

.pd-ssr-agent-social:hover {
    color: #fff;
    background: #111827;
}

/* Lock icon size so themes can't scale the inline SVG. */
.pd-ssr-agent-social svg {
    width: 22px;
    height: 22px;
    display: block !important;
    flex: 0 0 auto;
    margin: 0;
}

.pd-ssr-agent-card .pd-ssr-agent-name {
    margin: 0;
    font-size: 1.05rem;
    line-height: 1.3;
    color: #111827;
}

.pd-ssr-agent-card .pd-ssr-agent-city {
    margin: 0;
    color: #6b7280;
    font-size: .9rem;
}

.pd-ssr-agent-card .pd-ssr-agent-bio {
    margin: 0;
    color: #4b5563;
    font-size: .9rem;
    line-height: 1.45;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Detail */
.pd-ssr-agent-detail {
    max-width: 880px;
    margin: 2rem auto;
}

.pd-ssr-agent-detail-header {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
    margin-bottom: 1.5rem;
}

.pd-ssr-agent-detail-photo {
    width: 200px;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    flex: 0 0 auto;
}

.pd-ssr-agent-detail-name {
    margin: 0 0 4px;
    font-size: 1.75rem;
    line-height: 1.2;
}

.pd-ssr-agent-detail-title,
.pd-ssr-agent-detail-brokerage,
.pd-ssr-agent-detail-city {
    color: #6b7280;
    margin-bottom: 2px;
}

.pd-ssr-agent-contact {
    list-style: none;
    padding: 0;
    margin: 0 0 1.5rem;
    display: flex;
    gap: 1.25rem;
    flex-wrap: wrap;
    color: #374151;
}

.pd-ssr-agent-contact a { color: inherit; text-decoration: none; }
.pd-ssr-agent-contact a:hover { text-decoration: underline; }

.pd-ssr-agent-bio-full { line-height: 1.6; color: #1f2937; margin-bottom: 1.5rem; }

.pd-ssr-agent-socials {
    list-style: none;
    padding: 0;
    margin: 0 0 1.5rem;
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.pd-ssr-agent-socials a {
    display: inline-block;
    padding: 6px 12px;
    border: 1px solid #d1d5db;
    border-radius: 999px;
    color: #111827;
    text-decoration: none;
    font-size: .9rem;
}

.pd-ssr-agent-socials a:hover { background: #f3f4f6; }

.pd-ssr-agent-communities ul,
.pd-ssr-agent-recognitions ul {
    list-style: none;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: .5rem 0 1.5rem;
}

.pd-ssr-agent-communities li {
    background: #f3f4f6;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: .9rem;
    color: #374151;
}

.pd-ssr-agent-recognitions li {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #fafafa;
    padding: 6px 10px;
    border: 1px solid #e5e7eb;
    border-radius: 4px;
    font-size: .9rem;
}

.pd-ssr-agent-recognitions img {
    width: 28px;
    height: 28px;
    object-fit: contain;
    flex: 0 0 auto;
}

/* Stack recognition name + description when a description is present. */
.pd-ssr-recognition-text {
    display: flex;
    flex-direction: column;
}

.pd-ssr-recognition-name { font-weight: 600; color: #374151; }

.pd-ssr-recognition-desc {
    color: #6b7280;
    font-size: .85rem;
    line-height: 1.35;
}

/* Market focus (primary / secondary). */
.pd-ssr-agent-market-types ul {
    list-style: none;
    padding: 0;
    margin: .5rem 0 1.5rem;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.pd-ssr-agent-market-types li {
    background: #f3f4f6;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: .9rem;
    color: #374151;
}

.pd-ssr-market-label {
    font-weight: 600;
    text-transform: uppercase;
    font-size: .7rem;
    letter-spacing: .06em;
    color: #6b7280;
    margin-right: 4px;
}

@media (max-width: 600px) {
    .pd-ssr-agent-detail-header { flex-direction: column; }
    .pd-ssr-agent-detail-photo  { width: 100%; height: auto; max-height: 360px; }
}

/* ── Search results map (Leaflet/OSM) ───────────────────────────── */
.pd-ssr-map-wrap {
    width: 100%;
    margin: 1.5rem 0;
    border-radius: 8px;
    overflow: hidden;
    background: #f3f4f6;
    z-index: 0;
}

/* Leaflet sets its own font; keep popups consistent with the cards. */
.pd-ssr-map-popup {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 140px;
}
.pd-ssr-map-popup-address {
    font-size: .9rem;
    color: #111827;
}
.pd-ssr-map-popup-price {
    font-weight: 600;
    color: #111827;
}
.pd-ssr-map-popup-link {
    margin-top: 4px;
    font-size: .85rem;
    font-weight: 600;
    text-decoration: none;
}
