/* City experience guides (templates/city-guide.php). Builds on food-guide.css (fg-*) and main.css tokens. */

.cg { --c-sight: #E3120B; --c-photo: #CFA61B; --c-eat: #141414; --c-night: #2F5FD0; }
.cg [hidden] { display: none !important; }
.cg-kicker { font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: var(--gold); font-weight: 600; }
.cg-soft { background: var(--surface); }

/* Before you go */
.cg-basics { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 56px; border-top: 1px solid var(--line); }
.cg-basic { padding: 28px 24px 8px 0; border-right: 1px solid var(--line); }
.cg-basic + .cg-basic { padding-left: 24px; }
.cg-basic:last-child { border-right: 0; }
.cg-basic h3 { font-size: 1.5rem; font-weight: 800; line-height: 1.1; margin: 10px 0 12px; }
.cg-basic ul { list-style: none; margin: 0; padding: 0; font-size: .95rem; color: var(--muted); }
.cg-basic li { padding: 8px 0; border-top: 1px solid var(--line); }
.cg-basic li b { color: var(--ink); font-weight: 600; }
.cg-notes { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; margin: 28px 0 0; padding: 0; }
.cg-notes li { display: flex; align-items: center; gap: 10px; background: var(--surface); border-radius: var(--r-input); padding: 10px 14px; font-size: .875rem; }
.cg-notes i { width: 34px; height: 18px; border-radius: 3px; display: inline-block; }

/* Map */
.cg-map-head { display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: end; margin-bottom: 28px; }
.cg-modes, .cg-layers, .cg-tabs, .cg-side__actions { display: flex; gap: 8px; flex-wrap: wrap; }
.cg-layers { margin-bottom: 16px; }
.cg-layers .fg-chip { display: inline-flex; align-items: center; gap: 8px; }
.cg-layers .fg-chip[aria-pressed="true"] { background: var(--bg); color: var(--ink); border-color: var(--ink); }
.cg-layers .fg-chip[aria-pressed="false"] { opacity: .55; }
.cg-dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; flex: none; }
.cg-dot--sight { background: var(--c-sight); }
.cg-dot--photo { background: var(--c-photo); }
.cg-dot--eat { background: var(--c-eat); }
.cg-dot--night { background: var(--c-night); }
.cg-mapbox { display: grid; grid-template-columns: 1fr 380px; border: 1.5px solid var(--ink); border-radius: var(--r-media); overflow: hidden; height: 600px; }
.cg-map { height: 100%; background: var(--surface); z-index: 0; }
.cg-side { display: flex; flex-direction: column; border-left: 1.5px solid var(--ink); min-height: 0; background: var(--bg); }
.cg-side__head { padding: 20px 22px 14px; border-bottom: 1px solid var(--line); }
.cg-side__title { font-size: 1.5rem; font-weight: 800; line-height: 1.1; }
.cg-side__sub { margin: 6px 0 12px; }
.cg-side__actions .fg-chip { padding: 6px 12px; font-size: .8rem; text-decoration: none; }
.cg-list { list-style: none; margin: 0; padding: 0; overflow-y: auto; flex: 1; }
.cg-list li { border-bottom: 1px solid var(--line); }
.cg-list button { all: unset; box-sizing: border-box; display: grid; grid-template-columns: 30px 1fr; gap: 12px; width: 100%; padding: 14px 22px; cursor: pointer; }
.cg-list button:hover, .cg-list button[aria-current="true"] { background: var(--surface); }
.cg-list button:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.cg-no { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; color: #fff; font: 700 .8rem var(--font-body); margin-top: 2px; }
.cg-name { display: block; font-weight: 600; line-height: 1.3; }
.cg-name small { display: block; font-weight: 400; color: var(--muted); font-size: .8rem; }
.cg-note { display: block; font-size: .875rem; color: var(--muted); margin-top: 4px; line-height: 1.5; }
.cg-pin { width: 30px; height: 30px; border-radius: 50% 50% 50% 0; transform: rotate(-45deg); display: grid; place-items: center; border: 2px solid #fff; box-shadow: 0 1px 4px rgba(0, 0, 0, .35); }
.cg-pin span { transform: rotate(45deg); color: #fff; font: 700 .75rem var(--font-body); }
.cg-pin.is-on { outline: 3px solid var(--accent); outline-offset: 2px; }
.cg .leaflet-container { font-family: var(--font-body); }
.cg .leaflet-popup-content { font-size: .875rem; line-height: 1.5; margin: 14px 16px; color: #141414; }
.cg .leaflet-popup-content b { font-size: .95rem; }
.cg .leaflet-popup-content a { font-weight: 600; color: #E3120B; }
.cg-map-foot { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 14px; }

/* Experiences: the free list */
.cg-free { margin-top: 72px; display: grid; grid-template-columns: .8fr 1.2fr; gap: 64px; border-top: 2px solid var(--ink); padding-top: 32px; }
.cg-free ol { list-style: none; margin: 0; padding: 0; columns: 2; column-gap: 40px; }
.cg-free li { break-inside: avoid; padding-bottom: 22px; }
.cg-free b { display: block; font-size: 1.05rem; }
.cg-free span { font-size: .95rem; color: var(--muted); }

/* Photo spots */
.cg-spots { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 48px; border-top: 1px solid var(--line); }
.cg-spot { padding: 28px 28px 28px 0; border-bottom: 1px solid var(--line); }
.cg-spot:nth-child(3n+2), .cg-spot:nth-child(3n+3) { padding-left: 28px; border-left: 1px solid var(--line); }
.cg-spot h3 { font-size: 1.5rem; font-weight: 800; line-height: 1.1; margin: 6px 0 10px; }
.cg-spot p { font-size: .95rem; color: var(--muted); margin: 0 0 12px; }
.cg-spot button { all: unset; cursor: pointer; font-weight: 600; font-size: .875rem; border-bottom: 1.5px solid var(--gold); }
.cg-spot button:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

/* Day plans */
.cg-tabs { margin: 40px 0 32px; }
.cg-plan__intro { font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 600; }
.cg-plan ol { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); border-top: 2px solid var(--ink); }
.cg-plan li { padding: 22px 22px 8px 0; border-right: 1px solid var(--line); }
.cg-plan li + li { padding-left: 22px; }
.cg-plan li:last-child { border-right: 0; }
.cg-plan time { font: 800 1.9rem/1 var(--font-display); color: var(--accent); display: block; }
.cg-plan h3 { font-size: 1.2rem; font-weight: 700; margin: 12px 0 6px; }
.cg-plan p { font-size: .95rem; color: var(--muted); }
.cg-plan p a, .cg-rules p a { color: var(--ink); font-weight: 600; }

/* Keep reading */
.cg-reads { list-style: none; margin: 40px 0 0; padding: 0; border-top: 2px solid var(--ink); }
.cg-reads li { border-bottom: 1px solid var(--line); }
.cg-reads a { display: flex; justify-content: space-between; gap: 16px; padding: 16px 0; text-decoration: none; font-weight: 600; }
.cg-reads a:hover { color: var(--accent); }
.cg-reads span { color: var(--muted); font-weight: 400; font-size: .875rem; white-space: nowrap; }

/* Closing call to action */
.cg-cta__grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; }
.cg-cta .actions { margin-top: 28px; }
.cg-cta__media img, .cg-cta__media .ph { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--r-media); }

@media (max-width: 1000px) {
	.cg-basics, .cg-plan ol { grid-template-columns: repeat(2, 1fr); }
	.cg-basic:nth-child(2), .cg-plan li:nth-child(2) { border-right: 0; }
	.cg-basic:nth-child(3), .cg-plan li:nth-child(3) { padding-left: 0; }
}
@media (max-width: 860px) {
	.cg-map-head, .cg-free, .cg-cta__grid { grid-template-columns: 1fr; gap: 32px; }
	.cg-mapbox { grid-template-columns: 1fr; height: auto; }
	.cg-map { height: 420px; }
	.cg-side { border-left: 0; border-top: 1.5px solid var(--ink); }
	.cg-list { max-height: 360px; }
	.cg-spots { grid-template-columns: 1fr; }
	.cg-spot, .cg-spot:nth-child(3n+2), .cg-spot:nth-child(3n+3) { padding: 24px 0; border-left: 0; }
	.cg-free ol { columns: 1; }
}
@media (max-width: 600px) {
	.cg-basics, .cg-plan ol { grid-template-columns: 1fr; }
	.cg-basic, .cg-basic + .cg-basic, .cg-plan li, .cg-plan li + li { padding: 22px 0 8px; border-right: 0; }
}

/* When to go */
.cg-cal { overflow-x: auto; margin-top: 40px; }
.cg-cal table { width: 100%; min-width: 820px; border-collapse: collapse; font-size: .9rem; }
.cg-cal th, .cg-cal td { padding: 12px 3px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: middle; }
.cg-cal thead th { font-size: .8rem; color: var(--muted); border-bottom: 2px solid var(--ink); text-align: center; }
.cg-cal thead th:first-child, .cg-cal thead th:last-child { text-align: left; }
.cg-cal thead th:last-child { padding-left: 20px; }
.cg-cal abbr { text-decoration: none; }
.cg-cal tbody th { font-weight: 700; padding-right: 18px; min-width: 170px; }
.cg-cal tbody th small { display: block; font-weight: 400; color: var(--muted); }
.cg-cal__m { width: 34px; position: relative; }
.cg-cal__m::before, .cg-cal__key i { content: ""; display: block; height: 26px; border-radius: 5px; border: 1.5px solid var(--line); background: var(--bg); }
.cg-cal__m--best::before, .cg-cal__key .cg-cal__m--best { background: #CFA61B; border-color: #CFA61B; }
.cg-cal__m--g::before, .cg-cal__key .cg-cal__m--g { background: #F0DFA6; border-color: #F0DFA6; }
.cg-cal__m--r::before, .cg-cal__key .cg-cal__m--r { background: repeating-linear-gradient(135deg, #8d959c 0 2px, #e3e6e8 2px 6px); border-color: #b9c0c5; }
.cg-cal__note { color: var(--muted); padding-left: 20px !important; min-width: 230px; }
.cg-cal__key { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 20px; margin: 18px 0 0; padding: 0; font-size: .875rem; color: var(--muted); }
.cg-cal__key li { display: flex; align-items: center; gap: 8px; }
.cg-cal__key i { width: 22px; height: 16px; }

/* Place by place (regions) */
.cg-chapters { margin-top: 48px; border-top: 1px solid var(--line); }
.cg-chapter { display: grid; grid-template-columns: .8fr 1.2fr; gap: 56px; padding: 32px 0; border-bottom: 1px solid var(--line); }
.cg-chapter h3 { font-size: clamp(1.6rem, 2.6vw, 2.2rem); font-weight: 800; line-height: 1.1; }
.cg-chapter__meta { display: flex; flex-wrap: wrap; gap: 4px 20px; margin-top: 12px; font-size: .9rem; color: var(--muted); }
.cg-chapter__meta b { color: var(--ink); }
.cg-chapter ul { margin: 14px 0 0; padding-left: 1.1em; color: var(--muted); }
.cg-chapter li { padding: 3px 0; }
.cg-chapter__more { display: inline-block; margin-top: 14px; font-weight: 600; }
@media (max-width: 860px) { .cg-chapter { grid-template-columns: 1fr; gap: 14px; } }
.cg-cal .screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* No tours here: the free list comes before our tours elsewhere */
.cg-own { display: flex; flex-direction: column; }
.cg-own .cg-free { order: 1; margin-top: 48px; }
.cg-own .fg-tours { order: 2; margin-top: 72px; }
