.profile-breadcrumb { padding: 26px 0; font-size: 14px; }
.profile-breadcrumb a { text-decoration: none; }
.profile-breadcrumb a:hover { text-decoration: underline; }
.profile-hero { display: flex; align-items: center; gap: 32px; background: var(--paper); border: 1px solid var(--border); border-top: 4px solid var(--accent); border-radius: 6px; padding: 36px; }
.profile-logo { display: flex; flex: 0 0 160px; align-items: center; justify-content: center; }
.profile-logo img { max-width: 100%; object-fit: contain; }
.profile-heading { min-width: 0; }
.profile-heading h1 { margin: 0; font-size: clamp(28px, 3.2vw, 40px); line-height: 1.2; letter-spacing: -.8px; overflow-wrap: anywhere; }
.profile-slogan { margin: 12px 0 0; font-size: 18px; color: var(--muted); }
.profile-city { margin: 10px 0 0; color: var(--muted); font-size: 14px; }
.profile-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.profile-button { display: inline-flex; justify-content: center; align-items: center; min-height: 48px; padding: 10px 20px; border: 1px solid #b9c2d0; border-radius: 4px; text-decoration: none; font-size: 15px; font-weight: 600; }
.profile-button:hover { border-color: var(--accent); background: #fbf5f8; }
.profile-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 32px; padding: 32px 0 48px; align-items: start; }
.profile-main { min-width: 0; }
.profile-section { background: var(--paper); padding: 28px; border: 1px solid var(--border); border-radius: 6px; }
.profile-section + .profile-section { margin-top: 24px; }
.profile-section h2, .profile-contact h2 { font-size: 22px; letter-spacing: -.3px; margin: 0 0 20px; }
.profile-description { line-height: 1.8; overflow-wrap: anywhere; overflow-x: auto; }
.profile-description > :first-child { margin-top: 0; }
.profile-description > :last-child { margin-bottom: 0; }
.profile-description img, .profile-description iframe, .profile-description video { max-width: 100%; }
.profile-description img { height: auto; }
.profile-description a { color: var(--accent); }
.profile-muted { color: var(--muted); margin: 0 0 18px; }
.profile-section > .profile-muted:last-child { margin-bottom: 0; }
.profile-contact { padding: 28px; background: var(--paper); border: 1px solid var(--border); border-radius: 6px; }
.profile-contact dl { margin: 0; }
.profile-contact dl > div + div { margin-top: 22px; }
.profile-contact dt { color: var(--muted); font-size: 13px; margin-bottom: 5px; }
.profile-contact dd { margin: 0; font-size: 15px; overflow-wrap: anywhere; }
.profile-contact a { text-underline-offset: 4px; text-decoration-color: #bdc3cd; }
.profile-contact address { font-style: normal; line-height: 1.7; }
.additional-phone { display: block; padding: 4px 0; }
.profile-social { margin-top: 26px; padding-top: 22px; border-top: 1px solid var(--border); }
.profile-social h3 { margin: 0 0 10px; font-size: 16px; }
.profile-social a { display: block; padding: 8px 0; }
.profile-section-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.profile-section-heading h2 { margin: 0; }
.profile-section-heading > span, .profile-section-heading > a { font-size: 13px; color: var(--muted); }
.profile-gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.gallery-item { display: flex; flex-direction: column; border: 1px solid var(--border); border-radius: 4px; overflow: hidden; text-decoration: none; }
.gallery-item:hover { border-color: var(--accent); }
.gallery-item img { display: block; width: 100%; height: 220px; object-fit: contain; background: var(--background); }
.gallery-caption { padding: 12px; font-size: 14px; overflow-wrap: anywhere; }
.gallery-placeholder { display: grid; place-items: center; height: 180px; background: var(--background); color: var(--muted); }
#mapid { height: 340px; background: var(--background); border: 1px solid var(--border); z-index: 0; }
.map-help { font-size: 12px; color: var(--muted); margin: 12px 0 0; }
.profile-unavailable { margin-bottom: 48px; }
@media (max-width: 1000px) {
    .profile-layout { grid-template-columns: minmax(0, 1fr) 290px; gap: 20px; }
    .profile-contact, .profile-section { padding: 22px; }
}
@media (max-width: 760px) {
    .profile-hero { padding: 24px; gap: 22px; flex-direction: column; align-items: flex-start; }
    .profile-logo { flex-basis: auto; }
    .profile-logo img { width: 120px; height: 120px; }
    .profile-layout { display: flex; flex-direction: column; gap: 24px; padding-top: 24px; }
    .profile-contact { order: -1; width: 100%; }
    .profile-main { width: 100%; }
    .profile-actions .search-button { width: 100%; }
    .profile-actions .profile-button { flex: 1; }
    .profile-section-heading { flex-wrap: wrap; gap: 8px; }
}
@media (max-width: 440px) {
    .profile-gallery { grid-template-columns: 1fr; }
    .profile-section, .profile-contact { padding: 20px; }
    #mapid { height: 280px; }
}

/* Icons supplement the visible labels and follow the existing blue accent. */
.provider-profile .profile-icon { display: inline-block; width: 20px; height: 20px; flex: 0 0 20px; vertical-align: middle; }
.profile-section h2, .profile-contact h2, .profile-social h3,
.profile-contact dt { display: flex; align-items: center; gap: 10px; }
.profile-section h2 .profile-icon, .profile-contact h2 .profile-icon,
.profile-social h3 .profile-icon, .profile-contact dt .profile-icon,
.profile-city .profile-icon { color: var(--accent); }
.profile-contact dt .profile-icon { width: 18px; height: 18px; flex-basis: 18px; }
.profile-contact dd { padding-left: 28px; }
.profile-button { gap: 9px; }
.profile-city .profile-icon { margin-right: 6px; }
