/* ═══════════════════════════════════════════════════════════════
   Therapists archive — [therapists_archive]
   ═══════════════════════════════════════════════════════════════ */

.ta-wrap {
    max-width: 1280px;
    margin: 0 auto;
    padding: 32px 0 60px;
}

/* ── Search + filter widget — mirrors .locations-search-widget ──── */
.ta-search-widget {
    background: #fff;
    border: 1.5px solid #e5e7eb;
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 20px;
    box-shadow: 0 1px 6px rgba(0,0,0,0.06);
    padding: 16px;
    max-width: 911px;
    margin: 0 auto;
}

.ta-search-bar {
    display: flex;
    align-items: center;
    gap: 0;
}
.ta-search-input-wrap {
    position: relative;
    display: flex;
    align-items: center;
    flex: 1;
    min-width: 0;
    height: 58px;
    border: solid 1px rgba(40, 49, 88, 0.15);
    border-radius: 8px;
    background-color: #f9fbfd;
    margin-right: 16px;
}
.ta-search-icon {
    position: absolute;
    left: 16px;
    top: 58%;
    transform: translateY(-50%);
    color: #9ca3af;
    pointer-events: none;
}
.breakdance input.ta-search-input {
    width: 100%;
    height: 100%;
    padding: 0 16px 0 48px;
    border: none;
    outline: none;
    font-size: 15px;
    color: #1E293B;
    background: transparent;
    min-width: 0;
}
.breakdance .ta-search-input::placeholder { color: #9ca3af; }

.breakdance .ta-find-btn {
    height: 58px;
    /* background: #CDD9A3;
    color: #1E293B;
    border: none;
    border-radius: 100px;
    padding: 10px 22px;
    margin-left: 16px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
    flex-shrink: 0;
    transition: background 0.18s, color 0.18s; */
}
/* .breakdance .ta-find-btn:hover { background: #4F8F8B; color: #fff; } */

/* ── Specialities / Locations dropdowns — styled like .locations-region-select ── */
.ta-filters-row {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    justify-content: center;
}
.ta-select-wrap { position: relative; flex-shrink: 0; }
.breakdance .ta-select-btn {
    display: inline-flex;
    align-items: center;
    appearance: none;
    -webkit-appearance: none;
    padding: 0 28px 0 10px;
    border: none;
    border-radius: 0;
    background: transparent;
    font-size: 14px;
    font-weight: 500;
    color: #374151;
    cursor: pointer;
    outline: none;
    border-right: 1px solid rgba(40, 49, 88, 0.15);
    margin-right: 12px;
    position: relative;
}
.breakdance .ta-select-btn:hover,
.breakdance .ta-select-btn.is-active { color: #1E293B; }
.ta-select-chevron {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    pointer-events: none;
    color: #6b7280;
}

.ta-select-panel {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    z-index: 20;
    min-width: 220px;
    max-height: 260px;
    overflow-y: auto;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
    padding: 8px;
}
.ta-select-option {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 8px;
    font-size: 13px;
    color: #374151;
    border-radius: 6px;
    cursor: pointer;
    white-space: nowrap;
}
.ta-select-option:hover { background: #f3f4f6; }
.ta-select-option input { accent-color: #4F8F8B; }

/* ── Region quick tabs — mirrors .locations-region-tab ──────────── */
.ta-region-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 10px 0px;
    justify-content: center;
}
.breakdance .ta-region-tab {
    padding: 10px 16px;
    border-radius: 8px;
    border: solid 1px rgba(40, 49, 88, 0.15);
    background: transparent;
    font-size: 14px;
    font-weight: 500;
    color: #374151;
    cursor: pointer;
    transition: background-color 0.18s, border-color 0.18s;
    line-height: 1;
    white-space: nowrap;
}
.breakdance .ta-region-tab.is-active,
.breakdance .ta-region-tab:hover {
    background-color: #cdd9a3;
    border: solid 1px rgba(40, 49, 88, 0.15);
}

/* ── Section headers ────────────────────────────────────────────── */
.ta-section-title {
    font-size: 24px;
    font-weight: 700;
    color: #1E293B;
    margin: 0 0 16px;
}
.ta-nearby-section {
    margin-top: 64px;
    margin-bottom: 0px;
    padding-bottom: 28px;
}
.ta-results-header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
    margin: 64px 0 32px;
}
.ta-count-line {
    margin: 0;
    font-size: 13px;
    color: #6b7280;
}
.ta-results-filter { display: contents; }
.ta-mobile-region-select-wrap { display: none; }

/* ── Grid: 4 per row ─────────────────────────────────────────────── */
.ta-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px 16px;
}
@media (max-width: 1024px) {
    .ta-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
    .ta-grid { grid-template-columns: 1fr; }
}
@media (max-width: 767px) {
    .ta-wrap {
        padding-top: 0px;
        padding-bottom: 32px;
    }
    .ta-search-bar {
        flex-direction: column;
        gap: 16px;
    }
    .ta-search-input-wrap {
        flex: auto;
        width: 100%;
        height: 48px;
        margin-right: 0;
    }
    .breakdance .ta-find-btn {
        width: 100% !important;
        height: 44px;
    }
    .ta-region-tabs { display: none; }
    .ta-results-header {
        display: block;
        margin: 40px 0 24px;
    }
    .ta-results-filter { display: block; }
    .ta-count-line { margin-bottom: 12px; }
    .ta-mobile-region-select-wrap {
        position: relative;
        display: flex;
        align-items: center;
        width: 100%;
        height: 46px;
        border: 1px solid #d9dee7;
        border-radius: 8px;
        background: #fff;
    }
    .ta-mobile-region-count {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 20px;
        height: 20px;
        margin-left: 16px;
        border-radius: 50%;
        background: #4f8f8b;
        color: #fff;
        font-family: 'Nunito Sans', sans-serif;
        font-size: 12px;
        line-height: 1;
        flex: 0 0 auto;
    }
    .breakdance .ta-mobile-region-select {
        width: 100%;
        height: 100%;
        padding: 0 52px 0 48px;
        border: 0;
        background: transparent;
        color: #1e293b;
        font-family: 'Nunito Sans', sans-serif;
        font-size: 14px;
        appearance: none;
        -webkit-appearance: none;
        cursor: pointer;
        outline: none;
    }
    .ta-mobile-region-chevron {
        position: absolute;
        right: 0;
        top: 8px;
        bottom: 8px;
        width: 42px;
        display: flex;
        align-items: center;
        justify-content: center;
        border-left: 1px solid #e1e5eb;
        pointer-events: none;
        color: #1e293b;
    }
    .ta-mobile-region-chevron svg { width: 16px; height: 16px; }
}
.ta-empty {
    grid-column: 1 / -1;
    color: #6b7280;
    font-size: 14px;
    text-align: center;
    padding: 40px 0;
}

/* ── Card ───────────────────────────────────────────────────────── */
.ta-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    overflow: hidden;
    padding: 16px;
    transition: box-shadow 0.2s ease;
}
.ta-card:hover {
    box-shadow: 0px 12px 20px 0px #42424226;
}
.ta-card-img {
    position: relative;
    width: 100%;
    max-height: 186px;
    height: 100%;
    background: #f1f5f9;
    border-radius: 8px;
    box-shadow: 0 1px 2px 0 rgba(66, 66, 66, 0.1);
    overflow: hidden;
}
.breakdance .ta-card-img img {
    width: 100%;
    height: stretch;
    object-fit: cover;
    object-position: top center;
    display: block;
    /* aspect-ratio: 3 / 2; */
}
.ta-card-body {
    padding: 16px 0 0px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.breakdance .ta-card-name {
    margin: 0;
    font-size: 18px;
    font-family: 'Nunito Sans', sans-serif;
    font-weight: 700;
    color: #1e293b;
    line-height: 1.2;
}
.ta-card-position,
.ta-card-experience {
    margin: 0;
    font-family: 'Nunito Sans', sans-serif;
    font-size: 14px;
    line-height: 1.4;
    color: #64748b;
}
.ta-card-position { 
    margin: 0;
    font-family: 'Nunito Sans', sans-serif;
    font-size: 14px;
    color: #64748b;
    line-height: 1.4;
    font-weight: normal;
}
.breakdance .ta-card-location {
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 0;
    font-family: 'Nunito', sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: #64748b;
    line-height: 1.4;
}
.breakdance .ta-card-location svg { 
    flex-shrink: 0; 
    margin-top: -1px; 
    color: #4f8f8b;
    width: 11px;
    height: 14px;
 }

.breakdance a.ta-card-book {
    display: block;
    margin-top: 17px;
    text-align: center;
    padding: 9px 14px;
    border-radius: 8px;
    border: 1.5px solid #4F8F8B;
    color: #4F8F8B;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    transition: background 0.18s, color 0.18s;
}
.breakdance a.ta-card-book:hover { background: #4F8F8B; color: #fff; }

/* ── Load more ──────────────────────────────────────────────────── */
.ta-load-more-wrap {
    display: flex;
    justify-content: center;
    margin-top: 32px;
}
.breakdance .ta-load-more-btn {
    background: #fff;
    border: 1.5px solid #1E293B;
    color: #1E293B;
    border-radius: 100px;
    padding: 12px 32px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.18s, color 0.18s;
}
.breakdance .ta-load-more-btn:hover { background: #1E293B; color: #fff; }
.breakdance .ta-load-more-btn:disabled { opacity: 0.5; cursor: default; }

/* ── Compact layout: [therapists_archive layout="compact"] ───────────────
   Used on Our Story. The Breakdance heading row (.metro-team-layout) is a
   2-column grid; the shortcode wrappers use display: contents so the
   department dropdown lands on the heading row and the grid spans below. */
.metro-team-layout > .bde-shortcode,
.ta-wrap--compact { display: contents; }

.ta-compact-filter {
    grid-column: 2;
    grid-row: 1;
    position: relative;
    display: flex;
    align-items: center;
    width: 276px;
    height: 48px;
    background: #fff;
    border: 1px solid rgba(40, 49, 88, 0.15);
    border-radius: 8px;
    box-shadow: 0 1px 1px rgba(0, 0, 0, 0.05);
}
.breakdance .ta-compact-select {
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0 52px 0 17px;
    border: 0;
    background: transparent;
    color: #1e293b;
    font-family: 'Nunito Sans', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    text-align: center;
    text-align-last: center;
    appearance: none;
    -webkit-appearance: none;
    cursor: pointer;
    outline: none;
}
.ta-compact-filter:focus-within { border-color: #64748b; }
.ta-compact-select-divider {
    position: absolute;
    top: 50%;
    right: 38px;
    width: 1px;
    height: 24px;
    background: rgba(40, 49, 88, 0.15);
    transform: translateY(-50%);
    pointer-events: none;
}
.ta-compact-select-chevron {
    position: absolute;
    top: 50%;
    right: 16px;
    display: flex;
    width: 10px;
    height: 7px;
    transform: translateY(-50%);
    pointer-events: none;
}
.ta-wrap--compact .ta-grid {
    grid-column: 1 / -1;
    gap: 32px 16px;
    /* every row takes the height of the tallest card in the grid */
    grid-auto-rows: 1fr;
}
.ta-wrap--compact .ta-card { height: 100%; }
.ta-wrap--compact .ta-card { gap: 16px; }
.ta-wrap--compact .ta-card-img { height: 186px; max-height: none; flex: 0 0 186px; }
.ta-wrap--compact .ta-card-img img { height: 100%; }
.ta-wrap--compact .ta-card-body { padding: 0; }
.ta-wrap--compact .ta-card-position {
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(40, 49, 88, 0.15);
}
.breakdance .ta-wrap--compact a.ta-card-book {
    margin-top: auto;
    padding: 10px 24px;
    border: 1px solid #4f8f8b;
    color: #1e293b;
    font-family: 'Nunito', sans-serif;
    font-size: 16px;
    font-weight: 700;
    line-height: 1;
    text-transform: capitalize;
}
.breakdance .ta-wrap--compact a.ta-card-book:hover { background: #4f8f8b; color: #fff; }
.ta-wrap--compact .ta-card--mobile-hidden { display: none; }
.ta-wrap--compact .ta-load-more-wrap {
    grid-column: 1 / -1;
    margin-top: 0;
}
.ta-wrap--compact .ta-load-more-wrap[hidden] { display: none; }
.breakdance .ta-wrap--compact .ta-load-more-btn {
    padding: 16px 32px;
    border: 0;
    border-radius: 8px;
    background: #cdd9a3;
    color: #2b382f;
    font-family: 'Nunito', sans-serif;
    font-size: 16px;
    font-weight: 700;
    line-height: 1;
    text-transform: capitalize;
    box-shadow: 0 10px 15px -3px rgba(205, 217, 163, 0.2), 0 4px 6px -4px rgba(205, 217, 163, 0.2);
}
.breakdance .ta-wrap--compact .ta-load-more-btn:hover { background: #4f8f8b; color: #fff; }

@media (max-width: 767px) {
    .ta-compact-filter {
        grid-column: 1;
        grid-row: auto;
        width: 100%;
    }
    .ta-wrap--compact .ta-load-more-btn { width: 100%; }
    /* Figma mobile: head -> filter 16, filter -> cards 32, cards gap 24, cards -> load more 32 (layout row gap is 24) */
    .ta-compact-filter { margin-top: -8px; }
    .ta-wrap--compact .ta-grid { margin-top: 8px; row-gap: 24px; }
    .ta-wrap--compact .ta-load-more-wrap { margin-top: 8px; }
}

/* Compact dropdown: keep the select transparent and rounded in every state
   (the theme's global select:focus rule paints a square white background
   over the rounded wrapper corners). */
.ta-compact-filter { overflow: hidden; transition: border-color 0.2s ease, box-shadow 0.2s ease; }
.ta-compact-filter:hover { border-color: rgba(40, 49, 88, 0.3); }
.ta-compact-filter:focus-within {
    border-color: #4f8f8b;
    box-shadow: 0 0 0 3px rgba(79, 143, 139, 0.15);
}
.breakdance .ta-compact-filter select.ta-compact-select,
.breakdance .ta-compact-filter select.ta-compact-select:hover,
.breakdance .ta-compact-filter select.ta-compact-select:focus,
.breakdance .ta-compact-filter select.ta-compact-select:active {
    border: 0;
    border-radius: 8px;
    background-color: transparent;
    box-shadow: none;
    outline: none;
}
.breakdance .ta-compact-filter select.ta-compact-select option { text-align: left; }

/* Therapist name links to the single page (Book goes to /book-appointment/). */
.breakdance a.ta-card-name-link,
a.ta-card-name-link {
    color: inherit;
    font: inherit;
    text-decoration: none;
}
.breakdance a.ta-card-name-link:hover,
a.ta-card-name-link:hover { color: #4f8f8b; }
