/* city-guides.css — storefront for /city-guides/* and /<lang>/city-guides/*
 * (paid Apple Maps city guides sold on Gumroad). Builds on global.css tokens
 * and guide-v2.css (breadcrumb, sections, FAQ); everything product-shaped
 * lives here. Logical properties throughout so /ar/ mirrors without overrides.
 * The build versions the link by content hash; just rebuild after editing. */

.cg-page { --cg-warm: #ff9f0a; --cg-warm-soft: #ffb340; --cg-surface: #101114; --cg-line: rgba(255,255,255,0.09); }
.cg-page .g-wrap { max-width: 1080px; }
.cg-page main { overflow-x: clip; }
.cg-page svg { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

/* ── Hero ─────────────────────────────────────────────────────────── */
.cg-hero {
    position: relative; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
    gap: clamp(24px, 4vw, 56px); align-items: center; padding: clamp(20px, 4vw, 44px) 0 8px;
}
.cg-hero::before {
    content: ""; position: absolute; inset: -40px -10% auto auto; width: 62%; height: 120%; z-index: -1; pointer-events: none;
    background: radial-gradient(closest-side, rgba(10,132,255,0.20), rgba(255,159,10,0.07) 55%, transparent 75%);
    filter: blur(8px);
}
.cg-eyebrow { margin: 0 0 12px; font-size: 12px; font-weight: 700; letter-spacing: 0.09em; text-transform: uppercase; color: var(--cg-warm-soft); }
.cg-hero h1 {
    margin: 0 0 16px; font-size: clamp(32px, 5vw, 52px); line-height: 1.06; letter-spacing: -0.03em; font-weight: 700; text-wrap: balance;
    background: linear-gradient(180deg, #fff 30%, rgba(255,255,255,0.72)); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.cg-hero-lead { margin: 0 0 22px; font-size: clamp(16px, 1.6vw, 18px); line-height: 1.6; color: var(--text-secondary); max-width: 58ch; }
.cg-hero-cta { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 22px; }
.cg-stats { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 0; padding: 0; list-style: none; font-size: 14px; color: var(--text-tertiary); }
.cg-stats li { display: inline-flex; align-items: baseline; gap: 5px; }
.cg-stats b { font-size: 20px; font-weight: 700; letter-spacing: -0.02em; color: var(--text-primary); font-variant-numeric: tabular-nums; }

/* Product covers, fanned. Purely decorative: the cards below carry the alt text. */
.cg-fan { position: relative; aspect-ratio: 1 / 0.92; }
.cg-fan img {
    position: absolute; width: 58%; height: auto; border-radius: 18px; border: 1px solid rgba(255,255,255,0.14);
    box-shadow: 0 24px 60px rgba(0,0,0,0.6), 0 2px 0 rgba(255,255,255,0.05) inset; transition: transform .35s cubic-bezier(.2,.7,.2,1);
}
.cg-fan-3 img:nth-child(1) { inset-inline-start: 0; top: 16%; transform: rotate(-9deg); }
.cg-fan-3 img:nth-child(2) { inset-inline-start: 21%; top: 2%; transform: rotate(-1deg); z-index: 1; }
.cg-fan-3 img:nth-child(3) { inset-inline-start: 42%; top: 20%; transform: rotate(8deg); }
.cg-fan-2 { aspect-ratio: 1 / 0.8; }
.cg-fan-2 img { width: 64%; }
.cg-fan-2 img:nth-child(1) { inset-inline-end: 0; top: 16%; transform: rotate(7deg); }
.cg-fan-2 img:nth-child(2) { inset-inline-start: 0; top: 2%; transform: rotate(-5deg); z-index: 1; }
.cg-hero:hover .cg-fan-3 img:nth-child(1) { transform: rotate(-12deg) translate(-6px, 2px); }
.cg-hero:hover .cg-fan-3 img:nth-child(3) { transform: rotate(11deg) translate(6px, 2px); }
.cg-hero:hover .cg-fan-2 img:nth-child(1) { transform: rotate(10deg) translate(6px, 2px); }

/* ── What you get ─────────────────────────────────────────────────── */
.cg-trust {
    display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: clamp(20px, 3vw, 36px) 0 0; padding: 0; list-style: none;
    border: 1px solid var(--cg-line); border-radius: 16px; background: var(--cg-surface);
}
.cg-trust li { display: flex; align-items: center; gap: 10px; padding: 14px 18px; font-size: 14px; line-height: 1.4; color: var(--text-secondary); }
.cg-trust li + li { border-inline-start: 1px solid var(--cg-line); }
.cg-trust svg { color: #5aa9ff; width: 20px; height: 20px; }

/* ── Buttons ──────────────────────────────────────────────────────── */
.cg-btn {
    display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 0 20px; text-align: center;
    border-radius: 12px; font-size: 15px; font-weight: 650; line-height: 1.2; text-decoration: none;
    transition: transform .15s, box-shadow .15s, background .15s, border-color .15s;
}
.cg-btn:hover { transform: translateY(-1px); }
.cg-btn:focus-visible, .cg-city:focus-visible { outline: 2px solid #5aa9ff; outline-offset: 3px; }
/* #0071e3, not --accent: white on #0A84FF measured 3.64:1 at this size; this is 4.7:1. */
.cg-btn-buy { background: #0071e3; color: #fff; box-shadow: 0 6px 20px rgba(10,132,255,0.28); }
.cg-btn-buy:hover { background: #0077ed; box-shadow: 0 8px 26px rgba(10,132,255,0.4); }
.cg-btn-sample, .cg-btn-ghost { background: rgba(255,255,255,0.05); color: var(--text-primary); border: 1px solid rgba(255,255,255,0.16); }
.cg-btn-sample:hover, .cg-btn-ghost:hover { background: rgba(255,255,255,0.09); border-color: rgba(255,255,255,0.3); }
.cg-btn-pass { background: var(--cg-warm); color: #1a1206; box-shadow: 0 6px 22px rgba(255,159,10,0.25); }
.cg-btn-pass:hover { background: #ffb02e; box-shadow: 0 8px 28px rgba(255,159,10,0.38); }

/* ── Product cards (city page) ────────────────────────────────────── */
.cg-page .g-section > h2 { font-size: clamp(24px, 3vw, 32px); margin-bottom: 18px; }
.cg-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin: 0; padding: 0; list-style: none; }
.cg-card {
    display: flex; flex-direction: column; border-radius: 22px; overflow: hidden;
    background: var(--cg-surface); border: 1px solid var(--cg-line); transition: border-color .2s, transform .2s;
}
.cg-card:hover { border-color: rgba(255,255,255,0.2); }
.cg-card > img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; object-position: top; background: #12131c; }
.cg-card-body { display: flex; flex-direction: column; gap: 12px; padding: 20px 22px 22px; flex: 1; }
.cg-card h3 { display: flex; align-items: center; gap: 10px; margin: 0; font-size: 22px; line-height: 1.25; letter-spacing: -0.02em; }
.cg-card h3 svg { width: 22px; height: 22px; color: #5aa9ff; }
.cg-card-kids h3 svg { color: var(--cg-warm-soft); }
.cg-card p { margin: 0; color: var(--text-secondary); font-size: 15px; line-height: 1.55; }
.cg-card .cg-detail { font-size: 14px; line-height: 1.5; color: var(--text-secondary); }
.cg-card .cg-detail strong {
    display: block; margin-bottom: 4px; font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-tertiary);
}
.cg-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 2px 0 0; padding: 0; list-style: none; }
.cg-chips li { padding: 4px 10px; border-radius: 99px; font-size: 13px; color: var(--text-secondary); background: rgba(255,255,255,0.06); border: 1px solid var(--cg-line); }
.cg-buy { margin-top: auto; padding-top: 16px; border-top: 1px solid var(--cg-line); display: flex; flex-direction: column; gap: 14px; }
.cg-card p.cg-price-row { display: flex; align-items: center; gap: 14px; }
.cg-price { font-size: 30px; font-weight: 700; letter-spacing: -0.03em; line-height: 1; color: var(--text-primary); white-space: nowrap; }
.cg-formats { font-size: 13px; line-height: 1.4; color: var(--text-tertiary); }
.cg-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.cg-actions .cg-btn { padding: 10px 12px; }

.cg-note { display: flex; align-items: flex-start; gap: 10px; margin: 16px 0 0; font-size: 14px; line-height: 1.5; color: var(--text-tertiary); }
.cg-note svg { margin-top: 1px; }
.cg-note a { color: #5aa9ff; }
.cg-note-late { padding: 14px 16px; border-radius: 14px; background: var(--cg-surface); border: 1px solid var(--cg-line); color: var(--text-secondary); }
.cg-note-late svg { color: var(--cg-warm-soft); }

/* ── City cards (index, "more cities") ────────────────────────────── */
.cg-cities { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin: 0; padding: 0; list-style: none; }
.cg-city {
    display: flex; flex-direction: column; height: 100%; border-radius: 20px; overflow: hidden; text-decoration: none; color: var(--text-primary);
    background: var(--cg-surface); border: 1px solid var(--cg-line); transition: transform .2s, border-color .2s, box-shadow .2s;
}
.cg-city:hover { transform: translateY(-3px); border-color: rgba(255,255,255,0.24); box-shadow: 0 18px 40px rgba(0,0,0,0.5); }
.cg-city-img { position: relative; display: block; aspect-ratio: 2 / 1; overflow: hidden; background: #12131c; }
/* The cover's top third is its English title; crop to the map and set the name in the reader's language. */
.cg-city-img img { position: absolute; inset: auto 0 0 0; width: 100%; height: auto; transition: transform .5s cubic-bezier(.2,.7,.2,1); }
.cg-city:hover .cg-city-img img { transform: scale(1.05); }
.cg-city-img::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(5,5,5,0) 35%, rgba(5,5,5,0.88)); }
.cg-city-img strong {
    position: absolute; inset-inline: 16px; bottom: 12px; z-index: 1; font-size: 24px; line-height: 1.1; font-weight: 700; letter-spacing: -0.02em;
    text-shadow: 0 1px 12px rgba(0,0,0,0.6);
}
.cg-city-body { display: flex; flex-direction: column; gap: 7px; padding: 14px 16px 16px; flex: 1; }
.cg-city-stat { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--text-secondary); }
.cg-city-stat svg { width: 16px; height: 16px; color: var(--text-tertiary); }
.cg-city-stat b { color: var(--text-primary); font-weight: 650; }
.cg-city-foot {
    display: flex; align-items: center; justify-content: space-between; margin-top: auto; padding-top: 12px; border-top: 1px solid var(--cg-line);
    font-size: 14px; color: var(--text-secondary);
}
.cg-city-foot em { font-style: normal; font-weight: 650; color: var(--text-primary); }
.cg-city-foot svg { color: #5aa9ff; transition: transform .2s; }
.cg-city:hover .cg-city-foot svg { transform: translateX(4px); }
.cg-city-pass {
    justify-content: flex-end; gap: 8px; padding: 18px 16px 16px; min-height: 180px;
    background: linear-gradient(150deg, rgba(255,159,10,0.2), rgba(255,159,10,0.04) 60%), var(--cg-surface); border-color: rgba(255,159,10,0.34);
}
.cg-city-pass:hover { border-color: rgba(255,159,10,0.6); }
.cg-city-pass .cg-save { align-self: flex-start; margin: 0 0 auto; }
.cg-city-pass > strong { font-size: 24px; line-height: 1.1; letter-spacing: -0.02em; }
.cg-city-pass .cg-city-foot { margin-top: 4px; border-top-color: rgba(255,159,10,0.25); }
.cg-city-pass .cg-city-foot em { font-size: 18px; }
.cg-city-pass .cg-city-foot s { margin-inline-start: 6px; font-size: 14px; font-weight: 400; color: var(--text-tertiary); }
.cg-city-pass .cg-city-foot svg { color: var(--cg-warm-soft); }
[dir="rtl"] .cg-arrow { scale: -1 1; }
[dir="rtl"] .cg-city:hover .cg-city-foot svg { transform: translateX(-4px); }

/* ── All Cities Pass ──────────────────────────────────────────────── */
.cg-pass {
    display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: clamp(20px, 3vw, 36px); align-items: center;
    padding: clamp(18px, 2.6vw, 28px); border-radius: 26px;
    background: linear-gradient(135deg, rgba(255,159,10,0.13), rgba(255,159,10,0.03) 55%), var(--cg-surface);
    border: 1px solid rgba(255,159,10,0.32);
}
.cg-pass > img { width: 100%; height: auto; border-radius: 16px; display: block; box-shadow: 0 18px 44px rgba(0,0,0,0.5); }
.cg-save {
    display: inline-block; margin-bottom: 10px; padding: 4px 10px; border-radius: 99px; font-size: 13px; font-weight: 700;
    color: #1a1206; background: var(--cg-warm); font-variant-numeric: tabular-nums;
}
.cg-pass h2 { margin: 0 0 8px; font-size: clamp(24px, 3vw, 32px); letter-spacing: -0.02em; }
.cg-pass p { margin: 0 0 14px; font-size: 15px; line-height: 1.55; color: var(--text-secondary); }
.cg-pass p.cg-pass-price { display: flex; align-items: baseline; gap: 12px; margin-bottom: 16px; }
.cg-pass-price b { font-size: 40px; font-weight: 700; letter-spacing: -0.03em; line-height: 1; color: var(--text-primary); }
.cg-pass-price s { font-size: 18px; color: var(--text-tertiary); }
.cg-pass p.g-tool-alt { margin: 12px 0 0; font-size: 13px; color: var(--text-tertiary); }

/* ── How it was made + FAQ, side by side ──────────────────────────── */
.cg-two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 36px; align-items: start; }

@media (max-width: 900px) {
    .cg-cities { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .cg-two { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
    .cg-hero { grid-template-columns: 1fr; }
    .cg-hero::before { width: 120%; inset: auto -10% -10% auto; height: 60%; }
    .cg-fan { max-width: 380px; width: 100%; margin: 0 auto; }
    .cg-trust { grid-template-columns: 1fr; }
    .cg-trust li + li { border-inline-start: 0; border-top: 1px solid var(--cg-line); }
    .cg-cards, .cg-pass { grid-template-columns: 1fr; }
    .cg-hero-cta .cg-btn { flex: 1 1 auto; }
}
@media (max-width: 520px) {
    .cg-cities { gap: 10px; }
    .cg-city-img strong { font-size: 19px; inset-inline: 12px; bottom: 10px; }
    .cg-city-body { padding: 12px; }
    .cg-city-stat { font-size: 13px; gap: 6px; }
    .cg-actions { grid-template-columns: 1fr; }
    .cg-actions .cg-btn-buy { order: -1; }
    .cg-card-body { padding: 18px; }
}
@media (prefers-reduced-motion: reduce) {
    .cg-btn, .cg-city, .cg-city-img img, .cg-fan img, .cg-city-foot svg { transition: none; }
    .cg-city:hover, .cg-btn:hover { transform: none; }
}
