@charset "UTF-8";

/* ===== board : gallery ===== */
.gallery-section { max-width: var(--container); margin: 0 auto; padding: 80px 20px 140px; }

.gallery-list { display: grid; grid-template-columns: repeat(4, 1fr); column-gap: 20px; row-gap: 60px; }
.gallery-item:nth-child(even) { margin-top: 50px; }
.gallery-item a { display: block; }
.gallery-thumb { aspect-ratio: 16 / 15; border-radius: 30px; overflow: hidden; }
.gallery-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.gallery-item a:hover .gallery-thumb img { transform: scale(1.06); }
.gallery-title { margin-top: 20px; font-size: 20px; font-weight: 700; text-align: center; letter-spacing: -0.02em; transition: color 0.2s ease; }
.gallery-item a:hover .gallery-title { color: var(--accent); }

@media (max-width: 1024px) {
  .gallery-list { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .sub-main { padding-top: 90px; }
  .sub-head { margin-bottom: 40px; }
  .sub-head-logo { width: 150px; }
  .gallery-section { padding: 50px 16px 80px; }
  .gallery-list { column-gap: 12px; row-gap: 36px; }
  .gallery-item:nth-child(even) { margin-top: 30px; }
  .gallery-thumb { border-radius: 18px; }
  .gallery-title { margin-top: 12px; font-size: 15px; }
}

/* ===== board : gallery lightbox ===== */
.lightbox { position: fixed; inset: 0; z-index: 1000; display: flex; align-items: center; justify-content: center; padding: 60px 100px; background: rgba(0, 0, 0, 0.8); opacity: 0; visibility: hidden; transition: opacity 0.3s ease, visibility 0s linear 0.3s; }
.lightbox.is-open { opacity: 1; visibility: visible; transition: opacity 0.3s ease; }
.lightbox-figure { display: flex; flex-direction: column; align-items: center; max-width: 100%; max-height: 100%; transform: translateY(30px) scale(0.92); transition: transform 0.45s cubic-bezier(0.2, 0.9, 0.3, 1.2); }
.lightbox.is-open .lightbox-figure { transform: translateY(0) scale(1); }
.lightbox-figure img { display: block; max-width: min(1000px, 100%); max-height: calc(100vh - 180px); border-radius: 24px; object-fit: contain; box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6), 0 10px 25px rgba(0, 0, 0, 0.4); }
.lightbox-figure figcaption { margin-top: 20px; font-size: 20px; font-weight: 700; color: #fff; text-align: center; }
.lightbox button { position: absolute; border: 0; background: none; color: #fff; cursor: pointer; }
.lightbox-close { top: 24px; right: 24px; width: 48px; height: 48px; }
.lightbox-close::before,
.lightbox-close::after { content: ""; position: absolute; top: 50%; left: 50%; width: 28px; height: 2px; background: currentColor; }
.lightbox-close::before { transform: translate(-50%, -50%) rotate(45deg); }
.lightbox-close::after { transform: translate(-50%, -50%) rotate(-45deg); }
.lightbox-arrow { top: 50%; width: 56px; height: 56px; margin-top: -28px; border: 1px solid rgba(255, 255, 255, 0.4) !important; border-radius: 50%; transition: background 0.2s ease; }
.lightbox-arrow:hover { background: rgba(255, 255, 255, 0.15); }
.lightbox-arrow::before { content: ""; position: absolute; top: 50%; left: 50%; width: 12px; height: 12px; border-top: 2px solid currentColor; border-left: 2px solid currentColor; }
.lightbox-prev { left: 24px; }
.lightbox-prev::before { transform: translate(-30%, -50%) rotate(-45deg); }
.lightbox-next { right: 24px; }
.lightbox-next::before { transform: translate(-70%, -50%) rotate(135deg); }

@media (max-width: 768px) {
  .lightbox { padding: 70px 16px; }
  .lightbox-figure img { max-height: calc(100vh - 220px); border-radius: 16px; }
  .lightbox-figure figcaption { margin-top: 14px; font-size: 16px; }
  .lightbox-close { top: 12px; right: 8px; }
  .lightbox-arrow { top: auto; bottom: 20px; width: 44px; height: 44px; margin-top: 0; }
  .lightbox-prev { left: calc(50% - 54px); }
  .lightbox-next { right: calc(50% - 54px); }
}

/* ===== board : review ===== */
.review-board { max-width: var(--container); margin: 0 auto; padding: 80px 20px 140px; }

.review-list { display: grid; grid-template-columns: repeat(4, 1fr); column-gap: 20px; row-gap: 50px; align-items: start; }
.review-item { background: #fff; border: 1px solid #e5e5e5; border-radius: 30px; transition: box-shadow 0.3s ease; }
.review-item:nth-child(even) { margin-top: 50px; }
.review-item:hover { box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08); }
.review-item-link { display: block; min-height: 340px; padding: 40px 30px; border-radius: inherit; }

.review-item-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 24px; }
.review-item-meta { display: flex; align-items: center; }
.review-item-user { position: relative; margin-left: 16px; padding-left: 16px; font-size: 18px; color: #555; }
.review-item-user::before { content: ""; position: absolute; left: 0; top: 50%; width: 1px; height: 14px; background: #ccc; transform: translateY(-50%); }
.review-item-photo { flex: 0 0 auto; width: 72px; height: 72px; border-radius: 50%; object-fit: cover; }
.review-item-text { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 6; overflow: hidden; font-size: 18px; color: #555; line-height: 1.7; word-break: keep-all; overflow-wrap: anywhere; }

/* 별점 : 회색 별 위에 --rate(%) 만큼 노란 별을 덮어서 표시 */
.star-rating { position: relative; display: inline-block; flex: 0 0 auto; font-size: 20px; line-height: 1; letter-spacing: 1px; color: #e2e2e2; white-space: nowrap; }
.star-rating::before { content: "★★★★★"; }
.star-rating::after { content: "★★★★★"; position: absolute; left: 0; top: 0; width: var(--rate, 100%); overflow: hidden; color: #ffb400; }

/* 목록 아래 가운데 : 후기등록 버튼 (서식은 문의하기 버튼과 동일) */
.board-write-btn { position: relative; display: flex; align-items: center; justify-content: center; width: 250px; height: 72px; margin: 60px auto 0; padding-right: 30px; border-radius: var(--radius-pill); background: var(--accent); font-size: 22px; font-weight: 300; color: #fff; letter-spacing: -0.02em; transition: background 0.2s ease; }
.board-write-btn svg { position: absolute; right: 36px; top: 50%; width: 16px; height: 16px; transform: translateY(-50%); transition: transform 0.2s ease; }
.board-write-btn:hover { background: #1a55e0; }
.board-write-btn:hover svg { transform: translate(3px, calc(-50% - 3px)); }
.board-write-btn + .board-paging { margin-top: 60px; }

@media (max-width: 1280px) {
  .review-list { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .review-board { padding: 50px 16px 80px; }
  .review-list { grid-template-columns: 1fr; row-gap: 16px; }
  .review-item { border-radius: 20px; }
  .review-item:nth-child(even) { margin-top: 0; }
  .review-item-link { min-height: 0; padding: 28px 22px; }
  .review-item .star-rating { font-size: 17px; }
  .review-item-user, .review-item-text { font-size: 15px; }
  .review-item-photo { width: 56px; height: 56px; }
  .board-write-btn { width: 100%; height: 60px; margin-top: 40px; font-size: 18px; }
  .board-write-btn svg { right: 28px; }
  .board-write-btn + .board-paging { margin-top: 40px; }
}

/* ===== board : review view (후기 상세) ===== */
.review-view { max-width: 1000px; margin: 0 auto; padding: 80px 20px 140px; }
.review-view-article[hidden],
.review-view-empty[hidden],
.review-view-btns [hidden] { display: none; }

.review-view-article { padding: 50px 60px 60px; border: 1px solid #e5e5e5; border-radius: 30px; }
.review-view-head { display: flex; align-items: center; gap: 24px; padding-bottom: 30px; border-bottom: 1px solid #eee; }
.review-view-photo { flex: 0 0 auto; width: 88px; height: 88px; border-radius: 50%; object-fit: cover; }
.review-view-info { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.review-view-product { display: inline-block; padding: 4px 14px; border-radius: var(--radius-pill); background: #f2f6ff; font-size: 14px; font-weight: 600; color: var(--accent); }
.review-view-info .star-rating { font-size: 22px; }
.review-view-meta { display: flex; align-items: center; font-size: 16px; color: #777; }
.review-view-meta i { display: inline-block; width: 1px; height: 12px; margin: 0 12px; background: #ccc; }
.review-view-text { padding-top: 30px; font-size: 18px; color: #444; line-height: 1.8; white-space: pre-line; word-break: keep-all; overflow-wrap: anywhere; }

.review-view-empty { padding: 80px 20px; border: 1px solid #e5e5e5; border-radius: 30px; font-size: 20px; color: #555; text-align: center; }
.review-view-btns { display: flex; justify-content: center; gap: 10px; margin-top: 40px; }

@media (max-width: 768px) {
  .review-view { padding: 50px 16px 80px; }
  .review-view-article { padding: 28px 22px 32px; border-radius: 20px; }
  .review-view-head { gap: 16px; padding-bottom: 20px; }
  .review-view-photo { width: 64px; height: 64px; }
  .review-view-info .star-rating { font-size: 18px; }
  .review-view-meta { font-size: 14px; }
  .review-view-text { padding-top: 20px; font-size: 15px; }
  .review-view-empty { padding: 50px 20px; border-radius: 20px; font-size: 16px; }
  .review-view-btns { margin-top: 30px; }
}

/* ===== board : review write (후기 작성) ===== */
/* 입력칸 서식은 문의하기(.form-row)와 공통 */
.review-write { max-width: 900px; margin: 0 auto; padding: 80px 20px 140px; }
.review-write-form { padding: 50px 60px 60px; border-radius: 30px; background: #fff; box-shadow: 0 6px 30px rgba(0, 0, 0, 0.08); }
.form-row .form-label { display: block; margin-bottom: 10px; font-size: 18px; font-weight: 500; }
.form-row input:disabled { background: #f7f7f7; color: #999; cursor: not-allowed; }
.review-write-form .form-row textarea { height: 220px; }
.form-count { margin-top: 8px; font-size: 14px; color: #999; text-align: right; }

/* 별점 선택 : 마크업이 5→1 순서라 row-reverse 로 뒤집고, 선택·hover 한 별부터 왼쪽 별까지 색칠 */
.star-picker { display: inline-flex; flex-direction: row-reverse; gap: 4px; }
.form-row .star-picker input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.form-row .star-picker label { margin: 0; font-size: 40px; line-height: 1; color: #e2e2e2; cursor: pointer; transition: color 0.15s ease; }
.star-picker input:checked ~ label { color: #ffb400; }
.star-picker:hover input ~ label { color: #e2e2e2; }
.star-picker:hover label:hover,
.star-picker:hover label:hover ~ label { color: #ffb400; }
.star-picker input:focus-visible + label { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }

.review-write-btns { display: flex; justify-content: center; gap: 10px; margin-top: 40px; }
.review-write-btns .inquiry-submit { margin: 0; }
.review-write-btns .mypage-btn { height: 72px; font-size: 20px; }

@media (max-width: 768px) {
  .review-write { padding: 50px 16px 80px; }
  .review-write-form { padding: 30px 20px; border-radius: 20px; }
  .form-row .form-label { font-size: 16px; }
  .review-write-form .form-row textarea { height: 180px; font-size: 15px; }
  .form-row .star-picker label { font-size: 34px; }
  .review-write-btns { margin-top: 30px; }
  .review-write-btns .mypage-btn { flex: 0 0 100px; min-width: 0; height: 60px; font-size: 17px; }
  .review-write-btns .inquiry-submit { flex: 1; width: auto; }
}

/* ===== board : paging (갤러리 · 후기 공통) ===== */
.board-paging { display: flex; align-items: center; justify-content: center; gap: 6px; margin-top: 100px; }
.paging-num { display: flex; align-items: center; gap: 6px; }
.board-paging a { display: flex; flex: 0 0 auto; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 50%; font-size: 17px; font-weight: 500; color: #888; transition: background 0.2s ease, color 0.2s ease; }
.board-paging a:hover { background: #f2f2f2; color: #222; }
.board-paging a.is-active { background: #2b2b2b; font-weight: 700; color: #fff; }
.paging-arrow { position: relative; border: 1px solid #e5e5e5; }
.paging-arrow::before,
.paging-arrow::after { content: ""; position: absolute; top: 50%; left: 50%; width: 7px; height: 7px; border-top: 1.5px solid currentColor; border-left: 1.5px solid currentColor; }
.paging-first::before,
.paging-first::after,
.paging-prev::before { transform: translate(-30%, -50%) rotate(-45deg); }
.paging-last::before,
.paging-last::after,
.paging-next::before { transform: translate(-70%, -50%) rotate(135deg); }
.paging-first::before,
.paging-last::before { margin-left: -4px; }
.paging-first::after,
.paging-last::after { margin-left: 4px; }
.paging-prev::after,
.paging-next::after { display: none; }
.paging-prev { margin-right: 10px; }
.paging-next { margin-left: 10px; }

@media (max-width: 768px) {
  .board-paging { gap: 4px; margin-top: 60px; }
  .paging-num { gap: 0; }
  .board-paging a { width: 32px; height: 32px; font-size: 15px; }
  .paging-prev { margin-right: 2px; }
  .paging-next { margin-left: 2px; }
}

/* ===== board : reservation ===== */
.reserve-section { max-width: var(--container); margin: 0 auto; padding: 80px 20px 140px; }
.reserve-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; }
.reserve-box { min-width: 0; padding: 50px 60px; border: 1px solid #e5e5e5; border-radius: 30px; }

.step-title { margin-bottom: 30px; font-size: 22px; font-weight: 500; letter-spacing: -0.02em; }
.step-title span { font-size: 18px; font-weight: 600; color: var(--accent); }
.step-title--03 { margin-top: 50px; }

/* 단계별 노출 : 처음엔 달력만 가운데 → 날짜 선택 시 달력은 왼쪽으로, 오른쪽에 STEP 02 박스 등장 */
.reserve-row.is-intro .reserve-box--step2 { display: none; }
.reserve-box--step2 { animation: reserve-step-in 0.6s ease 0.15s both; } /* display:none 이 풀릴 때 재생 */
@keyframes reserve-step-in { from { opacity: 0; transform: translateX(60px); } }

@media (min-width: 1281px) {
  .reserve-row > .reserve-box:first-child { transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1); }
  .reserve-row.is-intro > .reserve-box:first-child { transform: translateX(calc(50% + 20px)); } /* 박스 절반 + gap 절반 → 가운데 */
}
@media (max-width: 1280px) {
  @keyframes reserve-step-in { from { opacity: 0; transform: translateY(40px); } }
}

/* calendar */
.calendar-nav { display: flex; align-items: center; justify-content: center; gap: 20px; margin-bottom: 30px; }
.calendar-month { font-size: 28px; font-weight: 800; }
.calendar-nav button { width: 30px; height: 30px; border: 0; background: none; font-size: 28px; line-height: 1; color: #555; cursor: pointer; }
.calendar-nav button:disabled { color: #ddd; cursor: default; }

.calendar-week,
.calendar-days { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); text-align: center; }
.calendar-week { margin-bottom: 10px; }
.calendar-week li { font-size: 16px; font-weight: 600; }
.calendar-week .sun { color: #ff4d4d; }
.calendar-days li { display: flex; justify-content: center; padding: 6px 0; }
.calendar-days button { position: relative; width: 100%; max-width: 48px; height: auto; aspect-ratio: 1 / 1; border: 0; border-radius: 50%; background: none; font-family: inherit; font-size: 18px; font-weight: 500; color: #222; cursor: pointer; transition: background 0.2s ease; }
.calendar-days button:hover { background: #eef3ff; }
.calendar-days button.sun { color: #ff4d4d; }
.calendar-days button:disabled { color: #ccc; background: none; cursor: default; }
.calendar-days button.is-today { color: var(--accent); font-weight: 700; }
.calendar-days button em { position: absolute; left: 50%; bottom: -6px; transform: translateX(-50%); font-size: 11px; font-style: normal; white-space: nowrap; }
.calendar-days button.is-active { background: var(--accent); color: #fff; }
.calendar-msg { margin-top: 24px; padding: 14px 20px; background: #f3f3f3; font-size: 16px; color: #333; text-align: center; }

/* product accordion */
.product-item { border-bottom: 1px solid #e5e5e5; }
.product-head { position: relative; width: 100%; padding: 18px 30px 18px 0; border: 0; background: none; font-family: inherit; font-size: 18px; color: #222; text-align: left; cursor: pointer; }
.product-head::after { content: ""; position: absolute; right: 6px; top: 50%; width: 8px; height: 8px; border-right: 1.5px solid #555; border-bottom: 1.5px solid #555; transform: translateY(-75%) rotate(45deg); transition: transform 0.2s ease; }
.product-item.is-open .product-head::after { transform: translateY(-25%) rotate(-135deg); }
.product-list:not(.is-ready) .product-item:not(.is-open) .product-body { display: none; } /* JS 로딩 전 깜빡임 방지 */
.product-times { display: flex; flex-wrap: wrap; gap: 14px; padding: 4px 0 24px; }

.time-btn,
.duration-btn { min-width: 130px; padding: 10px 20px; border: 1px solid #bbb; border-radius: var(--radius-pill); background: #fff; font-family: inherit; font-size: 18px; color: #222; cursor: pointer; transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease; }
.time-btn:hover,
.duration-btn:hover { border-color: var(--accent); color: var(--accent); }
.time-btn.is-active,
.duration-btn.is-active { border-color: var(--accent); background: var(--accent); color: #fff; }
.duration-list { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.duration-btn { min-width: 0; }

/* notice */
.reserve-notice { display: flex; align-items: flex-end; justify-content: space-between; gap: 30px; flex-wrap: wrap; margin-top: 50px; }
.notice-text h3 { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; font-size: 26px; font-weight: 800; font-style: italic; }
.notice-ico { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 50%; background: #ff6a2b; color: #fff; font-size: 22px; font-style: normal; }
.notice-text li { padding-left: 46px; font-size: 18px; color: #444; line-height: 2; }
.notice-tel { margin-right: 80px; font-size: 26px; font-weight: 800; font-style: italic; }
.notice-tel a { font-size: 60px; letter-spacing: -0.01em; }

/* 예약하기 버튼 */
.reserve-submit { margin-top: 10px; } /* 버튼 서식은 문의하기(.inquiry-submit)와 공통 */

@media (max-width: 1280px) {
  .reserve-row { grid-template-columns: minmax(0, 1fr); }
  .notice-tel { margin-right: 0; }
}

@media (max-width: 768px) {
  .reserve-section { padding: 50px 16px 80px; }
  .reserve-box { padding: 30px 20px; border-radius: 20px; }
  .step-title { font-size: 17px; }
  .step-title span { display: block; margin-bottom: 4px; font-size: 15px; }
  .calendar-days button { max-width: 40px; font-size: 15px; }
  .calendar-days li { padding: 4px 1px; }
  .time-btn, .duration-btn { min-width: 0; padding: 8px 16px; font-size: 15px; }
  .duration-list { grid-template-columns: repeat(2, 1fr); }
  .notice-text h3 { font-size: 20px; }
  .notice-text li { padding-left: 0; font-size: 15px; }
  .notice-tel { font-size: 18px; }
  .notice-tel a { font-size: 34px; }
}

@media (max-width: 480px) {
  .reserve-box { padding: 24px 14px; }
  .calendar-nav { gap: 12px; margin-bottom: 20px; }
  .calendar-month { font-size: 22px; }
  .calendar-week li { font-size: 14px; }
  .calendar-days button { font-size: 14px; }
  .calendar-days button em { font-size: 10px; bottom: -8px; }
  .calendar-msg { padding: 12px 14px; font-size: 14px; }
  .product-times { gap: 8px; }
  .time-btn { padding: 8px 12px; font-size: 14px; }
  .notice-tel a { font-size: 28px; white-space: nowrap;}
}

/* ===== board : inquiry ===== */
.inquiry-section { max-width: var(--container); margin: 0 auto; padding: 80px 20px 140px; }
.inquiry-wrap { display: flex; align-items: flex-start; }
.inquiry-visual { flex: 0 0 70%; }
.inquiry-visual img { width: 100%; aspect-ratio: 1240 / 760; object-fit: cover; }

.inquiry-form { position: relative; z-index: 1; flex: 0 0 42%; margin: 40px 0 0 -12%; padding: 40px 50px 50px; background: #fff; border-radius: 30px; box-shadow: 0 6px 30px rgba(0, 0, 0, 0.08); }
.form-row + .form-row { margin-top: 24px; }
.form-row label { display: block; margin-bottom: 10px; font-size: 18px; font-weight: 500; }
.form-row input,
.form-row select,
.form-row textarea { width: 100%; height: 56px; padding: 0 20px; border: 1px solid #e5e5e5; border-radius: 10px; background: #fff; font-family: inherit; font-size: 17px; color: #222; outline: none; transition: border-color 0.2s ease; }
.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus { border-color: var(--accent); }
.form-row input::placeholder { color: #bbb; }
.form-row select { appearance: none; padding-right: 50px; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'%3E%3Cpath d='M1 1l6 6 6-6' fill='none' stroke='%23222' stroke-width='2'/%3E%3C/svg%3E") no-repeat right 20px center; cursor: pointer; }
.form-row textarea { height: 100px; padding: 16px 20px; resize: vertical; }

.form-agree { display: flex; align-items: center; justify-content: flex-end; gap: 8px; margin-top: 16px; font-size: 14px; color: #777; cursor: pointer; }
.form-agree input { width: 14px; height: 14px; accent-color: var(--accent); }

.inquiry-submit, .reserve-submit-btn { position: relative; display: block; width: 250px; height: 72px; margin: 30px auto 0; padding: 0 50px 0 20px; border: 0; border-radius: var(--radius-pill); background: var(--accent); font-family: inherit; font-size: 22px; font-weight: 300; color: #fff; letter-spacing: -0.02em; cursor: pointer; transition: background 0.2s ease; }
.inquiry-submit svg, .reserve-submit-btn svg { position: absolute; right: 36px; top: 50%; width: 16px; height: 16px; transform: translateY(-50%); transition: transform 0.2s ease; }
.inquiry-submit:hover svg, .reserve-submit-btn:hover svg { transform: translate(3px, calc(-50% - 3px)); }
.inquiry-submit:hover, .reserve-submit-btn:hover { background: #1a55e0; }
/**/
.after-submit-btn { position: relative; display: block; width: 250px; height: 72px; margin: 60px auto 0; padding: 0 50px 0 20px; border: 0; border-radius: var(--radius-pill); background: var(--accent); font-family: inherit; font-size: 22px; font-weight: 300; color: #fff; letter-spacing: -0.02em; cursor: pointer; transition: background 0.2s ease; }
.after-submit-btn svg { position: absolute; right: 36px; top: 50%; width: 16px; height: 16px; transform: translateY(-50%); transition: transform 0.2s ease; }
.after-submit-btn:hover svg { transform: translate(3px, calc(-50% - 3px)); }
.after-submit-btn:hover { background: #1a55e0; }

@media (max-width: 1024px) {
  .inquiry-wrap { flex-direction: column; }
  .inquiry-visual { flex: none; width: 100%; }
  .inquiry-form { flex: none; width: calc(100% - 40px); margin: -60px auto 0; }
}

@media (max-width: 768px) {
  .inquiry-section { padding: 50px 16px 80px; }
  .inquiry-form { width: 100%; margin-top: 20px; padding: 30px 20px; border-radius: 20px; }
  .form-row label { font-size: 16px; }
  .form-row input, .form-row select { height: 50px; font-size: 15px; }
  .form-agree { justify-content: flex-start; align-items: flex-start; font-size: 13px; }
  .inquiry-submit, .reserve-submit-btn { width: 100%; height: 60px; font-size: 18px; }
  .inquiry-submit svg, .reserve-submit-btn svg { right: 28px; }
}

/* ===== board : location ===== */
.location-page { max-width: var(--container); margin: 0 auto; padding: 80px 20px 140px; }

.loc-label { display: inline-block; min-width: 120px; padding: 4px 18px; border: 1px solid var(--accent); border-radius: var(--radius-pill); font-size: 18px; font-weight: 500; color: var(--accent); text-align: center; }

/* 지도 + 기본 정보 */
.loc-top { display: flex; align-items: flex-end; }
.loc-map { flex: 0 0 68%; aspect-ratio: 16 / 7.5; background: #eee; }
.loc-map-canvas { width: 100%; height: 100%; }
.loc-map-label { padding: 6px 12px; margin-bottom: 44px; background: #fff; border: 1px solid #002157; border-radius: 6px; font-size: 14px; font-weight: 700; color: #002157; white-space: nowrap; box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15); }
.loc-info { position: relative; z-index: 1; flex: 0 0 34%; margin-left: -2%; margin-bottom: 0; padding: 50px 60px; background: #002157; color: #fff; }
.loc-info .loc-label { border-color: rgba(255, 255, 255, 0.5); color: #fff; }
.loc-info dd { margin: 14px 0 30px; }
.loc-info dd:last-child { margin-bottom: 0; }
.loc-addr { font-size: 20px; color: #dbe2f2; }
.loc-tel { font-size: clamp(28px, 2.8vw, 54px); font-weight: 800; letter-spacing: -0.01em; line-height: 1.1; }

/* 이용 경로 */
.loc-routes { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; margin-top: 40px; }
.route-card { display: flex; border: 1px solid #ddd;  padding-left: 50px;}
.route-map { flex: 0 0 52%; align-self: center; }
.route-map img { width: 100%; height: auto; }
.route-body { flex: 1; display: flex; align-items: center; padding: 20px 40px; }

.route-info dd { margin: 14px 0 30px; font-size: 18px; color: #333; }
.route-info dd:last-child { margin-bottom: 0; }
.route-info ol { margin-top: 14px; }
.route-info ol li + li { margin-top: 4px; }
.route-info ol span { margin-right: 6px; }

/* 지하철 경로 타임라인 : [이동수단 | 라인 | 내용] */
.route-steps { width: 100%; }
.step { position: relative; padding: 0 0 26px 80px; min-height: 80px; }
.step + .step { padding-top: 14px;}
.step strong { display: block; font-size: 17px; font-weight: 600; color: #222; overflow-wrap: anywhere; } /* 띄어쓰기 없는 긴 정류장명도 줄바꿈 (모바일 가로 스크롤 방지) */
.step em { display: block; font-size: 13px; font-style: normal; color: #aaa; }
.step p { margin-top: 6px; font-size: 15px; color: #777; }

.step::before { content: ""; position: absolute; left: 38px; top: 22px; width: 11px; height: 11px; border: 2px solid #3cb44b; border-radius: 50%; background: #fff; z-index: 1; }
.step::after { content: ""; position: absolute; left: 45px; top: 34px; bottom: -22px; border-left: 2px dashed #3cb44b; }
.step--bus::after { border-left-style: solid; border-left-width: 3px; }
.step--end::after { display: none; }

.step-pin { position: absolute; left: 27px; top: -6px; z-index: 2; display: flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 50%; background: #3cb44b; font-size: 11px; font-weight: 700; color: #fff; box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15); }
.step + .step .step-pin { top: 10px; }
.step--end .step-pin { background: #f0365a; }
.step--start::before,
.step--end::before { display: none; }

.step-move { position: absolute; left: 0; bottom: 0; display: flex; flex-direction: column; align-items: center; width: 30px; font-size: 13px; color: #555; }
.step-move svg { width: 20px; height: 20px; fill: #555; }

@media (max-width: 1280px) {
  .loc-top { flex-direction: column; align-items: stretch; }
  .loc-map { flex: none; aspect-ratio: 16 / 9; }
  .loc-info { flex: none; margin: 0; }
  .loc-routes { grid-template-columns: 1fr; }
}

@media (max-width: 1024px) {
  .route-card { padding-left: 0; }
}

@media (max-width: 768px) {
  .location-page { padding: 50px 16px 80px; }
  .loc-info { padding: 30px 24px; }
  .loc-addr { font-size: 16px; }
  .route-card { flex-direction: column; }
  .route-map { flex: none; }
  .route-body { padding: 24px 16px; }
  .step { padding-left: 64px; }
  .step::before { left: 26px; }
  .step::after { left: 33px; }
  .step-pin { left: 15px; }
  .step strong { font-size: 15px; }
  .loc-label { min-width: 100px; font-size: 15px; }
  .route-info dd { font-size: 15px; }
  .loc-map{aspect-ratio : 13/9;}
}

/* ===== board : mypage ===== */
.mypage-section { max-width: 1200px; margin: 0 auto; padding: 80px 20px 140px; }
.mypage-guest[hidden],
.mypage-member[hidden] { display: block; }

.mypage-btn { display: inline-flex; align-items: center; justify-content: center; min-width: 160px; height: 52px; padding: 0 24px; border: 1px solid #2b2b2b; border-radius: var(--radius-pill); background: #2b2b2b; font-family: inherit; font-size: 17px; font-weight: 500; color: #fff; cursor: pointer; transition: background 0.2s ease, color 0.2s ease; }
.mypage-btn:hover { background: #000; }
.mypage-btn--line { background: #fff; color: #2b2b2b; }
.mypage-btn--line:hover { background: #2b2b2b; color: #fff; }

.mypage-guest { padding: 80px 20px; border: 1px solid #e5e5e5; border-radius: 30px; text-align: center; }
.mypage-guest p { margin-bottom: 24px; font-size: 20px; color: #555; }

.mypage-profile { display: flex; align-items: center; gap: 24px; padding: 36px 50px; border-radius: 30px; background: #f2f6ff; }
.profile-avatar { flex: 0 0 72px; height: 72px; border-radius: 50%; background: var(--accent) url("../images/sec05_ico01.png") no-repeat center / 60%; }
.profile-text { flex: 1; }
.profile-hello { font-size: 24px; }
.profile-hello strong { font-weight: 800; color: var(--accent); }
.profile-meta { margin-top: 4px; font-size: 16px; color: #777; }
.profile-meta span { margin-left: 6px; color: #333; }
.profile-meta i { display: inline-block; width: 1px; height: 12px; margin: 0 14px; background: #ccc; }
.profile-links { display: flex; gap: 10px; }

.mypage-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; margin-top: 30px; }
.mypage-box { padding: 40px 50px; border: 1px solid #e5e5e5; border-radius: 30px; }
.mypage-box h3 { margin-bottom: 24px; font-size: 22px; font-weight: 700; }
.mypage-box .join-row input:disabled { color: #999; cursor: not-allowed; }
.mypage-check { margin-top: 18px; }

.mypage-withdraw { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 30px; padding-top: 20px; border-top: 1px solid #eee; }
.mypage-withdraw p { font-size: 14px; color: #999; }
.mypage-withdraw button { flex: 0 0 auto; border: 0; background: none; font-family: inherit; font-size: 14px; color: #999; text-decoration: underline; cursor: pointer; }
.mypage-withdraw button:hover { color: #f0365a; }

@media (max-width: 1024px) {
  .mypage-profile { flex-wrap: wrap; }
  .profile-links { flex: 1 0 100%; }
  .mypage-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .mypage-section { padding: 50px 16px 80px; }
  .mypage-profile { padding: 24px 20px; border-radius: 20px; gap: 16px; }
  .profile-avatar { flex-basis: 56px; height: 56px; }
  .profile-hello { font-size: 19px; }
  .profile-meta { font-size: 14px; }
  .profile-links .mypage-btn { flex: 1; min-width: 0; height: 46px; font-size: 15px; text-align: center; }
  .mypage-box { padding: 28px 20px; border-radius: 20px; }
  .mypage-withdraw { flex-direction: column; align-items: flex-start; }
}
