/* =========================================================================
   DURATION-BASED PACKAGES WITH ITINERARY — partials/homePage/durationPackagesSection
   Inside priceSection, after "Packages by Traveller". Uses --pt-* tokens.
   ========================================================================= */
.dp {
  margin-top: 80px;
  text-align: left;
}

.dp-head {
  max-width: 900px;
  margin: 0 auto 28px;
  text-align: center;
}

.dp-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 16px;
  border-radius: var(--pt-radius-pill);
  background: rgba(28, 130, 150, 0.1);
  color: var(--pt-teal-600);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
}

.dp-head h3 {
  margin: 14px 0 12px;
  color: var(--pt-ink);
  font-size: 32px;
  font-weight: 800;
  line-height: 1.2;
}

.dp-head p {
  margin: 0;
  color: var(--pt-slate);
  font-size: 15px;
  line-height: 1.85;
}

.dp .dp-start {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  padding: 8px 16px;
  border-radius: var(--pt-radius-pill);
  background: #fff;
  border: 1px solid rgba(10, 26, 47, 0.08);
  color: var(--pt-ink);
  font-size: 13.5px;
  font-weight: 600;
}

.dp-start i {
  color: var(--pt-gold-dark);
}

/* ---- Duration tabs ---- */
.dp-tabs {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-bottom: 28px;
  overflow-x: auto;
  scrollbar-width: none;
}

.dp-tabs::-webkit-scrollbar {
  display: none;
}

.dp-tab {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 120px;
  padding: 12px 20px;
  border: 1.5px solid rgba(10, 26, 47, 0.1);
  border-radius: 18px;
  background: #fff;
  color: var(--pt-ink);
  cursor: pointer;
  transition: background 0.3s var(--pt-ease), border-color 0.3s var(--pt-ease), color 0.3s var(--pt-ease);
}

.dp-tab strong {
  font-size: 17px;
  font-weight: 800;
}

.dp-tab span {
  color: var(--pt-slate);
  font-size: 11.5px;
  font-weight: 600;
}

.dp-tab:hover {
  border-color: var(--pt-gold);
}

.dp-tab:focus-visible {
  outline: 2px solid var(--pt-gold);
  outline-offset: 2px;
}

.dp-tab.is-active {
  background: var(--pt-ink);
  border-color: var(--pt-ink);
  color: #fff;
}

.dp-tab.is-active strong {
  color: var(--pt-gold);
}

.dp-tab.is-active span {
  color: rgba(255, 255, 255, 0.7);
}

/* ---- Panel ---- */
.dp-panel[hidden] {
  display: none;
}

.dp-panel.is-active {
  animation: dpFade 0.45s var(--pt-ease);
}

@keyframes dpFade {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}

.dp-panel-intro {
  max-width: 880px;
  margin-bottom: 22px;
}

.dp-panel-intro h4 {
  margin: 0 0 8px;
  color: var(--pt-ink);
  font-size: 24px;
  font-weight: 800;
}

.dp-panel-intro p {
  margin: 0;
  color: var(--pt-slate);
  font-size: 15px;
  line-height: 1.8;
}

.dp .dp-options-title {
  margin: 0 0 14px;
  color: var(--pt-ink);
  font-size: 17px;
  font-weight: 800;
}

/* ---- Itinerary table ---- */
.dp-table-card {
  margin-bottom: 22px;
  overflow: hidden;
  border-radius: 26px;
  background: #fff;
  border: 1px solid rgba(10, 26, 47, 0.07);
  box-shadow: var(--pt-shadow-md);
}

.dp-table {
  width: 100%;
  border-collapse: collapse;
}

.dp-table thead th {
  padding: 16px 20px;
  background: linear-gradient(160deg, var(--pt-navy-950), var(--pt-navy-800));
  color: rgba(255, 255, 255, 0.75);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
  text-align: left;
  text-transform: uppercase;
}

.dp-table thead .dp-col-deluxe {
  color: var(--pt-gold-light);
}

.dp-table tbody th,
.dp-table tbody td {
  padding: 22px 20px;
  border-bottom: 1px solid rgba(10, 26, 47, 0.07);
  vertical-align: top;
  text-align: left;
}

.dp-table tbody tr:last-child > * {
  border-bottom: 0;
}

.dp-table tbody tr {
  transition: background 0.3s var(--pt-ease);
}

.dp-table tbody tr:hover {
  background: #fafcfe;
}

.dp-col-pkg {
  width: 250px;
}

.dp-col-price {
  width: 170px;
}

/* package cell */
.dp-pkg {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.dp-pkg img {
  flex: 0 0 64px;
  width: 64px;
  height: 64px;
  border-radius: 16px;
  object-fit: cover;
  box-shadow: var(--pt-shadow-sm);
}

.dp-pkg > div {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.dp-pkg-num {
  color: var(--pt-gold-dark);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.8px;
  text-transform: uppercase;
}

.dp-pkg-name {
  color: var(--pt-ink);
  font-size: 16px;
  font-weight: 800;
  line-height: 1.3;
}

.dp-pkg-dur {
  color: var(--pt-slate);
  font-size: 12px;
  font-weight: 600;
}

.dp-pkg-dur i {
  margin-right: 3px;
}

/* itinerary cell */
.dp-days {
  position: relative;
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.dp-days::before {
  content: "";
  position: absolute;
  top: 12px;
  bottom: 12px;
  left: 27px;
  border-left: 2px dashed rgba(248, 182, 0, 0.55);
}

.dp-days li {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.dp-day {
  position: relative;
  flex: 0 0 56px;
  padding: 3px 0;
  border-radius: var(--pt-radius-pill);
  background: var(--pt-ink);
  color: var(--pt-gold-light);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.4px;
  text-align: center;
  text-transform: uppercase;
}

.dp-day-text {
  color: var(--pt-ink);
  font-size: 14px;
  line-height: 1.55;
}

.dp-day-opt {
  display: flex;
  align-items: center;
  gap: 5px;
  width: fit-content;
  margin-top: 5px;
  padding: 2px 9px;
  border-radius: var(--pt-radius-pill);
  background: rgba(28, 130, 150, 0.1);
  color: var(--pt-teal-700);
  font-size: 12px;
  font-weight: 600;
}

.dp-day-opt i {
  color: var(--pt-teal-500);
}

/* show / hide long itineraries */
.dp-days.is-collapsible:not(.is-expanded) .dp-day-extra {
  display: none;
}

.dp-days.is-collapsible:not(.is-expanded) li:nth-child(3) .dp-day-text {
  -webkit-mask-image: linear-gradient(180deg, #000 40%, transparent);
  mask-image: linear-gradient(180deg, #000 40%, transparent);
}

.dp-days.is-expanded .dp-day-extra {
  animation: dpDayIn 0.35s var(--pt-ease) both;
}

@keyframes dpDayIn {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: none; }
}

.dp-days-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 12px 0 0 68px;
  padding: 7px 14px;
  border: 1.5px solid rgba(10, 26, 47, 0.12);
  border-radius: var(--pt-radius-pill);
  background: #fff;
  color: var(--pt-ink);
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.25s var(--pt-ease), border-color 0.25s var(--pt-ease), color 0.25s var(--pt-ease);
}

.dp-days-toggle i {
  transition: transform 0.3s var(--pt-ease);
}

.dp-days-toggle:hover {
  border-color: var(--pt-gold);
  background: rgba(248, 182, 0, 0.1);
}

.dp-days-toggle:focus-visible {
  outline: 2px solid var(--pt-gold);
  outline-offset: 2px;
}

.dp-days-toggle[aria-expanded="true"] i {
  transform: rotate(180deg);
}

/* price cells */
.dp-price {
  display: flex;
  flex-direction: column;
  padding: 14px 16px;
  border-radius: 16px;
  background: #f5f8fb;
  border: 1px solid rgba(10, 26, 47, 0.06);
}

.dp-price-deluxe {
  background: linear-gradient(145deg, #fff7e0, #fff);
  border-color: rgba(248, 182, 0, 0.45);
}

.dp-price strong {
  color: var(--pt-ink);
  font-size: 20px;
  font-weight: 800;
  line-height: 1.3;
  white-space: nowrap;
}

.dp-price-note {
  color: var(--pt-slate);
  font-size: 11.5px;
}

.dp .dp-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: var(--pt-radius-pill);
  background: var(--pt-gold);
  color: var(--pt-ink);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  transition: background 0.25s var(--pt-ease);
}

.dp .dp-btn:hover,
.dp .dp-btn:focus {
  background: var(--pt-gold-dark);
  color: var(--pt-ink);
}

/* ---- Note / CTA ---- */
.dp-note {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 26px;
  border-radius: 22px;
  background: linear-gradient(120deg, var(--pt-gold-light), var(--pt-gold));
  box-shadow: var(--pt-shadow-gold);
}

.dp-note-copy {
  display: flex;
  align-items: center;
  gap: 14px;
}

.dp-note-icon {
  flex: 0 0 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 44px;
  border-radius: 50%;
  background: var(--pt-ink);
  color: var(--pt-gold-light);
  font-size: 18px;
}

.dp-note p {
  margin: 0;
  color: var(--pt-ink);
  font-size: 14.5px;
  font-weight: 500;
  line-height: 1.65;
}

.dp .dp-note-btn {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: var(--pt-radius-pill);
  background: var(--pt-ink);
  color: #fff;
  font-size: 13.5px;
  font-weight: 700;
  text-decoration: none;
  transition: background 0.25s var(--pt-ease), transform 0.25s var(--pt-ease);
}

.dp .dp-note-btn:hover,
.dp .dp-note-btn:focus {
  background: var(--pt-navy-700);
  color: #fff;
  transform: translateY(-2px);
}

/* ---- Responsive ---- */
@media (max-width: 1199px) {
  .dp-col-pkg {
    width: 210px;
  }

  .dp-col-price {
    width: 150px;
  }
}

@media (max-width: 991px) {
  .dp-note {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 767px) {
  .dp {
    margin-top: 56px;
  }

  .dp-head h3 {
    font-size: 24px;
  }

  .dp-tabs {
    justify-content: flex-start;
  }

  /* table → stacked blocks on phones */
  .dp-table,
  .dp-table tbody,
  .dp-table tr,
  .dp-table th,
  .dp-table td {
    display: block;
    width: auto;
  }

  .dp-table thead {
    display: none;
  }

  .dp-table tbody tr {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    padding: 18px 16px;
    border-bottom: 1px solid rgba(10, 26, 47, 0.08);
  }

  .dp-table tbody tr:last-child {
    border-bottom: 0;
  }

  .dp-table tbody th,
  .dp-table tbody td {
    padding: 0;
    border: 0;
  }

  .dp-table tbody th,
  .dp-table tbody td:nth-of-type(1) {
    grid-column: 1 / -1;
  }

  .dp-table tbody th {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
  }

  .dp-pkg {
    margin-bottom: 0;
  }

  .dp-table tbody td:nth-of-type(1) {
    margin: 6px 0;
  }

  .dp-col-price::before {
    content: attr(data-label);
    display: block;
    margin-bottom: 4px;
    color: var(--pt-slate);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.8px;
    text-transform: uppercase;
  }

  .dp-price {
    padding: 10px 12px;
  }

  .dp-price strong {
    font-size: 17px;
  }

  .dp-note {
    padding: 20px 18px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .dp-panel.is-active {
    animation: none;
  }
}
