/* Swiper Container */
.tour-swiper-container-p {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
  position: relative;
}

.tour-swiper-p {
  width: 100%;
  padding-bottom: 60px;
}

/* FIXED: Custom Navigation Buttons - Properly Styled */
.swiper-button-next,
.swiper-button-prev {
  width: 50px !important;
  height: 50px !important;
  background: white !important;
  border-radius: 50% !important;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2) !important;
  transition: all 0.3s ease !important;
}


/* Remove default Swiper arrow background images */
.swiper-button-next::after,
.swiper-button-prev::after {
  font-size: 20px !important;
  font-weight: 900 !important;
  color: #2c8ba8 !important;
}

/* Hover effect for buttons */
.swiper-button-next:hover,
.swiper-button-prev:hover {
  background: #2c8ba8 !important;
  transform: scale(1.05);
}

.swiper-button-next:hover::after,
.swiper-button-prev:hover::after {
  color: white !important;
}

/* Position adjustments */
.swiper-button-prev {
  left: 10px !important;
}

.swiper-button-next {
  right: 10px !important;
}

/* FIXED: Custom Pagination - Below Content */
.swiper-pagination {
  position: relative !important;
  bottom: 0 !important;
  margin-top: 30px !important;
}

.swiper-pagination-bullet {
  width: 10px !important;
  height: 10px !important;
  background: #ccc !important;
  opacity: 1 !important;
  transition: all 0.3s ease !important;
  margin: 0 5px !important;
}

.swiper-pagination-bullet-active {
  background: #2c8ba8 !important;
  width: 26px !important;
  border-radius: 5px !important;
}

/* Main Container */
.tour-card-p {
  display: flex;
  background: white;
  border-radius: 16px;
  box-shadow: 0 15px 45px rgba(0, 0, 0, 0.12);
  overflow: hidden;
  max-width: 950px;
  width: 100%;
  min-height: 450px;
  position: relative;
  margin: 0 auto;
}

/* Left Side - Image Section */
.tour-image-section-p {
  flex: 1;
  display: flex;
  flex-direction: column;
  position: relative;
  min-width: 380px;
  background: #1a1a1a;
}

.tour-logo-p {
  position: absolute;
  top: 15px;
  left: 15px;
  display: flex;
  align-items: center;
  gap: 8px;
  z-index: 10;
  background: rgba(0,0,0,0.3);
  backdrop-filter: blur(10px);
  padding: 8px 12px;
  border-radius: 6px;
}

.tour-logo-p svg {
  width: 32px;
  height: 32px;
}

.tour-logo-text-p {
  color: white;
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 1.2px;
}

/* Top Image */
.tour-image-top-p {
  flex: 1;
  position: relative;
  overflow: hidden;
}

.tour-image-bottom-p {
  flex: 1;
  position: relative;
  overflow: hidden;
}

.tour-img-p {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.tour-image-top-p:hover .tour-img-p,
.tour-image-bottom-p:hover .tour-img-p {
  transform: scale(1.05);
}

/* Image Captions */
.image-caption-p {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 12px 15px;
  background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.4) 70%, transparent 100%);
  color: white;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.3px;
}

/* Right Side - Details Section */
.tour-details-section-p {
  flex: 1.1;
  padding: 28px 30px 25px 30px;
  display: flex;
  flex-direction: column;
  position: relative;
  background: white;
}

.tour-close-btn-p {
  position: absolute;
  top: 15px;
  right: 15px;
  width: 28px;
  height: 28px;
  border: none;
  background: #f5f5f5;
  border-radius: 6px;
  font-size: 20px;
  color: #999;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.tour-close-btn-p:hover {
  background: #e8e8e8;
  color: #333;
  transform: rotate(90deg);
}

/* Header Section */
.tour-header-p {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 12px;
}

.tour-rating-p {
  display: flex;
  gap: 3px;
  font-size: 18px;
  align-items: center;
}

.star-filled-p {
  color: #ffc107;
}

.star-half-p {
  color: #ffc107;
  position: relative;
}

.star-half-p::after {
  content: '★';
  position: absolute;
  left: 0;
  width: 50%;
  overflow: hidden;
  color: #e0e0e0;
}

.rating-count-p {
  font-size: 11px;
  color: #888;
  margin-left: 5px;
  font-weight: 500;
}

.tour-price-p {
  display: flex;
  align-items: flex-start;
  font-size: 38px;
  font-weight: 800;
  color: #1a1a1a;
  line-height: 1;
}

.currency-p {
  font-size: 22px;
  margin-right: 2px;
  margin-top: 3px;
}

.per-person-p {
  font-size: 11px;
  color: #666;
  font-weight: 500;
  margin-left: 3px;
  margin-top: 6px;
}

/* Title Section */
.tour-title-section-p {
  margin-bottom: 12px;
}

.tour-name-p {
  font-size: 24px;
  font-weight: 800;
  color: #1a1a1a;
  margin: 0 0 5px 0;
  line-height: 1.2;
}

.tour-tagline-p {
  font-size: 13px;
  color: #666;
  margin: 0;
  font-weight: 500;
}

/* Highlights List */
.tour-highlights-list-p {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  margin-bottom: 16px;
  padding: 12px;
  background: #f9fafb;
  border-radius: 10px;
}

.highlight-item-p {
  font-size: 11px;
  color: #444;
  font-weight: 500;
  display: flex;
  align-items: center;
}

/* Options Section */
.tour-options-p {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 18px;
}

.tour-option-group-p {
  display: flex;
  flex-direction: column;
}

.tour-label-p {
  font-size: 10px;
  font-weight: 700;
  color: #333;
  letter-spacing: 1px;
  margin-bottom: 5px;
}

/* Single Value Display */
.tour-single-value-p {
  font-size: 13px;
  color: #1a1a1a;
  font-weight: 500;
  padding: 5px 15px;
  background: #f9fafb;
  border-radius: 8px;
  border: 1px solid #e8e8e8;
}

/* Action Button */
.tour-actions-p {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 14px;
}

.book-btn-p {
  background: linear-gradient(135deg, #2c8ba8 0%, #3fa8c9 100%);
  color: white;
  border: none;
  border-radius: 10px;
  padding: 14px 24px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: all 0.3s ease;
  letter-spacing: 1px;
}

.book-btn-p:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(44, 139, 168, 0.3);
}

.calendar-icon-p {
  width: 18px;
  height: 18px;
}

/* Footer Info */
.tour-footer-info-p {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  padding-top: 12px;
  border-top: 1px solid #f0f0f0;
}

.info-badge-p {
  font-size: 10px;
  color: #555;
  background: #f5f5f5;
  padding: 5px 10px;
  border-radius: 5px;
  font-weight: 600;
}

/* Responsive Design */
@media (max-width: 900px) {
  .tour-card-p {
    flex-direction: column;
    max-width: 500px;
    min-height: auto;
  }

  .tour-image-section-p {
    min-width: 100%;
    min-height: 350px;
  }

  .tour-details-section-p {
    padding: 25px 20px 20px 20px;
  }

  .tour-price-p {
    font-size: 32px;
  }

  .tour-name-p {
    font-size: 22px;
  }

  .tour-highlights-list-p {
    grid-template-columns: 1fr;
  }
  
  .swiper-button-next,
  .swiper-button-prev {
    width: 40px !important;
    height: 40px !important;
  }
  
  .swiper-button-next::after,
  .swiper-button-prev::after {
    font-size: 16px !important;
  }

  .swiper-button-prev {
    left: 5px !important;
  }

  .swiper-button-next {
    right: 5px !important;
  }
}

/* Booking Modal Styles - UPDATED */
.booking-modal-p {
  display: none;
  position: fixed;
  z-index: 999999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background-color: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(5px);
  animation: fadeIn-p 0.3s ease;
}

@keyframes fadeIn-p {
  from { opacity: 0; }
  to { opacity: 1; }
}

.booking-modal-content-p {
  background-color: #ffffff;
  margin: 3% auto;
  padding: 0;
  border-radius: 16px;
  width: 90%;
  max-width: 550px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  position: relative;
  animation: slideDown-p 0.4s ease;
  max-height: 90vh;
  overflow-y: auto;
  overflow-x: hidden;
}

@keyframes slideDown-p {
  from {
    transform: translateY(-50px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* Custom Scrollbar for Modal Content */
.booking-modal-content-p::-webkit-scrollbar {
  width: 8px;
}

.booking-modal-content-p::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 10px;
}

.booking-modal-content-p::-webkit-scrollbar-thumb {
  background: #2c8ba8;
  border-radius: 10px;
}

.booking-modal-content-p::-webkit-scrollbar-thumb:hover {
  background: #1e5f7a;
}

.booking-modal-close-p {
  position: absolute;
  top: 15px;
  right: 15px;
  background: #f5f5f5;
  border: none;
  font-size: 28px;
  font-weight: 300;
  color: #666;
  cursor: pointer;
  width: 35px;
  height: 35px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  z-index: 10;
}

.booking-modal-close-p:hover {
  background: #e74c3c;
  color: white;
  transform: rotate(90deg);
}

.booking-modal-header-p {
  padding: 30px 35px 20px;
  border-top: 2px solid #f0f0f0;
}

.booking-modal-title-p {
  font-size: 28px;
  font-weight: 800;
  color: #1a1a1a;
  margin: 0 0 8px 0;
}

.booking-modal-subtitle-p {
  font-size: 14px;
  color: #666;
  margin: 0;
  font-weight: 500;
}

/* Form Styles */
.booking-form-p {
  padding: 25px 35px 35px;
}

.form-group-modal-p {
  margin-bottom: 20px;
}

.form-group-modal-p label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: #333;
  margin-bottom: 8px;
  letter-spacing: 0.3px;
}

.required-p {
  color: #e74c3c;
  margin-left: 2px;
}

.form-group-modal-p input,
.form-group-modal-p select,
.form-group-modal-p textarea {
  width: 100%;
  padding: 12px 15px;
  border: 2px solid #e8e8e8;
  border-radius: 8px;
  font-size: 14px;
  font-family: inherit;
  transition: all 0.3s ease;
  background: #fafafa;
}

.form-group-modal-p input:focus,
.form-group-modal-p select:focus,
.form-group-modal-p textarea:focus {
  outline: none;
  border-color: #2c8ba8;
  background: white;
  box-shadow: 0 0 0 3px rgba(44, 139, 168, 0.1);
}

.form-group-modal-p textarea {
  resize: vertical;
  min-height: 80px;
}

.error-message-p {
  display: block;
  color: #e74c3c;
  font-size: 12px;
  margin-top: 5px;
  font-weight: 500;
}

/* Action Buttons */
.booking-modal-actions-p {
  display: flex;
  gap: 12px;
  margin-top: 30px;
}

.btn-cancel-p,
.btn-submit-p {
  flex: 1;
  padding: 14px 20px;
  border: none;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  letter-spacing: 0.5px;
}

.btn-cancel-p {
  background: #f5f5f5;
  color: #666;
}

.btn-cancel-p:hover {
  background: #e8e8e8;
  color: #333;
}

.btn-submit-p {
  background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
  color: white;
}

.btn-submit-p:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(37, 211, 102, 0.4);
}

.btn-submit-p:active {
  transform: translateY(0);
}

/* Responsive */
@media (max-width: 600px) {
  .booking-modal-content-p {
    width: 95%;
    margin: 5% auto;
  }

  .booking-modal-header-p {
    padding: 25px 20px 15px;
  }

  .booking-form-p {
    padding: 20px;
  }

  .booking-modal-title-p {
    font-size: 24px;
  }

  .booking-modal-actions-p {
    flex-direction: column;
  }
}

.swiper-button-next, .swiper-button-prev{
  background: #325262 !important;
}
