/**
 * 테마 로드트립 페이지 — 새 코스 카드(rt-) · 브랜드 색 · 휴대폰 화면
 * 상단바·색 변수는 home.css (jh-, --jc-*) 를 함께 씀
 */
* { font-family: 'Pretendard Variable', 'Pretendard', -apple-system, BlinkMacSystemFont, system-ui, sans-serif; }
.jh-en, .jh-en * { font-family: montserrat, Montserrat, 'Pretendard Variable', sans-serif; }
html, body { max-width: 100%; overflow-x: clip; }

/* 첫 화면 */
.rt-hero { padding: 40px 0 26px; }
.rt-hero .jh-title { font-size: 46px; }
.rt-kinds { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.rt-kinds div { background: #fff; border: 1px solid var(--jc-line); border-radius: 18px; padding: 12px 18px; font-size: 12px; font-weight: 700; color: var(--jc-muted); }
.rt-kinds b { display: block; font-size: 22px; font-weight: 800; color: var(--jc-navy-deep); }

/* 필터 · 검색 */
.filter-chip.active { background: var(--jc-blue) !important; border-color: var(--jc-blue) !important; color: #fff !important; }
.rt-search { display: flex; gap: 8px; align-items: center; background: #fff; border: 1px solid var(--jc-line); border-radius: 999px; padding: 10px 18px; flex: 1; width: 100%; max-width: 560px; }
.rt-search:focus-within { border-color: var(--jc-blue); }
.rt-search input { flex: 1; min-width: 0; border: 0; outline: 0; font-size: 15px; background: transparent; }

/* 새 코스 카드 (관광공사 공식 · 장터 하루 코스) */
.rt-card { display: grid; grid-template-columns: 280px minmax(0, 1fr); background: #fff; border: 1px solid var(--jc-line); border-radius: 22px; overflow: hidden; margin-bottom: 20px; transition: box-shadow .2s; }
.rt-card:hover { box-shadow: 0 18px 40px rgba(8, 29, 87, .10); }
.rt-cover { position: relative; min-height: 200px; background: var(--jc-sky); }
.rt-cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.rt-credit { position: absolute; left: 8px; right: 8px; bottom: 6px; text-align: right; font-size: 10px; color: rgba(255, 255, 255, .92); text-shadow: 0 1px 2px rgba(0, 0, 0, .7); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rt-body { padding: 20px 22px; min-width: 0; }
.rt-card:not(:has(.rt-cover)) { grid-template-columns: minmax(0, 1fr); }
.rt-badge { font-size: .78rem; font-weight: 800; padding: 4px 10px; border-radius: 6px; }
.rt-badge.official { background: var(--jc-navy-deep); color: #fff; }
.rt-badge.day { background: var(--jc-sky); color: var(--jc-blue-deep); border: 1px solid var(--jc-sky-strong); }
.rt-card .route-name { font-size: 1.25rem; margin: 10px 0 6px; color: var(--jc-navy-deep); }
.rt-meta { font-size: .9rem; color: var(--jc-muted); font-weight: 600; }
.rt-sep { margin: 0 8px; color: var(--jc-line); }
.rt-details { margin-top: 14px; }
.rt-details summary { cursor: pointer; font-weight: 800; color: var(--jc-blue); font-size: .92rem; list-style: none; }
.rt-details summary::-webkit-details-marker { display: none; }
.rt-details summary::after { content: ' ▾'; }
.rt-details[open] summary::after { content: ' ▴'; }
.rt-stops { list-style: none; margin-top: 12px; display: flex; flex-direction: column; gap: 10px; }
.rt-stops li { display: flex; gap: 12px; }
.rt-num { flex: none; width: 28px; height: 28px; border-radius: 50%; background: var(--jc-sky); color: var(--jc-blue-deep); display: grid; place-items: center; font-size: .82rem; font-weight: 800; }
.rt-stop { flex: 1; min-width: 0; border-bottom: 1px dashed var(--jc-line); padding-bottom: 10px; }
.rt-stop-head { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.rt-stop-head b { color: var(--jc-navy-deep); }
.rt-stop-head a { margin-left: auto; font-size: .8rem; font-weight: 800; color: var(--jc-blue); text-decoration: none; white-space: nowrap; }
.rt-label { font-size: .78rem; font-weight: 800; color: var(--jc-muted); }
.rt-stop p { font-size: .86rem; color: #475569; line-height: 1.6; margin-top: 4px; }
.rt-source { font-size: .76rem; color: #94a3b8; margin-top: 10px; }
.rt-more { display: block; margin: 10px auto 40px; }
.rt-group-title { font-size: 1.1rem; font-weight: 800; color: var(--jc-navy-deep); margin: 26px 0 12px; }

@media (max-width: 760px) {
  .rt-hero .jh-title { font-size: 32px; }
  .rt-card { grid-template-columns: minmax(0, 1fr); }
  .rt-cover { min-height: 170px; }
  .rt-body { padding: 16px; }
  .filter-wrapper, .routes-container { padding-left: 16px !important; padding-right: 16px !important; }
  .filter-row { flex-direction: column; align-items: flex-start !important; gap: 8px; }
  .chip-grid { flex-wrap: wrap; }
  .route-card { padding: 18px !important; }
  .card-head { flex-direction: column; align-items: flex-start !important; gap: 10px; }
  .meta-bar { flex-direction: column; gap: 6px; }
  .journey-box-grid { grid-template-columns: minmax(0, 1fr) !important; }
}
@media (max-width: 520px) { #google_translate_element { display: none !important; } }
.rt-unverified { margin-bottom: 12px; padding: 10px 14px; border-radius: 12px; background: #fff7ed; border: 1px solid #fed7aa; color: #9a3412; font-size: 0.85rem; font-weight: 600; line-height: 1.5; }
