/* =========================================================
   ROT Single Package — 100% Full Width Premium Layout
   ========================================================= */

/* ===== 1. Astra Theme Overrides (The Fix) ===== */
body.single-rot_package .site-content .ast-container {
  max-width: 100% !important;
  width: 100% !important;
  padding: 0 !important;
}
body.single-rot_package .site-content,
body.single-rot_package #primary,
body.single-rot_package #content {
  margin: 0 !important;
  padding: 0 !important;
  max-width: 100% !important;
}

/* ===== 2. Global Variables & Typography ===== */
.rot-package-scope.single-rot-package,
.rot-package-scope .single-rot-package {
  width: 100%;
  max-width: 100%;
  display: block;
  /* Fonts */
  --rot-font-heading: 'Archivo', sans-serif;
  --rot-font-body: 'Jost', sans-serif;
  /* Colors & Shadows */
  --rot-accent: #e53935;
  --rot-accent-2: #ff7043;
  --rot-dark: #0f172a;
  --rot-surface: #ffffff;
  --rot-surface-2: #f8fafc;
  --rot-border: rgba(15, 23, 42, 0.08);
  --rot-text: #0f172a;
  --rot-muted: #64748b;
  --rot-shadow: 0 18px 60px rgba(15, 23, 42, 0.08);
  --rot-shadow-soft: 0 12px 34px rgba(15, 23, 42, 0.06);
  --rot-shadow-hover: 0 22px 44px rgba(15, 23, 42, 0.12);
  --rot-radius: 28px;
  --rot-radius-sm: 18px;
  
  /* Apply Base Body Font */
  font-family: var(--rot-font-body);
}

/* ===== 3. Main Width Container ===== */
.rot-package-scope .vega-pkg-wrap,
.rot-package-scope.single-rot-package .vega-pkg-wrap {
  width: 100%; 
  max-width: 100%; 
  margin: 0;
  /* 3% padding on left and right, 24px top, 80px bottom */
  padding: 24px 3% 80px 3%; 
  box-sizing: border-box;
  color: var(--rot-text);
}

/* Global Heading Font Application */
.rot-package-scope h1, .rot-package-scope h2, .rot-package-scope h3,
.rot-package-scope h4, .rot-package-scope h5, .rot-package-scope h6,
.rot-package-scope .vega-hero-title, .rot-package-scope .pulsar-booking-kicker,
.rot-package-scope .lyra-acc-title {
  font-family: var(--rot-font-heading);
  font-weight: 600;
}

/* ===== 4. Hero Section ===== */
.rot-package-scope .vega-hero,
.rot-package-scope.single-rot-package .vega-hero {
  position: relative;
  min-height: 580px;
  overflow: hidden;
  border-radius: 34px;
  background: #0f172a;
  box-shadow: var(--rot-shadow);
  transform: translateZ(0); 
}

.rot-package-scope .vega-hero-bg,
.rot-package-scope.single-rot-package .vega-hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transform: scale(1.04);
  transition: transform 1.2s cubic-bezier(0.2, 0.8, 0.2, 1);
  z-index: 1; 
}

.rot-package-scope .vega-hero:hover .vega-hero-bg {
  transform: scale(1.07); 
}

.rot-package-scope .vega-hero::after,
.rot-package-scope.single-rot-package .vega-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(2, 6, 23, 0.04) 0%, rgba(2, 6, 23, 0.2) 30%, rgba(2, 6, 23, 0.85) 100%);
  z-index: 2; 
  pointer-events: none;
}

.rot-package-scope .vega-hero-overlay,
.rot-package-scope.single-rot-package .vega-hero-overlay {
  position: absolute; 
  inset: 0; 
  width: 100%;
  height: 100%;
  z-index: 5; 
  padding: 40px;
  box-sizing: border-box; 
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.rot-package-scope .vega-hero-top,
.rot-package-scope.single-rot-package .vega-hero-top {
  display: flex;
  align-items: flex-start;
}

.rot-package-scope .vega-hero-location,
.rot-package-scope.single-rot-package .vega-hero-location {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 22px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: #0f172a;
  font-family: var(--rot-font-body);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.02em;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.15);
  backdrop-filter: blur(10px); 
  -webkit-backdrop-filter: blur(10px);
}

.rot-package-scope .vega-hero-bottom,
.rot-package-scope.single-rot-package .vega-hero-bottom {
  max-width: 100%;
  width: 100%;
}

.rot-package-scope .vega-hero-title,
.rot-package-scope.single-rot-package .vega-hero-title {
  margin: 0;
  color: #fff;
  font-size: 42px; /* Reduced for a more balanced look */
  line-height: 1.1;
  letter-spacing: -0.02em;
  text-align: left; 
  padding-left: 20px; 
  font-weight: 600; 
  text-shadow: 0 8px 30px rgba(0, 0, 0, 0.5); 
}

/* ===== 5. Content Layout ===== */
.rot-package-scope .vega-pkg-layout,
.rot-package-scope.single-rot-package .vega-pkg-layout {
  margin-top: 32px;
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(330px, 0.78fr);
  gap: 32px;
  align-items: start;
}

/* ===== 6. Sections ===== */
.rot-package-scope .vega-section,
.rot-package-scope.single-rot-package .vega-section {
  margin-bottom: 24px;
  background: #fff;
  border: 1px solid var(--rot-border);
  border-radius: var(--rot-radius);
  box-shadow: var(--rot-shadow-soft);
  padding: 36px;
  transition: box-shadow 0.3s ease;
}

.rot-package-scope .vega-section:hover,
.rot-package-scope.single-rot-package .vega-section:hover {
  box-shadow: var(--rot-shadow-hover); 
}

.rot-package-scope .vega-section h2,
.rot-package-scope.single-rot-package .vega-section h2 {
  margin: 0 0 20px;
  font-size: 28px;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--rot-dark);
}

.rot-package-scope .vega-body-content,
.rot-package-scope.single-rot-package .vega-body-content {
  font-family: var(--rot-font-body);
  font-size: 16.5px;
  line-height: 1.8;
  color: #334155;
}

.rot-package-scope .vega-body-content > *:last-child,
.rot-package-scope.single-rot-package .vega-body-content > *:last-child {
  margin-bottom: 0;
}

/* ===== 7. Sidebar ===== */
.rot-package-scope .pulsar-sidebar-sticky,
.rot-package-scope.single-rot-package .pulsar-sidebar-sticky {
  position: sticky;
  top: 30px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.rot-package-scope .pulsar-booking-card,
.rot-package-scope .pulsar-sidebar-form-sect,
.rot-package-scope.single-rot-package .pulsar-booking-card,
.rot-package-scope.single-rot-package .pulsar-sidebar-form-sect {
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  border: 1px solid var(--rot-border);
  border-radius: 26px;
  box-shadow: var(--rot-shadow-soft);
  padding: 32px;
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.rot-package-scope .pulsar-booking-card:hover,
.rot-package-scope.single-rot-package .pulsar-booking-card:hover {
  box-shadow: var(--rot-shadow-hover);
  transform: translateY(-2px); 
}

.rot-package-scope .pulsar-booking-kicker,
.rot-package-scope.single-rot-package .pulsar-booking-kicker {
  margin: 0 0 22px;
  font-size: 24px;
  line-height: 1.2;
  color: #111827;
  letter-spacing: -0.01em;
}

.rot-package-scope .pulsar-bc-row,
.rot-package-scope.single-rot-package .pulsar-bc-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 16px 0;
  border-bottom: 1px dashed rgba(15, 23, 42, 0.1); 
  font-family: var(--rot-font-body);
  font-size: 15.5px;
}

.rot-package-scope .pulsar-bc-row:last-of-type,
.rot-package-scope.single-rot-package .pulsar-bc-row:last-of-type {
  border-bottom: 0;
  padding-bottom: 0;
}

.rot-package-scope .pulsar-bc-row span,
.rot-package-scope.single-rot-package .pulsar-bc-row span {
  color: var(--rot-muted);
  font-weight: 500;
}

.rot-package-scope .pulsar-bc-row strong,
.rot-package-scope.single-rot-package .pulsar-bc-row strong {
  color: #111827;
  font-weight: 700;
  text-align: right;
}

/* ===== 8. Buttons ===== */
.rot-package-scope .orion-btn-large,
.rot-package-scope.single-rot-package .orion-btn-large {
  width: 100%;
  margin-top: 24px;
  border: 0;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 16px 22px;
  border-radius: 999px;
  font-family: var(--rot-font-body);
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.rot-package-scope .orion-btn-primary,
.rot-package-scope.single-rot-package .orion-btn-primary {
  color: #fff !important;
  background: linear-gradient(135deg, var(--rot-accent) 0%, var(--rot-accent-2) 100%);
  box-shadow: 0 10px 24px rgba(229, 57, 53, 0.25);
}

.rot-package-scope .orion-btn-large:hover,
.rot-package-scope.single-rot-package .orion-btn-large:hover {
  transform: translateY(-3px) scale(1.01);
  box-shadow: 0 16px 32px rgba(229, 57, 53, 0.35);
  filter: brightness(1.06);
}

/* ===== 9. Accordion ===== */
.rot-package-scope .lyra-acc-item,
.rot-package-scope.single-rot-package .lyra-acc-item {
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 20px;
  overflow: hidden;
  background: #fff;
  margin-bottom: 16px;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.rot-package-scope .lyra-acc-item:hover,
.rot-package-scope.single-rot-package .lyra-acc-item:hover {
  border-color: rgba(15, 23, 42, 0.15);
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.04);
}

.rot-package-scope .lyra-acc-trigger,
.rot-package-scope.single-rot-package .lyra-acc-trigger {
  width: 100%;
  border: 0;
  background: none;
  cursor: pointer;
  padding: 22px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 16px;
  align-items: center;
  text-align: left;
}

.rot-package-scope .lyra-acc-day-badge,
.rot-package-scope.single-rot-package .lyra-acc-day-badge {
  padding: 10px 16px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--rot-accent) 0%, var(--rot-accent-2) 100%);
  color: #fff;
  font-family: var(--rot-font-body);
  font-size: 14px;
  font-weight: 600;
  box-shadow: 0 4px 12px rgba(229, 57, 53, 0.2);
}

.rot-package-scope .lyra-acc-title,
.rot-package-scope.single-rot-package .lyra-acc-title {
  font-size: 18px;
  color: #111827;
}

.rot-package-scope .lyra-acc-content,
.rot-package-scope.single-rot-package .lyra-acc-content {
  padding: 0 22px 22px;
}

.rot-package-scope .lyra-acc-inner,
.rot-package-scope.single-rot-package .lyra-acc-inner {
  padding: 22px;
  border-radius: 16px;
  background: #f8fafc;
  font-family: var(--rot-font-body);
  color: #334155;
  line-height: 1.7;
}

/* ===== 10. Included / Excluded ===== */
.rot-package-scope .lyra-inclexcl-grid,
.rot-package-scope.single-rot-package .lyra-inclexcl-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.rot-package-scope .lyra-inc-box,
.rot-package-scope .lyra-exc-box,
.rot-package-scope.single-rot-package .lyra-inc-box,
.rot-package-scope.single-rot-package .lyra-exc-box {
  padding: 28px;
  border-radius: 20px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.rot-package-scope .lyra-inc-box:hover,
.rot-package-scope .lyra-exc-box:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.04);
}

.rot-package-scope .lyra-inc-box h3,
.rot-package-scope .lyra-exc-box h3 {
  margin-top: 0;
  margin-bottom: 16px;
  font-size: 20px;
}

.rot-package-scope .lyra-checklist {
  font-family: var(--rot-font-body);
  font-size: 16px;
  color: #334155;
}

.rot-package-scope .lyra-inc-box { background: #f0fdf4; }
.rot-package-scope .lyra-exc-box { background: #fef2f2; }

/* ===== What's Included - 2 Column Distributed List ===== */
.rot-package-scope .lyra-checklist.multi-col-list {
  column-count: 2;
  column-gap: 40px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.rot-package-scope .lyra-checklist.multi-col-list li {
  display: flex;
  align-items: flex-start;
  margin-bottom: 16px;
  break-inside: avoid;
  page-break-inside: avoid;
  font-family: var(--rot-font-body);
  font-size: 16.5px;
  color: #334155;
  line-height: 1.5;
}

/* ===== 11. Gallery ===== */
.rot-package-scope .altair-carousel,
.rot-package-scope.single-rot-package .altair-carousel {
  border-radius: 24px;
  overflow: hidden;
  box-shadow: var(--rot-shadow-soft);
}

.rot-package-scope .altair-carousel-slide,
.rot-package-scope.single-rot-package .altair-carousel-slide {
  aspect-ratio: 16/9;
}

.rot-package-scope .altair-carousel-slide img,
.rot-package-scope.single-rot-package .altair-carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: filter 0.3s ease;
}

.rot-package-scope .altair-carousel-slide img:hover {
  filter: brightness(1.05); 
}

/* ===== 12. Responsive ===== */
@media (max-width: 1100px) {
  .rot-package-scope .vega-pkg-layout,
  .rot-package-scope.single-rot-package .vega-pkg-layout {
    grid-template-columns: 1fr;
  }

  .rot-package-scope .pulsar-sidebar-sticky,
  .rot-package-scope.single-rot-package .pulsar-sidebar-sticky {
    position: static;
  }
}

@media (max-width: 767px) {
  .rot-package-scope .vega-pkg-wrap,
  .rot-package-scope.single-rot-package .vega-pkg-wrap {
    width: 100%;
    /* Maintained 3% on sides for mobile */
    padding: 14px 3% 40px 3%; 
  }

  .rot-package-scope .vega-hero,
  .rot-package-scope.single-rot-package .vega-hero {
    min-height: 440px;
    border-radius: 24px;
  }

  .rot-package-scope .vega-hero-overlay,
  .rot-package-scope.single-rot-package .vega-hero-overlay {
    min-height: 440px;
    padding: 24px;
  }

  .rot-package-scope .vega-hero-title,
  .rot-package-scope.single-rot-package .vega-hero-title {
    font-size: 28px; /* Scaled down hero title for mobile readability */
    padding-left: 10px; 
  }

  .rot-package-scope .vega-section,
  .rot-package-scope.single-rot-package .vega-section,
  .rot-package-scope .pulsar-booking-card,
  .rot-package-scope .pulsar-sidebar-form-sect,
  .rot-package-scope.single-rot-package .pulsar-booking-card,
  .rot-package-scope.single-rot-package .pulsar-sidebar-form-sect {
    padding: 24px;
    border-radius: 22px;
  }

  .rot-package-scope .lyra-inclexcl-grid,
  .rot-package-scope.single-rot-package .lyra-inclexcl-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  
  .rot-package-scope .lyra-checklist.multi-col-list {
    column-count: 1; /* Drops back to 1 column on mobile screens */
  }

  .rot-package-scope .lyra-acc-trigger,
  .rot-package-scope.single-rot-package .lyra-acc-trigger {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 18px;
  }
}

/* -------------------------------------------------------------------------
 * Mobile optimisations
 * On smaller screens we adjust hero aspect ratio, decrease the size of the
 * location pill and heading, and ensure itinerary titles truncate on one
 * line so the day number and title stay inline.
 * ----------------------------------------------------------------------- */
@media (max-width: 767px) {
  /* Hero image should follow a 16:8 (2:1) ratio similar to YouTube thumbnails */
  .rot-package-scope .vega-hero,
  .rot-package-scope.single-rot-package .vega-hero {
    aspect-ratio: 16 / 8;
    min-height: auto;
  }

  /* Ensure the overlay scales with the hero on mobile. The original 440px height
   * forced the overlay to exceed the hero height, hiding the title. Setting
   * min-height to auto allows the overlay to follow the aspect ratio. */
  .rot-package-scope .vega-hero-overlay,
  .rot-package-scope.single-rot-package .vega-hero-overlay {
    min-height: auto;
    padding: 24px;
  }

  /* Reduce padding and font size of the location pill for mobile */
  .rot-package-scope .vega-hero-location,
  .rot-package-scope.single-rot-package .vega-hero-location {
    padding: 6px 14px;
    font-size: 12px;
  }

  /* Decrease the hero title size for better hierarchy on small screens */
  .rot-package-scope .vega-hero-title,
  .rot-package-scope.single-rot-package .vega-hero-title {
    font-size: 28px;
  }

  /* Keep day number and itinerary title inline by truncating excess text */
  .rot-package-scope .lyra-acc-title,
  .rot-package-scope.single-rot-package .lyra-acc-title {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  /*
   * Override the accordion trigger layout on mobile to mirror the desktop style.
   * Using a three-column grid keeps the day badge, title and chevron inline. We also
   * reduce the padding and badge size for a more compact mobile presentation.
   */
  .rot-package-scope .lyra-acc-trigger,
  .rot-package-scope.single-rot-package .lyra-acc-trigger {
    grid-template-columns: auto 1fr auto;
    gap: 12px;
    padding: 16px;
  }

  .rot-package-scope .lyra-acc-day-badge,
  .rot-package-scope.single-rot-package .lyra-acc-day-badge {
    padding: 6px 12px;
    font-size: 12px;
  }
}