/* Clinic Info Section Styles */

/* ========== 기본 레이아웃 ========== */
.clinic-info-container {
    display: flex;
    gap: 60px;
    margin: 60px 0 20px 0;
    padding: 0 20px;
    text-align: left;
    align-items: center;
}

.clinic-info-table-wrapper {
    flex: 1;
    min-width: 450px;
}

.clinic-info-map-wrapper {
    flex: 1.2;
    min-width: 450px;
}

/* ========== 메인 테이블 ========== */
.clinic-info-table {
    width: 100%;
    border-collapse: collapse;
    line-height: 1.7;
}

.clinic-info-table>tbody>tr {
    vertical-align: top;
}

.clinic-info-table>tbody>tr.valign-middle {
    vertical-align: middle;
}

/* ========== 테이블 셀 ========== */
.info-title {
    padding: 20px 30px 20px 0;
    font-size: 1.1em;
    font-weight: 600;
    color: var(--text-primary);
    text-align: left;
    min-width: 110px;
    width: 110px;
    transition: color 0.3s;
}

.info-content {
    padding: 20px 0;
    color: var(--text-primary);
    text-align: left;
    transition: color 0.3s;
}

/* ========== 링크 스타일 ========== */
.info-link {
    text-decoration: none;
    color: inherit;
}

.info-link p {
    margin: 0 0 8px 0;
}

.info-link .sub-text {
    font-size: 0.9em;
    color: var(--text-secondary);
    margin: 0;
}

.phone-link {
    text-decoration: none;
    color: var(--text-primary);
}

.phone-link p {
    margin: 0;
    font-size: 1.3em;
    letter-spacing: 1px;
}

/* ========== 진료시간 테이블 ========== */
.schedule-table {
    width: 100%;
    border-collapse: collapse;
    color: var(--text-primary);
    transition: color 0.3s;
}

.schedule-table tr {
    vertical-align: top;
}

.schedule-table .day-cell {
    padding: 3px 0;
    width: 90px;
    text-align: left;
    vertical-align: top;
}

.schedule-table .time-cell {
    padding: 3px 0;
    text-align: left;
    vertical-align: top;
}

.schedule-table .time-note {
    font-size: 0.95em;
}

.schedule-note {
    font-size: 0.9em;
    color: var(--text-secondary);
    margin: 10px 0 0 0;
    text-align: left;
}

/* ========== 지도 컨테이너 ========== */
.map-container {
    width: 100%;
    border: 1px solid var(--border-medium);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow-map);
    transition: border-color 0.3s;
}

/* ========== 다크모드: 카카오맵 하단 정보 영역 ========== */
[data-theme="dark"] .root_daum_roughmap .cont {
    background-color: var(--bg-secondary) !important;
}

[data-theme="dark"] .root_daum_roughmap .cont .address,
[data-theme="dark"] .root_daum_roughmap .cont .address *,
[data-theme="dark"] .root_daum_roughmap .cont .phone,
[data-theme="dark"] .root_daum_roughmap .cont .phone * {
    color: var(--text-primary) !important;
}

/* ========== 반응형: 태블릿/모바일 ========== */
@media (max-width: 968px) {
    .clinic-info-container {
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 40px;
        padding: 0 15px;
    }

    .clinic-info-table-wrapper,
    .clinic-info-map-wrapper {
        min-width: 0;
        width: 100%;
        max-width: 550px;
        margin: 0 auto;
        box-sizing: border-box;
        display: flex;
        justify-content: center;
    }

    .clinic-info-table {
        margin: 0 auto;
    }

    .root_daum_roughmap,
    .root_daum_roughmap .roughmap_canvas {
        width: 100% !important;
        min-width: 0 !important;
    }

    .info-title {
        width: 110px;
        min-width: 110px;
        padding-right: 15px;
        font-size: 0.95em;
        white-space: nowrap;
    }

    .schedule-table .day-cell {
        width: 70px;
        padding-right: 5px;
    }
}

/* ========== 반응형: 초소형 모바일 (아이폰 SE 등) ========== */
@media (max-width: 380px) {
    .phone-link p {
        font-size: 1.1em;
    }

    .clinic-info-table td {
        font-size: 0.95em;
    }

    .info-title {
        width: 90px;
        min-width: 90px;
        padding-right: 12px;
    }

    .map-container iframe,
    .map-container>div {
        height: 320px;
    }
}
