/**
 * SkyStayTravel — Guides hub mobile top-tier polish
 * Load after sst-home-bundle.css on guides.html
 */

body.sst-page-guides .sst-guides-nav-partners {
  display: none;
  align-items: center;
  flex-shrink: 0;
  height: 36px;
  padding: 0 6px;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 1px 2px rgba(2, 8, 23, 0.14);
}

@media (min-width: 761px) {
  body.sst-page-guides .sst-guides-nav-partners {
    display: flex;
  }

  body.sst-page-guides .sst-guides-nav-partners a {
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    height: 36px;
    padding: 0 9px;
    text-decoration: none;
  }

  body.sst-page-guides .sst-guides-nav-partners a + a {
    border-left: 1px solid #e5e7eb;
  }

  body.sst-page-guides .sst-guides-nav-partners a:hover,
  body.sst-page-guides .sst-guides-nav-partners a:focus-visible {
    outline: 2px solid var(--sst-gold, #ffd166);
    outline-offset: 2px;
    border-radius: 8px;
  }

  body.sst-page-guides .sst-guides-nav-partners img {
    display: block;
    height: 20px;
    width: auto;
    max-width: 78px;
    object-fit: contain;
  }
}

@media (min-width: 761px) and (max-width: 980px) {
  body.sst-page-guides .sst-guides-nav-partners a:nth-child(n + 4) {
    display: none;
  }
}

@media (max-width: 760px) {
  body.sst-page-guides {
    background:
      radial-gradient(ellipse 120% 50% at 50% -10%, rgba(7, 112, 227, 0.1), transparent 55%),
      #f5f7fa;
  }

  body.sst-page-guides .home-main {
    padding: 6px 0 28px;
    overflow-x: clip;
  }

  /* Intro */
  body.sst-page-guides .sst-guides-intro {
    padding: 18px 0 14px;
  }

  body.sst-page-guides .sst-guides-intro__kicker {
    display: inline-flex;
    margin: 0 0 0.55rem;
    padding: 0.3rem 0.7rem;
    border-radius: 999px;
    background: rgba(255, 209, 102, 0.22);
    border: 1px solid rgba(255, 209, 102, 0.45);
    color: #8a5b00;
    font-size: 0.66rem;
    font-weight: 850;
    letter-spacing: 0.1em;
    text-transform: uppercase;
  }

  body.sst-page-guides .sst-guides-intro h1 {
    margin: 0 0 0.45rem;
    font-size: clamp(1.7rem, 7vw, 2.05rem);
    font-weight: 900;
    letter-spacing: -0.04em;
    line-height: 1.08;
    color: #0b1f3a;
  }

  body.sst-page-guides .sst-guides-intro p {
    margin: 0;
    max-width: 34ch;
    font-size: 0.92rem;
    line-height: 1.5;
    color: #475569;
    font-weight: 550;
  }

  /* Travel tools panel */
  body.sst-page-guides .sst-guides-tools-sec {
    padding: 4px 0 12px;
  }

  body.sst-page-guides .sst-home-tools-panel {
    border-radius: 20px;
    padding: 1.05rem 1rem 1.1rem;
    color: #1c1914;
    border: 1px solid rgba(201, 162, 70, 0.38);
    background: linear-gradient(165deg, #fbf7ef 0%, #f4ece0 52%, #ece3d4 100%);
    box-shadow:
      0 1px 0 rgba(255, 252, 245, 0.9) inset,
      0 14px 34px rgba(28, 22, 16, 0.08);
  }

  body.sst-page-guides .sst-home-tools-kicker,
  body.sst-page-guides .sst-home-promo-kicker {
    display: inline-flex;
    margin: 0 0 0.4rem;
    padding: 0.28rem 0.65rem;
    border-radius: 999px;
    background: rgba(230, 168, 0, 0.16);
    border: 1px solid rgba(230, 168, 0, 0.42);
    color: #8a5b00;
    font-size: 0.66rem;
    font-weight: 850;
    letter-spacing: 0.1em;
    text-transform: uppercase;
  }

  body.sst-page-guides .sst-home-tools-copy h2,
  body.sst-page-guides .sst-home-promo-copy h2 {
    margin: 0 0 0.4rem;
    font-size: clamp(1.25rem, 5.2vw, 1.45rem);
    letter-spacing: -0.03em;
    color: #1c1914;
  }

  body.sst-page-guides .sst-home-tools-copy p,
  body.sst-page-guides .sst-home-promo-copy p:not(.sst-home-tools-kicker):not(.sst-home-promo-kicker) {
    margin: 0 0 0.85rem;
    font-size: 0.88rem;
    line-height: 1.45;
    color: #5c5346;
  }

  body.sst-page-guides .sst-home-tools-chips,
  body.sst-page-guides .sst-home-promo-chips {
    display: flex;
    flex-wrap: nowrap;
    gap: 0.45rem;
    margin: 0 0 0.85rem;
    padding: 0.1rem 0 0.25rem;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    scroll-snap-type: x proximity;
  }

  body.sst-page-guides .sst-home-tools-chips::-webkit-scrollbar,
  body.sst-page-guides .sst-home-promo-chips::-webkit-scrollbar {
    display: none;
  }

  body.sst-page-guides .sst-home-tools-chips a,
  body.sst-page-guides .sst-home-promo-chips a {
    flex: 0 0 auto;
    scroll-snap-align: start;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2.45rem;
    padding: 0.5rem 0.9rem;
    border-radius: 999px;
    background: #fffaf3 !important;
    border: 1px solid rgba(28, 22, 16, 0.12) !important;
    color: #1c1914 !important;
    font-size: 0.8rem;
    font-weight: 800;
    text-decoration: none;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
  }

  body.sst-page-guides .sst-home-tools-actions,
  body.sst-page-guides .sst-home-promo-actions {
    min-width: 0;
    max-width: 100%;
  }

  body.sst-page-guides .sst-home-tools-cta,
  body.sst-page-guides .sst-home-promo-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
    min-height: 3rem;
    padding: 0.8rem 1rem;
    border-radius: 14px;
    background: #1c1914;
    color: #f7f0e4 !important;
    font-size: 0.95rem;
    font-weight: 900;
    text-decoration: none;
    box-shadow: 0 10px 24px rgba(28, 22, 16, 0.18);
  }

  /* Regions */
  body.sst-page-guides #choose {
    padding: 10px 0 8px;
  }

  body.sst-page-guides .sst-home-regions-head {
    text-align: left;
    margin-bottom: 0.85rem;
  }

  body.sst-page-guides .sst-home-regions-head h2 {
    margin: 0 0 0.35rem;
    font-size: clamp(1.3rem, 5.5vw, 1.55rem);
    letter-spacing: -0.03em;
    color: #0b1f3a;
  }

  body.sst-page-guides .sst-home-regions-head p {
    margin: 0;
    max-width: 36ch;
    font-size: 0.88rem;
    line-height: 1.45;
    color: #475569;
  }

  body.sst-page-guides .sst-home-region-card--dual {
    border-radius: 18px;
    overflow: hidden;
    border: 1px solid rgba(15, 39, 68, 0.08);
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
  }

  body.sst-page-guides .sst-home-region-card--dual .sst-home-region-card__body {
    padding: 0.85rem 0.9rem 1rem;
  }

  body.sst-page-guides .sst-home-region-card--dual .sst-home-region-card__body strong {
    font-size: 1.05rem;
    letter-spacing: -0.02em;
    color: #0b1f3a;
  }

  body.sst-page-guides .sst-home-region-card--dual .sst-home-region-card__body small {
    display: block;
    margin-top: 0.2rem;
    font-size: 0.8rem;
    line-height: 1.4;
    color: #475569;
  }

  body.sst-page-guides .sst-home-region-card__links {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.45rem;
    margin-top: 0.75rem;
  }

  body.sst-page-guides .sst-home-region-card__links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2.55rem;
    padding: 0.5rem 0.4rem;
    border-radius: 12px;
    background: #f1f5f9;
    border: 1px solid rgba(15, 39, 68, 0.08);
    color: #0557b0;
    font-size: 0.8rem;
    font-weight: 850;
    text-decoration: none;
  }

  /* Articles strip */
  body.sst-page-guides #guides {
    padding: 12px 0 8px;
  }

  body.sst-page-guides .sst-article-banner {
    border-radius: 18px;
    box-shadow: 0 14px 34px rgba(5, 87, 176, 0.22);
  }

  body.sst-page-guides .sst-article-banner-inner {
    gap: 14px;
    padding: 1.15rem 1.05rem;
  }

  body.sst-page-guides .sst-article-banner-title {
    font-size: clamp(1.35rem, 5.5vw, 1.6rem);
    letter-spacing: -0.03em;
  }

  body.sst-page-guides .sst-article-banner-sub {
    font-size: 0.88rem;
    line-height: 1.45;
    color: rgba(255, 255, 255, 0.92) !important;
  }

  body.sst-page-guides .sst-article-banner-cta {
    width: 100%;
    min-height: 2.85rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    font-weight: 900;
  }

  /* Beat homepage bundle #guides rules (higher specificity: id + sst-page-guides) */
  body.sst-page-guides.sst-page-home #guides .sst-articles-sec .sst-article-grid--editorial {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 0.85rem !important;
    margin-top: 0.95rem !important;
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }

  body.sst-page-guides.sst-page-home #guides .sst-articles-sec .sst-article-card--editorial {
    display: grid !important;
    grid-template-columns: 108px minmax(0, 1fr) !important;
    grid-template-rows: 1fr !important;
    flex-direction: unset !important;
    gap: 0;
    align-items: stretch;
    min-width: 0;
    max-width: 100%;
    border-radius: 16px;
    overflow: hidden;
    background: #fff !important;
    border: 1px solid rgba(15, 39, 68, 0.08) !important;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06) !important;
    text-decoration: none;
  }

  body.sst-page-guides.sst-page-home #guides .sst-articles-sec .sst-article-card--editorial > img {
    display: block;
    width: 108px !important;
    height: 100% !important;
    min-height: 118px !important;
    max-height: none !important;
    object-fit: cover;
    object-position: center;
    border-radius: 0;
    align-self: stretch;
  }

  body.sst-page-guides.sst-page-home #guides .sst-articles-sec .sst-article-card--editorial .sst-article-card-body {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    padding: 0.75rem 0.8rem 0.85rem;
    min-width: 0;
  }

  body.sst-page-guides.sst-page-home #guides .sst-articles-sec .sst-article-card--editorial .sst-article-card-tag {
    font-size: 0.66rem;
    font-weight: 850;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #0557b0;
  }

  body.sst-page-guides.sst-page-home #guides .sst-articles-sec .sst-article-card--editorial .sst-article-card-title {
    font-size: 0.95rem;
    font-weight: 850;
    line-height: 1.25;
    letter-spacing: -0.02em;
    color: #0b1f3a !important;
  }

  body.sst-page-guides.sst-page-home #guides .sst-articles-sec .sst-article-card--editorial .sst-article-card-desc {
    font-size: 0.8rem;
    line-height: 1.4;
    color: #475569 !important;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  body.sst-page-guides.sst-page-home #guides .sst-articles-sec .sst-article-card--editorial .sst-article-card-cta {
    margin-top: auto;
    padding-top: 0.25rem;
    font-size: 0.78rem;
    font-weight: 850;
    color: #0557b0;
  }

  body.sst-page-guides .sst-utility-legal {
    margin-top: 10px;
    padding-bottom: calc(18px + env(safe-area-inset-bottom, 0px));
  }
}

@media (max-width: 760px) and (prefers-reduced-motion: no-preference) {
  body.sst-page-guides .sst-guides-intro,
  body.sst-page-guides .sst-home-tools-panel,
  body.sst-page-guides .sst-article-banner {
    animation: sst-guides-rise 0.5s cubic-bezier(0.22, 1, 0.36, 1) both;
  }

  body.sst-page-guides .sst-home-tools-panel {
    animation-delay: 0.06s;
  }

  body.sst-page-guides .sst-article-banner {
    animation-delay: 0.1s;
  }
}

@keyframes sst-guides-rise {
  from {
    opacity: 0.7;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
