/**
 * SkyStayTravel — Stays hub & regional city cards (v2 polish)
 * Load after sst-hub-cards.css on sky22.html and stays-*.html
 */

/* —— Regional stays hubs: city cards —— */
body.sst-page-stays-hub .city-grid {
  gap: 20px !important;
}

body.sst-page-stays-hub .city-card {
  display: flex !important;
  flex-direction: column !important;
  min-height: 100% !important;
  background: #fff !important;
  border: 1px solid rgba(7, 112, 227, 0.12) !important;
  border-radius: 22px !important;
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.07) !important;
  overflow: hidden !important;
  transition:
    transform 0.24s cubic-bezier(0.4, 0, 0.2, 1),
    box-shadow 0.24s cubic-bezier(0.4, 0, 0.2, 1),
    border-color 0.24s ease !important;
}

body.sst-page-stays-hub .city-card:hover {
  transform: translateY(-4px) !important;
  border-color: rgba(255, 209, 102, 0.45) !important;
  box-shadow: 0 20px 44px rgba(7, 112, 227, 0.14) !important;
}

body.sst-page-stays-hub .city-card img {
  position: relative !important;
  width: 100% !important;
  height: auto !important;
  min-height: 0 !important;
  aspect-ratio: 16 / 10 !important;
  object-fit: cover !important;
  object-position: center !important;
  display: block !important;
  flex: 0 0 auto !important;
  transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94) !important;
}

body.sst-page-stays-hub .city-card:hover img {
  transform: scale(1.05) !important;
}

body.sst-page-stays-hub .city-card-body {
  display: flex !important;
  flex-direction: column !important;
  flex: 1 1 auto !important;
  gap: 6px !important;
  padding: 18px 18px 20px !important;
}

body.sst-page-stays-hub .city-card strong {
  font-size: 1.05rem !important;
  font-weight: 950 !important;
  letter-spacing: -0.02em !important;
  color: #0f172a !important;
  margin-bottom: 2px !important;
}

body.sst-page-stays-hub .city-card span:not(.city-card-cta) {
  flex: 1 1 auto !important;
  font-size: 0.86rem !important;
  line-height: 1.58 !important;
  color: #334155 !important;
}

body.sst-page-stays-hub .city-card-body::after {
  content: "View guide →";
  display: inline-flex;
  align-items: center;
  width: fit-content;
  margin-top: 10px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(7, 112, 227, 0.08);
  border: 1px solid rgba(7, 112, 227, 0.16);
  color: #0557b0;
  font-size: 0.74rem;
  font-weight: 900;
  letter-spacing: 0.01em;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

body.sst-page-stays-hub .city-card:hover .city-card-body::after {
  background: #0770e3;
  border-color: #0770e3;
  color: #fff;
}

body.sst-page-stays-hub .region-block {
  padding: 38px 0 !important;
}

body.sst-page-stays-hub .region-copy h3 {
  font-size: 1.28rem !important;
  letter-spacing: -0.03em !important;
}

/* —— Main stays hub: featured destination cards —— */
body.sst-page-sky22 .sst-dest-grid {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 20px !important;
  width: 100% !important;
  max-width: 1120px !important;
  margin-left: auto !important;
  margin-right: auto !important;
  overflow: visible !important;
}

body.sst-page-sky22 .sst-dest-card {
  display: flex !important;
  flex-direction: column !important;
  position: relative !important;
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  height: auto !important;
  min-height: 0 !important;
  border: 1px solid rgba(7, 112, 227, 0.12) !important;
  border-radius: 22px !important;
  overflow: hidden !important;
  background: #fff !important;
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.08) !important;
  clip-path: none !important;
  contain: none !important;
  transition:
    transform 0.24s cubic-bezier(0.4, 0, 0.2, 1),
    box-shadow 0.24s cubic-bezier(0.4, 0, 0.2, 1),
    border-color 0.24s ease !important;
}

body.sst-page-sky22 .sst-dest-card:hover {
  transform: translateY(-4px) !important;
  border-color: rgba(255, 209, 102, 0.45) !important;
  box-shadow: 0 22px 48px rgba(7, 112, 227, 0.15) !important;
}

body.sst-page-sky22 .sst-dest-card::after {
  display: none !important;
  content: none !important;
}

body.sst-page-sky22 .sst-dest-card img {
  position: relative !important;
  inset: auto !important;
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;
  aspect-ratio: 16 / 10 !important;
  object-fit: cover !important;
  object-position: center !important;
  border-radius: 0 !important;
  flex: 0 0 auto !important;
  transform: none !important;
  transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94) !important;
}

body.sst-page-sky22 .sst-dest-card:hover img {
  transform: scale(1.05) !important;
}

body.sst-page-sky22 .sst-dest-card-body {
  position: relative !important;
  inset: auto !important;
  left: auto !important;
  right: auto !important;
  bottom: auto !important;
  z-index: 2 !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 6px !important;
  width: 100% !important;
  max-width: 100% !important;
  padding: 18px 18px 20px !important;
  color: #0f172a !important;
  background: #fff !important;
  box-sizing: border-box !important;
}

body.sst-page-sky22 .sst-dest-card small {
  display: inline-flex !important;
  width: fit-content !important;
  padding: 4px 10px !important;
  border-radius: 999px !important;
  background: rgba(255, 209, 102, 0.22) !important;
  border: 1px solid rgba(255, 209, 102, 0.42) !important;
  color: #8a5b00 !important;
  font-size: 0.64rem !important;
  font-weight: 950 !important;
  letter-spacing: 0.1em !important;
  text-transform: uppercase !important;
  text-shadow: none !important;
  margin-bottom: 2px !important;
}

body.sst-page-sky22 .sst-dest-card strong {
  display: block !important;
  color: #0f172a !important;
  font-size: 1.08rem !important;
  font-weight: 950 !important;
  letter-spacing: -0.02em !important;
  line-height: 1.2 !important;
  text-shadow: none !important;
  margin-bottom: 0 !important;
}

body.sst-page-sky22 .sst-dest-card-body > span:not(.sst-card-cta) {
  display: block !important;
  color: #334155 !important;
  font-size: 0.86rem !important;
  line-height: 1.55 !important;
  text-shadow: none !important;
}

body.sst-page-sky22 .sst-dest-card .sst-card-cta {
  display: inline-flex !important;
  align-items: center !important;
  width: fit-content !important;
  margin-top: 8px !important;
  padding: 6px 12px !important;
  border-radius: 999px !important;
  font-size: 0.74rem !important;
  font-weight: 900 !important;
  color: #0557b0 !important;
  background: rgba(7, 112, 227, 0.08) !important;
  border: 1px solid rgba(7, 112, 227, 0.16) !important;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease !important;
}

body.sst-page-sky22 .sst-dest-card:hover .sst-card-cta {
  color: #fff !important;
  background: #0770e3 !important;
  border-color: #0770e3 !important;
}

/* Region browse cards on main stays hub */
body.sst-page-sky22 .sst-region-grid {
  gap: 16px !important;
}

body.sst-page-sky22 .sst-region-card {
  position: relative !important;
  padding: 20px 20px 20px 24px !important;
  border-radius: 18px !important;
  border: 1px solid #e2e8f0 !important;
  background: linear-gradient(180deg, #fff 0%, #f8fbff 100%) !important;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.05) !important;
  transition:
    transform 0.22s ease,
    box-shadow 0.22s ease,
    border-color 0.22s ease !important;
}

body.sst-page-sky22 .sst-region-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 14px;
  bottom: 14px;
  width: 4px;
  border-radius: 0 4px 4px 0;
  background: linear-gradient(180deg, #ffd166, #0770e3);
}

body.sst-page-sky22 .sst-region-card:hover {
  transform: translateY(-3px) !important;
  border-color: #bfdbfe !important;
  box-shadow: 0 14px 32px rgba(7, 112, 227, 0.11) !important;
}

body.sst-page-sky22 .sst-region-card strong {
  font-size: 1.02rem !important;
  font-weight: 950 !important;
  letter-spacing: -0.01em !important;
}

@media (max-width: 1020px) {
  body.sst-page-sky22 .sst-dest-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 680px) {
  body.sst-page-stays-hub .city-grid {
    gap: 16px !important;
  }

  body.sst-page-stays-hub .city-card {
    border-radius: 18px !important;
  }

  body.sst-page-sky22 .sst-dest-grid {
    grid-template-columns: 1fr !important;
    max-width: 100% !important;
    gap: 16px !important;
  }

  body.sst-page-sky22 .sst-dest-card {
    border-radius: 18px !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  body.sst-page-stays-hub .city-card,
  body.sst-page-stays-hub .city-card img,
  body.sst-page-sky22 .sst-dest-card,
  body.sst-page-sky22 .sst-dest-card img,
  body.sst-page-sky22 .sst-region-card {
    transition: border-color 0.15s ease, box-shadow 0.15s ease !important;
  }

  body.sst-page-stays-hub .city-card:hover,
  body.sst-page-sky22 .sst-dest-card:hover,
  body.sst-page-sky22 .sst-region-card:hover {
    transform: none !important;
  }

  body.sst-page-stays-hub .city-card:hover img,
  body.sst-page-sky22 .sst-dest-card:hover img {
    transform: none !important;
  }
}

/* Stays-by-region hubs — unified header/footer logo (wins over stale cached brand CSS) */
body.sst-page-stays-hub nav.sst-commercial-nav .brand-mark.sst-logo-mark,
body.sst-page-stays-hub nav.sst-commercial-nav .sst-logo-mark,
body.sst-page-stays-hub footer .fb-brand-mark.sst-logo-mark {
  background-color: #fff !important;
  background-image: url("/assets/logo-mark.svg?v=20261014-2339") !important;
  background-position: center !important;
  background-size: cover !important;
  background-repeat: no-repeat !important;
  border: 1px solid rgba(255, 255, 255, 0.55) !important;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.35), 0 2px 6px rgba(0, 0, 0, 0.16) !important;
}

body.sst-page-stays-hub nav.sst-commercial-nav .brand-name .bn-sky,
body.sst-page-stays-hub nav.sst-commercial-nav .brand-name .bn-sky:last-child {
  color: #fff !important;
}

body.sst-page-stays-hub nav.sst-commercial-nav .brand-name .bn-stay {
  color: #ffd166 !important;
}

@media (min-width: 761px) {
  body.sst-page-stays-hub > nav.sst-commercial-nav > a.brand,
  body.sst-page-stays-hub > nav.sst-commercial-nav > a.sst-brand {
    position: relative;
    z-index: 302;
  }
}
