/* Section-specific styles */

/* Info section */
.info-section .info-content {
  background-color: white;
  padding: var(--space-2);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

.info-content p {
  margin-bottom: var(--space-1);
}

.info-content p:last-child {
  margin-bottom: 0;
}

/* Schedule section */
.schedule-info,
.schedule-note {
  margin-bottom: var(--space-2);
}

.schedule-actions {
  margin-bottom: var(--space-3);
  text-align: center;
}

/* Routes section */
.routes-section {
  background-color: var(--background-color);
  padding: var(--space-2);
  border-radius: var(--radius-md);
  margin-bottom: var(--space-4);
}

/* Schedule content */
.schedule-content {
  margin-bottom: var(--space-3);
  overflow-x: auto;
}

/* Nearby section */
.nearby-info {
  margin-bottom: var(--space-2);
}

/* Rating section */
.rating-section {
  padding: var(--space-2);
  background-color: white;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  margin-bottom: var(--space-4);
}

/* Comments section */
.comments-section {
  margin-top: var(--space-4);
}

.comments-list {
  margin-top: var(--space-3);
}

.comment {
  background-color: white;
  border-radius: var(--radius-md);
  padding: var(--space-3);
  margin-bottom: var(--space-2);
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-medium);
}

.comment:hover {
  transform: translateY(-2px);
}

.comment-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-2);
  padding-bottom: var(--space-1);
  border-bottom: 1px solid var(--border-light);
}

.comment-author {
  font-weight: 500;
  color: var(--text-color);
}

.comment-date {
  font-size: var(--font-size-sm);
  color: var(--text-light);
}

.comment-content {
  color: var(--text-color);
  line-height: 1.6;
}

.comment-content p {
  margin: 0;
}

/* Animation for interactive elements */
@keyframes pulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
  100% {
    transform: scale(1);
  }
}

.btn-primary:active,
.schedule-tab.active:active {
  animation: pulse 0.3s ease-in-out;
}

/* Search section enhancements */
.search-section {
  position: relative;
  z-index: 1;
}

/* Schedule section accordion effect */
.schedule-info {
  position: relative;
  padding-right: 20px;
}

/* Related section hover effects */
.related-section {
  margin-top: var(--space-4);
}

.related-item {
  position: relative;
  overflow: hidden;
}

.related-item::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--primary-color);
  transition: width var(--transition-medium);
}

.related-item:hover::after {
  width: 100%;
}

/* Route planner styling */
.route-planner {
  background-color: white;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  margin-top: var(--space-3);
  padding: var(--space-2);
}

/* Media queries for section-specific responsiveness */
@media (min-width: 768px) {
  .route-planner-form {
    display: flex;
    gap: var(--space-2);
  }

  .route-planner-form .form-group {
    flex: 1;
  }
}

@media (max-width: 576px) {
  .schedule-table {
    font-size: var(--font-size-sm);
  }

  .schedule-tab {
    padding: var(--space-1) var(--space-1);
    font-size: var(--font-size-sm);
  }

  .comment-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .comment-date {
    margin-top: var(--space-1);
  }
}