/* WBK Booking - Blue Skin */
/* Primary Color: #0058a4 */

:root {
	--wbk-primary: #0058a4;
	--wbk-primary-dark: #004080;
	--wbk-primary-light: #e6f0f8;
	--wbk-primary-hover: #003d6e;
	--wbk-text: #333;
	--wbk-text-light: #666;
	--wbk-border: #d0d4db;
	--wbk-bg: #fff;
	--wbk-bg-light: #f8f9fa;
}

/* ========================================
   예약 폼 스타일
   ======================================== */

.wbk-booking-form {
	background: var(--wbk-bg);
	border-radius: 12px;
	width: 100%;
	max-width: 100%;
}

.wbk-form-field {
	display: flex;
	flex-direction: column;
	margin-bottom: 16px;
	gap: 6px;
}

/* 라벨 스타일 (버그 수정: 라벨과 입력 분리) */
.wbk-form-field .wbk-field-label {
	font-size: 14px;
	font-weight: 600;
	color: var(--wbk-text);
	display: block;
	margin-bottom: 4px;
}

.wbk-form-field .wbk-field-label .required {
	color: #e53935;
	font-weight: 700;
}

/* 입력 필드 컨테이너 */
.wbk-form-field .wbk-field-input {
	width: 100%;
}

/* 입력 요소 스타일 */
.wbk-booking-form input[type="text"],
.wbk-booking-form input[type="email"],
.wbk-booking-form input[type="tel"],
.wbk-booking-form input[type="number"],
.wbk-booking-form input[type="password"],
.wbk-booking-form input[type="date"],
.wbk-booking-form input[type="time"],
.wbk-booking-form input[type="datetime-local"],
.wbk-booking-form select,
.wbk-booking-form textarea {
	border: 1px solid var(--wbk-border);
	border-radius: 8px;
	padding: 12px 14px;
	width: 100%;
	background: var(--wbk-bg);
	font-family: inherit;
	font-size: 14px;
	color: var(--wbk-text);
	transition: border-color 0.2s, box-shadow 0.2s;
	box-sizing: border-box;
}

.wbk-booking-form input:focus,
.wbk-booking-form select:focus,
.wbk-booking-form textarea:focus {
	outline: none;
	border-color: var(--wbk-primary);
	box-shadow: 0 0 0 3px rgba(0, 88, 164, 0.15);
}

.wbk-booking-form textarea {
	resize: vertical;
	min-height: 100px;
}

/* Select 스타일 (버그 수정: select 명시적 표시) */
.wbk-booking-form select {
	appearance: none;
	-webkit-appearance: none;
	-moz-appearance: none;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23333' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 12px center;
	padding-right: 36px;
	cursor: pointer;
}

/* 옵션 미설정 안내 */
.wbk-field-notice {
	font-size: 13px;
	color: #888;
	margin: 0;
	padding: 10px;
	background: var(--wbk-bg-light);
	border-radius: 6px;
}

/* 필드 설명 */
.wbk-field-description {
	font-size: 12px;
	color: var(--wbk-text-light);
	margin: 4px 0 0 0;
	line-height: 1.4;
}

/* 라디오/체크박스 그룹 */
.wbk-explode-group {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
}

.wbk-radio-label,
.wbk-checkbox-label {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	cursor: pointer;
	font-size: 14px;
	color: var(--wbk-text);
}

.wbk-radio-label input,
.wbk-checkbox-label input {
	width: auto;
	margin: 0;
	accent-color: var(--wbk-primary);
}

/* 개인정보 동의 필드 */
.wbk-privacy-field {
	background: var(--wbk-bg-light);
	padding: 16px;
	border-radius: 8px;
	margin-top: 8px;
}

.wbk-privacy-label {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	cursor: pointer;
}

.wbk-privacy-label input[type="checkbox"] {
	width: auto;
	margin-top: 2px;
	accent-color: var(--wbk-primary);
}

.wbk-privacy-text {
	font-size: 14px;
	color: var(--wbk-text);
	line-height: 1.5;
}

.wbk-privacy-text strong {
	color: var(--wbk-text);
}

.wbk-privacy-text .required {
	color: #e53935;
}

.wbk-privacy-text a {
	color: var(--wbk-primary);
	text-decoration: underline;
	margin-left: 8px;
}

.wbk-privacy-text a:hover {
	color: var(--wbk-primary-dark);
}

/* 제출 버튼 */
.wbk-submit-btn {
	background: var(--wbk-primary);
	color: #fff;
	border: none;
	border-radius: 8px;
	padding: 14px 24px;
	font-size: 16px;
	font-weight: 600;
	cursor: pointer;
	transition: background 0.2s, transform 0.1s;
	width: 100%;
	margin-top: 12px;
}

.wbk-submit-btn:hover {
	background: var(--wbk-primary-dark);
}

.wbk-submit-btn:active {
	transform: scale(0.98);
}

.wbk-submit-btn:disabled {
	background: #aaa;
	cursor: not-allowed;
}

/* ========================================
   상품 목록 스타일
   ======================================== */

.wbk-booking-item-list-wrap {
	width: 100%;
}

/* 필터 UI */
.wbk-booking-item-list-filter {
	display: flex;
	gap: 12px;
	align-items: center;
	margin-bottom: 24px;
	flex-wrap: wrap;
}

.wbk-booking-item-list-filter > label {
	position: relative;
	flex: 1;
	min-width: 200px;
	display: flex;
	align-items: center;
}

.wbk-booking-search-input {
	width: 100%;
	padding: 12px 44px 12px 14px;
	border: 1px solid var(--wbk-border);
	border-radius: 8px;
	font-size: 14px;
	background: var(--wbk-bg);
}

.wbk-booking-search-input:focus {
	outline: none;
	border-color: var(--wbk-primary);
	box-shadow: 0 0 0 3px rgba(0, 88, 164, 0.15);
}

.wbk-booking-search-button {
	position: absolute;
	right: 4px;
	top: 50%;
	transform: translateY(-50%);
	width: 36px;
	height: 36px;
	background: var(--wbk-primary);
	border: none;
	border-radius: 6px;
	color: #fff;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: background 0.2s;
}

.wbk-booking-search-button:hover {
	background: var(--wbk-primary-dark);
}

.wbk-booking-category-select {
	padding: 12px 36px 12px 14px;
	border: 1px solid var(--wbk-border);
	border-radius: 8px;
	font-size: 14px;
	background: var(--wbk-bg);
	min-width: 160px;
	appearance: none;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23333' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 12px center;
	cursor: pointer;
}

.wbk-booking-category-select:focus {
	outline: none;
	border-color: var(--wbk-primary);
}

/* 상품 그리드 */
.wbk-booking-item-list-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 24px;
	list-style: none;
	padding: 0;
	margin: 0;
}

.wbk-booking-item {
	background: var(--wbk-bg);
	border: 1px solid #e5e5e5;
	border-radius: 12px;
	overflow: hidden;
	transition: box-shadow 0.2s, transform 0.2s;
}

.wbk-booking-item:hover {
	box-shadow: 0 8px 24px rgba(0, 88, 164, 0.12);
	transform: translateY(-2px);
}

.wbk-booking-item-link-wrapper {
	display: block;
	text-decoration: none;
	color: inherit;
}

.wbk-booking-item-thumb {
	width: 100%;
	aspect-ratio: 4/3;
	position: relative;
	background: var(--wbk-bg-light);
	overflow: hidden;
}

.wbk-booking-item-thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.3s;
}

.wbk-booking-item:hover .wbk-booking-item-thumb img {
	transform: scale(1.05);
}

.wbk-booking-item-thumb span {
	display: flex;
	align-items: center;
	justify-content: center;
	height: 100%;
	color: #999;
	font-size: 14px;
}

.wbk-booking-item-info {
	padding: 16px;
	text-align: center;
}

.wbk-booking-item-title {
	font-size: 16px;
	font-weight: 600;
	color: var(--wbk-primary);
	margin-bottom: 4px;
}

.wbk-booking-item-info > span:last-child {
	font-size: 14px;
	color: var(--wbk-text-light);
}

/* 상품 없음 */
.wbk-booking-no-items {
	text-align: center;
	padding: 60px 20px;
	color: var(--wbk-text-light);
}

/* 페이지네이션 */
.wbk-booking-pagination {
	display: flex;
	justify-content: center;
	gap: 6px;
	margin-top: 32px;
	padding: 16px 0;
}

.wbk-booking-pagination .page-numbers {
	display: flex;
	align-items: center;
	justify-content: center;
	min-width: 40px;
	height: 40px;
	padding: 8px 12px;
	border: 1px solid var(--wbk-border);
	border-radius: 8px;
	background: var(--wbk-bg);
	color: var(--wbk-text);
	text-decoration: none;
	font-size: 14px;
	transition: all 0.2s;
}

.wbk-booking-pagination .page-numbers:hover {
	border-color: var(--wbk-primary);
	color: var(--wbk-primary);
}

.wbk-booking-pagination .page-numbers.current {
	background: var(--wbk-primary);
	border-color: var(--wbk-primary);
	color: #fff;
}

/* ========================================
   상품 상세 스타일
   ======================================== */

.wbk-booking-detail-wrap {
	background: var(--wbk-bg);
	border-radius: 12px;
	padding: 32px;
}

.wbk-booking-detail-gallery {
	margin-bottom: 24px;
}

.wbk-booking-detail-thumb {
	width: 100%;
	height: 400px;
	border-radius: 12px;
	overflow: hidden;
	background: var(--wbk-bg-light);
	display: flex;
	align-items: center;
	justify-content: center;
	margin-bottom: 16px;
}

.wbk-booking-detail-thumb img {
	width: 100%;
	height: 100%;
	object-fit: contain;
}

.wbk-booking-detail-thumb-gallery {
	width: 100%;
	height: 400px;
	border-radius: 12px;
	overflow: hidden;
	background: var(--wbk-bg-light);
	display: flex;
	align-items: center;
	justify-content: center;
	margin-bottom: 16px;
}

.wbk-booking-detail-thumb-gallery img {
	width: 100%;
	height: 100%;
	object-fit: contain;
}

.wbk-booking-detail-gallery-thumbs {
	display: flex;
	gap: 10px;
	flex-wrap: wrap;
	margin-bottom: 24px;
}

.wbk-gallery-thumb {
	width: 80px;
	height: 60px;
	border-radius: 8px;
	overflow: hidden;
	cursor: pointer;
	border: 2px solid transparent;
	transition: border-color 0.2s, transform 0.2s;
}

.wbk-gallery-thumb:hover,
.wbk-gallery-thumb.active {
	border-color: var(--wbk-primary);
	transform: translateY(-2px);
}

.wbk-gallery-thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.wbk-booking-detail-main {
	display: grid;
	grid-template-columns: 1fr;
	gap: 32px;
}

.wbk-booking-detail-title {
	font-size: 28px;
	font-weight: 700;
	color: var(--wbk-primary);
	margin: 0 0 20px 0;
}

.wbk-booking-detail-options ul {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	list-style: none;
	padding: 0;
	margin: 0 0 20px 0;
}

.wbk-booking-detail-options li {
	background: var(--wbk-primary-light);
	color: var(--wbk-primary);
	padding: 6px 14px;
	border-radius: 20px;
	font-size: 14px;
}

.wbk-booking-detail-price {
	margin-bottom: 20px;
}

.wbk-booking-detail-price > div {
	display: flex;
	justify-content: space-between;
	padding: 14px 0;
	border-bottom: 1px solid #eee;
	font-size: 16px;
}

.wbk-booking-detail-price > div:last-child {
	border: none;
}

.wbk-booking-detail-price strong {
	color: var(--wbk-primary);
}

.wbk-booking-detail-price-note {
	font-size: 13px;
	color: var(--wbk-text-light);
	line-height: 1.6;
	margin-bottom: 20px;
}

.wbk-booking-detail-desc {
	color: var(--wbk-text);
	line-height: 1.7;
	margin-bottom: 24px;
}

.wbk-booking-detail-btn {
	display: flex;
	justify-content: center;
	align-items: center;
	background: var(--wbk-primary);
	color: #fff;
	padding: 16px 32px;
	border-radius: 8px;
	font-size: 18px;
	font-weight: 600;
	text-decoration: none;
	transition: background 0.2s;
	width: 100%;
}

.wbk-booking-detail-btn:hover {
	background: var(--wbk-primary-dark);
	color: #fff;
}

/* 상세 스펙 테이블 */
.wbk-booking-detail-spec {
	display: grid;
	grid-template-columns: 1fr 1fr;
	border-top: 3px solid var(--wbk-primary);
	margin-top: 24px;
}

.wbk-booking-detail-spec-row {
	display: grid;
	grid-template-columns: 1fr 1fr;
	border-bottom: 1px solid #eee;
}

.wbk-booking-detail-spec-label {
	padding: 14px 16px;
	font-weight: 500;
	color: var(--wbk-text);
	background: var(--wbk-bg-light);
}

.wbk-booking-detail-spec-value {
	padding: 14px 16px;
	color: var(--wbk-text-light);
}

/* 폼 모달 */
#wbk-booking-form-wrap {
	position: fixed;
	top: 0;
	left: 0;
	display: none;
	justify-content: center;
	align-items: center;
	width: 100%;
	height: 100%;
	background: rgba(0, 0, 0, 0.7);
	z-index: 9999;
	padding: 20px;
	box-sizing: border-box;
}

#wbk-booking-form-wrap:target {
	display: flex;
}

#wbk-booking-form-wrap > section {
	position: relative;
	max-width: 500px;
	width: 100%;
	max-height: 90vh;
	overflow-y: auto;
	background: var(--wbk-bg);
	border-radius: 16px;
	padding: 24px;
}

#wbk-booking-form-wrap > section .close-wrap {
	position: relative;
	height: 36px;
	background: var(--wbk-bg-light);
	border-bottom: 1px solid #eee;
	border-radius: 16px 16px 0 0;
	margin: -24px -24px 20px -24px;
}

#wbk-booking-form-wrap > section .close-wrap .close {
	position: absolute;
	top: 0;
	right: 0;
	width: 48px;
	height: 36px;
	background: transparent;
	color: var(--wbk-text-light);
	display: flex;
	justify-content: center;
	align-items: center;
	cursor: pointer;
	font-size: 0;
	transition: background-color 0.2s, color 0.2s;
	text-decoration: none;
	border-radius: 0 16px 0 0;
}

#wbk-booking-form-wrap > section .close-wrap .close:hover {
	background-color: #e53935;
	color: #fff;
}

#wbk-booking-form-wrap > section .close-wrap .close::before,
#wbk-booking-form-wrap > section .close-wrap .close::after {
	content: '';
	position: absolute;
	width: 16px;
	height: 2px;
	background-color: currentColor;
}

#wbk-booking-form-wrap > section .close-wrap .close::before {
	transform: rotate(45deg);
}

#wbk-booking-form-wrap > section .close-wrap .close::after {
	transform: rotate(-45deg);
}

/* ========================================
   반응형 스타일
   ======================================== */

@media (max-width: 1024px) {
	.wbk-booking-item-list-grid {
		grid-template-columns: repeat(3, 1fr);
		gap: 20px;
	}
}

@media (max-width: 768px) {
	.wbk-booking-item-list-grid {
		grid-template-columns: repeat(2, 1fr);
		gap: 16px;
	}

	.wbk-booking-item-list-filter {
		flex-direction: column;
	}

	.wbk-booking-item-list-filter > label {
		width: 100%;
	}

	.wbk-booking-category-select {
		width: 100%;
	}

	.wbk-booking-detail-wrap {
		padding: 20px;
	}

	.wbk-booking-detail-thumb,
	.wbk-booking-detail-thumb-gallery {
		height: 280px;
	}

	.wbk-booking-detail-title {
		font-size: 22px;
	}

	.wbk-booking-detail-spec {
		grid-template-columns: 1fr;
	}

	.wbk-booking-detail-btn {
		font-size: 16px;
		padding: 14px 24px;
	}

	#wbk-booking-form-wrap > section {
		padding: 20px;
		max-height: 95vh;
	}
}

@media (max-width: 480px) {
	.wbk-booking-item-list-grid {
		grid-template-columns: 1fr;
		gap: 12px;
	}

	.wbk-booking-item-info {
		padding: 12px;
	}

	.wbk-booking-detail-wrap {
		padding: 16px;
	}

	.wbk-booking-detail-thumb,
	.wbk-booking-detail-thumb-gallery {
		height: 220px;
	}

	.wbk-form-field {
		margin-bottom: 12px;
	}
}
