@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&family=Noto+Sans+TC:wght@300;400;500;700&display=swap');

:root {
  /* Super Dark Theme Colors */
  --bg-darkest: #000000;
  --bg-card: #09090b;
  --bg-card-hover: #121215;
  --border-color: rgba(255, 255, 255, 0.05);
  --border-active: #d4af37; /* Violet */
  
  --text-white: #ffffff;
  --text-light: #f3f4f6;
  --text-muted: #8e94a0;
  --text-gold: #dfba5d;
  
  --accent-gold: #d4af37;
  --accent-gold-glow: rgba(212, 175, 55, 0.25);
  
  --success: #34d399;
  --info: #38bdf8;
  --warning: #fbbf24;
  
  --border-radius-lg: 16px;
  --border-radius-md: 10px;
  --border-radius-sm: 6px;
  
  --transition-smooth: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Outfit', 'Noto Sans TC', -apple-system, BlinkMacSystemFont, sans-serif;
  background-color: var(--bg-darkest);
  color: var(--text-light);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  line-height: 1.6;
}

/* Background glowing ambiance */
.ambiance-glow {
  position: absolute;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  filter: blur(150px);
  z-index: -1;
  opacity: 0.12;
  pointer-events: none;
}

.glow-top-left {
  top: -10%;
  left: -5%;
  background: var(--accent-gold);
}

.glow-bottom-right {
  bottom: -10%;
  right: -5%;
  background: #3b82f6;
}

/* Custom Scrollbar styling */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: var(--bg-darkest);
}

::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.08);
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.18);
}

/* Header Section */
.page-header {
  padding: 2.2rem 2.5rem 1.8rem 2.5rem;
  max-width: 1440px;
  width: 100%;
  margin: 0 auto 0.5rem auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(212, 175, 55, 0.18);
  position: relative;
}

.page-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 2.5rem;
  right: 2.5rem;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent-gold), transparent);
}

.brand-title {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.brand-icon {
  color: var(--text-gold);
}

.brand-text h1 {
  font-size: 1.5rem;
  font-weight: 700;
  background: linear-gradient(to right, #ffffff, #dfba5d);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.brand-text p {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.back-to-home {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  border: 1px solid var(--border-color);
  padding: 0.5rem 0.9rem;
  border-radius: var(--border-radius-sm);
  transition: var(--transition-smooth);
}

.back-to-home:hover {
  color: var(--text-white);
  border-color: var(--border-active);
  background: rgba(255, 255, 255, 0.02);
}

/* Date Selector Scrollbar */
.date-selector-container {
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  padding: 0.5rem 2.5rem;
  overflow-x: auto;
  display: flex;
  gap: 0.85rem;
  scrollbar-width: thin;
}

.date-card {
  flex: 0 0 auto;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-md);
  padding: 0.85rem 1.25rem;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 110px;
  transition: var(--transition-smooth);
}

.date-card:hover {
  border-color: rgba(255, 255, 255, 0.15);
  transform: translateY(-2px);
}

.date-card.active {
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.15) 0%, rgba(99, 102, 241, 0.15) 100%);
  border-color: var(--border-active);
  box-shadow: 0 0 15px var(--accent-gold-glow);
}

.date-card .day-label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.25rem;
}

.date-card.active .day-label {
  color: var(--text-gold);
}

.date-card .date-label {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-white);
}

.date-card .loc-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
  white-space: nowrap;
}

.date-card.active .loc-label {
  color: var(--text-light);
}

/* Main Itinerary Content Area */
.itinerary-main {
  max-width: 1440px;
  width: 100%;
  margin: 1.5rem auto 3rem auto;
  padding: 0 2.5rem;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2rem;
  flex-grow: 1;
}

.content-left {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.content-right {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

/* Destination Banner Card */
.banner-card {
  background: linear-gradient(135deg, rgba(20, 21, 28, 0.9) 0%, rgba(13, 14, 18, 0.9) 100%);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-lg);
  padding: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.banner-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: var(--accent-gold);
}

.banner-details h2 {
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--text-white);
  margin-bottom: 0.35rem;
  letter-spacing: -0.02em;
}

.banner-details .day-badge {
  background: rgba(192, 132, 252, 0.15);
  color: var(--text-gold);
  padding: 0.25rem 0.75rem;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 600;
  margin-left: 0.8rem;
  vertical-align: middle;
}

.banner-details .date-full {
  font-size: 1.1rem;
  color: var(--text-muted);
}

.banner-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.5rem;
}

.load-badge {
  font-size: 0.8rem;
  padding: 0.35rem 0.75rem;
  border-radius: var(--border-radius-sm);
  font-weight: 600;
}

.load-badge.high {
  background: rgba(239, 68, 68, 0.12);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.2);
}

.load-badge.medium {
  background: rgba(245, 158, 11, 0.12);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.2);
}

.load-badge.low {
  background: rgba(52, 211, 153, 0.12);
  color: #34d399;
  border: 1px solid rgba(52, 211, 153, 0.2);
}

/* Timeline Cards */
.timeline-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-top: 2px solid var(--accent-gold);
  border-radius: var(--border-radius-lg);
  padding: 2.2rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.card-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-white);
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.card-title svg {
  color: var(--text-gold);
}

.timeline-list {
  position: relative;
  padding-left: 1.8rem;
  display: flex;
  flex-direction: column;
  gap: 1.8rem;
}

/* Timeline Line */
.timeline-list::before {
  content: '';
  position: absolute;
  left: 5px;
  top: 6px;
  bottom: 6px;
  width: 2px;
  background: rgba(255, 255, 255, 0.08);
}

.timeline-item {
  position: relative;
}

/* Timeline dot */
.timeline-item::before {
  content: '';
  position: absolute;
  left: -26px;
  top: 6px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--bg-darkest);
  border: 2px solid var(--text-gold);
  box-shadow: 0 0 8px var(--accent-gold-glow);
  z-index: 2;
}

.timeline-item.important::before {
  background: var(--text-gold);
}

.timeline-content h3 {
  font-size: 1.05rem;
  color: var(--text-light);
  font-weight: 600;
  margin-bottom: 0.35rem;
}

.timeline-content p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* Meta Data Cards Row */
.meta-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.2rem;
}

.meta-info-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-top: 2px solid var(--accent-gold);
  border-radius: var(--border-radius-lg);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.meta-header-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-white);
}

.meta-header-item svg {
  color: var(--text-gold);
}

.meta-body-text {
  font-size: 0.9rem;
  color: var(--text-muted);
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.meta-body-text span strong {
  color: var(--text-light);
}

/* Notes & Warnings card */
.notes-card {
  background: rgba(212, 175, 55, 0.03);
  border: 1px solid rgba(212, 175, 55, 0.1);
  border-radius: var(--border-radius-lg);
  padding: 1.5rem;
}

.notes-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
}

.notes-card p svg {
  color: var(--text-gold);
  flex-shrink: 0;
  margin-top: 0.15rem;
}

/* Gallery Section */
.gallery-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-top: 2px solid var(--accent-gold);
  border-radius: var(--border-radius-lg);
  padding: 1.8rem;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.single-gallery-container {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: var(--border-radius-md);
  border: 1px solid var(--border-color);
  cursor: pointer;
  background: rgba(0, 0, 0, 0.2);
}

.single-gallery-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-smooth);
}

.single-gallery-container:hover img {
  transform: scale(1.04);
}

.single-gallery-container::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, transparent 50%);
  opacity: 0.85;
  transition: var(--transition-smooth);
}

.single-gallery-container:hover::after {
  opacity: 0.95;
}

.single-gallery-title {
  position: absolute;
  bottom: 1rem;
  left: 1.25rem;
  right: 1.25rem;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-gold);
  z-index: 5;
  text-shadow: 0 2px 8px rgba(0,0,0,0.8);
}

/* Interactive Map Card */
.map-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-top: 2px solid var(--accent-gold);
  border-radius: var(--border-radius-lg);
  padding: 1.8rem;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  flex-grow: 1;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.map-wrapper {
  position: relative;
  width: 100%;
  height: 380px;
  border-radius: var(--border-radius-md);
  overflow: hidden;
  border: 1px solid var(--border-color);
}

.map-iframe {
  width: 100%;
  height: 100%;
  border: none;
  filter: grayscale(0.9) invert(0.9) contrast(1.2); /* Premium dark-map filter */
  opacity: 0.85;
  transition: var(--transition-smooth);
}

.map-iframe:hover {
  opacity: 1;
  filter: none; /* Revert back on hover for details */
}

/* Skeleton Loading States */
.skeleton {
  animation: skeleton-loading 1.5s linear infinite alternate;
}

@keyframes skeleton-loading {
  0% { background-color: rgba(255, 255, 255, 0.02); }
  100% { background-color: rgba(255, 255, 255, 0.08); }
}

/* Responsive Grid Adjustments */
@media (max-width: 1024px) {
  .itinerary-main {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    padding: 0 1.5rem;
  }
  .page-header, .date-selector-container {
    padding: 1.5rem 1.5rem 0.5rem 1.5rem;
  }
}

@media (max-width: 768px) {
  .meta-grid {
    grid-template-columns: 1fr;
  }
  .banner-card {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }
  .banner-meta {
    align-items: flex-start;
  }
  .gallery-grid {
    grid-template-columns: 1fr;
  }
}


/* --- Weather Badge Custom Style --- */
.weather-badge {
  background: rgba(212, 175, 55, 0.08);
  border: 1px solid rgba(212, 175, 55, 0.2);
  padding: 0.35rem 0.75rem;
  border-radius: var(--border-radius-sm);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-gold);
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.1rem;
  text-align: right;
  min-width: 100px;
}

.weather-desc {
  font-size: 0.65rem;
  color: var(--text-muted);
  font-weight: 400;
}

/* --- Map Toggle Button Style --- */
.map-toggle-group {
  display: flex;
  gap: 0.25rem;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid var(--border-color);
  padding: 0.2rem;
  border-radius: var(--border-radius-sm);
}

.map-toggle-btn {
  background: transparent;
  border: none;
  padding: 0.3rem 0.65rem;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-muted);
  cursor: pointer;
  transition: var(--transition-smooth);
  font-family: inherit;
}

.map-toggle-btn.active {
  background: var(--accent-gold);
  color: #000000;
  box-shadow: 0 2px 6px rgba(212, 175, 55, 0.3);
}

.map-toggle-btn:hover:not(.active) {
  color: var(--text-white);
  background: rgba(255, 255, 255, 0.03);
}

/* Bold Emphasis for Gold Texts */
strong {
  font-weight: 700;
}

.brand-text h1, .banner-details h2, .card-title, .day-label, .date-label {
  font-weight: 800 !important; /* Make headers bold */
}
