/* TheraConnect — therapists.css */

/* === Filter Sidebar === */
.filter-sidebar {
    flex: 0 0 var(--sidebar-width); background: white; border-radius: var(--radius-3xl);
    padding: 28px 22px; box-shadow: var(--shadow-filter); border: 1px solid var(--border-filter);
    align-self: start;
}
.filter-sidebar h3 {
    font-size: var(--fs-xl); font-weight: var(--fw-bold); margin-bottom: 20px;
    display: flex; align-items: center; gap: 10px; color: var(--green-muted);
    border-bottom: 2px solid #e1ecf0; padding-bottom: 16px;
}

.filter-group { margin-bottom: 28px; }
.filter-group label {
    font-weight: var(--fw-semi); font-size: var(--fs-md); display: block;
    margin-bottom: 12px; color: var(--green-filter);
}
.filter-group label i { margin-right: 6px; }

.filter-search, .location-select {
    width: 100%; padding: 12px 16px; border: 1.5px solid var(--border-input);
    border-radius: var(--radius-pill); font-size: var(--fs-md); background: #fafcff;
    transition: var(--t-base);
}
.filter-search:focus, .location-select:focus {
    outline: none; border-color: var(--green); box-shadow: 0 0 0 3px rgba(30,106,78,0.12);
}

/* Price Range */
.price-range { display: flex; flex-direction: column; gap: 10px; }
.price-slider { width: 100%; accent-color: var(--green); }
.price-values {
    display: flex; justify-content: space-between; font-size: var(--fs-md);
    color: var(--green-text); font-weight: var(--fw-semi);
}

/* Checkbox Group */
.checkbox-group {
    display: flex; flex-direction: column; gap: 12px;
    max-height: 300px; overflow-y: auto; padding-right: 6px;
}
.checkbox-item { display: flex; align-items: center; gap: 10px; font-size: var(--fs-md); }
.checkbox-item input[type="checkbox"] {
    width: 18px; height: 18px; accent-color: var(--green);
    border-radius: var(--radius-sm); cursor: pointer; flex-shrink: 0;
}
.checkbox-item label { cursor: pointer; }

/* === Therapist Grid === */
.therapists-section { flex: 1; min-width: 300px; }

.section-header {
    display: flex; justify-content: space-between; align-items: baseline;
    margin-bottom: 20px; flex-wrap: wrap; gap: 12px;
}
.section-header h2 {
    font-size: var(--fs-3xl); font-weight: var(--fw-bold); color: var(--green-heading);
    display: flex; align-items: center; gap: 10px;
}
.result-count {
    background: var(--bg-result); padding: 6px 16px; border-radius: 30px;
    font-size: var(--fs-md); font-weight: var(--fw-semi); color: var(--green-deep);
}

.psych-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(var(--card-min), 1fr));
    gap: 24px;
}

/* === Therapist Card === */
.psych-card {
    background: white; border-radius: var(--radius-2xl); padding: 20px;
    box-shadow: var(--shadow-card); transition: var(--t-normal);
    border: 1px solid var(--border-card); display: flex; flex-direction: column;
}
.psych-card:hover {
    border-color: #cbdde0; box-shadow: var(--shadow-card-hover); transform: translateY(-3px);
}

.card-top { display: flex; gap: 16px; margin-bottom: 12px; }
.psych-photo {
    width: 80px; height: 80px; border-radius: var(--radius-xl); object-fit: cover;
    border: 2px solid #e7f0ec; background: #e2ecf0; flex-shrink: 0;
}
.card-info { flex: 1; min-width: 0; }

.psych-name {
    font-size: var(--fs-xl); font-weight: var(--fw-bold); margin-bottom: 6px;
    color: var(--green-heading); cursor: pointer; display: inline-block;
}
.psych-name:hover { color: var(--green); text-decoration: underline; text-decoration-color: var(--gold); }

.rating { display: flex; align-items: center; gap: 6px; margin-bottom: 6px; flex-wrap: wrap; }
.stars { color: var(--gold); letter-spacing: 2px; font-size: var(--fs-base); }
.reviews { color: var(--text-muted); font-size: var(--fs-sm); font-weight: var(--fw-medium); }

.location { font-size: var(--fs-base); color: var(--text-location); }
.location i { margin-right: 4px; color: var(--gold); }

/* Specialty Tags */
.specialty-tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 15px 0 12px; }

/* Badge Container */
.badge-container { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }

/* Price & Book Row */
.price-book {
    display: flex; justify-content: space-between; align-items: center;
    margin-top: 6px; border-top: 1px solid #e9f0ec; padding-top: 16px;
    flex-wrap: wrap; gap: 12px;
}
.price { font-weight: var(--fw-black); font-size: var(--fs-2xl); color: var(--green-price); }
.price small { font-size: var(--fs-base); font-weight: var(--fw-medium); color: var(--text-price-sub); }

.btn-book {
    background: var(--green); color: white; border: none; font-weight: var(--fw-semi);
    padding: 10px 16px; border-radius: var(--radius-pill); font-size: var(--fs-sm);
    cursor: pointer; transition: var(--t-base); box-shadow: var(--shadow-btn);
    display: inline-flex; align-items: center; gap: 6px;
}
.btn-book:hover { background: var(--green-dark); }

.btn-profile {
    background: white; border: 1.5px solid var(--border-profile-btn); color: var(--green-text);
    font-weight: var(--fw-semi); padding: 10px 16px; border-radius: var(--radius-pill);
    font-size: var(--fs-sm); cursor: pointer; transition: var(--t-base);
    display: inline-flex; align-items: center; gap: 6px;
}
.btn-profile:hover { background: #e1f0e6; }

.no-slots {
    background: #d2dee0; color: #486658; padding: 10px 16px;
    border-radius: var(--radius-pill); font-size: var(--fs-sm);
    display: inline-flex; align-items: center; gap: 6px;
}

/* === No Results === */
.no-results {
    grid-column: 1 / -1; background: white; border-radius: var(--radius-2xl);
    padding: 48px; text-align: center;
}
.no-results i { color: var(--gold); margin-bottom: 16px; }
.no-results h3 { color: #1e4a3a; }

/* === Responsive === */
@media screen and (max-width: 900px) {
    .filter-sidebar { flex: auto; width: 100%; }
}

@media screen and (max-width: 640px) {
    .psych-grid { grid-template-columns: 1fr; }
    .psych-card { padding: 16px; }
    .psych-photo { width: 64px; height: 64px; }
}

/* === Timezone Badge === */
.tz-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: var(--fs-sm);
    color: #2a7faa;
    background: #f0f7ff;
    border: 1px solid #c5ddf5;
    border-radius: var(--radius-pill);
    padding: 3px 10px;
    font-weight: var(--fw-medium);
}

.tz-badge i {
    font-size: 11px;
}

/* ═══════════════════════════════════════════════════
   THERAPIST PROFILE — 2-column detail layout
   ═══════════════════════════════════════════════════ */

/* --- Breadcrumb --- */
.bread {
    padding: 12px 0 0;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: var(--fs-xs);
    color: var(--text-muted);
}
.bread a {
    color: var(--green);
    font-weight: var(--fw-semi);
    transition: var(--t-base);
}
.bread a:hover {
    color: #2E7D52;
}

/* --- Profile 2-column grid --- */
.profile {
    padding: 14px 0 48px;
    display: grid;
    grid-template-columns: 340px 1fr;
    gap: 20px;
    align-items: start;
}

/* --- Left: Sticky profile card --- */
.prof-card {
    position: sticky;
    top: 76px;
    background: #fff;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-light);
    box-shadow: 0 1px 3px rgba(0,0,0,.04), 0 2px 8px rgba(0,0,0,.03);
    overflow: hidden;
}

.prof-hero {
    background: linear-gradient(135deg, var(--green), #2E7D52);
    padding: 24px 20px 18px;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.prof-hero::before {
    content: '';
    position: absolute;
    top: -30px;
    right: -30px;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: rgba(255,255,255,.05);
}

.prof-av {
    width: 80px;
    height: 80px;
    border-radius: 40px;
    background: rgba(255,255,255,.2);
    border: 3px solid rgba(255,255,255,.3);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    font-weight: var(--fw-bold);
    color: #fff;
    margin: 0 auto 12px;
    position: relative;
    z-index: 1;
    overflow: hidden;
}
.prof-av img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.prof-name {
    font-size: var(--fs-2xl);
    font-weight: var(--fw-black);
    color: #fff;
    margin-bottom: 4px;
}

.prof-meta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    margin-bottom: 8px;
}
.prof-meta svg {
    flex-shrink: 0;
}

.prof-city {
    font-size: var(--fs-sm);
    color: rgba(255,255,255,.7);
    display: flex;
    align-items: center;
    gap: 3px;
}

.prof-stars {
    display: flex;
    gap: 1px;
}

.prof-rating {
    font-size: var(--fs-base);
    font-weight: var(--fw-bold);
    color: #fff;
}

.prof-rev {
    font-size: 11px;
    color: rgba(255,255,255,.5);
}

.prof-tags {
    display: flex;
    gap: 5px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 2px;
}

.prof-tag {
    padding: 3px 10px;
    border-radius: var(--radius-md);
    background: rgba(255,255,255,.15);
    font-size: 11px;
    font-weight: var(--fw-semi);
    color: #fff;
}

/* --- Prof body (below hero) --- */
.prof-body {
    padding: 16px 20px;
}

.prof-price {
    display: flex;
    align-items: baseline;
    gap: 4px;
    justify-content: center;
    margin-bottom: 14px;
}
.prof-price .val {
    font-size: 28px;
    font-weight: var(--fw-black);
    color: var(--green);
}
.prof-price .unit {
    font-size: var(--fs-sm);
    color: var(--text-muted);
}

/* Scoped .btn-book inside profile card (directory card version is above) */
.prof-body .btn-book {
    width: 100%;
    padding: 14px;
    border-radius: var(--radius-md);
    border: none;
    background: var(--green);
    color: #fff;
    font-size: var(--fs-md);
    font-weight: var(--fw-bold);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 10px;
    transition: var(--t-base);
    box-shadow: 0 4px 16px rgba(27,94,59,.2);
}
.prof-body .btn-book:hover {
    background: #2E7D52;
}

.prof-actions {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
}

.prof-act {
    flex: 1;
    padding: 10px;
    border-radius: 10px;
    border: 1.5px solid var(--border-light);
    background: none;
    font-size: var(--fs-xs);
    font-weight: var(--fw-semi);
    color: #5A6B5E;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    transition: var(--t-base);
    cursor: pointer;
}
.prof-act:hover {
    border-color: var(--green);
    color: var(--green);
    background: #EAF5EC;
}

/* --- Section navigation --- */
.sec-nav {
    border-top: 1px solid var(--border-light);
    padding-top: 6px;
}

.sec-btn {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 11px 4px;
    background: none;
    border: none;
    border-bottom: 1px solid var(--border-light);
    text-align: left;
    transition: var(--t-base);
    border-radius: 0;
    cursor: pointer;
}
.sec-btn:last-child {
    border-bottom: none;
}
.sec-btn:hover,
.sec-btn.active {
    background: #EAF5EC;
    margin: 0 -20px;
    padding: 11px 24px;
    width: calc(100% + 40px);
}
.sec-btn.active {
    border-left: 3px solid var(--green);
}

.sec-ico {
    width: 30px;
    height: 30px;
    border-radius: 8px;
    background: #EAF5EC;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: var(--t-base);
}
.sec-btn.active .sec-ico,
.sec-btn:hover .sec-ico {
    background: var(--green);
}
.sec-btn.active .sec-ico svg,
.sec-btn:hover .sec-ico svg {
    stroke: #fff;
}

.sec-lbl {
    font-size: var(--fs-sm);
    font-weight: var(--fw-semi);
    color: var(--text-primary);
    flex: 1;
}

.sec-prev {
    font-size: 10px;
    color: var(--text-muted);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 160px;
}

.sec-chev {
    color: var(--text-muted);
    flex-shrink: 0;
    transition: var(--t-base);
}
.sec-btn:hover .sec-chev,
.sec-btn.active .sec-chev {
    color: var(--green);
}

/* --- Right: Detail panel --- */
.detail {
    background: #fff;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-light);
    box-shadow: 0 1px 3px rgba(0,0,0,.04), 0 2px 8px rgba(0,0,0,.03);
    min-height: 500px;
    display: flex;
    flex-direction: column;
}

.detail-head {
    padding: 16px 24px;
    border-bottom: 1px solid var(--border-light);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.detail-title {
    display: flex;
    align-items: center;
    gap: 10px;
}
.detail-title .ico {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: #EAF5EC;
    display: flex;
    align-items: center;
    justify-content: center;
}
.detail-title h2 {
    font-size: var(--fs-xl);
    font-weight: var(--fw-bold);
    color: var(--text-primary);
}

.detail-nav {
    display: flex;
    align-items: center;
    gap: 4px;
}

.nav-btn {
    width: 34px;
    height: 34px;
    border-radius: 17px;
    border: 1.5px solid var(--border-light);
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--t-base);
    color: #5A6B5E;
    cursor: pointer;
}
.nav-btn:hover {
    border-color: var(--green);
    color: var(--green);
    background: #EAF5EC;
}
.nav-btn.disabled {
    opacity: .35;
    cursor: default;
    pointer-events: none;
}

.nav-count {
    font-size: 11px;
    color: var(--text-muted);
    margin: 0 6px;
    white-space: nowrap;
}

/* --- Detail body with fadeIn animation --- */
.detail-body {
    padding: 24px;
    flex: 1;
    animation: fadeIn .25s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: translateY(0); }
}

/* --- Detail content types --- */
.d-text {
    font-size: var(--fs-md);
    line-height: 1.7;
    color: var(--text-primary);
    max-width: 640px;
}

.d-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.d-chip {
    padding: 8px 18px;
    border-radius: 22px;
    background: #EAF5EC;
    border: 1.5px solid #B7D8C4;
    font-size: var(--fs-base);
    font-weight: var(--fw-medium);
    color: var(--green);
}

.d-sched {
    display: flex;
    flex-direction: column;
    gap: 6px;
    max-width: 400px;
}

.d-sched-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 16px;
    border-radius: 10px;
    background: #F4F6F5;
}
.d-sched-row .day {
    font-size: var(--fs-base);
    font-weight: var(--fw-semi);
    color: var(--text-primary);
}
.d-sched-row .time {
    font-size: var(--fs-base);
    color: var(--green);
    font-weight: var(--fw-medium);
}
.d-sched-row.off {
    opacity: .5;
}
.d-sched-row.off .time {
    color: var(--text-muted);
}

/* --- Reviews in detail panel --- */
.d-review {
    padding: 16px 0;
    border-bottom: 1px solid var(--border-light);
}
.d-review:last-child {
    border-bottom: none;
}

.d-rev-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
}

.d-rev-user {
    display: flex;
    align-items: center;
    gap: 8px;
}

.d-rev-av {
    width: 32px;
    height: 32px;
    border-radius: 16px;
    background: #EAF5EC;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--fs-xs);
    font-weight: var(--fw-bold);
    color: var(--green);
}

.d-rev-name {
    font-size: var(--fs-base);
    font-weight: var(--fw-semi);
    color: var(--text-primary);
}

.d-rev-date {
    font-size: 11px;
    color: var(--text-muted);
}

.d-rev-stars {
    display: flex;
    gap: 1px;
    margin-bottom: 4px;
}

.d-rev-text {
    font-size: var(--fs-base);
    color: #5A6B5E;
    line-height: 1.5;
}

/* --- Responsive: single column at <=900px --- */
@media screen and (max-width: 900px) {
    .profile {
        grid-template-columns: 1fr;
        gap: 14px;
        padding: 12px 0 60px;
    }
    .prof-card {
        position: static;
    }
    .bread {
        padding: 10px 0 0;
    }
}

/* ═══════════════════════════════════════════════════
   MOBILE VIEW — therapist profile (#viewMobile)
   ═══════════════════════════════════════════════════ */
#viewMobile { display: none; }

@media (max-width: 900px) {
    #viewMobile { display: block; }
    .profile, .bread, .main-header, .main-footer, .cookie-bar { display: none !important; }
    .therapist-view > .container { padding: 0; }
}

/* ── Gradient header ── */
.therapist-view-header {
    z-index: 1;
    background: var(--m-gradient);
    padding: 0 0 24px;
    position: relative;
    overflow: hidden;
}
.therapist-view-header-circle {
    position: absolute;
    top: -50px; right: -50px;
    width: 150px; height: 150px;
    border-radius: 75px;
    background: rgba(255,255,255,0.06);
    pointer-events: none;
}

/* Top bar */
.therapist-view-topbar {
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    position: relative;
    z-index: 2;
}
.therapist-view-back {
    display: flex; align-items: center; gap: 6px;
    background: rgba(255,255,255,0.15); border: none; border-radius: 20px;
    padding: 7px 14px; cursor: pointer; font-size: 13px; font-weight: 600;
    color: #fff; font-family: inherit;
}
.therapist-view-close {
    width: 36px; height: 36px; border-radius: 18px;
    background: rgba(255,255,255,0.15); border: none;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; color: #fff;
}

/* Lang switcher override for gradient header */
.therapist-view-topbar .m-lang-switcher {
    background: rgba(255,255,255,0.15);
}
.therapist-view-topbar .m-lang-btn {
    color: rgba(255,255,255,0.7);
    font-size: 11px;
    padding: 5px 10px;
    min-height: 28px;
    display: flex;
    align-items: center;
}
.therapist-view-topbar .m-lang-btn.is-active {
    background: rgba(255,255,255,0.92);
    color: var(--m-primary);
}

/* Profile row (avatar + info) */
.therapist-view-profile-row {
    padding: 8px 20px 0;
    display: flex; gap: 16px; align-items: flex-start;
}
.therapist-view-avatar {
    width: 72px; height: 72px; border-radius: 36px;
    background: rgba(255,255,255,0.2);
    border: 3px solid rgba(255,255,255,0.3);
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0; overflow: hidden;
}
.therapist-view-av-img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.therapist-view-av-init { font-size: 24px; font-weight: 700; color: #fff; }

.therapist-view-profile-info { flex: 1; min-width: 0; }
.therapist-view-name {
    font-size: 20px; font-weight: 800; color: #fff;
    margin: 0 0 4px; line-height: 1.2;
}
.therapist-view-meta {
    display: flex; align-items: center; gap: 6px;
    margin-bottom: 6px; flex-wrap: wrap;
}
.therapist-view-city { font-size: 13px; color: rgba(255,255,255,0.7); }
.therapist-view-dot { color: rgba(255,255,255,0.3); }
.therapist-view-stars { display: flex; gap: 2px; align-items: center; }
.therapist-view-rating-num { font-size: 13px; font-weight: 700; color: #fff; }
.therapist-view-rev-hint { font-size: 11px; color: rgba(255,255,255,0.5); }
.therapist-view-badges { display: flex; gap: 5px; flex-wrap: wrap; }
.therapist-view-badge {
    padding: 3px 10px; border-radius: 14px;
    background: rgba(255,255,255,0.15);
    font-size: 11px; font-weight: 600; color: #fff;
}

/* ── Body ── */
.therapist-view-body {
    padding: 12px 16px 120px;
    background: var(--m-bg);
    min-height: calc(100vh - 180px);
    animation: mtvFadeIn .3s ease;
}

/* Price row */
.therapist-view-price-row {
    display: flex; gap: 8px; margin-bottom: 12px;
}
.therapist-view-price-box {
    flex: 1;
    background: var(--m-card); border-radius: var(--m-r);
    padding: 14px 16px;
    border: 1px solid var(--m-border);
    box-shadow: var(--m-shadow);
    display: flex; align-items: center; justify-content: center; gap: 6px;
}
.therapist-view-price-val { font-size: 24px; font-weight: 800; color: var(--m-primary); }
.therapist-view-price-unit { font-size: 12px; color: var(--m-text-muted); }

.therapist-view-icon-btn {
    width: 48px; border-radius: var(--m-r);
    border: 1px solid var(--m-border); background: var(--m-card);
    cursor: pointer; display: flex; align-items: center; justify-content: center;
    color: var(--m-text-muted);
    box-shadow: var(--m-shadow);
}

/* Book CTA */
.therapist-view-book-btn {
    display: flex; width: 100%; padding: 15px;
    border-radius: var(--m-r); border: none;
    background: var(--m-primary); color: var(--m-btn-color);
    font-size: 16px; font-weight: 700;
    cursor: pointer; font-family: inherit;
    align-items: center; justify-content: center; gap: 8px;
    margin-bottom: 14px;
    box-shadow: 0 4px 16px rgba(27,94,59,0.2);
    text-decoration: none;
}

.therapist-view-msg-btn {
    display: flex; width: 100%; padding: 13px;
    border-radius: var(--m-r); border: 1.5px solid var(--m-primary);
    background: transparent; color: var(--m-primary);
    font-size: 15px; font-weight: 600;
    cursor: pointer; font-family: inherit;
    align-items: center; justify-content: center; gap: 8px;
    margin-bottom: 14px; text-decoration: none;
}
.therapist-view-msg-btn svg { stroke: var(--m-primary); }
.therapist-view-lang-switch { display: flex; align-items: center; gap: 6px; margin-left: auto; }
.therapist-view-lang-btn { color: rgba(255,255,255,0.5); font-size: 13px; font-weight: 600; text-decoration: none; padding: 2px 4px; }
.therapist-view-lang-btn.is-active { color: #fff; }

/* Sections list */
.therapist-view-sections {
    background: var(--m-card); border-radius: var(--m-r);
    border: 1px solid var(--m-border);
    box-shadow: var(--m-shadow);
    overflow: hidden;
}
.therapist-view-sec-row {
    display: flex; align-items: center; gap: 12px;
    padding: 13px 14px;
    background: none; border: none; width: 100%; text-align: left;
    cursor: pointer; font-family: inherit;
    border-bottom: 1px solid var(--m-border);
}
.therapist-view-sec-row:last-child { border-bottom: none; }
.therapist-view-sec-icon {
    width: 32px; height: 32px; border-radius: var(--m-r-sm);
    background: var(--m-primary-soft);
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}
.therapist-view-sec-info { flex: 1; min-width: 0; }
.therapist-view-sec-label {
    display: block; font-size: 14px; font-weight: 600; color: var(--m-text);
}
.therapist-view-sec-preview {
    display: block; font-size: 12px; color: var(--m-text-muted);
    margin-top: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.therapist-view-sec-chev { color: var(--m-text-muted); flex-shrink: 0; }

/* Reviews card */
.therapist-view-reviews-card {
    background: var(--m-card); border-radius: var(--m-r);
    border: 1px solid var(--m-border);
    box-shadow: var(--m-shadow);
    margin-top: 12px; padding: 16px;
}
.therapist-view-rev-header {
    display: flex; justify-content: space-between; align-items: center;
    margin-bottom: 12px;
}
.therapist-view-rev-title { font-size: 15px; font-weight: 700; color: var(--m-text); margin: 0; }
.therapist-view-rev-all {
    font-size: 12px; color: var(--m-primary); font-weight: 600;
    cursor: pointer; background: none; border: none; font-family: inherit;
}
.therapist-view-rev-summary {
    display: flex; align-items: center; gap: 12px;
    padding: 10px 14px; background: var(--m-primary-soft);
    border-radius: var(--m-r-sm);
}
.therapist-view-rev-big { font-size: 32px; font-weight: 800; color: var(--m-primary); }
.therapist-view-rev-count { font-size: 12px; color: var(--m-text-sec); margin-top: 2px; display: inline-block; }

/* Sheet icon inside bottom sheet header */
.therapist-view-sheet-icon {
    width: 36px; height: 36px; border-radius: 18px;
    background: var(--m-primary-soft);
    display: flex; align-items: center; justify-content: center;
}

/* Override detail content styles inside mobile sheet */
#viewMobile .d-text { font-size: 15px; color: var(--m-text); line-height: 1.6; }
#viewMobile .d-chips { display: flex; flex-wrap: wrap; gap: 8px; }
#viewMobile .d-chip {
    padding: 8px 16px; border-radius: 20px;
    background: var(--m-primary-soft); border: 1px solid var(--m-border);
    font-size: 14px; font-weight: 500; color: var(--m-primary);
}
#viewMobile .d-sched { display: flex; flex-direction: column; gap: 6px; }
#viewMobile .d-sched-row {
    display: flex; justify-content: space-between; align-items: center;
    padding: 8px 12px; border-radius: var(--m-r-sm); background: var(--m-bg);
}
#viewMobile .d-sched-row .day { font-size: 14px; font-weight: 600; color: var(--m-text); }
#viewMobile .d-sched-row .time { font-size: 14px; color: var(--m-primary); font-weight: 500; }
#viewMobile .d-sched-row.off { opacity: 0.5; }
#viewMobile .d-sched-row.off .time { color: var(--m-text-muted); }

/* Reviews inside sheet */
#viewMobile .d-review { padding: 12px 0; border-bottom: 1px solid var(--m-border); }
#viewMobile .d-review:last-child { border-bottom: none; }
#viewMobile .d-rev-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; }
#viewMobile .d-rev-user { display: flex; align-items: center; gap: 8px; }
#viewMobile .d-rev-av {
    width: 28px; height: 28px; border-radius: 14px;
    background: var(--m-primary-soft);
    display: flex; align-items: center; justify-content: center;
    font-size: 11px; font-weight: 700; color: var(--m-primary);
}
#viewMobile .d-rev-name { font-size: 13px; font-weight: 600; color: var(--m-text); }
#viewMobile .d-rev-date { font-size: 11px; color: var(--m-text-muted); }
#viewMobile .d-rev-stars { display: flex; gap: 1px; margin-bottom: 4px; }
#viewMobile .d-rev-text { font-size: 13px; color: var(--m-text-sec); margin: 0; line-height: 1.4; }


/* ═══════════════════════════════════════════════════════════════
   CERTIFICATES — public profile view (.view-cert-*)
   ═══════════════════════════════════════════════════════════════ */
.view-cert-section {
    margin-top: 8px;
}
.view-cert-section h3 {
    font-size: var(--fs-lg);
    font-weight: var(--fw-bold);
    color: var(--text-primary);
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.view-cert-section h3 i {
    color: var(--green);
}
.view-cert-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
}
.view-cert-item {
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid var(--border-light);
    background: white;
    cursor: pointer;
    transition: border-color var(--t-normal), box-shadow var(--t-normal);
}
.view-cert-item:hover {
    border-color: var(--border-badge);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}
.view-cert-thumb {
    display: block;
    text-decoration: none;
    color: inherit;
}
.view-cert-item img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    display: block;
}
.view-cert-pdf {
    width: 100%;
    aspect-ratio: 4 / 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: #f8f9fa;
    gap: 6px;
}
.view-cert-pdf i {
    font-size: 28px;
    color: var(--error);
}
.view-cert-pdf span {
    font-size: 10px;
    font-weight: var(--fw-bold);
    color: var(--error);
    background: #fee2e2;
    padding: 2px 7px;
    border-radius: var(--radius-sm);
    letter-spacing: 0.5px;
}
.view-cert-label {
    padding: 8px 10px;
    font-size: var(--fs-sm);
    font-weight: var(--fw-medium);
    color: var(--text-primary);
    border-top: 1px solid var(--border-light);
    background: var(--bg-body);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Tablet: 2-column */
@media (max-width: 900px) {
    .view-cert-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
}

/* Mobile: 2-column, tighter gaps, smaller thumbnails */
@media (max-width: 640px) {
    .view-cert-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    .view-cert-item img {
        aspect-ratio: 3 / 2;
    }
    .view-cert-pdf {
        aspect-ratio: 3 / 2;
    }
    .view-cert-pdf i {
        font-size: 22px;
    }
    .view-cert-pdf span {
        font-size: 9px;
    }
    .view-cert-label {
        padding: 6px 8px;
        font-size: var(--fs-xs);
    }
}

/* Mobile view certificates (#viewMobile bottom sheet) */
#viewMobile .view-cert-section {
    margin-top: 4px;
}
#viewMobile .view-cert-section h3 {
    font-size: 15px;
    font-weight: 700;
    color: var(--m-text);
    margin-bottom: 10px;
}
#viewMobile .view-cert-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}
#viewMobile .view-cert-item {
    border-radius: var(--m-r-sm);
    border: 1px solid var(--m-border);
    cursor: pointer;
}
#viewMobile .view-cert-item img {
    aspect-ratio: 3 / 2;
    object-fit: cover;
}
#viewMobile .view-cert-pdf {
    aspect-ratio: 3 / 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: var(--m-bg);
    gap: 4px;
}
#viewMobile .view-cert-pdf i {
    font-size: 22px;
    color: var(--m-danger);
}
#viewMobile .view-cert-pdf span {
    font-size: 9px;
    font-weight: 700;
    color: var(--m-danger);
    background: var(--m-danger-bg);
    padding: 1px 5px;
    border-radius: 4px;
}
#viewMobile .view-cert-label {
    padding: 6px 8px;
    font-size: 12px;
    font-weight: 600;
    color: var(--m-text);
    border-top: 1px solid var(--m-border);
    background: var(--m-bg);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* ─── Therapist side modal v2 (data-section driven) ──────────────────────── */

@media (min-width: 901px) {

    /* Modal-scoped tokens: only values that don't exist as global tokens. */
    .therapist-side-modal,
    .therapist-side-modal-backdrop {
        --tsm-green-deep: #154c3a;        /* deeper than --green for headings on mint */
        --tsm-green-brand: #1e6a4e;       /* CTA brand (between --green and --green-muted) */
        --tsm-green-brand-hover: #0f4c3a;
        --tsm-surface-body: #f7fbf8;      /* warm off-white with green tint */
        --tsm-surface-mint: #edf7f0;
        --tsm-surface-mint-soft: #ebf4ec;
        --tsm-border-mint: #d3e6d8;
        --tsm-border-soft: #edf1ee;
        --tsm-border-review: #d7dedb;
        --tsm-text-faint: #94a3b8;
        --tsm-focus-ring: var(--green);
    }

    /* Backdrop: dimmed with blur (click-to-close) */
    .therapist-side-modal-backdrop {
        position: fixed; inset: 0;
        background: rgba(0, 0, 0, 0.5);
        backdrop-filter: blur(4px);
        -webkit-backdrop-filter: blur(4px);
        opacity: 0; pointer-events: none;
        transition: opacity 0.35s ease;
        z-index: 1000;
    }
    .therapist-side-modal-backdrop.is-open {
        opacity: 1; pointer-events: auto;
    }

    /* Modal wrapper — 70% viewport flush-right drawer */
    .therapist-side-modal {
        position: fixed; top: 0; right: 0; left: auto;
        width: 70vw; min-width: 720px; max-width: 1100px;
        height: 100vh;
        background: var(--tsm-surface-body);
        box-shadow: var(--shadow-side-modal);
        transform: translateX(100%);
        transition: transform 0.4s cubic-bezier(0.22, 0.61, 0.36, 1);
        z-index: 1001;
        overflow-y: auto;
        display: flex; flex-direction: column;
        color: var(--text-primary);
        /* Enable container queries so compact layout triggers on drawer
           width (70vw) rather than on viewport width. */
        container-type: inline-size;
        container-name: tsm-drawer;
    }
    .therapist-side-modal.is-open { transform: translateX(0); }

    /* Reduced-motion: honor user preference */
    @media (prefers-reduced-motion: reduce) {
        .therapist-side-modal,
        .therapist-side-modal-backdrop {
            transition: none;
        }
        .therapist-side-modal .cabinet-chevron {
            transition: none;
        }
    }

    /* Focus-visible: 2px solid --green with 2px offset on every interactive el */
    .therapist-side-modal .ths-hero-cta:focus-visible,
    .therapist-side-modal .btn-book:focus-visible,
    .therapist-side-modal .btn-book-here:focus-visible,
    .therapist-side-modal .btn-message:focus-visible,
    .therapist-side-modal .btn-icon:focus-visible,
    .therapist-side-modal .cabinet-summary:focus-visible,
    .therapist-side-modal .action-btn:focus-visible,
    .therapist-side-modal .lang-switch:focus-visible,
    .therapist-side-modal a:focus-visible,
    .therapist-side-modal button:focus-visible,
    .therapist-side-modal [tabindex]:focus-visible {
        outline: 2px solid var(--tsm-focus-ring);
        outline-offset: 2px;
    }

    /* ── Unified green hero ─────────────────────────────────────────────
       Replaces the old sticky .therapist-side-modal-header entirely.
       Single card at the top of the modal body: avatar + name + rating +
       city + badges on the left, price + Book CTA on the right, on a
       green gradient. Scrolls with the body (no sticky). */
    .therapist-side-modal .ths-hero {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: var(--space-2) var(--space-3);
        align-items: start;
        padding: var(--space-3);
        border-radius: var(--radius-lg);
        background: linear-gradient(135deg, var(--green) 0%, var(--green-muted) 100%);
        color: #fff;
        font-family: var(--font);
        box-shadow: var(--shadow-card);
        position: relative;
        overflow: hidden;
    }

    /* Decorative ring — subtle depth without adding weight */
    .therapist-side-modal .ths-hero::before {
        content: "";
        position: absolute;
        top: -40px; right: -40px;
        width: 160px; height: 160px;
        border-radius: 50%;
        background: rgba(255, 255, 255, 0.06);
        pointer-events: none;
    }

    .therapist-side-modal .ths-hero-identity {
        display: flex;
        align-items: center;
        gap: var(--space-2);
        min-width: 0;
    }

    .therapist-side-modal .ths-hero-avatar {
        width: 64px; height: 64px;
        flex-shrink: 0;
        border-radius: var(--radius-circle);
        background: rgba(255, 255, 255, 0.2);
        border: 2px solid rgba(255, 255, 255, 0.3);
        display: flex;
        align-items: center;
        justify-content: center;
        overflow: hidden;
        color: #fff;
        font-weight: var(--fw-bold);
        font-size: var(--fs-xl);
    }

    .therapist-side-modal .ths-hero-avatar img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .therapist-side-modal .ths-hero-initials {
        font-size: var(--fs-xl);
        font-weight: var(--fw-bold);
        color: #fff;
    }

    .therapist-side-modal .ths-hero-meta {
        display: flex;
        flex-direction: column;
        gap: 6px;
        min-width: 0;
    }

    .therapist-side-modal .ths-hero-name {
        font-size: var(--fs-3xl);
        font-weight: var(--fw-black);
        color: #fff;
        line-height: 1.2;
        margin: 0;
        letter-spacing: -0.01em;
        /* Wrap long names to a maximum of 2 lines instead of ellipsis */
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
        word-break: break-word;
    }

    .therapist-side-modal .ths-hero-subline {
        display: flex;
        align-items: center;
        flex-wrap: wrap;
        gap: 6px;
        font-size: var(--fs-sm);
        color: var(--on-green-muted);
    }

    .therapist-side-modal .ths-hero-city {
        display: inline-flex;
        align-items: center;
        gap: 4px;
        color: var(--on-green-muted);
    }

    .therapist-side-modal .ths-hero-city svg {
        width: 12px; height: 12px;
        stroke: var(--on-green-muted);
        flex-shrink: 0;
    }

    .therapist-side-modal .ths-hero-dot {
        color: rgba(255, 255, 255, 0.5);
    }

    .therapist-side-modal .ths-hero-stars {
        display: inline-flex;
        gap: 1px;
    }

    .therapist-side-modal .ths-hero-stars svg {
        width: 12px; height: 12px;
        fill: var(--gold);
    }

    .therapist-side-modal .ths-hero-rating {
        font-weight: var(--fw-bold);
        color: #fff;
    }

    .therapist-side-modal .ths-hero-rev-count {
        color: var(--on-green-muted);
        font-size: var(--fs-xs);
    }

    .therapist-side-modal .ths-hero-badges {
        display: flex;
        flex-wrap: wrap;
        gap: 6px;
        margin-top: 2px;
    }

    .therapist-side-modal .ths-hero-badge {
        display: inline-block;
        padding: 3px 10px;
        font-size: var(--fs-2xs);
        font-weight: var(--fw-semi);
        color: #fff;
        background: rgba(255, 255, 255, 0.18);
        border-radius: var(--radius-full);
        text-transform: uppercase;
        letter-spacing: 0.03em;
    }

    .therapist-side-modal .ths-hero-price-group {
        display: flex;
        flex-direction: column;
        align-items: flex-end;
        gap: var(--space-1);
        flex-shrink: 0;
        position: relative;
        z-index: 1;
    }

    .therapist-side-modal .ths-hero-price {
        display: inline-flex;
        align-items: baseline;
        gap: 3px;
        white-space: nowrap;
    }

    .therapist-side-modal .ths-hero-amount {
        font-size: var(--fs-3xl);
        font-weight: var(--fw-black);
        color: #fff;
        line-height: 1;
    }

    .therapist-side-modal .ths-hero-per {
        font-size: var(--fs-sm);
        color: var(--on-green-muted);
    }

    .therapist-side-modal .ths-hero-cta {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 6px;
        height: 44px;
        padding: 0 var(--space-3);
        background: #fff;
        color: var(--green);
        font-size: var(--fs-base);
        font-weight: var(--fw-bold);
        border-radius: var(--radius-full);
        text-decoration: none;
        white-space: nowrap;
        border: none;
        cursor: pointer;
        transition: background var(--t-normal), color var(--t-normal), transform var(--t-fast);
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
    }

    .therapist-side-modal .ths-hero-cta svg {
        width: 16px; height: 16px;
        flex-shrink: 0;
        stroke: currentColor;
    }

    .therapist-side-modal .ths-hero-cta:hover {
        background: var(--gold);
        color: var(--green);
        transform: translateY(-1px);
    }

    /* Compact hero at narrow DRAWER widths — stack price-group beneath
       identity. Container query so this triggers based on the modal's
       own inline-size, not the viewport (the drawer is 70vw wide). */
    @container tsm-drawer (max-width: 800px) {
        .therapist-side-modal .ths-hero {
            grid-template-columns: 1fr;
            padding: var(--space-2);
        }
        .therapist-side-modal .ths-hero-identity {
            grid-column: 1;
        }
        .therapist-side-modal .ths-hero-price-group {
            grid-column: 1;
            grid-row: auto;
            align-items: stretch;
            flex-direction: row;
            justify-content: space-between;
            gap: var(--space-2);
            width: 100%;
        }
        .therapist-side-modal .ths-hero > .info-block {
            grid-column: 1;
        }
        .therapist-side-modal .ths-hero-cta {
            flex: 1 1 auto;
        }
        .therapist-side-modal .ths-hero-avatar {
            width: 56px; height: 56px;
        }
        .therapist-side-modal .ths-hero-name {
            font-size: var(--fs-2xl);
        }
        .therapist-side-modal .ths-hero-amount {
            font-size: var(--fs-2xl);
        }
    }

    /* Body */
    .therapist-side-modal-body {
        padding: var(--space-3) var(--space-4) var(--space-4);
        flex: 1;
    }

    /* Hide sidebar + standalone chrome when therapist.php is rendered as fragment */
    .therapist-side-modal .prof-card,
    .therapist-side-modal .bread,
    .therapist-side-modal .breadcrumb,
    .therapist-side-modal .sec-nav,
    .therapist-side-modal .detail-head {
        display: none;
    }

    /* Neutralize container width constraints inside the fragment */
    .therapist-side-modal .container,
    .therapist-side-modal .container-narrow,
    .therapist-side-modal .container-form,
    .therapist-side-modal .layout-single,
    .therapist-side-modal .layout-dashboard,
    .therapist-side-modal .profile-wrapper,
    .therapist-side-modal .profile,
    .therapist-side-modal .detail {
        max-width: none;
        width: 100%;
        margin: 0;
        padding: 0;
        display: block;
    }

    /* Main grid: 2-col body layout.
       Right column is reserved as a tall sidebar for .location-group
       spanning all rows. Left column flows: hero (row 1), then the
       content sections (About / Specialties / Qualifications / Reviews)
       below. Expanding cabinet accordions grows the right column only —
       left-column content is not pushed. */
    .therapist-side-modal .detail-body {
        display: grid;
        grid-template-columns: minmax(0, 58fr) minmax(0, 42fr);
        grid-template-areas:
            "hero     location"
            "about    location"
            "spec     location"
            "quals    location"
            "reviews  location";
        column-gap: var(--space-4);
        row-gap: var(--space-3);
        align-items: start;
    }

    .therapist-side-modal .ths-hero {
        grid-area: hero;
    }

    /* Hero interior layout (3-col grid on .ths-hero itself):
       Row 1: identity spans cols 1-2 (upper-left), price-group col 3 (upper-right).
       Rows 2+: info-blocks pack auto-flowing, one per column — up to 3 per row.
       Last row: info-actions spans all 3 columns. */
    .therapist-side-modal .ths-hero-identity {
        grid-column: 1 / span 2;
        grid-row: 1;
        min-width: 0;
    }

    .therapist-side-modal .ths-hero-price-group {
        grid-column: 3;
        grid-row: 1;
    }

    /* Info-blocks: each one takes a single column cell and auto-flows,
       so 2-3 info-blocks sit side-by-side on a single row instead of
       each taking a full-width row. */
    .therapist-side-modal .ths-hero > .info-block {
        grid-column: span 1;
        min-width: 0;
    }

    .therapist-side-modal .ths-hero .overline {
        font-size: var(--fs-2xs);
        font-weight: var(--fw-semi);
        line-height: 1;
        text-transform: uppercase;
        letter-spacing: 0.06em;
        color: var(--on-green-muted);
        margin-bottom: 6px;
    }

    .therapist-side-modal .ths-hero .info-content {
        font-size: var(--fs-sm);
        font-weight: var(--fw-medium);
        line-height: 1.5;
        color: #fff;
    }

    .therapist-side-modal .ths-hero .day-off {
        color: rgba(255, 255, 255, 0.6);
    }

    /* Actions row (message / save / share / response-time) — full width,
       sits at the bottom of the hero. */
    .therapist-side-modal .ths-hero .info-actions {
        grid-column: 1 / -1;
        display: flex;
        gap: var(--space-2);
        align-items: center;
        padding-top: var(--space-2);
        margin-top: var(--space-1);
        border-top: 1px solid rgba(255, 255, 255, 0.15);
    }

    /* Outlined pill button on green — inverts on hover */
    .therapist-side-modal .ths-hero .btn-message {
        flex: 1 1 auto;
        max-width: 260px;
        height: 40px;
        padding: 0 var(--space-3);
        background: rgba(255, 255, 255, 0.12);
        color: #fff;
        border: 1.5px solid rgba(255, 255, 255, 0.5);
        border-radius: var(--radius-full);
        font-size: var(--fs-sm);
        font-weight: var(--fw-bold);
        line-height: 1;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: var(--space-1);
        cursor: pointer;
        transition: background var(--t-normal), color var(--t-normal), border-color var(--t-normal);
    }

    .therapist-side-modal .ths-hero .btn-message:hover {
        background: #fff;
        color: var(--green);
        border-color: #fff;
    }

    .therapist-side-modal .ths-hero .btn-icon {
        width: 36px;
        height: 36px;
        background: rgba(255, 255, 255, 0.12);
        color: #fff;
        border: 1.5px solid rgba(255, 255, 255, 0.3);
        border-radius: var(--radius-circle);
        cursor: pointer;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        font-size: var(--fs-base);
        padding: 0;
        transition: background var(--t-normal), color var(--t-normal), border-color var(--t-normal);
    }

    .therapist-side-modal .ths-hero .btn-icon:hover {
        background: #fff;
        color: var(--green);
        border-color: #fff;
    }

    .therapist-side-modal .ths-hero .response-time-badge {
        margin-left: auto;
        display: inline-flex;
        align-items: center;
        gap: 6px;
        font-size: var(--fs-xs);
        font-weight: var(--fw-medium);
        line-height: 1;
        color: var(--on-green-muted);
    }

    .therapist-side-modal .ths-hero .response-time-badge svg {
        flex-shrink: 0;
    }

    /* Inline SVG icon inside text buttons — align + gap */
    .therapist-side-modal .btn-message svg,
    .therapist-side-modal .btn-book-here svg {
        width: 16px;
        height: 16px;
        flex-shrink: 0;
    }

    /* Icon-only buttons: fixed glyph size regardless of font-size */
    .therapist-side-modal .btn-icon svg {
        width: 18px;
        height: 18px;
        flex-shrink: 0;
    }

    /* Flat sections: no card styling by default */
    .therapist-side-modal .sec-panel {
        background: transparent;
        border: none;
        padding: 0;
        box-shadow: none;
        margin: 0;
    }

    /* Section headings — LARGER than body, green-deep for hierarchy */
    .therapist-side-modal .sec-panel h3,
    .therapist-side-modal .sec-panel .sec-panel-head h3 {
        font-size: var(--fs-xl);
        font-weight: var(--fw-bold);
        color: var(--tsm-green-deep);
        margin: 0 0 var(--space-2) 0;
        padding-bottom: var(--space-1);
        border-bottom: 1px solid var(--border-light);
        letter-spacing: -0.005em;
        text-transform: none;
    }

    .therapist-side-modal .sec-panel > p,
    .therapist-side-modal .sec-panel > div > p {
        font-size: var(--fs-base);
        line-height: 1.55;
        color: var(--text-primary);
        margin: 0 0 var(--space-2) 0;
    }

    /* About section */
    .therapist-side-modal .sec-panel[data-section="about"] {
        grid-area: about;
    }

    .therapist-side-modal .sec-panel[data-section="about"] > p {
        font-size: var(--fs-md);
        line-height: 1.65;
        color: var(--text-primary);
    }

    /* Specialties: chip grid */
    .therapist-side-modal .sec-panel[data-section="specialties"] {
        grid-area: spec;
    }

    .therapist-side-modal .sec-panel[data-section="specialties"] .chips,
    .therapist-side-modal .sec-panel[data-section="specialties"] .chip-list {
        display: flex;
        flex-wrap: wrap;
        gap: var(--space-1);
    }

    /* Unified chip component — all pill variants share a base */
    .therapist-side-modal .chip,
    .therapist-side-modal .spec-chip,
    .therapist-side-modal .service-chip,
    .therapist-side-modal .cabinet-badge-primary {
        display: inline-flex;
        align-items: center;
        padding: 4px var(--space-2);
        background: var(--tsm-surface-mint-soft);
        color: var(--tsm-green-deep);
        font-size: var(--fs-xs);
        font-weight: var(--fw-medium);
        line-height: 1.4;
        border-radius: var(--radius-full);
        border: 1px solid transparent;
        white-space: nowrap;
    }

    /* Chip size modifiers */
    .therapist-side-modal .spec-chip,
    .therapist-side-modal .chip {
        padding: 6px 14px;
        font-size: var(--fs-sm);
        height: 30px;
    }

    .therapist-side-modal .cabinet-badge-primary {
        text-transform: uppercase;
        letter-spacing: 0.04em;
        font-size: var(--fs-2xs);
        font-weight: var(--fw-semi);
    }

    /* Quals group: stacked items. Each <article class="quals-item"> holds
       an <h3> + <div class="quals-item-body">. */
    .therapist-side-modal .quals-group {
        grid-area: quals;
        display: flex;
        flex-direction: column;
        gap: var(--space-2);
    }

    .therapist-side-modal .quals-group > .quals-item {
        padding-top: var(--space-2);
        border-top: 1px solid var(--border-light);
    }

    .therapist-side-modal .quals-group > .quals-item:first-child {
        border-top: none;
        padding-top: 0;
    }

    .therapist-side-modal .quals-item > h3 {
        font-size: var(--fs-xl);
        font-weight: var(--fw-bold);
        color: var(--tsm-green-deep);
        margin: 0 0 var(--space-1) 0;
        padding-bottom: var(--space-1);
        border-bottom: 1px solid var(--border-light);
        letter-spacing: -0.005em;
    }

    .therapist-side-modal .quals-item-body {
        font-size: var(--fs-base);
        line-height: 1.55;
        color: var(--text-primary);
    }

    .therapist-side-modal .quals-item-body > p {
        margin: 0 0 var(--space-1) 0;
    }

    .therapist-side-modal .quals-item-body > ul,
    .therapist-side-modal .quals-item-body > ol {
        margin: 0 0 var(--space-1) var(--space-3);
        padding: 0;
    }

    /* Legacy fallback: old sec-panel-based quals structure. */
    .therapist-side-modal .quals-group .sec-panel {
        display: contents;
    }

    .therapist-side-modal .quals-group > [data-section] {
        padding-top: var(--space-2);
        border-top: 1px solid var(--border-light);
    }

    .therapist-side-modal .quals-group > [data-section]:first-child {
        border-top: none;
        padding-top: 0;
    }

    /* Reviews section with card grid */
    .therapist-side-modal .sec-panel[data-section="reviews"] {
        grid-area: reviews;
    }

    .therapist-side-modal .sec-panel[data-section="reviews"] .sec-panel-body,
    .therapist-side-modal .reviews-grid,
    .therapist-side-modal .sec-panel[data-section="reviews"] .review-list {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
        gap: var(--space-2);
    }

    /* Review card: clear surface contrast against body */
    .therapist-side-modal .review-card {
        background: #fff;
        border: 1px solid var(--tsm-border-review);
        border-radius: var(--radius-md);
        padding: var(--space-2);
        font-size: var(--fs-sm);
        line-height: 1.5;
        box-shadow: var(--shadow-card);
    }

    .therapist-side-modal .review-card .review-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: var(--space-1);
        font-size: var(--fs-xs);
    }

    .therapist-side-modal .review-card .review-stars {
        color: var(--gold);
        font-weight: var(--fw-bold);
    }

    .therapist-side-modal .review-card .review-date {
        color: var(--text-muted);
        font-size: var(--fs-2xs);
    }

    .therapist-side-modal .review-card .review-author {
        display: flex;
        gap: var(--space-1);
        align-items: center;
        margin-bottom: var(--space-1);
        font-weight: var(--fw-semi);
        color: var(--text-primary);
    }

    .therapist-side-modal .review-card .review-author img {
        width: 24px;
        height: 24px;
        border-radius: var(--radius-circle);
        object-fit: cover;
    }

    .therapist-side-modal .review-card .review-text {
        color: var(--text-primary);
        display: -webkit-box;
        -webkit-line-clamp: 3;
        -webkit-box-orient: vertical;
        overflow: hidden;
        font-size: var(--fs-sm);
        line-height: 1.5;
    }

    .therapist-side-modal .reviews-empty {
        grid-column: 1 / -1;
        text-align: center;
        padding: 40px 0;
        font-size: var(--fs-base);
        color: var(--text-muted);
        font-style: italic;
    }

    /* Location group: reserved right-column sidebar spanning all rows.
       Sticky so it pins to the top as user scrolls the long left column. */
    .therapist-side-modal .location-group {
        grid-area: location;
        background: #fff;
        border: 1px solid var(--border-light);
        border-radius: var(--radius-lg);
        padding: var(--space-2);
        box-shadow: var(--shadow-card);
        margin: 0;
        align-self: start;
        position: sticky;
        top: var(--space-3);
        /* No inner scroll — content flows into modal body scroller. */
        overflow: visible;
    }

    .therapist-side-modal .location-head {
        display: flex;
        align-items: baseline;
        justify-content: space-between;
        margin-bottom: var(--space-2);
        padding-bottom: var(--space-1);
        border-bottom: 1px solid var(--border-light);
    }

    .therapist-side-modal .location-head h3 {
        margin: 0;
        font-size: var(--fs-lg);
        font-weight: var(--fw-bold);
        color: var(--tsm-green-deep);
        border: none;
        padding: 0;
        text-transform: none;
    }

    .therapist-side-modal .loc-count {
        font-size: var(--fs-sm);
        font-weight: var(--fw-medium);
        line-height: 1;
        color: var(--text-muted);
    }

    /* Contact aside (legacy — only rendered in non-fragment markup) */
    .therapist-side-modal .contact-aside {
        grid-area: contact;
        position: sticky;
        top: var(--space-3);
        background: var(--tsm-surface-mint);
        border: 1px solid var(--tsm-border-mint);
        border-radius: var(--radius-lg);
        padding: var(--space-2);
        box-shadow: none;
        margin: 0;
        overflow: visible;
    }

    .therapist-side-modal .contact-aside .overline {
        font-size: var(--fs-2xs);
        text-transform: uppercase;
        letter-spacing: 0.06em;
        color: var(--text-muted);
        font-weight: var(--fw-semi);
        margin: 0 0 var(--space-1) 0;
        display: block;
    }

    .therapist-side-modal .contact-aside hr {
        border: none;
        border-top: 1px solid rgba(0, 0, 0, 0.08);
        margin: var(--space-2) 0;
    }

    .therapist-side-modal .contact-aside .btn-message {
        display: block;
        width: 100%;
        height: 44px;
        background: #fff;
        color: var(--tsm-green-brand);
        border: 2px solid var(--tsm-green-brand);
        border-radius: var(--radius-full);
        font-size: var(--fs-base);
        font-weight: var(--fw-semi);
        cursor: pointer;
        margin-bottom: var(--space-2);
        text-align: center;
        line-height: 40px;
        text-decoration: none;
        transition: background var(--t-normal), color var(--t-normal);
    }

    .therapist-side-modal .contact-aside .btn-message:hover {
        background: var(--tsm-green-brand);
        color: #fff;
    }

    .therapist-side-modal .contact-aside .aside-actions {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: var(--space-1);
    }

    .therapist-side-modal .contact-aside .action-btn {
        height: 36px;
        background: transparent;
        border: 1px solid rgba(0, 0, 0, 0.12);
        border-radius: var(--radius-sm);
        color: var(--text-muted);
        font-size: var(--fs-xs);
        font-weight: var(--fw-semi);
        cursor: pointer;
        padding: 0;
        transition: background var(--t-normal);
    }

    .therapist-side-modal .contact-aside .action-btn:hover {
        background: rgba(30, 106, 78, 0.05);
    }

    /* Container-query fallback: when the drawer itself gets narrow,
       collapse to a single column. Hero first, then locations
       (per user intent "hero and cabinets stack vertically"),
       then the content sections below. */
    @container tsm-drawer (max-width: 800px) {
        .therapist-side-modal .detail-body {
            grid-template-columns: 1fr;
            grid-template-areas:
                "hero"
                "location"
                "about"
                "spec"
                "quals"
                "reviews";
        }

        .therapist-side-modal .location-group {
            position: static;
            top: auto;
            align-self: auto;
        }
    }

    /* Location cabinets (accordion) */
    .therapist-side-modal .cabinet {
        border-top: 1px solid var(--tsm-border-soft);
        padding: var(--space-2) 0;
    }

    .therapist-side-modal .cabinet:first-of-type {
        border-top: none;
        padding-top: 0;
    }

    .therapist-side-modal .cabinet:last-of-type {
        padding-bottom: 0;
    }

    .therapist-side-modal .cabinet-summary {
        list-style: none;
        cursor: pointer;
        display: flex;
        align-items: center;
        gap: var(--space-1);
        font-size: var(--fs-md);
        font-weight: var(--fw-semi);
        line-height: 1.4;
        color: var(--tsm-green-deep);
        padding: 6px 0;
    }

    .therapist-side-modal .cabinet-summary::-webkit-details-marker {
        display: none;
    }

    .therapist-side-modal .cabinet-summary::marker {
        content: '';
    }

    .therapist-side-modal .cabinet-name {
        font-weight: var(--fw-semi);
        color: var(--tsm-green-deep);
    }

    .therapist-side-modal .cabinet-city {
        font-weight: var(--fw-normal);
        color: var(--text-muted);
        font-size: var(--fs-base);
    }

    .therapist-side-modal .cabinet-chevron {
        margin-left: auto;
        color: var(--text-muted);
        transition: transform var(--t-normal);
    }

    .therapist-side-modal .cabinet[open] .cabinet-chevron {
        transform: rotate(180deg);
    }

    .therapist-side-modal .cabinet-body {
        padding: var(--space-2) 0 4px 0;
        display: flex;
        flex-direction: column;
        gap: var(--space-2);
    }

    .therapist-side-modal .cabinet-address {
        font-size: var(--fs-base);
        font-weight: var(--fw-normal);
        line-height: 1.5;
        color: var(--text-primary);
        display: flex;
        flex-wrap: wrap;
        align-items: baseline;
        gap: 6px;
    }

    .therapist-side-modal .cabinet-address svg {
        width: 14px;
        height: 14px;
        color: var(--text-muted);
        flex-shrink: 0;
        align-self: center;
    }

    .therapist-side-modal .cabinet-map-link {
        margin-left: var(--space-1);
        color: var(--tsm-green-brand);
        font-weight: var(--fw-medium);
        text-decoration: underline;
    }

    /* Virtual workplace: mint left-border accent + camera glyph on the
       summary row to visually differentiate from physical cabinets. */
    .therapist-side-modal .cabinet.cabinet-virtual {
        border-left: 3px solid var(--tsm-border-mint);
        padding-left: var(--space-2);
        margin-left: calc(var(--space-2) * -1);
    }

    /* Camera SVG injected via CSS — no PHP/markup change needed. Uses
       currentColor via --tsm-green-brand so it picks up brand tint. */
    .therapist-side-modal .cabinet.cabinet-virtual > .cabinet-summary::before {
        content: "";
        display: inline-block;
        width: 16px;
        height: 16px;
        flex-shrink: 0;
        background-color: var(--tsm-green-brand);
        -webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M23 7l-7 5 7 5V7z'/><rect x='1' y='5' width='15' height='14' rx='2' ry='2'/></svg>");
                mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M23 7l-7 5 7 5V7z'/><rect x='1' y='5' width='15' height='14' rx='2' ry='2'/></svg>");
        -webkit-mask-size: contain;
                mask-size: contain;
        -webkit-mask-repeat: no-repeat;
                mask-repeat: no-repeat;
        -webkit-mask-position: center;
                mask-position: center;
    }

    /* Virtual-note row: italic muted note + small camera glyph. */
    .therapist-side-modal .cabinet-address.cabinet-virtual-note {
        color: var(--text-muted);
        font-style: italic;
        align-items: center;
    }

    .therapist-side-modal .cabinet-address.cabinet-virtual-note::before {
        content: "";
        display: inline-block;
        width: 14px;
        height: 14px;
        flex-shrink: 0;
        background-color: currentColor;
        -webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M23 7l-7 5 7 5V7z'/><rect x='1' y='5' width='15' height='14' rx='2' ry='2'/></svg>");
                mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M23 7l-7 5 7 5V7z'/><rect x='1' y='5' width='15' height='14' rx='2' ry='2'/></svg>");
        -webkit-mask-size: contain;
                mask-size: contain;
        -webkit-mask-repeat: no-repeat;
                mask-repeat: no-repeat;
        -webkit-mask-position: center;
                mask-position: center;
    }

    /* Empty-state placeholder (used by backend partial for empty sections). */
    .therapist-side-modal .empty-placeholder {
        color: var(--text-muted);
        font-size: var(--fs-sm);
        font-style: italic;
        text-align: center;
        margin: var(--space-2) 0;
    }

    .therapist-side-modal .cabinet-services {
        display: flex;
        flex-wrap: wrap;
        gap: 6px;
    }

    .therapist-side-modal .cabinet-hours .overline {
        font-size: var(--fs-2xs);
        font-weight: var(--fw-semi);
        line-height: 1;
        color: var(--text-muted);
        text-transform: uppercase;
        letter-spacing: 0.06em;
        margin-bottom: 6px;
    }

    .therapist-side-modal .hour-rows {
        list-style: none;
        margin: 0;
        padding: 0;
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
        gap: 2px var(--space-3);
    }

    .therapist-side-modal .hour-row {
        display: flex;
        justify-content: space-between;
        font-size: var(--fs-sm);
        font-weight: var(--fw-normal);
        line-height: 1.6;
        padding: 2px 0;
    }

    .therapist-side-modal .hour-row .day-label {
        font-weight: var(--fw-semi);
        color: var(--text-muted);
        width: 32px;
    }

    .therapist-side-modal .hour-row .day-off {
        color: var(--tsm-text-faint);
    }

    .therapist-side-modal .btn-book-here {
        align-self: flex-start;
        display: inline-flex;
        align-items: center;
        height: 40px;
        padding: 0 18px;
        background: var(--tsm-green-brand);
        color: #fff;
        border-radius: var(--radius-full);
        text-decoration: none;
        font-size: var(--fs-sm);
        font-weight: var(--fw-bold);
        line-height: 1;
        border: none;
        cursor: pointer;
        transition: background var(--t-normal);
    }

    .therapist-side-modal .btn-book-here:hover {
        background: var(--tsm-green-brand-hover);
    }

    /* Body lock while modal is open */
    body.therapist-side-modal-open {
        overflow: hidden;
    }
}

/* Mobile: hide side modal entirely (mobile uses standalone page) */
@media (max-width: 900px) {
    .therapist-side-modal,
    .therapist-side-modal-backdrop {
        display: none;
    }
}
