/* ============================================
   NISALIFE TRAVEL — Premium Route Cards
   Clean design: Abstract background colors + elegant hover FX
   Color requirements: Black, Blue, Gold/Yellow, White, Orange
   ============================================ */

.routes-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
@media (max-width: 1024px) { 
  .routes-grid { grid-template-columns: repeat(2, 1fr); } 
}
@media (max-width: 768px)  { 
  .routes-grid { grid-template-columns: 1fr; gap: 16px; } 
}

/* Route card */
.route-card {
  position: relative;
  display: block;
  border-radius: 16px;
  overflow: hidden;
  aspect-ratio: 4/3;
  cursor: pointer;
  text-decoration: none;
  border: 1px solid rgba(212,175,55,0.15);
  transition: border-color 0.4s ease, transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.4s ease;
  background: #0a0a0a;
}
@media (max-width: 768px) {
  .route-card { aspect-ratio: 16/9; } /* Better fit for mobile to avoid being too tall */
}

.route-card:hover {
  border-color: rgba(212,175,55,0.6);
  transform: translateY(-8px);
  box-shadow: 0 30px 60px rgba(0,0,0,0.7), 0 0 0 1px rgba(212,175,55,0.25);
}

/* Abstract Backgrounds */
.route-card-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1), filter 0.4s ease;
  /* subtle pattern over the gradient */
  background-image: 
    radial-gradient(circle at 100% 0%, rgba(255,255,255,0.08) 0%, transparent 40%),
    radial-gradient(circle at 0% 100%, rgba(0,0,0,0.5) 0%, transparent 40%);
}

/* 0: Siyah (Black) */
.route-color-0 { background-color: #111111; background: linear-gradient(135deg, #1f1f1f 0%, #050505 100%); }
/* 1: Mavi (Blue) */
.route-color-1 { background-color: #0d253f; background: linear-gradient(135deg, #1e3c72 0%, #0a192f 100%); }
/* 2: Sarı (Yellow/Gold) */
.route-color-2 { background-color: #B8960C; background: linear-gradient(135deg, #D4AF37 0%, #8B6914 100%); }
/* 3: Beyaz (White) */
.route-color-3 { background-color: #e5e5e5; background: linear-gradient(135deg, #ffffff 0%, #cccccc 100%); }
/* 4: Turuncu (Orange) */
.route-color-4 { background-color: #FF8F00; background: linear-gradient(135deg, #ff7100 0%, #b34700 100%); }
/* 5: Siyah varyasyon (Black alternate) */
.route-color-5 { background-color: #151515; background: linear-gradient(135deg, #2c3e50 0%, #000000 100%); }

.route-card:hover .route-card-bg {
  transform: scale(1.1);
  filter: brightness(0.85);
}

/* Gradient overlay */
.route-card-overlay {
  position: absolute;
  inset: 0;
  /* Increased base darkness to ensure text is readable even on White (route-color-3) */
  background: linear-gradient(
    180deg,
    rgba(0,0,0,0.15) 0%,
    rgba(0,0,0,0.5) 50%,
    rgba(0,0,0,0.92) 100%
  );
  transition: opacity 0.4s ease;
}
.route-card:hover .route-card-overlay {
  opacity: 0.8;
}

/* Gold top-left city badge */
.route-city-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(10, 10, 10, 0.4);
  border: 1px solid rgba(212,175,55,0.4);
  border-radius: 50px;
  padding: 6px 16px;
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 600;
  color: #D4AF37;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
@media (max-width: 480px) {
  .route-city-badge { top: 12px; left: 12px; font-size: 0.65rem; padding: 4px 12px; }
}

/* Bottom content */
.route-card-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 24px 20px 20px;
  z-index: 2;
}
.route-card-route {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 8px;
  text-shadow: 0 2px 12px rgba(0,0,0,0.8);
  display: flex;
  align-items: center;
  gap: 10px;
}
@media (max-width: 480px) {
  .route-card-route { font-size: 1rem; }
}

.route-arrow {
  color: #D4AF37;
  font-style: normal;
  font-size: 1.2rem;
}
.route-card-price {
  font-family: var(--font-heading);
  font-weight: 700;
  color: #D4AF37;
  font-size: 1.1rem;
  display: flex;
  align-items: baseline;
  gap: 8px;
  text-shadow: 0 2px 8px rgba(0,0,0,0.8);
}
.route-card-price small {
  color: rgba(255,255,255,0.6);
  font-size: 0.8rem;
  font-weight: 400;
}

/* Hover CTA appears */
.route-card-cta {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, calc(-50% + 20px));
  opacity: 0;
  transition: opacity 0.3s ease, transform 0.3s ease;
  pointer-events: none;
  white-space: nowrap;
  z-index: 3;
}
.route-card:hover .route-card-cta {
  opacity: 1;
  transform: translate(-50%, -50%);
}
.route-card-cta-inner {
  background: linear-gradient(135deg, #D4AF37, #B8960C);
  color: #0a0a0a;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.95rem;
  padding: 14px 32px;
  border-radius: 50px;
  letter-spacing: 0.5px;
  box-shadow: 0 10px 30px rgba(212,175,55,0.4);
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Gold separator line */
.route-separator {
  width: 36px;
  height: 2px;
  background: linear-gradient(90deg, #D4AF37, transparent);
  margin-bottom: 12px;
  transition: width 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.route-card:hover .route-separator { width: 70px; }
