.package-wrapper {
  position: relative;
  height: 800px;
  overflow: hidden;
  background-image: linear-gradient(
      to right,
      rgba(30, 110, 71, 1) 50%,
      transparent
    ),
    url('https://toursite.link/pinnacle/wp-content/uploads/2025/05/packages.png');
  background-size: auto;
  background-position: top right;
  background-repeat: no-repeat;
  display: flex;
  align-items: flex-end;
}

/* animated character / illustration */
.package-image {
  width: 100%;
  transform: scale(0.4);
  transform-origin: bottom right;
  transition: transform 0.5s ease;
}

.package-wrapper:hover .package-image {
  transform: scale(1);
}

/* floating content block */
.package-content {
  position: absolute;
  top: 70px;
  left: 50%;
  transform: translateX(-50%) translateY(-20px);
  align-items: center;
  color: black;
  z-index: 2;
  text-align: center;
  opacity: 0;
  transition: all 0.6s ease;
  pointer-events: none;
}

.package-wrapper:hover .package-content {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
  pointer-events: auto;
}

.package-title {
  font-size: 50px;
  font-weight: 700;
  font-family: 'Philosopher', sans-serif;
  margin: 0;
  color: #F6931D;
  text-align: center;
}

.package-subtitle {
  font-size: 50px;
  margin: 5px 0 0;
  color: white;
  font-weight: 275;
  font-family: 'Poppins', sans-serif;
}

.package-grid {
  display: flex;
  gap: 30px;
  margin-top: 20px;
}

.package-card {
  width: 100%;
  background-position: center;
  background-size: cover;
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

/* fixed aspect box via pseudo-element */
.package-card::before {
  content: "";
  display: block;
  height: 400px;
  width: 300px;
}

.package-card::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 0%;
  background: rgba(30, 110, 71, 0.7);
  transition: height 0.8s ease-in-out, border-radius 0.6s ease-in-out;
  z-index: 1;
}

.package-card:hover::after {
  height: 100%;
  border-top-left-radius: 100% 0px;
  border-top-right-radius: 100% 0px;
}

.package-label {
  position: absolute;
  bottom: 30px;
  left: 0;
  right: 0;
  padding: 5px 10px;
  text-align: center;
  color: white;
  font-size: 20px;
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  z-index: 2;
  transition: transform 0.5s ease;
}

.package-card:hover .package-label {
  transform: translateY(-40%);
}

.package-btn {
  display: inline-block;
  margin-top: 10px;
  padding: 6px 18px;
  font-size: 14px;
  font-family: 'Poppins', sans-serif;
  font-weight: 500;
  color: white;
  background-color: transparent;
  border: 1px solid white;
  border-radius: 5px;
  text-decoration: none;
  opacity: 0;
  transition: all 0.3s ease;
  position: absolute;
  bottom: 15px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
}

.package-card:hover .package-btn {
  opacity: 1;
  background-color: rgba(30, 110, 71, 0);
  color: white;
  transition-delay: 0.2s;
}

.package-btn:hover {
  background-color: #F6931D;
  color: white;
  transition-delay: 0s;
}

/* ----------------------- */
/* TABLET ≤1024px          */
/* ----------------------- */
@media screen and (max-width: 1024px) {
	
	.package-image{
		display: none;
	}
  .package-wrapper {
    height: auto; /* let it grow naturally */
    min-height: 700px;
    flex-direction: column;
    align-items: center;
    padding: 60px 20px 40px;
    background-image: linear-gradient(
        to bottom,
        rgba(30, 110, 71, 0.95) 0%,
        rgba(30, 110, 71, 0.9) 60%,
        rgba(30, 110, 71, 0) 100%
      ),
      url('https://toursite.link/pinnacle/wp-content/uploads/2025/05/packages.png');
    background-size: cover;
    background-position: center;
  }

  /* content should NOT be hover-hidden on touch */
  .package-content {
    position: relative;
    top: 0;
    left: 0;
    transform: none;
    opacity: 1;
    text-align: center;
    pointer-events: auto;
    max-width: 800px;
    width: 100%;
    margin: 0 auto 30px;
  }

  .package-wrapper:hover .package-content {
    /* kill hover dependency */
    opacity: 1;
    transform: none;
  }

  .package-title {
    font-size: 40px;
    line-height: 1.2;
  }

  .package-subtitle {
    font-size: 32px;
    line-height: 1.3;
  }

  .package-grid {
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
  }

  /* 2 columns on tab */
  .package-card {
    flex: 0 1 calc(50% - 10px);
    max-width: 40vw;
  }

  .package-card::before {
    height: 320px;
    width: 100%;
  }

  .package-label {
    font-size: 18px;
  }

  .package-btn {
    font-size: 13px;
    padding: 6px 16px;
  }

  /* image (character / model / illustration) moves below grid */
  .package-image {
    order: 3;
    transform: scale(0.7);
    max-width: 500px;
    margin-top: 30px;
    transform-origin: bottom center;
  }

  .package-wrapper:hover .package-image {
    transform: scale(0.7); /* no hover zoom on touch */
  }
}

/* ----------------------- */
/* MOBILE ≤767px           */
/* ----------------------- */
@media screen and (max-width: 767px) {
  .package-wrapper {
    padding: 50px 16px 30px;
    min-height: unset;
    background-image: linear-gradient(
        to bottom,
        rgba(30, 110, 71, 0.95) 0%,
        rgba(30, 110, 71, 0.9) 50%,
        rgba(30, 110, 71, 0) 100%
      ),
      url('https://toursite.link/pinnacle/wp-content/uploads/2025/05/packages.png');
    background-size: cover;
    background-position: center;
  }

  .package-content {
    margin-bottom: 24px;
    max-width: 100%;
  }

  .package-title {
    font-size: 32px;
  }

  .package-subtitle {
    font-size: 22px;
    font-weight: 300;
  }

  .package-grid {
    flex-direction: column;
    gap: 16px;
    align-items: center;
  }

  /* 1 column on mobile */
  .package-card {
    flex: 0 1 100%;
    width: 100%;
    max-width: 90vw;
  }

  .package-card::before {
    height: 260px;
    width: 100%;
  }

  /* no hover on mobile – keep info visible */
  .package-card::after {
    height: 100%;
    border-top-left-radius: 100% 0px;
    border-top-right-radius: 100% 0px;
  }

  .package-label {
    font-size: 18px;
    transform: translateY(-20%);
    bottom: 50px;
  }

  .package-btn {
    opacity: 1;
    background-color: rgba(30, 110, 71, 0);
    font-size: 13px;
  }

  /* lock hover states in "on" mode */
  .package-card:hover .package-label {
    transform: translateY(-20%);
  }

  .package-card:hover .package-btn {
    opacity: 1;
  }

  .package-image {
    transform: scale(0.8);
    max-width: 320px;
    margin-top: 24px;
  }

  .package-wrapper:hover .package-image {
    transform: scale(0.8);
  }
}
