/* Itinerary generator landing hero and featured starter shortcuts. */

.ig-landing-hero {
  position: relative;
  width: calc(100% - 24px);
  max-width: 1180px;
  margin: 10px auto 22px;
  border-radius: 24px;
  overflow: hidden;
  background: #15352f;
  color: #fff;
  box-shadow: 0 20px 48px rgba(20, 48, 43, 0.2);
  box-sizing: border-box;
}

.ig-landing-hero,
.ig-landing-hero * {
  box-sizing: border-box;
}

.ig-hero-photo,
.ig-hero-photo img,
.ig-hero-shade {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
}

.ig-hero-photo img {
  object-fit: cover;
  object-position: center 52%;
}

.ig-hero-shade {
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(7, 28, 31, 0.82) 0%, rgba(7, 31, 34, 0.62) 48%, rgba(7, 31, 34, 0.24) 100%),
    linear-gradient(0deg, rgba(7, 28, 31, 0.7) 0%, rgba(7, 28, 31, 0.02) 62%);
}

.ig-hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(360px, 0.92fr);
  gap: clamp(30px, 5vw, 70px);
  align-items: center;
  min-height: 520px;
  padding: 68px clamp(28px, 5vw, 64px) 88px;
}

.ig-hero-copy {
  max-width: 650px;
}

.ig-hero-kicker,
.ig-hero-starters-kicker {
  margin: 0 0 10px;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.3;
  text-transform: uppercase;
  letter-spacing: 0.09em;
}

.ig-hero-kicker {
  color: #fff;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.92);
}

.ig-hero-kicker i {
  margin-right: 6px;
}

.ig-hero-copy h1 {
  max-width: 690px;
  margin: 0;
  color: #fff;
  font-size: clamp(38px, 5vw, 60px);
  font-weight: 900;
  line-height: 1.02;
  letter-spacing: -0.035em;
  text-wrap: balance;
  text-shadow: 0 3px 22px rgba(0, 0, 0, 0.3);
}

.ig-hero-lede {
  max-width: 620px;
  margin: 18px 0 0;
  color: rgba(255, 255, 255, 0.93);
  font-size: 18px;
  line-height: 1.55;
}

.ig-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.ig-hero-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 50px;
  padding: 13px 20px;
  border-radius: 10px;
  background: #c8510a;
  color: #fff !important;
  font-size: 16px;
  font-weight: 800;
  line-height: 1.2;
  text-decoration: none;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.25);
  transition: transform 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.ig-hero-cta:hover,
.ig-hero-cta:focus-visible {
  background: #b94300;
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 15px 32px rgba(0, 0, 0, 0.3);
}

.ig-hero-proof {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin-top: 22px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 15px;
  line-height: 1.4;
}

.ig-hero-proof span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.ig-hero-proof strong {
  color: #fff;
}

.ig-hero-proof i {
  margin-right: 2px;
}

.ig-hero-starters,
.ig-hero-outcome {
  padding: 25px;
  border: 1px solid rgba(255, 255, 255, 0.64);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.94);
  color: #1e332d;
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.23);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

.ig-hero-starters-kicker {
  color: #24755d;
}

.ig-hero-starters h2,
.ig-hero-outcome h2 {
  margin: 0 0 17px;
  color: #172923;
  font-size: clamp(23px, 2.25vw, 30px);
  font-weight: 900;
  line-height: 1.12;
  letter-spacing: -0.02em;
}

.ig-hero-outcome-list {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.ig-hero-outcome-list li {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 13px 0;
  border-bottom: 1px solid #dce8e3;
}

.ig-hero-outcome-list li:first-child {
  padding-top: 4px;
}

.ig-hero-outcome-list li:last-child {
  border-bottom: 0;
}

.ig-hero-outcome-list i {
  display: inline-flex;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: #eaf4ef;
  color: #17694b;
  font-size: 19px;
}

.ig-hero-outcome-list strong,
.ig-hero-outcome-list small {
  display: block;
}

.ig-hero-outcome-list strong {
  color: #172923;
  font-size: 16px;
  line-height: 1.3;
}

.ig-hero-outcome-list small {
  margin-top: 2px;
  color: #465950;
  font-size: 14px;
  line-height: 1.4;
}

.ig-hero-outcome-note {
  margin: 12px 0 0;
  color: #52675f;
  font-size: 14px;
  line-height: 1.45;
}

.ig-hero-starter-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.ig-hero-starter {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  min-height: 76px;
  padding: 12px;
  border: 1px solid #dce8e3;
  border-left: 4px solid var(--ig-starter-island, #1d9771);
  border-radius: 12px;
  background: #fff;
  color: #1e332d !important;
  text-decoration: none;
  box-shadow: 0 6px 16px rgba(28, 62, 53, 0.07);
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.ig-hero-starter:hover,
.ig-hero-starter:focus-visible {
  border-color: var(--ig-starter-island, #1d9771);
  color: #13251f;
  transform: translateY(-2px);
  box-shadow: 0 10px 22px rgba(28, 62, 53, 0.14);
}

.ig-hero-starter-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #eef5f2;
  color: var(--ig-starter-island, #1d9771);
  font-size: 21px;
}

.ig-hero-starter-copy,
.ig-hero-starter-copy strong,
.ig-hero-starter-copy small {
  display: block;
  min-width: 0;
}

.ig-hero-starter-copy strong {
  color: #172923;
  font-size: 15px;
  line-height: 1.25;
}

.ig-hero-starter-copy small {
  margin-top: 3px;
  overflow: hidden;
  color: #566a63;
  font-size: 11px;
  font-weight: 650;
  line-height: 1.3;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ig-hero-starter-arrow {
  color: #49645a;
  font-size: 18px;
  font-weight: 800;
}

.ig-hero-starters-note {
  margin: 15px 0 0;
  color: #52675f;
  font-size: 12px;
  line-height: 1.4;
  text-align: center;
}

.ig-hero-starters-note i {
  margin-right: 5px;
  color: #24755d;
}

.ig-hero-byline {
  position: absolute;
  z-index: 3;
  left: clamp(28px, 5vw, 64px);
  bottom: 22px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 13px;
  line-height: 1.35;
}

.ig-hero-byline img {
  width: 38px;
  height: 38px;
  border: 2px solid rgba(255, 255, 255, 0.72);
  border-radius: 50%;
  object-fit: cover;
}

.ig-hero-byline a {
  color: #fff;
  font-weight: 800;
  text-decoration: underline;
  text-decoration-color: rgba(255, 255, 255, 0.5);
  text-underline-offset: 2px;
}

.ig-landing-disclosure {
  width: calc(100% - 32px);
  max-width: 900px;
  margin: 0 auto 14px;
  border: 1px solid #dfe7e2;
  border-radius: 10px;
  background: #f8faf9;
  color: #5f6873;
}

.ig-landing-disclosure summary {
  padding: 9px 13px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.4;
  text-align: center;
}

.ig-landing-disclosure summary i {
  margin-right: 5px;
}

.ig-landing-disclosure-body {
  padding: 0 16px 12px;
  text-align: left;
}

.ig-landing-disclosure-body p {
  margin: 8px 0 0;
  color: #5f6873;
  font-size: 13px;
  line-height: 1.55;
}

.ig-landing-disclosure a {
  color: #4f5b65;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.ig-journey-links {
  display: flex;
  width: calc(100% - 32px);
  max-width: 860px;
  align-items: center;
  justify-content: center;
  gap: 12px 22px;
  margin: 30px auto;
  padding-top: 20px;
  border-top: 1px solid #e2e8e4;
}

.ig-journey-links a {
  color: #17694b;
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
}

.ig-journey-links a:hover,
.ig-journey-links a:focus-visible {
  color: #0b5139;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* This page's pale shortcut banner needs a darker link than the shared
   default to remain comfortably readable below the planning journey. */
.hg-shortcut-note__all {
  color: #0b5139;
}

/* Keep the OS control in the hero's quiet upper-right corner. The generic
   hero rule uses a deep header offset intended for full-bleed cover images. */
#hawaii-top.ig-landing-hero.hero-top .hgos-hero-add {
  top: 18px !important;
  right: 18px;
  border-color: rgba(255, 255, 255, 0.55) !important;
  background: #0b493b !important;
}

#hawaii-top.ig-landing-hero.hero-top .hgos-hero-add:hover,
#hawaii-top.ig-landing-hero.hero-top .hgos-hero-add:focus-visible {
  background: #07382d !important;
}

#hawaii-top.ig-landing-hero.hero-top .hgos-hero-add.is-on {
  border-color: #7ae0b2 !important;
  background: #105c4a !important;
}

@media (max-width: 960px) {
  .ig-hero-grid {
    grid-template-columns: minmax(0, 1fr) minmax(320px, 0.9fr);
    gap: 24px;
    padding-right: 28px;
    padding-left: 28px;
  }

  .ig-hero-starters,
  .ig-hero-outcome {
    padding: 20px;
  }

  .ig-hero-starter-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 700px) {
  .ig-landing-hero {
    width: calc(100% - 16px);
    min-height: 0;
    margin: 8px auto 18px;
    border-radius: 18px;
  }

  .ig-hero-photo img {
    object-position: center center;
  }

  .ig-hero-shade {
    background:
      linear-gradient(0deg, rgba(6, 28, 30, 0.95) 0%, rgba(6, 28, 30, 0.74) 70%, rgba(6, 28, 30, 0.45) 100%);
  }

  .ig-hero-grid {
    display: block;
    min-height: 0;
    padding: 72px 18px 82px;
  }

  .ig-hero-copy h1 {
    font-size: clamp(36px, 11vw, 48px);
  }

  .ig-hero-lede {
    font-size: 16px;
  }

  .ig-hero-actions,
  .ig-hero-cta {
    width: 100%;
  }

  .ig-hero-proof {
    justify-content: center;
    gap: 7px 14px;
    font-size: 12px;
  }

  .ig-hero-starters,
  .ig-hero-outcome {
    margin-top: 28px;
    padding: 20px 16px;
    border-radius: 15px;
  }

  .ig-hero-starters h2,
  .ig-hero-outcome h2 {
    font-size: 25px;
  }

  .ig-hero-starter-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
  }

  .ig-hero-starter {
    grid-template-columns: auto minmax(0, 1fr);
    gap: 8px;
    min-height: 78px;
    padding: 10px;
  }

  .ig-hero-starter-arrow {
    display: none;
  }

  .ig-hero-starter-icon {
    width: 32px;
    height: 32px;
    font-size: 18px;
  }

  .ig-hero-starter-copy strong {
    font-size: 14px;
  }

  .ig-hero-starter-copy small {
    font-size: 10px;
  }

  .ig-hero-byline {
    right: 18px;
    bottom: 20px;
    left: 18px;
    justify-content: center;
    font-size: 11px;
    text-align: left;
  }

  .ig-hero-byline img {
    width: 34px;
    height: 34px;
  }

  #hawaii-top.ig-landing-hero.hero-top .hgos-hero-add {
    top: 16px !important;
    right: 16px;
    min-height: 44px;
  }

}

@media (max-width: 350px) {
  .ig-hero-starter-grid {
    grid-template-columns: 1fr;
  }

  .ig-hero-starter {
    min-height: 68px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ig-hero-cta,
  .ig-hero-starter {
    transition: none;
  }
}

/* App/OS shell normalization: this is the page's one useful hero. The
   existing starter shortcuts remain in the stage, while its outer geometry
   and wave are owned by the shared shell. */
body.hg-site-shell--app .ig-landing-hero.hg-site-shell-hero-edge {
  box-shadow: none;
}

/* Beat the older nested-itinerary exception in the shared sheet now that the
   hero is a canonical direct child. Its former 22px bottom margin would place
   the wave below the photo instead of overlapping the final 24/32px. */
body.hg-site-shell--app
  .hg-site-shell-content > #type-custom-page
  > #hawaii-top.ig-landing-hero.hg-site-shell-hero-edge {
  margin:
    calc(var(--hg-shell-edge) - var(--hg-shell-content-pad) - 10px)
    calc(var(--hg-shell-edge) - var(--hg-shell-content-pad))
    0 !important;
}

body.hg-site-shell--app .ig-landing-hero #ig-page-header,
body.hg-site-shell--app .ig-landing-hero .ig-hero-grid {
  height: 100%;
}

body.hg-site-shell--app .ig-landing-hero .ig-hero-grid {
  min-height: 0;
  grid-template-columns: minmax(0, 1.05fr) minmax(330px, 0.95fr);
  gap: clamp(22px, 4vw, 52px);
  padding: 48px clamp(28px, 4.5vw, 56px);
}

body.hg-site-shell--app .ig-landing-hero .ig-hero-copy h1 {
  font-size: clamp(34px, 4vw, 48px);
}

body.hg-site-shell--app .ig-landing-hero .ig-hero-lede {
  margin-top: 12px;
  font-size: 17px;
  line-height: 1.42;
}

body.hg-site-shell--app .ig-landing-hero .ig-hero-actions {
  margin-top: 15px;
}

body.hg-site-shell--app .ig-landing-hero .ig-hero-cta {
  min-height: 44px;
  padding: 10px 17px;
  font-size: 15px;
}

body.hg-site-shell--app .ig-landing-hero .ig-hero-proof {
  gap: 6px 14px;
  margin-top: 12px;
  color: #fff;
  font-size: 15px;
}

body.hg-site-shell--app .ig-landing-hero .ig-hero-starters,
body.hg-site-shell--app .ig-landing-hero .ig-hero-outcome {
  padding: 16px;
  border-radius: 15px;
}

body.hg-site-shell--app .ig-landing-hero .ig-hero-starters-kicker {
  margin-bottom: 5px;
  font-size: 14px;
}

body.hg-site-shell--app .ig-landing-hero .ig-hero-starters h2,
body.hg-site-shell--app .ig-landing-hero .ig-hero-outcome h2 {
  margin-bottom: 10px;
  font-size: 24px;
}

body.hg-site-shell--app .ig-landing-hero .ig-hero-starter-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
}

body.hg-site-shell--app .ig-landing-hero .ig-hero-starter {
  min-height: 58px;
  padding: 8px;
}

body.hg-site-shell--app .ig-landing-hero .ig-hero-starter-icon {
  width: 30px;
  height: 30px;
  font-size: 17px;
}

body.hg-site-shell--app .ig-landing-hero .ig-hero-starter-copy strong {
  font-size: 13px;
}

body.hg-site-shell--app .ig-landing-hero .ig-hero-starter-copy small {
  margin-top: 1px;
  font-size: 9.5px;
}

body.hg-site-shell--app .ig-landing-hero .ig-hero-starters-note {
  margin-top: 9px;
  font-size: 10.5px;
}

/* The standard byline immediately below the wave remains the single author
   treatment, so the old duplicate inside the photo does not consume stage
   height. */
body.hg-site-shell--app .ig-landing-hero .ig-hero-byline {
  display: none;
}

@media (max-width: 700px) {
  #hawaii-top.ig-landing-hero.hero-top .hgos-hero-add,
  #hawaii-top.ig-landing-hero.hero-top .hgos-hero-add.is-on {
    border-color: rgba(255, 255, 255, 0.45) !important;
    background: rgba(7, 56, 45, 0.72) !important;
    box-shadow: none !important;
    opacity: 0.84;
  }

  body.hg-site-shell--app .ig-landing-hero.hg-site-shell-hero-edge {
    height: 266px !important;
    min-height: 266px !important;
  }

  body.hg-site-shell--app .ig-landing-hero .ig-hero-grid {
    position: relative;
    display: block;
    height: 266px;
    padding: 64px 16px 28px;
  }

  body.hg-site-shell--app .ig-landing-hero .ig-hero-kicker,
  body.hg-site-shell--app .ig-landing-hero .ig-hero-lede,
  body.hg-site-shell--app .ig-landing-hero .ig-hero-proof,
  body.hg-site-shell--app .ig-landing-hero .ig-hero-starters-kicker,
  body.hg-site-shell--app .ig-landing-hero .ig-hero-starters h2,
  body.hg-site-shell--app .ig-landing-hero .ig-hero-outcome,
  body.hg-site-shell--app .ig-landing-hero .ig-hero-starters-note {
    display: none;
  }

  body.hg-site-shell--app .ig-landing-hero .ig-hero-copy h1 {
    max-width: none;
    font-size: 27px;
    line-height: 1.02;
    letter-spacing: -0.025em;
    text-wrap: balance;
  }

  body.hg-site-shell--app .ig-landing-hero .ig-hero-actions {
    width: auto;
    margin-top: 10px;
  }

  body.hg-site-shell--app .ig-landing-hero .ig-hero-cta {
    width: auto;
    min-height: 44px;
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 13px;
  }

  body.hg-site-shell--app .ig-landing-hero .ig-hero-starters {
    position: absolute;
    right: 16px;
    bottom: 34px;
    left: 16px;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }

  body.hg-site-shell--app .ig-landing-hero .ig-hero-starter-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
  }

  body.hg-site-shell--app .ig-landing-hero .ig-hero-starter {
    min-height: 48px;
    gap: 6px;
    padding: 6px 7px;
    border-left-width: 3px;
    border-radius: 9px;
  }

  body.hg-site-shell--app .ig-landing-hero .ig-hero-starter-icon {
    width: 26px;
    height: 26px;
    font-size: 15px;
  }

  body.hg-site-shell--app .ig-landing-hero .ig-hero-starter-copy strong {
    overflow: hidden;
    font-size: 12px;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  body.hg-site-shell--app .ig-landing-hero .ig-hero-starter-copy small,
  body.hg-site-shell--app .ig-landing-hero .ig-hero-starter-arrow {
    display: none;
  }
}

@media (max-width: 520px) {
  .ig-journey-links {
    align-items: stretch;
    flex-direction: column;
    text-align: center;
  }
}
