/* ============================================================
   ATLAS GUIDE — COMPARISON PAGES v5
   compare-v5.css — load AFTER country-v5.css:
     <link rel="stylesheet" href="/css/country-v5.css">
     <link rel="stylesheet" href="/css/compare-v5.css">
   This page is a sibling of the country/city v5 pages — same
   cg- design system, same tokens. This file ONLY adds the
   handful of components genuine to a head-to-head comparison
   (split hero, dual climate chart, winner tags, category cards
   with an image). Everything else (nav, sections, tables, tabs,
   timeline, do/dont grid, FAQ, booking bar, chips) is inherited
   directly from country-v5.css — do not duplicate it here.
   ============================================================ */

/* ---------- 1. Split hero ---------- */
.cg-hero.cv-hero-split-wrap { padding-bottom: 40px; padding-top: 108px; }
.cv-hero-split-wrap .cg-breadcrumb { margin-top: 0; }

.cv-hero-split {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  z-index: 0;
}
.cv-hero-side { position: relative; overflow: hidden; }
.cv-hero-side img {
  width: 100%; height: 100%; object-fit: cover;
  filter: saturate(0.92);
}
.cv-hero-side.left::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(13,33,24,.72) 0%, rgba(13,33,24,.92) 100%);
}
.cv-hero-side.right::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(225deg, rgba(90,58,30,.62) 0%, rgba(13,33,24,.92) 100%);
}
.cv-hero-split.cv-hero-split { /* no center seam — it competed with the hero text */ }

.cv-hero-names {
  display: flex; align-items: center; justify-content: center;
  gap: clamp(20px, 4vw, 48px); flex-wrap: wrap; margin: 8px 0 20px;
}
.cv-hero-dest {
  font-family: var(--cg-font-display); font-weight: 700; color: #fff;
  font-size: clamp(2.6rem, 5.2vw, 5.2rem); line-height: .95; letter-spacing: -.03em;
  position: relative;
}
.cv-hero-dest::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -8px; height: 3px;
  background: var(--cg-gold); border-radius: 3px; transform: scaleX(0); transform-origin: left;
  animation: cv-underline .9s cubic-bezier(.16,1,.3,1) .7s forwards;
}
@keyframes cv-underline { to { transform: scaleX(1); } }
.cv-hero-vs {
  font-family: var(--cg-font-display); font-style: italic; font-weight: 400;
  font-size: clamp(1.2rem, 2.2vw, 1.8rem); color: var(--cg-gold);
}

/* ---------- 2. Sticky nav "overall winner" chip ---------- */
.cv-nav-winner {
  margin-left: auto; flex-shrink: 0; font-size: .8rem; font-weight: 600;
  color: var(--cg-muted); white-space: nowrap; padding-left: 14px;
  border-left: 1px solid var(--cg-line);
  display: flex; align-items: center; align-self: center;
}
.cv-nav-winner b { color: var(--cg-forest); font-weight: 800; }

/* ---------- 3. Category head-to-head card (adds an image slot to cg-card) ---------- */
.cv-cat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 20px; }
.cv-cat-card {
  background: var(--cg-paper, #fff); border: 1px solid var(--cg-line);
  border-radius: var(--cg-radius); overflow: hidden; display: flex; flex-direction: column;
  transition: transform .3s cubic-bezier(.16,1,.3,1), box-shadow .3s;
}
.cv-cat-card:hover { transform: translateY(-3px); box-shadow: var(--cg-shadow); }
.cv-cat-img { height: 190px; overflow: hidden; position: relative; }
.cv-cat-img img { width: 100%; height: 100%; object-fit: cover; }
.cv-cat-img-tag {
  position: absolute; bottom: 12px; left: 12px; background: rgba(255,255,255,.92);
  padding: 5px 12px; border-radius: 999px; font-size: .74rem; font-weight: 800; color: var(--cg-deep);
}
.cv-cat-body { padding: 20px 22px 22px; flex: 1; display: flex; flex-direction: column; }
.cv-cat-dest { font-size: .68rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--cg-forest); margin-bottom: 6px; }
.cv-cat-card.right .cv-cat-dest { color: var(--ag-gold-700, #8a6020); }
.cv-cat-title { font-family: var(--cg-font-display); font-size: 1.15rem; font-weight: 700; color: var(--cg-deep); line-height: 1.3; margin-bottom: 10px; }
.cv-cat-text { font-size: .89rem; color: var(--cg-muted); line-height: 1.7; margin-bottom: 14px; flex: 1; }

/* ---------- 4. Winner tag pill ---------- */
.cv-tag { display: inline-flex; align-items: center; gap: 6px; font-size: .76rem; font-weight: 800; padding: 6px 14px; border-radius: 999px; align-self: flex-start; }
.cv-tag-win  { background: rgba(26,58,43,.09); color: var(--cg-forest); }
.cv-tag-lose { background: rgba(194,75,58,.09); color: var(--cg-danger, #C24B3A); }
.cv-tag-tie  { background: rgba(201,168,92,.14); color: var(--ag-gold-700, #8a6020); }

/* ---------- 5. Dual climate bar chart ---------- */
.cv-climate { background: var(--cg-paper, #fff); border: 1px solid var(--cg-line); border-radius: var(--cg-radius); padding: 26px 24px; margin-top: 20px; }
.cv-climate-legend { display: flex; gap: 20px; flex-wrap: wrap; margin-bottom: 20px; font-size: .82rem; font-weight: 600; color: var(--cg-muted); }
.cv-legend-dot { width: 10px; height: 10px; border-radius: 3px; display: inline-block; margin-right: 6px; }
.cv-legend-dot.a { background: var(--cg-forest); }
.cv-legend-dot.b { background: var(--cg-gold); }
.cv-climate-chart { display: grid; grid-template-columns: repeat(12, 1fr); gap: 4px; align-items: end; }
.cv-bar-col { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.cv-bar-pair { display: flex; gap: 2px; align-items: end; height: 70px; width: 100%; }
.cv-bar { flex: 1; border-radius: 2px 2px 0 0; min-height: 3px; }
.cv-bar.a { background: var(--cg-forest); }
.cv-bar.b { background: var(--cg-gold); }
.cv-bar-month { font-size: .62rem; font-weight: 700; color: var(--cg-muted); text-transform: uppercase; }

/* ---------- 6. Verdict two-up cards ---------- */
.cv-verdict-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 20px; }
.cv-verdict-card { background: var(--cg-paper, #fff); border: 1px solid var(--cg-line); border-radius: var(--cg-radius); padding: 28px 26px; border-top: 4px solid var(--cg-forest); }
.cv-verdict-card.right { border-top-color: var(--ag-gold-500, #C9A85C); }
.cv-verdict-for { font-size: .68rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--cg-muted); margin-bottom: 8px; }
.cv-verdict-name { font-family: var(--cg-font-display); font-size: 1.3rem; font-weight: 700; color: var(--cg-deep); margin-bottom: 10px; }
.cv-verdict-card ul { margin: 12px 0 0; padding: 0; list-style: none; }
.cv-verdict-card li { position: relative; padding-left: 20px; font-size: .88rem; color: var(--cg-muted); line-height: 1.6; margin-bottom: 8px; }
.cv-verdict-card li::before { content: '→'; position: absolute; left: 0; color: var(--cg-forest); font-weight: 700; }
.cv-verdict-card.right li::before { color: var(--ag-gold-700, #8a6020); }

@media (max-width: 700px) {
  .cv-cat-grid, .cv-verdict-grid { grid-template-columns: 1fr; }
  .cv-hero-names { flex-direction: column; gap: 4px; }
  .cv-climate-chart { grid-template-columns: repeat(6, 1fr); row-gap: 16px; }
  .cv-nav-winner { display: none; }
}