/* ==========================================================================
   Sri Lanka Travel Tours — Trip Preparation
   ========================================================================== */

/* ---- Hero ---- */
.tp-hero {
  padding-block: 72px 40px;
}

.tp-hero__inner {
  max-width: 680px;
}

.tp-hero__kicker {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--slt-action);
  margin-bottom: 16px;
}

.tp-hero h1 {
  font-size: 42px;
  font-weight: 800;
  letter-spacing: -1px;
  margin: 0 0 16px;
  color: var(--slt-text-primary);
}

.tp-hero__lead {
  font-size: 1.02rem;
  line-height: 1.6;
  color: var(--slt-text-secondary);
  margin: 0 0 28px;
  max-width: 540px;
}

.tp-jump {
  display: flex;
  gap: 24px;
}

.tp-jump a {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--slt-link);
  border-bottom: 2px solid transparent;
  padding-bottom: 4px;
}

.tp-jump a:hover {
  border-bottom-color: var(--slt-link);
}

/* ---- Eyebrow (shared) ---- */
.tp-eyebrow {
  display: block;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--slt-action);
  margin-bottom: 10px;
}

/* ---- Generic section ---- */
.tp-section {
  padding-block: 64px;
  scroll-margin-top: 24px;
}

.tp-section--alt {
  background-color: var(--slt-surface-subtle);
}

.tp-section h2 {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.6px;
  margin: 0;
  color: var(--slt-text-primary);
}

.tp-section-note {
  font-size: 0.95rem;
  color: var(--slt-text-secondary);
  margin: 10px 0 32px;
  max-width: 640px;
}

/* ---- Checklist header + progress ---- */
.tp-checklist__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 36px;
}

.tp-progress {
  width: 220px;
  text-align: right;
}

.tp-progress__track {
  height: 8px;
  border-radius: var(--slt-radius-sm);
  background-color: var(--slt-border);
  overflow: hidden;
  margin-bottom: 8px;
}

.tp-progress__fill {
  height: 100%;
  width: 0%;
  border-radius: var(--slt-radius-sm);
  background-color: var(--slt-success);
  transition: width 0.25s ease;
}

.tp-progress span {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--slt-text-secondary);
}

/* ---- Timeframe groups ---- */
.tp-timeframe {
  margin-bottom: 32px;
}

.tp-timeframe h3 {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--slt-text-muted);
  margin: 0 0 12px;
}

.tp-check {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 13px 4px;
  border-top: 1px solid var(--slt-border);
  cursor: pointer;
}

.tp-timeframe .tp-check:first-of-type {
  border-top: none;
}

.tp-check input[type="checkbox"] {
  flex-shrink: 0;
  width: 19px;
  height: 19px;
  accent-color: var(--slt-action);
  cursor: pointer;
}

.tp-check span {
  font-size: 0.94rem;
  color: var(--slt-text-primary);
  line-height: 1.4;
}

.tp-check.is-checked span {
  color: var(--slt-text-muted);
  text-decoration: line-through;
}

/* ---- Packing tabs ---- */
.tp-pack-tabs {
  display: flex;
  gap: 10px;
  margin-bottom: 28px;
  flex-wrap: wrap;
}

.tp-pack-tab {
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--slt-text-secondary);
  background-color: var(--slt-surface);
  border: 1px solid var(--slt-border);
  border-radius: var(--slt-radius-sm);
  padding: 9px 18px;
  cursor: pointer;
}

.tp-pack-tab:hover {
  border-color: var(--slt-border-strong);
}

.tp-pack-tab.is-active {
  background-color: var(--slt-action);
  border-color: var(--slt-action);
  color: #fff;
}

.tp-pack-panel__note {
  font-size: 0.9rem;
  color: var(--slt-text-secondary);
  margin: 0 0 18px;
  font-style: italic;
}

.tp-pack-panel ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px 24px;
}

.tp-pack-panel li {
  position: relative;
  padding-left: 22px;
  font-size: 0.94rem;
  color: var(--slt-text-primary);
}

.tp-pack-panel li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 7px;
  width: 8px;
  height: 8px;
  border-radius: var(--slt-radius-sm);
  background-color: var(--slt-action);
}

/* ---- Quick reference cards ---- */
.tp-ref-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.tp-ref-card {
  border: 1px solid var(--slt-border);
  border-radius: var(--slt-radius-sm);
  padding: 22px;
}

.tp-ref-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: var(--slt-radius-sm);
  background-color: var(--slt-blue-50);
  color: var(--slt-action);
  margin-bottom: 16px;
}

.tp-ref-card__icon svg {
  width: 20px;
  height: 20px;
}

.tp-ref-card h3 {
  font-size: 1rem;
  font-weight: 700;
  margin: 0 0 10px;
  color: var(--slt-text-primary);
}

.tp-ref-card p {
  font-size: 0.88rem;
  line-height: 1.55;
  color: var(--slt-text-secondary);
  margin: 0 0 14px;
}

.tp-ref-card a {
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--slt-link);
}

.tp-ref-card a:hover {
  color: var(--slt-link-hover);
}

/* ---- Closing CTA ---- */
.tp-cta {
  background-color: var(--slt-slate-600);
  padding-block: 48px;
}

.tp-cta__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.tp-cta h2 {
  color: #fff;
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.5px;
  margin: 0 0 6px;
}

.tp-cta p {
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.95rem;
  margin: 0;
}

.tp-btn {
  display: inline-block;
  flex-shrink: 0;
  font-size: 0.9rem;
  font-weight: 700;
  padding: 13px 26px;
  border-radius: var(--slt-radius-sm);
  white-space: nowrap;
}

.tp-btn--primary {
  background-color: var(--slt-action);
  color: var(--slt-white);
}

.tp-btn--primary:hover {
  background-color: var(--slt-action-hover);
}

/* ==========================================================================
   Breakpoints
   ========================================================================== */

@media (max-width: 991.98px) {
  .tp-hero h1 {
    font-size: 32px;
  }

  .tp-checklist__head {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  .tp-progress {
    width: 100%;
    text-align: left;
  }

  .tp-ref-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 575.98px) {
  .tp-hero {
    padding-block: 48px 32px;
  }

  .tp-hero h1 {
    font-size: 1.6rem;
    letter-spacing: -0.5px;
  }

  .tp-jump {
    flex-wrap: wrap;
    gap: 12px 20px;
  }

  .tp-section {
    padding-block: 48px;
  }

  .tp-pack-panel ul {
    grid-template-columns: 1fr;
  }

  .tp-ref-grid {
    grid-template-columns: 1fr;
  }

  .tp-cta__inner {
    flex-direction: column;
    align-items: flex-start;
  }
}
