/* ══════════════════════════════════════
   공통 UI 컴포넌트
══════════════════════════════════════ */

/* ── CTA 상담/예약 배너 ───────────────────── */
.cta-consultation {
	padding: 0 20px;
	margin: 48px auto;
	max-width: 1180px;
}

.cta-consultation__body {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	background: #faf0ed;
	border-radius: 16px;
	padding: 28px 40px;
}

/* 왼쪽: 아이콘 + 텍스트 */
.cta-consultation__info {
	display: flex;
	align-items: center;
	gap: 20px;
}

.cta-consultation__icon {
	flex-shrink: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 56px;
	height: 56px;
}

.cta-consultation__icon svg {
	width: 100%;
	height: 100%;
}

.cta-consultation__text strong {
	display: block;
	font-size: 16px;
	font-weight: 700;
	color: var(--hyoo-text);
	letter-spacing: -0.4px;
	margin-bottom: 4px;
	word-break: keep-all;
}

.cta-consultation__text p {
	margin: 0;
	font-size: 14px;
	color: var(--hyoo-text-muted);
	letter-spacing: -0.3px;
	word-break: keep-all;
}

/* 오른쪽: 버튼 */
.cta-consultation__btn {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	flex-shrink: 0;
	background: var(--hyoo-accent-light);
	color: #fff;
	font-size: 15px;
	font-weight: 600;
	letter-spacing: -0.4px;
	text-decoration: none;
	padding: 14px 28px;
	border-radius: 50px;
	transition: background 0.2s, transform 0.15s;
	white-space: nowrap;
}

.cta-consultation__btn svg {
	width: 18px;
	height: 18px;
	transition: transform 0.15s;
}

.cta-consultation__btn:hover {
	background: #9e6e68;
}

.cta-consultation__btn:hover svg {
	transform: translateX(3px);
}

/* ── 반응형 ───────────────────────────────── */
@media (max-width: 768px) {
	.cta-consultation__body {
		flex-direction: column;
		align-items: stretch;
		padding: 24px 20px;
		gap: 20px;
	}

	.cta-consultation__btn {
		display: flex;
		width: 100%;
		box-sizing: border-box;
		justify-content: center;
		white-space: normal;
		text-align: center;
		padding: 14px 16px;
	}
}

@media (max-width: 480px) {
	.cta-consultation__icon {
		width: 44px;
		height: 44px;
	}

	.cta-consultation__text strong {
		font-size: 15px;
	}

	.cta-consultation__text p {
		font-size: 13px;
	}
}

@media (max-width: 360px) {
	.cta-consultation {
		margin: 36px auto;
	}

	.cta-consultation__body {
		padding: 20px 16px;
		gap: 16px;
	}
}


/* ── 병원 정보 바 ─────────────────────────── */
.info-bar {
	background: #fff;
	padding: 40px 20px;
	margin: 0;
}

.info-bar__inner {
	display: flex;
	align-items: flex-start;
	gap: 0;
	max-width: 1180px;
	margin: 0 auto;
}

/* 슬로건 */
.info-bar__slogan {
	flex: 0 0 auto;
	display: flex;
	align-items: center;
	padding-right: 40px;
}

.info-bar__slogan p {
	margin: 0;
	font-size: 20px;
	font-weight: 700;
	color: var(--hyoo-text);
	line-height: 1.55;
	letter-spacing: -0.6px;
	white-space: nowrap;
	word-break: keep-all;
}

/* 구분선 (대각선) */
.info-bar__divider {
	flex-shrink: 0;
	position: relative;
	width: 24px;
	align-self: stretch;
	margin: 0 32px;
	overflow: visible;
}

.info-bar__divider::after {
	content: '';
	position: absolute;
	top: 0;
	bottom: 0;
	left: 50%;
	width: 1.5px;
	background: #d8c8c0;
	transform: skewX(-18deg);
	transform-origin: center;
}

/* 각 항목 */
.info-bar__item {
	flex: 1;
	display: flex;
	gap: 14px;
	align-items: flex-start;
	padding: 0 20px 0 0;
	min-width: 0;
}

.info-bar__item + .info-bar__item {
	padding-left: 20px;
}

/* 아이콘 */
.info-bar__icon {
	flex-shrink: 0;
	display: block;
	width: 48px;
	height: 48px;
}

.info-bar__icon svg {
	width: 100%;
	height: 100%;
}

/* 콘텐츠 */
.info-bar__content {
	flex: 1;
	min-width: 0;
}

.info-bar__title {
	display: block;
	font-size: 15px;
	font-weight: 700;
	color: var(--hyoo-text);
	letter-spacing: -0.4px;
	margin-bottom: 6px;
}

.info-bar__phone {
	display: block;
	font-size: 18px;
	font-weight: 700;
	color: var(--hyoo-accent-light);
	letter-spacing: -0.3px;
	text-decoration: none;
	margin-bottom: 6px;
	transition: color 0.2s;
}

.info-bar__phone:hover {
	color: #9e6e68;
}

.info-bar__desc {
	margin: 0 0 10px;
	font-size: 13px;
	color: var(--hyoo-text-muted);
	line-height: 1.7;
	letter-spacing: -0.3px;
	word-break: keep-all;
}

.info-bar__closed {
	color: var(--hyoo-accent-light);
	font-weight: 600;
}

/* 아웃라인 버튼 */
.info-bar__link {
	display: inline-flex;
	align-items: center;
	gap: 2px;
	font-size: 13px;
	color: #3d2e2a;
	text-decoration: none;
	border: 1px solid #c8b0a8;
	border-radius: 50px;
	padding: 6px 14px 6px 16px;
	transition: border-color 0.2s, color 0.2s, background 0.2s;
	white-space: nowrap;
}

.info-bar__link svg {
	width: 14px;
	height: 14px;
	transition: transform 0.15s;
}

.info-bar__link:hover {
	border-color: var(--hyoo-accent-light);
	color: var(--hyoo-accent-light);
	background: #fff;
}

.info-bar__link:hover svg {
	transform: translateX(2px);
}

/* ── 반응형 ───────────────────────────────── */
@media (max-width: 1024px) {
	/* 슬로건·구분선 숨김 → 아이템 4개에 공간 확보 */
	.info-bar__slogan,
	.info-bar__divider {
		display: none;
	}

	.info-bar__item {
		padding-right: 24px;
		gap: 12px;
	}

	.info-bar__item + .info-bar__item {
		padding-left: 24px;
		border-left: 1px solid var(--hyoo-border);
	}

	.info-bar__icon {
		width: 40px;
		height: 40px;
	}
}

@media (max-width: 860px) {
	/* 아이템 4개 → 2×2 그리드 전환 */
	.info-bar__inner {
		display: grid;
		grid-template-columns: 1fr 1fr;
		gap: 28px 0;
	}

	/* display:none 된 slogan·divider는 그리드에서 제외됨 */
	.info-bar__item {
		padding: 0 24px 0 0;
		border-left: none;
	}

	/*
	 * DOM상 slogan=1번째, divider=2번째 자식이므로
	 * item 1=3번째(홀수), item 2=4번째(짝수), item 3=5번째(홀수), item 4=6번째(짝수)
	 * 짝수 = 오른쪽 열 → 좌측 구분선
	 */
	.info-bar__item:nth-child(even) {
		border-left: 1px solid var(--hyoo-border);
		padding: 0 0 0 24px;
	}
}

@media (max-width: 768px) {
	/* 그리드 해제 → 단일 세로 스택 */
	.info-bar__inner {
		display: flex;
		flex-direction: column;
		gap: 0;
	}

	.info-bar__slogan {
		display: block;
		padding: 0 0 24px;
	}

	.info-bar__slogan p {
		font-size: 18px;
		white-space: normal;
	}

	.info-bar__divider {
		display: none;
	}

	.info-bar__item,
	.info-bar__item:nth-child(even) {
		padding: 24px 0 0;
		border-left: none;
		width: 100%;
	}

	/* 첫 번째 아이템(slogan·divider 다음 = 3번째 자식): 슬로건 하단 padding이 간격 역할 */
	.info-bar__item:nth-child(3) {
		padding-top: 0;
	}
}

@media (max-width: 480px) {
	.info-bar {
		padding: 32px 20px;
	}

	.info-bar__phone {
		font-size: 16px;
	}

	.info-bar__link {
		width: 100%;
		justify-content: center;
		box-sizing: border-box;
	}
}

@media (max-width: 360px) {
	.info-bar {
		padding: 28px 16px;
	}
}


/* ── 전국지점 목록 ───────────────────────── */
.branch-list {
	padding: 60px 20px;
	background: var(--hyoo-bg-soft);
}

.branch-list__inner {
	max-width: 1180px;
	margin: 0 auto;
}

.branch-list__header {
	margin-bottom: 36px;
}

.branch-list__header h2 {
	font-size: 26px;
	font-weight: 700;
	color: var(--hyoo-text);
	letter-spacing: -0.6px;
	margin: 0 0 8px;
	word-break: keep-all;
}

.branch-list__header p {
	font-size: 15px;
	color: var(--hyoo-text-muted);
	margin: 0;
	word-break: keep-all;
}

/* 그리드 */
.branch-list__grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 20px;
	list-style: none;
	padding: 0;
	margin: 0;
}

/* 카드 */
.branch-card {
	position: relative;
	background: #fff;
	border: 1px solid var(--hyoo-border);
	border-radius: 12px;
	padding: 24px;
	display: flex;
	flex-direction: column;
	gap: 6px;
	transition: box-shadow 0.2s;
}

.branch-card:hover {
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}


.branch-card__name {
	font-size: 16px;
	font-weight: 700;
	color: var(--hyoo-text);
	letter-spacing: -0.4px;
}

.branch-card__city {
	font-size: 12px;
	color: var(--hyoo-accent-light);
	font-weight: 600;
	letter-spacing: -0.2px;
}

.branch-card__address {
	font-style: normal;
	margin-top: 8px;
	display: flex;
	flex-direction: column;
	gap: 4px;
	flex: 1;
}

.branch-card__address p {
	margin: 0;
	font-size: 13px;
	color: var(--hyoo-text-muted);
	line-height: 1.5;
	word-break: keep-all;
}

.branch-card__phone {
	font-size: 15px;
	font-weight: 700;
	color: var(--hyoo-text);
	text-decoration: none;
	transition: color 0.2s;
}

.branch-card__phone:hover {
	color: var(--hyoo-accent-light);
}

.branch-card__hours {
	font-size: 12px;
	color: var(--hyoo-text-muted);
	line-height: 1.6;
}

/* 버튼 묶음 — 버튼 없어도 높이 고정으로 카드 정렬 일관성 유지 */
.branch-card__actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	margin-top: 12px;
	min-height: 34px;
}

/* 공통 버튼 */
.branch-card__btn {
	display: inline-flex;
	align-items: center;
	gap: 2px;
	font-size: 13px;
	text-decoration: none;
	border-radius: 50px;
	padding: 6px 14px 6px 16px;
	transition: border-color 0.2s, color 0.2s, background 0.2s;
}

.branch-card__btn svg {
	width: 13px;
	height: 13px;
	transition: transform 0.15s;
}

.branch-card__btn:hover svg {
	transform: translateX(2px);
}

/* 지도 보기: 아웃라인 */
.branch-card__btn--map {
	color: #3d2e2a;
	border: 1px solid #c8b0a8;
}

.branch-card__btn--map:hover {
	border-color: var(--hyoo-accent-light);
	color: var(--hyoo-accent-light);
}

/* 사이트 방문: 채움 */
.branch-card__btn--site {
	color: #fff;
	background: var(--hyoo-accent-light);
	border: 1px solid var(--hyoo-accent-light);
}

.branch-card__btn--site:hover {
	background: #9e6e68;
	border-color: #9e6e68;
}

/* 현재 지점 카드 */
.branch-card--current {
	border-width: 2px;
	border-color: var(--hyoo-accent-dark);
	box-shadow: 0 4px 24px rgba(181, 131, 124, 0.14);
}

.branch-card--current:hover {
	box-shadow: 0 8px 32px rgba(181, 131, 124, 0.22);
}

/* 지점명 + 배지 행 */
.branch-card__name-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
}

/* 현재 지점 배지 */
.branch-card__badge {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	font-size: 11px;
	font-weight: 600;
	line-height: 1.5;
	color: #fff;
	background: var(--hyoo-accent-light);
	border-radius: 50px;
	padding: 4px 10px 4px 8px;
	white-space: nowrap;
	letter-spacing: 0;
}

.branch-card__badge svg {
	width: 11px;
	height: 11px;
	flex-shrink: 0;
}

/* 본점(강남점) 배지 — "현재 지점"과는 다른 색으로 구분(짙은 브라운 계열) */
.branch-card__badge--headquarters {
	background: var(--hyoo-accent-dark);
}

/* ── 반응형 ───────────────────────────────── */
@media (max-width: 1024px) {
	.branch-list__grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 600px) {
	.branch-list {
		padding: 40px 20px;
	}

	.branch-list__grid {
		grid-template-columns: 1fr;
	}

	.branch-list__header h2 {
		font-size: 22px;
	}
}

@media (max-width: 360px) {
	.branch-list {
		padding: 32px 16px;
	}

	.branch-card {
		padding: 18px;
	}
}


/* ── FAQ 섹션 (메인페이지) ───────────────── */
.faq-section {
	padding: 72px 20px;
	background: #fff;
}

.faq-section__inner {
	max-width: 1180px;
	margin: 0 auto;
}

/* 헤더 */
.faq-section__header {
	margin-bottom: 36px;
}

.faq-section__header h2 {
	font-size: 26px;
	font-weight: 700;
	color: var(--hyoo-text);
	letter-spacing: -0.6px;
	margin: 0 0 8px;
	word-break: keep-all;
}

.faq-section__header p {
	font-size: 15px;
	color: var(--hyoo-text-muted);
	margin: 0;
	word-break: keep-all;
}

/* 카테고리 탭 */
.faq-section__tabs {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-bottom: 28px;
}

.faq-tab {
	display: inline-flex;
	align-items: center;
	padding: 7px 18px;
	border: 1px solid #e0d6d2;
	border-radius: 50px;
	background: #fff;
	font-size: 14px;
	font-weight: 500;
	color: var(--hyoo-text-muted);
	letter-spacing: -0.3px;
	cursor: pointer;
	transition: border-color 0.2s, color 0.2s, background 0.2s;
}

.faq-tab:hover {
	border-color: var(--hyoo-accent-light);
	color: var(--hyoo-accent-light);
}

.faq-tab.is-active {
	background: var(--hyoo-accent-light);
	border-color: var(--hyoo-accent-light);
	color: #fff;
	font-weight: 600;
}

/* FAQ 목록 */
.faq-section__list {
	border-top: 2px solid var(--hyoo-text);
}

/* FAQ 아이템 */
.faq-item {
	border-bottom: 1px solid var(--hyoo-border);
}

.faq-item__question {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	width: 100%;
	padding: 20px 4px;
	background: none;
	border: none;
	cursor: pointer;
	text-align: left;
	font-size: 16px;
	font-weight: 600;
	color: var(--hyoo-text);
	letter-spacing: -0.4px;
	line-height: 1.5;
	transition: color 0.2s;
	word-break: keep-all;
}

.faq-item__question:hover {
	color: var(--hyoo-accent-light);
}

.faq-item.is-open .faq-item__question {
	color: var(--hyoo-accent-light);
}

.faq-item__arrow {
	flex-shrink: 0;
	width: 20px;
	height: 20px;
	color: var(--hyoo-text-muted);
	transition: transform 0.25s, color 0.2s;
}

.faq-item.is-open .faq-item__arrow {
	transform: rotate(180deg);
	color: var(--hyoo-accent-light);
}

/* 답변 */
.faq-item__answer {
	overflow: hidden;
}

.faq-item__answer[hidden] {
	display: none;
}

.faq-item__answer-inner {
	padding: 0 4px 24px;
	font-size: 15px;
	color: var(--hyoo-text-muted);
	line-height: 1.8;
	letter-spacing: -0.3px;
	word-break: keep-all;
}

.faq-item__answer-inner p {
	margin: 0 0 12px;
}

.faq-item__answer-inner p:last-child {
	margin-bottom: 0;
}

/* 더 보기 버튼 */
.faq-section__more {
	margin-top: 36px;
	text-align: center;
}

.faq-section__more-btn {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 14px 32px;
	border: 1.5px solid var(--hyoo-accent-light);
	border-radius: 50px;
	font-size: 15px;
	font-weight: 600;
	color: var(--hyoo-accent-light);
	text-decoration: none;
	letter-spacing: -0.3px;
	transition: background 0.2s, color 0.2s;
}

.faq-section__more-btn svg {
	width: 16px;
	height: 16px;
	transition: transform 0.15s;
}

.faq-section__more-btn:hover {
	background: var(--hyoo-accent-light);
	color: #fff;
}

.faq-section__more-btn:hover svg {
	transform: translateX(3px);
}

/* ── FAQ 반응형 ───────────────────────────── */
@media (max-width: 768px) {
	.faq-section {
		padding: 52px 20px;
	}

	.faq-section__header h2 {
		font-size: 22px;
	}

	.faq-item__question {
		font-size: 15px;
		padding: 18px 4px;
	}
}

@media (max-width: 480px) {
	.faq-section {
		padding: 40px 20px;
	}

	.faq-tab {
		font-size: 13px;
		padding: 6px 14px;
	}

	.faq-item__question {
		font-size: 14px;
	}

	.faq-item__answer-inner {
		font-size: 14px;
	}

	.faq-section__more-btn {
		width: 100%;
		justify-content: center;
		box-sizing: border-box;
	}
}

@media (max-width: 360px) {
	.faq-section {
		padding: 32px 16px;
	}

	.faq-tab {
		padding: 5px 12px;
	}

	.faq-item__question {
		padding: 16px 2px;
	}

	.faq-item__answer-inner {
		padding: 0 2px 20px;
	}
}

/* ── 지도 앱 바로가기 원형 아이콘 (카카오맵/네이버지도/티맵) ──────
   홈(clinic-intro)과 /location/ 등 여러 페이지에서 공유하는 컴포넌트.
   래퍼는 페이지마다 다를 수 있어 이 파일에서 강제하지 않고, 아이콘 자체
   (.map-app-link)만 공통 규격으로 제공. */
.map-app-link {
	flex-shrink: 0;
	display: block;
	width: 44px;
	height: 44px;
	border: 1px solid var(--hyoo-border);
	border-radius: 50%;
	overflow: hidden;
	transition: box-shadow 0.2s, border-color 0.2s;
}

.map-app-link:hover {
	box-shadow: 0 0 0 2px var(--hyoo-border);
}

.map-app-link img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}
