/* ===== externalV2 index.css — 예약달력 (Figma 101:3948) ===== */
html, body { overflow-x: hidden; }

button, input, select, textarea {
	font-family: inherit;
}

/* Base font — set.css와 동일 */
.v2-calContainer,
.v2-calContainer .yapen-revUserInfoLayer {
	font-family: 'Pretendard Variable', Pretendard, -apple-system, BlinkMacSystemFont,
		system-ui, Roboto, 'Helvetica Neue', 'Segoe UI', 'Apple SD Gothic Neo',
		'Noto Sans KR', 'Malgun Gothic', 'Apple Color Emoji', 'Segoe UI Emoji',
		'Segoe UI Symbol', sans-serif;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

/* Tokens (set.css와 공유) */
:root {
	--color-text-main: #1b1c1f;
	--color-text-sub: #6e6f73;
	--color-text-medium: #8b8d92;
	--color-fill-weak: #f7f8fb;
	--color-fill-season: #f2f3f7;
	--color-line-weak: #e9eaef;
	--color-line-medium: #8b8d92;
	--color-static-white: #fff;
	--color-badge-poss: #7280ff;
	--color-badge-succ: #8b8d92;
	--color-badge-wait-bg: #feecae;
	--color-badge-wait-text: #996500;
	--color-badge-sale-bg: #e9eaef;
	--color-badge-sale-text: #6e6f73;
	--color-room-disabled: #b6b7bb;
	--radius-sm: 4px;
	--sp-4: 4px;
	--sp-6: 6px;
	--sp-8: 8px;
	--sp-12: 12px;
}

/* ===== V2 GNB Header Override (Figma 222:10050) ===== */
.yapen-header {
	width: 100%;
	padding: 0;
	text-align: center;
	border-bottom: 1px solid var(--color-line-weak);
	position: fixed;
	top: 0;
	left: 0;
	z-index: 11;
	background-color: var(--color-static-white);
	height: 60px;
	box-sizing: border-box;
	display: flex;
	justify-content: center;
	font-family: 'Pretendard Variable', Pretendard, -apple-system, BlinkMacSystemFont,
		system-ui, Roboto, 'Helvetica Neue', 'Segoe UI', 'Apple SD Gothic Neo',
		'Noto Sans KR', 'Malgun Gothic', sans-serif;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

.yapen-header .yapen-headerLayer {
	max-width: 1280px;
	width: 100%;
	min-width: 0;
	padding: 0 24px;
	margin: 0 auto;
	box-sizing: border-box; /* PENCO-346 */
	display: flex;
	align-items: center;
	justify-content: space-between;
	height: 100%;
	text-align: left;
	position: relative;
	box-sizing: border-box;
}

.yapen-header .yapen-headerLayer .headerPensionName,
.yapen-header .yapen-headerLayer .headerPensionName:hover,
.yapen-header .yapen-headerLayer .headerPensionName:focus,
.yapen-header .yapen-headerLayer .headerPensionName:visited,
.yapen-header .yapen-headerLayer .headerPensionName:active {
	font-size: 20px;
	font-weight: 700;
	color: #3c3d40;
	line-height: 24px;
	order: -1;
	flex: 1;
	text-decoration: none;
	cursor: pointer;
	border-bottom: none;
}

.yapen-header .yapen-headerLayer .yapen-header-float-r {
	float: none;
	position: static;
	right: auto;
	display: flex;
	align-items: flex-end;
	gap: 40px;
	height: 100%;
}

.yapen-header .yapen-headerLayer .headerSite {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: flex-start;
	height: 60px;
	padding: 20px 0 0;
	margin: 0;
	font-size: 16px;
	font-weight: 500;
	color: var(--color-text-main);
	cursor: pointer;
	position: relative;
	box-sizing: border-box;
	white-space: nowrap;
	line-height: 19px;
}

.yapen-header .yapen-headerLayer .headerSite:hover {
	color: var(--color-text-main);
}

.yapen-header .yapen-headerLayer .headerSite.on {
	font-weight: 700;
	color: #4154ff;
}

.yapen-header .yapen-headerLayer .headerSite.on::after {
	content: '';
	position: absolute;
	left: 0;
	bottom: 0;
	width: 100%;
	min-width: 34px;
	height: 2px;
	background-color: #4154ff;
}

.yapen-header .yapen-headerLayer .lineBar {
	display: none;
}

.yapen-header .yapen-headerLayer .viewCeoBtn {
	display: none;
}

.yapen-header .yapen-headerLayer .yapen-header-menu-icon {
	display: none;
}

.yapen-header .yapen-headerLayer .yapen-header-float-r .yapen-header-menu-close-layer {
	display: none;
}

.yapen-header .yapen-headerLayer .yapen-header-float-r .yapen-header-info-layer {
	display: none;
}

.yapen-container {
	width: 100%;
	max-width: 100%;
	min-width: 0;
	padding: 60px 0 0 0;
	box-sizing: border-box;
	min-height: 100vh;
	display: flex;
	flex-direction: column;
	overflow-x: hidden;
	top: auto;
}
.yapen-container > .v2-footer {
	flex-shrink: 0;
}

/* Container — PENCO-347: 1280 = 좌우 패딩 24 포함 */
.v2-calContainer {
	box-sizing: border-box;
	width: 100%;
	max-width: 1280px;
	margin: 0 auto;
	padding: 40px 24px;
	position: relative;
	flex-grow: 1;
}

/* Top bar */
.v2-calTopBar {
	display: flex;
	justify-content: space-between;
	align-items: center;
	position: relative;
	min-height: 32px;
	margin-bottom: 16px;
	gap: 12px;
}

.v2-calBadgeLegend {
	display: flex;
	align-items: center;
	gap: 10px;
	flex-wrap: wrap;
}

.v2-legendItem {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	font-size: 12px;
	line-height: 14px;
	color: var(--color-text-sub);
}

.v2-legendText {
	font-weight: 500;
}

.v2-calMonth {
	display: flex;
	align-items: center;
	gap: 14px;
	position: absolute;
	left: 50%;
	transform: translateX(-50%);
	top: 0;
}

.v2-monthInfo {
	font-size: 20px;
	line-height: 24px;
	font-weight: 700;
	color: var(--color-text-main);
}

.v2-calMonth .prevMonth,
.v2-calMonth .nextMonth {
	cursor: pointer;
	width: 32px;
	height: 32px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	border-radius: 6px;
	border: none;
	background: transparent;
	color: var(--color-text-main);
	transition: background 0.15s;
}

.v2-calMonth .prevMonth:hover,
.v2-calMonth .nextMonth:hover {
	background: var(--color-fill-weak);
}

.v2-calMonth .prevMonth.dim,
.v2-calMonth .nextMonth.dim {
	cursor: default;
	color: var(--color-line-weak);
}

.v2-calMonth .prevMonth.dim:hover,
.v2-calMonth .nextMonth.dim:hover {
	background: transparent;
}

.v2-calRight {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: 12px;
	margin-left: auto;
}

.v2-priceViewBtn {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: 14px;
	line-height: 17px;
	font-weight: 400;
	color: var(--color-text-main);
	cursor: pointer;
	-webkit-user-select: none;
	user-select: none;
}

.v2-priceViewBtn input {
	position: absolute;
	opacity: 0;
	width: 0;
	height: 0;
}

.v2-priceViewBtn::before {
	content: '';
	display: inline-block;
	width: 20px;
	height: 20px;
	min-width: 20px;
	border: 1px solid var(--color-line-medium);
	border-radius: 4px;
	background: var(--color-static-white);
	box-sizing: border-box;
	transition: background 0.15s, border-color 0.15s;
}

.v2-priceViewBtn.on::before {
	background: var(--color-text-main);
	border-color: var(--color-text-main);
	background-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2214%22%20height%3D%2214%22%20viewBox%3D%220%200%2014%2014%22%20fill%3D%22none%22%3E%3Cpath%20d%3D%22M2.5%207L5.8%2010.5L11.5%203.5%22%20stroke%3D%22white%22%20stroke-width%3D%222.2%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%2F%3E%3C%2Fsvg%3E");
	background-repeat: no-repeat;
	background-position: center;
	background-size: 14px 14px;
}

/* Table */
.v2-calContent {
	overflow: hidden;
	border: 1px solid var(--color-line-weak);
	border-radius: 8px;
}

.v2-calTable {
	width: 100%;
	border-collapse: collapse;
	table-layout: fixed;
}

.v2-calTable th {
	background: var(--color-fill-weak);
	border: 1px solid var(--color-line-weak);
	border-top: none;
	padding: 12px;
	font-size: 14px;
	line-height: 17px;
	font-weight: 700;
	color: var(--color-text-sub);
	text-align: center;
}
.v2-calTable th:first-child { border-left: none; }
.v2-calTable th:last-child { border-right: none; }

.v2-calTable th.v2-thSun,
.v2-calTable th.v2-thSat { color: var(--color-text-sub); }

.v2-calTable td {
	background: var(--color-static-white);
	border-right: 1px solid var(--color-line-weak);
	border-bottom: 1px solid var(--color-line-weak);
	padding: 4px 8px 8px;
	vertical-align: top;
}
.v2-calTable td:last-child { border-right: none; }
.v2-calTable tr:last-child td { border-bottom: none; }

.v2-calTable td.v2-blockDay {
	background: var(--color-static-white);
	color: var(--color-room-disabled);
	font-size: 12px;
	line-height: 14px;
	font-weight: 700;
	text-align: center;
	vertical-align: middle;
	position: relative;
}

.v2-blockDayNum {
	position: absolute;
	top: 4px;
	left: 8px;
	font-size: 13px;
	font-weight: 700;
	color: var(--color-text-medium);
	line-height: 16px;
	text-align: left;
}

.v2-blockDayText {
	font-weight: 700;
	color: var(--color-room-disabled);
	text-align: center;
	white-space: nowrap;
}

.v2-dayHeader {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 6px;
	font-size: 13px;
	line-height: 16px;
	font-weight: 700;
	color: var(--color-text-medium);
}

.v2-dayNum {
	flex-shrink: 0;
}

.v2-seasonTag {
	background: var(--color-fill-season);
	color: var(--color-text-medium);
	font-size: 10px;
	line-height: 12px;
	font-weight: 700;
	padding: 2px 4px;
	border-radius: var(--radius-sm);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	max-width: 80%;
}

.v2-roomList {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.v2-roomItem {
	display: flex;
	gap: var(--sp-4);
	align-items: flex-start;
}

.v2-badge {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 14px;
	height: 14px;
	min-width: 14px;
	border-radius: 2px;
	font-size: 10px;
	font-weight: 700;
	color: var(--color-static-white);
	line-height: 12px;
}

.v2-badge--poss { background: var(--color-badge-poss); }
.v2-badge--succ { background: var(--color-badge-succ); }
.v2-badge--wait {
	background: var(--color-badge-wait-bg);
	color: var(--color-badge-wait-text);
}
.v2-badge--sale {
	background: var(--color-badge-sale-bg);
	color: var(--color-badge-sale-text);
}

.v2-roomText {
	display: flex;
	flex-direction: column;
	gap: 1px;
	font-size: 12px;
	line-height: 14px;
	color: var(--color-text-main);
	min-width: 0;
}

.v2-roomName {
	cursor: pointer;
	font-weight: 400;
	line-height: 14px;
}

.v2-roomName:hover {
	text-decoration: underline;
}

.v2-roomName.block {
	cursor: default;
	text-decoration: line-through;
	color: var(--color-room-disabled);
}

.v2-roomName.block:hover {
	text-decoration: line-through;
}

.v2-roomPrice {
	font-size: 12px;
	line-height: 14px;
	font-weight: 700;
	color: var(--color-text-main);
}

.v2-roomPrice.block {
	text-decoration: line-through;
	color: var(--color-room-disabled);
}

.v2-roomPrice .v2-roomBasicPrice {
	text-decoration: line-through;
	margin-right: 2px;
}

/* 가격 보기 체크 시에만 가격 노출 (기본 숨김, JS로 .show()/.hide() 토글) */
.v2-calContainer .v2-roomPrice.roomPriceLayer {
	display: none;
}

/* 오늘 셀 강조 */
.v2-dayCell.v2-todayBg {
	background: #f0f4ff;
}

/* PENCO-383: 예약자 정보 툴팁 (Figma 1805:1574050) */
.v2-calContainer .yapen-revUserInfoLayer {
	position: fixed;
	z-index: 20;
	display: none;
	flex-direction: column;
	align-items: center;
	gap: 0;
	padding: 0;
	border: none;
	background: none;
	box-shadow: none;
	opacity: 1;
	letter-spacing: 0;
	line-height: normal;
	font-family: 'Pretendard Variable', Pretendard, -apple-system, BlinkMacSystemFont,
		system-ui, Roboto, 'Helvetica Neue', 'Segoe UI', 'Apple SD Gothic Neo',
		'Noto Sans KR', 'Malgun Gothic', sans-serif;
}
.v2-calContainer .yapen-revUserInfoLayer .arrowLayer {
	width: 0;
	height: 0;
	border-left: 6px solid transparent;
	border-right: 6px solid transparent;
	border-bottom: 6px solid #1b1c1f;
	position: static;
	transform: none;
}
.v2-calContainer .yapen-revUserInfoLayer .arrowLayerBg {
	display: none;
}
.v2-calContainer .yapen-revUserInfoContent {
	background: #1b1c1f;
	border-radius: 6px;
	padding: 12px;
	min-width: 100px;
	max-width: 280px;
	font-size: 12px;
	font-weight: 400;
	line-height: 18px;
	color: #fff;
	text-align: left;
	border: none;
	box-shadow: none;
	width: auto;
}
.v2-calContainer .yapen-revUserInfoContent div {
	margin: 0;
	padding: 0;
	font-size: 12px;
	line-height: 18px;
	color: #fff;
	font-weight: 400;
	border: none;
}

/* 공지/푸터 */
.v2-calContainer .yapen-calendar-notice { margin-top: 24px; }

.v2-footer {
	display: flex; justify-content: space-between; align-items: flex-start;
	max-width: 1280px; width: 100%; box-sizing: border-box;
	margin-left: auto; margin-right: auto;
	background: var(--color-static-white);
	padding: 40px 24px;
	font-family: 'Pretendard Variable', Pretendard, -apple-system, BlinkMacSystemFont,
		system-ui, Roboto, 'Helvetica Neue', 'Segoe UI', 'Apple SD Gothic Neo',
		'Noto Sans KR', 'Malgun Gothic', sans-serif;
}
.v2-footer-info {
	display: flex; flex-direction: column; gap: 4px; flex: 1; min-width: 0;
	font-size: 12px; color: var(--color-text-medium); line-height: 1; white-space: nowrap;
}
.v2-footer-notice { margin: 0; font-weight: 400; }
.v2-footer-meta {
	display: flex; align-items: center; gap: 12px;
}
.v2-footer-name { font-weight: 700; }
.v2-footer-addr,
.v2-footer-tel { font-weight: 400; }
.v2-footer-partner {
	display: inline-flex; align-items: center; gap: 4px;
	padding: 10px 16px;
	border: 1px solid var(--color-line-weak); border-radius: 8px;
	background: var(--color-static-white);
	font-size: 14px; line-height: 17px; font-weight: 400; color: var(--color-text-main);
	cursor: pointer; white-space: nowrap; flex-shrink: 0;
}
.v2-footer-partner:hover { background: var(--color-fill-weak); }

/* ===== Responsive: Mobile (Figma 853:26709, 360px) ===== */
@media (max-width: 1279px) {

	/* --- GNB Header: 2-row layout (Figma 853:26711) --- */
	.yapen-header {
		height: auto;
	}
	.yapen-header .yapen-headerLayer {
		flex-direction: column;
		padding: 0;
		align-items: stretch;
	}
	.yapen-header .yapen-headerLayer .headerPensionName,
	.yapen-header .yapen-headerLayer .headerPensionName:hover,
	.yapen-header .yapen-headerLayer .headerPensionName:focus,
	.yapen-header .yapen-headerLayer .headerPensionName:visited,
	.yapen-header .yapen-headerLayer .headerPensionName:active {
		font-size: 18px;
		line-height: 21px;
		min-height: 48px;
		display: flex;
		align-items: center;
		padding: 2px 16px;
		flex: none;
		width: 100%;
		box-sizing: border-box;
		max-width: none;
		text-align: left;
	}
	.yapen-header .yapen-headerLayer .yapen-header-menu-icon {
		display: none;
	}
	.yapen-header .yapen-headerLayer .yapen-header-float-r {
		position: static;
		right: auto;
		float: none;
		gap: 0;
		width: 100%;
		height: 48px;
		border-left: none;
		padding: 0 16px;
		box-sizing: border-box;
		background: var(--color-static-white);
		z-index: auto;
	}
	.yapen-header .yapen-headerLayer .headerSite {
		flex: 1;
		display: flex;
		font-size: 14px;
		line-height: 17px;
		height: 48px;
		padding: 16px 0 0;
		margin: 0;
		width: auto;
		text-align: center;
		justify-content: flex-start;
		align-items: center;
		gap: 0;
		border-bottom: none;
	}
	.yapen-header .yapen-headerLayer .headerSite.on::after {
		bottom: 0;
	}
	.yapen-header .yapen-headerLayer .yapen-header-float-r .yapen-header-menu-close-layer {
		display: none;
	}
	.yapen-header .yapen-headerLayer .yapen-header-float-r .yapen-header-info-layer {
		display: none;
	}
	.yapen-header .yapen-headerLayer .viewCeoBtn {
		display: none;
	}
	.yapen-container {
		padding: 96px 0 0 0;
	}

	/* --- Calendar (Figma 853:26712) --- */
	.v2-calContainer { padding: 20px; }

	.v2-calTopBar {
		flex-direction: row;
		flex-wrap: nowrap;
		align-items: center;
		justify-content: space-between;
		margin-bottom: 12px;
	}
	.v2-calMonth { position: static; transform: none; }
	.v2-calBadgeLegend { display: none; }
	.v2-calRight { order: 0; }

	.v2-monthInfo { font-size: 16px; line-height: 19px; }

	.v2-calTable th { padding: 8px 0; font-size: 10px; line-height: 12px; }
	.v2-calTable td {
		padding: 8px 2px;
		font-size: 11px;
		line-height: 13px;
		vertical-align: top;
		overflow: hidden;
	}

	/* Day cell: hide dayHeader, show mobile-only day number (Figma 853:26657) */
	.v2-dayHeader { display: none; }
	.v2-dayNumMo {
		display: block;
		font-size: 8px;
		font-weight: 700;
		color: var(--color-text-sub);
		line-height: 10px;
		margin-bottom: 6px;
	}

	/* Room items MO */
	.v2-roomList { gap: 8px; }
	.v2-roomItem { gap: 2px; }
	.v2-badge {
		width: 8px; height: 8px; min-width: 8px;
		font-size: 6px; border-radius: 1px;
	}
	.v2-roomText { font-size: 7px; }
	.v2-roomName {
        font-size: 7px;
        line-height: 8px;
		overflow: hidden;
		text-overflow: ellipsis;
		white-space: nowrap;
		max-width: 100%;
	}
	.v2-roomPrice {
		font-size: 7px;
		overflow: hidden;
		text-overflow: ellipsis;
		white-space: nowrap;
	}
	.v2-roomPrice .v2-roomBasicPrice { display: none; }

	/* Past date cell (Figma 853:26656) */
	.v2-blockDay {
		padding: 8px 2px;
		vertical-align: top;
		text-align: left;
	}
	.v2-blockDayNum {
		display: block;
		font-size: 8px;
		font-weight: 700;
		color: var(--color-text-medium);
		line-height: 10px;
		margin-bottom: 6px;
	}
	.v2-blockDayText {
		position: static;
		top: auto;
		left: auto;
		transform: none;
		display: flex;
		align-items: center;
		justify-content: center;
		font-size: 8px;
		font-weight: 700;
		color: var(--color-room-disabled);
		text-align: center;
		line-height: 10px;
		white-space: normal;
		word-break: keep-all;
		width: min-content;
		margin: 0 auto;
		height: calc(100% - 20px);
	}

	/* Badge legend at bottom (Figma 853:26769) */
	.v2-calBadgeLegendMo {
		display: flex;
		align-items: center;
		gap: 10px;
		flex-wrap: wrap;
		margin-top: 12px;
	}
	.v2-calBadgeLegendMo .v2-legendItem {
		display: inline-flex;
		align-items: center;
		gap: 4px;
		font-size: 11px;
		line-height: 11px;
		color: var(--color-text-sub);
	}
	.v2-calBadgeLegendMo .v2-legendText { font-weight: 400; }
	.v2-calBadgeLegendMo .v2-badge {
		width: 14px; height: 14px; min-width: 14px;
		font-size: 10px; border-radius: 2px;
	}

	/* --- Footer (Figma 320:12350) --- */
	.v2-footer {
		flex-direction: column; gap: 12px;
		padding: 32px 20px;
	}
	.v2-footer-info {
		font-size: 12px; line-height: 18px; white-space: normal;
		gap: 12px;
	}
	.v2-footer-notice { line-height: 18px; }
	.v2-footer-meta {
		flex-direction: column; align-items: flex-start; gap: 4px;
	}
	.v2-footer-partner { display: none; }
}

/* Desktop: hide mobile-only elements */
@media (min-width: 1280px) {
	.v2-calBadgeLegendMo { display: none; }
	.v2-dayNumMo { display: none; }
}
