/* Comparison pages (/vs/<a>-vs-<b>). Blocks borrowed from elsewhere on the site: score colours and the
   weather chart from the city pages, photo cards and the VS badge from the home page, number tiles from
   /services. Square corners and slanted accents, per the site's design rule. Links need the
   :not(.btn):not(.nav-link) form to beat the terracotta link rule in base.css. */

.vs-head { text-align: center; max-width: 640px; margin: 0 auto var(--space-10); }
.vs-section .vs-head h2 { margin: 0 0 var(--space-3); font-size: clamp(1.8rem, 4vw, 2.5rem); line-height: 1.15; }
.vs-head p { margin: 0; font-size: 1.05rem; line-height: 1.65; color: var(--color-charcoal); }
.vs-section > .container { max-width: 1040px; }

/* Photo cards at the top */
.vs-cards { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-5); }
a.vs-card:not(.btn):not(.nav-link) { position: relative; display: block; background: #fff; color: var(--color-ink); text-decoration: none; box-shadow: 0 6px 24px rgba(15,23,42,.1); transition: transform .18s ease, box-shadow .18s ease; }
a.vs-card:not(.btn):not(.nav-link):hover { transform: translateY(-3px); box-shadow: 0 16px 34px rgba(15,23,42,.18); }
.vs-card-img { display: block; height: 210px; background-size: cover; background-position: center; }
.vs-card-win { position: absolute; top: var(--space-4); left: var(--space-4); padding: .3rem .95rem; font-size: .72rem; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: #fff; background: var(--color-terracotta); clip-path: polygon(7px 0, 100% 0, calc(100% - 7px) 100%, 0 100%); }
.vs-card-body { display: grid; grid-template-columns: auto 1fr auto; gap: var(--space-3); align-items: center; padding: var(--space-5); }
.vs-card-body .flag-img { width: 34px; display: block; box-shadow: 0 0 0 1px rgba(0,0,0,.08); }
.vs-card-name { display: block; font-family: var(--font-display); font-size: 1.5rem; line-height: 1.15; }
.vs-card-country { display: block; font-size: var(--text-sm); color: var(--color-stone); }
.vs-card-score { display: flex; flex-direction: column; align-items: center; justify-content: center; width: 58px; height: 58px; background: var(--color-forest); color: #fff; font-family: var(--font-display); font-size: 1.35rem; line-height: 1; }
.vs-card-score small { margin-top: 3px; font-family: var(--font-body, inherit); font-size: .55rem; letter-spacing: .08em; text-transform: uppercase; opacity: .8; }
.vs-card-cost { grid-column: 1 / -1; display: flex; justify-content: space-between; align-items: baseline; padding: var(--space-2) var(--space-3); background: var(--color-sand); font-size: var(--text-sm); color: var(--color-charcoal); }
.vs-card-cost b { font-size: 1.1rem; color: var(--color-terracotta); }
.vs-vs { position: absolute; top: 105px; left: 50%; z-index: 2; transform: translate(-50%, -50%); display: flex; align-items: center; justify-content: center; width: 52px; height: 52px; background: var(--color-terracotta); color: #fff; font-family: var(--font-display); font-size: 1.1rem; font-style: italic; font-weight: 700; text-transform: lowercase; box-shadow: 0 0 0 4px #fff; }

/* Opposed bars */
.vs-duel { max-width: 860px; margin: 0 auto; padding: var(--space-6) var(--space-8); background: #fff; box-shadow: 0 6px 24px rgba(15,23,42,.08); }
.vs-duel-head { display: flex; justify-content: space-between; padding-bottom: var(--space-3); margin-bottom: var(--space-2); border-bottom: 2px solid var(--color-ink); font-family: var(--font-display); font-size: 1.2rem; color: var(--color-ink); }
.vs-duel-row { display: grid; grid-template-columns: 58px 1fr 158px 1fr 58px; align-items: center; gap: var(--space-3); padding: .55rem 0; border-bottom: 1px solid var(--color-sand); font-variant-numeric: tabular-nums; }
.vs-duel-row:last-child { border-bottom: 0; }
.vs-duel-row > .vs-duel-v:first-child { text-align: left; }
.vs-duel-row > .vs-duel-v:last-child { text-align: right; }
.vs-duel-v { font-size: .95rem; color: var(--color-stone); }
.vs-duel-v.win { font-weight: 800; color: var(--color-ink); }
.vs-duel-l { display: flex; align-items: center; justify-content: center; gap: .4rem; font-size: .88rem; font-weight: 600; color: var(--color-ink); text-align: center; }
.vs-duel-ico { display: inline-flex; color: var(--color-terracotta); }
.vs-duel-ico svg { width: 16px; height: 16px; }
.vs-duel-track { display: flex; height: 12px; background: var(--color-sand); }
.vs-duel-track.left { justify-content: flex-end; }
.vs-duel-track i { display: block; height: 100%; background: var(--color-terracotta); }
.vs-duel-track i.good { background: #10b981; }
.vs-duel-track i.mid { background: #f59e0b; }
.vs-duel-track i.low { background: #ef4444; }

/* Stat band and facts */
.vs-stats { display: grid; grid-template-columns: repeat(3, 1fr); background: linear-gradient(180deg, #111a2b 0%, #0a0f1b 100%); margin-bottom: var(--space-6); }
.vs-stat { padding: var(--space-6); text-align: center; border-left: 1px solid rgba(255,255,255,.1); }
.vs-stat:first-child { border-left: 0; }
.vs-stat b { display: block; font-family: var(--font-display); font-size: clamp(1.5rem, 3.5vw, 2.1rem); line-height: 1.15; color: #fff; }
.vs-stat span { font-size: .85rem; color: #cbd5e1; }
.vs-facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--color-sand-dark); border: 1px solid var(--color-sand-dark); }
.vs-fact { display: flex; gap: var(--space-3); padding: var(--space-4) var(--space-5); background: #fff; }
.vs-fact-ico { flex: 0 0 auto; color: var(--color-terracotta); }
.vs-fact-ico svg { width: 22px; height: 22px; }
.vs-fact-label { display: block; margin-bottom: .3rem; font-size: .68rem; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: var(--color-stone); }
.vs-fact-both { display: block; font-size: .95rem; font-weight: 600; color: var(--color-ink); }
.vs-fact-both em { margin-left: .4rem; font-size: .78rem; font-style: normal; font-weight: 400; color: var(--color-stone); }
.vs-fact-v { display: block; font-size: .9rem; line-height: 1.45; color: var(--color-ink); }
.vs-fact-v b { display: block; font-size: .72rem; font-weight: 600; color: var(--color-terracotta); }
.vs-fact-v + .vs-fact-v { margin-top: .35rem; }

/* Weather */
.vs-wx { display: grid; grid-template-columns: repeat(12, 1fr); gap: 4px; }
.vs-wx-m { display: flex; flex-direction: column; align-items: center; }
.vs-wx-t { position: relative; display: flex; justify-content: center; gap: 5px; width: 100%; height: 170px; background: var(--color-sand); }
.vs-wx-t i { position: relative; display: block; width: 26%; max-width: 16px; align-self: flex-end; }
.vs-wx-t i.a, .vs-wx-r i.a, .vs-legend i.a { background: var(--color-terracotta); }
.vs-wx-t i.b, .vs-wx-r i.b, .vs-legend i.b { background: var(--color-forest); }
.vs-wx-r { display: flex; justify-content: center; align-items: flex-end; gap: 5px; width: 100%; height: 56px; margin-top: 6px; border-bottom: 1px solid var(--color-sand-dark); }
.vs-wx-r i { display: block; width: 26%; max-width: 16px; opacity: .55; }
.vs-wx-m > span { margin-top: .4rem; font-size: .75rem; font-weight: 600; color: var(--color-charcoal); }
.vs-legend { display: flex; flex-wrap: wrap; justify-content: center; gap: .4rem 1.4rem; margin-top: var(--space-4); font-size: .85rem; color: var(--color-charcoal); }
.vs-legend span { display: inline-flex; align-items: center; gap: .4rem; }
.vs-legend i { display: inline-block; width: 12px; height: 12px; }
.vs-legend-note { color: var(--color-stone); }
.vs-numbers { max-width: 860px; margin: var(--space-5) auto 0; }
.vs-numbers summary { cursor: pointer; text-align: center; font-size: .9rem; font-weight: 600; color: var(--color-terracotta); }
.vs-numbers .vs-table-wrap { margin-top: var(--space-4); }
.vs-section .vs-source { max-width: 760px; margin: var(--space-4) auto 0; text-align: center; font-size: .8rem; line-height: 1.6; color: var(--color-stone); }

/* Costs, on navy */
.vs-section.vs-dark { background: linear-gradient(180deg, #111a2b 0%, #0a0f1b 100%); }
.vs-dark .vs-head h2, .vs-section.vs-dark h2, .vs-dark .vs-sub { color: #fff; }
.vs-costs { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-8); max-width: 860px; margin: 0 auto; }
.vs-cost-name { display: block; font-size: .78rem; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: #ff8863; }
.vs-cost b { display: block; margin: .2rem 0 var(--space-3); font-family: var(--font-display); font-size: clamp(2.4rem, 7vw, 3.6rem); line-height: 1; color: #fff; }
.vs-cost-bar { display: block; height: 8px; background: rgba(255,255,255,.12); }
.vs-cost-bar i { display: block; height: 100%; background: var(--color-terracotta); }
.vs-sub { max-width: 860px; margin: var(--space-10) auto var(--space-4); font-family: var(--font-display); font-size: 1.25rem; text-align: center; }
.vs-duel-dark { background: rgba(255,255,255,.05); box-shadow: none; }
.vs-duel-dark .vs-duel-head { border-color: rgba(255,255,255,.3); color: #fff; }
.vs-duel-dark .vs-duel-row { border-color: rgba(255,255,255,.08); }
.vs-duel-dark .vs-duel-v { color: #94a3b8; }
.vs-duel-dark .vs-duel-v.win { color: #fff; }
.vs-duel-dark .vs-duel-l { color: #e2e8f0; }
.vs-duel-dark .vs-duel-ico { color: #ff8863; }
.vs-duel-dark .vs-duel-track { background: rgba(255,255,255,.1); }
.vs-section.vs-dark .vs-source { color: #94a3b8; }

/* Passports */
.vs-passes { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-4); }
.vs-pass { padding: var(--space-5); background: #fff; box-shadow: 0 4px 16px rgba(15,23,42,.07); }
.vs-pass-name { display: flex; align-items: center; gap: .55rem; margin-bottom: var(--space-3); font-weight: 700; color: var(--color-ink); }
.vs-pass-name img { box-shadow: 0 0 0 1px rgba(0,0,0,.1); }
.vs-pass-line { display: flex; flex-wrap: wrap; align-items: center; gap: .3rem .55rem; margin-top: .4rem; font-size: .82rem; color: var(--color-stone); }
.vs-chip { display: inline-block; padding: .22rem .6rem; font-size: .8rem; font-weight: 700; }
.vs-chip.free { background: #dff5ec; color: #047857; }
.vs-chip.easy { background: #fdf0d8; color: #b45309; }
.vs-chip.req { background: #fde6e4; color: #b91c1c; }

/* Places */
.vs-places { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-6); }
.vs-place { background: #fff; box-shadow: 0 6px 24px rgba(15,23,42,.1); }
.vs-place-img { position: relative; display: flex; align-items: flex-end; height: 170px; padding: var(--space-4) var(--space-5); background-size: cover; background-position: center; }
.vs-place-img::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(15,23,42,0) 35%, rgba(15,23,42,.78) 100%); }
.vs-place-img b { position: relative; z-index: 1; font-family: var(--font-display); font-size: 1.6rem; color: #fff; }
.vs-place-body { padding: var(--space-5); }
.vs-section .vs-place-body h3 { margin: var(--space-5) 0 var(--space-3); font-size: .72rem; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: var(--color-terracotta); }
.vs-section .vs-place-body h3:first-child { margin-top: 0; }
.vs-hoods { list-style: none; margin: 0; padding: 0; }
.vs-hoods li { padding: .55rem 0; border-bottom: 1px solid var(--color-sand); }
.vs-hoods li:last-child { border-bottom: 0; }
.vs-hoods strong { display: block; color: var(--color-ink); font-size: .95rem; }
.vs-hoods span { font-size: .85rem; line-height: 1.5; color: var(--color-charcoal); }
.vs-tags { display: flex; flex-wrap: wrap; gap: .4rem; }
.vs-tags span { padding: .3rem .65rem; background: var(--color-sand); font-size: .82rem; color: var(--color-ink); }
.vs-more { display: inline-block; margin-top: var(--space-4); font-size: .88rem; font-weight: 600; }

/* Services */
.vs-svcs { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 400px), 1fr)); gap: var(--space-3); }
.vs-svc { display: flex; align-items: stretch; justify-content: space-between; background: #fff; box-shadow: 0 4px 16px rgba(15,23,42,.07); }
.vs-svc-name { display: flex; align-items: center; padding: var(--space-3) var(--space-4); font-size: .9rem; font-weight: 700; color: var(--color-ink); }
.vs-svc-n { display: flex; flex: 0 0 auto; }
.vs-svc-n > a:not(.btn):not(.nav-link), .vs-svc-n > div { display: flex; flex-direction: column; justify-content: center; align-items: flex-end; min-width: 84px; padding: var(--space-3); border-left: 1px solid var(--color-sand-dark); text-decoration: none; }
.vs-svc-n b { font-family: var(--font-display); font-size: 1.15rem; line-height: 1.1; color: var(--color-ink); }
.vs-svc-n a b { color: var(--color-terracotta); }
.vs-svc-n span { font-size: .7rem; color: var(--color-stone); }
.vs-svc-n .none b { color: var(--color-sand-dark); }

/* Foot of the page */
.vs-ends { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-3); }
.vs-end { display: flex; align-items: flex-end; min-height: 380px; background-size: cover; background-position: center; }
.vs-end-in { width: 100%; padding: var(--space-16) var(--space-6) var(--space-6); background: linear-gradient(180deg, rgba(15,23,42,0) 0%, rgba(15,23,42,.88) 45%); }
.vs-section .vs-end h3 { margin: 0 0 var(--space-3); font-family: var(--font-display); font-size: 1.4rem; color: #fff; }
.vs-end-tags { display: flex; flex-wrap: wrap; gap: .4rem; margin-bottom: var(--space-5); }
.vs-end-tags span { padding: .25rem .6rem; background: rgba(255,255,255,.16); font-size: .8rem; color: #fff; }
.vs-ends .vs-vs { top: 50%; }
.vs-section .vs-end-more { margin: var(--space-5) 0 0; text-align: center; font-weight: 600; }

/* FAQ */
.vs-faqs { max-width: 760px; margin: 0 auto; }
.vs-faq { border-bottom: 1px solid var(--color-sand-dark); }
.vs-faq summary { display: flex; justify-content: space-between; align-items: center; gap: var(--space-4); padding: var(--space-4) 0; cursor: pointer; list-style: none; font-weight: 700; color: var(--color-ink); }
.vs-faq summary::-webkit-details-marker { display: none; }
.vs-faq summary::after { content: "+"; flex: 0 0 auto; font-size: 1.4rem; line-height: 1; color: var(--color-terracotta); }
.vs-faq[open] summary::after { content: "\2212"; }
.vs-section .vs-faq p { margin: 0 0 var(--space-4); }

@media (max-width: 860px) {
  .vs-facts, .vs-passes { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .vs-section { padding: var(--space-12) var(--space-4); }
  .vs-cards { gap: var(--space-3); }
  .vs-card-img { height: 120px; }
  .vs-vs { top: 60px; width: 42px; height: 42px; font-size: .95rem; }
  .vs-card-body { grid-template-columns: 1fr; padding: var(--space-3); text-align: center; justify-items: center; }
  .vs-card-body .flag-img { display: none; }
  .vs-card-name { font-size: 1.15rem; }
  .vs-card-score { width: 48px; height: 48px; font-size: 1.1rem; }
  .vs-card-cost { grid-column: auto; flex-direction: column; align-items: center; width: 100%; }
  .vs-duel { padding: var(--space-4); }
  .vs-duel-row { grid-template-columns: 44px 1fr 1fr 44px; grid-template-areas: "label label label label" "va ta tb vb"; gap: .25rem .4rem; }
  .vs-duel-row > .vs-duel-v:first-child { grid-area: va; }
  .vs-duel-row > .vs-duel-track.left { grid-area: ta; }
  .vs-duel-l { grid-area: label; }
  .vs-duel-row > .vs-duel-track:not(.left) { grid-area: tb; }
  .vs-duel-row > .vs-duel-v:last-child { grid-area: vb; }
  .vs-stats { grid-template-columns: minmax(0, 1fr); }
  .vs-stat { padding: var(--space-4); border-left: 0; border-top: 1px solid rgba(255,255,255,.1); }
  .vs-stat:first-child { border-top: 0; }
  .vs-facts, .vs-passes, .vs-places, .vs-ends { grid-template-columns: minmax(0, 1fr); }
  .vs-costs { gap: var(--space-4); }
  .vs-wx { gap: 2px; }
  .vs-wx-t, .vs-wx-r { gap: 2px; }
  .vs-wx-t { height: 130px; }
  .vs-wx-t i, .vs-wx-r i { width: 34%; }
  .vs-wx-m > span { font-size: .62rem; }
  .vs-end { min-height: 300px; }
  .vs-ends .vs-vs { top: 50%; }
}
