@import url(./colorCode/code.css);

.route-detail-section {
  padding: 40px 0;
  background-image: url("../assets/route/Yatra Detail_d.webp");
  background-size: cover;
  background-position: center;
}

.route-detail-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 16px 12px 32px;
}

.route-detail-card {
  background: var(--white);
  border-radius: 24px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25);
  overflow: hidden;
}

.route-detail-main-title {
  text-align: center;
  background: var(--yellow);
  color: #000;
  font-weight: 800;
  font-size: 1.5rem;
  margin: 0;
  width: 30%;
  margin: auto;
  border-radius: 10px;
  padding: 10px 16px;
  margin-bottom: 2%;
}

.route-detail-sub-title {
  margin: 0;
  padding: 12px 24px;
  background: var(--orange);
  color: #fff;
  font-weight: 700;
  font-size: 1.4rem;
  text-align: center;
}

.route-detail-body {
  display: flex;
  gap: 24px;
  padding: 24px;
}

.route-detail-image {
  flex: 1.1;
}

.route-detail-text {
  flex: 1;
  font-size: 1.2rem;
}

.route-detail-list li {
  margin-bottom: 4px;
}

.route-detail-stats {
  border-top: 1px solid #eee;
  padding: 16px 24px 24px;
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}

.stat-item {
  flex: 1;
  padding: 8px 12px;
}

.stat-item:nth-child(1), .stat-item:nth-child(2) {
  border-right: 1px solid #e0e0e0;
}

.stat-label {
  display: block;
  font-size: 0.9rem;
}

.stat-value {
  display: block;
  font-weight: 700;
  font-size: 1.2rem;
}

.stat-value.highlight {
  color: var(--orange);
}

@media (max-width: 767.98px) {
  .route-detail-section {
    padding: 24px 0;
    /* background-image: url("../assets/route/Yatra Detail_m.webp"); */
  }

  .route-detail-body {
    flex-direction: column;
    padding: 16px;
  }

  .route-detail-stats {
    padding: 12px 16px 20px;
  }
  
  .stat-item{
    padding: 0;
  }

  .route-detail-main-title {
    font-size: 1.1rem;
    width: 80%;
    margin-bottom: 12px;
  }

  .route-detail-sub-title {
    font-size: 1rem;
  }
}
