/* Doctor.bd hospital profile using the same two-column visual system as doctor profiles. */
.hospital-profile-page {
    --hospital-profile-bg: #f4f2ee;
    --hospital-profile-card-border: #dfdedb;
    --hospital-profile-muted: #666666;
    --hospital-profile-heading: #1f1f1f;
    background: var(--hospital-profile-bg) !important;
    min-height: 100vh;
}

.hospital-profile-page,
.hospital-profile-page .btn,
.hospital-profile-page .badge,
.hospital-profile-page .nav-link,
.hospital-profile-page strong,
.hospital-profile-page h1,
.hospital-profile-page h2,
.hospital-profile-page h3,
.hospital-profile-page h4,
.hospital-profile-page h5,
.hospital-profile-page h6 {
    font-weight: 500;
}

.hospital-profile-shell {
    max-width: 1128px !important;
}

.hospital-profile-page .min-w-0 {
    min-width: 0;
}

.hospital-profile-card,
.hospital-profile-page article.hospital-profile-card,
.hospital-profile-page section.hospital-profile-card {
    border: 1px solid var(--hospital-profile-card-border) !important;
    border-radius: 10px !important;
    box-shadow: none !important;
    background: #ffffff;
}

.hospital-profile-breadcrumb .breadcrumb {
    margin-bottom: 0;
    font-size: .82rem;
}

.hospital-profile-breadcrumb .breadcrumb-item,
.hospital-profile-breadcrumb .breadcrumb-item a {
    color: #666666;
}

.hospital-profile-breadcrumb .breadcrumb-item.active {
    color: #333333;
}

/* Hero */
.hospital-profile-hero {
    overflow: hidden;
    scroll-margin-top: 92px;
}

.hospital-profile-page .hospital-profile-cover {
    position: relative;
    height: 150px !important;
    min-height: 0 !important;
    overflow: hidden;
    background: #dce6ed !important;
}

.hospital-profile-page .hospital-profile-cover::after {
    display: none !important;
}

.hospital-profile-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hospital-profile-cover-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--bs-primary);
    background: linear-gradient(135deg, #dcebf7, #eef5f9);
}

.hospital-profile-hero-body {
    padding: 0 24px 20px;
}

.hospital-profile-logo-wrap {
    width: auto;
    height: auto;
    display: inline-block;
    position: relative;
    z-index: 2;
    margin-top: -64px;
}

.hospital-profile-page .hospital-profile-logo,
.hospital-profile-page .hospital-profile-logo-placeholder {
    width: 124px !important;
    height: 124px !important;
    border: 4px solid #ffffff !important;
    border-radius: 8px !important;
    background: #ffffff;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, .08) !important;
}

.hospital-profile-logo {
    padding: 5px;
    object-fit: contain;
}

.hospital-profile-logo-placeholder {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--bs-primary);
    background: var(--bs-primary-bg-subtle) !important;
    font-size: 42px;
}

.hospital-profile-verified-badge {
    position: absolute;
    right: -4px;
    bottom: -4px;
    width: 30px;
    height: 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 3px solid #ffffff;
    border-radius: 50%;
    color: #ffffff;
    background: var(--bs-primary);
    font-size: 14px;
}

.hospital-profile-page .hospital-profile-title {
    color: var(--hospital-profile-heading);
    font-size: clamp(1.55rem, 2.4vw, 2rem) !important;
    line-height: 1.2;
    letter-spacing: normal !important;
}

.hospital-profile-tagline {
    color: #333333;
    font-size: 1rem;
}

.hospital-profile-meta {
    color: var(--hospital-profile-muted) !important;
    font-size: .875rem;
    line-height: 1.55;
}

.hospital-profile-short-description {
    max-width: 720px;
}

.hospital-profile-action {
    min-height: 38px;
    padding-right: 18px;
    padding-left: 18px;
    border-radius: 999px;
}

.hospital-profile-follow-action.is-following {
    color: var(--bs-primary);
    background: var(--bs-primary-bg-subtle);
}

/* Profile tabs */
.hospital-profile-page .hospital-profile-tabs {
    position: relative !important;
    top: auto !important;
    z-index: auto !important;
    padding: 0 10px;
    border-top: 1px solid var(--hospital-profile-card-border) !important;
    background: #ffffff !important;
    backdrop-filter: none !important;
}

.hospital-profile-tabs .nav {
    gap: 0;
    min-height: 0;
    padding: 0;
    scrollbar-width: none;
}

.hospital-profile-tabs .nav::-webkit-scrollbar {
    display: none;
}

.hospital-profile-page .hospital-profile-tabs .nav-link {
    min-height: 0;
    padding: 15px 15px 13px;
    color: #666666 !important;
    border: 0;
    border-bottom: 2px solid transparent;
    border-radius: 0;
    background: transparent;
    font-size: inherit;
    white-space: nowrap;
}

.hospital-profile-page .hospital-profile-tabs .nav-link:hover,
.hospital-profile-page .hospital-profile-tabs .nav-link:focus,
.hospital-profile-page .hospital-profile-tabs .nav-link.active {
    color: var(--bs-primary) !important;
    border-bottom-color: var(--bs-primary);
    background: transparent;
}

/* Content sections */
.hospital-profile-section {
    margin-bottom: 1rem;
    scroll-margin-top: 92px;
}

.hospital-profile-page .hospital-profile-section .card-body {
    padding: 24px !important;
}

.hospital-profile-section-title {
    color: var(--hospital-profile-heading);
    font-size: 1.18rem;
    line-height: 1.4;
    letter-spacing: normal;
}

.hospital-profile-section-copy {
    color: #454545;
    font-size: .92rem;
    line-height: 1.8;
}

.hospital-profile-overview-illustration {
    width: 100%;
    max-width: 190px;
    max-height: 126px;
    object-fit: contain;
}

.hospital-profile-overview-toggle {
    color: var(--bs-primary);
    font-size: .85rem;
    text-decoration: none;
}

.hospital-profile-facts-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    overflow: hidden;
    border: 1px solid #e6e6e6;
    border-radius: 8px;
    background: #ffffff;
}

.hospital-profile-fact-item {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 14px;
    border-right: 1px solid #ececec;
    border-bottom: 1px solid #ececec;
}

.hospital-profile-fact-item:nth-child(2n) {
    border-right: 0;
}

.hospital-profile-fact-item:nth-last-child(-n+2) {
    border-bottom: 0;
}

.hospital-profile-fact-icon,
.hospital-profile-icon-box {
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    color: var(--bs-primary);
    background: var(--bs-primary-bg-subtle);
}

.hospital-profile-fact-item small,
.hospital-profile-fact-item strong {
    display: block;
    min-width: 0;
}

.hospital-profile-fact-item small {
    margin-bottom: 2px;
    color: #666666;
    font-size: .72rem;
}

.hospital-profile-fact-item strong {
    overflow: hidden;
    color: #222222;
    font-size: .84rem;
    line-height: 1.35;
    text-overflow: ellipsis;
}

.hospital-profile-count-badge {
    min-width: 26px;
    height: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 8px;
    border-radius: 999px;
    color: #666666;
    background: #f1f1f1;
    font-size: .72rem;
}

.hospital-profile-list-card {
    min-height: 84px;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    background: #ffffff;
}

.hospital-profile-list-card:hover {
    border-color: #c7d3df;
    background: #fafafa;
}

.hospital-profile-service-icon {
    color: var(--bs-success);
    background: var(--bs-success-bg-subtle);
}

.hospital-profile-item-title {
    color: #222222;
    font-size: .9rem;
    line-height: 1.35;
}

.hospital-profile-item-meta {
    color: #666666;
    font-size: .74rem;
}

/* Hospital doctor cards */
.hospital-profile-page #doctors .vstack > article {
    border: 1px solid var(--hospital-profile-card-border) !important;
    border-radius: 8px !important;
    box-shadow: none !important;
    background: #ffffff !important;
}

.hospital-profile-page #doctors .vstack > article:hover {
    border-color: #bccad7 !important;
}

/* Sidebar */
.hospital-profile-sidebar-stack {
    top: auto;
    margin-top: 0;
    align-self: flex-start;
}

.hospital-profile-page .hospital-profile-sidebar-card .card-body {
    padding: 20px !important;
}

.hospital-profile-sidebar-title {
    margin-bottom: 16px;
    color: var(--hospital-profile-heading);
    font-size: 1.18rem;
}

.hospital-profile-detail-row {
    padding: 10px 0;
    border-bottom: 1px solid #ececec;
}

.hospital-profile-detail-row:last-of-type {
    border-bottom: 0;
}

.hospital-profile-contact-list {
    margin-bottom: -4px;
}

.hospital-profile-contact-row {
    padding: 11px 0;
    color: #222222;
    border-bottom: 1px solid #ececec;
    text-decoration: none;
}

.hospital-profile-contact-row:last-child {
    border-bottom: 0;
}

.hospital-profile-contact-row:hover {
    color: var(--bs-primary);
}

.hospital-profile-contact-icon {
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    color: var(--bs-primary);
    background: var(--bs-primary-bg-subtle);
}

.hospital-profile-contact-row small,
.hospital-profile-contact-row strong {
    display: block;
}

.hospital-profile-contact-row small {
    margin-bottom: 2px;
    color: #666666;
    font-size: .72rem;
}

.hospital-profile-contact-row strong {
    color: #222222;
    font-size: .82rem;
    line-height: 1.45;
}

.hospital-profile-contact-danger .hospital-profile-contact-icon {
    color: var(--bs-danger);
    background: var(--bs-danger-bg-subtle);
}

.hospital-profile-contact-danger strong {
    color: var(--bs-danger);
}

.hospital-profile-contact-whatsapp .hospital-profile-contact-icon {
    color: var(--bs-success);
    background: var(--bs-success-bg-subtle);
}

/* Related hospitals */
.hospital-related-list {
    padding: 0;
}

.hospital-related-item {
    padding: 16px;
    border-bottom: 1px solid var(--hospital-profile-card-border);
}

.hospital-related-item:last-child {
    border-bottom: 0;
}

.hospital-related-logo,
.hospital-related-placeholder {
    width: 52px;
    height: 52px;
    flex: 0 0 52px;
    border: 1px solid #e3e3e3;
    border-radius: 6px;
    background: #ffffff;
}

.hospital-related-logo {
    padding: 3px;
    object-fit: contain;
}

.hospital-related-placeholder {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--bs-primary);
    background: var(--bs-primary-bg-subtle);
}

.hospital-related-name {
    color: #222222;
    font-size: .92rem;
    line-height: 1.3;
}

.hospital-related-meta {
    color: #666666;
    font-size: .76rem;
    line-height: 1.45;
}

.hospital-related-view-button {
    min-height: 30px;
    padding: 4px 9px;
    border-radius: 999px;
    font-size: .7rem;
}

.hospital-profile-card-footer-link {
    display: block;
    padding: 14px 24px;
    color: #666666;
    border-top: 1px solid var(--hospital-profile-card-border);
    border-radius: 0 0 10px 10px;
    background: #ffffff;
    text-align: center;
    text-decoration: none;
}

.hospital-profile-card-footer-link:hover {
    color: var(--bs-primary);
    background: #f8f9fa;
}

@media (max-width: 991.98px) {
    .hospital-profile-page .hospital-profile-cover {
        height: 135px !important;
    }

    .hospital-profile-logo-wrap {
        margin-top: -54px;
    }

    .hospital-profile-page .hospital-profile-logo,
    .hospital-profile-page .hospital-profile-logo-placeholder {
        width: 108px !important;
        height: 108px !important;
    }

    .hospital-profile-sidebar-stack {
        position: static !important;
        margin-top: 0;
    }
}

@media (max-width: 767.98px) {
    .hospital-profile-facts-grid {
        grid-template-columns: 1fr;
    }

    .hospital-profile-fact-item,
    .hospital-profile-fact-item:nth-child(2n),
    .hospital-profile-fact-item:nth-last-child(-n+2) {
        border-right: 0;
        border-bottom: 1px solid #ececec;
    }

    .hospital-profile-fact-item:last-child {
        border-bottom: 0;
    }
}

@media (max-width: 575.98px) {
    .hospital-profile-page {
        background: #ffffff !important;
    }

    .hospital-profile-shell {
        padding-right: 0;
        padding-left: 0;
    }

    .hospital-profile-breadcrumb {
        padding-right: 12px;
        padding-left: 12px;
    }

    .hospital-profile-card,
    .hospital-profile-page article.hospital-profile-card,
    .hospital-profile-page section.hospital-profile-card {
        border-right: 0 !important;
        border-left: 0 !important;
        border-radius: 0 !important;
    }

    .hospital-profile-page .hospital-profile-cover {
        height: 115px !important;
    }

    .hospital-profile-hero-body {
        padding: 0 16px 18px;
    }

    .hospital-profile-logo-wrap {
        margin-top: -46px;
    }

    .hospital-profile-page .hospital-profile-logo,
    .hospital-profile-page .hospital-profile-logo-placeholder {
        width: 92px !important;
        height: 92px !important;
    }

    .hospital-profile-page .hospital-profile-title {
        font-size: 1.45rem !important;
    }

    .hospital-profile-page .hospital-profile-tabs {
        padding: 0;
    }

    .hospital-profile-page .hospital-profile-tabs .nav-link {
        padding-right: 14px;
        padding-left: 14px;
    }

    .hospital-profile-page .hospital-profile-section .card-body,
    .hospital-profile-page .hospital-profile-sidebar-card .card-body {
        padding: 18px 16px !important;
    }
}
