/* The guide pages under Explore (destinations, activities, wildlife, local
   community, the boat, safety, how to book). Markup from
   scripts/lib/guide-pages.mjs; they sit on the stay pages' layout
   (assets/trip.css + assets/stay.css) and add only the blocks below: white
   cards with a 1px slate border and a 12px radius, navy titles, teal accents. */

/* A card or tile with no photo in the library: a soft sea tint, not a gap. */
.tc-gd__nomedia {
  background: linear-gradient(135deg, var(--st-teal-tint), #dbeafe);
}

/* --- Check lists --------------------------------------------------------- */

.tc-gd__checks {
  display: grid;
  gap: 0.6rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.tc-gd__checks li {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  color: var(--tp-text);
  font-size: 0.9375rem;
  line-height: 1.6;
}

.tc-gd__checks .tc-tp__tick {
  flex: none;
  width: 1.25rem;
  height: 1.25rem;
  margin-top: 0.1rem;
  padding: 0.2rem;
  border-radius: 9999px;
  background: var(--st-teal-tint);
  color: var(--st-teal-ink);
}

.tc-gd__checks + .tc-st__trips {
  margin-top: 1.25rem;
}

/* --- Highlights: a small label above the title --------------------------- */

.tc-gd__tag {
  margin-bottom: 0.2rem !important;
  color: var(--st-teal-ink);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* --- Signature moment ---------------------------------------------------- */

.tc-gd__quote {
  position: relative;
  margin: 1rem 0 0;
  padding: 1.35rem 1.5rem 1.35rem 3.75rem;
  border-radius: 0.75rem;
  background: var(--tp-navy);
  color: #fff;
}

.tc-gd__quote .tc-tp__icon {
  position: absolute;
  top: 1.35rem;
  left: 1.35rem;
  width: 1.5rem;
  height: 1.5rem;
  color: var(--tp-teal);
}

.tc-gd__quotek {
  color: var(--tp-teal);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.tc-gd__quote p + p {
  margin-top: 0.4rem !important;
  font-size: 1rem;
  line-height: 1.65;
}

/* --- At a glance / key facts --------------------------------------------- */

.tc-gd__facts {
  display: grid;
  gap: 0.75rem;
  margin: 0;
}

@media (min-width: 640px) {
  .tc-gd__facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.tc-gd__facts > div {
  padding: 1rem 1.15rem;
  border: 1px solid var(--tp-line);
  border-radius: 0.75rem;
  background: #fff;
}

.tc-gd__facts dt {
  color: var(--tp-muted);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.tc-gd__facts dd {
  margin: 0.3rem 0 0;
  color: var(--tp-ink);
  font-size: 0.9375rem;
  line-height: 1.55;
}

/* --- Good to know -------------------------------------------------------- */

.tc-gd__note {
  padding: 1.25rem 1.35rem;
  border: 1px solid #c8ece7;
  border-radius: 0.75rem;
  background: var(--st-teal-tint);
}

.tc-gd__notetitle {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.75rem !important;
  color: var(--st-teal-ink);
  font-size: 0.875rem;
  font-weight: 600;
}

.tc-gd__notetitle .tc-tp__icon {
  width: 1.1rem;
  height: 1.1rem;
}

.tc-gd__note .tc-gd__checks .tc-tp__tick {
  background: #fff;
}

.tc-gd__note > p:not(.tc-gd__notetitle) {
  color: var(--tp-text);
  font-size: 0.9375rem;
  line-height: 1.6;
}

.tc-gd__note a {
  color: var(--tp-navy);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* --- Questions (the .tc-faq markup feeds the FAQPage data) --------------- */

.tc-gd .tc-faq {
  display: grid;
  gap: 0.75rem;
  overflow: visible;
  border: 0;
  border-radius: 0;
}

@media (min-width: 768px) {
  .tc-gd .tc-faq {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  /* An odd last question takes the full row rather than half of it. */
  .tc-gd .tc-faq > div:last-child:nth-child(odd) {
    grid-column: 1 / -1;
  }
}

.tc-gd .tc-faq > div,
.tc-gd .tc-faq > div:first-child {
  padding: 1.1rem 1.2rem;
  border: 1px solid var(--tp-line);
  border-radius: 0.75rem;
  background: #fff;
}

.tc-gd .tc-faq h3 {
  margin: 0 0 0.4rem;
  color: var(--tp-navy);
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.4;
}

.tc-gd .tc-faq p {
  margin: 0;
  color: var(--tp-text);
  font-size: 0.9375rem;
  line-height: 1.6;
}

/* --- Plan your visit: the page's links as pills -------------------------- */

.tc-gd__related {
  display: grid;
  gap: 1rem;
  padding: 1.25rem 1.35rem;
  border: 1px solid var(--tp-line);
  border-radius: 0.75rem;
  background: #fff;
}

.tc-gd__related .tc-st__islandk {
  margin: 0 0 0.5rem !important;
}

/* --- Small cards (species) ----------------------------------------------- */

.tc-gd__tiles {
  display: grid;
  gap: 1.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

@media (min-width: 640px) {
  .tc-gd__tiles {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .tc-gd__tiles {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.tc-gd__tiles .tc-tp__otherbody {
  padding: 1rem 1.15rem 1.25rem;
}

.tc-gd__tiles .tc-tp__othername {
  font-size: 1rem;
}

.tc-gd__tiles .tc-tp__otherdesc {
  font-size: 0.875rem;
}

/* --- Wildlife hub: sea and land ------------------------------------------ */

.tc-gd__group + .tc-gd__group {
  margin-top: 2.5rem;
}

.tc-gd__grouphead {
  max-width: 44rem;
  margin-bottom: 1rem;
}

.tc-gd__grouptitle {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--tp-navy);
  font-size: 1.125rem;
  font-weight: 600;
}

.tc-gd__grouptitle .tc-tp__icon {
  width: 2.25rem;
  height: 2.25rem;
  padding: 0.5rem;
  border-radius: 9999px;
  background: var(--st-teal-tint);
  color: var(--st-teal-ink);
}

.tc-gd__grouphead p {
  margin-top: 0.4rem !important;
  color: var(--tp-muted);
  font-size: 0.9375rem;
  line-height: 1.6;
}

.tc-gd__group .tc-tp__more,
.tc-gd #more .tc-tp__more {
  margin-top: 1rem;
}

/* --- Safety & Experience: photo and text, alternating -------------------- */

.tc-gd__rows {
  display: grid;
  gap: 1.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.tc-gd__row {
  display: grid;
  overflow: hidden;
  border: 1px solid var(--tp-line);
  border-radius: 0.75rem;
  background: #fff;
  box-shadow: 0 1px 2px rgba(15, 31, 99, 0.06);
}

.tc-gd__rowimg {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--tp-line);
}

.tc-gd__rowimg img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.tc-gd__rowbody {
  align-self: center;
  padding: 1.5rem;
}

.tc-gd__rowtitle {
  color: var(--tp-navy);
  font-size: 1.25rem;
  font-weight: 600;
}

.tc-gd__rowbody p {
  margin-top: 0.5rem !important;
  color: var(--tp-text);
  font-size: 0.9375rem;
  line-height: 1.7;
}

@media (min-width: 768px) {
  .tc-gd__row {
    grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  }

  .tc-gd__row:nth-child(even) .tc-gd__rowimg {
    order: 2;
  }

  .tc-gd__row--solo {
    grid-template-columns: 1fr;
  }

  .tc-gd__rowimg {
    aspect-ratio: auto;
    min-height: 16rem;
  }

  .tc-gd__rowbody {
    padding: 2rem 2.25rem;
  }
}

/* --- A link set as a card (The Boat -> Safety & Experience) -------------- */

.tc-gd__link {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 1.1rem 1.25rem;
  border: 1px solid var(--tp-line);
  border-radius: 0.75rem;
  background: #fff;
  color: var(--tp-navy);
  font-weight: 600;
  text-decoration: none;
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.tc-gd__link:hover {
  border-color: #cbd5e1;
  box-shadow: 0 14px 32px -14px rgba(15, 31, 99, 0.3);
}

.tc-gd__link > .tc-tp__icon {
  flex: none;
  width: 2.5rem;
  height: 2.5rem;
  padding: 0.6rem;
  border-radius: 9999px;
  background: var(--st-teal-tint);
  color: var(--st-teal-ink);
}

.tc-gd__link > span {
  flex: 1;
}

/* --- How to Book: the contact buttons ------------------------------------ */

.tc-gd__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.25rem;
}

.tc-gd__actions .tc-st__btn {
  border: 1px solid var(--tp-navy);
  background: #fff;
  color: var(--tp-navy);
}

.tc-gd__actions .tc-st__btn .tc-tp__icon {
  width: 1.1rem;
  height: 1.1rem;
}

@media (prefers-reduced-motion: reduce) {
  .tc-gd__link {
    transition: none;
  }
}

/* --- No photo in the library --------------------------------------------- */

/* A hero with no photo: the navy panel, shorter, since nothing fills it. */
.tc-gd__heroplain {
  min-height: clamp(14rem, 22vw, 18rem);
  background: linear-gradient(135deg, var(--tp-navy) 0%, #12407a 100%);
}

/* A tile with no photo shows the group's icon (waves, leaf) instead. */
.tc-gd__nomedia {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--st-teal-ink);
}

.tc-gd__nomedia .tc-tp__icon {
  width: 2.5rem;
  height: 2.5rem;
  opacity: 0.45;
}

/* Two points only (How to Book's channels): two across, even at full width. */
@media (min-width: 640px) {
  .tc-st > .tc-tp__wrap > .tc-tp__section .tc-st__expect.tc-gd__two {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
