
.nav-pills .nav-link-package {
  display: block;
  padding: 0.75rem 1.5rem; 
  color: #6c757d;
  background-color: #f8f9fa;
  transition: all 0.3s ease;
  text-decoration: none;
  border-radius: 50rem; 
  font-weight: 600;
  border: 1px solid transparent; 
  text-align: center;
  letter-spacing: 0.3px;
}

.nav-pills .nav-link-package:hover {
  background-color: #e9ecef;
  color: #212529;
  transform: translateY(-1px);
}

.nav-pills .nav-link-package.active {
  background-color: #0c979c !important;
  color: white !important;
  box-shadow: 0 4px 12px rgba(12, 151, 156, 0.25); 
  transform: translateY(-1px);
}

.nav-pills .nav-item {
  margin-bottom: 0.5rem;
}
.hover-elevate {
  transition: transform 0.2s;
}
.hover-elevate:hover {
  transform: translateY(-2px);
}
html {
  scroll-behavior: smooth;
}
.tab-content {
  min-height: 300px;
}
.package-calendar {
  position: relative;
}
.package-calendar .calendar-dropdown {
  position: absolute;
  width: 360px;
  padding: 16px;
  left: 0;
  right: auto;
  transform: none;
  margin-top: 6px;
  z-index: 1050;
}
.package-calendar .calendar-container {
  gap: 0;
}
.package-calendar .calendar-month {
  min-width: 0;
}
@media (max-width: 768px) {
  .package-calendar .calendar-dropdown {
    width: 95vw;
    left: 50%;
    transform: translateX(-50%);
  }
}
.package-calendar .calendar-icon {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: #0c979c;
  font-size: 18px;
  pointer-events: none;
}
.package-calendar .form-control {
  padding-right: 44px;
}
.form-floating > .form-control:focus ~ label::after,
.form-floating > .form-control:not(:placeholder-shown) ~ label::after {
  background-color: transparent !important;
}

.timeline-wrapper {
  position: relative;
}
.timeline-item {
  position: relative;
  padding-left: 40px;
  margin-bottom: 30px;
}
.timeline-item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: -30px;
  width: 2px;
  background-color: #e9ecef;
}
.timeline-item:last-child::before {
  bottom: 0;
  height: 20px; 
}
.timeline-marker {
  position: absolute;
  left: -14px;
  top: 0;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background-color: #0c979c;
  color: white;
  text-align: center;
  line-height: 30px;
  font-weight: bold;
  z-index: 2;
  box-shadow: 0 0 0 5px white; 
}
.timeline-content {
  background: #fff;
  border-radius: 8px;
  padding: 20px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  border: 1px solid #f1f1f1;
  transition: transform 0.2s;
}
.timeline-content:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.wishlist-container {
  z-index: 10;
}
.wishlist-btn-size {
  width: 45px;
  height: 45px;
}
.featured-badge-container {
  z-index: 10;
}
.carousel-image {
  height: 500px;
  object-fit: cover;
}
.carousel-placeholder {
  height: 500px;
}
.carousel-control-custom {
  width: 50px;
  height: 50px;
  background: rgba(255,255,255,0.9);
  border: none;
  border-radius: 50%;
  box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}
.overview-description {
  line-height: 1.8;
}
.itinerary-title {
  color: #0c979c;
}
.itinerary-description {
  font-family: inherit;
  line-height: 1.6;
}
.itinerary-fallback {
  font-family: inherit;
  color: #555;
}
.booking-sidebar {
  top: 20px;
  z-index: 10;
}
.booking-header {
  background-color: #0C979C;
}
.help-icon {
  width: 50px;
  height: 50px;
}
.message-textarea {
  height: 100px;
}

/* ==================== MOBILE RESPONSIVE STYLES ==================== */

/* Tablets and below (≤991px) */
@media (max-width: 991px) {
  .booking-sidebar {
    position: static !important;
    top: auto !important;
  }
  
  .carousel-image {
    height: 350px;
  }
  
  .carousel-placeholder {
    height: 350px;
  }
}

/* Mobile devices (≤768px) */
@media (max-width: 768px) {
  /* Carousel optimizations */
  .carousel-image {
    height: 280px;
    border-radius: 16px !important;
  }
  
  .carousel-placeholder {
    height: 280px;
    border-radius: 16px !important;
  }
  
  /* Carousel controls - make them more visible on mobile */
  .carousel-control-custom {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.95);
  }
  
  .carousel-control-prev {
    margin-left: 0.5rem !important;
  }
  
  .carousel-control-next {
    margin-right: 0.5rem !important;
  }
  
  /* Wishlist and featured badge sizing */
  .wishlist-btn-size {
    width: 40px;
    height: 40px;
  }
  
  .featured-badge-container .badge {
    font-size: 0.75rem !important;
    padding: 0.5rem 0.75rem !important;
  }
  
  /* Package title and meta */
  .package-detail h2 {
    font-size: 1.5rem !important;
    margin-bottom: 1rem !important;
  }
  
  /* Badge adjustments */
  .package-detail .badge {
    font-size: 0.8rem !important;
    padding: 0.5rem 0.75rem !important;
  }
  
  /* Navigation tabs - make them scrollable */
  #packageTab {
    flex-wrap: nowrap !important;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
    gap: 0.5rem !important;
    padding-bottom: 0.5rem;
  }
  
  #packageTab::-webkit-scrollbar {
    display: none;
  }
  
  #packageTab .nav-item {
    flex: 0 0 auto;
    margin-bottom: 0;
  }
  
  .nav-pills .nav-link-package {
    white-space: nowrap;
    padding: 0.625rem 1.25rem;
    font-size: 0.875rem;
  }
  
  .nav-pills .nav-link-package i {
    font-size: 0.875rem;
  }
  
  /* Card body padding */
  .card-body.p-md-5 {
    padding: 1.5rem !important;
  }
  
  /* Tab content */
  .tab-content {
    min-height: 200px;
  }
  
  .tab-pane h4 {
    font-size: 1.25rem !important;
    margin-bottom: 1rem !important;
  }
  
  .timeline-item {
    padding-left: 30px;
    margin-bottom: 20px;
  }
  
  .timeline-marker {
    width: 24px;
    height: 24px;
    line-height: 24px;
    font-size: 0.75rem;
    left: -12px;
  }
  
  .timeline-content {
    padding: 15px;
  }
  
  /* Booking card */
  .booking-sidebar .card {
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12) !important;
  }
  
  .booking-header {
    padding: 1.5rem !important;
  }
  
  .booking-header h2 {
    font-size: 1.75rem !important;
  }
  
  .booking-header .fs-6 {
    font-size: 0.875rem !important;
  }
  
  /* Form fields */
  .form-floating > label {
    font-size: 0.875rem;
  }
  
  .form-control {
    font-size: 1rem;
  }
  
  /* Help card */
  .help-icon {
    width: 45px;
    height: 45px;
  }
  
  .help-icon i {
    font-size: 1.25rem !important;
  }
}

/* Small mobile devices (≤576px) */
@media (max-width: 576px) {
  /* Section spacing */
  .package-detail {
    padding-top: 2rem !important;
    padding-bottom: 2rem !important;
  }
  
  /* Carousel */
  .carousel-image {
    height: 240px;
    border-radius: 12px !important;
  }
  
  .carousel-placeholder {
    height: 240px;
    border-radius: 12px !important;
  }
  
  .carousel-wrapper {
    margin-bottom: 1.5rem !important;
  }
  
  /* Package title */
  .package-detail h2 {
    font-size: 1.35rem !important;
    line-height: 1.3;
  }
  
  /* Badges - stack them vertically on very small screens */
  .package-detail .d-flex.gap-3 {
    gap: 0.5rem !important;
  }
  
  .package-detail .badge {
    font-size: 0.75rem !important;
    padding: 0.4rem 0.65rem !important;
  }
  
  /* Card header */
  .card-header {
    padding: 0.75rem !important;
  }
  
  /* Navigation tabs */
  .nav-pills .nav-link-package {
    padding: 0.5rem 1rem;
    font-size: 0.813rem;
  }
  
  /* Card body */
  .card-body.p-4,
  .card-body.p-md-5 {
    padding: 1rem !important;
  }
  
  /* Tab headings */
  .tab-pane h4 {
    font-size: 1.15rem !important;
  }
  
  /* Inclusions/Exclusions */
  .tab-pane .col-md-6 {
    margin-bottom: 1rem;
  }
  
  .tab-pane .col-md-6 .h-100 {
    padding: 1rem !important;
  }
  
  .tab-pane .col-md-6 h5 {
    font-size: 1rem !important;
    margin-bottom: 0.75rem !important;
  }
  
  /* Booking header */
  .booking-header {
    padding: 1.25rem !important;
  }
  
  .booking-header h2 {
    font-size: 1.5rem !important;
  }
  
  .booking-header .fs-6 {
    font-size: 0.813rem !important;
  }
  
  /* Form heading */
  .booking-sidebar h5 {
    font-size: 1rem !important;
  }
  
  /* Phone and travelers row */
  .row.g-2 {
    gap: 0.5rem !important;
  }
  
  /* Button */
  .btn-primary.w-100 {
    padding: 0.75rem !important;
    font-size: 0.938rem;
  }
  
  /* Help card */
  .help-icon {
    width: 40px;
    height: 40px;
  }
  
  .help-icon i {
    font-size: 1.125rem !important;
  }
  
  .card-body.p-4.d-flex {
    padding: 1rem !important;
    gap: 0.75rem !important;
  }
  
  .card-body h6 {
    font-size: 0.938rem !important;
  }
  
  .card-body .small {
    font-size: 0.813rem !important;
  }
}

/* Extra small devices (≤375px) */
@media (max-width: 375px) {
  .carousel-image,
  .carousel-placeholder {
    height: 200px;
  }
  
  .package-detail h2 {
    font-size: 1.25rem !important;
  }
  
  .nav-pills .nav-link-package {
    font-size: 0.75rem;
    padding: 0.45rem 0.85rem;
  }
  
  .booking-header h2 {
    font-size: 1.35rem !important;
  }
  
  .tab-pane h4 {
    font-size: 1.1rem !important;
  }
}

/* Touch device optimizations */
@media (hover: none) and (pointer: coarse) {
  .nav-pills .nav-link-package {
    padding: 0.875rem 1.25rem;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  .btn {
    min-height: 44px;
  }
  
  .carousel-control-custom {
    width: 44px;
    height: 44px;
  }
  
  .wishlist-btn-size {
    min-width: 44px;
    min-height: 44px;
  }
}
