/* ==========================================================================
   도시 가이드 페이지 (/australia/{slug}) — city.css
   --------------------------------------------------------------------------
   원본: cities/melbourne.html 레이아웃. 색·글꼴·버튼은 기존 사이트 토큰으로 교체.
   - 모든 규칙은 .cg 아래에만 적용 (사이트 공통 .btn/.tabs/.price 등과 충돌 방지)
   - 원본 변수 → 사이트 토큰
       --paper     #F5F7FA  페이지 배경        --stone  #122F52  히어로·진한 면
       --ink       #111827  본문 글자          --muted  #4E5561  보조 글자
       --tram      #18406F  대표색(primary)    --tram-soft #E8EEF6 primary 연한 톤
       --gold      #F47920  강조색(accent/CTA) --line   #E4EBF1  구분선
       글꼴: Pretendard (사이트 공통)
   ========================================================================== */

.cg {
    --cg-paper: #F5F7FA;
    --cg-stone: #122F52;
    --cg-ink: #111827;
    --cg-muted: #4E5561;
    --cg-tram: #18406F;
    --cg-tram-soft: #E8EEF6;
    --cg-gold: #F47920;
    --cg-gold-hover: #DD6A15;
    --cg-line: #E4EBF1;
    --cg-font: "Pretendard", -apple-system, BlinkMacSystemFont, sans-serif;
    --cg-rail: 220px;
    --cg-sticky-top: 0px;   /* city.js 가 고정 헤더 높이로 갱신 */

    background: var(--cg-paper);
    color: var(--cg-ink);
    font: 400 17px/1.75 var(--cg-font);
    word-break: keep-all;
    overflow-x: clip;
}
.cg *, .cg *::before, .cg *::after { box-sizing: border-box; }
/* 기본 요소 규칙은 :where() 로 우선순위를 낮춘다 — 컴포넌트 클래스(.cg-hero__lead 등)가 항상 이기도록.
   (이 파일은 사이트 공통 CSS 뒤에 로드되므로 테마의 a/p/h 기본값보다는 여전히 우선) */
:where(.cg) a { color: var(--cg-tram); }
:where(.cg) a:hover { color: var(--cg-stone); }
.cg :focus-visible { outline: 3px solid var(--cg-gold); outline-offset: 3px; border-radius: 2px; }
:where(.cg) :is(h1, h2, h3) { font-family: var(--cg-font); font-weight: 700; line-height: 1.3; margin: 0; letter-spacing: -.01em; color: inherit; }
:where(.cg) h2 { font-size: clamp(26px, 3.2vw, 36px); margin-bottom: .6em; }
:where(.cg) h3 { font-size: 20px; font-weight: 600; }
:where(.cg) p { margin: 0 0 1em; }
:where(.cg) img { max-width: 100%; display: block; }
.cg-muted { color: var(--cg-muted); }
.cg-small { font-size: 14px; }
html:has(.cg) { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
    html:has(.cg) { scroll-behavior: auto; }
    .cg *, .cg *::before, .cg *::after { transition: none !important; animation: none !important; }
}

/* ── 버튼 (사이트 알약형 버튼 톤) ────────────────────────────── */
.cg-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: .5em;
    padding: 12px 22px; border-radius: 40px; border: 2px solid transparent;
    font: 600 15px/1 var(--cg-font); text-decoration: none; cursor: pointer; white-space: nowrap;
    transition: background-color .2s, color .2s, border-color .2s;
}
.cg .cg-btn--accent { background: var(--cg-gold); color: #fff; }
.cg .cg-btn--accent:hover { background: var(--cg-gold-hover); color: #fff; }
.cg .cg-btn--primary { background: var(--cg-tram); color: #fff; }
.cg .cg-btn--primary:hover { background: var(--cg-stone); color: #fff; }
.cg .cg-btn--ghost { border-color: currentColor; color: inherit; background: transparent; }
.cg .cg-btn--ghost:hover { color: inherit; opacity: .85; }
.cg .cg-btn--outline { border-color: var(--cg-tram); color: var(--cg-tram); background: transparent; }
.cg .cg-btn--outline:hover { background: var(--cg-tram); color: #fff; }

/* ── 미리보기 띠 (관리자) ───────────────────────────────────── */
.cg-preview-bar { background: var(--cg-gold); color: #fff; text-align: center; padding: 8px 16px; font-size: 14px; font-weight: 600; }

/* ── 히어로 ─────────────────────────────────────────────────────
   - 일반 흐름으로 페이지와 함께 스크롤 (fixed / sticky / background-attachment / 패럴랙스 사용 안 함)
   - 첫 화면에 아래 "기본 정보" 줄이 보이도록 높이 제한: PC 는 화면 높이 70% 이하
   - 사진·영상 유무와 관계없이 같은 높이 기준(min-height) → 없을 때도 남색 단색 히어로 유지 */
.cg-hero { background: var(--cg-stone); color: #F4F6FA; position: relative; overflow: hidden; }
.cg-hero__inner {
    max-width: 1200px; margin: 0 auto; padding: 40px 32px 48px;
    display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center;
    min-height: min(52vh, 440px); max-height: 70vh;
}
.cg-hero__inner--text { grid-template-columns: 1fr; }
.cg-hero__eyebrow { display: block; font-size: 15px; color: #B9C6D8; margin-bottom: 20px; }
.cg-hero h1 { font-size: clamp(32px, 4.2vw, 56px); font-weight: 800; line-height: 1.12; color: #fff; }
.cg-hero h1 span { display: block; }
.cg-hero__lead { font-size: 18px; max-width: 32em; margin: 20px 0 24px; color: #D5DDE8; }
.cg-hero__actions { display: flex; gap: 12px; flex-wrap: wrap; }
.cg-hero__actions:empty { display: none; }
/* 미디어: 가로형 16:10, 최대 높이 제한 */
.cg-hero__media { aspect-ratio: 16 / 10; max-height: min(46vh, 380px); width: 100%; background: #1C3D63; border-radius: 18px; position: relative; overflow: hidden; justify-self: end; }
.cg-hero__media img { width: 100%; height: 100%; object-fit: cover; }
.cg-hero__media .cg-video { aspect-ratio: auto; height: 100%; border-radius: 0; }
/* 히어로 하단 강조색 띠 */
.cg-hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 6px; background: var(--cg-gold); }

/* ── 기본 정보 ──────────────────────────────────────────────── */
.cg-facts { max-width: 1200px; margin: 0 auto; padding: 36px 32px; display: grid; grid-template-columns: repeat(5, 1fr); gap: 24px; border-bottom: 1px solid var(--cg-line); }
.cg-facts dt { font-size: 14px; color: var(--cg-muted); font-weight: 400; }
.cg-facts dd { margin: 4px 0 0; font-weight: 600; line-height: 1.5; }

/* ── 쿠폰 띠 ────────────────────────────────────────────────── */
.cg-promo { max-width: 1200px; margin: 24px auto 0; padding: 0 32px; }
.cg .cg-promo__box { display: flex; justify-content: space-between; align-items: center; gap: 16px; background: var(--cg-tram); color: #fff; text-decoration: none; padding: 18px 24px; border-radius: 14px; }
.cg .cg-promo__box:hover { color: #fff; }
.cg-promo strong { font-size: 21px; font-weight: 700; }
.cg-promo small { opacity: .8; font-size: 14px; }
.cg-promo__code { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; background: var(--cg-gold); color: #fff; border-radius: 12px; padding: 10px 16px; font-size: 14px; }
.cg-promo__code b { font-size: 18px; letter-spacing: .04em; }
.cg-promo__code small { opacity: .9; font-size: 12px; }

/* ── 본문 + 노선도 ─────────────────────────────────────────── */
.cg-layout { max-width: 1200px; margin: 0 auto; padding: 0 32px; display: grid; grid-template-columns: var(--cg-rail) 1fr; gap: 56px; }
.cg-layout > * { min-width: 0; }
.cg-route { position: sticky; top: var(--cg-sticky-top); align-self: start; padding: 56px 0; max-height: 100vh; z-index: 5; }
.cg-route__title { font-size: 14px; color: var(--cg-muted); margin: 0 0 16px; }
.cg-route ol { list-style: none; margin: 0; padding: 0; position: relative; }
.cg-route ol::before { content: ""; position: absolute; left: 7px; top: 10px; bottom: 10px; width: 4px; background: var(--cg-tram); border-radius: 2px; }
.cg .cg-route a { position: relative; display: block; padding: 7px 0 7px 32px; color: var(--cg-muted); text-decoration: none; font-size: 15px; }
.cg-route a::before { content: ""; position: absolute; left: 0; top: 50%; width: 18px; height: 18px; margin-top: -9px; border-radius: 50%; background: var(--cg-paper); border: 4px solid var(--cg-tram); transition: background .2s; }
.cg .cg-route a:hover { color: var(--cg-ink); }
.cg .cg-route a[aria-current="true"] { color: var(--cg-ink); font-weight: 600; }
.cg-route a[aria-current="true"]::before { background: var(--cg-gold); border-color: var(--cg-ink); }

.cg-main > section { padding: 72px 0; border-bottom: 1px solid var(--cg-line); scroll-margin-top: calc(var(--cg-sticky-top) + 16px); }
.cg-main > section:last-child { border-bottom: 0; }
.cg-prose { max-width: 38em; }

/* 소개 */
.cg-areas { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 0 32px; margin: 28px 0 0; padding: 0; list-style: none; }
.cg-areas li { padding: 14px 0; border-top: 1px solid var(--cg-line); }
.cg-areas b { display: block; font-weight: 600; font-size: 18px; }
.cg-guide { margin: 40px 0 0; display: grid; grid-template-columns: 64px 1fr; gap: 20px; align-items: start; max-width: 38em; }
.cg-guide img { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; background: var(--cg-tram-soft); }
.cg-guide blockquote { margin: 0; font-size: 19px; line-height: 1.6; font-weight: 500; }
.cg-guide cite { display: block; margin-top: 8px; font-size: 14px; color: var(--cg-muted); font-style: normal; }

/* 영상 (lite embed: 클릭 전에는 썸네일만) */
.cg-video { position: relative; aspect-ratio: 16 / 9; background: var(--cg-stone); border-radius: 18px; overflow: hidden; }
.cg-video--short { aspect-ratio: 9 / 16; border-radius: 14px; }
.cg-video__btn { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; padding: 0; background: transparent; cursor: pointer; display: grid; place-items: center; }
.cg-video__btn img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cg-video__play { position: relative; width: 72px; height: 72px; border-radius: 50%; background: var(--cg-gold); display: grid; place-items: center; box-shadow: 0 6px 20px rgba(17, 24, 39, .3); }
.cg-video--short .cg-video__play { width: 48px; height: 48px; }
.cg-video__play svg { margin-left: 4px; }
.cg-video__label { position: absolute; left: 12px; right: 12px; bottom: 10px; color: #fff; font-size: 13px; text-align: left; text-shadow: 0 1px 4px rgba(0, 0, 0, .6); }
.cg-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.cg-shorts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 16px; }

/* 투어 */
.cg-tours { display: grid; margin-top: 8px; }
.cg-tour { display: grid; grid-template-columns: 200px 1fr auto; gap: 28px; align-items: center; padding: 24px 0; border-top: 1px solid var(--cg-line); }
.cg-tour:last-child { border-bottom: 1px solid var(--cg-line); }
.cg-tour__thumb { aspect-ratio: 4 / 3; border-radius: 12px; overflow: hidden; background: var(--cg-tram-soft); }
.cg-tour__thumb img { width: 100%; height: 100%; object-fit: cover; }
.cg-tour__thumb--empty { display: none; }
.cg-tour--nothumb { grid-template-columns: 1fr auto; }
.cg-tour h3 { margin-bottom: 6px; font-size: 19px; }
.cg .cg-tour h3 a { color: var(--cg-ink); text-decoration: none; }
.cg .cg-tour h3 a:hover { color: var(--cg-tram); }
.cg-tour p { margin: 0; color: var(--cg-muted); font-size: 15px; }
.cg-days { display: flex; gap: 4px; margin-top: 12px; padding: 0; list-style: none; }
.cg-days li { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-size: 13px; color: #9AA3AE; border: 1px solid var(--cg-line); }
.cg-days li.is-on { background: var(--cg-tram); color: #fff; border-color: var(--cg-tram); }
.cg-price { text-align: right; min-width: 150px; }
.cg-price b { display: block; font-size: 24px; font-weight: 700; color: var(--cg-tram); }
.cg-price small { display: block; color: var(--cg-muted); font-size: 13px; margin-bottom: 10px; }
.cg-price__aud { display: block; color: var(--cg-muted); font-size: 12px; margin: -2px 0 10px; }
.cg-price__ask { display: block; color: var(--cg-muted); font-size: 13px; margin-bottom: 10px; }
.cg-tour--featured { background: var(--cg-tram-soft); border-radius: 18px; padding: 24px; border: 0; margin-bottom: 8px; }
.cg-tour--featured + .cg-tour { border-top: 0; }
.cg-tours__note { font-size: 15px; color: var(--cg-muted); margin-top: 20px; }
.cg-more { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 12px; }

/* 관광지 탭 */
.cg-tabs { display: flex; gap: 8px; margin-bottom: 28px; flex-wrap: wrap; }
.cg-tabs button { font: 500 15px var(--cg-font); padding: .55em 1.1em; border-radius: 999px; border: 1.5px solid var(--cg-stone); background: transparent; color: var(--cg-stone); cursor: pointer; }
.cg-tabs button[aria-selected="true"] { background: var(--cg-stone); color: #fff; }
.cg-spots { display: grid; grid-template-columns: repeat(2, 1fr); gap: 40px 32px; }
.cg-spots[hidden] { display: none; }
.cg-spot__img { aspect-ratio: 3 / 2; border-radius: 14px; overflow: hidden; margin-bottom: 14px; background: var(--cg-tram-soft); }
.cg-spot__img img { width: 100%; height: 100%; object-fit: cover; }
.cg-spot h3 small { font-size: 14px; font-weight: 400; color: var(--cg-muted); margin-left: 6px; }
.cg .cg-spot h3 a { color: inherit; text-decoration: none; }
.cg-spot__meta { font-size: 14px; color: var(--cg-muted); margin: 4px 0 8px; }
.cg-spot p { font-size: 16px; margin-bottom: 10px; }
.cg .cg-spot__tip { font-size: 15px; border-left: 4px solid var(--cg-gold); padding-left: 12px; margin-bottom: 12px; }
.cg .cg-spot__go { font-weight: 600; font-size: 15px; }

/* 일정 */
.cg-plan { list-style: none; margin: 0; padding: 0; counter-reset: cgday; }
.cg-plan li { counter-increment: cgday; display: grid; grid-template-columns: 88px 1fr; gap: 24px; padding: 22px 0; border-top: 1px solid var(--cg-line); }
.cg-plan li::before { content: counter(cgday) "일차"; font-weight: 800; font-size: 19px; color: var(--cg-tram); }
.cg-plan li.is-tour { background: linear-gradient(90deg, var(--cg-tram-soft), transparent); border-radius: 0 14px 14px 0; }
.cg-plan h3 { font-size: 18px; margin-bottom: 4px; }
.cg-plan p { margin: 0; color: var(--cg-muted); font-size: 16px; }

/* 맛집·교통·팁 (2열 목록) */
.cg-grid2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 40px; }
.cg-grid2 > div { padding: 20px 0; border-top: 1px solid var(--cg-line); }
.cg-grid2 h3 { font-size: 18px; }
.cg-grid2 p { margin: 6px 0 0; font-size: 16px; color: var(--cg-muted); }
.cg-badge { display: inline-block; margin-left: 6px; padding: 2px 8px; border-radius: 999px; background: var(--cg-tram-soft); color: var(--cg-tram); font-size: 12px; font-weight: 600; vertical-align: middle; }

/* 행사 */
.cg-months { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 6px; margin-bottom: 24px; scrollbar-width: thin; }
.cg-months button { flex: 0 0 auto; min-width: 52px; font: 500 15px var(--cg-font); padding: .5em .6em; border: 0; border-bottom: 3px solid var(--cg-line); background: transparent; color: var(--cg-muted); cursor: pointer; }
.cg-months button[aria-selected="true"] { color: var(--cg-ink); border-color: var(--cg-gold); font-weight: 600; }
.cg-events { list-style: none; margin: 0; padding: 0; }
.cg-events[hidden] { display: none; }
.cg-events li { padding: 18px 0; border-top: 1px solid var(--cg-line); display: grid; grid-template-columns: 1fr auto; gap: 16px; }
.cg-events h3 { font-size: 18px; }
.cg-events p { margin: 4px 0 0; color: var(--cg-muted); font-size: 15px; }
.cg-events__kind { font-size: 14px; color: var(--cg-tram); white-space: nowrap; }
.cg-events li.cg-events__empty { display: block; color: var(--cg-muted); }

/* 날씨 막대 (높이: 5% 단위 클래스) */
.cg-climate { display: grid; grid-template-columns: repeat(12, 1fr); gap: 8px; align-items: end; height: 220px; margin: 24px 0 8px; padding: 0; list-style: none; }
.cg-climate li { display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; font-size: 13px; }
.cg-climate__bar { width: 100%; max-width: 34px; border-radius: 8px 8px 0 0; background: var(--cg-tram); }
.cg-climate__bar.is-warm { background: var(--cg-gold); }
.cg-climate__t { font-weight: 600; margin-bottom: 4px; }
.cg-climate__m { color: var(--cg-muted); margin-top: 6px; }
.cg-h-1 { height: 5%; } .cg-h-2 { height: 10%; } .cg-h-3 { height: 15%; } .cg-h-4 { height: 20%; }
.cg-h-5 { height: 25%; } .cg-h-6 { height: 30%; } .cg-h-7 { height: 35%; } .cg-h-8 { height: 40%; }
.cg-h-9 { height: 45%; } .cg-h-10 { height: 50%; } .cg-h-11 { height: 55%; } .cg-h-12 { height: 60%; }
.cg-h-13 { height: 65%; } .cg-h-14 { height: 70%; } .cg-h-15 { height: 75%; } .cg-h-16 { height: 80%; }
.cg-h-17 { height: 85%; } .cg-h-18 { height: 90%; } .cg-h-19 { height: 95%; } .cg-h-20 { height: 100%; }
.cg-wear { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin-top: 32px; }
.cg-wear h3 { font-size: 17px; }
.cg-wear p { font-size: 15px; color: var(--cg-muted); margin-top: 4px; }

/* 후기 */
.cg-reviews__summary { display: flex; align-items: baseline; gap: 12px; margin-bottom: 8px; }
.cg-reviews__avg { font-size: 36px; font-weight: 800; color: var(--cg-tram); }
.cg-stars { color: var(--cg-gold); letter-spacing: 2px; }
.cg-reviews__list { list-style: none; margin: 16px 0 0; padding: 0; }
.cg-reviews__list li { padding: 18px 0; border-top: 1px solid var(--cg-line); }
.cg-reviews__list p { margin: 6px 0 4px; }
.cg-reviews__meta { font-size: 13px; color: var(--cg-muted); }

/* FAQ */
.cg-faq details { border-top: 1px solid var(--cg-line); padding: 18px 0; }
.cg-faq details:last-of-type { border-bottom: 1px solid var(--cg-line); }
.cg-faq summary { cursor: pointer; font-weight: 600; font-size: 18px; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.cg-faq summary::-webkit-details-marker { display: none; }
.cg-faq summary::after { content: "+"; color: var(--cg-tram); font-size: 24px; line-height: 1; }
.cg-faq details[open] summary::after { content: "−"; }
.cg-faq details p { margin: 12px 0 0; color: var(--cg-muted); max-width: 38em; }

/* ── 커스텀 블록 (components/city/blocks/*) ─────────────────── */
.cg-block__intro { color: var(--cg-muted); margin: -4px 0 24px; max-width: 40em; }
/* 본문 */
.cg-rich { max-width: 40em; }
.cg-rich h3 { font-size: 20px; margin: 28px 0 10px; }
.cg-rich h4 { font-size: 17px; margin: 22px 0 8px; }
.cg-rich ul, .cg-rich ol { padding-left: 1.3em; margin: 0 0 16px; }
.cg .cg-rich ul { list-style: disc; }
.cg .cg-rich ol { list-style: decimal; }
.cg .cg-rich li { list-style: inherit; }
.cg-rich li { margin: 4px 0; }
.cg-rich blockquote { margin: 20px 0; padding: 4px 0 4px 18px; border-left: 4px solid var(--cg-tram); color: var(--cg-stone); }
.cg .cg-rich a { color: var(--cg-tram); text-decoration: underline; text-underline-offset: 3px; }
/* 카드 목록: PC 3칸 / 모바일 옆으로 밀기 */
.cg-bcards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px 24px; list-style: none; margin: 0; padding: 0; }
.cg-bcards__item { min-width: 0; }
.cg-bcards__item .cg-img { margin-bottom: 12px; }
.cg-bcards__item--text { border-top: 3px solid var(--cg-tram); padding-top: 14px; }
.cg-bcards__item h3 { font-size: 18px; margin: 0 0 6px; }
.cg-bcards__item p { color: var(--cg-muted); font-size: 15px; margin: 0 0 8px; }
.cg .cg-bcards__link { color: var(--cg-tram); font-weight: 600; font-size: 15px; text-decoration: none; }
.cg .cg-bcards__link:hover { text-decoration: underline; }
.cg-img__credit { display: block; font-size: 12px; color: var(--cg-muted); margin-top: 6px; }
/* 사진 모음 */
.cg-bgallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.cg-bgallery--single { grid-template-columns: 1fr; }
/* 영상 */
.cg-bvideos { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.cg-bvideos--single { grid-template-columns: 1fr; }
.cg-bvideos + .cg-shorts { margin-top: 20px; }
/* 표 (표만 좌우로 밀림) */
.cg-table-wrap { overflow-x: auto; max-width: 100%; border-radius: 12px; }
.cg-table { width: 100%; border-collapse: collapse; font-size: 15px; }
.cg-table caption { caption-side: top; text-align: left; font-weight: 600; color: var(--cg-stone); padding: 0 0 10px; }
.cg-table th, .cg-table td { border-bottom: 1px solid var(--cg-line); padding: 10px 12px; text-align: left; vertical-align: top; }
.cg-table thead th { background: var(--cg-tram-soft); color: var(--cg-stone); font-weight: 600; white-space: nowrap; }
.cg-table tbody th { font-weight: 600; color: var(--cg-ink); white-space: nowrap; }
.cg-table-note { font-size: 14px; color: var(--cg-muted); margin: 10px 0 0; }
/* 강조 안내 */
.cg-notice { border-left: 6px solid var(--cg-tram); background: var(--cg-tram-soft); border-radius: 0 14px 14px 0; padding: 20px 24px; }
.cg-notice--warning { border-left-color: var(--cg-gold); background: #FFF4EA; }
.cg-notice--danger { border-left-color: #C2410C; background: #FDECEC; }
.cg-notice__title { display: block; font-size: 17px; margin-bottom: 6px; color: var(--cg-ink); }
.cg-notice p { margin: 0; }
/* 버튼 안내 */
.cg-bcta { background: var(--cg-tram-soft); border-radius: 18px; padding: 28px; display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; }
.cg-bcta p { margin: 0; font-size: 17px; flex: 1 1 320px; }
/* 지도 장소: 목록 + 지도 */
.cg-bmap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: 20px; align-items: start; }
.cg-bmap__list { list-style: none; margin: 0; padding: 0; max-height: 440px; overflow-y: auto; }
.cg-bmap__point { border-top: 1px solid var(--cg-line); padding: 10px 0; }
.cg-bmap__point:last-child { border-bottom: 1px solid var(--cg-line); }
.cg .cg-bmap__btn { display: flex; gap: 12px; align-items: flex-start; width: 100%; text-align: left; background: none; border: 0; padding: 4px; border-radius: 10px; cursor: pointer; color: inherit; font: inherit; }
.cg .cg-bmap__btn:hover, .cg-bmap__point.is-active .cg-bmap__btn { background: var(--cg-tram-soft); }
.cg-bmap__num { flex: 0 0 26px; height: 26px; border-radius: 50%; background: var(--cg-tram); color: #fff; font-size: 13px; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.cg-bmap__thumb { flex: 0 0 64px; width: 64px; height: 48px; object-fit: cover; border-radius: 8px; order: 2; }
.cg-bmap__text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.cg-bmap__text span { font-size: 14px; color: var(--cg-muted); }
.cg .cg-bmap__open { display: inline-block; font-size: 13px; color: var(--cg-tram); margin: 4px 0 0 42px; }
.cg-bmap__frame { position: sticky; top: calc(var(--cg-sticky-top, 0px) + 16px); aspect-ratio: 4 / 3; border-radius: 16px; overflow: hidden; background: var(--cg-tram-soft); }
.cg-bmap__frame iframe { width: 100%; height: 100%; border: 0; display: block; }

/* ── 이미지 공통 ─────────────────────────────────────────────
   사진이 없으면 마크업 자체가 없다(회색 빈 상자·"사진 자리" 없음). 비율 상자 안 object-fit: cover. */
.cg-visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.cg-img { margin: 0; min-width: 0; }
.cg-img img { width: 100%; height: auto; border-radius: 12px; }
.cg-img--wide img { aspect-ratio: 21 / 9; object-fit: cover; border-radius: 16px; }   /* 모바일은 아래 560px 구간에서 16:9 */
.cg-img--card img { aspect-ratio: 3 / 2; object-fit: cover; }
.cg-img--square img { aspect-ratio: 1 / 1; object-fit: cover; }
.cg-img figcaption { font-size: 12px; color: var(--cg-muted); margin-top: 4px; line-height: 1.5; }
.cg-img__link { display: block; border-radius: 12px; cursor: zoom-in; }
.cg-section-image { margin: -4px 0 28px; }

/* 소개 갤러리: 큰 사진 1 + 작은 사진 */
.cg-gallery-intro { display: grid; grid-template-columns: 1.4fr 1fr; gap: 10px; margin: 28px 0 8px; }
.cg-gallery-intro--single { grid-template-columns: 1fr; }
.cg-gallery-intro__lead img { aspect-ratio: 4 / 3; object-fit: cover; }
.cg-gallery-intro--single .cg-gallery-intro__lead img { aspect-ratio: 16 / 9; }
.cg-gallery-intro__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; align-content: start; }
.cg-gallery-intro__more { position: relative; }
.cg-gallery-intro__more::after { content: attr(data-more); position: absolute; inset: 0; display: grid; place-items: center; background: rgba(18, 47, 82, .55); color: #fff; font-size: 22px; font-weight: 700; border-radius: 12px; pointer-events: none; }

/* 지역 썸네일 */
.cg-areas__item--img { display: grid; grid-template-columns: 64px 1fr; gap: 14px; align-items: center; }
.cg-areas__thumb img { border-radius: 10px; }

/* 카드 사진 넘겨 보기 (관광지·맛집) */
.cg-carousel { position: relative; margin-bottom: 14px; }
.cg-carousel__track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; border-radius: 14px; overscroll-behavior-x: contain; }
.cg-carousel__track::-webkit-scrollbar { display: none; }
.cg-carousel__slide { flex: 0 0 100%; scroll-snap-align: start; }
.cg-carousel__slide img { border-radius: 0; }
.cg-carousel__btn { position: absolute; top: 50%; transform: translateY(-50%); width: 34px; height: 34px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .9); color: var(--cg-ink); font-size: 22px; line-height: 1; cursor: pointer; display: grid; place-items: center; box-shadow: 0 2px 8px rgba(17, 24, 39, .2); }
.cg-carousel__btn--prev { left: 8px; }
.cg-carousel__btn--next { right: 8px; }
.cg-carousel__count { position: absolute; right: 10px; bottom: 10px; background: rgba(17, 24, 39, .6); color: #fff; font-size: 12px; padding: 2px 8px; border-radius: 999px; }
.cg-carousel:has(figcaption) .cg-carousel__count { bottom: 32px; }
.cg-food--img h3 { margin-top: 2px; }

/* 일정·행사·옷차림·정보 사진 */
.cg-plan li.has-img { grid-template-columns: 88px 1fr 200px; align-items: start; }
.cg-events li.has-img { grid-template-columns: 72px 1fr auto; align-items: center; }
.cg-events__img img { border-radius: 10px; }
.cg-wear__img { margin-bottom: 10px; }
.cg-info--img { display: grid; grid-template-columns: 120px 1fr; gap: 16px; align-items: start; }

/* 후기 사진 */
.cg-reviews__photos { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 8px; }
.cg-reviews__photos img { width: 88px; height: 88px; object-fit: cover; border-radius: 10px; }

/* 크게 보기(라이트박스) */
.cg-lightbox { position: fixed; inset: 0; z-index: 2000; background: rgba(10, 18, 30, .92); display: grid; grid-template-rows: 1fr auto; padding: 48px 56px 24px; }
.cg-lightbox[hidden] { display: none; }
.cg-lightbox__stage { display: grid; place-items: center; min-height: 0; touch-action: pan-y; }
.cg-lightbox__stage img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 8px; }
.cg-lightbox__caption { color: #E5E9F0; text-align: center; font-size: 14px; padding-top: 12px; min-height: 1.5em; }
.cg-lightbox__btn { position: absolute; border: 0; background: rgba(255, 255, 255, .14); color: #fff; width: 44px; height: 44px; border-radius: 50%; font-size: 26px; line-height: 1; cursor: pointer; display: grid; place-items: center; }
.cg-lightbox__btn:hover { background: rgba(255, 255, 255, .26); }
.cg-lightbox__close { top: 12px; right: 12px; }
.cg-lightbox__prev { left: 8px; top: 50%; transform: translateY(-50%); }
.cg-lightbox__next { right: 8px; top: 50%; transform: translateY(-50%); }
.cg-lightbox__count { position: absolute; top: 20px; left: 20px; color: #C9D1DC; font-size: 13px; }
html.cg-noscroll { overflow: hidden; }

/* ── 하단 문의 ──────────────────────────────────────────────── */
.cg-end { background: var(--cg-tram); color: #fff; margin-top: 24px; }
.cg-end__inner { max-width: 1200px; margin: 0 auto; padding: 72px 32px; display: grid; grid-template-columns: 1fr auto; gap: 32px; align-items: center; }
.cg-end h2 { margin: 0 0 8px; color: #fff; }
.cg-end p { margin: 0; opacity: .85; }
.cg-end__btns { display: flex; gap: 12px; flex-wrap: wrap; }
.cg .cg-end .cg-btn--ghost { color: #fff; }

.cg-nearby { max-width: 1200px; margin: 0 auto; padding: 40px 32px 64px; display: flex; gap: 12px 28px; flex-wrap: wrap; font-size: 16px; }
.cg-nearby span { color: var(--cg-muted); }

/* ── 모바일 하단 고정 버튼 ──────────────────────────────────── */
.cg-mobile-bar { display: none; }

/* ── 목록 (/australia) ─────────────────────────────────────── */
.cg-list { max-width: 1200px; margin: 0 auto; padding: 48px 32px 80px; }
.cg-list__group { margin-top: 48px; }
.cg-list__group h2 { font-size: 22px; padding-bottom: 12px; border-bottom: 2px solid var(--cg-tram); }
.cg-list__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; list-style: none; margin: 20px 0 0; padding: 0; }
.cg .cg-list__card { display: block; text-decoration: none; color: var(--cg-ink); }
.cg .cg-list__card:hover h3 { color: var(--cg-tram); }
.cg-list__img { position: relative; aspect-ratio: 3 / 2; border-radius: 14px; overflow: hidden; background: var(--cg-stone); margin-bottom: 12px; display: flex; align-items: flex-end; padding: 16px; }
.cg-list__img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cg-list__img span { position: relative; color: #fff; font-size: 26px; font-weight: 800; text-shadow: 0 2px 8px rgba(0, 0, 0, .45); }
.cg-list__card p { color: var(--cg-muted); font-size: 15px; margin: 6px 0 0; }
.cg-list__empty { color: var(--cg-muted); padding: 40px 0; }

/* ── 반응형 ─────────────────────────────────────────────────── */
@media (max-width: 960px) {
    /* 모바일·태블릿: 한 칸, 미디어 16:9, 히어로 전체가 한 화면을 넘지 않게 */
    .cg-hero__inner { grid-template-columns: 1fr; gap: 20px; padding-top: 28px; padding-bottom: 32px; min-height: 0; max-height: none; }
    .cg-hero__media { aspect-ratio: 16 / 9; max-height: 34vh; justify-self: stretch; border-radius: 14px; }
    .cg-facts { grid-template-columns: repeat(2, 1fr); }
    .cg-layout { grid-template-columns: 1fr; gap: 0; }
    .cg-route { top: var(--cg-sticky-top); background: var(--cg-paper); padding: 10px 0 10px 32px; margin: 0 -32px; border-bottom: 1px solid var(--cg-line); max-height: none; }
    .cg-route__title { display: none; }
    .cg-route ol { display: flex; overflow-x: auto; scrollbar-width: none; }
    .cg-route ol::-webkit-scrollbar { display: none; }
    .cg-route ol::before { left: 0; right: 0; top: 13px; bottom: auto; width: auto; height: 4px; }
    .cg .cg-route a { padding: 26px 14px 2px; white-space: nowrap; font-size: 14px; }
    .cg-route a::before { left: 50%; top: 6px; margin: 0 0 0 -9px; }
    .cg-main > section { scroll-margin-top: calc(var(--cg-sticky-top) + 76px); }
    .cg-tour { grid-template-columns: 1fr; gap: 12px; }
    .cg-tour__thumb { display: none; }
    .cg-price { text-align: left; }
    .cg-spots, .cg-grid2 { grid-template-columns: 1fr; }
    .cg-plan li.has-img { grid-template-columns: 88px 1fr; }
    .cg-plan li.has-img .cg-plan__img { grid-column: 2; }
    .cg-shorts { grid-template-columns: repeat(2, 1fr); }
    .cg-wear { grid-template-columns: repeat(2, 1fr); }
    .cg-bcards, .cg-bgallery:not(.cg-bgallery--single) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .cg-bvideos { grid-template-columns: 1fr; }
    .cg-bmap { grid-template-columns: 1fr; }
    .cg-bmap__frame { position: static; order: -1; aspect-ratio: 16 / 10; }
    .cg-bmap__list { max-height: none; }
    .cg-end__inner { grid-template-columns: 1fr; }
    .cg-list__grid { grid-template-columns: repeat(2, 1fr); }
    .cg-mobile-bar { display: flex; position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 1000; gap: 8px; }
    .cg-mobile-bar .cg-btn { flex: 1; box-shadow: 0 6px 20px rgba(17, 24, 39, .25); }
    .cg .cg-mobile-bar .cg-btn--ghost { background: #fff; border-color: #fff; color: var(--cg-ink); }
    .cg--has-bar { padding-bottom: 84px; }
}
@media (max-width: 560px) {
    .cg { font-size: 16px; }
    .cg-hero h1 { font-size: clamp(28px, 8vw, 34px); }
    .cg-hero__eyebrow { font-size: 13px; margin-bottom: 12px; }
    .cg-hero__lead { font-size: 15px; margin: 14px 0 18px; }
    .cg-hero .cg-btn { padding: 10px 16px; font-size: 14px; }
    .cg-promo__code { align-items: flex-start; }
    .cg-hero__inner, .cg-facts, .cg-promo, .cg-layout, .cg-end__inner, .cg-nearby, .cg-list { padding-left: 16px; padding-right: 16px; }
    .cg-route { margin: 0 -16px; padding-left: 16px; }
    .cg .cg-promo__box { flex-direction: column; align-items: flex-start; }
    .cg-climate { gap: 3px; height: 180px; }
    .cg-climate__m { font-size: 11px; }
    .cg-climate__t { font-size: 11px; }
    .cg-plan li, .cg-plan li.has-img { grid-template-columns: 1fr; gap: 4px; }
    .cg-plan__img { margin-top: 8px; }
    .cg-gallery-intro { grid-template-columns: 1fr; }
    .cg-img--wide img { aspect-ratio: 16 / 9; border-radius: 12px; }   /* 섹션 대표 이미지: 모바일 16:9 (PC 21:9) */
    .cg-info--img { grid-template-columns: 88px 1fr; gap: 12px; }
    .cg-events li.has-img { grid-template-columns: 56px 1fr; }
    .cg-events li.has-img .cg-events__kind { grid-column: 2; }
    .cg-lightbox { padding: 52px 8px 16px; }
    .cg-lightbox__prev, .cg-lightbox__next { display: none; }   /* 모바일은 밀어서 넘기기 */
    .cg-guide { grid-template-columns: 1fr; gap: 12px; }
    .cg-guide img { width: 48px; height: 48px; }
    .cg-list__grid { grid-template-columns: 1fr; }
    /* 카드 목록: 모바일은 옆으로 밀어 넘기기 (목록 안에서만 스크롤, 페이지는 가로로 안 넘침) */
    .cg-bcards { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding: 0 16px; gap: 14px; margin: 0 -16px; padding: 0 16px 6px; scrollbar-width: none; }
    .cg-bcards::-webkit-scrollbar { display: none; }
    .cg-bcards__item { flex: 0 0 80%; scroll-snap-align: start; }
    .cg-bgallery:not(.cg-bgallery--single) { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
    .cg-bcta { padding: 20px; }
    .cg-notice { padding: 16px 18px; }
    .cg-events li { grid-template-columns: 1fr; gap: 4px; }
}

/* ── 하위 페이지 (관광지 목록·상세 / 맛집 / 축제·행사) ──────────── */
.cg-subhead { background: var(--cg-stone); color: #F4F6FA; }
.cg-subhead__inner { max-width: 1200px; margin: 0 auto; padding: 28px 32px 32px; }
.cg-subhead h1 { font-size: clamp(28px, 4vw, 40px); margin-top: 6px; }
.cg-subhead__eyebrow { font-size: 14px; letter-spacing: .08em; text-transform: uppercase; color: rgba(244, 246, 250, .7); margin: 18px 0 0; }
.cg-subhead__lead { max-width: 720px; margin: 12px 0 0; color: rgba(244, 246, 250, .88); font-size: 17px; }
.cg-crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 0; font-size: 14px; }
.cg-crumbs li { color: rgba(244, 246, 250, .7); }
.cg-crumbs li + li::before { content: "›"; margin: 0 8px; opacity: .6; }
.cg .cg-crumbs a { color: rgba(244, 246, 250, .85); text-decoration: none; }
.cg .cg-crumbs a:hover { color: #fff; text-decoration: underline; }
.cg-subtabs { max-width: 1200px; margin: 0 auto; padding: 0 32px; display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.cg-subtabs::-webkit-scrollbar { display: none; }
.cg .cg-subtabs a { flex: 0 0 auto; padding: 12px 16px; color: rgba(244, 246, 250, .8); text-decoration: none; font-size: 15px; border-bottom: 3px solid transparent; white-space: nowrap; }
.cg .cg-subtabs a:hover { color: #fff; }
.cg .cg-subtabs a[aria-current="page"] { color: #fff; font-weight: 700; border-bottom-color: var(--cg-gold); }
.cg-subbody { max-width: 1200px; margin: 0 auto; padding: 8px 32px 64px; }
.cg-subsection { padding: 40px 0 0; scroll-margin-top: calc(var(--cg-sticky-top) + 16px); }
.cg-subsection > h2 { font-size: 26px; margin-bottom: 20px; }
.cg-jump { display: flex; flex-wrap: wrap; gap: 8px; padding-top: 28px; }
.cg .cg-jump a { padding: 8px 14px; border: 1px solid var(--cg-line); border-radius: 999px; background: #fff; text-decoration: none; font-size: 15px; color: var(--cg-ink); }
.cg .cg-jump a:hover { border-color: var(--cg-tram); color: var(--cg-tram); }
.cg-jump a span { color: var(--cg-muted); margin-left: 4px; }
.cg-spots--grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cg-spot__links { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.cg .cg-spot__more { font-weight: 600; font-size: 15px; }
.cg-subend { background: var(--cg-tram-soft); text-align: center; padding: 48px 32px; }
.cg-subend h2 { font-size: 24px; }
.cg-subend p { color: var(--cg-muted); margin: 8px 0 20px; }
.cg-subend__btns { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }

/* 관광지 상세 */
.cg-agallery { display: grid; grid-template-columns: 2fr 1fr 1fr; grid-auto-rows: auto; gap: 10px; margin-top: 28px; }
.cg-agallery__main { grid-column: 1; grid-row: span 2; }
.cg-agallery--single { grid-template-columns: 1fr; }
.cg-agallery--single .cg-agallery__main { grid-row: auto; }
.cg-agallery .cg-img { margin: 0; }
.cg-agallery .cg-img img { width: 100%; height: 100%; object-fit: cover; border-radius: 12px; }
.cg-agallery__main.cg-img--wide img { aspect-ratio: 4 / 3; }
.cg-agallery--single .cg-agallery__main.cg-img--wide img { aspect-ratio: 21 / 9; }
.cg-agallery__thumb:nth-child(n+6) { display: none; }   /* 격자는 5장까지, 나머지는 크게 보기에서 넘겨 본다 */
.cg-adetail { max-width: 780px; }
.cg-afacts { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 0; }
.cg-afacts div { background: #fff; border: 1px solid var(--cg-line); border-radius: 12px; padding: 10px 16px; }
.cg-afacts dt { font-size: 13px; color: var(--cg-muted); }
.cg-afacts dd { margin: 2px 0 0; font-weight: 600; }
.cg-atip { margin-top: 32px; }
.cg-atip strong { display: block; margin-bottom: 4px; }
.cg-amap { aspect-ratio: 16 / 9; border-radius: 16px; overflow: hidden; background: var(--cg-tram-soft); }
.cg-amap iframe { width: 100%; height: 100%; border: 0; display: block; }
.cg-subsection .cg-bmap__open { margin-left: 0; margin-top: 8px; }
.cg-aothers { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.cg .cg-aothers__link { display: block; background: #fff; border: 1px solid var(--cg-line); border-radius: 14px; overflow: hidden; text-decoration: none; color: var(--cg-ink); height: 100%; }
.cg-aothers__link img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; display: block; }
.cg-aothers__link strong { display: block; padding: 12px 14px 0; font-size: 16px; }
.cg-aothers__link span { display: block; padding: 2px 14px 14px; font-size: 14px; color: var(--cg-muted); }
.cg-aothers__link strong:last-child { padding-bottom: 14px; }
.cg .cg-aothers__link:hover strong { color: var(--cg-tram); }

/* 맛집 목록 */
.cg-foodlist { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 32px; }
.cg-fooditem h3 { font-size: 20px; }
.cg-fooditem h3 small { font-size: 14px; font-weight: 400; color: var(--cg-muted); margin-left: 8px; }
.cg-fooditem__tags { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.cg-fooditem__tags li { font-size: 13px; padding: 2px 10px; border-radius: 999px; background: var(--cg-tram-soft); color: var(--cg-tram); }
.cg-fooditem__tags li.is-pick { background: #FFF4EA; color: #B45309; }
.cg-fooditem p { margin: 10px 0 0; font-size: 16px; }
.cg-fooditem .cg-carousel { margin-bottom: 12px; }

/* 축제·행사 목록 */
.cg-jump--months a { min-width: 56px; text-align: center; }
.cg .cg-events__link { display: inline-block; margin-top: 6px; font-size: 14px; font-weight: 600; }

@media (max-width: 960px) {
    .cg-spots--grid, .cg-aothers { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .cg-foodlist { grid-template-columns: 1fr; }
    .cg-agallery { grid-template-columns: 1fr 1fr; }
    .cg-agallery__main { grid-column: 1 / -1; grid-row: auto; }
    .cg-agallery__main.cg-img--wide img { aspect-ratio: 16 / 9; }
}
@media (max-width: 560px) {
    .cg-subhead__inner, .cg-subbody { padding-left: 16px; padding-right: 16px; }
    .cg-subtabs { padding: 0 16px; }
    .cg-subhead__lead { font-size: 15px; }
    .cg-subsection > h2 { font-size: 22px; }
    .cg-spots--grid { grid-template-columns: 1fr; }
    .cg-aothers { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
    .cg-aothers__link strong { font-size: 15px; padding: 10px 10px 0; }
    .cg-aothers__link span { padding: 2px 10px 10px; font-size: 13px; }
    .cg-subend { padding: 36px 16px; }
    .cg-agallery__thumb:nth-child(n+4) { display: none; }   /* 모바일 격자는 3장까지 */
}
