:root {
  --navy-900: #071626;
  --navy-800: #0b1f33;
  --navy-700: #12304d;
  --navy-600: #1b4266;
  --sea: #7fd0ff;
  --red: #e63a2e;
  --red-dark: #c42c21;
  --paper: #f5f2ec;
  --ink: #10202f;
  --ink-2: #4a5866;
  --line-dark: rgba(255, 255, 255, 0.12);
  --line: #e2ddd3;
  --sun: #e03131;
  --sat: #4dabf7;
  --radius: 14px;
  --wrap: 1120px;
  --font: 'Pretendard Variable', Pretendard, -apple-system, BlinkMacSystemFont, 'Apple SD Gothic Neo', 'Malgun Gothic', sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 64px; }
body { margin: 0; font-family: var(--font); color: #fff; background: var(--navy-800); line-height: 1.6; word-break: keep-all; overflow-wrap: anywhere; }
img { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; cursor: pointer; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* 머리 */
.top { position: fixed; inset: 0 0 auto; z-index: 30; transition: background .25s, box-shadow .25s; }
.top.is-solid { background: rgba(7, 22, 38, .94); box-shadow: 0 1px 0 var(--line-dark); backdrop-filter: saturate(1.2); }
.top .wrap { display: flex; align-items: center; gap: 12px; height: 60px; }
.brand { display: flex; align-items: center; gap: 8px; font-weight: 800; font-size: 18px; text-decoration: none; letter-spacing: -.01em; }
.brand img { width: 30px; height: 30px; border-radius: 7px; background: #fff; padding: 2px; }
.nav { display: none; margin-left: auto; gap: 24px; font-size: 15px; font-weight: 600; }
.nav a { text-decoration: none; opacity: .85; }
.nav a:hover { opacity: 1; }
.top-call { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; height: 38px; padding: 0 14px; border-radius: 999px; background: var(--red); font-weight: 700; font-size: 14px; text-decoration: none; }
@media (min-width: 860px) { .nav { display: flex; } .top-call { margin-left: 8px; } }

/* 첫 화면 */
.hero { position: relative; min-height: 88svh; display: flex; align-items: flex-end; overflow: hidden; background: var(--navy-900); }
.hero picture, .hero picture img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 64% 40%; }
.hero::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(7, 22, 38, .55) 0%, rgba(7, 22, 38, .05) 30%, rgba(7, 22, 38, .35) 60%, rgba(11, 31, 51, 1) 100%); }
.hero .wrap { position: relative; z-index: 1; padding-bottom: 40px; }
@media (min-width: 860px) {
  .hero::before { content: ''; position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, rgba(7, 22, 38, .6) 0%, rgba(7, 22, 38, .28) 36%, rgba(7, 22, 38, 0) 58%); }
  .hero .wrap { z-index: 2; }
}
.eyebrow { font-size: 13px; letter-spacing: .08em; opacity: .85; margin: 0 0 8px; }
.hero h1 { font-size: clamp(32px, 8.4vw, 64px); line-height: 1.16; margin: 0 0 14px; font-weight: 800; letter-spacing: -.03em; white-space: pre-line; text-wrap: balance; }
.hero .spec { font-size: 15px; opacity: .88; margin: 0 0 22px; }
.btns { display: flex; gap: 10px; flex-wrap: wrap; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 50px; padding: 0 22px; border-radius: 12px; font-weight: 700; font-size: 16px; text-decoration: none; border: 0; }
.btn-red { background: var(--red); color: #fff; }
.btn-red:hover { background: var(--red-dark); }
.btn-ghost { background: rgba(255, 255, 255, .12); color: #fff; border: 1px solid rgba(255, 255, 255, .38); }
.btn-line { background: #fff; color: var(--ink); border: 1px solid var(--line); }
.hero .btns .btn { flex: 1 1 140px; max-width: 220px; }

/* 섹션 */
.sec { padding: 56px 0; }
.sec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin-bottom: 20px; }
.sec h2 { font-size: clamp(22px, 5vw, 30px); margin: 0; letter-spacing: -.02em; line-height: 1.3; }
.sec .sub { margin: 4px 0 0; font-size: 14px; opacity: .75; }
.more { font-size: 14px; font-weight: 600; text-decoration: none; opacity: .85; white-space: nowrap; }
.paper { background: var(--paper); color: var(--ink); }
.paper .sub { color: var(--ink-2); opacity: 1; }

/* 이번 주 */
.week { padding: 8px 0 40px; }
.week h2 { font-size: 17px; margin: 0 0 12px; }
.week-row { display: flex; gap: 8px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 6px; scrollbar-width: none; }
.week-row::-webkit-scrollbar { display: none; }
.wday { flex: 0 0 84px; scroll-snap-align: start; background: var(--navy-700); border: 1px solid var(--line-dark); border-radius: 12px; padding: 10px 8px; text-align: center; font-size: 12px; color: #fff; text-decoration: none; }
.wday .d { opacity: .8; }
.wday .n { display: block; font-size: 22px; font-weight: 800; line-height: 1.2; margin: 4px 0 2px; }
.wday .m { color: var(--sea); }
.wday .f { display: block; opacity: .8; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wday.is-full .n, .wday.is-closed .n { color: #ff8a80; font-size: 16px; padding: 4px 0 3px; }
.wday .u { font-size: 11px; font-weight: 600; margin-left: 1px; }

/* 달력 */
.cal-box { background: var(--navy-700); border: 1px solid var(--line-dark); border-radius: var(--radius); padding: 14px 10px 16px; }
.cal-bar { display: flex; align-items: center; justify-content: space-between; margin: 0 4px 12px; }
.cal-bar strong { font-size: 18px; }
.cal-bar button { width: 44px; height: 44px; border-radius: 10px; border: 1px solid var(--line-dark); background: transparent; color: #fff; font-size: 20px; }
.cal-bar button:disabled { opacity: .3; cursor: default; }
.cal-legend { display: flex; gap: 14px; flex-wrap: wrap; font-size: 12px; opacity: .8; margin: 0 4px 10px; }
.cal-legend i { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 5px; vertical-align: 1px; }
.cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.cal-wk { text-align: center; font-size: 12px; opacity: .7; padding: 4px 0; }
.cal-wk:first-child { color: #ff8a80; opacity: 1; }
.cal-wk:last-child { color: var(--sat); opacity: 1; }
.cell { min-height: 78px; border-radius: 9px; background: rgba(255, 255, 255, .04); border: 1px solid transparent; padding: 5px 4px; text-align: center; font-size: 11px; line-height: 1.35; color: #fff; display: flex; flex-direction: column; align-items: center; gap: 1px; }
button.cell { cursor: pointer; }
button.cell:hover { border-color: rgba(255, 255, 255, .3); }
.cell .dn { font-size: 14px; font-weight: 700; }
.cell.sun .dn { color: #ff8a80; }
.cell.sat .dn { color: var(--sat); }
.cell .mu { color: var(--sea); opacity: .9; }
.cell .lf { font-weight: 800; font-size: 12px; white-space: nowrap; letter-spacing: -.03em; }
@media (max-width: 400px) { .cell .lf { font-size: 11px; } .cell { padding: 5px 2px; } }
.cell .lf.open { color: #8ce99a; }
.cell .lf.full, .cell .lf.closed { color: #ff8a80; }
.cell .fs { opacity: .75; width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cell.past, .cell.out { opacity: .35; }
.cell.today { border-color: var(--red); }
.cell.blank { background: transparent; }
.cal-note { font-size: 13px; opacity: .75; margin: 12px 4px 0; }
@media (min-width: 720px) { .cell { min-height: 96px; font-size: 12px; padding: 8px 6px; } .cell .dn { font-size: 16px; } .cell .lf { font-size: 14px; } .cal-box { padding: 20px; } }

/* 아래 시트 */
.sheet { border: 0; padding: 0; margin: auto auto 0; width: 100%; max-width: 560px; max-height: 88svh; border-radius: 18px 18px 0 0; background: #fff; color: var(--ink); }
.sheet::backdrop { background: rgba(4, 12, 20, .6); }
@media (min-width: 720px) { .sheet { margin: auto; border-radius: 18px; } }
.sheet-in { padding: 20px 18px 24px; }
.sheet-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.sheet-head h3 { margin: 0; font-size: 20px; }
.sheet-head p { margin: 2px 0 0; color: var(--ink-2); font-size: 14px; }
.x { width: 44px; height: 44px; border-radius: 10px; border: 1px solid var(--line); background: #fff; font-size: 20px; flex: none; }
.facts { display: grid; grid-template-columns: auto 1fr; gap: 8px 14px; margin: 0 0 18px; font-size: 15px; }
.facts dt { color: var(--ink-2); }
.facts dd { margin: 0; font-weight: 600; }
.big-left { font-size: 28px; font-weight: 800; }
.big-left.full, .big-left.closed { color: var(--red); }
.sheet .btns .btn { flex: 1; }

/* 배 소개 */
.boat-slides { display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding: 0 16px; margin: 0 -16px 24px; padding: 0 16px 6px; scrollbar-width: none; }
.boat-slides::-webkit-scrollbar { display: none; }
.boat-slides img { flex: 0 0 auto; height: 240px; width: auto; border-radius: 12px; scroll-snap-align: start; background: #ddd; }
@media (min-width: 720px) { .boat-slides img { height: 320px; } }
/* PC(마우스)에서는 좌우 버튼으로 넘긴다 */
.slides { position: relative; }
.slide-btn { display: none; }
@media (hover: hover) and (pointer: fine) {
  .slide-btn { display: grid; place-items: center; position: absolute; top: calc(50% - 3px); transform: translateY(-50%); z-index: 1; width: 44px; height: 44px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, 0.92); color: var(--ink); font-size: 28px; line-height: 1; box-shadow: 0 2px 10px rgba(0, 0, 0, 0.18); cursor: pointer; transition: opacity 0.2s; }
  .slide-btn:hover { background: #fff; }
  .slide-btn.prev { left: 8px; }
  .slide-btn.next { right: 8px; }
  .slide-btn[hidden] { display: grid; opacity: 0; pointer-events: none; }
  .boat-slides { scroll-behavior: smooth; }
}
.spec-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.spec-list li { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; font-size: 15px; }
.spec-list b { display: block; font-size: 13px; color: var(--red); margin-bottom: 2px; }
@media (min-width: 860px) { .spec-list { grid-template-columns: 1fr 1fr; } }
.price { margin-top: 18px; background: var(--navy-800); color: #fff; border-radius: 12px; padding: 16px; font-size: 15px; white-space: pre-line; }
.price b { color: var(--sea); display: block; font-size: 13px; margin-bottom: 2px; }

/* 조황 */
.grid-photos { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
@media (min-width: 720px) { .grid-photos { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.ph-card { position: relative; display: block; border-radius: 12px; overflow: hidden; aspect-ratio: 1; background: var(--navy-700); text-decoration: none; color: #fff; }
.ph-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.ph-card:hover img { transform: scale(1.03); }
.ph-card .cap { position: absolute; inset: auto 0 0; padding: 22px 10px 8px; font-size: 13px; font-weight: 600; background: linear-gradient(180deg, transparent, rgba(0, 0, 0, .65)); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ph-card .cap small { display: block; font-weight: 400; opacity: .8; font-size: 11px; }
.ph-card.no-img { display: flex; align-items: center; justify-content: center; padding: 12px; text-align: center; font-size: 14px; border: 1px solid var(--line-dark); }

/* 소식 */
.news { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.news li { display: flex; gap: 12px; align-items: baseline; padding: 14px 2px; border-bottom: 1px solid var(--line); font-size: 15px; }
.news time { color: var(--ink-2); font-size: 13px; flex: none; width: 76px; font-variant-numeric: tabular-nums; }
.news .t { flex: 1; min-width: 0; }
.news .t p { margin: 2px 0 0; color: var(--ink-2); font-size: 14px; white-space: pre-line; }

/* 오시는 길 */
.way { display: grid; gap: 18px; }
@media (min-width: 860px) { .way { grid-template-columns: 1fr 1.2fr; align-items: start; } }
.addr { font-size: 20px; font-weight: 700; margin: 8px 0 14px; }
.directions { display: grid; gap: 14px; font-size: 14px; line-height: 1.6; }
.way-grp { background: var(--navy-700); border: 1px solid var(--line-dark); border-radius: var(--radius); padding: 18px 16px; }
.way-h { display: flex; align-items: center; gap: 10px; margin: 0 0 12px; font-size: 17px; }
.way-h svg { width: 34px; height: 34px; padding: 7px; flex: none; border-radius: 10px; background: var(--red); fill: none; stroke: #fff; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.way-grp ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.way-route { display: grid; grid-template-columns: 56px 1fr; gap: 10px; align-items: start; padding-top: 8px; border-top: 1px solid var(--line-dark); }
.way-route:first-child { border-top: 0; padding-top: 0; }
.way-from { font-size: 12px; font-weight: 700; color: var(--sea); background: rgba(127, 208, 255, .1); border-radius: 999px; padding: 3px 0; text-align: center; }
.way-path { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 0; color: rgba(255, 255, 255, .85); }
.way-path span + span::before { content: '›'; margin: 0 6px; opacity: .4; }
.way-path span:last-child { color: #fff; font-weight: 700; }
.way-note { position: relative; padding-left: 16px; color: rgba(255, 255, 255, .85); }
.way-note::before { content: ''; position: absolute; left: 2px; top: .62em; width: 6px; height: 6px; border-radius: 50%; background: var(--sea); }

/* 하단 */
.foot { background: var(--navy-900); padding: 36px 0 110px; font-size: 13px; color: rgba(255, 255, 255, .7); }
.foot strong { color: #fff; font-size: 16px; display: block; margin-bottom: 8px; }
.foot p { margin: 2px 0; }
.foot a { text-decoration: none; }
.foot-bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 14px; font-size: 12px; }
.foot .admin-link, .foot .credit { opacity: .5; margin: 0; padding: 6px 0; }
@media (min-width: 860px) { .foot { padding-bottom: 40px; } }

/* 휴대폰 아래 고정 */
.callbar { position: fixed; inset: auto 0 0; z-index: 25; display: flex; gap: 8px; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: rgba(7, 22, 38, .96); border-top: 1px solid var(--line-dark); }
.callbar .btn { flex: 1; min-height: 48px; font-size: 15px; }
@media (min-width: 860px) { .callbar { display: none; } }

/* 갤러리 */
.page-top { padding: 92px 0 20px; }
.page-top h1 { margin: 0; font-size: clamp(26px, 6vw, 36px); letter-spacing: -.02em; }
.page-top p { margin: 4px 0 0; opacity: .75; }
.loading { text-align: center; padding: 24px; opacity: .7; font-size: 14px; }
.post-view { padding-top: 76px; }
.post-view .back { display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; text-decoration: none; opacity: .85; }
.post-view h1 { font-size: clamp(22px, 5.4vw, 32px); margin: 8px 0 2px; letter-spacing: -.02em; }
.post-view time { opacity: .7; font-size: 14px; }
.post-body { white-space: pre-line; margin: 16px 0 20px; font-size: 16px; opacity: .92; }
.post-photos { display: grid; gap: 10px; padding-bottom: 40px; }
.post-photos button { padding: 0; border: 0; background: var(--navy-700); border-radius: 10px; overflow: hidden; }
.post-photos img { width: 100%; height: auto; }

.viewer { border: 0; padding: 0; margin: 0; width: 100vw; height: 100svh; max-width: none; max-height: none; background: #000; color: #fff; }
.viewer::backdrop { background: #000; }
.viewer img { width: 100%; height: 100%; object-fit: contain; }
.viewer .vbtn { position: absolute; width: 48px; height: 48px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .14); color: #fff; font-size: 22px; }
.viewer .v-close { top: 12px; right: 12px; }
.viewer .v-prev { left: 10px; top: 50%; transform: translateY(-50%); }
.viewer .v-next { right: 10px; top: 50%; transform: translateY(-50%); }
.viewer .v-count { position: absolute; top: 22px; left: 0; right: 0; text-align: center; font-size: 14px; opacity: .8; pointer-events: none; }

/* 안내 */
.toast { position: fixed; left: 50%; bottom: 90px; transform: translateX(-50%); z-index: 60; background: #111; color: #fff; padding: 12px 18px; border-radius: 10px; font-size: 14px; max-width: calc(100% - 32px); }
.toast.is-err { background: var(--red-dark); }

/* 자주 묻는 질문 */
.faq { display: grid; gap: 8px; }
.faq-item { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 0 16px; }
.faq-item summary { cursor: pointer; list-style: none; padding: 16px 28px 16px 0; font-weight: 700; font-size: 16px; position: relative; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '+'; position: absolute; right: 0; top: 13px; font-size: 22px; color: var(--red); }
.faq-item[open] summary::after { content: '−'; }
.faq-item p { margin: 0 0 16px; color: var(--ink-2); font-size: 15px; }
