/* SkyStayTravel — footer tiers (Phase C). Load after sst-footer-premium.css */

/* —— Tier: minimal (static / legal) —— */
footer.sst-footer-minimal .sst-footer-minimal-grid {
  grid-template-columns: minmax(200px, 1.35fr) repeat(2, minmax(120px, 1fr));
  gap: 12px 20px;
  max-width: 820px;
}

footer.sst-footer-minimal .footer-bottom {
  text-align: left;
}

footer.sst-footer-minimal .sst-footer-copyline {
  display: block;
}

@media (max-width: 760px) {
  footer.sst-footer-commercial {
    padding: 0 !important;
    box-shadow: none !important;
  }

  footer.sst-footer-commercial .sst-footer-mobile-legal {
    padding: 10px 12px max(10px, env(safe-area-inset-bottom, 0px)) !important;
    font-size: 0.74rem !important;
    gap: 5px 8px !important;
  }

  footer.sst-footer-minimal .footer-bottom,
  footer.sst-footer-minimal .sst-footer-bottom-row {
    display: none !important;
  }
}

/* —— Tier: commercial — compact link grid —— */
footer.sst-footer-commercial {
  padding: 8px 0 max(6px, env(safe-area-inset-bottom, 0px)) !important;
  box-shadow: 0 -4px 18px rgba(2, 18, 42, 0.2) !important;
}

footer.sst-footer-commercial .fg {
  max-width: 1080px;
  margin: 0 auto 2px !important;
  padding: 12px 16px 6px !important;
  gap: 8px 14px !important;
}

footer.sst-footer-commercial .fb-col-brand {
  gap: 0 !important;
}

footer.sst-footer-commercial .fb-desc {
  display: none !important;
}

footer.sst-footer-commercial .fb-brand {
  font-size: 0.9rem !important;
}

footer.sst-footer-commercial .fb-brand-mark,
footer.sst-footer-commercial .fb-brand-mark.sst-logo-mark {
  width: 26px !important;
  height: 26px !important;
  min-width: 26px !important;
  border-radius: 6px !important;
}

footer.sst-footer-commercial .fc h4 {
  margin-bottom: 4px !important;
  font-size: 0.63rem !important;
  letter-spacing: 0.08em !important;
}

footer.sst-footer-commercial .fc a {
  font-size: 0.73rem !important;
  margin-bottom: 0 !important;
  padding: 2px 0 !important;
  line-height: 1.38 !important;
}

/* Secondary explore / legal links — desktop only */
@media (min-width: 761px) {
  footer.sst-footer-commercial .fc:nth-child(3) a[href*="package-holidays"],
  footer.sst-footer-commercial .fc:nth-child(3) a[href*="travel-services"],
  footer.sst-footer-commercial .fc:nth-child(3) a[href*="articles"],
  footer.sst-footer-commercial .fc:nth-child(4) a[href*="cookies"] {
    display: none;
  }
}

footer.sst-footer-commercial .fbot {
  margin-top: 2px !important;
  padding: 5px 16px 4px !important;
  border-top-color: rgba(255, 255, 255, 0.1) !important;
}

footer.sst-footer-commercial .sst-fbot-with-social {
  gap: 6px 14px !important;
  justify-content: space-between !important;
}

footer.sst-footer-commercial .sst-fbot-with-social .sst-fbot-meta {
  text-align: left !important;
  flex: 1 1 auto !important;
}

footer.sst-footer-commercial .sst-fbot-copy {
  font-size: 0.64rem !important;
  line-height: 1.35 !important;
}

footer.sst-footer-commercial .sst-social {
  gap: 6px !important;
}

footer.sst-footer-commercial .sst-social-link {
  width: 30px !important;
  height: 30px !important;
}

footer.sst-footer-commercial .sst-social-link svg {
  width: 15px !important;
  height: 15px !important;
}

@media (max-width: 760px) {
  footer.sst-footer-commercial .sst-footer-mobile-legal {
    padding: 10px 12px max(10px, env(safe-area-inset-bottom, 0px)) !important;
    font-size: 0.74rem !important;
    gap: 5px 8px !important;
  }
}

@media (max-width: 680px) {
  footer.sst-footer-commercial .fg {
    padding: 0 12px !important;
  }

  footer.sst-footer-commercial .fb-col-brand {
    padding-bottom: 6px !important;
  }
}

/* —— Tier: homepage premium —— */
footer.sst-footer-premium .footer-grid {
  grid-template-columns: minmax(180px, 1.2fr) repeat(5, minmax(108px, 1fr));
  gap: 12px 16px;
}

footer.sst-footer-premium .sst-footer-partner-tag {
  display: inline-block;
  margin-left: 0.2em;
  font-size: 0.72em;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: rgba(255, 209, 102, 0.72);
  vertical-align: baseline;
}

/* Homepage affiliate disclosure — matches footer copyline rhythm */
body.sst-page-home footer.sst-footer-premium .sst-footer-affiliate-note {
  margin: 4px 0 2px;
  padding: 0;
  font-size: 0.64rem;
  line-height: 1.35;
  font-weight: 600;
  color: var(--sst-ft-dim, rgba(255, 255, 255, 0.62));
  text-align: left;
}

@media (max-width: 760px) {
  body.sst-page-home footer.sst-footer-premium .sst-footer-affiliate-note {
    display: block !important;
    text-align: center;
    margin: 4px 0 8px;
    padding: 0 6px;
    font-size: 0.68rem;
    line-height: 1.4;
    color: rgba(255, 255, 255, 0.72);
  }
}

@media (max-width: 1100px) {
  footer.sst-footer-premium .footer-grid {
    grid-template-columns: minmax(160px, 1.1fr) repeat(3, minmax(120px, 1fr));
  }
}

@media (max-width: 900px) {
  footer.sst-footer-premium .footer-grid {
    grid-template-columns: repeat(2, minmax(140px, 1fr));
  }
}

/* Homepage: keep link columns visible on phone (2-col stack), matching tablet rhythm */
@media (max-width: 760px) {
  body.sst-page-home footer.sst-footer-premium {
    padding: 0 !important;
    box-shadow: none !important;
  }

  body.sst-page-home footer.sst-footer-premium .wrap {
    padding: 14px 14px 0 !important;
    max-width: none !important;
  }

  body.sst-page-home footer.sst-footer-premium .footer-grid {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px 16px !important;
    margin-bottom: 6px !important;
  }

  body.sst-page-home footer.sst-footer-premium .footer-brand.fb-col-brand {
    grid-column: 1 / -1;
  }

  body.sst-page-home footer.sst-footer-premium .fb-desc {
    display: none !important;
  }

  body.sst-page-home footer.sst-footer-premium .footer-links h4 {
    margin-bottom: 4px !important;
    font-size: 0.68rem !important;
  }

  body.sst-page-home footer.sst-footer-premium .footer-links a {
    font-size: 0.78rem !important;
    line-height: 1.4 !important;
    padding: 2px 0 !important;
  }

  body.sst-page-home footer.sst-footer-premium .sst-footer-newsletter,
  body.sst-page-home footer.sst-footer-premium .footer-bottom {
    display: none !important;
  }
}

@media (min-width: 761px) {
  body.sst-page-home footer.sst-footer-premium {
    padding: 10px 0 6px !important;
    box-shadow: 0 -4px 18px rgba(2, 18, 42, 0.2) !important;
  }

  body.sst-page-home footer.sst-footer-premium .footer-grid {
    gap: 6px 14px !important;
    margin-bottom: 2px !important;
  }

  body.sst-page-home footer.sst-footer-premium .footer-brand.fb-col-brand {
    gap: 0 !important;
  }

  body.sst-page-home footer.sst-footer-premium .fb-desc {
    display: none !important;
  }

  body.sst-page-home footer.sst-footer-premium .fb-brand-mark,
  body.sst-page-home footer.sst-footer-premium .fb-brand-mark.sst-logo-mark {
    width: 26px !important;
    height: 26px !important;
    min-width: 26px !important;
    border-radius: 6px !important;
  }

  body.sst-page-home footer.sst-footer-premium .fb-brand-text {
    font-size: 0.92rem !important;
  }

  body.sst-page-home footer.sst-footer-premium .footer-links h4 {
    margin-bottom: 3px !important;
    font-size: 0.63rem !important;
  }

  body.sst-page-home footer.sst-footer-premium .footer-links a {
    font-size: 0.73rem !important;
    line-height: 1.35 !important;
    margin-bottom: 0 !important;
    padding: 1px 0 !important;
  }

  body.sst-page-home footer.sst-footer-premium .footer-links:nth-child(3) a[href*="package-holidays"],
  body.sst-page-home footer.sst-footer-premium .footer-links:nth-child(3) a[href*="travel-services"],
  body.sst-page-home footer.sst-footer-premium .footer-links:nth-child(3) a[href*="articles"] {
    display: none;
  }

  body.sst-page-home footer.sst-footer-premium .sst-footer-newsletter {
    display: none !important;
  }

  body.sst-page-home footer.sst-footer-premium .footer-bottom {
    padding-top: 5px !important;
    margin-top: 0 !important;
    gap: 8px 12px !important;
  }

  body.sst-page-home footer.sst-footer-premium .sst-footer-copyline {
    font-size: 0.64rem !important;
    line-height: 1.35 !important;
  }

  body.sst-page-home footer.sst-footer-premium .sst-social {
    gap: 6px !important;
  }

  body.sst-page-home footer.sst-footer-premium .sst-social-link {
    width: 30px !important;
    height: 30px !important;
  }

  body.sst-page-home footer.sst-footer-premium .sst-social-link svg {
    width: 15px !important;
    height: 15px !important;
  }
}
