/**
 * 병원(클리닉) 대시보드 · 안과·피부과·성형외과 목록
 * Bootstrap 미사용 · pub_routes.css · pub_tours.css 와 함께 사용
 */

.pub-clinic-page .pub-clinic-grid {
    margin-top: 8px;
}

/* nav 아래(본문 상단) 브레드크럼 */
.pub-clinic-breadcrumb {
    width: 100%;
    max-width: var(--content-max, 900px);
    margin: 0 auto 24px;
    padding: 12px 18px;
    box-sizing: border-box;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    box-shadow: 0 1px 4px rgba(15, 23, 42, 0.06);
}

.pub-clinic-breadcrumb-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    font-size: 0.88rem;
    color: #64748b;
}

.pub-clinic-breadcrumb-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.pub-clinic-breadcrumb-item:not(:last-child)::after {
    content: '›';
    color: #94a3b8;
    font-size: 0.9rem;
    line-height: 1;
    margin-left: 2px;
}

.pub-clinic-breadcrumb-item a {
    color: #475569;
    text-decoration: none;
    font-weight: 600;
}

.pub-clinic-breadcrumb-item a:hover {
    color: var(--primary, #1a56db);
    text-decoration: underline;
}

.pub-clinic-breadcrumb-item.is-current span {
    color: #0f172a;
    font-weight: 700;
}

.pub-clinic-page .pub-tours-main {
    padding-top: 64px;
}

.pub-clinic-page .pub-tours-section {
    padding-top: 28px;
}

.pub-clinic-page .pub-tours-section > .pub-clinic-breadcrumb {
    align-self: stretch;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 16px;
    background: none;
    border: none;
    box-shadow: none;
    border-radius: 0;
    padding: 0;
}

/* clinic_view.php — 히어로 상단 텍스트 브레드크럼 */
.pub-clinic-view-page.pub-clinic-page .pub-tours-main {
    padding-top: 64px;
}

.pub-clinic-view-page .pub-tours-hero {
    padding-top: 36px;
}

.pub-clinic-view-page .pub-tours-hero-top {
    text-align: left;
    margin-bottom: 6px;
}

.pub-clinic-view-page .pub-tours-hero .pub-clinic-breadcrumb--text {
    margin-bottom: 8px;
}

.pub-clinic-breadcrumb--text {
    background: none;
    border: none;
    box-shadow: none;
    border-radius: 0;
    padding: 0;
    margin: 0 0 14px;
    max-width: none;
}

.pub-tours-hero .pub-clinic-breadcrumb--text .pub-clinic-breadcrumb-list {
    color: rgba(255, 255, 255, 0.82);
    font-size: 0.84rem;
}

.pub-tours-hero .pub-clinic-breadcrumb--text .pub-clinic-breadcrumb-item a {
    color: rgba(255, 255, 255, 0.92);
    font-weight: 500;
    text-decoration: none;
}

.pub-tours-hero .pub-clinic-breadcrumb--text .pub-clinic-breadcrumb-item a:hover {
    color: #ffffff;
    text-decoration: underline;
}

.pub-tours-hero .pub-clinic-breadcrumb--text .pub-clinic-breadcrumb-item.is-current span {
    color: #ffffff;
    font-weight: 600;
}

.pub-tours-hero .pub-clinic-breadcrumb--text .pub-clinic-breadcrumb-item:not(:last-child)::after {
    color: rgba(255, 255, 255, 0.5);
}

.pub-clinic-card-thumb {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 168px;
}

.pub-clinic-card-icon {
    font-size: 3.2rem;
    line-height: 1;
}

.pub-tours-card-thumb--optical {
    background: linear-gradient(135deg, #e0f2fe 0%, #0284c7 55%, #0c4a6e 100%);
}

.pub-tours-card-thumb--dermatology {
    background: linear-gradient(135deg, #fdf4ff 0%, #e9d5ff 100%);
}

.pub-tours-card-thumb--dental {
    background: linear-gradient(135deg, #ecfdf5 0%, #a7f3d0 100%);
}

.pub-tours-card-thumb--plastic {
    background: linear-gradient(135deg, #fff7ed 0%, #fed7aa 100%);
}

.pub-clinic-card--inactive {
    cursor: default;
}

.pub-clinic-card--inactive:hover {
    transform: none;
    box-shadow: 0 2px 14px rgba(0, 0, 0, 0.07);
}

.pub-clinic-optical-back {
    margin: 0 0 20px;
}

.pub-clinic-optical-back a {
    color: var(--primary, #1a56db);
    text-decoration: none;
    font-weight: 600;
}

.pub-clinic-optical-back a:hover {
    text-decoration: underline;
}

.pub-clinic-optical-list {
    list-style: none;
    margin: 24px auto 0;
    padding: 0;
    max-width: 920px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.pub-clinic-optical-item {
    background: var(--white, #fff);
    border-radius: 14px;
    box-shadow: 0 2px 14px rgba(0, 0, 0, 0.07);
    padding: 20px 22px;
    border-left: 4px solid #0284c7;
}

.pub-clinic-optical-name {
    margin: 0 0 8px;
    font-size: 1.15rem;
    font-weight: 700;
    color: #0f172a;
}

.pub-clinic-optical-name a {
    color: inherit;
    text-decoration: none;
}

.pub-clinic-optical-name a:hover {
    color: var(--primary, #1a56db);
    text-decoration: underline;
}

.pub-clinic-optical-meta {
    margin: 0 0 10px;
    font-size: 0.92rem;
    color: #475569;
}

.pub-clinic-optical-meta span + span::before {
    content: ' · ';
}

.pub-clinic-optical-desc {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.55;
    color: #334155;
}

.pub-clinic-item--dermatology {
    border-left-color: #9333ea;
}

.pub-clinic-page--dermatology .section-label {
    color: #7e22ce;
}

.pub-clinic-page--optical .section-label {
    color: #0369a1;
}

.pub-clinic-page--optical .pub-clinic-excel-table tbody tr:hover {
    background: #f0f9ff;
}

.pub-clinic-page--optical .pub-clinic-excel-table a:hover {
    color: #0284c7;
}

.pub-clinic-item--plastic {
    border-left-color: #ea580c;
}

.pub-clinic-page--plastic .section-label {
    color: #c2410c;
}

.pub-clinic-page--dermatology .pub-clinic-excel-table tbody tr:hover {
    background: #faf5ff;
}

.pub-clinic-page--dermatology .pub-clinic-excel-table a:hover {
    color: #7e22ce;
}

.pub-clinic-page--plastic .pub-clinic-excel-table tbody tr:hover {
    background: #fff7ed;
}

.pub-clinic-excel-wrap--plain {
    border: 0;
    box-shadow: none;
}

.pub-clinic-excel-wrap--plain .pub-clinic-excel-table th,
.pub-clinic-excel-wrap--plain .pub-clinic-excel-table td {
    border: 0;
}

.pub-clinic-excel-wrap--plain .pub-clinic-excel-table thead th {
    border: 0;
    border-bottom: 0;
    background: transparent;
    padding-bottom: 10px;
}

.pub-clinic-excel-wrap--plain .pub-clinic-excel-table tbody tr:nth-child(even) {
    background: transparent;
}

.pub-clinic-optical-empty {
    text-align: center;
    color: #64748b;
    padding: 40px 16px;
}

/* 성형외과 — 회사명 엑셀형 테이블 */
.pub-clinic-excel-wrap {
    margin: 24px auto 0;
    max-width: 920px;
    overflow-x: auto;
    border: 1px solid #b4b4b4;
    background: #fff;
}

.pub-clinic-excel-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
    table-layout: fixed;
}

.pub-clinic-excel-table th,
.pub-clinic-excel-table td {
    border: 1px solid #d4d4d4;
    padding: 8px 12px;
    text-align: left;
    vertical-align: middle;
    line-height: 1.45;
}

.pub-clinic-excel-table thead th {
    background: #f2f2f2;
    font-weight: 700;
    color: #1e293b;
    border-bottom: 1px solid #a6a6a6;
}

.pub-clinic-excel-table tbody tr:nth-child(even) {
    background: #fafafa;
}

.pub-clinic-excel-table tbody tr:hover {
    background: #fff7ed;
}

.pub-clinic-excel-col-no {
    width: 64px;
    text-align: center !important;
    color: #64748b;
}

.pub-clinic-excel-col-name {
    word-break: break-word;
}

.pub-clinic-excel-table a {
    color: #1e293b;
    text-decoration: none;
    font-weight: 600;
}

.pub-clinic-excel-table a:hover {
    color: #c2410c;
    text-decoration: underline;
}

@media (max-width: 768px) {
    .pub-clinic-optical-item {
        padding: 16px 18px;
    }

    .pub-clinic-view-page .pub-tours-hero {
        padding-top: 28px;
    }
}