/*
 * 잉글랜드 캠핑장 전용 CSS
 * - 템플릿(Lantern) 원본 CSS는 건드리지 않고, 바꿀 것만 여기에 적는다.
 * - 이 파일은 style.css 다음에 불러오므로 같은 대상이면 여기가 이긴다.
 */

/* ===== 한글 글꼴 ===== */
:root {
	/* 제목용 세리프: 한글은 Noto Serif KR, 없으면 기본 세리프 */
	--kor-serif: "Noto Serif KR", ui-serif, Georgia, serif;
}

body {
	/* 본문: 윈도우는 맑은 고딕 */
	font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", "Malgun Gothic", "맑은 고딕", sans-serif;
	/* 한글이 단어 중간에서 줄바꿈되지 않게 */
	word-break: keep-all;
}

.display-serif,
.stay-title,
.room-name,
.section-title,
.wordmark {
	font-family: var(--kor-serif);
}

/* 한글은 영어보다 글자가 빽빽해서 줄 간격, 자간을 조금 조정 */
.section-title {
	line-height: 1.3;
}

.wordmark {
	font-size: 1.3rem;
	letter-spacing: 0.06em;
}

.stay-title {
	font-size: clamp(2.2rem, 1rem + 4.4vw, 4.4rem);
	line-height: 1.25;
}

.stay-eyebrow {
	letter-spacing: 0.12em;
}

/* ===== 예약 바 (날짜 선택 대신 안내 + 예약 버튼) ===== */
.book-value {
	margin-block: 0;
	font-size: 1.15rem;
	font-weight: 600;
}

.reserve-buttons {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
}

/* ===== 사진 자리 (사진이 없을 때 그라데이션 위에 보이는 글자) ===== */
.ph-label {
	position: relative;
	font-size: 0.875rem;
	font-weight: 500;
	opacity: 0.9;
}

/* 갤러리: 템플릿은 button 기준이라 div에도 같은 모양 적용 */
.mosaic>div {
	border-radius: var(--bs-radius-3);
	overflow: hidden;
}

.mosaic>div:first-child {
	grid-column: span 2;
	grid-row: span 2;
}

/* ===== 싸이트 목록 (01번 ~ H) ===== */
.site-chips {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
}

.site-chip {
	padding-block: 0.35rem;
	padding-inline: 0.8rem;
	border: 1px solid var(--bs-border-color);
	border-radius: 999px;
	background: var(--bs-bg-body);
	font-size: 0.85rem;
}

/* 이용 불가 싸이트 (예: 장박 중인 08번) */
.site-chip.is-closed {
	opacity: 0.45;
	text-decoration: line-through;
}

/* ===== 꼬리말: 바로 위 섹션과 구분선 ===== */
.site-footer {
	border-top: 1px solid var(--bs-border-color);
}


/* ===== 하위 페이지 ===== */
/* 하위 페이지는 머리글 뒤가 밝은 색이라 캠핑장 이름도 진한 글자로
   (템플릿 style.css에 메뉴 글자만 있고 이름은 빠져 있어서 하얗게 안 보임) */
.sub-head-page .site-header .wordmark {
	color: var(--bs-fg-body);
}

/* 카카오맵 상자 */
.map-box {
	width: 100%;
	height: 26rem;
	border: 1px solid var(--bs-border-color);
	overflow: hidden;
}


/* ===== 관리자 화면 ===== */
.admin-header {
	padding-block: 1rem;
	border-bottom: 1px solid var(--bs-border-color);
	background: var(--bs-bg-2);
}

.admin-header a {
	text-decoration: none;
}

.admin-main {
	padding-block: 2.5rem 4rem;
}

.admin-card {
	padding: 1.5rem;
	border: 1px solid var(--bs-border-color);
	border-radius: var(--bs-radius-4);
	background: var(--bs-bg-body);
}

/* 처리 결과 안내 띠 (브라우저 alert 대신) */
.admin-flash {
	padding-block: 0.85rem;
	padding-inline: 1.1rem;
	margin-bottom: 1.25rem;
	border-radius: var(--bs-radius-3);
	font-size: 0.95rem;
}

.admin-flash.is-success {
	background: #e8f3ea;
	color: #1e5b2a;
}

.admin-flash.is-error {
	background: #fbeaea;
	color: #8a1f1f;
}

/* 입력 칸 아래 오류 문구 */
.field-error {
	margin-top: 0.35rem;
	color: #b42318;
	font-size: 0.85rem;
}

/* 공지 목록 표 */
.admin-table {
	width: 100%;
	border-collapse: collapse;
}

.admin-table th,
.admin-table td {
	padding-block: 0.75rem;
	padding-inline: 0.5rem;
	border-bottom: 1px solid var(--bs-border-color);
	text-align: left;
	vertical-align: middle;
}

.admin-table th {
	font-size: 0.8rem;
	font-weight: 600;
	color: var(--bs-fg-3);
}

.admin-table .actions {
	text-align: right;
	white-space: nowrap;
}

/* "고정" 표시 (관리자 목록 + 손님 목록 같이 사용) */
.pin-badge {
	display: inline-block;
	margin-right: 0.4rem;
	padding-block: 0.1rem;
	padding-inline: 0.5rem;
	border-radius: 999px;
	background: var(--bs-primary-bg-subtle);
	color: var(--bs-primary-fg);
	font-size: 0.75rem;
	font-weight: 600;
}

/* 페이지 번호 (관리자 + 손님 공지 목록 같이 사용) */
.pager {
	display: flex;
	flex-wrap: wrap;
	gap: 0.4rem;
}

.pager a,
.pager span {
	min-width: 2.2rem;
	padding-block: 0.35rem;
	padding-inline: 0.6rem;
	border: 1px solid var(--bs-border-color);
	border-radius: var(--bs-radius-3);
	text-align: center;
	text-decoration: none;
}

.pager .is-current {
	background: var(--bs-primary-base);
	border-color: transparent;
	color: #fff;
}

/* 로그인 화면: 가운데 카드 하나 */
.login-wrap {
	min-height: 100svh;
	display: grid;
	place-items: center;
	padding: 1.5rem;
	background: var(--bs-bg-2);
}

.login-card {
	width: min(100%, 24rem);
}


/* ===== 손님 공지사항 ===== */
.notice-list {
	list-style: none;
	margin: 0;
	padding: 0;
	border-top: 1px solid var(--bs-border-color);
}

.notice-item {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 1rem;
	padding-block: 1.1rem;
	padding-inline: 0.25rem;
	border-bottom: 1px solid var(--bs-border-color);
	color: inherit;
	text-decoration: none;
}

.notice-item:hover .notice-title-text {
	text-decoration: underline;
}

.notice-date {
	flex: none;
}

/* 공지 본문: 입력한 줄바꿈을 그대로 보여 줌 */
.notice-content {
	white-space: pre-line;
	line-height: 1.8;
}

/* 메인 최근 공지 칸 (위쪽만 여백, 아래는 바로 소개 섹션) */
.home-notices {
	padding-block: 3.5rem 0;
}

/* ===== 띠 공지 (머리글 맨 위) ===== */
.site-header:has(.site-banner) {
	padding-top: 0;
}

.site-banner {
	margin-bottom: 1rem;
	padding-block: 0.55rem;
	padding-inline: 1rem;
	background: var(--bs-primary-base);
	color: #fff;
	text-align: center;
	font-size: 0.9rem;
}

.site-banner a {
	margin-left: 0.5rem;
	color: inherit;
	text-decoration: underline;
}

/* 띠가 있으면 하위 페이지 제목 띠를 그만큼 아래로 (겹치지 않게) */
body:has(.site-banner) .sub-head {
	padding-top: 10rem;
}


/* ===== 사진 ===== */
/* 메인 갤러리 칸: 사진이 있으면 a 태그로 (템플릿은 button 기준) */
.mosaic>a {
	display: block;
	border-radius: var(--bs-radius-3);
	overflow: hidden;
}

.mosaic>a:first-child {
	grid-column: span 2;
	grid-row: span 2;
}

/* 갤러리 분류 탭 */
.gallery-tabs {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
}

.gallery-tabs a {
	padding-block: 0.4rem;
	padding-inline: 1rem;
	border: 1px solid var(--bs-border-color);
	border-radius: 999px;
	text-decoration: none;
	font-size: 0.9rem;
}

.gallery-tabs a.is-current {
	background: var(--bs-primary-base);
	border-color: transparent;
	color: #fff;
}

/* 갤러리 사진 칸 (화면 폭에 맞춰 칸 수 자동) */
.gallery-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(14rem, 1fr));
	gap: 0.75rem;
}

.gallery-item {
	border: 0;
	padding: 0;
	background: none;
	border-radius: var(--bs-radius-3);
	overflow: hidden;
	cursor: zoom-in;
}

.gallery-item img {
	transition: transform 0.4s ease;
}

.gallery-item:hover img {
	transform: scale(1.04);
}

/* 크게 보기: 잘리지 않게 전체가 보이도록 */
.viewer-img {
	display: block;
	width: 100%;
	max-height: 75vh;
	object-fit: contain;
}

/* 관리자: 사진 자리 5칸 */
.slot-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(11rem, 1fr));
	gap: 1rem;
}

/* 관리자: 사진 목록 카드 */
.photo-admin-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(16rem, 1fr));
	gap: 1rem;
}

.photo-card {
	padding: 0.9rem;
	border: 1px solid var(--bs-border-color);
	border-radius: var(--bs-radius-4);
}

/* ===== 5단계: 설정 / 요금 / 싸이트 관리 ===== */

/* 입력 칸 아래 작은 도움말 */
.field-hint {
	margin-top: 0.35rem;
	margin-bottom: 0;
	color: var(--bs-fg-3);
	font-size: 0.85rem;
}

/* 싸이트 관리: 이용 불가인 줄은 바탕을 살짝 어둡게 */
.admin-table tr.is-closed td {
	background: var(--bs-bg-2);
}

/* 싸이트 관리: 메모 칸은 넓게 */
.admin-table .note-input {
	min-width: 18rem;
}

/* ===== 웹 마무리: 관리자 첫 화면 / 관리 바로가기 / 오류 화면 ===== */

/* 관리자 첫 화면 메뉴 카드 (화면 폭에 맞춰 칸 수 자동) */
.admin-tiles {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(16rem, 1fr));
	gap: 1rem;
}

.admin-tile {
	display: flex;
	flex-direction: column;
	gap: 0.4rem;
	padding: 1.25rem;
	border: 1px solid var(--bs-border-color);
	border-radius: var(--bs-radius-4);
	background: var(--bs-bg-body);
	color: inherit;
	text-decoration: none;
	transition: border-color 0.15s, box-shadow 0.15s;
}

.admin-tile:hover,
.admin-tile:focus-visible {
	border-color: var(--bs-primary-base);
	box-shadow: 0 2px 10px rgb(0 0 0 / 6%);
}

.admin-tile-title {
	font-size: 1.1rem;
	font-weight: 600;
}

.admin-tile-desc {
	color: var(--bs-fg-3);
	font-size: 0.9rem;
}

/* 카드 안 주의 문구 (예: 메인 큰 사진 없음) */
.admin-tile-warn {
	color: #b42318;
	font-size: 0.85rem;
}

/* 손님 화면 왼쪽 아래 관리 바로가기 (관리자 로그인 상태에서만) */
.admin-quickbar {
	position: fixed;
	left: 1rem;
	bottom: 1rem;
	z-index: 1050;
	display: flex;
	align-items: center;
	gap: 0.75rem;
	padding-block: 0.5rem;
	padding-inline: 0.9rem;
	border-radius: 999px;
	background: #2b2b2b;
	color: #fff;
	font-size: 0.85rem;
	box-shadow: 0 4px 14px rgb(0 0 0 / 20%);
}

.admin-quickbar a {
	color: #fff;
	text-decoration: underline;
}

.admin-quickbar form {
	margin: 0;
}

.admin-quickbar button {
	padding: 0;
	border: 0;
	background: none;
	color: #ddd;
	font-size: inherit;
	text-decoration: underline;
	cursor: pointer;
}

/* 오류 화면: 화면 가운데쯤 */
.error-page {
	display: flex;
	align-items: center;
	min-height: 100vh;
	padding-block: 4rem;
}


/* ===== 화면 다듬기 (2026-11-20) ===== */

/* 메인: 스크롤하면 위에 붙는 띠 — 이름 + 메뉴 + 예약하기 */
.book-dock .dock-name {
	font-size: 1.05rem;
	color: inherit;
	text-decoration: none;
	white-space: nowrap;
}

.dock-nav {
	display: none;
	gap: 1.5rem;
	font-size: 0.9rem;
}

.dock-nav a {
	color: inherit;
	text-decoration: none;
	white-space: nowrap;
}

.dock-nav a:hover {
	color: var(--bs-primary-base);
}

/* 메뉴는 넓은 화면에서만 (좁은 화면은 6단계 모바일 때) */
@media (width >=992px) {
	.dock-nav {
		display: flex;
	}
}

/* 하위 페이지 위치 표시: "홈 › 캠핑장 소개" */
.breadcrumb-item+.breadcrumb-item::before {
	content: "›";
	padding-inline: 0.5rem;
	color: var(--bs-fg-3);
}

/* 공지 상세: 본문 폭은 읽기 좋게 제한(왼쪽 정렬), 본문 아래 구분선 */
.notice-content {
	max-width: 46rem;
	padding-bottom: 2.5rem;
	border-bottom: 1px solid var(--bs-border-color);
}

.notice-nav {
	max-width: 46rem;
}

/* 관리자 사진 관리: 카드 조금 넓게 (글자 잘림 방지) */
.photo-admin-grid {
	grid-template-columns: repeat(auto-fill, minmax(18rem, 1fr));
}

/* 관리자 싸이트 관리: 이용 불가 줄을 더 눈에 띄게 */
.admin-table tr.is-closed td {
	background: #fbf0ea;
}

.closed-badge {
	display: inline-block;
	margin-left: 0.4rem;
	padding-block: 0.1rem;
	padding-inline: 0.45rem;
	border-radius: 999px;
	background: #b42318;
	color: #fff;
	font-size: 0.7rem;
	vertical-align: middle;
}


/* ===== 모바일 손보기: 손님 화면 ===== */

/* 1. 메인: 스크롤을 조금 내려도 머리글 바탕은 투명하게
      (템플릿 base.css의 .is-stuck 크림색 바탕이 style.css의 투명 설정을 이겨서
       흰 캠핑장 이름이 안 보이던 문제. 하위 페이지는 진한 글씨라 그대로 둠) */
body:not(.sub-head-page) .site-header.is-stuck {
	background: transparent;
	border-bottom-color: transparent;
	backdrop-filter: none;
}

/* 2. 서랍 메뉴 (좁은 화면): 왼쪽부터, 크게, 줄 구분 */
@media (max-width: 991.98px) {
	.site-header .drawer .navbar-nav {
		width: 100%;
		margin-left: 0 !important;
		align-items: stretch;
	}

	.site-header .drawer .nav-link {
		display: block;
		padding-block: 0.85rem;
		font-size: 1.15rem;
		border-bottom: 1px solid var(--bs-border-color);
	}
}

/* 서랍 아래 예약처·전화 버튼
   보일지 말지는 layout.html 맨 아래 스크립트가 정함 (좁은 화면에서만 보이게)
   넓은 화면에서는 템플릿 CSS가 이 영역의 보이기·크기를 강하게 정해서 CSS로는 숨겨지지 않았음
   여기서는 모양만 */
.drawer-actions {
	flex-direction: column;
	gap: 0.6rem;
	margin-top: 1.75rem;
}

.drawer-actions-label {
	margin: 0;
	color: var(--bs-fg-3);
	font-size: 0.8rem;
}

/* 3. 메인 위에 붙는 띠의 ≡ 버튼: 가로 메뉴가 보이는 넓은 화면에서는 숨김 */
.dock-menu-btn {
	display: inline-flex;
	color: inherit;
}

@media (width >=992px) {
	.dock-menu-btn {
		display: none;
	}
}

/* 폰 화면 공통 */
@media (width < 768px) {

	/* 4. 메인 예약 바: 정보 4개를 2칸씩, 예약 버튼 줄은 한 줄 전체 */
	.book-grid {
		grid-template-columns: repeat(2, 1fr);
		gap: 0.75rem 1rem;
	}

	.book-grid>.book-field:last-child {
		grid-column: 1 / -1;
	}

	/* 5. 갤러리 페이지: 한 줄에 2장 */
	.gallery-grid {
		grid-template-columns: repeat(2, 1fr);
		gap: 0.5rem;
	}

	/* 6. 주차처럼 긴 줄: 제목 아래 줄에 왼쪽 정렬로 */
	.spec-row-long {
		flex-wrap: wrap;
		gap: 0.35rem;
	}

	.spec-row-long>.text-end {
		flex-basis: 100%;
		text-align: left;
	}

	/* 8. 하위 페이지 큰 제목을 폰에 맞게 */
	.sub-head .section-title {
		font-size: 2.25rem;
		line-height: 1.25;
	}
}

/* 8. 위치 표시 "홈 › 페이지": "홈" 글자 양옆 여백 없애기 (왼쪽 줄도 맞춰짐) */
.sub-head .breadcrumb-link {
	padding-inline: 0;
}

/* ===== 모바일 손보기: 관리자 화면 ===== */

/* 3. 관리자 머리글 (PC: 이름 · 메뉴 · 로그아웃 한 줄) */
.admin-header-inner {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.75rem 1.5rem;
}

.admin-nav {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.5rem 1.5rem;
	margin-left: auto;
}

.admin-logout {
	margin: 0;
}

@media (width < 768px) {

	/* 3. 폰: 첫 줄 = 이름 + 로그아웃, 둘째 줄 = 옆으로 밀어서 보는 메뉴 한 줄 */
	.admin-logout {
		order: 2;
		margin-left: auto;
	}

	.admin-nav {
		order: 3;
		width: 100%;
		margin-left: 0;
		flex-wrap: nowrap;
		gap: 1.25rem;
		overflow-x: auto;
		white-space: nowrap;
		padding-bottom: 0.25rem;
		scrollbar-width: none;
		/* 스크롤 막대 숨김 (손가락으로 밀면 됨) */
	}

	.admin-nav::-webkit-scrollbar {
		display: none;
	}

	/* 1. 싸이트 관리: 표 대신 줄마다 카드
	      첫 줄 = 싸이트 이름(+이용 불가 표시) · 스위치, 둘째 줄 = 메모 칸 전체 폭
	      종류 칸은 지금 전부 "캠핑사이트"라 폰에서는 생략 */
	.site-table thead {
		display: none;
	}

	.site-table,
	.site-table tbody {
		display: block;
	}

	.site-table tr {
		display: grid;
		grid-template-columns: 1fr auto;
		align-items: center;
		gap: 0.5rem 1rem;
		padding-block: 0.85rem;
		padding-inline: 0.5rem;
		border-bottom: 1px solid var(--bs-border-color);
	}

	.site-table td {
		display: block;
		padding: 0;
		border-bottom: 0;
	}

	.site-table td:nth-child(2) {
		display: none;
	}

	.site-table td:nth-child(4) {
		grid-column: 1 / -1;
	}

	.site-table .note-input {
		min-width: 0;
		width: 100%;
	}

	.site-table label {
		white-space: nowrap;
	}

	/* 이용 불가 줄: 칸마다가 아니라 줄 전체에 바탕색 */
	.site-table tr.is-closed {
		background: #fbf0ea;
	}

	.site-table tr.is-closed td {
		background: transparent;
	}

	/* 2. 요금 관리: 표 대신 "항목 이름 … 값" 세로 목록 + 아래에 수정 버튼 */
	.price-table thead {
		display: none;
	}

	.price-table,
	.price-table tbody,
	.price-table tr {
		display: block;
	}

	.price-table td {
		display: flex;
		justify-content: space-between;
		gap: 1rem;
		padding-inline: 0;
	}

	/* 칸 앞에 항목 이름 (prices.html의 data-label) */
	.price-table td[data-label]::before {
		content: attr(data-label);
		color: var(--bs-fg-3);
		font-size: 0.85rem;
	}

	/* 종류 이름 줄은 제목처럼 */
	.price-table td:first-child {
		display: block;
		padding-top: 0;
	}

	.price-table td.actions {
		justify-content: flex-start;
		padding-top: 1rem;
		border-bottom: 0;
	}

	/* 4. 사진 관리 "사진 자리": 한 줄에 2개 */
	.slot-grid {
		grid-template-columns: repeat(2, 1fr);
		gap: 0.75rem;
	}
}