/* The route pages and their list (routes.py), under the nav (assets/nav.css), with the terms pages' fonts and colours
   (assets/legal.css): a header on the city's photo, the figures as tiles, the prices by month as bars and a table,
   the cheapest weekday and the airlines, the way back, the questions and more routes. */

.route { padding-block: 28px 96px; }
.route h2 { margin: 0 0 8px; font-size: clamp(24px, 3vw, 32px); line-height: 1.15; font-weight: 620; letter-spacing: -.02em; text-wrap: balance; }
.route .note { margin: 0 0 22px; color: var(--muted); text-wrap: pretty; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* the page's buttons (the nav's own is assets/nav.css') */
.route .btn { height: 46px; transition: background .15s, border-color .15s, transform .2s; }
.route .btn-primary { background: linear-gradient(180deg, #F35C57, var(--coral)); color: #0A0A0B;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .28), 0 8px 22px rgba(238, 69, 64, .22); }
.route .btn-primary:hover { background: linear-gradient(180deg, #FF6E69, #F44F4A); transform: translateY(-1px); }
.route .btn-ghost { border: 1px solid var(--line-strong); color: var(--ink); background: rgba(10, 10, 11, .35); }
.route .btn-ghost:hover { border-color: var(--muted); transform: translateY(-1px); }
.actions { display: flex; flex-wrap: wrap; gap: 10px; }

/* the header: on the destination's photo when there is one, its text over a dark fade */
.route .hero { position: relative; isolation: isolate; overflow: hidden; display: grid; align-items: end; min-height: 280px; margin: 0 0 20px;
  padding: 40px; border: 1px solid var(--line); border-radius: 22px; background: radial-gradient(120% 140% at 100% 0%, rgba(238, 69, 64, .16), transparent 55%), var(--raised); }
.route .hero.has-photo { min-height: 440px; background: var(--raised); }
.route .hero .photo { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; }
.route .hero.has-photo::before { content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(to top, rgba(10, 10, 11, .97) 24%, rgba(10, 10, 11, .7) 60%, rgba(10, 10, 11, .45)); }
.route .hero-text { max-width: 720px; }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 18px; font-size: 14px; color: var(--muted); }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--ink); }
.codes { margin: 0 0 10px; font: 400 13px/16px var(--pixel); letter-spacing: .08em; color: var(--brand-ink); }
.route h1 { margin: 0 0 14px; font-size: clamp(34px, 5.4vw, 62px); line-height: 1.02; font-weight: 650; letter-spacing: -.035em; text-wrap: balance; }
.route .lede { max-width: 620px; margin: 0 0 26px; font-size: 18px; line-height: 1.55; color: #D9D4D2; text-wrap: pretty; }
.credit { margin: 18px 0 0; font-size: 11px; color: rgba(247, 243, 241, .55); }
.credit a { color: inherit; }

/* the figures */
.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 0 0 64px; }
.tiles div { padding: 18px 20px; border: 1px solid var(--line); border-radius: 16px; background: var(--raised); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .04); }
.tiles dt { margin: 0 0 8px; font: 400 11px/14px var(--pixel); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.tiles dd { display: grid; gap: 2px; margin: 0; }
.tiles strong { font-size: 26px; line-height: 1.15; font-weight: 620; letter-spacing: -.02em; }
.tiles span { font-size: 14px; color: var(--muted); }
.tiles div:first-child strong { color: var(--brand-ink); }

.block { margin: 0 0 64px; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }

/* a column of prices each (months, weekdays): its height the price, the cheapest coral */
.bars { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 6px; height: 220px; margin: 0 0 22px; padding: 0; list-style: none; }
.bars li { display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 6px; min-width: 0; }
.bars i { width: 100%; height: calc((100% - 44px) * var(--h)); min-height: 6px; border: 1px solid var(--line-strong); border-radius: 7px 7px 3px 3px; background: var(--raised-2); }
.bars .best i { border-color: transparent; background: linear-gradient(180deg, #F35C57, var(--crimson)); box-shadow: 0 10px 26px rgba(238, 69, 64, .28); }
.bars .none i { border-style: dashed; background: none; }
.bars .v { font-size: 12px; line-height: 16px; color: var(--muted); white-space: nowrap; font-variant-numeric: tabular-nums; }
.bars .best .v { color: var(--ink); font-weight: 600; }
.bars .k { font-size: 12px; line-height: 16px; color: var(--muted); white-space: nowrap; }
.half .bars { height: 190px; }

/* the same prices as a table, each month's ticket a search on Aviasales */
.table { overflow-x: auto; border: 1px solid var(--line); border-radius: 16px; background: var(--raised); }
.fares { width: 100%; border-collapse: collapse; font-size: 15px; }
.fares th, .fares td { padding: 12px 16px; border-bottom: 1px solid var(--line); text-align: left; white-space: nowrap; }
.fares thead th { font: 400 11px/14px var(--pixel); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.fares tbody th { font-weight: 550; }
.fares td { color: #D9D4D2; }
.fares .num { text-align: right; font-variant-numeric: tabular-nums; }
.fares .best .num { color: var(--brand-ink); font-weight: 650; }
.fares tbody tr:last-child > * { border-bottom: 0; }
.fares .go { text-align: right; }
.fares .go a { color: var(--brand-ink); font-weight: 550; text-decoration: none; }
.fares .go a::after { content: " ↗"; }
.fares tbody tr:hover { background: rgba(255, 255, 255, .02); }

.airlines { display: grid; gap: 12px; margin: 0 0 18px; padding: 0; list-style: none; }
.airlines li { display: grid; grid-template-columns: minmax(0, 190px) 1fr; align-items: center; gap: 14px; }
.airlines span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.airlines i { width: var(--w); height: 10px; border-radius: 5px; background: linear-gradient(90deg, var(--maroon), var(--coral)); }

/* the way back and the round trip */
.pair { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 0 0 64px; }
.pair .card { padding: 26px; border: 1px solid var(--line); border-radius: 16px; background: var(--raised); }
.pair h2 { font-size: 22px; }
.pair p { margin: 0 0 14px; color: var(--muted); }
.more-link { color: var(--brand-ink); font-weight: 550; text-decoration: none; }
.more-link::after { content: " →"; }

.watch { margin: 0 0 64px; padding: 36px; border: 1px solid var(--line-strong); border-radius: 22px;
  background: radial-gradient(120% 160% at 100% 0%, rgba(238, 69, 64, .2), transparent 55%), var(--raised); }
.watch p { max-width: 640px; margin: 0 0 24px; color: #D9D4D2; }

.faq { display: grid; gap: 10px; }
.faq-item { border: 1px solid var(--line); border-radius: 14px; background: var(--raised); }
.faq-item summary { display: flex; justify-content: space-between; gap: 16px; padding: 18px 22px; cursor: pointer; list-style: none; font-weight: 600; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; flex: none; font: 400 18px/1 var(--pixel); color: var(--coral); }
.faq-item[open] summary::after { content: "\2212"; }
.faq-item p { margin: 0; padding: 0 22px 20px; color: var(--muted); }

/* cards in an even grid: every row as tall as the others, each card the codes, a city's name on one line (smaller
   when it's long) and the fare */
.more { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); grid-auto-rows: 1fr; gap: 10px; margin: 0; padding: 0; list-style: none; }
.more li { display: grid; min-width: 0; }
.more a { display: grid; grid-template-rows: auto 1fr auto; gap: 6px; min-width: 0; padding: 16px 18px; border: 1px solid var(--line); border-radius: 14px;
  background: var(--raised); color: var(--ink); text-decoration: none; transition: border-color .15s, transform .2s; }
.more a:hover { border-color: var(--line-strong); transform: translateY(-1px); }
.more .code { font: 400 11px/14px var(--pixel); letter-spacing: .08em; color: var(--brand-ink); white-space: nowrap; }
.more .name { align-self: center; overflow: hidden; font-size: 20px; line-height: 1.25; font-weight: 600; letter-spacing: -.015em;
  white-space: nowrap; text-overflow: ellipsis; }
.more .name.long { font-size: 17px; }
.more .from { font-size: 14px; color: var(--muted); white-space: nowrap; }

/* the list of cities: the map beside the title, the cheapest routes on their photos, the cities' cards with theirs */
.route .hero.map-hero { grid-template-columns: minmax(0, 4fr) minmax(0, 6fr); align-items: center; gap: 12px; min-height: 0;
  padding: 28px 20px 20px 40px; background: radial-gradient(90% 120% at 85% 30%, rgba(238, 69, 64, .13), transparent 60%), var(--raised); }
.stats { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; }
.stats div { min-width: 110px; padding: 12px 16px; border: 1px solid var(--line); border-radius: 14px; background: rgba(10, 10, 11, .4); }
.stats dt { margin: 0 0 4px; font: 400 11px/14px var(--pixel); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.stats dd { margin: 0; font-size: 24px; line-height: 1.1; font-weight: 620; letter-spacing: -.02em; }
.stats div:last-child dd { color: var(--brand-ink); }
.europe { display: block; width: 100%; height: auto; overflow: visible;
  -webkit-mask-image: radial-gradient(ellipse 72% 68% at 55% 52%, #000 62%, transparent 100%);
  mask-image: radial-gradient(ellipse 72% 68% at 55% 52%, #000 62%, transparent 100%); }
.europe .arc { fill: none; stroke: var(--coral); stroke-width: 2; stroke-linecap: round; stroke-dasharray: 2 7; opacity: .9;
  animation: fly 1.6s linear infinite; }
@keyframes fly { to { stroke-dashoffset: -18; } }
.europe .dot { fill: var(--coral); }
.europe .halo { fill: var(--coral); opacity: 0; transition: opacity .2s; }
.europe text { font: 600 17px var(--sans); fill: var(--ink); paint-order: stroke; stroke: #0A0A0B; stroke-width: 5px; stroke-linejoin: round;
  opacity: 0; transition: opacity .2s; pointer-events: none; }
.europe a.on text, .europe a:hover text, .europe a:focus-visible text { opacity: 1; }
.europe a:hover .halo, .europe a:focus-visible .halo, .europe a.on .halo { opacity: .22; }
.europe a.on .dot { fill: #FF8A80; }
.europe a { outline: none; }

.deals { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 0; padding: 0; list-style: none; }
.deals a { position: relative; isolation: isolate; display: grid; align-items: end; min-height: 220px; overflow: hidden; border: 1px solid var(--line);
  border-radius: 18px; background: radial-gradient(120% 120% at 0% 100%, rgba(199, 44, 65, .45), transparent 60%), var(--raised-2);
  color: var(--ink); text-decoration: none; transition: border-color .15s, transform .2s; }
.deals a:hover { border-color: var(--line-strong); transform: translateY(-2px); }
.deals img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.deals a:hover img { transform: scale(1.04); }
.deals a::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(to top, rgba(10, 10, 11, .95) 18%, rgba(10, 10, 11, .25) 75%); }
.deals .body { display: grid; gap: 2px; padding: 18px 20px; }
.deals .trip { font-size: 18px; font-weight: 600; letter-spacing: -.01em; }
.deals .price { margin-top: 4px; font-size: 40px; line-height: 1; font-weight: 680; letter-spacing: -.035em; color: var(--brand-ink); }
.deals .when { font-size: 14px; color: #D9D4D2; }
.chip { justify-self: start; padding: 4px 8px; border-radius: 6px; background: rgba(10, 10, 11, .62); font: 400 11px/14px var(--pixel);
  letter-spacing: .08em; color: var(--brand-ink); white-space: nowrap; }
.deals .chip { margin-bottom: 8px; }

.more.cities { grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); }
.more.cities a { grid-template-rows: auto auto auto; padding: 0 0 14px; overflow: hidden; }
.cities .pic { position: relative; display: block; aspect-ratio: 16 / 10; margin-bottom: 6px; overflow: hidden;
  background: radial-gradient(120% 120% at 0% 100%, rgba(199, 44, 65, .5), transparent 60%), var(--raised-2); }
.cities .pic img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.cities a:hover .pic img { transform: scale(1.05); }
.cities .pic .none { display: grid; place-items: center; height: 100%; font: 400 26px/1 var(--pixel); letter-spacing: .1em; color: rgba(255, 138, 128, .55); }
.cities .chip { position: absolute; left: 10px; top: 10px; }
.cities .name, .cities .from { padding-inline: 16px; }

.fine { max-width: 780px; margin: 0; font-size: 13px; line-height: 1.6; color: var(--muted); }
.hub .hero { min-height: 240px; margin-bottom: 48px; }
.hub .hero.has-photo { min-height: 360px; }
.hub h2 { margin-bottom: 16px; }

@media (max-width: 860px) {
  .route .hero.map-hero { grid-template-columns: 1fr; padding: 32px 24px 20px; }
  .deals { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tiles { grid-template-columns: 1fr 1fr; }
  .row, .pair { grid-template-columns: 1fr; gap: 0; }
  .pair { gap: 12px; }
}
@media (max-width: 600px) {
  .route { padding-top: 16px; }
  .route .hero { min-height: 0; padding: 26px 20px 24px; border-radius: 18px; }
  .route .hero.has-photo { min-height: 400px; }
  .route .lede { font-size: 17px; }
  .route .actions .btn { flex: 1 1 auto; justify-content: center; }
  .tiles { gap: 8px; margin-bottom: 48px; }
  .tiles div { padding: 14px 14px; }
  .tiles strong { font-size: 21px; }
  .block { margin-bottom: 48px; }
  .bars { height: 170px; gap: 3px; }
  .bars .v { visibility: hidden; }
  .bars .best .v { visibility: visible; }
  .bars .k { font-size: 10px; }
  .fares th, .fares td { padding: 10px 12px; font-size: 14px; }
  .watch { padding: 26px 20px; border-radius: 18px; }
  .airlines li { grid-template-columns: minmax(0, 130px) 1fr; }
  .more { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .more.cities { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cities .name, .cities .from { padding-inline: 12px; }
  .deals { grid-template-columns: 1fr; }
  .deals a { min-height: 190px; }
  .stats div { min-width: 0; flex: 1 1 0; padding: 10px 12px; }
  .stats dd { font-size: 20px; }
  .route .hero.map-hero { padding: 26px 18px 14px; }
  .europe text { display: none; }  /* too small to read here: the dots alone */
  .more a { padding: 14px; }
  .more .name { font-size: 17px; }
  .more .name.long { font-size: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  .europe .arc { animation: none; }
  .deals img, .cities .pic img, .more a, .deals a { transition: none; }
}
