/* ======================================
   DETAIL PAGE STYLES
   ====================================== */

/* --- Sticky Section Tabs --- */

:root {
  --header-height: 125px; /* fallback */
}

.section-tabs-wrapper {
  position: sticky;
  top: var(--header-height); /* match your actual header height */
  z-index: 1020;
  background: #fff;
  border-bottom: 1px solid #E5E7EB;
}

.section-tabs {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  gap: 0;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.section-tabs::-webkit-scrollbar {
  display: none;
}

.section-tab-link {
  display: block;
  padding: 14px 20px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-muted);
  text-decoration: none;
  white-space: nowrap;
  border-bottom: 3px solid transparent;
  transition: var(--transition);
}

.section-tab-link:hover {
  color: var(--primary-color);
}

.section-tab-link.active {
  color: var(--primary-color);
  border-bottom-color: var(--primary-color);
}

.section-tabs-wrapper.is-sticky {
  position: fixed;
  top: var(--header-height);
  left: 0;
  right: 0;
  width: 100%;
  z-index: 1030;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.section-tabs-wrapper.is-sticky + .detail-content-section {
  padding-top: 80px;
}

#overview,
#trekInfo,
#itinerary,
#costIncludes,
#departures,
#gallery,
#equipmentCheckList,
#tripFaq,
#notes,
#reviews,
#similarTrips {
  scroll-margin-top: calc(var(--header-height) + 120px);
}

/* --- Detail Hero Banner --- */
.detail-hero {
  position: relative;
  background-image: url("https://www.adventuremountaintreks.com/uploads/adventure-in-nepal-banner.webp");
  background-size: cover;
  background-position: center;
  min-height: 520px;
  display: flex;
  align-items: center;
  padding-bottom: 0;
  padding-top: 100px;
  /* Accounts for the new header overlap */
  margin-top: 0;
}

.detail-hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(17, 26, 41, 0.65);
  /* Elegant uniform dark tint */
}

/* Ensure container centers text */
.detail-hero .container {
  text-align: center;
  padding-bottom: 20px;
}

.detail-breadcrumb .breadcrumb {
  background: none;
  padding: 0;
  margin-bottom: 24px;
  justify-content: center;
}

.detail-breadcrumb .breadcrumb-item a {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.5px;
  transition: var(--transition);
}

.detail-breadcrumb .breadcrumb-item a:hover {
  color: var(--primary-color);
}

.detail-breadcrumb .breadcrumb-item.active {
  color: var(--primary-color);
  font-size: 0.9rem;
  font-weight: 600;
}

/* Custom chevron icon for breadcrumb separator */
.detail-breadcrumb .breadcrumb-item+.breadcrumb-item::before {
  color: rgba(255, 255, 255, 0.5);
  content: "\f105";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  font-size: 0.8rem;
  padding: 0 12px;
}

.detail-hero-title {
  font-family: var(--font-heading);
  font-size: 4rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 30px;
  line-height: 1.2;
  text-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.detail-hero-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  color: #fff;
}

.detail-hero-meta span {
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 10px 22px;
  border-radius: 50px;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.4px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.detail-hero-meta span i {
  color: var(--primary-color);
  font-size: 1.15rem;
}

.detail-hero-meta span i.text-warning {
  color: #FFC107 !important;
}

/* --- Section Titles --- */
.detail-section-title {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 5px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--primary-color);
  display: inline-block;
}

/* --- Trip Quick Facts --- */
.fact-card {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 18px 16px;
  background-color: #F8F9FE;
  border-radius: 12px;
  border: 1px solid #f0f0f3;
  transition: var(--transition);
}

.fact-card:hover {
  border-color: var(--primary-color);
  box-shadow: 0 4px 15px rgba(0, 178, 122, 0.08);
  transform: translateY(-2px);
}

.fact-icon {
  width: 45px;
  height: 45px;
  min-width: 45px;
  border-radius: 10px;
  background: var(--primary-color);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

.fact-info {
  display: flex;
  flex-direction: column;
}

.fact-label {
  font-size: 0.875rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 600;
}

.fact-value {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-dark);
}

.fact-card {
    display: flex;
    align-items: center;
    gap: 10px;
    height: 100%;
    padding: 12px;
    border: 1px solid #eee;
    border-radius: 10px;
}

/* Make columns stretch equal height */
.trip-quick-facts .row > div {
    display: flex;
}

.fact-card {
    flex: 1;
}

/* Icon */
.fact-icon {
    font-size: 20px;
}

/* Info */
.fact-info {
    display: flex;
    flex-direction: column;
}

/* --- Overview Section --- */
.detail-overview p {
  color: #4B5563;
  font-size: 0.95rem;
  line-height: 1.9;
  margin-bottom: 16px;
}

/* --- Itinerary Accordion --- */
.itinerary-accordion .accordion-item {
  border: 1px solid #E5E7EB;
  border-radius: 12px !important;
  margin-bottom: 12px;
  overflow: hidden;
}

.itinerary-accordion .accordion-button {
  padding: 18px 20px;
  background: #fff;
  font-weight: 600;
  color: var(--text-dark);
  font-size: 0.95rem;
  box-shadow: none;
  gap: 15px;
}

.itinerary-accordion .accordion-button:not(.collapsed) {
  background: #F0FDF4;
  border-bottom: 1px solid #E5E7EB;
  color: var(--text-dark);
}

.itinerary-accordion .accordion-button::after {
  background-size: 14px;
  width: 20px;
  height: 20px;
}

.day-badge {
  background: var(--primary-color);
  color: #fff;
  padding: 4px 14px;
  border-radius: 50px;
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  white-space: nowrap;
}

.itinerary-title {
  flex: 1;
}

.accordion-body {
  padding: 20px;
}

.accordion-body p {
  color: #4B5563;
  font-size: 0.9rem;
  line-height: 1.8;
  margin-bottom: 0;
}

.itinerary-details {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.itinerary-details span {
  display: flex;
  align-items: center;
  font-size: 0.875rem;
  color: var(--text-muted);
  background: #F8F9FE;
  padding: 6px 14px;
  border-radius: 50px;
}

/* --- Inclusions / Exclusions --- */
.inclusion-heading {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 18px;
}

.inclusion-list,
.exclusion-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.inclusion-list li,
.exclusion-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 10px 0;
  font-size: 0.9rem;
  color: #4B5563;
  border-bottom: 1px solid #F3F4F6;
}

.inclusion-list li:last-child,
.exclusion-list li:last-child {
  border-bottom: none;
}

.inclusion-list li i {
  color: var(--primary-color);
  margin-top: 3px;
  min-width: 16px;
}

.exclusion-list li i {
  color: #EF4444;
  margin-top: 3px;
  min-width: 16px;
}

/* --- Trek Info Bar --- */
.info-item {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 16px;
  background: #F8F9FE;
  border-radius: 12px;
  border: 1px solid #f0f0f3;
}

.info-item i {
  font-size: 1.3rem;
  min-width: 28px;
  text-align: center;
}

.info-item div {
  display: flex;
  flex-direction: column;
}

.info-item strong {
  font-size: 0.875rem;
  text-transform: uppercase;
  color: var(--text-dark);
  letter-spacing: 0.3px;
}

.info-item span {
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* --- Gallery --- */
.gallery-thumb {
  border-radius: 12px;
  overflow: hidden;
  height: 200px;
  position: relative;
  cursor: pointer;
}

.gallery-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.gallery-thumb:hover img {
  transform: scale(1.08);
}

.gallery-thumb::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0);
  transition: background 0.3s ease;
}

.gallery-thumb:hover::after {
  background: rgba(0, 0, 0, 0.15);
}

/* --- Reviews --- */
.review-summary {
  display: flex;
  align-items: center;
  gap: 20px;
  background: #F8F9FE;
  padding: 20px 25px;
  border-radius: 12px;
  border: 1px solid #f0f0f3;
}

.review-score {
  font-size: 3rem;
  font-weight: 800;
  color: var(--primary-color);
  font-family: var(--font-heading);
  line-height: 1;
}

.review-summary-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.review-summary-text span {
  font-size: 0.875rem;
  color: var(--text-muted);
}

.review-card {
  padding: 24px;
  border: 1px solid #E5E7EB;
  border-radius: 12px;
  margin-bottom: 16px;
  transition: var(--transition);
}

.review-card:hover {
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.review-author {
  display: flex;
  align-items: center;
  gap: 14px;
}

.review-author img {
  width: 50px !important;
  height: 50px !important;
  min-width: 50px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
}

.owl-nav button {
  width: 40px;
  height: 40px;
  border-radius: 50% !important;
  background: #fff !important;
  border: 1px solid #ddd !important;
  font-size: 18px !important;
  color: #333 !important;
  display: flex !important;
  align-items: center;
  justify-content: center;
}

.owl-nav button:hover {
  background: var(--primary-color) !important;
  color: #fff !important;
}

.owl-nav {
  display: flex;
  justify-content: right;
  margin-top: 10px;
}


.review-text {
  color: #4B5563;
  font-size: 0.9rem;
  line-height: 1.8;
  margin-bottom: 0;
}

/* --- Booking Sidebar --- */
.booking-sidebar {
  position: sticky;
  top: 120px;
}

.booking-card {
  background: #fff;
  border: 1px solid #E5E7EB;
  border-radius: 16px;
  padding: 30px 25px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.06);
}

.booking-price-block {
  text-align: center;
  margin-bottom: 5px;
}

.booking-price-label {
  font-size: 0.875rem;
  color: var(--text-muted);
  display: block;
}

.booking-price {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--primary-color);
  line-height: 1.1;
}

.booking-price-unit {
  font-size: 0.875rem;
  color: var(--text-muted);
}

.booking-rating {
  text-align: center;
}

.booking-features {
  list-style: none;
  padding: 0;
  margin: 0;
}

.booking-features li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  font-size: 0.88rem;
  color: #4B5563;
  border-bottom: 1px solid #F3F4F6;
}

.booking-features li:last-child {
  border-bottom: none;
}

.booking-features i {
  color: var(--primary-color);
  width: 20px;
  text-align: center;
}

.btn-book-now {
  background: var(--primary-color);
  color: #fff;
  border: none;
  padding: 14px;
  font-size: 1rem;
  font-weight: 700;
  border-radius: 12px;
  transition: var(--transition);
}

.btn-book-now:hover {
  background: var(--primary-hover);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 178, 122, 0.3);
}

.btn-customize {
  background: transparent;
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
  padding: 12px;
  font-size: 0.9rem;
  font-weight: 700;
  border-radius: 12px;
  transition: var(--transition);
}

.btn-customize:hover {
  background: var(--primary-color);
  color: #fff;
}

.booking-contact a:hover {
  color: var(--primary-color) !important;
}

/* --- Guarantee Block --- */
.guarantee-block {
  background: #F0FDF4;
  border: 1px solid #D1FAE5;
  border-radius: 16px;
  padding: 24px;
}

.guarantee-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.guarantee-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  font-size: 0.88rem;
  color: #374151;
}

.guarantee-list li i {
  font-size: 0.95rem;
}

/* --- Package Selection --- */
.package-label {
  border: 1px solid #ced4da;
  background-color: #fff;
  cursor: pointer;
  transition: all 0.2s ease;
}

.package-option .btn-check:checked+.package-label {
  background-color: #D6E4DC;
  border-color: #277A4C;
}

.custom-radio {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 1px solid #277A4C;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #fff;
}

.package-option .btn-check:checked+.package-label .custom-radio::after {
  content: '';
  width: 10px;
  height: 10px;
  background-color: #123326;
  border-radius: 50%;
}

/* --- FAQ Section --- */
.faq-accordion .accordion-item {
  border: 1px solid #E5E7EB;
  border-radius: 12px !important;
  margin-bottom: 12px;
  overflow: hidden;
  transition: var(--transition);
}

.faq-accordion .accordion-item:hover {
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04);
}

/* Button */
.faq-accordion .accordion-button {
  padding: 18px 20px;
  background: #fff;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-dark);
  box-shadow: none;
  transition: var(--transition);
}

/* Active state (same feel as itinerary but slightly cleaner) */
.faq-accordion .accordion-button:not(.collapsed) {
  background: #F0FDF4;
  color: var(--text-dark);
  border-bottom: 1px solid #E5E7EB;
}

/* Hover */
.faq-accordion .accordion-button:hover {
  color: var(--primary-color);
}

/* Arrow */
.faq-accordion .accordion-button::after {
  background-size: 14px;
  width: 18px;
  height: 18px;
}

/* Body */
.faq-accordion .accordion-body {
  padding: 20px;
  background: #fff;
}

.faq-accordion .accordion-body p {
  font-size: 0.9rem;
  color: #4B5563;
  line-height: 1.8;
  margin-bottom: 0;
}

/* Optional enhancement */
.faq-accordion .accordion-item {
  background: #fff;
}

.faq-accordion .accordion-button {
  gap: 10px;
}

/* subtle left accent */
.faq-accordion .accordion-button:not(.collapsed) {
  border-left: 3px solid var(--primary-color);
}

/* Slider spacing */
.reviews-slider .review-slide {
  padding: 5px;
}

/* Make cards consistent height */
.review-card {
  height: 100%;
}

/* Limit text lines for clean layout */
.review-text {
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* --- Related Packages --- */
.related-card {
  background: #fff;
  border: 1px solid #E5E7EB;
  border-radius: 16px;
  overflow: hidden;
  transition: var(--transition);
  height: 100%;
  display: flex;
  flex-direction: column;
}

.related-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

/* Image */
.related-image {
  height: 200px;
  overflow: hidden;
}

.related-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.related-card:hover img {
  transform: scale(1.08);
}

/* Content */
.related-content {
  padding: 18px;
}

.related-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 10px;
}

/* Meta */
.related-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 10px;
}

.meta-item {
  font-size: 0.8rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
  background: #F8F9FE;
  padding: 5px 10px;
  border-radius: 50px;
}

.meta-item i {
  color: var(--primary-color);
}

/* Overview */
.related-overview {
  font-size: 0.85rem;
  color: #4B5563;
  line-height: 1.6;
}

.related-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 16px;
  pointer-events: none;
  border: 1px solid transparent;
  transition: 0.3s;
}

.related-card:hover::after {
  border-color: var(--primary-color);
}

/* --- Useful Info Section --- */
.detail-useful-info {
  margin-bottom: 40px;
}

.info-subtitle {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 10px;
  letter-spacing: 0.3px;
}

.info-content {
  font-size: 0.9rem;
  color: #4B5563;
  line-height: 1.8;
}

.info-content p {
  margin-bottom: 12px;
}

.info-content ul {
  padding-left: 18px;
  margin-bottom: 12px;
}

.info-content ul li {
  margin-bottom: 6px;
}

/* --- Add Review Section --- */
.detail-add-review {
  margin-bottom: 40px;
}

.review-form-wrapper {
  background: #F8F9FE;
  padding: 25px;
  border-radius: 12px;
  border: 1px solid #f0f0f3;
}

.review-form-wrapper .form-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 6px;
}

.review-form-wrapper .form-control,
.review-form-wrapper .form-select {
  font-size: 0.9rem;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid #E5E7EB;
}

.review-form-wrapper .form-control:focus,
.review-form-wrapper .form-select:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 2px rgba(0, 178, 122, 0.1);
}

.detail-content-section,
.container,
.row {
  overflow: visible !important;
}

/* --- Responsive --- */
@media (max-width: 991.98px) {
  .detail-hero-title {
    font-size: 2.2rem;
  }

  .booking-sidebar {
    position: static;
    margin-top: 3rem;
  }
}

@media (max-width: 767.98px) {
  .detail-hero-title {
    font-size: 1.8rem;
  }

  .detail-hero {
    min-height: 300px;
    padding-bottom: 30px;
    padding-top: 180px;
  }

  .detail-hero-meta {
    gap: 12px;
    font-size: 0.875rem;
  }

  .fact-card {
    padding: 14px 12px;
  }

  .gallery-thumb {
    height: 150px;
  }
}

@media (max-width: 576px) {
    .fact-card {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .fact-icon {
        margin-bottom: 8px;
    }
    .fact-label {
    font-weight: 600;
    font-size: 14px;
}

.fact-value {
    font-size: 13px;
    color: #666;
}
}
