.ac-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}

.ac-card {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 350px;
  border-radius: 10px;
  overflow: hidden;
  text-decoration: none;
  color: #fff;
}

/* background layer */
.ac-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-image: inherit; /* not valid; we'll fix in HTML */
  transition: transform 0.6s ease, filter 0.4s ease;
  z-index: 0;
	filter: brightness(70%);
}

.ac-card:hover::before {
  transform: scale(1.1);
  filter: brightness(100%);
}

.ac-card .overlay {
  position: relative; /* sits above the bg */
  z-index: 1;
  text-align: center;
	padding: 0px 15px;
}


.activity-card h3 {
  font-weight: bold;
  margin-bottom: 15px;
}

.ac-grid.grid-type-compact .ac-card::before {
	filter: brightness(40%)
}

.ac-card-price {
	margin-bottom: 1em;
}

/* If only one package, center it nicely instead of full width */
.linked-packages.packages-count-1 {
    display: flex;
    justify-content: center;
}

.linked-packages.packages-count-1 .ac-card {
    max-width: 400px;
    width: 100%;
}

/* If two, make them 50/50 */
.linked-packages.packages-count-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}