/* CPCF city guide — map first travel pages */
.cg { background: #f7f3e8; color: var(--cpcf-ink); }
.cg-wrap { max-width: 1180px; margin: 0 auto; padding: 0 20px 70px; box-sizing: border-box; }
.cg-breadcrumb { display: flex; flex-wrap: wrap; gap: 7px; padding: 18px 0 20px; color: var(--cpcf-muted); font-size: 11px; }
.cg-breadcrumb a { color: var(--cpcf-green); }
.cg-tabs { display: flex; flex-wrap: wrap; gap: 24px; border-bottom: 1px solid var(--cpcf-line); margin: 0 0 18px; }
.cg-tabs a { position: relative; padding: 13px 0 11px; color: var(--cpcf-muted); font-size: 12px; }
.cg-tabs a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: transparent; }
.cg-tabs a.is-active { color: var(--cpcf-ink); font-weight: 700; }
.cg-tabs a.is-active::after { background: var(--cpcf-gold); }
.cg-intro { max-width: 780px; margin: 0 0 18px; color: #4c5a50; font-size: 12px; line-height: 1.85; }
.cg-filterbar { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; margin: 0 0 14px; }
.cg-filterbar span.lab { color: var(--cpcf-muted); font-size: 10px; margin-right: 4px; }
.cg-filter { border: 1px solid var(--cpcf-line); background: #fffdf7; color: #59675b; padding: 6px 11px; font: inherit; font-size: 10px; cursor: pointer; }
.cg-filter:hover { border-color: #c9a227; }
.cg-filter.is-active { background: #08291d; color: #f4e9cd; border-color: #08291d; }
.cg-layout { display: grid; grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr); gap: 20px; align-items: start; }
.cg-map { position: sticky; top: 16px; border: 1px solid #cbbd9d; background: #f2ebda; overflow: hidden; }
.cg-map-top { display: flex; justify-content: space-between; gap: 8px; padding: 9px 12px; border-bottom: 1px solid #d8cbaa; background: #fffdf7; color: #788378; font-size: 9px; }
.cg-map-top span:last-child { color: #d8b45a; }
.cg-canvas { position: relative; height: 500px; overflow: hidden; background: #f2ebda; }
.cg-map-bg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.cg-ring { position: absolute; left: 50%; top: 50%; border: 1px dashed rgba(8,41,29,.35); border-radius: 50%; transform: translate(-50%, -50%); }
.cg-ring.r5 { width: 88%; height: 82%; }
.cg-ring.r3 { width: 58%; height: 54%; border-color: rgba(8,41,29,.55); }
.cg-ring-label { position: absolute; right: 7%; top: 48%; color: rgba(8,41,29,.55); font-size: 8px; letter-spacing: .08em; }
.cg-ring-label.inner { right: 22%; top: 44%; color: rgba(8,41,29,.8); }
.cg-hub { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 62px; height: 62px; border-radius: 50%; background: #08291d; color: #f4e9cd; display: flex; align-items: center; justify-content: center; text-align: center; font-size: 9px; font-weight: 700; line-height: 1.3; z-index: 3; border: 4px solid #d8b45a; box-sizing: border-box; }
.cg-pin { position: absolute; z-index: 4; width: 26px; height: 26px; margin: -13px 0 0 -13px; border-radius: 50%; border: 2px solid #fffdf7; background: #c9a227; color: #08291d; font-size: 9px; font-weight: 700; line-height: 22px; text-align: center; cursor: pointer; padding: 0; box-shadow: 0 2px 5px rgba(8,41,29,.2); }
.cg-pin.hotel { background: #d8b45a; }
.cg-pin.food { background: #d8b45a; }
.cg-pin.is-active { background: #fff; box-shadow: 0 0 0 4px rgba(201,162,39,.35); }
.cg-pin.is-hidden { display: none; }
.cg-map-legend { display: flex; flex-wrap: wrap; gap: 9px 14px; padding: 9px 12px; border-top: 1px solid #d8cbaa; color: #68766b; font-size: 8px; }
.cg-map-legend i { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #c9a227; margin-right: 4px; }
.cg-map-legend i.food { background: #d8b45a; }
.cg-map-note { padding: 8px 12px; border-top: 1px solid #d8cbaa; color: #7b887c; font-size: 8px; line-height: 1.6; }
.cg-list { display: flex; flex-direction: column; gap: 9px; }
.cg-card { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 0; border: 1px solid var(--cpcf-line); background: #fffdf7; scroll-margin-top: 20px; }
.cg-card.is-hidden { display: none; }
.cg-card:hover { border-color: #c9a227; }
.cg-card-media { width: 112px; height: 100%; min-height: 112px; overflow: hidden; background: #e8e1d0; }
.cg-card-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cg-card-media span { display: flex; align-items: center; justify-content: center; height: 100%; color: #8a7b58; font-family: var(--cpcf-font-display); font-size: 18px; }
.cg-card-body { padding: 12px 13px; min-width: 0; }
.cg-card-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 0 0 5px; color: var(--cpcf-muted); font-size: 9px; }
.cg-dist { color: #0e6b43; font-weight: 700; }
.cg-scene { border: 1px solid #d8c89f; padding: 1px 5px; color: #8f743a; }
.cg-card h2 { margin: 0 0 4px; font-family: var(--cpcf-font-display); font-size: 17px; line-height: 1.45; }
.cg-card p { margin: 0 0 5px; color: var(--cpcf-muted); font-size: 10px; line-height: 1.7; }
.cg-card-links { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 7px; }
.cg-link { color: var(--cpcf-green); font-size: 10px; }
.cg-empty { border: 1px dashed var(--cpcf-line); padding: 22px; color: var(--cpcf-muted); font-size: 12px; }
.cg-note { margin: 18px 0 0; padding: 11px 14px; border-left: 3px solid var(--cpcf-gold); background: #fffdf7; color: var(--cpcf-muted); font-size: 10px; line-height: 1.8; }

/* Traffic route selector */
.cg-route-tabs { display: flex; flex-wrap: wrap; gap: 7px; margin: 0 0 16px; }
.cg-route-tab { border: 1px solid var(--cpcf-line); background: #fffdf7; color: #59675b; padding: 8px 13px; font: inherit; font-size: 11px; cursor: pointer; }
.cg-route-tab.is-active { background: #08291d; color: #f4e9cd; border-color: #08291d; }
.cg-route-panel { display: none; }
.cg-route-panel.is-active { display: block; }
.cg-route-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; border-bottom: 1px solid var(--cpcf-line); padding-bottom: 10px; margin-bottom: 15px; }
.cg-route-head h2 { margin: 0; font-family: var(--cpcf-font-display); font-size: 25px; }
.cg-route-head span { color: var(--cpcf-muted); font-size: 10px; }
.cg-steps { border-top: 1px solid var(--cpcf-line); }
.cg-step { position: relative; display: grid; grid-template-columns: 46px minmax(0, 1fr) 150px; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--cpcf-line); }
.cg-step-no { width: 34px; height: 34px; border-radius: 50%; background: #08291d; color: #d8b45a; display: flex; align-items: center; justify-content: center; font-family: var(--cpcf-font-display); font-size: 14px; }
.cg-step h3 { margin: 1px 0 3px; font-size: 14px; }
.cg-step p { margin: 0; color: var(--cpcf-muted); font-size: 10px; line-height: 1.7; }
.cg-step em { color: #8a7b58; font-style: normal; font-size: 9px; line-height: 1.7; border-left: 1px solid var(--cpcf-line); padding-left: 12px; }
.cg-transfer { border: 1px solid var(--cpcf-line); background: #fffdf7; padding: 12px 14px; margin-top: 14px; color: var(--cpcf-muted); font-size: 10px; line-height: 1.8; }
.cg-transfer strong { color: var(--cpcf-ink); }

@media (max-width: 900px) {
    .cg-layout { grid-template-columns: 1fr; }
    .cg-map { position: static; }
    .cg-canvas { height: 360px; }
    .cg-card { grid-template-columns: 96px minmax(0, 1fr); }
    .cg-card-media { width: 96px; min-height: 104px; }
    .cg-step { grid-template-columns: 40px minmax(0, 1fr); }
    .cg-step em { grid-column: 2; border-left: 0; padding-left: 0; }
}
@media (max-width: 600px) {
    .cg-wrap { padding: 0 14px 46px; }
    .cg-tabs { gap: 16px; }
    .cg-canvas { height: 300px; }
    .cg-card { grid-template-columns: 82px minmax(0, 1fr); }
    .cg-card-media { width: 82px; min-height: 96px; }
    .cg-card-body { padding: 10px; }
    .cg-card h2 { font-size: 15px; }
    .cg-route-head h2 { font-size: 21px; }
}
