/* =========================================================
   ROT Cards — Premium scoped style
   ========================================================= */

.rot-package-scope {
  color: var(--rot-text, #0f172a);
  --rot-card-bg: #ffffff;
  --rot-card-border: rgba(15, 23, 42, 0.08);
  --rot-card-shadow: 0 16px 38px rgba(15, 23, 42, 0.10);
  --rot-card-shadow-hover: 0 26px 64px rgba(15, 23, 42, 0.18);
  --rot-overlay-dark: rgba(2, 6, 23, 0.88);
  --rot-accent: #e53935;
  --rot-accent-strong: #b71c1c;
  --rot-accent-warm: #ff8a3d;
  --rot-pill-dark: #0f172a;
  --rot-pill-light: rgba(255, 255, 255, 0.94);
  --rot-pill-shadow: 0 10px 24px rgba(0, 0, 0, 0.14);
}

.rot-package-scope .rot-featured-shell,
.rot-package-scope .rot-archive-shell {
  max-width: 1320px;
  margin: 0 auto;
  padding: 28px 20px 48px;
}

.rot-package-scope .rot-featured-grid,
.rot-package-scope .rot-archive-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.rot-package-scope .rot-archive-hero {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: flex-end;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.rot-package-scope .rot-archive-title {
  margin: 0 0 8px;
  font-size: clamp(28px, 4vw, 48px);
  line-height: 1.05;
  letter-spacing: -0.03em;
}

.rot-package-scope .rot-archive-intro {
  margin: 0;
  max-width: 640px;
  font-size: 15px;
  line-height: 1.7;
  color: var(--rot-muted, #64748b);
}

.rot-package-scope .rot-archive-stat {
  text-align: right;
}

.rot-package-scope .rot-archive-stat-value {
  font-size: 28px;
  font-weight: 900;
  line-height: 1;
}

.rot-package-scope .rot-archive-stat-label {
  margin-top: 4px;
  font-size: 12px;
  color: var(--rot-muted, #64748b);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
}

.rot-package-scope .rot-archive-empty {
  padding: 44px 20px;
  text-align: center;
  border: 1px dashed rgba(15, 23, 42, 0.15);
  border-radius: 24px;
  background: #fff;
}

.rot-package-scope .rot-archive-empty h3 {
  margin: 0 0 8px;
  font-size: 20px;
}

.rot-package-scope .rot-archive-empty p {
  margin: 0;
  color: var(--rot-muted, #64748b);
}

/* Card */
.rot-package-scope .rigel-pkg-card {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  background: var(--rot-card-bg);
  border: 1px solid var(--rot-card-border);
  box-shadow: var(--rot-card-shadow);
  transition: transform .28s ease, box-shadow .28s ease, border-color .28s ease;
}

.rot-package-scope .rigel-pkg-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--rot-card-shadow-hover);
  border-color: rgba(229, 57, 53, 0.14);
}

.rot-package-scope .rigel-card-link {
  display: block;
  color: inherit;
  text-decoration: none;
}

.rot-package-scope .rigel-card-img-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 24px;
  background: #0f172a;
}

.rot-package-scope .rigel-card-img-wrap img,
.rot-package-scope .rigel-card-img,
.rot-package-scope .rigel-card-placeholder {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .55s ease, opacity .35s ease, filter .35s ease;
}

.rot-package-scope .rigel-card-img-wrap img,
.rot-package-scope .rigel-card-img {
  opacity: 0.86;
  filter: saturate(1.02) contrast(0.98) brightness(0.86);
}

.rot-package-scope .rigel-pkg-card:hover .rigel-card-img-wrap img,
.rot-package-scope .rigel-pkg-card:hover .rigel-card-img {
  transform: scale(1.07);
  opacity: 1;
  filter: saturate(1.05) contrast(1) brightness(0.94);
}

.rot-package-scope .rigel-card-img-wrap::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      180deg,
      rgba(2, 6, 23, 0.06) 0%,
      rgba(2, 6, 23, 0.20) 30%,
      rgba(2, 6, 23, 0.64) 72%,
      rgba(2, 6, 23, 0.90) 100%
    );
  z-index: 1;
  pointer-events: none;
}

.rot-package-scope .rigel-card-top-icons {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 5;
  pointer-events: none;
}

.rot-package-scope .rigel-top-icon {
  width: 38px;
  height: 38px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.96);
  color: var(--rot-accent);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.16);
  backdrop-filter: blur(10px);
  transition: transform .25s ease, box-shadow .25s ease;
}

.rot-package-scope .rigel-top-icon svg {
  width: 18px;
  height: 18px;
  display: block;
}

.rot-package-scope .rigel-count-badge {
  position: absolute;
  right: -6px;
  bottom: -6px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--rot-pill-dark);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 20px rgba(0,0,0,.18);
}

.rot-package-scope .rot-featured-overlay {
  position: absolute;
  inset: 0;
  z-index: 4;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 14px;
  pointer-events: none;
}

.rot-package-scope .rot-featured-top {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: flex-start;
}

.rot-package-scope .rigel-meta-group {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  flex-wrap: wrap;
  max-width: 100%;
  width: auto;
}

.rot-package-scope .rot-featured-badges {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.rot-package-scope .rot-overlay-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  backdrop-filter: blur(10px);
  box-shadow: 0 8px 24px rgba(0,0,0,.14);
}

.rot-package-scope .rot-overlay-badge-featured {
  background: rgba(229, 57, 53, 0.95);
  color: #fff;
}

.rot-package-scope .rot-overlay-badge-category {
  background: rgba(255,255,255,.92);
  color: #0f172a;
}

.rot-package-scope .rigel-featured-location,
.rot-package-scope .rigel-meta-dur {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 7px 12px;
  border-radius: 999px;
  font-size: 16px; /* Increased from 16px */
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
  flex: 0 0 auto;
  backdrop-filter: blur(10px);
  box-shadow: var(--rot-pill-shadow);
}

.rot-package-scope .rigel-featured-location {
  background: rgba(255, 255, 255, 0.92);
  color: #0f172a;
}

.rot-package-scope .rigel-meta-dur {
  background: rgba(15, 23, 42, 0.84);
  color: #fff;
  display: none; /* Hides the duration pill while retaining its styles */
}

.rot-package-scope .rigel-pill-icon {
  width: 20px;
  height: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 20px;
  line-height: 1;
}

.rot-package-scope .rigel-pill-icon img {
  width: 14px;
  height: 14px;
  display: block;
  object-fit: contain;
}

.rot-package-scope .rot-icon {
  width: 14px;
  height: 14px;
  flex: 0 0 14px;
  display: block;
}

.rot-package-scope .rigel-card-title {
  margin: 0;
  color: #fff;
  font-size: 23px; /* Increased from 24px */
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -0.02em;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.52);
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  max-width: 92%;
}

.rot-package-scope .rigel-card-title a {
  color: inherit !important;
  text-decoration: none !important;
}

.rot-package-scope .rot-featured-bottom {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.rot-package-scope .rigel-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  pointer-events: auto;
}

/* Hide the old price pill now that pricing is not displayed on cards */
.rot-package-scope .rigel-card-price {
  display: none !important;
}

/* When the card title is placed inside the footer row it should flex-grow to occupy remaining space */
.rot-package-scope .rigel-card-footer .rigel-card-title {
  margin: 0;
  flex: 1 1 auto;
  /* Display the package title in white so it stands out on the dark overlay */
  color: #ffffff;
  font-size: 23px;
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: -0.02em;
  /* Add a subtle shadow to improve readability */
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.52);
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.rot-package-scope .rigel-card-price {
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.96);
  color: #0f172a;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  backdrop-filter: blur(10px);
  min-height: 44px;
  white-space: nowrap;
  flex: 0 0 auto;
}

.rot-package-scope .rigel-price-lbl {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: rgba(15, 23, 42, 0.66);
  line-height: 1;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
}

.rot-package-scope .rigel-price-val {
  font-size: 20px;
  font-weight: 900;
  line-height: 1;
  color: #0f172a;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
}

.rot-package-scope .rigel-card-cta {
  flex: 0 0 auto;
}

/* Reduce the size of the "View Package" button in cards for a more compact look */
.rot-package-scope .rigel-card-cta .orion-btn-card {
  min-width: 130px;
  min-height: 42px;
  font-size: 12px;
  padding: 8px 16px;
}

.rot-package-scope .rigel-card-cta .orion-btn-card {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 158px;
  min-height: 44px; /* Matches desktop price pill height perfectly */
  padding: 10px 18px; 
  box-sizing: border-box; /* Ensures padding doesn't add extra height */
  border-radius: 999px;
  background: linear-gradient(135deg, var(--rot-accent-strong) 0%, var(--rot-accent) 100%);
  color: #fff !important;
  font-size: 13px;
  font-weight: 800;
  line-height: 1;
  text-decoration: none !important;
  border: 0;
  box-shadow: 0 12px 28px rgba(229, 57, 53, 0.22);
  transition: transform .25s ease, box-shadow .25s ease, filter .25s ease;
  white-space: nowrap;
}

.rot-package-scope .rigel-card-cta .orion-btn-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 34px rgba(229, 57, 53, 0.30);
  filter: brightness(1.04);
}

.rot-package-scope .rigel-pkg-card:hover .rigel-featured-location,
.rot-package-scope .rigel-pkg-card:hover .rigel-meta-dur,
.rot-package-scope .rigel-pkg-card:hover .rigel-top-icon {
  transform: translateY(-1px);
}

.rot-package-scope .rigel-pkg-card .rot-featured-top {
  min-height: 0;
}

@media (max-width: 1024px) {
  .rot-package-scope .rot-featured-grid,
  .rot-package-scope .rot-archive-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .rot-package-scope .rigel-card-title {
    max-width: 100%;
  }
}

@media (max-width: 767px) {
  .rot-package-scope .rot-featured-shell,
  .rot-package-scope .rot-archive-shell {
    /* Only 10px of horizontal padding on mobile; remove top/bottom padding for full-width content */
    padding: 0 10px;
  }

  .rot-package-scope .rot-archive-hero {
    flex-direction: column;
    align-items: flex-start;
  }

  .rot-package-scope .rot-featured-grid,
  .rot-package-scope .rot-archive-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .rot-package-scope .rigel-card-title {
    font-size: 16px;
    line-height: 1.2;
  }

  /* Reduce the title size further when it appears in the footer row */
  .rot-package-scope .rigel-card-footer .rigel-card-title {
    font-size: 16px;
  }

  .rot-package-scope .rot-featured-overlay {
    padding: 12px;
  }

  .rot-package-scope .rigel-card-footer {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    flex-wrap: nowrap;
  }

  .rot-package-scope .rigel-card-price {
    width: auto;
    min-width: 0;
    padding: 8px 10px;
    gap: 6px;
    min-height: 44px; /* Updated from 40px to perfectly match button height */
  }

  .rot-package-scope .rigel-price-lbl {
    font-size: 10px;
  }

  .rot-package-scope .rigel-price-val {
    font-size: 16px;
    line-height: 1;
  }

  .rot-package-scope .rigel-card-cta {
    width: auto;
    flex: 0 0 auto;
  }

  .rot-package-scope .rigel-card-cta .orion-btn-card {
    width: auto;
    min-width: 0;
    min-height: 38px;
    padding: 6px 16px;
    box-sizing: border-box;
    font-size: 11px;
  }

  .rot-package-scope .rigel-meta-group {
    justify-content: flex-start;
  }

  .rot-package-scope .rigel-featured-location,
  .rot-package-scope .rigel-meta-dur {
    padding: 6px 10px;
    font-size: 12px; /* Increased from 11px */
  }

  .rot-package-scope .rigel-pill-icon {
    width: 18px;
    height: 18px;
    flex-basis: 18px;
  }

  .rot-package-scope .rigel-pill-icon img {
    width: 13px;
    height: 13px;
  }
}