/**
 * Travel-specific CSS for zFernand0.github.io
 * Contains shared styles for travel itinerary pages
 */

/* Travel Page Base Styles */
.travel-page {
  font-family: "Inter", sans-serif;
  background-color: #fdfdfb;
  color: #4a453d;
}

.travel-page.light {
  background-color: #fdfbf8;
  color: #4b4b4b;
}

/* Navigation Styles */
.nav-button {
  transition: all 0.2s ease-in-out;
}

.nav-button.active {
  background-color: #d6c7ae;
  color: #4a453d;
}

.nav-button:hover {
  background-color: #c3b8a8;
}

/* Timeline Styles */
.timeline-item-content {
  transition: all 0.3s ease;
}

.task-checkbox:checked + .timeline-item-content {
  text-decoration: line-through;
  opacity: 0.6;
}

.day-content {
  display: none;
}

.day-content.active {
  display: block;
}

/* Accordion Styles */
.tips-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s ease-out;
}

.tips-content.open {
  max-height: 1000px;
}

.accordion-header {
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.accordion-header:hover {
  background-color: #f8f3f0;
}

.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s ease-in-out;
}

.accordion-content.open {
  max-height: 1000px;
}

/* Filter Styles */
.filter-btn {
  transition: all 0.2s ease-in-out;
}

.filter-btn.active {
  background-color: #c84630;
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.filter-btn:not(.active):hover {
  background-color: #e8a798;
}

/* Map Styles */
.map-city {
  transition: all 0.2s ease-in-out;
  cursor: pointer;
}

.map-city:hover {
  transform: scale(1.05);
}

.map-line {
  position: absolute;
  background-color: #3e606f;
  opacity: 0.5;
}

/* Activity Card Styles */
.activity-card {
  transition:
    transform 0.3s ease,
    opacity 0.3s ease;
  will-change: transform, opacity;
}

.activity-card.hidden {
  transform: scale(0.95);
  opacity: 0;
  display: none;
}

/* Chart Container Styles */
.chart-container {
  position: relative;
  height: 256px;
  width: 100%;
  max-width: 384px;
  margin-left: auto;
  margin-right: auto;
}

@media (min-width: 768px) {
  .chart-container {
    height: 288px;
  }
}

/* Travel-specific color schemes */
.travel-japan {
  --primary-color: #c84630;
  --secondary-color: #3e606f;
  --accent-color: #e8a798;
  --background-color: #fdfbf8;
  --text-color: #4b4b4b;
}

.travel-korea {
  --primary-color: #a89f91;
  --secondary-color: #8e8373;
  --accent-color: #d6c7ae;
  --background-color: #fdfdfb;
  --text-color: #4a453d;
}

/* Responsive Design */
@media (max-width: 768px) {
  .travel-page {
    padding-top: 64px;
  }

  .travel-korea {
    padding-top: 0;
  }

  .nav-button {
    font-size: 0.875rem;
    padding: 0.5rem 0.75rem;
  }
}
