@charset "utf-8";

/* 청담공간 — 프리미엄 톤 (텍스트 탭 + 큰 사진) */
.space_page{
	--sp-brand: #4D4A45;
	--sp-muted: #7A7670;
	--sp-point: #5A7FA8;
	--sp-line: #E6E4E0;
	padding: 72px 0 120px;
	background: #fff;
	font-family: 'Pretendard', sans-serif;
}

.space_head{
	margin-bottom: 48px;
	text-align: center;
}
.space_title{
	margin: 0;
	font-size: clamp(28px, 3.2vw, 36px);
	line-height: 1.3;
	color: var(--sp-brand);
	font-weight: 700;
	letter-spacing: -0.03em;
}
.space_title .blue{
	display: block;
	margin-top: 10px;
	font-size: clamp(15px, 1.6vw, 18px);
	font-weight: 600;
	letter-spacing: 0.16em;
	color: var(--sp-point);
}
.space_desc{
	max-width: 560px;
	margin: 20px auto 0;
	font-size: 17px;
	line-height: 1.75;
	color: var(--sp-muted);
	word-break: keep-all;
}
/* 의미 단위 줄바꿈 — PC는 공백으로 이어짐, 모바일만 줄바꿈 */
br.cd-br-m{
	display: none !important;
}
span.cd-br-m{
	display: inline !important;
}
span.cd-br-m::before{
	content: " ";
}
@media all and (max-width: 900px){
	br.cd-br-m{
		display: block !important;
	}
	span.cd-br-m{
		display: block !important;
	}
	span.cd-br-m::before{
		content: none;
	}
}

/* 그룹 탭 — 텍스트 + 파란 밑줄 */
.space_group_tabs{
	display: flex;
	justify-content: center;
	gap: 8px 36px;
	margin-bottom: 28px;
	flex-wrap: wrap;
	border-bottom: 1px solid var(--sp-line);
}
.space_group_tab{
	min-width: 0;
	height: auto;
	padding: 14px 4px 16px;
	border: 0;
	border-bottom: 2px solid transparent;
	border-radius: 0;
	margin-bottom: -1px;
	background: transparent;
	color: var(--sp-muted);
	font-size: 16px;
	font-weight: 500;
	letter-spacing: -0.02em;
	cursor: pointer;
	transition: color 0.2s ease, border-color 0.2s ease;
}
.space_group_tab:hover{color: var(--sp-brand);}
.space_group_tab.is-active{
	background: transparent;
	border-bottom-color: var(--sp-point);
	color: var(--sp-brand);
	font-weight: 700;
	box-shadow: none;
}

.space_room_tabs{
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 6px 28px;
	margin-bottom: 28px;
	border-bottom: 1px solid var(--sp-line);
}
.space_room_tab{
	min-width: 0;
	height: auto;
	padding: 12px 2px 14px;
	border: 0;
	border-bottom: 2px solid transparent;
	border-radius: 0;
	margin-bottom: -1px;
	background: transparent;
	color: var(--sp-muted);
	font-size: 15px;
	font-weight: 500;
	cursor: pointer;
	transition: color 0.2s ease, border-color 0.2s ease;
}
.space_room_tab:hover{color: var(--sp-brand);}
.space_room_tab.is-active{
	background: transparent;
	border-bottom-color: var(--sp-point);
	color: var(--sp-brand);
	font-weight: 700;
}

.space_label{
	margin-bottom: 18px;
	font-size: 15px;
	line-height: 1.4;
	color: var(--sp-brand);
	font-weight: 600;
	text-align: center;
	letter-spacing: -0.02em;
}
.space_label .bar{margin: 0 10px; color: #D0D0D0; font-weight: 400;}
.space_label #space_label_name{color: var(--sp-muted); font-weight: 500;}

.space_main_wrap{position: relative;}
.space_main{
	overflow: hidden;
	border-radius: 0;
	background: #F7F8FA;
	border: 0;
	aspect-ratio: 16 / 9;
}
.space_main img{
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
}

.space_arrow{
	position: absolute;
	top: 50%;
	z-index: 5;
	transform: translateY(-50%);
	width: 64px;
	height: 64px;
	border: none;
	border-radius: 50%;
	padding: 0;
	background: transparent url('../images/main/doctor_arrow_next.png') no-repeat center / contain;
	cursor: pointer;
	opacity: 0.88;
	transition: opacity 0.2s ease;
}
.space_arrow.prev{left: 12px; background-image: url('../images/main/doctor_arrow_prev.png');}
.space_arrow.next{right: 12px; background-image: url('../images/main/doctor_arrow_next.png');}
.space_arrow:hover,
.space_arrow:active,
.space_arrow.is-active{opacity: 1;}
.space_arrow.is-disabled{opacity: 0.22; cursor: default; pointer-events: none;}
.space_arrow.is-disabled:hover,
.space_arrow.is-disabled:active{opacity: 0.22;}

.space_thumbs_wrap{
	display: flex;
	align-items: center;
	margin-top: 20px;
}
.space_thumbs{
	display: flex;
	flex: 1;
	gap: 12px;
	overflow: hidden;
	justify-content: flex-start;
	align-items: stretch;
}
.space_thumb{
	flex: 0 0 calc((100% - 48px) / 5);
	width: calc((100% - 48px) / 5);
	max-width: calc((100% - 48px) / 5);
	min-width: 0;
	padding: 0;
	border: 1px solid transparent;
	border-radius: 0;
	overflow: hidden;
	background: #F7F8FA;
	cursor: pointer;
	transition: border-color 0.2s ease, opacity 0.2s ease;
	box-sizing: border-box;
	aspect-ratio: 16 / 9;
	opacity: 0.55;
}
.space_thumb:hover{opacity: 0.85;}
.space_thumb.is-active{
	border-color: var(--sp-point);
	opacity: 1;
	box-shadow: none;
}
.space_thumb img{
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
}

@media all and (max-width: 1000px){
	.space_page{padding: 48px 0 80px;}
	.space_group_tabs{gap: 8px 24px;}
	.space_room_tabs{gap: 6px 18px;}
}

@media all and (max-width: 640px){
	.space_desc{font-size: 15px;}
	.space_group_tabs{
		gap: 0;
		justify-content: stretch;
	}
	.space_group_tab{
		flex: 1;
		text-align: center;
		font-size: 14px;
		padding: 12px 4px 14px;
	}
	.space_room_tabs{gap: 0 12px; justify-content: flex-start;}
	.space_room_tab{
		flex: 0 0 auto;
		font-size: 14px;
		padding: 10px 2px 12px;
	}
	.space_thumbs{gap: 8px;}
	.space_thumb{
		flex-basis: calc((100% - 32px) / 5);
		width: calc((100% - 32px) / 5);
		max-width: calc((100% - 32px) / 5);
	}
	.space_arrow{width: 44px; height: 44px;}
	.space_arrow.prev{left: 8px;}
	.space_arrow.next{right: 8px;}
}
