/* Hawaii Guide Starter Itineraries — shared cards on itinerary hubs and
   compact chooser styles inside /itinerary. */
.hgsi,
.ig-starter-choices {
  box-sizing: border-box;
}

.ig-starter-choices {
  width: 100%;
}

.hgsi {
  max-width: 1180px;
  margin: 30px auto 34px;
  padding: 30px 22px;
  border: 1px solid #dce8e1;
  border-radius: 20px;
  background: linear-gradient(145deg, #f7fbf8 0%, #fff 60%, #f4f8f5 100%);
  box-shadow: 0 12px 34px rgba(22, 70, 50, 0.08);
}

.hgsi-heading {
  max-width: 760px;
  margin: 0 auto 24px;
  text-align: center;
}

.hgsi-kicker {
  margin: 0 0 7px;
  color: #17694b;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 1.2px;
  line-height: 1.3;
  text-transform: uppercase;
}

.hgsi-heading h2 {
  margin: 0 0 10px;
  color: #17362a;
  font-size: 30px;
  font-weight: 800;
  line-height: 1.15;
}

.hgsi-heading > p:last-child {
  margin: 0;
  color: #526159;
  font-size: 17px;
  line-height: 1.55;
}

.hgsi-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.hgsi-scope-all .hgsi-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.hgsi-card {
  position: relative;
  display: flex;
  min-width: 0;
  min-height: 100%;
  flex-direction: column;
  box-sizing: border-box;
  overflow: hidden;
  padding: 21px 19px 19px;
  border: 1px solid #dfe5e1;
  border-top: 5px solid var(--hgsi-island, #17694b);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 5px 16px rgba(23, 54, 42, 0.07);
}

.hgsi-island-label {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  gap: 8px;
  margin: 0 0 10px;
  color: #273c32;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.7px;
  line-height: 1.2;
  text-transform: uppercase;
}

.hgsi-island-shape {
  display: inline-flex;
  width: 32px;
  height: 32px;
  flex: 0 0 32px;
  align-items: center;
  justify-content: center;
  border-radius: 9px;
  background: color-mix(in srgb, var(--hgsi-island, #17694b) 13%, #fff);
  color: var(--hgsi-island, #17694b);
  font-size: 21px;
  line-height: 1;
}

.hgsi-island-shape .fa {
  color: inherit;
  line-height: 1 !important;
}

.hgsi-card-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 11px;
}

.hgsi-days,
.hgsi-style {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  box-sizing: border-box;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
}

.hgsi-days {
  padding: 7px 10px;
  background: color-mix(in srgb, var(--hgsi-island, #17694b) 13%, #fff);
  color: #273c32;
}

.hgsi-style {
  padding: 7px 0;
  color: #6b746f;
}

.hgsi-card h3 {
  margin: 0 0 9px;
  color: #1c2923;
  font-size: 21px;
  font-weight: 800;
  line-height: 1.22;
}

.hgsi-summary {
  margin: 0 0 13px;
  color: #4d5953;
  font-size: 15px;
  line-height: 1.5;
}

.article-content .hgsi .hgsi-highlights {
  display: block;
  margin: 0 0 14px;
  padding: 0 !important;
  overflow: visible;
  list-style: none !important;
}

.article-content .hgsi .hgsi-highlights li {
  display: grid;
  grid-template-columns: 16px minmax(0, 1fr);
  gap: 8px;
  margin: 0 0 8px;
  padding: 0 !important;
  color: #273c32;
  font-size: 14px;
  line-height: 1.4;
  list-style: none !important;
}

.article-content .hgsi .hgsi-highlights li:last-child {
  margin-bottom: 0;
}

.hgsi-highlight-icon {
  margin-top: 2px;
  color: var(--hgsi-island, #17694b);
  font-size: 13px;
  line-height: 1.4 !important;
  text-align: center;
}

.hgsi-assumption {
  margin: auto 0 16px;
  padding: 10px 11px;
  border-radius: 10px;
  background: #f5f7f5;
  color: #5c6761;
  font-size: 12px;
  line-height: 1.45;
}

.hgsi-actions {
  display: flex;
  align-items: flex-start;
  flex-direction: column;
  gap: 10px;
}

.hgsi-primary,
.hgsi-secondary {
  font-weight: 800;
  text-decoration: none !important;
}

.hgsi-primary {
  display: inline-flex;
  width: 100%;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  padding: 11px 13px;
  border-radius: 10px;
  background: var(--hgsi-island, #17694b);
  color: #fff !important;
  font-size: 14px;
  line-height: 1.25;
  text-align: center;
}

.hgsi-primary:hover,
.hgsi-primary:focus-visible {
  filter: brightness(0.88);
  transform: translateY(-1px);
}

.hgsi-primary span {
  margin-left: 4px;
}

.hgsi-secondary {
  color: #425148 !important;
  font-size: 13px;
  line-height: 1.3;
  text-decoration: underline !important;
  text-underline-offset: 3px;
}

.hgsi-footnote {
  margin: 20px 0 0;
  color: #58675f;
  font-size: 13px;
  line-height: 1.45;
  text-align: center;
}

/* /itinerary island-step chooser. */
.ig-starter-choices {
  margin-top: 23px;
  padding-top: 21px;
  border-top: 1px solid #dfe7e2;
}

.ig-starter-choices-head {
  margin-bottom: 14px;
  text-align: center;
}

.ig-starter-choices-head h3 {
  margin: 0 0 5px;
  color: #17362a;
  font-size: 22px;
  line-height: 1.2;
}

.ig-starter-choices-head p {
  margin: 0;
  color: #657169;
  font-size: 14px;
  line-height: 1.45;
}

.ig-starter-choice-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.ig-starter-choice {
  min-width: 0;
  box-sizing: border-box;
  padding: 15px;
  border: 1px solid #dce5df;
  border-top: 4px solid var(--hgsi-island, #17694b);
  border-radius: 13px;
  background: #fff;
  color: #24352c;
  cursor: pointer;
  font-family: inherit;
  text-align: left;
}

.ig-starter-choice:hover,
.ig-starter-choice:focus-visible,
.ig-starter-choice.is-selected {
  border-color: var(--hgsi-island, #17694b);
  box-shadow: 0 6px 16px rgba(23, 54, 42, 0.1);
  transform: translateY(-1px);
}

.ig-starter-choice-meta {
  display: block;
  margin-bottom: 6px;
  color: #33443c;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.2;
  text-transform: uppercase;
}

.ig-starter-choice strong {
  display: block;
  margin-bottom: 6px;
  color: #1d2c24;
  font-size: 16px;
  line-height: 1.25;
}

.ig-starter-choice-desc {
  display: block;
  color: #657169;
  font-size: 13px;
  line-height: 1.4;
}

.ig-starter-scratch {
  display: block;
  margin: 15px auto 0;
  padding: 8px 2px;
  border: 0;
  background: transparent;
  color: #52645a;
  cursor: pointer;
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.ig-starter-result {
  margin: 14px 0 0;
  padding: 12px 14px;
  border: 1px solid #c8dfd2;
  border-radius: 11px;
  background: #f2f8f4;
  color: #28513e;
  font-size: 14px;
  line-height: 1.45;
}

.ig-banner-starter {
  border: 1px solid #a9d5bd;
  background: #edf8f1;
  color: #19543a;
}

.ig-banner-starter i.fa {
  color: #17694b;
}

.ig-starter-result-label {
  display: inline-block;
  margin-right: 5px;
  color: #17694b;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.7px;
  text-transform: uppercase;
}

.ig-starter-handoff {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 32px 0 6px;
  padding: 21px;
  border: 1px solid #bcdacb;
  border-radius: 14px;
  background: linear-gradient(135deg, #eaf6ef, #f8fbf9);
}

.ig-plan-handoff-kicker {
  margin: 0 0 5px;
  color: #17694b;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.08em;
  line-height: 1.3;
  text-transform: uppercase;
}

.ig-starter-handoff-copy {
  min-width: 0;
}

.ig-starter-handoff-copy strong {
  display: block;
  margin-bottom: 4px;
  color: #173f2e;
  font-size: 17px;
  line-height: 1.3;
}

.ig-starter-handoff-copy span {
  display: block;
  color: #4f655a;
  font-size: 14px;
  line-height: 1.45;
}

.ig-starter-handoff-copy .ig-plan-handoff-template {
  margin-top: 6px;
  color: #66776e;
  font-size: 12px;
}

.ig-starter-handoff-actions {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 9px;
}

@media (max-width: 980px) {
  .hgsi-scope-all .hgsi-grid,
  .hgsi-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 700px) {
  /* Inline tool headers receive the OS chip after page render. Keep those in
     normal flow on phones without pulling the full-width hero chip out of
     its image. Auto heroes carry the .hero-top class. */
  #hawaii-top:not(.hero-top) .hgos-hero-add {
    position: static;
    top: auto;
    right: auto;
    display: flex;
    width: max-content;
    margin: 0 auto 14px;
  }

  .hgsi {
    margin: 22px 10px 28px;
    padding: 24px 15px;
    border-radius: 16px;
  }

  .hgsi-heading h2 {
    font-size: 25px;
  }

  .hgsi-heading > p:last-child {
    font-size: 16px;
  }

  .hgsi-scope-all .hgsi-grid,
  .hgsi-grid,
  .ig-starter-choice-grid {
    grid-template-columns: 1fr;
  }

  .hgsi-card {
    padding: 19px 17px 17px;
  }

  .ig-starter-handoff {
    align-items: stretch;
    flex-direction: column;
  }

  .ig-starter-handoff-actions {
    width: 100%;
    flex-wrap: wrap;
  }

  .ig-starter-handoff-actions .ig-btn {
    flex: 1 1 190px;
    justify-content: center;
  }

}

.ig-btn-next:disabled {
  border-color: #aeb8c2;
  background: #cfd6dd;
  color: #1f2937;
}

.ig-btn-back {
  color: #374151 !important;
}

.ig-banner-starter .ig-banner-link {
  color: #0b5139 !important;
}

.gm-progress-text,
.ig-date-count {
  color: #4b5563 !important;
}

#ig-step-content input[type="date"],
#ig-step-content input[type="date"]::-webkit-datetime-edit {
  color: #374151;
}

.ig-affiliate-disclosure,
.ig-affiliate-disclosure a {
  color: #5f6873 !important;
}

.hg-itinerary-map-image,
.hg-itinerary-map-image picture,
.hg-itinerary-map-image img {
  max-width: 100%;
  box-sizing: border-box;
}

.hg-itinerary-map-image img {
  height: auto;
}

@media (max-width: 700px) {
  /* The site-wide quick-action FAB repeatedly covers the progress label,
     island graphics, and full-width CTAs on these focused planning pages.
     Their header and footer retain direct OS, My Trip, and concierge paths. */
  .hg-mfab {
    display: none !important;
  }

  #ig-intro-text {
    display: none;
  }

  #hawaii-top:not(.hero-top) .hgos-hero-add.is-on {
    border-color: #105c4a;
    background: #105c4a;
  }

  .hg-itinerary-map-image {
    float: none !important;
    width: 100% !important;
    margin-left: 0 !important;
    padding-right: 0 !important;
    padding-left: 0 !important;
    overflow: hidden;
  }

  .ci-image-container.top-content > .small-12.columns {
    display: flex;
    flex-direction: column;
  }

  .ci-image-container.top-content .hg-itinerary-map-image {
    order: 2;
  }

  .ci-image-container.top-content .hg-itinerary-map-image + .text-container {
    order: 1;
  }
}

@supports not (color: color-mix(in srgb, #000 10%, #fff)) {
  .hgsi-days {
    background: #eef5f1;
  }
}
