/* Global Styles */
:root {
  --primary-color: #1F7F7B;
  --secondary-color: #0D2F3F;
  --button-color: #FFC62D;
  --discount-color: #FFC62D;
  --comment-color: #FFC62D;
  --text-dark: #333333;
  --text-muted: #6c757d;
  --light-bg: #f8f9fa;
  --border-color: #dee2e6;
}


a {
  text-decoration: none;
  color: var(--primary-color);
  transition: all 0.3s ease;
}

a:hover {
  color: #176663;
}


.btn-sign-in {
  background-color: transparent;
  color: var(--text-dark);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 6px 15px;
  font-weight: 500;
}


/* Main Content */
.main-content {
  padding: 40px 0;
}

/* Main Gallery */
.main-gallery {
  position: relative;
}

.main-image {
  border-radius: 10px;
  overflow: hidden;
}

.discount-badge {
  position: absolute;
  top: 0px;
  right: -12px;
  background-image: url('/static/assets/media/customer_view/icon/details_discount_badge.png');
  background-repeat: no-repeat;        /* 🔴 STOP repeating */
  background-position: center;         /* 📍 center it */
  background-size: contain;            /* 📐 fit image properly */
  color: var(--secondary-color);
  padding: 10px 15px;
  border-radius: 5px;
  text-align: center;
  font-weight: bold;
  height: 132px;
  width: 160px;
}

.discount-text {
  padding-top: 10%;
  font-size: 32px;
  line-height: 1;
}

.discount-label {
  font-size: 14px;
  line-height: 1;
}

.gallery-thumbnails img {
  border-radius: 5px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.gallery-thumbnails img:hover {
  opacity: 0.8;
}

.overlay-gallery-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
}

.overlay-gallery-nav.prev {
  left: 10px;
}

.overlay-gallery-nav.next {
  right: 10px;
}

/* Tour Title Section */
.tour-title-section h2 {
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.rating {
  font-size: 14px;
}

.tour-quick-info {
  background-color: var(--light-bg);
  padding: 15px;
  border-radius: 8px;
}

.info-icon {
  color: var(--primary-color);
  font-size: 20px;
}

.info-title {
  color: var(--text-muted);
  font-size: 12px;
}

.info-value {
  font-weight: 500;
}


/* Tab Content */
.tab-content {
  padding: 20px 0;
}

/* Accordion */
.accordion-button {
  font-weight: 600;
  padding: 15px;
}

.accordion-button:not(.collapsed) {
  background-color: var(--light-bg);
  color: var(--primary-color);
  box-shadow: none;
}

.accordion-button:focus {
  box-shadow: none;
}

/* Itinerary Timeline */
.day-plan h5 {
  font-weight: 600;
  margin-bottom: 15px;
}

.timeline-item {
  padding-left: 20px;
  border-left: 2px solid var(--primary-color);
  margin-left: 15px;
}

.time {
  font-weight: 600;
  color: var(--primary-color);
  margin-bottom: 5px;
}

/* Booking Card */
.booking-card {
  border-radius: 10px;
  overflow: hidden;
}

.top-badge {
  background-color: rgb(14 55 116) !important;
}

.date-box {
  text-align: center;
}

.quantity-control .form-control {
  text-align: center;
  font-weight: 500;
}

.price-breakdown {
  padding-top: 15px;
  border-top: 1px solid var(--border-color);
}

.total-price {
  font-size: 18px;
  font-weight: 700;
}

/* Upcoming Tours */
.upcoming-tours {
  border-radius: 10px;
  overflow: hidden;
}

.tour-item {
  transition: all 0.3s ease;
}

.tour-item:hover {
  background-color: var(--light-bg);
}

.tour-title {
  font-weight: 600;
}


/* Comments Section */
.comment-avatar img {
  width: 48px;
  height: 48px;
}

.comment-text {
  color: var(--text-muted);
  font-size: 14px;
}

/* Leave a Reply Form */
.leave-reply form {
  background-color: #deebf8;
  padding: 20px;
  border-radius: 10px;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  .tour-title-section h2 {
    font-size: 1.5rem;
  }

  .tour-quick-info {
    flex-wrap: wrap;
  }

  .tour-info-item {
    width: 100%;
    margin-bottom: 10px;
  }

  .blog-card {
    margin-bottom: 20px;
  }
}

/* Button Styles */
.btn-warning {
  background-color: var(--button-color);
  border-color: var(--button-color);
  color: var(--secondary-color);
  font-weight: 500;
}

.btn-warning:hover {
  background-color: #e6b129;
  border-color: #e6b129;
  color: var(--secondary-color);
}

.btn-light {
  background-color: white;
  border-color: var(--border-color);
  color: var(--text-dark);
}

.btn-light:hover {
  background-color: var(--light-bg);
  color: var(--text-dark);
}

/* Position Utility Classes */
.bottom-3 {
  bottom: 1rem;
}

.start-3 {
  left: 1rem;
}

/* Popular Search Tags */
.popular-search {
  margin-top: 10px;
}

.popular-search span {
  display: inline-block;
  padding: 4px 10px;
  background-color: var(--light-bg);
  border-radius: 50px;
  font-size: 12px;
  margin-right: 5px;
  margin-bottom: 5px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.popular-search span:hover {
  background-color: var(--primary-color);
  color: white;
}

/* Tour Details Page */
.tour-details {
  margin-top: 20px;
}

.tour-details-container {
  display: flex;
  align-items: flex-start;
  gap: 30px;
}

.details-left {
  flex: 7;
}

.details-right {
  flex: 3;
}

.details-card {
  background: white;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  margin-bottom: 20px;
}

.details-header {
  padding: 15px;
  border-bottom: 1px solid var(--border-color);
}

.details-content {
  padding: 15px;
}

/* Tour Details Footer */
.tour-details-footer {
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid var(--border-color);
}

/* Call to Action */
.cta-badge {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background-color: var(--button-color);
  color: var(--secondary-color);
  padding: 10px 20px;
  border-radius: 50px;
  font-weight: 500;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  z-index: 1000;
  cursor: pointer;
}

/* Add custom styles to match the image */
.search-form-row {
  background-color: white;
  border-radius: 8px;
  padding: 15px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.input-with-icon {
  position: relative;
}

.input-with-icon i {
  position: absolute;
  left: 15px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
}

.form-icon-input {
  padding-left: 40px;
  height: 44px;
  border-radius: 4px;
}

/* Styles for the tiger image section */
.tiger-main-image {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
}

.tiger-main-image img {
  width: 100%;
  border-radius: 10px;
}

.discount-corner {
  position: absolute;
  top: 0;
  right: 0;
  width: 100px;
  height: 120px;
  background-color: var(--discount-color);
  color: var(--secondary-color);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 80%, 0 100%);
}

.discount-percentage {
  font-size: 24px;
  font-weight: 700;
}

/* Rating stars */
.star-rating {
  color: var(--primary-color);
}

/* Tour details cards */
.tour-detail-card {
  border: 1px solid var(--border-color);
  border-radius: 8px;
  margin-bottom: 15px;
}

.tour-detail-card-header {
  padding: 10px 15px;
  background-color: var(--light-bg);
  border-bottom: 1px solid var(--border-color);
  font-weight: 600;
}

.tour-detail-card-body {
  padding: 15px;
}

/* Comments and reviews section */
.review-rating-summary {
  display: flex;
  align-items: center;
  margin-bottom: 20px;
}

.average-rating {
  font-size: 36px;
  font-weight: 700;
  margin-right: 20px;
}

.rating-bars {
  flex-grow: 1;
}

.rating-bar {
  display: flex;
  align-items: center;
  margin-bottom: 5px;
}

.rating-label {
  width: 30px;
}

.rating-progress {
  flex-grow: 1;
  height: 6px;
  background-color: var(--light-bg);
  border-radius: 3px;
  margin: 0 10px;
}

.rating-fill {
  height: 100%;
  background-color: var(--primary-color);
  border-radius: 3px;
}

.rating-count {
  width: 20px;
  text-align: right;
}

/* User review comments */
.user-comment {
  display: flex;
  margin-bottom: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border-color);
}

.user-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  overflow: hidden;
  margin-right: 15px;
}

.user-comment-content {
  flex-grow: 1;
}

.user-name {
  font-weight: 600;
  margin-bottom: 0;
}

.comment-date {
  color: var(--text-muted);
  font-size: 12px;
  margin-bottom: 10px;
}

/* Extra styling for the booking section */
.price-per-ticket {
  display: block;
  color: var(--text-muted);
  font-size: 12px;
}

.ticket-counter {
  display: flex;
  align-items: center;
}

.ticket-counter button {
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border-color);
  background-color: white;
  border-radius: 4px;
}

.ticket-counter input {
  width: 40px;
  text-align: center;
  border: 1px solid var(--border-color);
  margin: 0 5px;
  height: 30px;
}

.extras-checkbox {
  margin-right: 10px;
}

/* Small gallery thumbnails */
.thumbnail-gallery {
  display: flex;
  gap: 10px;
  margin-top: 10px;
}

.thumbnail {
  width: 70px;
  height: 50px;
  border-radius: 4px;
  overflow: hidden;
  cursor: pointer;
}

.thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Styling for tour info icons */
.tour-info-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: rgba(31, 127, 123, 0.1);
  color: var(--primary-color);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 10px;
}

.read-more {
  color: var(--primary-color);
  font-weight: 500;
  display: inline-flex;
  align-items: center;
}

.read-more i {
  margin-left: 5px;
  transition: all 0.3s ease;
}

.read-more:hover i {
  transform: translateX(5px);
}

/* Post Comment Button */
.post-comment-btn {
  background-color: var(--comment-color);
  color: var(--secondary-color);
  border-color: var(--comment-color);
  font-weight: 500;
}

.post-comment-btn:hover {
  background-color: #e6b129;
  border-color: #e6b129;
}

/* Payment Card */
.payment-card {
  background-color: var(--secondary-color);
  color: white;
  border-radius: 10px;
  padding: 20px;
}

/* Book Now Button */
.book-now-btn {
  background-color: var(--button-color);
  color: var(--secondary-color);
  border: none;
  border-radius: 5px;
  padding: 10px 20px;
  font-weight: 600;
  transition: all 0.3s ease;
}

.book-now-btn:hover {
  background-color: #e6b129;
}