/* ==========================================================================
   Metro blocks: fixes for blocks reused on several pages.
   Loaded site-wide from includes/location-bar.php.
   ========================================================================== */

/* ── Location floating bar ([metro_location_bar], location single) ───────── */
.metro-has-loc-bar { position: relative; }

.metro-loc-bar-slot {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    margin: 0 auto; /* no transform: it would trap the fixed bar */
    width: min(1024px, calc(100% - 32px));
    height: 52px;
    z-index: 40;
}
.metro-loc-bar {
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    width: 100%;
    height: 52px;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.9);
    -webkit-backdrop-filter: blur(7.5px);
    backdrop-filter: blur(7.5px);
    border: 1px solid rgba(193, 200, 194, 0.2);
    border-radius: 12px;
    box-shadow: 0 20px 48px 0 rgba(44, 76, 59, 0.08);
}
.metro-loc-bar-slot.is-fixed .metro-loc-bar {
    position: fixed;
    z-index: 90;
    /* follows the header as it hides/shows (same timing as header.css) */
    transition: top 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}
.breakdance .metro-loc-bar__name,
.metro-loc-bar__name {
    flex: 1 1 auto;
    min-width: 0;
    margin: 0;
    font-family: 'Nunito Sans', sans-serif;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.6;
    color: #1e293b;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.metro-loc-bar__actions {
    display: flex;
    align-items: center;
    flex: 0 0 auto;
}
.breakdance a.metro-loc-bar__link,
a.metro-loc-bar__link {
    display: inline-flex;
    align-items: center;
    font-family: 'Nunito', sans-serif;
    font-size: 14px;
    font-weight: 700;
    line-height: 1;
    color: #1e293b;
    text-decoration: none;
    text-transform: capitalize;
    white-space: nowrap;
}
.metro-loc-bar__link img { display: block; flex: 0 0 auto; }
a.metro-loc-bar__phone { gap: 4px; }
a.metro-loc-bar__dir { gap: 2px; padding: 8px 16px; }
.breakdance a.metro-loc-bar__link:hover,
a.metro-loc-bar__link:hover { color: #4f8f8b; }
.breakdance a.metro-loc-bar__book,
a.metro-loc-bar__book {
    display: inline-flex;
    align-items: center;
    padding: 11px 16px;
    border-radius: 8px;
    background: #cdd9a3;
    box-shadow: 0 10px 15px -3px rgba(205, 217, 163, 0.2), 0 4px 6px -4px rgba(205, 217, 163, 0.2);
    font-family: 'Nunito', sans-serif;
    font-size: 14px;
    font-weight: 700;
    line-height: 1;
    color: #1e293b;
    text-decoration: none;
    text-transform: capitalize;
    white-space: nowrap;
    transition: background-color .2s ease;
}
.breakdance a.metro-loc-bar__book:hover,
a.metro-loc-bar__book:hover { background: #bfcd8e; }
/* Not part of the mobile design. */
@media (max-width: 767px) {
    .metro-loc-bar-slot { display: none; }
}

/* ── Location hero: info icons (address, phone, fax, email, hours) ───────── */
.metro-info-icon {
    position: relative;
    padding-left: 32px;
}
.metro-info-icon::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 24px;
    height: 24px;
    background: no-repeat center / 24px 24px;
}
.metro-info-icon--pin::before   { background-image: url(../icons/loc-pin.svg); }
.metro-info-icon--phone::before { background-image: url(../icons/loc-phone.svg); }
.metro-info-icon--fax::before   { background-image: url(../icons/loc-fax.svg); }
.metro-info-icon--email::before { background-image: url(../icons/loc-envelope.svg); }
.metro-info-icon--clock::before { background-image: url(../icons/loc-clock.svg); }

/* Hours row: one full-width column (the second column is empty). */
.metro-info-row-single > .bde-column:first-child { width: 100% !important; flex-basis: 100% !important; max-width: 100% !important; }
.metro-info-row-single > .bde-column:not(:first-child) { display: none !important; }

/* ── Get Directions icon (text links and Breakdance buttons) ─────────────── */
a.metro-icon-directions::before,
.bde-button.metro-icon-directions .button-atom__text::before {
    content: '';
    display: inline-block;
    width: 14px;
    height: 14px;
    margin-right: 4px;
    vertical-align: -1px;
    background-color: var(--metro-dir-icon, currentColor);
    -webkit-mask: url(../icons/directions.svg) no-repeat center / contain;
    mask: url(../icons/directions.svg) no-repeat center / contain;
}
.bde-button.metro-icon-directions--muted { --metro-dir-icon: #64748b; }

/* ── Text link with chevron ("See All Staff") ────────────────────────────── */
.breakdance a.metro-link-chevron,
a.metro-link-chevron {
    display: inline-flex !important;
    align-items: center;
    gap: 4px;
    font-family: 'Nunito', sans-serif !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    line-height: 1 !important;
    letter-spacing: 0 !important;
    color: #1e293b !important;
    text-transform: capitalize !important;
    text-decoration: none !important;
    white-space: nowrap;
}
a.metro-link-chevron::after {
    content: '';
    flex: 0 0 auto;
    width: 24px;
    height: 24px;
    margin: -4px;
    background-color: currentColor;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M10 6 8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z'/%3E%3C/svg%3E") no-repeat center / 24px 24px;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M10 6 8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z'/%3E%3C/svg%3E") no-repeat center / 24px 24px;
}
.breakdance a.metro-link-chevron:hover,
a.metro-link-chevron:hover { color: #4f8f8b !important; }

/* ── Testimonials: dots keep the same distance from the text and the card
      bottom, whatever the quote length. Content sits on the bottom edge:
      dots 83px from the bottom (Figma), text 32px above the dots. Phones
      already use this layout (dots 32 / text 72) in the global selector. ── */
@media (min-width: 768px) {
    .metro-testimonials .bde-advancedslide .bde-div {
        align-items: flex-end !important;
        padding-top: 83px !important;
        padding-bottom: 131px !important;
    }
    .metro-testimonials .bde-advancedslider .swiper-pagination {
        bottom: 83px !important;
        top: auto !important;
        margin: 0 !important;
        padding-left: 48px;
        line-height: 0;
    }
}
@media (min-width: 768px) and (max-width: 1023px) {
    .metro-testimonials .bde-advancedslider .swiper-pagination { padding-left: 16px; }
}

/* ═══════════════════════════════════════════════════════════════
   Profile page blocks (therapist single, Figma T7 22:8775 / 22:9362)
   Reusable: metro-collapse, metro-icon-links, metro-check-list,
   metro-credential-list, metro-photo-gallery, metro-map-split.
   ═══════════════════════════════════════════════════════════════ */

.metro-profile { background: #fff; padding: 112px 64px 0; }
.metro-profile-inner {
    max-width: 1152px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 645fr) minmax(0, 443fr);
    gap: 64px;
    align-items: start;
}
.metro-profile-no-media .metro-profile-inner { grid-template-columns: minmax(0, 645px); }
.metro-profile-main { display: flex; flex-direction: column; gap: 48px; min-width: 0; }

.metro-profile .metro-profile-title {
    margin: 0 0 24px;
    padding-bottom: 17px;
    border-bottom: 1px solid #e2e8f0;
    font-family: "Nunito Sans", sans-serif;
    font-size: 36px;
    font-weight: 600;
    line-height: 1.2;
    color: #1e293b;
    text-transform: capitalize;
}
.metro-profile .metro-profile-bio { font-size: 16px; line-height: 1.6; color: #64748b; }
.metro-profile .metro-profile-bio p { margin: 0 0 25.6px; font-size: inherit; line-height: inherit; color: inherit; }
.metro-profile .metro-profile-bio p:last-child { margin-bottom: 0; }

/* Collapsible block */
.metro-collapse { display: flex; flex-direction: column; }
.breakdance .metro-collapse .metro-collapse-head { margin: 0; }
.breakdance .metro-collapse .metro-collapse-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    width: 100%;
    margin: 0;
    padding: 0 0 17px;
    border: 0;
    border-bottom: 1px solid #e2e8f0;
    border-radius: 0;
    background: none;
    cursor: pointer;
    font-family: "Open Sans", sans-serif;
    font-size: 20px;
    font-weight: 600;
    line-height: 1.2;
    color: #1e293b;
    text-align: left;
    text-transform: capitalize;
}
.metro-collapse-toggle svg { width: 16px; height: 16px; flex-shrink: 0; transform: scaleY(-1); transition: transform 0.2s; }
.metro-collapse-toggle[aria-expanded="false"] svg { transform: none; }
.metro-collapse-body { padding-top: 24px; }
.metro-collapse-body[hidden] { display: none; }
.breakdance .metro-collapse-loose .metro-collapse-toggle { padding-bottom: 10px; border-bottom: 2px solid #f1f5f9; }
.metro-collapse-loose .metro-collapse-body { padding-top: 32px; display: flex; flex-direction: column; gap: 32px; }
.metro-collapse-loose .metro-collapse-body[hidden] { display: none; }

/* Links with an icon (services) */
.breakdance .metro-icon-links {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px 32px;
}
.breakdance .metro-icon-links li { margin: 0; }
.breakdance .metro-icon-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 16px;
    line-height: 1.6;
    font-weight: 400;
    color: #64748b;
    text-decoration: none;
}
.metro-icon-link-icon { display: inline-flex; width: 24px; height: 24px; flex-shrink: 0; color: #4F8F8B; }
.metro-icon-link-icon svg { width: 24px; height: 24px; }
.metro-icon-link > svg { width: 16px; height: 16px; margin-left: 4px; opacity: 0; transform: rotate(-90deg); transition: opacity 0.15s; }
.breakdance .metro-icon-link:hover,
.breakdance .metro-icon-link:focus-visible { color: #1e293b; }
.metro-icon-link:hover .metro-icon-link-text,
.metro-icon-link:focus-visible .metro-icon-link-text { text-decoration: underline; text-underline-offset: 3px; }
.metro-icon-link:hover > svg,
.metro-icon-link:focus-visible > svg { opacity: 1; }

/* Check list */
.breakdance .metro-check-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 16px; }
.breakdance .metro-check-list li { display: flex; align-items: flex-start; gap: 12px; margin: 0; font-size: 18px; line-height: 28px; color: #475569; }
.metro-check-list li > svg { width: 20px; height: 24px; flex-shrink: 0; margin-top: 2px; }

/* Credentials (education, certifications) */
.metro-credential-group { display: flex; flex-direction: column; gap: 16px; }
.breakdance .metro-credential-group .metro-credential-label {
    margin: 0;
    font-family: "Nunito Sans", sans-serif;
    font-size: 14px;
    font-weight: 700;
    line-height: 20px;
    letter-spacing: 0.7px;
    text-transform: uppercase;
    color: #94a3b8;
}
.breakdance .metro-credential-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 16px; }
.breakdance .metro-credential-list li { display: flex; align-items: flex-start; gap: 16px; margin: 0; }
.metro-credential-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    margin-top: 4px;
    flex-shrink: 0;
    border-radius: 12px;
    background: #f1f5f9;
}
.metro-credential-text { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.metro-credential-title { font-size: 18px; font-weight: 700; line-height: 1.2; color: #1e293b; text-transform: capitalize; }
.metro-credential-sub { font-size: 16px; line-height: 1.6; color: #64748b; }

/* Photo gallery */
.metro-photo-gallery { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.metro-photo-gallery-main { aspect-ratio: 1 / 1; border-radius: 16px; overflow: hidden; background: #f1f5f9; }
.metro-photo-gallery-main img { width: 100%; height: 100%; object-fit: cover; object-position: center top; display: block; }
.metro-photo-gallery-thumbs { display: flex; gap: 16px; overflow-x: auto; scrollbar-width: none; }
.metro-photo-gallery-thumbs::-webkit-scrollbar { display: none; }
.breakdance .metro-photo-gallery-thumb {
    flex: 0 0 75px;
    width: 75px;
    height: 75px;
    padding: 0;
    border: 0;
    border-radius: 8px;
    overflow: hidden;
    background: #f1f5f9;
    cursor: pointer;
    opacity: 0.3;
    transition: opacity 0.2s;
}
.breakdance .metro-photo-gallery-thumb.is-active,
.breakdance .metro-photo-gallery-thumb:hover { opacity: 1; }
.metro-photo-gallery-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Map + cards */
.metro-map-split-section { background: #fff; padding: 112px 0; }
.metro-map-split-inner { max-width: 1280px; margin: 0 auto; padding: 0 32px; display: flex; flex-direction: column; gap: 40px; }
.breakdance .metro-map-split-section .metro-map-split-title {
    margin: 0;
    text-align: center;
    font-family: "Nunito Sans", sans-serif;
    font-size: 36px;
    font-weight: 600;
    line-height: 1.2;
    color: #1e293b;
    text-transform: capitalize;
}
.metro-map-split { display: grid; grid-template-columns: minmax(0, 710fr) minmax(0, 474fr); gap: 32px; align-items: stretch; }
.metro-map-split-no-map { grid-template-columns: minmax(0, 474px); justify-content: center; }
.metro-map-split-map {
    position: relative;
    min-height: 492px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    overflow: hidden;
    background: #e5e3df;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}
.metro-map-canvas { position: absolute; inset: 0; z-index: 0; }
.metro-map-split-cards { display: flex; flex-direction: column; gap: 24px; max-height: 500px; overflow-y: auto; scrollbar-width: thin; }
.metro-map-split-cards .loc-card-wrap { flex-shrink: 0; }
.metro-map-pin { background: none !important; border: 0 !important; }
.metro-map-pin svg { display: block; transition: transform 0.15s; transform-origin: 50% 95%; }
.metro-map-pin.is-active svg { transform: scale(1.25); }
.metro-map-place {
    position: absolute;
    top: 8px;
    left: 8px;
    z-index: 500;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    max-width: calc(100% - 16px);
    padding: 12px 12px 16px 10px;
    border-radius: 2px;
    background: #fff;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.15);
}
.metro-map-place[hidden] { display: none; }
.metro-map-place-text { display: flex; flex-direction: column; min-width: 0; margin-right: 12px; }
.metro-map-place-name { font-size: 14px; font-weight: 700; line-height: 28px; color: #1e293b; margin-top: -6px; }
.metro-map-place-address { font-size: 14px; line-height: 20px; color: #8c8985; }
.breakdance .metro-map-place-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 33px;
    height: 33px;
    flex-shrink: 0;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: #f2f2f2;
    cursor: pointer;
}
.metro-map-place-btn svg { width: 18px; height: 18px; }
.metro-map-place-btn.is-done { background: #cdd9a3; }

@media (max-width: 1199px) {
    .metro-profile { padding-left: 32px; padding-right: 32px; }
}
@media (max-width: 1023px) {
    .metro-profile-inner { grid-template-columns: minmax(0, 1fr); gap: 48px; }
    .metro-profile-media { order: -1; max-width: 520px; }
    .metro-map-split { grid-template-columns: minmax(0, 1fr); gap: 24px; }
    .metro-map-split-map { min-height: 0; height: 460px; }
    .metro-map-split-cards { max-height: none; overflow: visible; }
}
@media (max-width: 767px) {
    .metro-profile { padding: 32px 16px 0; }
    .metro-profile-main { gap: 40px; }
    .metro-profile .metro-profile-title { font-size: 28px; }
    .metro-profile-media { max-width: none; }
    .metro-photo-gallery-thumbs { gap: 12px; margin-right: -16px; }
    .breakdance .metro-icon-links { grid-template-columns: minmax(0, 1fr); }
    .breakdance .metro-icon-link { color: #1e293b; }
    .metro-icon-link .metro-icon-link-text { text-decoration: underline; text-underline-offset: 3px; }
    .metro-icon-link > svg { opacity: 1; }
    .breakdance .metro-check-list li { font-size: 16px; line-height: 1.5; }
    .metro-credential-title { font-size: 16px; }
    .metro-credential-sub { font-size: 14px; line-height: 1.7; }
    .metro-map-split-section { padding: 64px 0; }
    .metro-map-split-inner { padding: 0 16px; gap: 24px; }
    .breakdance .metro-map-split-section .metro-map-split-title { font-size: 28px; }
    .metro-map-split-map { height: 460px; }
}

/* Therapist single template (1027): the hero locations list is indented
   36px under its label; keep it inside the column (it overflowed on phones). */
.breakdance .bde-shortcode-1027-326 { width: auto; max-width: calc(100% - 36px); }

/* Therapist single template (1027): on phones the photo moves into the
   profile gallery (Figma mobile 22:9362), and the name is 36px. */
@media (max-width: 767px) {
    .breakdance .bde-column-1027-122 { display: none; }
    .breakdance .bde-heading-1027-104 { font-size: 36px; line-height: 1.2; }
    .breakdance .bde-shortcode-1027-327,
    .breakdance .bde-shortcode-1027-327 .button-atom { width: 100%; justify-content: center; }
    .metro-profile-media + .metro-profile-main,
    .metro-profile-media { width: 100%; }
}
