.ih-packs {
  --ih-packs-navy: #2c3661;
  --ih-packs-orange: #e36c2d;
  --ih-packs-cream: #f7f3ee;
  --ih-packs-muted: #8a90a2;
  --ih-packs-line: #e3e5ec;
  padding: 56px 0 64px;
  background: var(--ih-packs-cream);
  color: var(--ih-packs-navy);
  font-family: "Josefin Sans", "Segoe UI", sans-serif;
}

.ih-packs .container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 20px;
}

.ih-packs-eyebrow {
  margin: 0 0 6px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--ih-packs-orange);
}

.ih-packs-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px 24px;
  margin-bottom: 28px;
  flex-wrap: wrap;
}

.ih-packs-title {
  margin: 0;
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 700;
  line-height: 1.2;
  color: var(--ih-packs-navy);
  flex: 1 1 240px;
}

.ih-packs-all {
  flex: 0 0 auto;
  font-size: 16px;
  font-weight: 700;
  color: var(--ih-packs-orange);
  text-decoration: none;
  white-space: nowrap;
}

.ih-packs-all:hover {
  color: #c4551f;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.ih-packs-trail {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  overflow-x: visible;
  padding: 4px 2px 4px;
  /* Up to 6 cards = two rows of three on desktop (no horizontal scroll). */
}

.ih-packs-card {
  scroll-snap-align: start;
  background: #fff;
  border: 1px solid var(--ih-packs-line);
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 4px 18px rgba(44, 54, 97, .08);
  transition: box-shadow .15s, transform .15s;
}

.ih-packs-card:hover {
  box-shadow: 0 12px 30px rgba(44, 54, 97, .16);
  transform: translateY(-2px);
}

.ih-packs-img {
  position: relative;
  display: block;
  aspect-ratio: 4 / 3;
  background: #dfe3ec;
  text-decoration: none;
}

.ih-packs-img img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ih-packs-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--ih-packs-orange);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
}

.ih-packs-dur {
  position: absolute;
  left: 10px;
  bottom: 10px;
  background: rgba(20, 24, 45, .82);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
}

.ih-packs-body {
  padding: 14px 16px 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex-grow: 1;
}

.ih-packs-body h3 {
  margin: 0;
  font-size: 17.5px;
  line-height: 1.3;
  font-weight: 700;
}

.ih-packs-body h3 a {
  color: var(--ih-packs-navy);
  text-decoration: none;
}

.ih-packs-body h3 a:hover {
  color: #c4551f;
}

.ih-packs-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 10px;
}

.ih-packs-stars {
  font-size: 16px;
  letter-spacing: 1px;
  line-height: 1;
}

.ih-packs-stars .on {
  color: #f7b500;
}

.ih-packs-stars .off {
  color: #e3e5ec;
}

.ih-packs-rv {
  color: var(--ih-packs-muted);
  font-size: 13px;
}

.ih-packs-foot {
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px dashed var(--ih-packs-line);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.ih-packs-price {
  margin: 0;
}

.ih-packs-price small {
  display: block;
  font-size: 12px;
  color: var(--ih-packs-muted);
}

.ih-packs-price strong {
  font-size: 22px;
  color: var(--ih-packs-navy);
}

.ih-packs-aud {
  display: block;
  font-size: 14px;
  color: var(--ih-packs-muted);
}

.ih-packs-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 16px;
  border-radius: 999px;
  background: var(--ih-packs-orange);
  color: #fff;
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
  border: 0;
}

.ih-packs-btn:hover {
  background: #c4551f;
  color: #fff;
}

@media (max-width: 900px) {
  .ih-packs-trail {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 600px) {
  .ih-packs {
    padding: 40px 0 48px;
  }

  .ih-packs-trail {
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: minmax(240px, 78vw);
    overflow-x: auto;
    padding-bottom: 16px;
    scroll-snap-type: x mandatory;
    scrollbar-width: thin;
  }

  .ih-packs-trail::-webkit-scrollbar {
    height: 6px;
  }

  .ih-packs-trail::-webkit-scrollbar-thumb {
    background: rgba(44, 54, 97, .25);
    border-radius: 999px;
  }

  .ih-packs-head {
    align-items: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ih-packs-card {
    transition: none;
  }

  .ih-packs-card:hover {
    transform: none;
  }
}
