/* trip.css - Styles for trip.html sections */

/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Roboto', sans-serif;
  line-height: 1.6;
  color: #5C4033;
  background: #F9F4E8;
}

/* Theme Variables */
:root {
  --earth-brown: #5C4033;
  --giraffe-gold: #D8A903;
  --light-leopard-tan: #F9F4E8;
  --muted: #7B5E45;
  --category-gold: #D8A903;
  --package-tan: #A68A64;
  --gradient-primary: linear-gradient(135deg, #D8A903, #F5C518);
  --text: #fff;
  --bg: #fff;
  --glass-bg: rgba(255, 255, 255, 0.95);
}

/* Hero Section */
.trip-hero {
  min-height: 80vh;
  background: url('assets/images/kilimanjaro-hero2.webp') no-repeat center/cover;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
  position: relative;
  overflow: hidden;
  margin: 0; /* Remove default margin */
  padding: 0; /* Remove default padding */
  width: 100%; /* Ensure full width */
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
  padding: 1.2rem;
  animation: fadeInUp 1s ease-out forwards;
}

.hero-title {
  font-size: 3.0rem;
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  margin-bottom: 0.65rem;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.7); /* Enhanced shadow for readability */
  color: #fff;
}

.hero-subtitle {
  font-size: 1.2rem;
  font-family: 'Roboto', sans-serif;
  font-weight: 300;
  margin-bottom: 0.6rem;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.6); /* Subtle shadow for subtitle */
  color: #fff;
}

.hero-cta.btn-primary {
  background: linear-gradient(90deg, var(--giraffe-gold), var(--yellow-ochre));
  color: var(--earth-brown);
  padding: 0.45rem 1.22rem;
  border-radius: 0.45rem;
  font-weight: 700;
  text-decoration: none;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: inline-block;
}

.hero-cta.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(216, 169, 3, 0.5);
}

/* Animation Definition */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  .trip-hero {
    min-height: 50vh;
  }
  .hero-title {
    font-size: 2.5rem;
  }
  .hero-subtitle {
    font-size: 1.1rem;
  }
  .hero-cta.btn-primary {
    padding: 0.8rem 2rem;
  }
}

/* Ensure no gap with navbar */
body {
  margin: 0;
  padding: 0;
}

.trip-hero {
  margin-top: -1px; /* Overlap with navbar bottom border if present */
}

/* Main Layout */
.trip-main {
  padding: 2rem 0;
}

.trip-layout {
  display: flex;
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.trip-sidebar {
  flex: 1;
  max-width: 300px;
  background: var(--glass-bg);
  border-radius: 1rem;
  padding: 1rem;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(10px);
  position: sticky;
  top: 1rem;
  overflow: hidden;
}

.sidebar-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.8rem;
  color: var(--earth-brown);
  margin-bottom: 1rem;
  text-align: center;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.category-list {
  list-style: none;
}

.category-item {
  margin-bottom: 0.5rem;
  background: var(--glass-bg);
  border-radius: 0.5rem;
  overflow: hidden;
  transition: box-shadow 0.3s ease;
}

.category-item:hover {
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.category-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.3rem 0.5rem;
  cursor: pointer;
  background: linear-gradient(90deg, rgba(216, 169, 3, 0.1), transparent);
  border-radius: 0.5rem 0.5rem 0 0;
  transition: background 0.3s ease;
}

.category-header:hover {
  background: linear-gradient(90deg, rgba(216, 169, 3, 0.2), transparent);
}

.category-heading {
  font-family: 'Playfair Display', serif;
  font-size: 1.05rem;
  color: var(--category-gold);
  margin: 0;
  padding: 0.2rem 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.arrow {
  font-size: 0.9rem;
  color: var(--category-gold);
  transition: transform 0.3s ease;
}

.category-item.active .arrow {
  transform: rotate(180deg);
}

.package-list {
  list-style: none;
  padding: 0 0.5rem 0.5rem 0.5rem;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  background: var(--glass-bg);
  border-radius: 0 0 0.5rem 0.5rem;
}

.category-item.active .package-list {
  max-height: 400px;
}

.package-item {
  font-size: 0.95rem;
  color: var(--package-tan);
  padding: 0.3rem 0.5rem;
  cursor: pointer;
  transition: color 0.3s ease, background 0.3s ease;
}

.package-item:hover,
.package-item.active {
  color: var(--giraffe-gold);
  background: rgba(216, 169, 3, 0.1);
  border-radius: 0.3rem;
}

.trip-content {
  flex: 3;
}

.package-detail {
  background: var(--glass-bg);
  border-radius: 1.5rem;
  padding: 2rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(216, 169, 3, 0.2);
}

.detail-content {
  display: none;
}

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

.detail-title {
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  color: var(--earth-brown);
  margin-bottom: 0.5rem;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.detail-duration {
  font-size: 1.1rem;
  color: var(--muted);
  margin-bottom: 1.5rem;
}





.detail-image {
  height: 400px;
  width: 100%;
  background-size: cover;
  background-position: center;
  border-radius: 0.5rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(216, 169, 3, 0.2);
}

.detail-itinerary, .detail-route, .detail-inclusions, .detail-exclusions, .detail-addons {
  margin-bottom: 2rem;
}

.detail-itinerary h4, .detail-route h4, .detail-inclusions h4, .detail-exclusions h4, .detail-addons h4 {
  font-family: 'Playfair Display', serif;
  font-size: 1.6rem;
  color: var(--earth-brown);
  margin-bottom: 0.8rem;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.detail-itinerary ul, .detail-inclusions ul, .detail-exclusions ul, .detail-addons ul {
  list-style-type: disc;
  padding-left: 1.5rem;
  font-size: 1rem;
  color: var(--muted);
  line-height: 1.6;
}

.detail-itinerary li, .detail-inclusions li, .detail-exclusions li, .detail-addons li {
  margin-bottom: 0.5rem;
}

.detail-route p {
  font-size: 1rem;
  color: var(--muted);
  line-height: 1.6;
}

.btn-primary {
  padding: 0.5rem 1.2rem;
  font-size: 1.0rem;
  background: var(--gradient-primary);
  color: var(--text);
  border-radius: 0.75rem;
  text-decoration: none;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: inline-block;
  border: 1px solid rgba(216, 169, 3, 0.3);
}

.btn-primary:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(216, 169, 3, 0.3);
}

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.fade-in {
  animation: fadeIn 1s ease-in;
}

/* Responsive */
@media (max-width: 768px) {
  .trip-layout {
    flex-direction: column;
  }
  .trip-sidebar {
    max-width: 100%;
    position: static;
    margin-bottom: 2rem;
  }
  .sidebar-title {
    font-size: 1.5rem;
  }
  .category-heading {
    font-size: 1.1rem;
  }
  .package-item {
    font-size: 0.9rem;
  }
  .trip-content {
    padding: 1rem;
  }
  .detail-title {
    font-size: 1.8rem;
  }
  .detail-duration {
    font-size: 1rem;
  }
  .detail-image {
    height: 200px;
  }
  .detail-itinerary h4, .detail-route h4, .detail-inclusions h4, .detail-exclusions h4, .detail-addons h4 {
    font-size: 1.4rem;
  }
  .detail-itinerary ul, .detail-inclusions ul, .detail-exclusions ul, .detail-addons ul, .detail-route p {
    font-size: 0.9rem;
  }
}


.detail-price {
  background: var(--glass-bg);
  border: 1px solid rgba(92, 64, 51, 0.15);
  border-radius: 12px;
  padding: 0.75rem 0.9rem;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.06);
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-family: system-ui, sans-serif;
  margin-bottom: 1.3rem;
  width: fit-content;
}

/* Label */
.detail-price .label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--earth-brown);
  letter-spacing: -0.2px;
}

/* Auto-colon */
.detail-price .label::after {
  content: ":";
  margin: 0 0.25rem 0 0.35rem;
  color: var(--muted);
  font-weight: 600;
}

/* Currency symbol */
.detail-price .currency {
  font-weight: 700;
  color: var(--package-tan);
  margin-right: -0.2rem;
}

/* Amount */
.detail-price .amount {
  font-size: 1.0rem;
  font-weight: 800;
  color: var(--giraffe-gold);
  letter-spacing: -0.5px;
}

/* Per-person text */
.detail-price .per {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--muted);
  margin-left: 0.25rem;
  opacity: 0.9;
  text-transform: lowercase;
}

/* Hover micro-elevation */
.detail-price:hover {
  box-shadow: 0 6px 22px rgba(0, 0, 0, 0.08);
  transform: translateY(-2px);
  transition: all 0.18s ease;
}
