/**
 * Doctor profile — other branches section
 *
 * @package aldoctorz-theme
 */

.doctor-other-branches-wrap {
    padding: 0;
    margin-top: 1.25rem;
}

.doctor-other-branches {
    --dob-ink: #0a305e;
    --dob-ink-soft: #1e3a5f;
    --dob-muted: #64748b;
    --dob-accent: #34c3db;
    --dob-page-bg: #f1f5f9;
    --dob-panel-radius: 20px;
    --dob-card-radius: 16px;
    background: var(--dob-page-bg);
    border-radius: var(--dob-panel-radius);
}

.doctor-other-branches__panel {
    background: #fff;
    border-radius: 13px;
    margin-bottom: 1.25rem;
    border: 1px solid #e6ecf0;
    padding: 1.35rem 1.25rem 1.45rem;
    animation: doctorOtherBranchesIn 0.65s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@media (prefers-reduced-motion: reduce) {
    .doctor-other-branches__panel {
        animation: none;
    }
}

@keyframes doctorOtherBranchesIn {
    from {
        opacity: 0;
        transform: translateY(16px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.doctor-other-branches__header {
    margin-bottom: 1.1rem;
}

.doctor-other-branches__title {
    margin: 0 0 0.4rem;
    text-align: start;
}

[dir="rtl"] .doctor-other-branches__title {
    text-align: right;
}

.doctor-other-branches__title-inner {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    max-width: 100%;
}

.doctor-other-branches__title-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: #397296;
    font-size: 28px;
    font-weight: 400;
}

.doctor-other-branches__title-text {
    font-size: 1.15rem;
    font-weight: 800;
    color: #606267;
    letter-spacing: -0.02em;
    line-height: 1.35;
}

.doctor-other-branches__lead {
    margin: 0;
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--dob-muted);
    line-height: 1.5;
}

.doctor-other-branches__grid {
    display: grid;
    grid-template-columns: repeat(1, minmax(0, 1fr));
    gap: 0.75rem;
}

@media (min-width: 640px) {
    .doctor-other-branches__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 1100px) {
    .doctor-other-branches__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.doctor-other-branches__card {
    min-width: 0;
}

.doctor-other-branches__card-link {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.9rem 1rem;
    border: 1px solid #e6ecf0;
    border-radius: var(--dob-card-radius);
    background: linear-gradient(145deg, #fff 0%, #f8fafc 100%);
    text-decoration: none;
    color: inherit;
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
    height: 100%;
    position: relative;
    overflow: hidden;
}

@media (prefers-reduced-motion: no-preference) {

    .doctor-other-branches__card-link:hover,
    .doctor-other-branches__card-link:focus-visible {
        transform: translateY(-3px);
        border-color: rgba(52, 195, 219, 0.45);
        box-shadow: 0 2px 7px rgba(10, 48, 94, 0.1);
    }
}

.doctor-other-branches__card-link:focus-visible {
    outline: 2px solid var(--dob-accent);
    outline-offset: 2px;
}

.doctor-other-branches__card-body {
    flex: 1;
    min-width: 0;
    display: flex;
    gap: 10px;
    flex-direction: column;
}

.doctor-other-branches__card-top {
    display: flex;
    align-items: flex-start;
    gap: 0.45rem;
    flex-wrap: wrap;
}

.doctor-other-branches__meta--primary .doctor-other-branches__meta-value {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--dob-ink);
}

.doctor-other-branches__badge {
    display: inline-flex;
    align-items: center;
    padding: 0.15rem 0.5rem;
    border-radius: 999px;
    font-size: 0.68rem;
    font-weight: 700;
    color: var(--dob-ink);
    background: rgba(52, 195, 219, 0.15);
    border: 1px solid rgba(52, 195, 219, 0.35);
    white-space: nowrap;
}

.doctor-other-branches__meta {
    margin: 0;
    font-size: 0.78rem;
    text-align: start;
    line-height: 1.4;
    color: var(--dob-muted);
}

.doctor-other-branches__meta-label {
    font-weight: 600;
    color: var(--dob-ink-soft);
    margin-inline-end: 0.25rem;
}

.doctor-other-branches__meta-value {
    font-weight: 500;
}

.doctor-other-branches__rating {
    margin: 0.15rem 0 0;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--dob-ink-soft);
    display: flex;
    align-items: center;
    gap: 0.25rem;
    flex-wrap: wrap;
}

.doctor-other-branches__rating-stars {
    color: #f5b301;
}

.doctor-other-branches__rating-value {
    color: var(--dob-ink);
    font-weight: 700;
}

.doctor-other-branches__rating-reviews {
    color: var(--dob-muted);
    font-weight: 500;
}

.doctor-other-branches__cta {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--dob-accent);
    transition: color 0.2s ease, transform 0.2s ease;
    align-self: flex-end;
}

.doctor-other-branches__card-link:hover .doctor-other-branches__cta,
.doctor-other-branches__card-link:focus-visible .doctor-other-branches__cta {
    color: var(--dob-ink);
}

@media (max-width: 575px) {
    .doctor-other-branches__panel {
        padding: 1.1rem 0.9rem 1.2rem;
    }

    .doctor-other-branches__card-link {
        flex-direction: column;
        align-items: stretch;
    }

    .doctor-other-branches__cta {
        align-self: flex-start;
        margin-top: 0.35rem;
    }
}