/* packages.css - public Packages listing (card grid + filters) and single
   package / itinerary page. Self-contained like blog.css: relies only on the
   global --DT* tokens and .container so it sits alongside the legacy theme
   CSS without touching it. */

.pkg-hero-spacer { height: 40px; }

/* ================================================================
   Listing: toolbar + card grid
   ================================================================ */

.pkg-listing { padding: 0 0 70px; }

.pkg-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 0 0 32px;
}
.pkg-toolbar-count { font-size: 14px; color: #948d8d; }
.pkg-toolbar-count strong { color: var(--DTSecondaryColor, #10221b); }
.pkg-filter-clear {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  margin-left: 6px;
  border-radius: 50%;
  background: #f0ece7;
  color: var(--DTSecondaryColor, #10221b);
  text-decoration: none;
  font-size: 15px;
  line-height: 1;
}
.pkg-filter-clear:hover { background: var(--DTPrimaryColor, #f29727); color: #fff; }

.pkg-filter-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.pkg-filter-pill {
  display: inline-block;
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid #e3ded8;
  background: #fff;
  color: var(--DTSecondaryColor, #10221b);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: all .2s ease;
}
.pkg-filter-pill:hover { border-color: var(--DTPrimaryColor, #f29727); color: var(--DTPrimaryColor, #f29727); }
.pkg-filter-pill.is-active {
  background: var(--DTSecondaryColor, #10221b);
  border-color: var(--DTSecondaryColor, #10221b);
  color: #fff;
}

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

.pkg-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 2px 18px rgba(16, 34, 27, 0.07);
  transition: transform .25s ease, box-shadow .25s ease;
  height: 100%;
}
.pkg-card:hover { transform: translateY(-4px); box-shadow: 0 12px 32px rgba(16, 34, 27, 0.12); }

.pkg-card-media {
  position: relative;
  display: block;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #ece7e2;
}
.pkg-card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.pkg-card:hover .pkg-card-media img { transform: scale(1.06); }

.pkg-card-duration,
.pkg-card-category {
  position: absolute;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  padding: 6px 12px;
  border-radius: 999px;
  line-height: 1;
}
.pkg-card-duration {
  left: 14px;
  bottom: 14px;
  background: rgba(16, 34, 27, 0.85);
  color: #fff;
  backdrop-filter: blur(4px);
}
.pkg-card-duration i { color: var(--DTPrimaryColor, #f29727); margin-right: 2px; }
.pkg-card-category {
  top: 14px;
  left: 14px;
  background: var(--DTPrimaryColor, #f29727);
  color: #fff;
}

.pkg-card-body { padding: 20px 22px 22px; display: flex; flex-direction: column; flex: 1; }

.pkg-card-location {
  font-size: 12px;
  color: #948d8d;
  margin-bottom: 8px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.pkg-card-location i { color: var(--DTPrimaryColor, #f29727); }

.pkg-card-title { font-size: 19px; line-height: 1.35; margin: 0 0 10px; font-weight: 600; }
.pkg-card-title a { color: var(--DTSecondaryColor, #10221b); text-decoration: none; }
.pkg-card-title a:hover { color: var(--DTPrimaryColor, #f29727); }

.pkg-card-summary { color: #6d6666; font-size: 14px; line-height: 1.6; margin: 0 0 18px; flex: 1; }

.pkg-card-footer {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid #f0ece7;
}
.pkg-card-price { display: flex; flex-direction: column; line-height: 1.2; }
.pkg-card-price-label { font-size: 11px; text-transform: uppercase; letter-spacing: .05em; color: #948d8d; }
.pkg-card-price strong { font-size: 20px; color: var(--DTSecondaryColor, #10221b); }
.pkg-card-price-note { font-size: 11.5px; color: #948d8d; }

.pkg-card-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 700;
  color: var(--DTSecondaryColor, #10221b);
  text-decoration: none;
  white-space: nowrap;
}
.pkg-card-cta i { transition: transform .2s ease; font-size: 11px; }
.pkg-card-cta:hover { color: var(--DTPrimaryColor, #f29727); }
.pkg-card-cta:hover i { transform: translateX(3px); }

.pkg-empty-state {
  background: #fff;
  border-radius: 14px;
  padding: 56px 24px;
  text-align: center;
  color: #6d6666;
  box-shadow: 0 2px 18px rgba(16, 34, 27, 0.07);
}
.pkg-empty-state i { font-size: 40px; color: var(--DTPrimaryColor, #f29727); margin-bottom: 14px; display: block; }
.pkg-empty-title { font-size: 18px; color: var(--DTSecondaryColor, #10221b); font-weight: 700; margin: 0 0 10px; }

.pkg-back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--DTSecondaryColor, #10221b);
  text-decoration: none;
  margin-bottom: 28px;
}
.pkg-back-link:hover { color: var(--DTPrimaryColor, #f29727); }

/* ================================================================
   Single package
   ================================================================ */

.pkg-wrap { padding: 0 0 90px; }

.pkg-header { max-width: 860px; margin: 0 auto 40px; text-align: center; }
.pkg-category {
  display: inline-block;
  background: var(--DTPrimaryColor, #f29727);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
  padding: 6px 14px;
  border-radius: 999px;
  text-decoration: none;
  margin-bottom: 18px;
}
.pkg-meta { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 10px 22px; color: #6d6666; font-size: 14.5px; }
.pkg-meta span { display: inline-flex; align-items: center; gap: 7px; }
.pkg-meta i { color: var(--DTPrimaryColor, #f29727); }

.pkg-content-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 56px;
  align-items: start;
  max-width: 1100px;
  margin: 0 auto;
}

.pkg-main { min-width: 0; }

.pkg-section { margin: 0 0 48px; }
.pkg-section h2 {
  font-size: 26px;
  color: var(--DTSecondaryColor, #10221b);
  margin: 0 0 18px;
  padding-bottom: 12px;
  border-bottom: 2px solid #f0ece7;
  position: relative;
}
.pkg-section h2::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 56px;
  height: 2px;
  background: var(--DTPrimaryColor, #f29727);
}

.pkg-prose { font-size: 16.5px; line-height: 1.85; color: #4c4444; }
.pkg-prose p { margin: 0 0 18px; }
.pkg-prose ul, .pkg-prose ol { margin: 0 0 18px; padding-left: 22px; }

/* Highlights checklist */
.pkg-highlights {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 24px;
}
.pkg-highlights li { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; line-height: 1.55; color: #4c4444; }
.pkg-highlights i { color: var(--DTPrimaryColor, #f29727); margin-top: 3px; flex: 0 0 auto; }

/* Day-by-day timeline */
.pkg-itinerary { list-style: none; margin: 0; padding: 0; position: relative; }
.pkg-itinerary::before {
  content: "";
  position: absolute;
  left: 31px;
  top: 12px;
  bottom: 12px;
  width: 2px;
  background: #ece7e2;
}
.pkg-day { display: flex; gap: 22px; padding: 0 0 26px; position: relative; }
.pkg-day:last-child { padding-bottom: 0; }

.pkg-day-badge {
  flex: 0 0 64px;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--DTSecondaryColor, #10221b);
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  line-height: 1;
  box-shadow: 0 0 0 6px #fff;
  position: relative;
  z-index: 1;
}
.pkg-day-badge span { font-size: 10px; text-transform: uppercase; letter-spacing: .08em; opacity: .75; }
.pkg-day-badge strong { font-size: 22px; color: var(--DTPrimaryColor, #f29727); margin-top: 3px; }

.pkg-day-body {
  flex: 1;
  min-width: 0;
  background: #fff;
  border: 1px solid #f0ece7;
  border-radius: 14px;
  padding: 20px 24px 22px;
  box-shadow: 0 2px 14px rgba(16, 34, 27, 0.05);
}
.pkg-day-body h3 { font-size: 19px; margin: 0 0 10px; color: var(--DTSecondaryColor, #10221b); line-height: 1.35; }
.pkg-day-body p { margin: 0; font-size: 15.5px; line-height: 1.75; color: #4c4444; }

.pkg-day-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 20px;
  margin: 16px 0 0;
  padding: 14px 0 0;
  border-top: 1px dashed #e8e2dc;
}
.pkg-day-facts div { display: flex; flex-direction: column; gap: 2px; }
.pkg-day-facts dt {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: #948d8d;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 6px;
}
.pkg-day-facts dt i { color: var(--DTPrimaryColor, #f29727); font-size: 11px; }
.pkg-day-facts dd { margin: 0; font-size: 14px; color: var(--DTSecondaryColor, #10221b); line-height: 1.45; }

/* Included / excluded */
.pkg-inclusions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.pkg-inclusions-col { background: #f6f9f6; border-radius: 14px; padding: 22px 24px; }
.pkg-inclusions-col.is-excluded { background: #fbf4f1; }
.pkg-inclusions-col h3 {
  font-size: 15px;
  margin: 0 0 14px;
  color: var(--DTSecondaryColor, #10221b);
  display: flex;
  align-items: center;
  gap: 9px;
}
.pkg-inclusions-col h3 i {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  background: #22694e;
  color: #fff;
}
.pkg-inclusions-col.is-excluded h3 i { background: #c0533a; }
.pkg-inclusions-col ul { list-style: none; margin: 0; padding: 0; }
.pkg-inclusions-col li {
  position: relative;
  padding: 0 0 0 20px;
  margin: 0 0 9px;
  font-size: 14.5px;
  line-height: 1.55;
  color: #4c4444;
}
.pkg-inclusions-col li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22694e;
}
.pkg-inclusions-col.is-excluded li::before { background: #c0533a; }

/* Accommodation + notes */
.pkg-lodges { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 24px; }
.pkg-lodges li { display: flex; align-items: flex-start; gap: 10px; font-size: 15px; color: #4c4444; line-height: 1.5; }
.pkg-lodges i { color: var(--DTPrimaryColor, #f29727); margin-top: 3px; }
.pkg-fineprint { margin: 16px 0 0; font-size: 13px; color: #948d8d; }

.pkg-notes { margin: 0; padding-left: 20px; font-size: 15px; line-height: 1.7; color: #4c4444; }
.pkg-notes li { margin-bottom: 8px; }

.pkg-share { display: flex; align-items: center; gap: 12px; margin: 8px 0 0; }
.pkg-share .label { font-size: 13px; font-weight: 700; color: var(--DTSecondaryColor, #10221b); }
.pkg-share a {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #f3f0eb;
  color: var(--DTSecondaryColor, #10221b);
  text-decoration: none;
  transition: all .2s ease;
}
.pkg-share a:hover { background: var(--DTPrimaryColor, #f29727); color: #fff; }

/* Sidebar. The theme's .inner-wrapper is overflow:hidden, which turns it into
   the sticky containing block and kills the effect; clip gives the same
   visual clipping without creating a scroll container. Scoped to package
   pages via the body class so nothing else is touched. */
body.page-packages .inner-wrapper { overflow: clip; }
/* Likewise the theme sets overflow on both <html> and <body>, which makes
   <body> a (non-scrolling) scroll container and the sticky never engages.
   <html> keeps its overflow-x:hidden, so horizontal clipping is unchanged. */
body.page-packages { overflow: visible; }
.pkg-sidebar { position: sticky; top: 24px; display: flex; flex-direction: column; gap: 24px; }

.pkg-price-card {
  background: #fff;
  border-radius: 16px;
  padding: 26px 26px 22px;
  box-shadow: 0 8px 32px rgba(16, 34, 27, 0.1);
  border-top: 4px solid var(--DTPrimaryColor, #f29727);
}
.pkg-price-from { font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: #948d8d; font-weight: 700; }
.pkg-price-amount { font-size: 34px; font-weight: 700; color: var(--DTSecondaryColor, #10221b); line-height: 1.15; margin: 4px 0 2px; }
.pkg-price-amount.is-text { font-size: 24px; }
.pkg-price-note { font-size: 13px; color: #6d6666; }

.pkg-price-options { width: 100%; border-collapse: collapse; margin: 16px 0 4px; font-size: 13.5px; }
.pkg-price-options td { padding: 8px 0; text-align: left; }
/* Plain td cells on purpose: the theme paints every <th> orange with a
   selector too specific to override cleanly. */
.pkg-price-options td { background: transparent; border: 0; border-top: 1px solid #f0ece7; text-transform: none; letter-spacing: 0; line-height: 1.4; }
.pkg-price-option-label { font-weight: 500; color: #6d6666; padding-right: 10px; }
.pkg-price-option-amount { text-align: right; font-weight: 700; color: var(--DTSecondaryColor, #10221b); white-space: nowrap; }

.pkg-quick-facts { margin: 16px 0 20px; padding: 14px 0 0; border-top: 1px solid #f0ece7; display: flex; flex-direction: column; gap: 8px; }
.pkg-quick-facts div { display: flex; justify-content: space-between; gap: 12px; font-size: 13.5px; }
.pkg-quick-facts dt { color: #948d8d; }
.pkg-quick-facts dd { margin: 0; font-weight: 600; color: var(--DTSecondaryColor, #10221b); text-align: right; }

.pkg-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  width: 100%;
  padding: 13px 16px;
  border-radius: 999px;
  font-size: 14.5px;
  font-weight: 700;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  margin: 0 0 10px;
  font-family: inherit;
  transition: all .2s ease;
}
.pkg-btn-primary { background: var(--DTPrimaryColor, #f29727); color: #fff; }
.pkg-btn-primary:hover { background: var(--DTSecondaryColor, #10221b); color: #fff; }
.pkg-btn-whatsapp { background: #25d366; color: #fff; }
.pkg-btn-whatsapp:hover { background: #1da851; color: #fff; }
/* <button> variant: out-specify the theme's global button rule */
.pkg-price-card button.pkg-btn,
.pkg-price-card button.pkg-btn:hover,
.pkg-btn-ghost { background: transparent; border: 2px solid #e3ded8; color: var(--DTSecondaryColor, #10221b); font-size: 14.5px; font-weight: 700; text-transform: none; letter-spacing: 0; line-height: 1.2; padding: 13px 16px; border-radius: 999px; box-shadow: none; }
.pkg-price-card button.pkg-btn:hover,
.pkg-btn-ghost:hover { border-color: var(--DTSecondaryColor, #10221b); }
.pkg-price-fineprint { margin: 6px 0 0; font-size: 12px; color: #948d8d; text-align: center; line-height: 1.5; }

.pkg-side-card {
  background: var(--DTSecondaryColor, #10221b);
  color: #cfd8d5;
  border-radius: 16px;
  padding: 24px 26px;
}
.pkg-side-card h4 { color: #fff; font-size: 17px; margin: 0 0 8px; }
.pkg-side-card p { font-size: 14px; line-height: 1.65; margin: 0 0 14px; }
.pkg-side-card a { color: var(--DTPrimaryColor, #f29727); font-weight: 700; font-size: 14px; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; }
.pkg-side-card a:hover { color: #fff; }

/* Related */
.pkg-related { max-width: 1100px; margin: 72px auto 0; }
.pkg-related h3 { font-size: 26px; color: var(--DTSecondaryColor, #10221b); margin: 0 0 24px; text-align: center; }

/* ================================================================
   Responsive
   ================================================================ */

@media (max-width: 1024px) {
  .pkg-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pkg-content-row { grid-template-columns: 1fr; gap: 40px; }
  .pkg-sidebar { position: static; }
}

@media (max-width: 700px) {
  .pkg-grid { grid-template-columns: 1fr; }
  .pkg-hero-spacer { height: 24px; }
  .pkg-highlights, .pkg-inclusions, .pkg-lodges, .pkg-day-facts { grid-template-columns: 1fr; }
  .pkg-itinerary::before { left: 23px; }
  .pkg-day { gap: 14px; }
  .pkg-day-badge { flex-basis: 48px; width: 48px; height: 48px; }
  .pkg-day-badge span { font-size: 8px; }
  .pkg-day-badge strong { font-size: 17px; }
  .pkg-day-body { padding: 16px 18px 18px; }
  .pkg-price-card { padding: 22px 20px 18px; }
}
