:root {
  --blue: #287dfa; --blue-d: #1a66d6; --ink: #0f294d; --text: #2b3a55; --muted: #6a7a93; --line: #e4e9f2;
  --bg: #f5f7fa; --card: #fff; --orange: #ff6f00; --r: 12px; --shadow: 0 2px 10px rgba(15, 41, 77, .07);
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; font-family: Pretendard, -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Malgun Gothic", "Noto Sans KR", sans-serif;
  color: var(--text); background: var(--bg); line-height: 1.6; -webkit-font-smoothing: antialiased; word-break: keep-all; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.wrap.narrow { max-width: 820px; }
.muted { color: var(--muted); } .small { font-size: 13px; }
h1, h2, h3 { color: var(--ink); line-height: 1.3; }

/* 상단 */
.topbar { background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; }
.topbar-in { display: flex; align-items: center; gap: 28px; height: 64px; }
.logo { display: flex; align-items: center; gap: 8px; font-weight: 800; font-size: 20px; color: var(--ink); }
.logo:hover { text-decoration: none; }
.logo-mark { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 8px; background: var(--blue); color: #fff; font-weight: 900; }
.nav { display: flex; gap: 4px; overflow-x: auto; }
.nav a { padding: 8px 12px; border-radius: 8px; color: var(--text); font-weight: 600; white-space: nowrap; }
.nav a:hover, .nav a.on { background: #eef4ff; color: var(--blue); text-decoration: none; }
.admin-link { margin-left: auto; font-size: 13px; }

/* 히어로 · 검색 */
.hero { background: linear-gradient(135deg, #1f6fe6 0%, #3d8dff 55%, #6fb1ff 100%); color: #fff; padding: 56px 0 72px; }
.hero h1 { color: #fff; font-size: 40px; margin: 0 0 6px; }
.hero-sub { margin: 0 0 28px; opacity: .92; font-size: 18px; }
.search-box { background: #fff; border-radius: 16px; box-shadow: 0 12px 40px rgba(0, 30, 80, .18); padding: 8px 20px 16px; color: var(--text); }
.search-tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 16px; }
.search-tabs button { border: 0; background: none; padding: 12px 16px; font: inherit; font-weight: 700; color: var(--muted); cursor: pointer; border-bottom: 3px solid transparent; }
.search-tabs button.on { color: var(--blue); border-bottom-color: var(--blue); }
.search-form { display: flex; gap: 12px; align-items: flex-end; flex-wrap: wrap; }
.search-form label { display: flex; flex-direction: column; gap: 4px; font-size: 12px; color: var(--muted); font-weight: 600; }
.search-form .f-grow { flex: 1; min-width: 220px; }
.search-form input { height: 48px; border: 1px solid var(--line); border-radius: 10px; padding: 0 14px; font: inherit; font-size: 16px; color: var(--ink); min-width: 150px; }
.search-form input:focus { outline: 2px solid var(--blue); border-color: transparent; }
.search-note { margin: 10px 0 0; font-size: 12px; color: var(--muted); }

/* 버튼 */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 40px; padding: 0 18px; border-radius: 10px; border: 0;
  background: var(--blue); color: #fff; font: inherit; font-weight: 700; cursor: pointer; white-space: nowrap; }
.btn:hover { background: var(--blue-d); text-decoration: none; }
.btn-lg { height: 48px; padding: 0 28px; font-size: 16px; }
.btn-sm { height: 34px; padding: 0 14px; font-size: 14px; background: var(--orange); }
.btn-sm:hover { background: #e66300; }
.btn-block { display: flex; width: 100%; margin: 8px 0; }
.btn-ghost { background: #eef4ff; color: var(--blue); }
.btn-ghost:hover { background: #dce9ff; }

/* 섹션 · 카드 */
.sec { margin: 44px 0; }
.sec-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 16px; }
.sec-head h2 { margin: 0; font-size: 24px; }
.grid { display: grid; gap: 18px; }
.grid-4 { grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); }
.grid-2 { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.card { background: var(--card); border-radius: var(--r); box-shadow: var(--shadow); overflow: hidden; display: flex; flex-direction: column; color: inherit; transition: transform .15s, box-shadow .15s; }
.card:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(15, 41, 77, .12); text-decoration: none; }
.card-img { position: relative; display: block; aspect-ratio: 16/10; background: linear-gradient(135deg, #cfe0ff, #e9f1ff) center/cover no-repeat; }
.card-img-ph { position: absolute; inset: 0; display: grid; place-items: center; font-size: 34px; font-weight: 800; color: rgba(40, 125, 250, .45); }
.badge { position: absolute; top: 10px; left: 10px; background: rgba(15, 41, 77, .78); color: #fff; font-size: 12px; font-weight: 700; padding: 3px 8px; border-radius: 6px; }
.deal-box .badge { position: static; display: inline-block; }
.card-body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.card-loc { font-size: 12px; color: var(--muted); font-weight: 600; }
.card-title { margin: 0; font-size: 16px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card-title a { color: var(--ink); }
.card-meta { display: flex; gap: 8px; align-items: center; font-size: 14px; }
.stars { color: #ffb400; letter-spacing: -1px; }
.rating { background: var(--blue); color: #fff; font-weight: 800; font-size: 13px; padding: 1px 7px; border-radius: 6px; }
.card-foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 8px; padding-top: 8px; }
.price { font-weight: 800; color: var(--orange); font-size: 18px; }
.price small { font-size: 12px; color: var(--muted); font-weight: 600; }
.price.big { font-size: 28px; margin: 12px 0 4px; }

/* 여행지 타일 */
.dest-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 14px; }
.dest-tile { aspect-ratio: 4/3; border-radius: var(--r); padding: 16px; display: flex; flex-direction: column; justify-content: flex-end; color: #fff;
  background: linear-gradient(135deg, #2b7cf6, #63a9ff) center/cover no-repeat; box-shadow: var(--shadow); }
.dest-tile:nth-child(3n+2) { background-color: #12a58a; } .dest-tile:nth-child(3n+3) { background-color: #f47b20; }
.dest-tile strong { font-size: 20px; } .dest-tile span { font-size: 13px; opacity: .9; }
.dest-tile:hover { text-decoration: none; filter: brightness(1.05); }

.usp { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; }
.usp div { background: #fff; border-radius: var(--r); padding: 20px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 4px; }
.usp strong { color: var(--ink); } .usp span { color: var(--muted); font-size: 14px; }

/* 목록 페이지 */
.page-head { padding: 32px 0 8px; } .page-head h1 { margin: 0 0 4px; }
.filters { display: flex; gap: 8px; flex-wrap: wrap; margin: 12px 0 24px; }
.filters select, .filters input { height: 40px; border: 1px solid var(--line); border-radius: 10px; padding: 0 12px; font: inherit; background: #fff; }
.empty { text-align: center; padding: 48px 0; color: var(--muted); }
.pager { display: flex; gap: 6px; justify-content: center; margin: 32px 0; flex-wrap: wrap; }
.pager a { min-width: 38px; height: 38px; display: grid; place-items: center; border-radius: 8px; background: #fff; box-shadow: var(--shadow); }
.pager a.on { background: var(--blue); color: #fff; }
.crumbs { font-size: 13px; color: var(--muted); padding: 18px 0 10px; }
.crumbs a { color: var(--muted); } .crumbs.light, .crumbs.light a { color: rgba(255, 255, 255, .85); }

/* 상품 상세 */
.deal-detail { display: grid; grid-template-columns: 1.6fr 1fr; gap: 24px; }
.deal-hero { border-radius: var(--r); min-height: 360px; background: linear-gradient(135deg, #cfe0ff, #e9f1ff) center/cover no-repeat; }
.deal-box { background: #fff; border-radius: var(--r); padding: 24px; box-shadow: var(--shadow); align-self: start; position: sticky; top: 84px; }
.deal-box h1 { font-size: 24px; margin: 10px 0 6px; }

/* 여행지 상세 */
.dest-hero { min-height: 300px; display: flex; align-items: flex-end; padding-bottom: 80px; color: #fff;
  background: linear-gradient(135deg, #1f6fe6, #63a9ff) center/cover no-repeat; }
.dest-hero h1 { color: #fff; font-size: 40px; margin: 0; }
.dest-search { margin-top: -56px; position: relative; }
.dest-layout { display: grid; grid-template-columns: 1fr 300px; gap: 32px; margin: 32px 0; }
.side { display: flex; flex-direction: column; gap: 16px; }
.side-box { background: #fff; border-radius: var(--r); padding: 18px; box-shadow: var(--shadow); position: sticky; top: 84px; }
.side-box h3 { margin: 0 0 8px; font-size: 16px; }
.side-link { display: block; padding: 6px 0; border-top: 1px solid var(--line); font-size: 14px; }
.toc { display: flex; gap: 6px; flex-wrap: wrap; margin: 16px 0 8px; }
.toc a { background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 4px 12px; font-size: 13px; color: var(--text); }

/* 본문 */
.prose { font-size: 16.5px; }
.prose h1 { font-size: 32px; margin: 8px 0 12px; }
.prose h2 { font-size: 24px; margin: 40px 0 12px; padding-top: 8px; }
.prose h3 { font-size: 18px; margin: 0 0 4px; }
.prose p { margin: 0 0 14px; }
.prose .lead { font-size: 18px; color: var(--ink); }
.prose .cover { border-radius: var(--r); margin: 12px 0; }
.items { display: flex; flex-direction: column; gap: 12px; }
.items.two { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.item { display: flex; gap: 14px; background: #fff; padding: 16px 18px; border-radius: var(--r); box-shadow: var(--shadow); }
.item p { margin: 0 0 6px; font-size: 15px; }
.num { flex: none; width: 28px; height: 28px; border-radius: 50%; background: var(--blue); color: #fff; display: grid; place-items: center; font-weight: 800; font-size: 14px; }
.timeline { list-style: none; padding: 0; border-left: 3px solid #cfe0ff; margin-left: 8px; }
.timeline li { padding: 0 0 12px 18px; position: relative; }
.timeline li::before { content: ''; position: absolute; left: -9px; top: 6px; width: 14px; height: 14px; border-radius: 50%; background: var(--blue); border: 3px solid #fff; }
.faq { background: #fff; border-radius: 10px; padding: 12px 16px; margin: 8px 0; box-shadow: var(--shadow); }
.faq summary { font-weight: 700; cursor: pointer; color: var(--ink); }
.faq p { margin: 8px 0 0; }
.tags span { display: inline-block; background: #eef4ff; color: var(--blue); border-radius: 6px; padding: 2px 8px; margin: 0 6px 6px 0; font-size: 13px; }

/* 하단 */
.footer { background: #0f294d; color: #c4cfe0; margin-top: 64px; padding: 40px 0 28px; font-size: 14px; }
.footer .logo { color: #fff; }
.footer-cols { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 24px; }
.footer h4 { color: #fff; margin: 4px 0 10px; }
.footer-cols a:not(.logo) { display: block; color: #c4cfe0; padding: 3px 0; }
.footer .muted { color: #8fa0bb; }
.disclosure-note { border-top: 1px solid rgba(255, 255, 255, .12); padding-top: 16px; margin-top: 24px; font-size: 12.5px; color: #8fa0bb; }

@media (max-width: 860px) {
  .hero h1, .dest-hero h1 { font-size: 30px; }
  .deal-detail, .dest-layout { grid-template-columns: 1fr; }
  .deal-box, .side-box { position: static; }
  .footer-cols { grid-template-columns: 1fr; }
  .topbar-in { gap: 12px; }
  .logo { font-size: 17px; white-space: nowrap; }
  .search-form > label, .search-form .btn { width: 100%; }
}
