/* Karta rejestracji należy do profilu, a nie do treści biogramu. */
.doctor-profile--with-booking .doctor-profile-sidebar {
    position: relative;
    z-index: 1;
    display: grid;
    gap: 56px;
    min-width: 0;
}
.doctor-profile--with-booking .doctor-profile-info { min-width: 0; }
.doctor-profile--with-booking .doctor-profile-heading h1 { overflow-wrap: anywhere; }
.doctor-booking-card {
    padding: 24px;
    border: 0;
    border-radius: 16px;
    box-shadow: none;
    background: rgba(197, 168, 128, .20);
    color: var(--text-dark);
}
.doctor-booking-label {
    display: flex;
    align-items: center;
    margin-bottom: 14px;
    color: var(--primary-teal);
}
.doctor-booking-label svg { width: 19px; height: 22px; flex-shrink: 0; }
.doctor-booking-card p { font-size: 15px; line-height: 1.75; margin: 0; }
.doctor-booking-card strong { font-weight: 600; }
.doctor-booking-card .doctor-booking-address { margin-top: 6px; color: var(--text-muted); }
.doctor-booking-card .btn-registration {
    display: block;
    width: 100%;
    margin-top: 20px;
    padding: 14px 18px;
    text-align: center;
}
.doctor-profile--with-booking .doctor-profile-bio { overflow-wrap: break-word; }
@media (max-width: 991px) {
    .doctor-profile--with-booking {
        grid-template-columns: minmax(0, 1fr);
        gap: 24px;
    }
    .doctor-profile--with-booking .doctor-profile-sidebar,
    .doctor-profile--with-booking .doctor-profile-info { display: contents; }
    .doctor-profile--with-booking .doctor-profile-photo { order: 1; width: 100%; max-width: 420px; justify-self: center; }
    .doctor-profile--with-booking .doctor-profile-heading { order: 2; }
    .doctor-profile--with-booking .doctor-booking-card { order: 3; position: relative; z-index: 1; margin-top: 12px; }
    .doctor-profile--with-booking .doctor-profile-bio { order: 4; max-width: none; margin-bottom: 0; }
    .doctor-profile--with-booking .doctor-profile-badges { margin-bottom: 0; }
    .doctor-profile--with-booking .doctor-profile-heading h1 { font-size: clamp(30px, 6vw, 42px) !important; line-height: 1.15; }
    .doctor-profile--with-booking::before { display: none; }
}
@media (max-width: 575px) {
    .doctor-booking-card { padding: 20px; border-radius: 16px; }
}

/* Dane placówki są oddzielone od opisu specjalizacji z bazy. */
.spec-detail-divider { margin-bottom: 40px; }
.spec-location {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px 16px;
    max-width: 640px;
    padding: 18px 20px;
    margin: 0 0 36px;
    background: rgba(197, 168, 128, .20);
    border: 0;
    box-shadow: none;
    border-radius: 16px;
}
.spec-location-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    flex-shrink: 0;
    color: var(--primary-teal);
}
.spec-location-icon svg { width: 19px; height: 23px; }
.spec-location-text { flex: 1 1 200px; min-width: 0; line-height: 1.65; }
.spec-location-text strong { display: block; font-size: 14px; font-weight: 600; color: var(--text-dark); }
.spec-location-text span { display: block; font-size: 13px; color: var(--text-muted); }
.spec-location-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 44px;
    justify-content: center;
    padding: 12px 16px;
    border: 0;
    border-radius: 8px;
    background: rgba(11, 79, 67, .08);
    color: var(--primary-teal);
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: background-color .2s ease;
}
.spec-location-link svg { width: 18px; height: 18px; flex-shrink: 0; }
.spec-location-link:hover { background: rgba(11, 79, 67, .15); }
.spec-location-link:focus-visible,
.doctor-booking-card .btn-registration:focus-visible { outline: 2px solid var(--primary-teal); outline-offset: 4px; }
@media (max-width: 575px) {
    .spec-location { display: grid; grid-template-columns: 38px minmax(0, 1fr); gap: 4px 12px; padding: 16px; }
    .spec-location-icon { align-self: start; margin-top: 3px; }
    .spec-location-link { grid-column: 1 / -1; margin-top: 12px; }
}
