@import url("sst-social.css");
@import url("sst-footer-tiers.css");

/**
 * SkyStayTravel — single shared footer skin (load BEFORE page <style> so per-page overrides e.g. footer{display:none} still win).
 * Header/nav: classic brand bar (~legacy rgba(7,112,227,.9) feel). Footer: legacy #04408f + #0557b0. Drawer: bright #0447a0 → #0770e3 → #1a8fe8.
 */
:root {
  --sst-ft-gold: #ffd166;
  --sst-place-gold: #e6a800;
  --sst-ft-text: rgba(224, 240, 255, 0.94);
  --sst-ft-muted: rgba(255, 255, 255, 0.8);
  --sst-ft-dim: rgba(255, 255, 255, 0.62);
  --sst-safe-top: env(safe-area-inset-top, 0px);
  --sst-nav-h: 58px;
  --sst-nav-stack-h: calc(var(--sst-nav-h) + var(--sst-safe-top));
  /* Legacy homepage nav: solid brand blues (matches old rgba(7,112,227,.9) bar direction) */
  --sst-nav-grad: linear-gradient(180deg, #0770e3 0%, #0668cf 52%, #0557b0 100%);
  /* Legacy homepage footer strip */
  --sst-footer-skin-grad: linear-gradient(180deg, #0557b0 0%, #04408f 100%);
  /* Classic commercial mobile drawer — bright brand blue (matches pre-standardisation car/flights pages) */
  --sst-drawer-grad: linear-gradient(165deg, #0447a0 0%, #0770e3 55%, #1a8fe8 100%);
  --sst-nav-shadow: 0 2px 18px rgba(0, 0, 0, 0.08);
  --sst-footer-base: #04408f;
  --sst-drawer-z: 9000;
  --sst-drawer-nav-z: 9010;
  --sst-logo-mark-url: url("/assets/logo-mark.svg?v=20261014-2339");
  --sst-logo-mark-footer: 30px;
}

/* Lock page scroll while mobile drawer is open */
html.sst-nav-open,
body.sst-nav-open {
  overflow: hidden !important;
  overscroll-behavior: none;
  touch-action: none;
}

body.sst-nav-open .mobile-nav.open,
body.sst-nav-open #mobile-nav.open,
body.sst-nav-open #s22-mob-nav.open,
body.sst-nav-open #art-mob-nav.open {
  touch-action: pan-y;
  overscroll-behavior: contain;
}

/* Scroll-direction header: fade + slide away on down, return on up */
body > nav,
header.nav {
  transition:
    transform 0.35s cubic-bezier(0.4, 0, 0.2, 1),
    opacity 0.35s cubic-bezier(0.4, 0, 0.2, 1),
    visibility 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

nav.nav-hidden,
header.nav.nav-hidden,
nav.sst-commercial-nav.nav-hidden,
nav.sst-ts-nav.nav-hidden,
nav.sst-route-nav.nav-hidden {
  transform: translateY(calc(-1 * var(--sst-nav-stack-h, var(--sst-nav-h, 58px)))) !important;
  -webkit-transform: translateY(calc(-1 * var(--sst-nav-stack-h, var(--sst-nav-h, 58px)))) !important;
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

html.sst-nav-open nav,
html.sst-nav-open header.nav,
body.sst-nav-open nav,
body.sst-nav-open header.nav {
  transform: none !important;
  -webkit-transform: none !important;
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
}

@media (max-width: 760px) {
  nav.nav-hidden::before,
  header.nav.nav-hidden::before {
    opacity: 0 !important;
    visibility: hidden !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  body > nav,
  header.nav {
    transition: none !important;
  }
}

/* Canvas below page content — matches footer base so no light strip under footer / on overscroll */
html {
  background-color: var(--sst-footer-base) !important;
}

html:has(body.sst-page-package-holidays) {
  background-color: #f6f9fc !important;
}

html:has(body.sst-page-thanks) {
  background-color: #f3f7fb !important;
}

/* —— Header / top bar (single definition; pages should omit duplicate nav backgrounds) —— */
body > nav,
header.nav {
  box-sizing: border-box;
  background-color: #0770e3;
  background-image: var(--sst-nav-grad);
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  border-bottom: none;
  box-shadow: var(--sst-nav-shadow);
}

/* Hub pages (flights / stays / activities): flush hero under fixed nav — homepage pattern */
body.sst-page-flights,
body.sst-page-sky22,
body.sst-page-tours,
body.sst-page-package-holidays,
body.sst-page-holiday-matcher {
  --sst-nav-h: 58px;
  --sst-page-bg: #f8f9fa;
  padding-top: 0 !important;
  background-color: var(--sst-page-bg) !important;
}

body.sst-page-package-holidays {
  --sst-page-bg: #f6f9fc;
}

body.sst-page-holiday-matcher {
  --sst-page-bg: #f6f9fc;
  padding-top: 0 !important;
  background-color: var(--sst-page-bg) !important;
}

body.sst-page-flights {
  --sst-page-bg: #f7faff;
}

body.sst-page-sky22 {
  --sst-page-bg: #f3f6fb;
}

body.sst-page-flights > #home-page > .hero,
body.sst-page-sky22 > #sky22-page > div:first-child,
body.sst-page-tours > #home-page > .hero,
body.sst-page-tours > #home-page > section.hero {
  margin-top: 0 !important;
  padding-top: var(--sst-nav-h) !important;
  box-sizing: border-box !important;
  position: relative;
  z-index: 1;
}

/* Stays hero: inline block uses 40px top padding — add nav height on top */
body.sst-page-sky22 > #sky22-page > div:first-child {
  padding-top: calc(40px + var(--sst-nav-h)) !important;
}

/* Carousel heroes: image stays full-bleed under nav; copy sits below header */
body.sst-page-flights > #home-page > .hero > .hero-slides,
body.sst-page-tours > #home-page > .hero > .hero-slides,
body.sst-page-tours > #home-page > section.hero > .hero-slides {
  margin-top: calc(-1 * var(--sst-nav-h)) !important;
  height: calc(100% + var(--sst-nav-h)) !important;
}

/* Activities hero has badge + CTA — sit copy slightly lower than flights */
body.sst-page-tours .slide-content {
  top: calc(50% + 22px) !important;
  transform: translate(-50%, -50%) !important;
}

/* Flights hero — copy clears fixed header on phones (image bleeds under nav) */
body.sst-page-flights .slide-content {
  top: calc(50% + 18px) !important;
  transform: translate(-50%, -50%) !important;
}

@media (max-width: 760px) {
  body.sst-page-tours .slide-content {
    top: calc(52% + 16px) !important;
  }

  body.sst-page-flights .slide-content {
    top: calc(var(--sst-nav-stack-h, var(--sst-nav-h, 58px)) + 64px) !important;
    transform: translate(-50%, 0) !important;
  }
}

@media (max-width: 680px) {
  body.sst-page-tours .slide-content {
    top: calc(54% + 12px) !important;
  }

  body.sst-page-flights .slide-content {
    top: calc(var(--sst-nav-stack-h, var(--sst-nav-h, 54px)) + 72px) !important;
  }
}

body.sst-page-flights > nav:not(.nav-hidden),
body.sst-page-sky22 > nav:not(.nav-hidden),
body.sst-page-tours > nav:not(.nav-hidden) {
  box-sizing: border-box !important;
  height: var(--sst-nav-h) !important;
  min-height: var(--sst-nav-h) !important;
  max-height: var(--sst-nav-h) !important;
  border-bottom: none !important;
  box-shadow: none !important;
  background-color: #0770e3 !important;
  background-image: var(--sst-nav-grad) !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

@media (max-width: 680px) {
  :root,
  body.sst-page-flights,
  body.sst-page-sky22,
  body.sst-page-tours {
    --sst-nav-h: 54px;
  }
}

/* Mobile burger drawer — full-viewport opaque panel; loads before page <style> so use !important on shell/overlay */
html body .mobile-nav,
html body .mobile-nav.open,
html body #mobile-nav,
html body #mobile-nav.open,
html body #s22-mob-nav,
html body #s22-mob-nav.open,
html body #art-mob-nav,
html body #art-mob-nav.open {
  position: fixed !important;
  top: var(--sst-nav-stack-h, var(--sst-nav-h, 54px)) !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  width: 100% !important;
  max-width: 100vw !important;
  height: calc(100vh - var(--sst-nav-stack-h, var(--sst-nav-h, 54px))) !important;
  height: calc(100dvh - var(--sst-nav-stack-h, var(--sst-nav-h, 54px))) !important;
  max-height: calc(100dvh - var(--sst-nav-stack-h, var(--sst-nav-h, 54px))) !important;
  margin: 0 !important;
  border: none !important;
  border-top: none !important;
  border-radius: 0 !important;
  transform: none !important;
  translate: none !important;
  box-shadow: none !important;
  z-index: var(--sst-drawer-z, 9000) !important;
  background-color: #0770e3 !important;
  background-image: var(--sst-drawer-grad) !important;
  background-blend-mode: normal !important;
  opacity: 1 !important;
  mix-blend-mode: normal !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  filter: none !important;
  isolation: isolate !important;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  padding: 16px 16px max(30px, env(safe-area-inset-bottom, 0px)) !important;
}

/* —— Mobile burger: layout, links, backdrop —— */
.mobile-nav,
#mobile-nav,
#s22-mob-nav,
#art-mob-nav {
  display: none;
  position: fixed;
  top: var(--sst-nav-stack-h, var(--sst-nav-h, 54px));
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  max-width: 100vw;
  height: calc(100dvh - var(--sst-nav-stack-h, var(--sst-nav-h, 54px)));
  padding: 16px 16px max(30px, env(safe-area-inset-bottom, 0px));
  flex-direction: column;
  gap: 6px;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  box-sizing: border-box;
  z-index: var(--sst-drawer-z, 9000);
  background-color: #0770e3;
  background-image: var(--sst-drawer-grad);
  box-shadow: none;
}

.mobile-nav.open,
#mobile-nav.open,
#s22-mob-nav.open,
#art-mob-nav.open {
  display: flex;
}

.menu-btn {
  display: none;
  background: rgba(255, 255, 255, 0.15);
  border: 1.5px solid rgba(255, 255, 255, 0.35);
  color: #fff;
  border-radius: 8px;
  padding: 0;
  font-size: 1.35rem;
  line-height: 1;
  width: 36px;
  height: 36px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  position: relative;
  z-index: calc(var(--sst-drawer-nav-z, 9010) + 1);
  font-family: system-ui, "Segoe UI", sans-serif;
  -webkit-tap-highlight-color: transparent;
  text-shadow: none;
  overflow: hidden;
  outline: none;
  box-shadow: none;
}

.menu-btn::before,
.menu-btn::after {
  display: none !important;
  content: none !important;
}

.menu-btn:focus {
  outline: none;
}

.menu-btn:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.55);
  outline-offset: 2px;
}

.mobile-nav a,
#mobile-nav a,
#s22-mob-nav a,
#art-mob-nav a {
  color: #fff;
  font-size: 1.05rem;
  font-weight: 700;
  padding: 14px 16px;
  border-radius: 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.08);
  transition: background 0.18s ease;
  text-decoration: none;
  position: relative;
  z-index: 1;
  flex-shrink: 0;
  -webkit-tap-highlight-color: transparent;
}

.mobile-nav a:active,
#mobile-nav a:active,
#s22-mob-nav a:active,
#art-mob-nav a:active {
  background: rgba(255, 255, 255, 0.2);
}

.mobile-nav .mob-section-lbl,
#mobile-nav .mob-section-lbl,
#s22-mob-nav .mob-section-lbl,
#art-mob-nav .mob-section-lbl {
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 10px 16px 4px;
  flex-shrink: 0;
}

.sst-mob-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  z-index: calc(var(--sst-drawer-z, 9000) - 1);
  background-color: #0770e3;
  background-image: var(--sst-drawer-grad);
  opacity: 1;
  pointer-events: none;
}

.sst-mob-backdrop.is-open,
.sst-mob-backdrop.open {
  display: block;
  pointer-events: auto;
}

#s22-mob-overlay {
  display: none !important;
  pointer-events: none !important;
}

@media (max-width: 760px) {
  html body > nav,
  html body > header.nav,
  nav.sst-ts-nav {
    z-index: var(--sst-drawer-nav-z, 9010) !important;
    background-color: #0770e3 !important;
    background-image: var(--sst-nav-grad) !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }

  .menu-btn {
    display: flex !important;
    z-index: calc(var(--sst-drawer-nav-z, 9010) + 1) !important;
  }

  .nav-links {
    display: none !important;
  }

  body > nav {
    padding-left: 12px;
    padding-right: 12px;
  }
}

@media (min-width: 761px) {
  .menu-btn {
    display: none !important;
  }

  .mobile-nav,
  .mobile-nav.open,
  #mobile-nav,
  #mobile-nav.open,
  #s22-mob-nav,
  #s22-mob-nav.open,
  #art-mob-nav,
  #art-mob-nav.open,
  .sst-mob-backdrop,
  .sst-mob-backdrop.is-open {
    display: none !important;
  }
}

/* Dense destination / travel footer columns — show first 4 links after the heading only */
footer .fc.sst-ft-max4 > a:nth-of-type(n + 5),
footer .footer-links.sst-ft-max4 > a:nth-of-type(n + 5) {
  display: none !important;
}

footer {
  background: var(--sst-footer-skin-grad);
  color: var(--sst-ft-text);
  padding: 14px 0 max(8px, env(safe-area-inset-bottom, 0px));
  margin-top: 0;
  margin-bottom: 0;
  border-top: none;
  box-shadow: 0 -8px 32px rgba(2, 18, 42, 0.28);
}

/* App-style footers (flights / tours / sky22): full width without 100vw subpixel gap */
footer:has(.fg) {
  width: 100%;
  max-width: none;
  position: relative;
  left: auto;
  right: auto;
  margin-left: 0;
  margin-right: 0;
  box-sizing: border-box;
}

/* Optional subscribe strip above .fg (not the link grid itself) */
footer:has(.fg) > div:first-child:not(.fg) {
  padding: 12px 16px !important;
  margin-bottom: 12px !important;
  border-radius: 11px !important;
}

/* —— Index + static pages (.footer-grid) —— */
footer .wrap {
  max-width: 1080px;
}

footer .footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(148px, 1fr));
  gap: 10px 14px;
  margin: 0 0 6px;
}

footer .footer-brand.fb-col-brand {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

footer .footer-brand.fb-col-brand .fb-desc,
footer .footer-brand.fb-col-brand > p {
  color: var(--sst-ft-muted);
  max-width: 340px;
  font-size: 0.76rem;
  line-height: 1.42;
  margin: 0;
}

footer .footer-links h4 {
  margin-bottom: 5px;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: rgba(255, 209, 102, 0.95);
}

footer .footer-links a {
  display: block;
  margin-bottom: 2px;
  font-size: 0.76rem;
  color: rgba(255, 255, 255, 0.84);
  line-height: 1.42;
}

footer .footer-links a:hover {
  color: #fff;
}

footer .footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 7px;
  margin-top: 2px;
  font-size: 0.68rem;
  color: var(--sst-ft-dim);
  text-align: center;
}

/* Footer newsletter (homepage-style) */
footer .sst-footer-newsletter {
  margin: 2px 0 8px;
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  border-left: 3px solid var(--sst-ft-gold);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.12);
}

footer .sst-footer-newsletter h4 {
  margin: 0 0 3px;
  font-size: 0.74rem;
  font-weight: 900;
  color: #fff;
  letter-spacing: 0.02em;
}

footer .sst-footer-newsletter p {
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.35;
  margin: 0 0 5px;
  max-width: 640px;
}

footer .sst-footer-newsletter-legal {
  font-size: 0.64rem;
  color: rgba(255, 255, 255, 0.6);
  margin-top: 4px;
}

footer .sst-footer-newsletter-legal a {
  color: var(--sst-ft-gold);
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* —— Flights / tours / sky22 (.fg grid) —— */
footer .fg {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 11px 14px;
  width: 100%;
  max-width: 1080px;
  margin: 0 auto 6px;
  padding: 0 16px;
  box-sizing: border-box;
}

footer .fb-col-brand {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 5px;
}

footer .fb-brand {
  font-weight: 900;
  font-size: 0.98rem;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 8px;
}

footer .fb-brand-mark,
footer .fb-brand-mark.sst-logo-mark {
  width: var(--sst-logo-mark-footer, 30px);
  height: var(--sst-logo-mark-footer, 30px);
  min-width: var(--sst-logo-mark-footer, 30px);
  background-color: #ffffff;
  background-image: var(--sst-logo-mark-url);
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  border-radius: 7px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border: 1px solid rgba(255, 255, 255, 0.35);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.12);
}

footer .fb-brand-mark svg,
footer .sst-logo-mark svg {
  display: none;
}

footer .fb-brand-text .sky {
  color: #fff;
}

footer .fb-brand .stay,
footer .fb-brand-text .stay {
  color: var(--sst-ft-gold);
}

footer .fb-desc {
  font-size: 0.76rem;
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.45;
  max-width: 300px;
}

footer .f-secure {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 6px;
  padding: 3px 8px;
  width: fit-content;
}

footer .f-secure svg {
  width: 12px;
  height: 12px;
  fill: #00c9a7;
  flex-shrink: 0;
}

footer .f-secure span {
  font-size: 0.66rem;
  color: #fff;
  font-weight: 600;
}

footer .fc h4 {
  font-size: 0.68rem;
  font-weight: 800;
  color: rgba(255, 209, 102, 0.95);
  margin-bottom: 7px;
  text-transform: uppercase;
  letter-spacing: 0.07em;
}

footer .fc a {
  display: block;
  color: rgba(255, 255, 255, 0.84);
  font-size: 0.78rem;
  margin-bottom: 3px;
  transition: color 0.18s;
  padding: 3px 0;
  text-decoration: none;
}

footer .fc a:hover {
  color: #fff;
  text-decoration: none;
}

footer .fbot {
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  padding-top: 8px;
  margin-top: 6px;
  text-align: center;
  font-size: 0.68rem;
  max-width: 1080px;
  margin-left: auto;
  margin-right: auto;
  color: rgba(255, 255, 255, 0.68);
  padding-left: 16px;
  padding-right: 16px;
}

footer .sst-fbot-meta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  line-height: 1.45;
}

footer .sst-footer-operator,
.sst-site-footer .sst-footer-operator {
  display: block;
  font-size: 0.64rem;
  color: rgba(255, 255, 255, 0.58);
  letter-spacing: 0.01em;
}

.sst-site-footer .sst-fbot-meta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  line-height: 1.45;
}

.sst-site-footer .sst-footer-operator {
  color: rgba(15, 23, 42, 0.55);
  font-size: 0.72rem;
}

/* —— Blog / article footers —— */
footer .footer-inner {
  max-width: 1080px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 18px;
  justify-content: space-between;
  align-items: center;
}

footer .footer-brand {
  font-weight: 900;
  font-size: 1.02rem;
  color: #fff;
}

footer .footer-brand span {
  color: var(--sst-ft-gold);
}

footer .footer-copy {
  font-size: 0.72rem;
  opacity: 0.72;
  margin-top: 10px;
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  padding-top: 8px;
  max-width: 1080px;
  margin-left: auto;
  margin-right: auto;
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.45;
}

/* —— Minimal route pages —— */
footer.footer {
  text-align: center;
  padding: 12px 14px 10px;
  margin-top: 22px;
  font-size: 0.78rem;
  line-height: 1.45;
  color: var(--sst-ft-text);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

@media (max-width: 900px) {
  footer .fg {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 760px) {
  footer .footer-grid {
    gap: 8px 10px;
    grid-template-columns: 1fr 1fr;
  }

  footer .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* Commercial ecosystem — compact footer rhythm */
@media (min-width: 761px) {
body.sst-page-home footer,
body.sst-page-flights footer:has(.fg),
body.sst-page-tours footer:has(.fg),
body.sst-page-car-rental footer:has(.fg),
body.sst-page-travel-services footer:has(.fg),
body.sst-page-sky22 footer:has(.fg),
body.sst-page-stays-hub footer:has(.fg),
body.sst-page-flights-hub footer:has(.fg),
body.sst-page-route footer:has(.fg),
body.sst-page-article footer:has(.fg),
body.sst-page-articles-hub footer,
body.sst-page-package-holidays footer:has(.fg) {
  padding: 12px 0 7px;
}

body.sst-page-flights footer .fg,
body.sst-page-tours footer .fg,
body.sst-page-car-rental footer .fg,
body.sst-page-travel-services footer .fg,
body.sst-page-sky22 footer .fg,
body.sst-page-stays-hub footer .fg,
body.sst-page-route footer .fg,
body.sst-page-article footer .fg,
body.sst-page-package-holidays footer .fg {
  margin-bottom: 4px;
  gap: 10px 12px;
}

body.sst-page-flights footer .fbot,
body.sst-page-tours footer .fbot,
body.sst-page-car-rental footer .fbot,
body.sst-page-travel-services footer .fbot,
body.sst-page-sky22 footer .fbot,
body.sst-page-stays-hub footer .fbot,
body.sst-page-route footer .fbot,
body.sst-page-article footer .fbot,
body.sst-page-package-holidays footer .fbot {
  margin-top: 4px;
  padding-top: 6px;
}
}

/* Flights / stays hub / activities — footer visible on mobile (legacy page CSS hid it) */
@media (max-width: 680px) {
  body.sst-page-flights footer:has(.fg),
  body.sst-page-tours footer:has(.fg),
  body.sst-page-sky22 footer:has(.fg),
  body.sst-page-travel-services footer:has(.fg),
  body.sst-page-stays-hub footer:has(.fg),
  body.sst-page-route footer:has(.fg),
  body.sst-page-article footer:has(.fg),
  body.sst-page-package-holidays footer:has(.fg) {
    display: block !important;
    position: relative;
    z-index: 25;
    clear: both;
    visibility: visible;
    opacity: 1;
    margin-top: 0;
    padding: 0 !important;
    box-shadow: none !important;
  }

  body.sst-page-flights footer:has(.fg) .fc a,
  body.sst-page-tours footer:has(.fg) .fc a,
  body.sst-page-sky22 footer:has(.fg) .fc a,
  body.sst-page-travel-services footer:has(.fg) .fc a,
  body.sst-page-stays-hub footer:has(.fg) .fc a,
  body.sst-page-route footer:has(.fg) .fc a,
  body.sst-page-article footer:has(.fg) .fc a,
  body.sst-page-package-holidays footer:has(.fg) .fc a,
  body.sst-page-flights footer:has(.fg) .fbot a,
  body.sst-page-tours footer:has(.fg) .fbot a,
  body.sst-page-sky22 footer:has(.fg) .fbot a,
  body.sst-page-travel-services footer:has(.fg) .fbot a,
  body.sst-page-stays-hub footer:has(.fg) .fbot a,
  body.sst-page-route footer:has(.fg) .fbot a,
  body.sst-page-article footer:has(.fg) .fbot a,
  body.sst-page-package-holidays footer:has(.fg) .fbot a {
    pointer-events: auto;
  }
}

@media (max-width: 680px) {
  footer .footer-grid {
    grid-template-columns: 1fr;
  }

  footer .fg {
    grid-template-columns: 1fr 1fr 1fr;
    gap: 10px;
    padding: 0 12px;
  }

  footer .fb-col-brand {
    grid-column: 1 / -1;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(30, 41, 59, 0.55);
    margin-bottom: 2px;
  }

  footer .fb-brand {
    font-size: 0.92rem;
  }

  footer .fc h4 {
    font-size: 0.64rem;
    margin-bottom: 5px;
  }

  footer .fc a {
    font-size: 0.74rem;
  }

  footer {
    padding: 0 !important;
    box-shadow: none !important;
  }

  footer:has(.fg) > div:first-child:not(.fg) {
    margin-left: 12px !important;
    margin-right: 12px !important;
    width: calc(100% - 24px) !important;
    max-width: calc(100vw - 24px) !important;
    box-sizing: border-box !important;
  }
}
