/* Container for the grid tiles */
.attractions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin: 30px 0;
  padding: 0;
}

/* Individual Kafelek (Card) */
.attraction-card {
  position: relative;
  height: 200px;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: var(--card-shadow);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 20px;
  text-decoration: none; /* Removes underline from link */
  transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94), box-shadow 0.3s ease;
}

/* Background Image setup */
.attraction-card .card-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  z-index: 1;
  transition: transform 0.5s ease;
}

/* Dark elegant gradient overlay so white text is readable */
.attraction-card .card-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.2) 60%, transparent 100%);
  z-index: 2;
}

/* Card Text Content */
.attraction-card .card-content {
  position: relative;
  z-index: 3;
  text-align: left; /* Beautiful editorial contrast to centered page text */
}

.attraction-card h3 {
  font-family: 'Montserrat', sans-serif;
  color: #FFFFFF;
  font-size: 1.1rem;
  margin: 0 0 4px 0;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.attraction-card p {
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.9rem;
  margin: 0 0 10px 0;
  text-align: left;
  line-height: 1.4;
}

/* TripAdvisor subtle action button */
.attraction-card .tripadvisor-link {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: #FAF8F5;
  border-bottom: 1px solid rgba(255, 255, 255, 0.6);
  display: inline-block;
  padding-bottom: 2px;
  transition: border-color 0.2s ease;
}

/* Hover Animations */
.attraction-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 32px rgba(44, 42, 41, 0.12);
}

.attraction-card:hover .card-bg {
  transform: scale(1.04); /* Soft zoom effect on the image */
}

.attraction-card:hover .tripadvisor-link {
  border-color: #FFFFFF;
}
