/* Hub: "Airline offers in numbers" stats block (templates/offers-home/stats.php). Scoped under .hs. */
.hs { font-family: Poppins, system-ui, sans-serif; color: #0F0F0F; padding: 40px 0; }
.hs *, .hs *::before, .hs *::after { box-sizing: border-box; }
.hs .hs-panel { background: #EEF0F6; border-radius: 12px; padding: 40px; }
.hs .sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.hs .card { background: transparent; border: 1px solid #9AA3B8; border-radius: 8px; padding: 20px 24px; box-shadow: 0 1px 2px rgba(15,15,15,0.04); display: flex; flex-direction: column; min-width: 0; }
.hs .muted { color: #858590; }
.hs .title { margin: 0; font-size: 15px; font-weight: 500; color: #858590; }
.hs .big { margin: 10px 0 0; font-size: 36px; font-weight: 600; letter-spacing: -0.03em; line-height: 1.1; color: #0F0F0F; }
.hs .big small { font-size: 16px; font-weight: 400; color: #858590; margin-left: 4px; letter-spacing: 0; }
.hs .grid, .hs .hs-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 16px; margin-bottom: 16px; }
.hs .s3 { grid-column: span 3; }
.hs .s4 { grid-column: span 4; }
.hs .s5 { grid-column: span 5; }
.hs .s6 { grid-column: span 6; }
.hs .s7 { grid-column: span 7; }
.hs .s12 { grid-column: span 12; }
.hs .legend-row { display: flex; align-items: center; justify-content: space-between; padding: 5px 0; border-top: 1px solid #F4F4F5; font-size: 13px; }
.hs .legend-row b { font-weight: 600; }
.hs .trend { position: relative; flex: 1; min-height: 36px; margin-top: 8px; }
.hs .track { display: flex; width: 100%; height: 14px; border-radius: 4px; overflow: hidden; background: #F4F4F5; }
.hs .track i { display: block; height: 100%; }
.hs .cat-bar { height: 4px; border-radius: 2px; background: #F4F4F5; margin-top: 6px; overflow: hidden; }
.hs .cat-bar i { display: block; height: 100%; }
@media (max-width: 1100px) {
  .hs .grid, .hs .hs-grid { display: block; }
  .hs .grid > *, .hs .hs-grid > * { margin-bottom: 16px; }
  .hs .card { height: auto !important; }
}

/* Hub: section eyebrows (small mono labels above each H2) in uppercase. Scoped to the eyebrow class combination. */
#offers-home .text-\[length\:var\(--fs-xsm\)\].font-code.tracking-\[0\.02em\] { text-transform: uppercase; }

/* Hub: one map per visitor region. The Worker sets geo-eu / geo-na / geo-au / geo-apac on <body>; no class = general. */
#offers-home .hub-map { display: none; }
body.geo-eu #offers-home .hub-map-eu,
body.geo-na #offers-home .hub-map-na,
body.geo-au #offers-home .hub-map-au,
body.geo-apac #offers-home .hub-map-apac,
body:not([class*="geo-"]) #offers-home .hub-map-general { display: block; }
/* Utility classes used by the region maps that the compiled hub stylesheet does not include. */
#offers-home .text-\[12px\] { font-size: 12px; }
#offers-home .text-\[\#102A4C\] { color: #102A4C; }
#offers-home .inset-y-0 { top: 0; bottom: 0; }
#offers-home .w-1\/2 { width: 50%; }
#offers-home .aspect-\[12\/5\] { aspect-ratio: 12 / 5; }
@media (min-width: 640px) {
  #offers-home .sm\:block { display: block; }
  #offers-home .sm\:py-20 { padding-top: 5rem; padding-bottom: 5rem; }
}

/* Hub maps: route lines 0.8 units thick (overrides the stroke-width attribute on all route paths, EU and regional). */
#offers-home path.oh-route { stroke-width: 0.8; }

/* Mobile offers (live and past share .live-offers-ruled): no side lines, horizontal rules centred between cards, 4 offers max. */
@media (max-width: 639px) {
  #offers-home .live-offers-ruled__grid { border-left: 0; row-gap: 4rem; }
  #offers-home .live-offers-ruled__column { border-right: 0; padding-left: 0; }
  #offers-home .live-offers-ruled__column + .live-offers-ruled__column::before { content: ""; position: absolute; left: 0; right: 0; top: -2rem; height: 1px; background: #e4e4e7; }
  #offers-home .live-offers-ruled__column:nth-child(n + 5) { display: none; }
}

/* Mobile EU map: full-bleed, taller, zoomed on Europe, heavier routes and dots. */
@media (max-width: 1023px) {
  #offers-home .hub-map-eu .map-fade-left {
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
  }
  #offers-home .hub-map-eu div[aria-label="World map showing airline routes between destinations"] {
    aspect-ratio: 0.9 / 1;
  }
  #offers-home .hub-map-eu div[aria-label="World map showing airline routes between destinations"] > .absolute {
    width: 165%;
    left: -32.5%;
    height: 74.3% !important;
    transform: scaleY(1.15);
    transform-origin: 50% 0;
  }
  #offers-home .hub-map-eu .mt-14.min-w-0 {
    margin-top: 1.75rem;
  }
  #offers-home .hub-map-eu path.oh-route {
    stroke-width: 1;
  }
  #offers-home .hub-map-eu svg circle:not([opacity]) {
    r: 3;
  }
}

/* Europe departure airports: dark, slightly faded (all breakpoints). */
#offers-home .hub-map-eu circle.eu-dep {
  fill: rgba(24, 24, 27, 0.75);
}

/* Mobile AU map: full-bleed, zoomed on Australasia, 15% taller, route lines 1 unit. */
@media (max-width: 1023px) {
  #offers-home .hub-map-au div[aria-label="World map showing airline routes between destinations"] {
    width: 100vw !important;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    aspect-ratio: 0.9 / 1 !important;
  }
  #offers-home .hub-map-au div[aria-label="World map showing airline routes between destinations"] > .absolute {
    width: 165% !important;
    left: -25% !important;
    height: 74.3% !important;
    transform: scaleY(1.15);
    transform-origin: 50% 0;
  }
  #offers-home .hub-map-au path.oh-route {
    stroke-width: 1 !important;
  }
}

/* Mobile NA map: full-bleed, zoomed on North America, 15% taller, route lines 1 unit. */
@media (max-width: 1023px) {
  #offers-home .hub-map-na div[aria-label="World map showing airline routes between destinations"] {
    width: 100vw !important;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    aspect-ratio: 0.9 / 1 !important;
  }
  #offers-home .hub-map-na div[aria-label="World map showing airline routes between destinations"] > .absolute {
    width: 165% !important;
    left: -32.5% !important;
    height: 74.3% !important;
    transform: scaleY(1.15);
    transform-origin: 50% 0;
  }
  #offers-home .hub-map-na path.oh-route {
    stroke-width: 1 !important;
  }
}

/* Mobile Asia map: full-bleed, zoomed on Asia, 15% taller, route lines 1 unit. */
@media (max-width: 1023px) {
  #offers-home .hub-map-apac div[aria-label="World map showing airline routes between destinations"] {
    width: 100vw !important;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    aspect-ratio: 0.9 / 1 !important;
  }
  #offers-home .hub-map-apac div[aria-label="World map showing airline routes between destinations"] > .absolute {
    width: 165% !important;
    left: -11% !important;
    height: 74.3% !important;
    transform: scaleY(1.15);
    transform-origin: 50% 0;
  }
  #offers-home .hub-map-apac path.oh-route {
    stroke-width: 1 !important;
  }
}

/* Mobile: halve the gap below the route maps (section bottom padding and empty map area below the land). */
@media (max-width: 1023px) {
  #offers-home .hub-map-eu .page-container {
    padding-bottom: 2rem;
  }
  #offers-home .hub-map-eu div[aria-label="World map showing airline routes between destinations"] {
    margin-bottom: -30vw;
  }
  #offers-home .hub-map-au .page-container {
    padding-bottom: 2rem;
  }
  #offers-home .hub-map-au div[aria-label="World map showing airline routes between destinations"] {
    margin-bottom: -30vw;
  }
  #offers-home .hub-map-na .page-container {
    padding-bottom: 2rem;
  }
  #offers-home .hub-map-na div[aria-label="World map showing airline routes between destinations"] {
    margin-bottom: -30vw;
  }
  #offers-home .hub-map-apac .page-container {
    padding-bottom: 2rem;
  }
  #offers-home .hub-map-apac div[aria-label="World map showing airline routes between destinations"] {
    margin-bottom: -30vw;
  }
}

/* Mobile world map: full-bleed, 15% taller, route lines 1 unit, gap below reduced. */
@media (max-width: 1023px) {
  #offers-home .hub-map-general div[aria-label="World map showing airline routes between destinations"] {
    width: 100vw !important;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    aspect-ratio: 1.74 / 1 !important;
    margin-bottom: -6.5vw;
  }
  #offers-home .hub-map-general div[aria-label="World map showing airline routes between destinations"] > .absolute {
    width: 100% !important;
    left: 0 !important;
    height: 87% !important;
    transform: scaleY(1.15);
    transform-origin: 50% 0;
  }
  #offers-home .hub-map-general path.oh-route {
    stroke-width: 1 !important;
  }
  #offers-home .hub-map-general .page-container {
    padding-bottom: 2rem;
  }
}



@media (max-width: 639px)  {
  #offers-home #join {
    padding-top: 1.575rem !important;
    padding-bottom: 2.95rem !important;
  }
}


/* Mobile final CTA: full-bleed card with square corners, 50px more top padding, double gap above the tiles. */
@media (max-width: 639px) {
  #offers-home section.final-cta .relative.isolate {
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    border-radius: 0 !important;
  }
  #offers-home section.final-cta .relative.isolate > .flex {
    padding-top: 4.375rem !important;
    gap: 5rem;
  }
}

/* Mobile final CTA: extra 10% side padding on the text block only (not the screenshot grid). */
@media (max-width: 639px) {
  #offers-home section.final-cta .relative.isolate > .flex > div:first-child {
    box-sizing: border-box;
    padding-left: 10% !important;
    padding-right: 10% !important;
  }
}

/* Mobile hero: screenshot column first, then the text. */
@media (max-width: 1023px) {
  #offers-home section.hero > .page-container.grid > .relative {
    order: -1;
  }
}

/* Mobile hero: bottom padding 25% smaller (4rem to 3rem). */
@media (max-width: 639px) {
  #offers-home section.hero {
    padding-bottom: 3rem !important;
  }
}

/* Mobile hero image: starts at the page gutter on the left and runs to the right edge of the browser. */
@media (max-width: 1023px) {
  #offers-home section.hero > .page-container.grid > .relative {
    margin-right: -1.5rem;
  }
  #offers-home section.hero > .page-container.grid > .relative > .relative.ml-4 {
    margin-left: 1.5rem !important;
  }
}

/* Signup form (FluentForm): 5px vertical gap between fields and the button. */
#offers-home .oh-signup form > * {
  margin-top: 0 !important;
  margin-bottom: 5px !important;
}
#offers-home .oh-signup form > *:last-child {
  margin-bottom: 0 !important;
}
#offers-home .oh-signup .ff-el-group {
  margin-bottom: 5px !important;
}
#offers-home .oh-signup .ff-el-group:last-child {
  margin-bottom: 0 !important;
}

/* Mobile hero: smaller top gap; screenshot 31% larger so it runs off the right edge after the second offers column. */
@media (max-width: 639px) {
  #offers-home section.hero {
    padding-top: 3rem !important;
  }
}
@media (max-width: 1023px) {
  #offers-home section.hero > .page-container.grid > .relative > .relative.ml-4 {
    width: 131%;
    max-width: none;
  }
}



/* Hub stats block below the hero: 4 columns on desktop, 2 on mobile. */
#offers-home .hs2 { padding: 2.5rem 0; }
#offers-home .hs2-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2rem 1.5rem; }
@media (min-width: 1024px) {
  #offers-home .hs2-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0; }
  #offers-home .hs2-item { padding: 0 1.5rem; border-left: 1px solid #e4e4e7; min-height: 6.75rem; }
}
#offers-home .hs2-label { font-size: 14px; color: #71717a; margin: 0; }
#offers-home .hs2-value { font-family: var(--font-code, ui-monospace, monospace); font-size: 32px; font-weight: 600; color: #09090b; margin: 1.325rem 0 0; letter-spacing: -0.02em; }
#offers-home .hs2-sub { font-size: 14px; color: #71717a; margin: 0.25rem 0 0; }
#offers-home .hs2-accent { color: #5433FE; font-weight: 600; }
#offers-home .hs2-chart { display: block; width: 100%; height: 28px; margin-top: 0.6rem; }
#offers-home .hs2-item:nth-child(3) .hs2-value { color: #16A34A; }
#offers-home .hs2-item:nth-child(4) .hs2-value { color: #5433FE; }
@media (min-width: 1024px) {
  #offers-home .hs2-item { position: relative; }
  #offers-home .hs2-chart { position: absolute; top: 2.35rem; right: 1.5rem; width: 50%; height: 60px; margin: 0; }
}
#offers-home .hs2-value { line-height: 1.1; }
#offers-home .hs2-sub { margin-top: 0.225rem; line-height: 1.3; }
/* Stats spacing: 50px less between the hero and the stats block. */
#offers-home section.hero {
  margin-bottom: -50px;
}

/* Pricing eyebrow is uppercase on the hub, so the icon sits on the cap-height centre (no optical nudge). */
#offers-home .atc-membership-pricing svg.oh-crown { top: -3px; }

/* Default section subtitle size on the hub (generated sections use 16px). */
#offers-home p.text-\[16px\].leading-\[1\.55\] { font-size: 18px; }
