/* ==============================
Packages Section (Base & Spacing)
============================== */
.packages-section {
  /* padding: 10px 0; */
  background-color: white;
  margin-bottom: 1.5rem;
}



.packages-section h2 {
  font-family: var(--font-footer-heading);
  font-size: 60px;
  font-weight: 100;
}

.packages-section p {
  /* font-family: var(--font-primary); */
  max-width: 620px;
  /* color: #666; */
}

/* ==============================
Packages Content Box (The Gold Border)
============================== */
.packages-content {


  border: 1.5px solid #c29b62; 
  border-radius: 12px;
  position: relative;
  background-color: var(--color-background-testimonials); 
  width: calc(100% - 32px); 
  margin: 1rem auto 0 auto; 
  padding: 0 2.5rem 2.5rem 2.5rem; 
  
  transition: max-width 0.4s;
}

/* ==============================
   Packages Grid Layout
============================== */
.packages-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  justify-content: center;
  gap: 32px; 
  padding: 0; 
  width: 100%;
  align-items: stretch; 
  transform: translateZ(0);
  
}

/* ==============================
   Package Cards
============================== */
.package-card {
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 24px;
  position: relative;
  transition: transform 0.3s;
  display: flex;
  flex-direction: column;
  /* gap: .5rem; */
  transform-origin: center;
  will-change: transform;
  background-color: white;
}

.package-card:only-child {
  grid-column: 1 / -1;
  justify-self: center;
  width: 100%;
  max-width: 400px;
}

.package-card.popular {
  /* transform: scale(1.05); */
  border-color: #c29b62; 
  box-shadow: 0 8px 24px rgba(0,0,0,0.1);
  z-index: 2;
}


.package-card span {
  font-family: var(--font-primary);
}

.package-name{
  font-family: var(--font-footer-heading);
  font-weight: 300;
  font-size: 1.2rem;
  color: #b8954f;
}

.package-target{
  font-family: var(--font-primary);
}

.popular-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: #c29b62;
  color: white;
  padding: 4px 16px;
  border-radius: 20px;
  font-size: 0.85rem;
}

/* ==============================
   Category Sub-Header
============================== */
.category-header-container {
  text-align: center;
  margin: -18px auto 40px auto; 
  padding: 0 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.category-header-container .crown-icon {
  font-size: 1.8rem; 
  margin-bottom: 12px; 
  opacity: 1; 
  background-color: var(--color-background-testimonials); 
  padding: 0 20px; 
  position: relative;
  z-index: 2; 
  line-height: 1;
}



.category-title {
  font-family: var(--font-footer-heading);
  font-size: 2rem;
  font-weight: 250;
  color: var(--color-primary);
  margin: 1.5rem 0 0 0;
  position: relative;
  z-index: 2; 
  line-height: 1.2;
  background-color: transparent; 
  padding: 0; 
}

.category-desc {
  font-family: var(--font-primary);
  font-size: 0.95rem;
  color: #666;
  max-width: 500px;
  margin: 12px auto 0;
  padding: 0 16px;
}

/* ==============================
   Package Pricing & Info
============================== */
.package-offer {
  background-color: green;
  color: white;
  padding: 1px 8px;
  border-radius: 10px;
  font-size: 12px;
  display: flex;
  justify-content: center;
  align-items: center;
  align-self: center;
}

.package-price-original {
  color: grey;
  text-decoration: line-through;
  font-size: 14px;
  
}

.package-target {
  font-size: 0.8rem; 
  color: #666;
  margin-top: 4px;
  margin-bottom: 8px;
}

.package-price-info {
  margin-bottom: 8px;
  display: flex;
  justify-content: start;
  align-items: start;
  gap: 10px;
}

.package-price {
  color: #d4af6d; 
  font-size: 1.3rem; 
  font-weight: 400;
  font-family: var(--font-primary);
}

/* ==============================
   Package Features List 
============================== */
.package-features {
  list-style: none; 
  padding: 0; 
  margin: 0 0 12px 0;
  display: flex;
  flex-direction: column;
  gap: 12px; 
  font-family: var(--font-primary);
  font-size: 0.85rem;
}

.package-features li {
  position: relative;
  padding-left: 28px; 
  color: #444;
  line-height: 1.4;
  display: flex;
  align-items: flex-start;
  gap: 10px; 
}

.package-features li::before {
  content: "✓"; 
  position: absolute;
  left: 0;
  top: 0;
  color: #d4af6d; 
  font-weight: 800;
  font-size: 1rem; 
}

.check-icon {
  color: #d4af6d; 
  font-weight: bold;
}

/* ==============================
   Buttons & Footer
============================== */
.btn-book-now {
  width: 100%; 
  background-color: #ffffff;
  color: #ffffff;
  border: 1px solid #d4af6d;
  padding: 7px 12px; 
  border-radius: 4px;
  font-family: var(--font-primary);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-top: auto; 
}

.btn-book-now:hover {
  background-color: #d4af6d;
  color: #ffffff;
  cursor: pointer;
}

.btn-callback {
  font-size: 1.1rem;
  font-family: var(--font-primary);
  background-color: rgb(203, 166, 103);
  color: white;
  padding: .5rem 1rem;
  border-radius: 6px;
  border: none;
  transition: background-color .3s;
}

.btn-callback:hover {
  background-color: rgb(231, 194, 129);
  cursor: pointer;
}

.packages-footer {
  padding: 1rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 1rem;
}

.packages-note-div {
  padding: 1rem;
  border-radius: 15px;
  background-color: #f7ead3;
  text-align: center;
}

.hidden { display: none; }

/* ==============================
   Media Queries
============================== */

@media (max-width: 1024px) and (min-width: 769px) {
  /* Added to cleanly bridge the gap if needed, though mostly relying on min-width 1024px below */
}

@media (min-width: 1024px) {
  .packages-content {
    max-width: 1100px; 
  }
  .packages-content.compact-view {
    max-width: 600px; 
    /* transition: max-width 0.4s ease;  */
  }
}

@media (max-width: 768px) {
  .packages-section {
    padding: 0;
  }
  .packages-section h2 {
    font-size: 2.2rem;
  }
  .category-title {
    font-size: 1.7rem;
  }
  .packages-grid {
    grid-template-columns: 1fr; 
  }
  .package-card:only-child {
    grid-column: auto;
  }
  .packages-content {
    padding: 0 1rem 1.5rem 1rem;
  }
}





.crown-icon svg{
  stroke:#b8954f;
  display: block;
  width: 36px;
  height: 36px;
  shape-rendering: geometricPrecision;
}

/* 1. Hide the toggle button on desktop by default */
.package-toggle {
  display: none;
  position: absolute;
  top: 15px;
  right: 15px;
  background: none;
  border: none;
  cursor: pointer;
  transition: transform 0.3s; /* This handles the flip animation */
  /* padding: 5px; */
  width: 32px;
  height: 32px;
}

/* 2. Mobile specific styles */
@media (max-width: 768px) {
  .package-toggle {
    display: block; /* Show the button on mobile */
    color: var(--color-primary);
    background-color: rgb(249, 247, 236);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
  }

  /* Hide features by default on mobile */
  .package-features {
    display: block; /* Change from none to block so it can animate */
    max-height: 0;   /* Start at zero height */
    overflow: hidden;
    opacity: 0;
    margin: 0;      /* Remove margin when collapsed to avoid jumps */
    padding: 0;
    transition: max-height 0.3s cubic-bezier(0.4, 0, 0.2, 1), 
                opacity 0.2s ease, 
                margin 0.3s ease;
  }

  /* When expanded, we animate to a height large enough to fit the content */
  .package-card.is-expanded .package-features {
    max-height: 500px; /* Adjust this to be taller than your longest list */
    opacity: 1;
    margin-top: 0px;
    margin-bottom: 12px;
  }

  /* Flip the icon 180 degrees when expanded */
  .package-card.is-expanded .package-toggle {
    transform: rotate(180deg);
  }
}