/* CSS Core & Dynamic Styling System */

:root {
  --primary: #1e3a8a;
  --primary-light: #3b82f6;
  --accent: #f59e0b;
  --accent-hover: #d97706;
  --bg-dark: #0f172a;
  --bg-light: #f8fafc;
  --card-bg: #ffffff;
  --text-main: #1e293b;
  --text-muted: #64748b;
  --border-color: #e2e8f0;
  
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  
  --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.12);
  
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

body {
  background-color: var(--bg-light);
  color: var(--text-main);
  line-height: 1.6;
  padding-bottom: 40px;
}

/* Container */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header & Hero */
.hero {
  position: relative;
  background: linear-gradient(135deg, #0b132b 0%, #1c2541 50%, #3a506b 100%);
  color: #ffffff;
  padding: 60px 20px 80px;
  text-align: center;
  overflow: hidden;
  border-bottom-left-radius: var(--radius-lg);
  border-bottom-right-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 50% 20%, rgba(59, 130, 246, 0.15), transparent 70%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 850px;
  margin: 0 auto;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 6px 16px;
  border-radius: 50px;
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  color: #fbbf24;
  margin-bottom: 16px;
}

.hero h1 {
  font-size: 2.8rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  margin-bottom: 12px;
  background: linear-gradient(to right, #ffffff, #93c5fd);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero .subtitle {
  font-size: 1.1rem;
  color: #cbd5e1;
  margin-bottom: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}

/* Travel Info Badges */
.travel-info-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  margin-top: 24px;
}

.info-card {
  background: rgba(255, 255, 255, 0.07);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 16px 20px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  gap: 14px;
  text-align: left;
}

.info-card i {
  font-size: 1.6rem;
  color: #60a5fa;
  background: rgba(255, 255, 255, 0.1);
  padding: 12px;
  border-radius: var(--radius-sm);
}

.info-card.warning i {
  color: #fbbf24;
}

.info-card .label {
  display: block;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #94a3b8;
}

.info-card strong {
  display: block;
  font-size: 0.95rem;
  color: #f8fafc;
  font-weight: 600;
}

/* Navigation Tabs */
.navigation-tabs {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin: -35px auto 40px;
  position: relative;
  z-index: 10;
  flex-wrap: wrap;
}

.tab-btn {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  padding: 14px 24px;
  border-radius: var(--radius-md);
  cursor: pointer;
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 170px;
  transition: var(--transition);
}

.tab-btn:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-light);
}

.tab-btn.active {
  background: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
  box-shadow: 0 10px 20px rgba(30, 58, 138, 0.3);
}

.tab-btn .day-num {
  font-size: 0.8rem;
  text-transform: uppercase;
  font-weight: 700;
  opacity: 0.8;
}

.tab-btn .day-date {
  font-size: 1.1rem;
  font-weight: 800;
  margin: 2px 0;
}

.tab-btn .day-tag {
  font-size: 0.75rem;
  opacity: 0.9;
  white-space: nowrap;
}

.maps-all-btn {
  justify-content: center;
  flex-direction: row;
  gap: 10px;
  background: #059669;
  color: #ffffff;
  border-color: #059669;
  font-weight: 700;
}

.maps-all-btn:hover {
  background: #047857;
}

.maps-all-btn.active {
  background: #064e3b;
  border-color: #064e3b;
}

/* Tab Content Toggle */
.tab-content {
  display: none;
  animation: fadeIn 0.4s ease-in-out;
}

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

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Day Header & Weather Box */
.day-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
  margin-bottom: 30px;
  background: var(--card-bg);
  padding: 24px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  flex-wrap: wrap;
}

.day-title h2 {
  font-size: 1.8rem;
  color: var(--primary);
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.day-title p {
  color: var(--text-muted);
  font-size: 0.98rem;
}

/* Weather Card */
.weather-box {
  background: #f1f5f9;
  padding: 16px 20px;
  border-radius: var(--radius-sm);
  border-left: 4px solid var(--primary-light);
  min-width: 320px;
  flex: 1;
  max-width: 480px;
}

.weather-location {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 12px;
  border-bottom: 1px solid #e2e8f0;
  padding-bottom: 6px;
}

.weather-forecast {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.weather-slot {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.82rem;
  padding: 6px 10px;
  border-radius: 6px;
  background: #ffffff;
}

.weather-slot.alert {
  background: #fff7ed;
  border: 1px solid #ffedd5;
  color: #9a3412;
}

.weather-slot.highlight-sun {
  background: #f0fdf4;
  border: 1px solid #dcfce7;
  color: #166534;
}

.weather-icon {
  font-size: 1.2rem;
  color: #f59e0b;
}

.weather-slot.alert .weather-icon {
  color: #ea580c;
}

.weather-slot strong {
  display: block;
}

.weather-slot span {
  opacity: 0.85;
}

/* Timeline Components */
.timeline {
  position: relative;
  padding-left: 20px;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 95px;
  top: 15px;
  bottom: 15px;
  width: 3px;
  background: #cbd5e1;
  border-radius: 2px;
}

.timeline-item {
  display: flex;
  gap: 24px;
  margin-bottom: 28px;
  position: relative;
}

.time-badge {
  width: 110px;
  min-width: 110px;
  background: var(--primary);
  color: #ffffff;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 8px 12px;
  border-radius: 20px;
  text-align: center;
  height: fit-content;
  box-shadow: var(--shadow-sm);
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.timeline-card {
  background: var(--card-bg);
  border-radius: var(--radius-md);
  padding: 24px;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  flex-grow: 1;
  transition: var(--transition);
}

.timeline-card:hover {
  box-shadow: var(--shadow-md);
  border-color: #cbd5e1;
}

.timeline-card.highlight-nature {
  border-left: 5px solid #10b981;
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 12px;
  flex-wrap: wrap;
  gap: 10px;
}

.card-header h3 {
  font-size: 1.25rem;
  color: var(--primary);
  display: flex;
  align-items: center;
  gap: 10px;
}

.tag-type {
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.tag-type.driving { background: #eff6ff; color: #1d4ed8; }
.tag-type.urban { background: #fef3c7; color: #b45309; }
.tag-type.trek { background: #ecfdf5; color: #047857; }
.tag-type.rest { background: #f3e8ff; color: #6b21a8; }

.timeline-card p {
  color: var(--text-main);
  margin-bottom: 14px;
  font-size: 0.95rem;
}

/* Highlights List */
.highlights-list {
  list-style: none;
  margin: 12px 0 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.highlights-list li {
  font-size: 0.9rem;
  background: #f8fafc;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid #edf2f7;
  display: flex;
  align-items: center;
  gap: 10px;
}

.highlights-list i {
  color: var(--primary-light);
}

/* Practical Tips Box */
.tips-box {
  background: #fffbe8;
  border: 1px solid #fef08a;
  border-left: 4px solid #eab308;
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  margin: 14px 0;
}

.tips-box h4 {
  font-size: 0.88rem;
  color: #854d0e;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.tips-box ul {
  list-style: none;
  padding-left: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.tips-box li {
  font-size: 0.85rem;
  color: #713f12;
  position: relative;
  padding-left: 14px;
}

.tips-box li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: #ca8a04;
  font-weight: bold;
}

.hike-details {
  display: flex;
  gap: 16px;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  color: #166534;
  margin-bottom: 16px;
  flex-wrap: wrap;
  font-weight: 600;
}

/* Buttons and Links */
.action-links {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 16px;
}

.btn-map {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent);
  color: #ffffff;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.85rem;
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  transition: var(--transition);
  box-shadow: 0 2px 4px rgba(245, 158, 11, 0.3);
}

.btn-map:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(245, 158, 11, 0.4);
}

.btn-map.secondary {
  background: #3b82f6;
  box-shadow: 0 2px 4px rgba(59, 130, 246, 0.3);
}

.btn-map.secondary:hover {
  background: #2563eb;
}

.btn-map.small {
  padding: 6px 12px;
  font-size: 0.8rem;
}

/* Options Grid Day 3 */
.options-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
  margin-top: 12px;
}

.option-card {
  background: #f8fafc;
  border: 1px solid var(--border-color);
  padding: 16px;
  border-radius: var(--radius-sm);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.option-card h4 {
  font-size: 1rem;
  color: var(--primary);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.option-card p {
  font-size: 0.88rem;
  margin-bottom: 14px;
}

/* Maps Summary View */
.maps-section-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 24px;
}

.maps-category {
  background: var(--card-bg);
  border-radius: var(--radius-md);
  padding: 24px;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
}

.maps-category h3 {
  font-size: 1.3rem;
  color: var(--primary);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
  border-bottom: 2px solid #f1f5f9;
  padding-bottom: 10px;
}

.map-link-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 14px;
  background: #f8fafc;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  margin-bottom: 12px;
}

.map-link-card .info strong {
  display: block;
  font-size: 0.9rem;
  color: var(--text-main);
}

.map-link-card .info span {
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* Footer */
footer {
  margin-top: 60px;
  text-align: center;
  padding: 30px 20px;
  background: #0f172a;
  color: #94a3b8;
  border-top: 1px solid #1e293b;
}

footer p {
  font-size: 1rem;
  font-weight: 600;
  color: #f8fafc;
  margin-bottom: 4px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .hero h1 { font-size: 2rem; }
  .timeline::before { left: 20px; display: none; }
  .timeline { padding-left: 0; }
  .timeline-item { flex-direction: column; gap: 10px; }
  .time-badge { width: 100%; text-align: left; justify-content: flex-start; }
  .day-header { flex-direction: column; }
  .weather-box { width: 100%; max-width: 100%; }
}
