/* The stay pages: accommodation.html and accommodation/*.html. Markup from
   scripts/lib/stay-pages.mjs, on the trip pages' layout (assets/trip.css),
   in the same visual language: Poppins for reading text, navy #0F1F63 at
   weight 600 for names and links, white cards with a 1px slate border and a
   12px radius, teal for small accents. */

.tc-st {
  --st-teal-tint: #e6f7f5;
  --st-teal-ink: #0b6b5f;
}

.tc-st__sechead {
  flex-direction: column;
  align-items: flex-start;
}

.tc-st__lede {
  color: var(--tp-muted);
  line-height: 1.6;
}

.tc-st__small {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  margin-top: 1rem !important;
  color: var(--tp-muted);
  font-size: 0.875rem;
  line-height: 1.55;
}

.tc-st__small .tc-tp__icon {
  margin-top: 0.15rem;
}

/* --- The places you stay (accommodation.html) ---------------------------- */

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

.tc-st__card {
  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);
  transition: box-shadow 0.2s ease;
}

.tc-st__card:hover {
  box-shadow: 0 14px 32px -14px rgba(15, 31, 99, 0.3);
}

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

/* Fills the box whatever the photo's shape, so the text sets the height. */
.tc-st__cardmedia img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.tc-st__card:hover .tc-st__cardmedia img {
  transform: scale(1.04);
}

.tc-st__cardbody {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 1.25rem 1.25rem 1.1rem;
}

@media (min-width: 768px) {
  .tc-st__card {
    grid-template-columns: 22rem minmax(0, 1fr);
  }

  .tc-st__cardmedia {
    aspect-ratio: auto;
    min-height: 15rem;
  }

  .tc-st__cardbody {
    padding: 1.5rem 1.75rem;
  }
}

.tc-st__cardplace {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--st-teal-ink);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.tc-st__cardplace .tc-tp__icon {
  width: 0.95rem;
  height: 0.95rem;
}

.tc-st__cardname {
  font-size: 1.3rem;
  font-weight: 600;
  line-height: 1.3;
}

.tc-st__cardname a {
  color: var(--tp-navy);
  text-decoration: none;
}

.tc-st__cardname a:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.tc-st__cardtext {
  color: var(--tp-text);
  font-size: 0.9375rem;
  line-height: 1.65;
}

.tc-st__cardfacts {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  margin: 0.25rem 0 0;
  padding: 0;
  list-style: none;
  color: var(--tp-ink);
  font-size: 0.875rem;
}

.tc-st__cardfacts li {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.tc-st__cardfacts .tc-tp__icon {
  color: var(--tp-navy);
}

.tc-st__more {
  display: inline-flex;
  align-self: flex-start;
  align-items: center;
  gap: 0.4rem;
  min-height: 2.75rem;
  margin-top: auto;
  color: var(--tp-navy);
  font-size: 0.9375rem;
  font-weight: 600;
  text-decoration: none;
}

.tc-st__more:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.tc-st__more:hover .tc-tp__arrow,
.tc-st__btn:hover .tc-tp__arrow {
  transform: translateX(3px);
}

/* --- Night by night (accommodation.html) ---------------------------------
   One bar per trip, one segment per stay, as wide as its nights. On narrow
   screens segments wrap onto more lines rather than shrink below their
   label. */

.tc-st__nights {
  display: grid;
  gap: 1rem;
  margin: 0;
  padding: 1.25rem;
  border: 1px solid var(--tp-line);
  border-radius: 0.75rem;
  background: #fff;
  list-style: none;
}

@media (min-width: 768px) {
  .tc-st__nights {
    padding: 1.5rem 1.75rem;
  }
}

.tc-st__night + .tc-st__night {
  padding-top: 1rem;
  border-top: 1px solid var(--tp-line);
}

.tc-st__nighthead {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.25rem 1rem;
  margin-bottom: 0.6rem;
}

.tc-st__nighttrip {
  color: var(--tp-navy);
  font-weight: 600;
  text-decoration: none;
}

.tc-st__nighttrip:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.tc-st__nightlen {
  color: var(--tp-muted);
  font-size: 0.8125rem;
}

.tc-st__bar {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.tc-st__seg {
  flex: var(--n) 1 0;
  min-width: 5.25rem;
}

.tc-st__seg > a,
.tc-st__seg > span {
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 100%;
  min-height: 2.9rem;
  padding: 0.35rem 0.65rem;
  border-radius: 0.375rem;
  background: var(--seg-bg, #f1f5f9);
  color: var(--seg-ink, var(--tp-ink));
  text-decoration: none;
  transition: filter 0.15s ease;
}

.tc-st__seg > a:hover {
  filter: brightness(0.95);
}

.tc-st__segname {
  font-size: 0.8125rem;
  font-weight: 600;
  line-height: 1.3;
}

.tc-st__segn {
  font-size: 0.75rem;
  line-height: 1.3;
  opacity: 0.85;
}

.tc-st__seg[data-stay="luwuk"] {
  --seg-bg: #0f1f63;
  --seg-ink: #fff;
}

.tc-st__seg[data-stay="malenge"] {
  --seg-bg: #ccf5f0;
  --seg-ink: #0b5a50;
}

.tc-st__seg[data-stay="kadidiri"] {
  --seg-bg: #dbe7ff;
  --seg-ink: #1e3a8a;
}

.tc-st__seg[data-stay="bomba"] {
  --seg-bg: #fde7c7;
  --seg-ink: #7a4a07;
}

.tc-st__seg[data-stay="una-una"] {
  --seg-bg: #e5e7eb;
  --seg-ink: #374151;
}

/* --- What to expect ------------------------------------------------------ */

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

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

/* The hub page has the full width: three across. */
@media (min-width: 1024px) {
  .tc-st > .tc-tp__wrap > .tc-tp__section .tc-st__expect {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.tc-st__expect li {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  padding: 1.1rem 1.15rem;
  border: 1px solid var(--tp-line);
  border-radius: 0.75rem;
  background: #fff;
}

.tc-st__expicon {
  display: inline-flex;
  flex: none;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 9999px;
  background: var(--st-teal-tint);
  color: var(--st-teal-ink);
}

.tc-st__expicon .tc-tp__icon {
  width: 1.15rem;
  height: 1.15rem;
}

.tc-st__exptitle {
  color: var(--tp-navy);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.4;
}

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

/* --- On our trips (stay pages) ------------------------------------------- */

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

.tc-st__trips li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.5rem 1.25rem;
  padding: 1rem 1.15rem;
  border: 1px solid var(--tp-line);
  border-radius: 0.75rem;
  background: #fff;
}

.tc-st__tripmain {
  grid-column: 1 / -1;
}

@media (min-width: 640px) {
  .tc-st__trips li {
    grid-template-columns: minmax(0, 1fr) auto auto;
  }

  .tc-st__tripmain {
    grid-column: auto;
  }
}

.tc-st__tripname {
  margin-top: 0.2rem !important;
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.35;
}

.tc-st__tripname a {
  color: var(--tp-navy);
  text-decoration: none;
}

.tc-st__tripname a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.tc-st__tripnights {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.3rem 0.7rem;
  border-radius: 9999px;
  background: var(--st-teal-tint);
  color: var(--st-teal-ink);
  font-size: 0.8125rem;
  font-weight: 600;
  white-space: nowrap;
}

.tc-st__tripnights .tc-tp__icon {
  width: 0.95rem;
  height: 0.95rem;
}

.tc-st__tripprice {
  color: var(--tp-muted);
  font-size: 0.875rem;
  text-align: right;
  white-space: nowrap;
}

.tc-st__tripprice b {
  color: var(--tp-navy);
  font-size: 1rem;
  font-weight: 600;
}

/* --- The island (stay pages) --------------------------------------------- */

.tc-st__island {
  display: grid;
  overflow: hidden;
  border: 1px solid var(--tp-line);
  border-radius: 0.75rem;
  background: #fff;
}

@media (min-width: 640px) {
  .tc-st__island {
    grid-template-columns: 15rem minmax(0, 1fr);
  }
}

.tc-st__islandimg {
  display: block;
  min-height: 12rem;
  background: var(--tp-line);
}

.tc-st__islandimg img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.tc-st__islandbody {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  padding: 1.25rem;
  color: var(--tp-text);
  font-size: 0.9375rem;
  line-height: 1.6;
}

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

.tc-st__islandk {
  margin-top: 0.5rem !important;
  color: var(--tp-muted);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.tc-st__links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.tc-st__links a {
  display: inline-flex;
  align-items: center;
  min-height: 2.25rem;
  padding: 0.25rem 0.8rem;
  border: 1px solid var(--tp-line);
  border-radius: 9999px;
  color: var(--tp-navy);
  font-size: 0.8125rem;
  text-decoration: none;
  transition: border-color 0.15s ease, background-color 0.15s ease;
}

.tc-st__links a:hover {
  border-color: #cbd5e1;
  background: var(--tp-tint);
}

.tc-st__islandbody .tc-tp__how {
  margin-top: 0.5rem;
}

/* --- Booking panel (stay pages) ------------------------------------------ */

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

.tc-st__asidetrips {
  display: grid;
  gap: 0.35rem;
  margin: 0.25rem 0;
  padding: 0.75rem 0;
  border-top: 1px solid var(--tp-line);
  border-bottom: 1px solid var(--tp-line);
  list-style: none;
  font-size: 0.875rem;
}

.tc-st__asidetrips li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}

.tc-st__asidetrips a {
  color: var(--tp-ink);
  text-decoration: none;
}

.tc-st__asidetrips a:hover {
  color: var(--tp-navy);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.tc-st__asidetrips span {
  color: var(--tp-muted);
  white-space: nowrap;
}

/* --- Other places you stay ----------------------------------------------- */

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

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

/* --- Call to action (accommodation.html) --------------------------------- */

.tc-st__cta {
  display: grid;
  gap: 1.25rem;
  margin-top: 4rem;
  padding: 1.75rem 1.5rem;
  border-radius: 0.75rem;
  background: #0f1f63 linear-gradient(120deg, #0f1f63 0%, #16328a 60%, #0e5f86 100%);
  color: #e2e8f0;
}

@media (min-width: 768px) {
  .tc-st__cta {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    margin-top: 5rem;
    padding: 2.25rem 2.5rem;
  }
}

.tc-st__ctatitle {
  color: #fff;
  font-family: avenir, Poppins, sans-serif;
  font-size: clamp(1.3rem, 1.1rem + 0.8vw, 1.65rem);
  font-weight: 700;
  line-height: 1.25;
  text-transform: uppercase;
}

.tc-st__cta p {
  max-width: 36rem;
  margin-top: 0.4rem !important;
  font-size: 0.975rem;
  line-height: 1.6;
}

.tc-st__ctaactions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.tc-st__btn,
.tc-st .tc-st__wa {
  display: inline-flex;
  flex: 1 1 auto;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 2.75rem;
  padding: 0.5rem 1.15rem;
  border-radius: 6px;
  font-size: 0.9375rem;
  font-weight: 500;
  line-height: 1.25;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 0.15s ease;
}

.tc-st__btn {
  background: #fff;
  color: var(--tp-navy);
  font-weight: 600;
}

.tc-st__btn:hover {
  background: #e2e8f0;
}

.tc-st .tc-st__wa {
  background: #25d366;
  color: #fff;
}

.tc-st .tc-st__wa:hover {
  background: #1da851;
}

.tc-st__cta a:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  .tc-st__cardmedia img,
  .tc-st__card {
    transition: none;
  }
}
