/* City page. Sizes come from typography.css; colours from the logo (--brand). */
:root { --hdr: 80px; --ink: #14172b; --muted: #5b6475; --line: #eceef5; --paper: #f6f7fb; }

/* ---------- hero ---------- */
.city-hero { position: relative; min-height: clamp(480px, 68vh, 640px); display: flex; align-items: flex-end; color: #fff; isolation: isolate; overflow: hidden; }
.city-hero-bg { position: absolute; inset: 0; z-index: -2; background: var(--hero) center / cover no-repeat; transform: scale(1.04); }
.city-hero-overlay { position: absolute; inset: 0; z-index: -1;
    background: linear-gradient(180deg, rgba(10, 12, 28, .55) 0%, rgba(10, 12, 28, .25) 35%, rgba(10, 12, 28, .88) 100%),
                radial-gradient(60% 80% at 15% 100%, rgba(var(--brand-rgb, 212, 20, 120), .35), transparent 70%); }
.city-hero-content { padding-top: 120px; padding-bottom: 56px; }
.cityx-crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 22px; padding: 0; list-style: none; font-size: var(--fs-small); }
.cityx-crumbs a { color: rgba(255, 255, 255, .8); }
.cityx-crumbs a:hover { color: #fff; }
.cityx-crumbs li + li::before { content: "/"; margin-right: 8px; color: rgba(255, 255, 255, .45); }
.cityx-crumbs li:last-child { color: #fff; font-weight: 600; }
.cityx-chips { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 18px; }
.cityx-chip { display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border-radius: 999px; background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .28); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); font-size: var(--fs-small); font-weight: 600; color: #fff; }
.cityx-chip i { color: #ff8fc2; }
.city-hero h1 { color: #fff; margin: 0 0 16px; text-shadow: 0 2px 30px rgba(0, 0, 0, .35); }
.city-intro { max-width: 720px; margin: 0 0 30px; color: rgba(255, 255, 255, .88); }
.cityx-stats { display: flex; flex-wrap: wrap; gap: 14px; }
.cityx-stat { min-width: 128px; padding: 14px 20px; border-radius: 16px; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .22); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.cityx-stat b { display: block; font-size: var(--fs-h3); line-height: 1.1; font-weight: 700; }
.cityx-stat span { font-size: var(--fs-small); color: rgba(255, 255, 255, .75); }

/* ---------- sticky category bar ---------- */
.cityx-nav { position: sticky; top: var(--hdr); z-index: 20; background: rgba(255, 255, 255, .92); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.cityx-nav .container { display: flex; gap: 10px; overflow-x: auto; padding-top: 14px; padding-bottom: 14px; scrollbar-width: none; }
.cityx-nav .container::-webkit-scrollbar { display: none; }
.cityx-nav a { flex: none; display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px; border-radius: 999px; border: 1px solid var(--line); background: #fff; color: #3b4160; font-size: var(--fs-small); font-weight: 600; transition: all .25s ease; }
.cityx-nav a em { font-style: normal; padding: 1px 8px; border-radius: 999px; background: #f0f2f8; color: #6b7190; font-size: 12px; }
.cityx-nav a:hover { border-color: rgba(var(--brand-rgb, 212, 20, 120), .4); color: var(--brand, #d41478); }
.cityx-nav a.active { background: var(--brand, #d41478); border-color: var(--brand, #d41478); color: #fff; box-shadow: 0 8px 18px rgba(var(--brand-rgb, 212, 20, 120), .3); }
.cityx-nav a.active em { background: rgba(255, 255, 255, .25); color: #fff; }

/* ---------- content ---------- */
.city-content { background: var(--paper); padding-bottom: 40px; }
.cityx-block { padding-top: 64px; scroll-margin-top: calc(var(--hdr) + 70px); }
.cityx-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 28px; }
.category-title { position: relative; margin: 0; padding-left: 22px; color: var(--ink); border: none; }
.category-title::before { content: ""; position: absolute; left: 0; top: 8%; bottom: 8%; width: 6px; border-radius: 20px; background: linear-gradient(180deg, var(--brand, #d41478), #ff6aa2); }
.cityx-count { display: block; margin: 6px 0 0 22px; font-size: var(--fs-small); color: #7a8196; font-weight: 500; }
.cityx-all { display: inline-flex; align-items: center; gap: 8px; font-size: var(--fs-small); font-weight: 700; color: var(--brand, #d41478); }
.cityx-all i { transition: transform .25s ease; }
.cityx-all:hover i { transform: translateX(4px); }

/* ---------- editor's pick (compact) ---------- */
.cityx-featured { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1fr); align-items: stretch; background: #fff; border: 1px solid var(--line); border-radius: 20px; overflow: hidden; box-shadow: 0 1px 2px rgba(20, 23, 43, .04), 0 12px 34px rgba(20, 23, 43, .07); transition: box-shadow .35s ease; }
.cityx-featured:hover { box-shadow: 0 2px 4px rgba(20, 23, 43, .05), 0 20px 44px rgba(20, 23, 43, .12); }
/* the image box takes its width from the column and its height from the row; no aspect-ratio here, otherwise a tall row widens it */
.cityx-featured .pcard-media { aspect-ratio: auto; width: 100%; height: 100%; min-height: 240px; }
.cityx-featured-body { display: flex; flex-direction: column; justify-content: center; align-items: flex-start; padding: 22px 28px; }
.cityx-badge { display: inline-flex; align-items: center; gap: 6px; margin-bottom: 10px; padding: 4px 12px; border-radius: 999px; background: rgba(var(--brand-rgb, 212, 20, 120), .1); color: var(--brand, #d41478); font-size: var(--fs-small); font-weight: 700; }
.cityx-featured .pcard-meta { margin-bottom: 8px; }
.cityx-featured h2 { margin: 0 0 8px; font-size: var(--fs-h5); line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.cityx-featured h2 a { color: var(--ink); }
.cityx-featured h2 a:hover { color: var(--brand, #d41478); }
.cityx-featured p.excerpt { margin: 0 0 16px; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.cityx-btn { display: inline-flex; align-items: center; gap: 8px; padding: 10px 20px; border-radius: 12px; background: linear-gradient(135deg, var(--brand, #d41478), #f0588b); color: #fff; font-size: var(--fs-small); font-weight: 700; box-shadow: 0 10px 22px rgba(var(--brand-rgb, 212, 20, 120), .28); transition: transform .25s ease, box-shadow .25s ease; }
.cityx-btn:hover { color: #fff; transform: translateY(-2px); box-shadow: 0 16px 30px rgba(var(--brand-rgb, 212, 20, 120), .36); }
.cityx-btn i { transition: transform .25s ease; }
.cityx-btn:hover i { transform: translateX(4px); }

/* ---------- other destinations ---------- */
.cityx-others { padding: 72px 0 80px; background: #fff; border-top: 1px solid var(--line); }
.cityx-tile { position: relative; display: block; aspect-ratio: 4 / 5; border-radius: 22px; overflow: hidden; color: #fff; isolation: isolate; box-shadow: 0 10px 30px rgba(20, 23, 43, .12); }
.cityx-tile::before { content: ""; position: absolute; inset: 0; z-index: -2; background: var(--img) center / cover no-repeat; transition: transform .7s ease; }
.cityx-tile::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(10, 12, 28, 0) 35%, rgba(10, 12, 28, .85) 100%); }
.cityx-tile:hover::before { transform: scale(1.08); }
.cityx-tile div { position: absolute; left: 18px; right: 18px; bottom: 16px; }
.cityx-tile strong { display: block; font-size: var(--fs-h5); font-weight: 700; line-height: 1.2; }
.cityx-tile span { font-size: var(--fs-small); color: rgba(255, 255, 255, .78); }
.cityx-tile:hover { color: #fff; }

@media (max-width: 991px) {
    .cityx-featured { grid-template-columns: 1fr; }
    .cityx-featured .pcard-media { height: auto; min-height: 0; aspect-ratio: 16 / 9; }
    .cityx-featured-body { padding: 20px 22px 22px; }
}
@media (max-width: 575px) {
    .city-hero { min-height: 420px; }
    .city-hero-content { padding-top: 96px; padding-bottom: 36px; }
    .cityx-stat { min-width: 0; flex: 1; padding: 12px 14px; }
    .cityx-block { padding-top: 44px; }
    .cityx-featured { border-radius: 16px; }
}
