/* =====================================================
   ARCHIVE – FULL CSS (sp_package + its taxonomies)
===================================================== */

/* OceanWP: remove default top padding, hide default header */
.post-type-archive-sp_package #main #content-wrap,
.tax-sp_destination #main #content-wrap,
.tax-sp_theme #main #content-wrap,
.tax-sp_duration #main #content-wrap,
.tax-sp_departure_type #main #content-wrap{
  padding-top: 0 !important;
}

.post-type-archive-sp_package .page-header,
.tax-sp_destination .page-header,
.tax-sp_theme .page-header,
.tax-sp_duration .page-header,
.tax-sp_departure_type .page-header{
  display:none !important;
}

/* =====================================================
   WRAP + GRID
===================================================== */
.ch-archWrap{
  width: min(1330px, calc(100% - 36px));
  margin: 26px auto 60px;
}
.ch-archGrid{
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  align-items: stretch;
  justify-items: center;
}

/* =====================================================
   CARD SHELL
===================================================== */
.ch-cardShell{
  width: 100%;
  max-width: 460px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* Card (link) */
.ch-card{
  width: 100%;
  background:#fff;
  border: 1px solid rgba(15,23,42,.10);
  border-radius: 18px;
  overflow: hidden;
  text-decoration:none !important;
  box-shadow: 0 10px 26px rgba(2,6,23,.06);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
  display: flex;
  flex-direction: column;
}
.ch-card:hover{
  transform: translateY(-4px);
  border-color: rgba(15,23,42,.18);
  box-shadow: 0 18px 44px rgba(2,6,23,.12);
}

/* Media */
.ch-card__media{
  position: relative;
  width: 100%;
  aspect-ratio: 16/10;
  background: #0b1220;
  overflow: hidden;
}
.ch-card__media img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display:block;
  transform: scale(1.001);
  transition: transform .35s ease;
}
.ch-card:hover .ch-card__media img{
  transform: scale(1.06);
}
.ch-card__media::after{
  content:"";
  position:absolute;
  inset:auto 0 0 0;
  height: 62%;
  background: linear-gradient(to top, rgba(2,6,23,.38), rgba(2,6,23,0));
  pointer-events:none;
}

/* Badges */
.ch-card__badgeRow{
  position:absolute;
  left: 12px;
  right: 12px;
  bottom: 12px;
  display:flex;
  gap: 8px;
  flex-wrap: wrap;
  z-index: 2;
}
.ch-badge{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(255,255,255,.92);
  border: 1px solid rgba(15,23,42,.12);
  color: rgba(15,23,42,.90);
  font-size: 12px;
  font-weight: 850;
  line-height: 1;
  white-space: nowrap;
}
.ch-badge--dark{
  background: rgba(15,23,42,.92);
  border-color: rgba(15,23,42,.92);
  color: #fff;
}

/* Body */
.ch-card__body{
  padding: 14px 16px 16px;
  display:flex;
  flex-direction:column;
  gap: 10px;
  flex: 1;
}
.ch-card__kicker{
  font-size: 12px;
  letter-spacing: .02em;
  text-transform: uppercase;
  color: rgba(15,23,42,.62);
  font-weight: 800;
  line-height: 1.2;
}
.ch-card__title{
  margin: 0;
  font-size: 18px;
  line-height: 1.25;
  color: #0f172a;
  font-weight: 950;
}

/* Info rows */
.ch-card__info{
  display: grid;
  gap: 8px;
  padding-top: 6px;
}
.ch-infoRow{
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 10px;
  align-items: start;
}
.ch-infoLabel{
  font-size: 12px;
  color: rgba(15,23,42,.62);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .02em;
}
.ch-infoVal{
  font-size: 13.5px;
  line-height: 1.45;
  color: rgba(15,23,42,.80);
  font-weight: 650;
  min-width: 0;
}

/* Status chip */
.ch-chip{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 5px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 900;
  line-height: 1;
  border: 1px solid rgba(15,23,42,.14);
  background: rgba(2,6,23,.04);
  color: rgba(15,23,42,.85);
  white-space: nowrap;
  margin-left: 8px;
}
.ch-chip--available{
  background: rgba(16,185,129,.12);
  border-color: rgba(16,185,129,.22);
  color: rgba(6,95,70,.98);
}
.ch-chip--limited{
  background: rgba(245,158,11,.14);
  border-color: rgba(245,158,11,.26);
  color: rgba(146,64,14,.98);
}
.ch-chip--sold_out{
  background: rgba(239,68,68,.12);
  border-color: rgba(239,68,68,.22);
  color: rgba(127,29,29,.98);
}

/* Price row */
.ch-priceRow{
  margin-top: 2px;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  padding-top: 12px;
  border-top: 1px solid rgba(15,23,42,.08);
}
.ch-price{
  font-size: 18px;
  font-weight: 950;
  color: #0f172a;
  letter-spacing: -0.01em;
  white-space: nowrap;
}
.ch-priceSub{
  font-size: 12.5px;
  font-weight: 800;
  color: rgba(15,23,42,.60);
  white-space: nowrap;
}

/* CTA */
.ch-card__cta{
  display:flex;
  gap: 10px;
}
.ch-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  height: 42px;
  padding: 0 14px;
  border-radius: 14px;
  font-weight: 950;
  font-size: 13px;
  text-decoration:none !important;
  border: 1px solid rgba(15,23,42,.14);
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease, background .15s ease, color .15s ease;
  white-space: nowrap;
  flex: 1;
}
.ch-btn--primary{
  background: #0f172a;
  border-color: #0f172a;
  color: #fff !important;
}
.ch-btn--primary:hover{
  transform: translateY(-1px);
  box-shadow: 0 12px 22px rgba(2,6,23,.16);
}
.ch-btn--ghost{
  background: #fff;
  color: rgba(15,23,42,.92) !important;
}
.ch-btn--ghost:hover{
  transform: translateY(-1px);
  border-color: rgba(15,23,42,.22);
  box-shadow: 0 12px 22px rgba(2,6,23,.10);
}

/* Pagination */
.ch-archPagination{
  margin: 30px auto 0;
  display:flex;
  justify-content:center;
  gap: 10px;
  flex-wrap: wrap;
}
.ch-archPagination .page-numbers{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width: 38px;
  height: 38px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid rgba(15,23,42,.12);
  background: #fff;
  color: rgba(15,23,42,.85);
  font-weight: 900;
  text-decoration:none;
}
.ch-archPagination .page-numbers.current{
  background:#0f172a;
  border-color:#0f172a;
  color:#fff;
}

/* Empty state */
.ch-empty{
  padding: 28px 0;
  width: min(1240px, calc(100% - 36px));
  margin: 0 auto;
  color: rgba(15,23,42,.75);
  font-weight: 700;
}

/* Responsive */
@media (max-width: 1024px){
  .ch-archGrid{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 767px){
  .ch-archWrap{ width: calc(100% - 26px); }
  .ch-archWrap{ margin: 16px auto 44px; }
  .ch-archGrid{ grid-template-columns: 1fr; gap: 14px; }
  .ch-cardShell{ max-width: 560px; }
  .ch-infoRow{ grid-template-columns: 78px 1fr; }
  .ch-card__cta{ flex-direction: column; }
  .ch-btn{ width: 100%; }
}
