/* ============================================
   Xummer eSIM – Plan Page Styles
   ============================================ */

/* ── Hero ── */
.plans-hero {
  background-color: #fcfdfe;
}

/* ── Plan Cards Grid ── */
.plans-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
  align-items: start;
}

.region-card {
  display: block;
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  text-decoration: none;
  background-color: #f0f0f0;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  isolation: isolate;
}

.region-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.card-image-wrapper {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.card-image-wrapper img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.6s ease;
}

.region-card:hover .card-image-wrapper img {
  transform: scale(1.1);
}

/* Glassmorphism Bar Overlay */
.card-overlay-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  box-sizing: border-box;
  padding: 34px 20px 20px;
  background: linear-gradient(180deg, transparent 0%, rgba(8, 20, 35, 0.78) 58%, rgba(8, 20, 35, 0.9) 100%);
  z-index: 5;
}

/* Add a subtle darker gradient for readability on light images */
.region-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 60%, rgba(0, 0, 0, 0.3) 100%);
  z-index: 2;
}

.card-content {
  position: relative;
  z-index: 6;
}

.region-name {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.25;
  color: #ffffff;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.region-price {
  margin: 0;
  font-size: 0.9rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.9);
}

@media (max-width: 576.98px) {
  .plans-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .region-card {
    aspect-ratio: 16 / 9;
  }
}
