/* =========================================================================
   여행위키 by 아시아엔조이 — 여행 플랫폼형 디자인 시스템
   마이리얼트립·NOL(야놀자) 레퍼런스: 사진 중심 카드 · 랭킹 리스트 · 원형 썸네일
   ========================================================================= */

:root {
  /* 텍스트 */
  --ink: #171C24;
  --ink-2: #333D4B;
  --ink-3: #4E5968;
  --ink-4: #8B95A1;
  --ink-5: #B0B8C1;

  /* 선·배경 */
  --line: #E8EBF0;
  --line-soft: #F2F4F8;
  --line-strong: #DCE1E9;
  --bg: #FFFFFF;
  --bg-tint: #F6F8FB;
  --surface: #FFFFFF;

  /* 브랜드 */
  --brand: #0B63F6;
  --brand-dark: #084BC0;
  --brand-weak: #EAF1FE;
  --brand-line: #C8DCFE;
  --coral: #FF5A45;
  --coral-weak: #FFF0ED;
  --mint: #03C75A;
  --mint-dark: #04763B;
  --mint-weak: #E9F9F0;
  --mint-line: #C6F0D8;

  --radius-xs: 8px;
  --radius-sm: 12px;
  --radius: 16px;
  --radius-lg: 22px;
  --shadow-xs: 0 1px 2px rgba(17, 24, 39, .05);
  --shadow-sm: 0 2px 8px rgba(17, 24, 39, .06);
  --shadow: 0 6px 18px -8px rgba(17, 24, 39, .18);
  --shadow-lg: 0 16px 40px -18px rgba(17, 24, 39, .3);
  --font: "Pretendard", "Pretendard Variable", "Apple SD Gothic Neo", "Noto Sans KR",
          "Malgun Gothic", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --wrap: 1200px;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16.5px;
  line-height: 1.7;
  color: var(--ink);
  background: var(--bg);
  word-break: keep-all;
  overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
}

.wrap { width: min(var(--wrap), calc(100% - 48px)); margin: 0 auto; }
.wrap.narrow { width: min(880px, calc(100% - 48px)); }
.wrap.wide { width: min(var(--wrap), calc(100% - 48px)); }

a { color: #1B64DA; text-decoration: none; text-underline-offset: 3px; }
a:hover { text-decoration: underline; }

:focus-visible { outline: 3px solid rgba(11, 99, 246, .35); outline-offset: 2px; border-radius: 6px; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 300;
  background: var(--brand); color: #fff; padding: 10px 16px; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

/* -------------------------------------------------------------------------
   헤더 (1줄: 로고·검색·메뉴 / 2줄: 여행지 퀵 바)
   - position: sticky/fixed 를 쓰지 않는다. 전체 페이지 캡처·스크롤 시 헤더가
     페이지 중간에 겹쳐 보이던 문제를 없애고 항상 최상단에 고정 배치한다.
   ------------------------------------------------------------------------- */
.site-header {
  position: relative;
  z-index: 50;
  background: #fff;
  border-bottom: 1px solid var(--line);
}
.header-main { padding: 13px 0; }
.header-inner { display: flex; align-items: center; gap: 26px; }

.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); flex: none; }
.brand:hover { text-decoration: none; }
.brand-mark {
  display: grid; place-items: center;
  width: 38px; height: 38px; border-radius: 12px;
  background: linear-gradient(140deg, #2F8BFF 0%, #0B63F6 55%, #0A4FD0 100%);
  color: #fff; font-size: 18px; font-weight: 800; letter-spacing: -.02em;
  box-shadow: 0 4px 12px -4px rgba(11, 99, 246, .6);
}
.brand-mark.small { width: 26px; height: 26px; font-size: 13px; border-radius: 8px; box-shadow: none; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-text strong { font-size: 19px; font-weight: 800; letter-spacing: -.035em; }
.brand-text small { font-size: 11px; color: var(--ink-4); letter-spacing: .01em; margin-top: 3px; }

.head-nav { display: flex; align-items: center; gap: 2px; flex: none; margin-left: auto; }
.nav-link {
  font-size: 15px; font-weight: 600; color: var(--ink-3);
  padding: 9px 13px; border-radius: 9px; white-space: nowrap;
}
.nav-link:hover { background: var(--line-soft); color: var(--ink); text-decoration: none; }
.nav-cta {
  display: inline-flex; align-items: center; gap: 4px;
  margin-left: 6px; font-size: 14px; font-weight: 700; color: #fff;
  background: var(--brand);
  padding: 10px 15px; border-radius: 10px; white-space: nowrap;
  box-shadow: 0 4px 12px -6px rgba(11, 99, 246, .7);
  transition: background .15s ease;
}
.nav-cta:hover { background: var(--brand-dark); text-decoration: none; }
.ext-arrow { font-size: 12px; opacity: .85; }

/* 2줄: 여행지·주제 퀵 아이콘 바 */
.cat-bar { border-top: 1px solid #F1F4F9; background: #fff; }
.cat-bar-inner {
  display: flex; align-items: center; gap: 2px;
  padding: 7px 0; overflow-x: auto; scrollbar-width: none;
  -ms-overflow-style: none;
}
.cat-bar-inner::-webkit-scrollbar { display: none; }
.cat-chip {
  display: inline-flex; align-items: center; gap: 8px; flex: none;
  padding: 5px 13px 5px 5px; border-radius: 999px;
  font-size: 14px; font-weight: 600; color: var(--ink-2); white-space: nowrap;
  transition: background .15s ease, color .15s ease;
}
.cat-chip:hover { background: var(--bg-tint); color: var(--brand); text-decoration: none; }
.cat-chip img {
  width: 30px; height: 30px; border-radius: 50%; object-fit: cover;
  box-shadow: inset 0 0 0 1px rgba(17, 24, 39, .06);
}

/* 검색 (헤더 공통) */
.search-box {
  position: relative;
  display: flex; align-items: center; flex: 1 1 auto;
  max-width: 520px; height: 46px;
  padding: 0 5px 0 0;
  background: #F4F6FA;
  border: 1.5px solid transparent; border-radius: 12px;
  transition: background .15s ease, border-color .15s ease, box-shadow .15s ease;
}
.search-box:focus-within {
  background: #fff; border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(11, 99, 246, .1);
}
.search-icon { display: grid; place-items: center; width: 46px; flex: none; color: var(--ink-4); }
.search-box:focus-within .search-icon { color: var(--brand); }
.search-input {
  flex: 1; min-width: 0; height: 100%; padding: 0 4px;
  border: 0; background: transparent; outline: none;
  font-family: inherit; font-size: 15px; color: var(--ink);
}
.search-input::placeholder { color: var(--ink-4); }
.search-input::-webkit-search-cancel-button { -webkit-appearance: none; }
.search-submit {
  flex: none; height: 36px; padding: 0 17px;
  border: 0; border-radius: 9px; background: var(--brand); color: #fff;
  font-family: inherit; font-size: 14px; font-weight: 700; cursor: pointer;
  transition: background .15s ease;
}
.search-submit:hover { background: var(--brand-dark); }

.search-toggle {
  display: none; width: 42px; height: 42px; margin-left: auto;
  place-items: center; border: 1px solid var(--line); border-radius: 11px;
  background: #fff; color: var(--ink-3); cursor: pointer;
}

/* 검색 결과 드롭다운 */
.search-panel {
  position: absolute; left: 0; right: 0; top: calc(100% + 8px); z-index: 90;
  max-height: min(68vh, 520px); overflow-y: auto;
  margin: 0; padding: 8px; list-style: none;
  background: #fff; border: 1px solid var(--line);
  border-radius: 14px; box-shadow: var(--shadow-lg);
  text-align: left;
}
.search-panel[hidden] { display: none; }
.sp-head { display: none; }
.search-item {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 10px 11px; border-radius: 9px; color: var(--ink);
}
.search-item:hover, .search-item.is-active { background: #F5F8FC; text-decoration: none; }
.sp-code {
  flex: none; display: grid; place-items: center;
  width: 26px; height: 26px; margin-top: 1px; border-radius: 50%;
  background: var(--brand-weak); color: #1F5BD8;
  font-size: 10.5px; font-weight: 800; letter-spacing: .02em;
}
.search-item .sp-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.search-item strong {
  font-size: 14.5px; font-weight: 600; line-height: 1.42; color: var(--ink);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.search-item mark { background: #FFF1B8; color: inherit; border-radius: 3px; padding: 0 1px; }
.sp-meta { font-size: 12px; color: var(--ink-4); }
.sp-empty { padding: 20px 12px; font-size: 13.5px; color: var(--ink-4); text-align: center; line-height: 1.6; }
.sp-empty strong { color: var(--ink-3); }

/* 맨 위로 — 오른쪽 하단 구석에 작게 고정 (본문 글자를 가리지 않게) */
.to-top {
  position: fixed; right: 16px; bottom: 20px; z-index: 40;
  display: grid; place-items: center;
  width: 40px; height: 40px; border-radius: 50%;
  background: rgba(255, 255, 255, .96); border: 1px solid var(--line);
  color: var(--ink-3); font-size: 16px; font-weight: 700; line-height: 1;
  box-shadow: 0 4px 14px rgba(17, 24, 39, .14);
  opacity: 0; pointer-events: none; transform: translateY(6px);
  transition: opacity .2s ease, transform .2s ease;
}
.to-top.is-on { opacity: 1; pointer-events: auto; transform: none; }
.to-top:hover { color: var(--brand); border-color: var(--brand-line); text-decoration: none; }

/* -------------------------------------------------------------------------
   본문 공통
   ------------------------------------------------------------------------- */
main { padding: 0 0 72px; }

.breadcrumb { font-size: 12.5px; color: var(--ink-4); margin: 22px 0 12px; }
.breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; }
.breadcrumb li { min-width: 0; max-width: 100%; }
.breadcrumb li[aria-current="page"] {
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  overflow-wrap: anywhere;
}
.breadcrumb li + li::before { content: "›"; margin-right: 6px; color: #C6CDD5; }
.breadcrumb a { color: var(--ink-4); }
.breadcrumb a:hover { color: var(--ink-3); }

h1 {
  font-size: clamp(26px, 3.4vw, 36px);
  line-height: 1.34; letter-spacing: -.03em; font-weight: 800;
  margin: 0 0 12px;
}
h2 {
  font-size: clamp(19px, 2.2vw, 23px); line-height: 1.4; font-weight: 800;
  letter-spacing: -.025em; margin: 40px 0 14px;
  padding-bottom: 10px; border-bottom: 1px solid var(--line);
}
h3 { font-size: 17px; font-weight: 700; margin: 26px 0 10px; letter-spacing: -.015em; }
p { margin: 0 0 14px; }

.page-head { margin: 8px 0 26px; max-width: 900px; }
.page-meta {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
  font-size: 13px; color: var(--ink-4); margin: 0 0 10px;
}
.pill {
  background: var(--brand-weak); color: #1F5BD8;
  border-radius: 999px; padding: 3px 11px; font-weight: 700; font-size: 12px;
}
.meta-dot { color: #D1D6DC; }
.section-note { font-size: 13px; color: var(--ink-4); margin: -6px 0 22px; }
.lede { font-size: 17px; color: var(--ink-3); line-height: 1.72; margin: 0 0 10px; }
.note { font-size: 13.5px; color: var(--ink-4); }
.more-link { font-size: 14.5px; margin-top: 6px; }
.more-link a { font-weight: 700; }

/* 섹션(홈 공통) */
.section { margin: 46px 0; }
.section-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 10px 16px; flex-wrap: wrap; margin-bottom: 18px;
}
.section-head h2 {
  margin: 0; padding: 0; border: 0;
  font-size: clamp(20px, 2.4vw, 24px); letter-spacing: -.03em;
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
}
.h-accent { color: var(--coral); font-size: .78em; letter-spacing: -.01em; font-weight: 800; }
.section-sub { margin: 0; font-size: 14px; color: var(--ink-4); }
.section-more { font-size: 13.5px; font-weight: 600; color: var(--ink-4); white-space: nowrap; }
.section-more:hover { color: var(--brand); text-decoration: none; }
.section.tint {
  background: var(--bg-tint);
  border-radius: var(--radius-lg);
  padding: 28px 26px 30px;
  margin: 46px 0;
}

/* -------------------------------------------------------------------------
   홈 — 3분할 와이드 포토 배너
   ------------------------------------------------------------------------- */
.hero-banners {
  display: grid; grid-template-columns: 1.85fr 1fr 1fr;
  gap: 12px; margin: 20px 0 34px; height: 352px;
}
.hb {
  position: relative; display: block; overflow: hidden;
  border-radius: 20px; color: #fff; background: #202A38;
  isolation: isolate;
}
.hb img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; z-index: 0;
  transition: transform .6s cubic-bezier(.2, .7, .3, 1);
}
.hb:hover img { transform: scale(1.045); }
.hb::after {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(180deg, rgba(10, 16, 26, .05) 0%, rgba(10, 16, 26, .12) 42%, rgba(9, 14, 24, .78) 100%);
}
.hb:hover { text-decoration: none; }
.hb-body {
  position: relative; z-index: 2;
  display: flex; flex-direction: column; justify-content: flex-end;
  height: 100%; padding: 24px 26px;
}
.hb-kicker {
  align-self: flex-start;
  margin: 0 0 10px; padding: 4px 10px; border-radius: 7px;
  background: rgba(255, 255, 255, .16);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  font-size: 11.5px; font-weight: 700; letter-spacing: .01em; color: #fff;
}
.hb-title {
  margin: 0; font-size: 22px; font-weight: 800; line-height: 1.32;
  letter-spacing: -.03em; color: #fff; white-space: pre-line;
  text-shadow: 0 2px 14px rgba(6, 12, 22, .35);
}
.hb-text {
  margin: 8px 0 0; font-size: 13.5px; line-height: 1.5;
  color: rgba(255, 255, 255, .86);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.hb-cta {
  display: inline-flex; align-items: center; gap: 5px; margin-top: 14px;
  font-size: 13px; font-weight: 700; color: #fff;
}
.hb-cta::after { content: "›"; font-size: 16px; line-height: 1; }
.hb-main .hb-title { font-size: 32px; }
.hb-main .hb-text { font-size: 14.5px; max-width: 30ch; }
.hb-main .hb-body { padding: 30px 32px; }

/* -------------------------------------------------------------------------
   홈 — 원형 사진 여행지 목록
   ------------------------------------------------------------------------- */
.dest-rail {
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: 18px 8px; margin: 2px 0 4px;
}
.dest {
  display: flex; flex-direction: column; align-items: center; gap: 9px;
  width: 86px; color: var(--ink-2); text-align: center;
}
.dest:hover { text-decoration: none; color: var(--brand); }
.dest-thumb {
  display: block; width: 76px; height: 76px; border-radius: 50%;
  overflow: hidden; background: var(--line-soft);
  box-shadow: 0 0 0 3px #fff, 0 3px 10px rgba(17, 24, 39, .14);
  transition: transform .2s ease, box-shadow .2s ease;
}
.dest-thumb img { width: 100%; height: 100%; object-fit: cover; }
.dest:hover .dest-thumb {
  transform: translateY(-3px);
  box-shadow: 0 0 0 3px #fff, 0 8px 18px rgba(11, 99, 246, .28);
}
.dest span.dest-label { font-size: 13.5px; font-weight: 600; line-height: 1.3; }

/* -------------------------------------------------------------------------
   홈 — 인기 질문 랭킹 (사진 + 순위)
   ------------------------------------------------------------------------- */
.rank-grid {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2px 18px; margin: 0; padding: 8px 0; list-style: none;
}
.rank-card {
  display: flex; align-items: center; gap: 14px;
  padding: 12px 10px; border-radius: 14px; color: var(--ink);
  transition: background .15s ease;
}
.rank-card:hover { background: #fff; text-decoration: none; box-shadow: var(--shadow-xs); }
.rank-no {
  flex: none; min-width: 26px; text-align: center; white-space: nowrap;
  font-size: 17px; font-weight: 800; color: var(--brand); letter-spacing: -.02em;
  font-variant-numeric: tabular-nums;
}
.rank-thumb {
  flex: none; display: block; width: 66px; height: 66px;
  border-radius: 13px; overflow: hidden; background: var(--line-soft);
}
.rank-thumb img { width: 100%; height: 100%; object-fit: cover; }
.rank-body { min-width: 0; }
.rank-title {
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden; font-size: 15.5px; font-weight: 600; line-height: 1.42;
  letter-spacing: -.01em;
}
.rank-meta { display: flex; align-items: center; gap: 7px; margin-top: 6px; font-size: 12.5px; color: var(--ink-4); }
.tag {
  display: inline-block; padding: 2px 8px; border-radius: 6px;
  background: var(--brand-weak); color: #1F5BD8;
  font-size: 11.5px; font-weight: 700; white-space: nowrap;
}
.tag.coral { background: var(--coral-weak); color: #D93F2B; }
.tag.mint { background: var(--mint-weak); color: var(--mint-dark); }
.tag.gray { background: var(--line-soft); color: var(--ink-3); }

/* -------------------------------------------------------------------------
   홈 — 상황별 큐레이션 탭
   ------------------------------------------------------------------------- */
.tabs { padding: 6px 0 0; }
.tab-list {
  display: flex; flex-wrap: wrap; gap: 8px;
  padding-bottom: 18px; margin-bottom: 18px;
  border-bottom: 1px solid var(--line);
}
.tab-btn {
  padding: 9px 17px; border: 1px solid var(--line); border-radius: 999px;
  background: #fff; color: var(--ink-3);
  font-family: inherit; font-size: 14px; font-weight: 600; cursor: pointer;
  transition: background .15s ease, color .15s ease, border-color .15s ease;
}
.tab-btn:hover { background: var(--bg-tint); border-color: var(--line-strong); color: var(--ink); }
.tab-btn.is-active { background: var(--ink); border-color: var(--ink); color: #fff; }
.tab-desc { margin: 0 0 16px; font-size: 14px; color: var(--ink-4); }
.tab-panel[hidden] { display: none; }

/* 카드 그리드 */
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.qa-card {
  display: flex; align-items: center; gap: 13px;
  padding: 14px; border: 1px solid var(--line); border-radius: 14px;
  background: #fff; color: var(--ink);
  transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}
.qa-card:hover {
  border-color: var(--brand-line);
  box-shadow: var(--shadow); transform: translateY(-2px); text-decoration: none;
}
.qa-thumb {
  flex: none; display: block; width: 78px; height: 62px;
  border-radius: 10px; overflow: hidden; background: var(--line-soft);
}
.qa-thumb img { width: 100%; height: 100%; object-fit: cover; }
.qa-card-body { min-width: 0; display: flex; flex-direction: column; gap: 5px; }
.qa-cat { color: var(--ink-4); font-size: 11.5px; font-weight: 600; }
.qa-card strong {
  font-size: 15px; font-weight: 600; line-height: 1.42; color: var(--ink);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.qa-card > span:not(.qa-cat):not(.qa-thumb) {
  font-size: 13px; color: var(--ink-4); line-height: 1.5;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}

/* -------------------------------------------------------------------------
   홈 — 4열 포토 카드 (여행지·주제)
   ------------------------------------------------------------------------- */
.photo-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px 16px; }
.photo-card { display: block; color: var(--ink); }
.photo-card:hover { text-decoration: none; }
.pc-img {
  position: relative; display: block; aspect-ratio: 16 / 10;
  border-radius: 15px; overflow: hidden; background: var(--line-soft);
}
.pc-img img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .45s cubic-bezier(.2, .7, .3, 1);
}
.photo-card:hover .pc-img img { transform: scale(1.055); }
.pc-badge {
  position: absolute; top: 10px; left: 10px;
  padding: 3px 9px; border-radius: 7px;
  background: rgba(255, 255, 255, .95); color: #1F5BD8;
  font-size: 11.5px; font-weight: 800; letter-spacing: -.01em;
  box-shadow: 0 1px 4px rgba(10, 18, 30, .14);
}
.pc-badge.coral { background: var(--coral); color: #fff; }
.ph-title {
  display: block; margin: 12px 0 5px;
  font-size: 16px; font-weight: 700; line-height: 1.4; letter-spacing: -.02em;
  color: var(--ink);
}
.photo-card:hover .ph-title { color: var(--brand); }
.ph-desc {
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden; margin: 0 0 8px;
  font-size: 13px; line-height: 1.55; color: var(--ink-4);
}
.ph-meta { display: block; font-size: 12.5px; color: var(--ink-4); font-weight: 500; }

/* -------------------------------------------------------------------------
   홈 — 브랜드 소개
   ------------------------------------------------------------------------- */
.about-brand {
  margin: 52px 0 8px; padding: 28px 30px;
  background: var(--bg-tint); border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}
.about-inner { display: flex; align-items: flex-start; gap: 18px; }
.about-mark {
  flex: none; display: grid; place-items: center;
  width: 46px; height: 46px; border-radius: 13px;
  background: linear-gradient(140deg, #2F8BFF 0%, #0B63F6 60%, #0A4FD0 100%);
  color: #fff; font-size: 21px; font-weight: 800;
}
.about-brand h2 { margin: 0 0 8px; padding: 0; border: 0; font-size: 19px; }
.about-brand p { font-size: 14.5px; color: var(--ink-3); line-height: 1.72; margin-bottom: 10px; }

/* -------------------------------------------------------------------------
   Q&A 상세
   ------------------------------------------------------------------------- */
.q-head { display: flex; align-items: flex-start; gap: 16px; margin: 10px 0 22px; }
.q-badge {
  flex: none; display: grid; place-items: center;
  width: 40px; height: 40px; margin-top: 2px; border-radius: 12px;
  background: var(--brand); color: #fff; font-size: 20px; font-weight: 800;
  box-shadow: 0 6px 14px -8px rgba(11, 99, 246, .9);
}
.q-head-body { min-width: 0; }
.q-eyebrow { display: flex; align-items: center; gap: 8px; margin: 0 0 9px; font-size: 13px; color: var(--ink-4); }
.cat-pill { color: #1F5BD8; font-size: 12.5px; font-weight: 700; }
.cat-pill::after { content: "·"; margin: 0 6px; color: #C6CDD5; font-weight: 400; }
.q-head h1 { font-size: clamp(23px, 3.2vw, 32px); line-height: 1.38; margin: 0 0 10px; }
.q-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 0; font-size: 12.5px; color: var(--ink-4); }

.answer-box {
  position: relative;
  padding: 20px 22px;
  background: #F3F8FF;
  border: 1px solid #D8E6FB; border-radius: 15px;
  margin: 0 0 12px;
}
.answer-head { display: flex; align-items: center; gap: 9px; margin-bottom: 9px; }
.a-badge {
  display: grid; place-items: center;
  width: 27px; height: 27px; border-radius: 9px;
  background: var(--mint); color: #fff; font-size: 13.5px; font-weight: 800;
}
.answer-head h2 {
  margin: 0; padding: 0; border: 0;
  font-size: 14.5px; font-weight: 800; color: var(--ink); letter-spacing: 0;
}
.answer-tag {
  margin-left: auto; padding: 2px 9px; border-radius: 999px;
  background: #fff; border: 1px solid #DBE3EB;
  color: #6B7684; font-size: 11px; font-weight: 700;
}
.answer-box > h2 {
  margin: 0 0 8px; padding: 0; border: 0;
  font-size: 14.5px; font-weight: 800; color: var(--ink);
}
.answer-box p { margin: 0; font-size: 17px; line-height: 1.78; color: #17324D; }
.answer-note {
  display: flex; align-items: flex-start; gap: 8px;
  margin: 0 0 34px; font-size: 12.5px; color: var(--ink-4); line-height: 1.6;
}
.verify-badge { flex: none; margin-top: 1px; color: #6B7684; font-size: 11.5px; font-weight: 700; }
.verify-badge::after { content: " ·"; color: #C6CDD5; font-weight: 400; }

.article-body h2 {
  display: flex; align-items: center; gap: 9px;
  font-size: 21px; margin: 40px 0 14px; padding: 0 0 10px;
  border-bottom: 1px solid var(--line);
}
.article-body h2::before {
  content: ""; flex: none; width: 4px; height: 18px; border-radius: 2px; background: var(--brand);
}
.article-body h3 { font-size: 17px; margin: 26px 0 10px; color: var(--ink); }
.article-body p { font-size: 17px; line-height: 1.8; color: var(--ink-2); margin: 0 0 16px; }
.article-body ul, .article-body ol { margin: 0 0 18px; padding-left: 22px; }
.article-body li { line-height: 1.75; color: var(--ink-2); margin-bottom: 8px; }
.article-body ul li::marker { color: var(--brand); }
.article-body ol li::marker { color: var(--brand); font-weight: 700; }
.article-body blockquote {
  margin: 18px 0; padding: 14px 18px;
  background: var(--line-soft); border-left: 4px solid #B9D4FF;
  border-radius: 0 10px 10px 0; color: var(--ink-3);
}
.article-body blockquote p:last-child { margin-bottom: 0; }

/* 표 */
.table-wrap {
  overflow-x: auto; margin: 8px 0 26px;
  background: #fff; border: 1px solid var(--line); border-radius: 14px;
}
table.data-table { width: 100%; border-collapse: collapse; font-size: 15px; }
table.data-table th, table.data-table td {
  padding: 12px 16px; text-align: left; vertical-align: top;
  border-bottom: 1px solid var(--line-soft);
}
table.data-table thead th {
  background: #F8FAFC; border-bottom: 1px solid var(--line);
  font-size: 13px; font-weight: 700; color: var(--ink-3); white-space: nowrap;
}
table.data-table tbody th { width: 26%; font-weight: 600; color: var(--ink); background: #FBFCFD; }
table.data-table tbody tr:last-child th, table.data-table tbody tr:last-child td { border-bottom: 0; }
.src-badge {
  display: inline-block; padding: 2px 8px;
  background: var(--mint-weak); border: 1px solid var(--mint-line);
  border-radius: 6px; color: var(--mint-dark);
  font-size: 11.5px; font-weight: 600; white-space: nowrap;
}

/* 링크 목록 */
.link-list { list-style: none; margin: 0 0 22px; padding: 0; display: grid; gap: 9px; }
.link-list li { position: relative; padding-left: 20px; font-size: 15.5px; line-height: 1.55; }
.link-list li::before {
  content: ""; position: absolute; left: 4px; top: .62em;
  width: 6px; height: 6px; border-radius: 50%; background: #B9D4FF;
}
.link-list a { font-weight: 500; color: #1B64DA; }
.link-list a:hover { color: var(--brand); text-decoration: underline; }

.related {
  margin-top: 40px; padding: 22px 24px;
  background: var(--bg-tint); border: 1px solid var(--line); border-radius: 16px;
}
.related h2 { margin: 0 0 14px; padding: 0; border: 0; font-size: 18px; }
.related .link-list { margin-bottom: 0; }

/* 정보 수정 제보 (공개 댓글 없음 · 메일 단방향) */
.report-box {
  margin: 34px 0 0; padding: 16px 18px;
  background: #FAFBFC; border: 1px solid var(--line); border-radius: 12px;
}
.report-title { margin: 0 0 6px; font-size: 13px; font-weight: 700; color: var(--ink-2); }
.report-text { margin: 0 0 10px; font-size: 12.5px; line-height: 1.65; color: var(--ink-4); }
.report-foot { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 0; }
.report-btn {
  display: inline-flex; padding: 7px 12px;
  background: #fff; border: 1px solid #DDE3EA; border-radius: 7px;
  color: var(--ink-3); font-size: 12.5px; font-weight: 600;
}
.report-btn:hover { border-color: #C4CEDA; color: var(--ink); text-decoration: none; }
.report-foot span { font-size: 12px; color: var(--ink-4); }

/* 제휴 혜택 */
.benefit-box {
  margin: 22px 0 0; padding: 18px 20px;
  background: #F7FBF8; border: 1px solid #DCEDE2; border-radius: 14px;
}
.benefit-head { margin: 0 0 10px; font-size: 12.5px; font-weight: 700; color: #2F7A4E; }
.benefit-list { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.benefit-list a {
  display: flex; flex-direction: column; gap: 2px;
  padding: 11px 14px; background: #fff;
  border: 1px solid #DCEADF; border-radius: 10px; color: var(--ink);
}
.benefit-list a:hover { border-color: #9FD2B0; text-decoration: none; }
.benefit-list strong { font-size: 14px; font-weight: 700; }
.benefit-list a span { font-size: 12.5px; color: var(--ink-4); }

/* -------------------------------------------------------------------------
   아시아엔조이 상품 카드 (포토 카드형)
   ------------------------------------------------------------------------- */
.product-card {
  display: grid; grid-template-columns: 300px 1fr;
  margin: 48px 0 8px; overflow: hidden;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}
.pc-thumb { position: relative; overflow: hidden; background: #EFF4FA; min-height: 190px; }
.pc-thumb img { width: 100%; height: 100%; object-fit: cover; }
.pc-thumb-body {
  position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: flex-end;
  padding: 20px; color: #fff;
  background: linear-gradient(180deg, rgba(10, 16, 26, .1) 30%, rgba(9, 14, 24, .74) 100%);
}
.pc-thumb-body span { font-size: 11.5px; font-weight: 700; opacity: .9; }
.pc-thumb-body strong { font-size: 20px; line-height: 1.3; letter-spacing: -.02em; font-weight: 800; }
.pc-thumb-body em { font-style: normal; font-size: 12px; opacity: .86; margin-top: 5px; }
.pc-body { padding: 24px 26px; }
.pc-tag { margin: 0 0 6px; font-size: 12px; font-weight: 700; color: var(--brand); }
.pc-title { margin: 0 0 6px; font-size: 18px; font-weight: 800; color: var(--ink); letter-spacing: -.02em; }
.pc-text { margin: 0 0 12px; font-size: 14px; line-height: 1.62; color: var(--ink-3); }
.pc-info { margin: 0 0 16px; font-size: 12.5px; color: var(--ink-4); }
.pc-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.pc-note { font-size: 12.5px; color: var(--ink-4); }
.cta-btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 11px 18px; border-radius: 10px;
  background: var(--brand); color: #fff;
  font-size: 14px; font-weight: 700;
}
.cta-btn:hover { background: var(--brand-dark); text-decoration: none; }

/* -------------------------------------------------------------------------
   허브 · 기본정보 · 도시 · 시즌
   ------------------------------------------------------------------------- */
.quick-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin: 0 0 26px; }
.quick-card {
  display: flex; flex-direction: column; gap: 3px;
  padding: 16px 18px; background: #fff;
  border: 1px solid var(--line); border-radius: 14px;
  color: var(--ink); box-shadow: var(--shadow-xs);
  transition: border-color .15s ease, box-shadow .15s ease;
}
.quick-card:hover {
  border-color: var(--brand-line);
  box-shadow: var(--shadow); text-decoration: none;
}
.quick-card span { font-size: 12px; font-weight: 700; color: var(--ink-4); }
.quick-card strong { font-size: 15px; font-weight: 700; }

.shop-link { margin: 10px 0 28px; }
.shop-link a {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 9px 14px; border-radius: 999px;
  background: var(--brand-weak); border: 1px solid var(--brand-line);
  color: #1F5BD8; font-weight: 700; font-size: 13.5px;
}
.shop-link a:hover { background: #E0EBFF; text-decoration: none; }

.featured { margin-top: 8px; }
.featured h2 { margin-top: 30px; }

.toc { padding: 24px 26px; background: var(--bg-tint); border: 1px solid var(--line); border-radius: 18px; }
.toc h2 { margin: 0 0 16px; padding: 0; border: 0; font-size: 20px; }
.toc h3 { display: flex; align-items: center; gap: 8px; margin: 22px 0 10px; font-size: 15px; color: var(--ink-3); }
.toc details.toc-group {
  margin: 0 0 10px; padding: 13px 16px;
  background: #fff; border: 1px solid var(--line); border-radius: 12px;
}
.toc details.toc-group > summary {
  display: flex; align-items: center; gap: 8px; cursor: pointer;
  list-style: none; font-size: 15px; font-weight: 600; color: var(--ink-3);
}
.toc details.toc-group > summary::-webkit-details-marker { display: none; }
.toc details.toc-group > summary::before { content: "＋"; color: var(--brand); font-size: 13px; font-weight: 700; }
.toc details.toc-group[open] > summary::before { content: "－"; }
.toc details.toc-group[open] > summary { margin-bottom: 10px; }
.toc details.toc-group .link-list { margin-bottom: 0; }

.count {
  display: inline-block; min-width: 24px; padding: 0 7px;
  background: #fff; border: 1px solid var(--line); border-radius: 999px;
  font-size: 12px; font-weight: 700; color: var(--ink-4); text-align: center;
}

.longtail { margin-top: 38px; }
.longtail details {
  margin-bottom: 10px; padding: 14px 16px;
  background: #fff; border: 1px solid var(--line); border-radius: 12px;
}
.longtail summary { cursor: pointer; font-size: 15px; font-weight: 600; color: var(--ink-2); }
.longtail details[open] summary { margin-bottom: 4px; }
.longtail ul { list-style: none; margin: 8px 0 0; padding: 0; font-size: 14.5px; }
.longtail li { margin: 0; padding: 8px 0; border-top: 1px solid var(--line-soft); color: var(--ink-3); }
.longtail li a { color: #1B64DA; }

.example {
  padding: 12px 16px; background: var(--line-soft);
  border-left: 3px solid #B9D4FF; border-radius: 0 10px 10px 0;
  font-size: 15px; color: var(--ink-2);
}

/* -------------------------------------------------------------------------
   공용 요소
   ------------------------------------------------------------------------- */
blockquote {
  margin: 18px 0; padding: 14px 18px;
  background: var(--line-soft); border-left: 4px solid #CBD5E1;
  border-radius: 0 10px 10px 0; color: var(--ink-3);
}
code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: .88em; background: var(--line-soft);
  padding: 2px 6px; border-radius: 6px; color: #B42318;
}
ul, ol { padding-left: 22px; }
li { margin-bottom: 6px; }

.stat-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 10px; margin: 0 0 36px; }
.stat { padding: 16px; background: #fff; border: 1px solid var(--line); border-radius: 12px; text-align: center; }
.stat strong { display: block; font-size: 24px; color: var(--brand); letter-spacing: -.02em; }
.stat span { font-size: 12.5px; color: var(--ink-4); }

/* -------------------------------------------------------------------------
   푸터
   ------------------------------------------------------------------------- */
.site-footer {
  margin-top: 64px; padding: 40px 0 34px;
  background: var(--bg-tint); border-top: 1px solid var(--line);
  font-size: 13.5px; color: var(--ink-4);
}
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 0.75fr; gap: 30px 24px; }
.foot-logo { display: flex; align-items: center; gap: 8px; margin: 0 0 10px; color: var(--ink); flex-wrap: wrap; }
.foot-logo strong { font-size: 16px; font-weight: 800; letter-spacing: -.025em; }
.foot-logo small { font-size: 11.5px; color: var(--ink-4); }
.foot-tagline { margin: 0 0 8px; font-size: 13.5px; color: var(--ink-3); }
.foot-note { margin: 0; font-size: 12px; color: var(--ink-5); }
.foot-col h3 { margin: 0 0 12px; font-size: 13px; font-weight: 800; color: var(--ink); }
.foot-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.foot-col li { margin: 0; }
.foot-col a { color: var(--ink-3); font-size: 13.5px; }
.foot-col a:hover { color: var(--brand); }
.foot-bottom { margin-top: 30px; padding-top: 20px; border-top: 1px solid var(--line); }
.foot-bottom p { margin: 0 0 6px; }
.foot-disclaimer { font-size: 12px; color: var(--ink-5); }
.foot-bottom a { color: var(--ink-3); }
.foot-copy { margin-top: 12px; font-size: 12px; color: var(--ink-5); }

/* -------------------------------------------------------------------------
   반응형
   ------------------------------------------------------------------------- */
@media (max-width: 1180px) {
  .search-box { max-width: 400px; }
  .header-inner { gap: 18px; }
  .hb-main .hb-title { font-size: 27px; }
  .hb-title { font-size: 19px; }
}

@media (max-width: 1024px) {
  .photo-grid { grid-template-columns: repeat(3, 1fr); }
  .card-grid { grid-template-columns: repeat(2, 1fr); }
  .quick-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-banners { grid-template-columns: 1.5fr 1fr; height: 320px; }
  .hero-banners .hb:nth-child(3) { display: none; }
  .product-card { grid-template-columns: 240px 1fr; }
}

@media (max-width: 900px) {
  .head-nav { display: none; }
  .search-toggle { display: none; }
  .header-inner { flex-wrap: wrap; gap: 10px; }
  /* 모바일 첫 화면에서도 검색창이 바로 보이게 (아이콘 뒤로 숨지지 않게) */
  .header-inner .search-box {
    display: flex; order: 3; width: 100%; max-width: none; height: 44px; margin-top: 2px;
  }
  .site-header.search-open .header-inner { flex-wrap: wrap; padding-bottom: 0; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .foot-brand-col { grid-column: 1 / -1; }
}

@media (max-width: 760px) {
  body { font-size: 16px; }
  .wrap, .wrap.narrow, .wrap.wide { width: calc(100% - 32px); }
  main { padding-bottom: 56px; }
  h1 { font-size: 25px; }
  h2 { font-size: 19px; margin-top: 34px; }

  .header-main { padding: 10px 0; }
  .brand-mark { width: 34px; height: 34px; border-radius: 10px; font-size: 16px; }
  .brand-text strong { font-size: 17px; }
  .cat-chip { font-size: 13px; padding: 4px 11px 4px 4px; }
  .cat-chip img { width: 27px; height: 27px; }

  /* 히어로: 메인 1장 + 서브 2장 2열 */
  .hero-banners {
    display: flex; gap: 10px; height: auto; margin: 12px -16px 24px;
    padding: 0 16px 8px; overflow-x: auto;
    scroll-snap-type: x mandatory; scrollbar-width: none;
  }
  .hero-banners::-webkit-scrollbar { display: none; }
  .hero-banners .hb { flex: 0 0 84%; min-height: 196px; border-radius: 16px; scroll-snap-align: start; }
  .hero-banners .hb:nth-child(3) { display: block; }
  .hb-body { padding: 16px 18px; }
  .hb-title, .hb-main .hb-title { font-size: 20px; line-height: 1.34; }
  .hb-kicker { font-size: 10.5px; padding: 3px 8px; margin-bottom: 7px; }
  .hb-text, .hb-main .hb-text { display: -webkit-box; font-size: 12.5px; margin-top: 6px; max-width: none; }
  .hb-cta, .hb-main .hb-cta { display: inline-flex; margin-top: 9px; font-size: 12.5px; }

  /* 여행지 원형 목록: 가로 스크롤 */
  .dest-rail {
    flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto;
    gap: 12px; padding: 2px 2px 12px;
    scroll-snap-type: x proximity; scrollbar-width: none; margin: 0 -16px;
    padding-left: 16px; padding-right: 16px;
  }
  .dest-rail::-webkit-scrollbar { display: none; }
  .dest { width: 74px; flex: none; scroll-snap-align: start; }
  .dest-thumb { width: 64px; height: 64px; }
  .dest span.dest-label { font-size: 12.5px; }

  .section { margin: 36px 0; }
  .section.tint { padding: 20px 14px 22px; border-radius: 18px; }
  .rank-grid { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .rank-thumb { width: 58px; height: 58px; border-radius: 11px; }
  .rank-title { font-size: 14.5px; }
  .photo-grid { grid-template-columns: repeat(2, 1fr); gap: 18px 10px; }
  .ph-title { font-size: 14px; margin-top: 8px; line-height: 1.38; }
  .ph-desc { font-size: 12px; -webkit-line-clamp: 2; margin-bottom: 5px; }
  .ph-meta { font-size: 11.5px; }
  .pc-badge { top: 7px; left: 7px; padding: 2px 7px; font-size: 10.5px; }
  .card-grid { grid-template-columns: 1fr; }
  .qa-thumb { width: 68px; height: 56px; }

  .q-head { gap: 12px; }
  .q-badge { width: 36px; height: 36px; font-size: 18px; border-radius: 10px; }
  .answer-box { padding: 18px; border-radius: 14px; }
  .answer-box p { font-size: 16px; }
  .article-body p { font-size: 16px; }
  table.data-table { font-size: 14px; }
  table.data-table th, table.data-table td { padding: 10px 11px; }
  table.data-table tbody th { width: 33%; }

  .product-card { grid-template-columns: 1fr; }
  .pc-thumb { min-height: 160px; }
  .pc-body { padding: 18px; }
  /* 푸터: 모바일에서도 2열로 깔끔하게 (세로로 화면을 다 잡아먹지 않게) */
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 22px 18px; }
  .foot-brand-col { grid-column: 1 / -1; }
  .foot-col h3 { font-size: 12.5px; margin-bottom: 9px; }
  .foot-col ul { gap: 6px; }
  .foot-col a { font-size: 13px; }
  .site-footer { padding: 30px 0 24px; }
  .foot-bottom { margin-top: 22px; }
  .about-inner { flex-direction: column; gap: 12px; }
  .about-brand { padding: 20px; }
  .related, .toc { padding: 18px; }
  .breadcrumb { margin-top: 14px; }
  .to-top { right: 14px; bottom: 16px; width: 38px; height: 38px; }
}

@media (max-width: 400px) {
  .hero-banners .hb { flex: 0 0 90%; }
  .dest { width: 68px; }
  .dest-thumb { width: 58px; height: 58px; }
  .rank-thumb { width: 52px; height: 52px; }
}

@media print {
  .site-header, .site-footer, .search-box, .product-card, .related, .skip-link,
  .search-toggle, .tabs, .dest-rail, .hero-banners { display: none !important; }
  body { background: #fff; font-size: 12pt; }
  main { padding: 0; }
  a { color: #000; text-decoration: underline; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
