/* Desktop gallery grid */
@media (min-width: 992px){
  #desktop-header{ padding:0; }

/* Simplify Customer Reviews to single metric */
.rating-summary .col-md-9{ display:none !important; }
.rating-summary .col-md-3{ max-width:100%; flex:0 0 100%; display:flex; justify-content:center; }
.overall-rating{ text-align:center; }

/* Rate form: show only first (overall) star input */
.rate-tour-section .row.mb-4 .col-md-6:nth-child(2){ display:none !important; }
.rate-tour-section .row.mb-4 .col-md-6:first-child .rating-input-item + .rating-input-item{ display:none !important; }

@media (max-width: 575.98px){
  .rating-circle{ width:140px; height:140px; border-width:8px; }
  .rating-number{ font-size:36px; }
}
  .desktop-gallery-grid{
    display:grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(2, 250px);
    gap:8px;
    max-width:100%;
    margin:0 auto;
  }
  .desktop-gallery-grid .grid-item{
    position:relative;
    overflow:hidden;
    border-radius:8px;
  }
  .desktop-gallery-grid .grid-item a{
    display:block;
    width:100%;
    height:100%;
    position:relative;
  }
  .desktop-gallery-grid .grid-item img{
    width:100%;
    height:100%;
    object-fit:cover;
    display:block;
    transition:transform 0.3s ease;
  }

  .desktop-gallery-grid .first-grid-image {
    border-bottom-left-radius: 0 !important;
    border-top-left-radius: 0 !important;
  }

  .grid-item.grid-bottom-right {
    border-top-right-radius: 0 !important;
    border-bottom-right-radius: 0 !important;
  }

  .grid-item.grid-middle-right {
    border-top-right-radius: 0 !important;
    border-bottom-right-radius: 0 !important;
  }

  .desktop-gallery-grid .grid-item:hover img{
    transform:scale(1.05);
  }
  .desktop-gallery-grid .grid-main{
    grid-column: 1 / 3;
    grid-row: 1 / 3;
  }
  .desktop-gallery-grid .grid-top-right{
    grid-column: 3 / 4;
    grid-row: 1 / 2;
  }
  .desktop-gallery-grid .grid-middle-right{
    grid-column: 4 / 5;
    grid-row: 1 / 2;
  }
  .desktop-gallery-grid .grid-bottom-left{
    grid-column: 3 / 4;
    grid-row: 2 / 3;
  }
  .desktop-gallery-grid .grid-bottom-right{
    grid-column: 4 / 5;
    grid-row: 2 / 3;
  }
  .more-photos-btn{
    position:absolute;
    bottom:16px;
    right:16px;
    background:#fff;
    border:none;
    padding:10px 20px;
    border-radius:8px;
    font-weight:600;
    font-size:14px;
    color:#111;
    cursor:pointer;
    box-shadow:0 4px 12px rgba(0,0,0,0.15);
    transition:all 0.2s ease;
    z-index:2;
  }
  .more-photos-btn:hover{
    background:#f8f9fa;
    transform:translateY(-2px);
    box-shadow:0 6px 16px rgba(0,0,0,0.2);
  }
}

/* Mobile header gallery (Swiper) */
@media (max-width: 991.98px){
  #mobile-header{ overflow:hidden; position:relative; }
  .mobile-gallery-swiper{ width:100%; height:500px; }
  .mobile-gallery-swiper .swiper-slide{ display:flex; align-items:center; justify-content:center; background:#f8f9fa; }
  .mobile-gallery-swiper .swiper-slide img{ width:100%; height:100%; object-fit:cover; display:block; }
  .mobile-gallery-swiper .swiper-pagination{ bottom:16px !important; }
  .mobile-gallery-swiper .swiper-pagination-bullet{ width:8px; height:8px; background:#fff; opacity:0.6; }
  .mobile-gallery-swiper .swiper-pagination-bullet-active{ background:#ef4444; opacity:1; transform:scale(1.2); }
  
  /* Arrow buttons */
  .mobile-gallery-swiper .swiper-button-prev,
  .mobile-gallery-swiper .swiper-button-next{
    width:40px; height:40px; border-radius:50%; background:#fff; color:#111; 
    box-shadow:0 8px 16px rgba(0,0,0,0.12); opacity:0.95;
  }
  .mobile-gallery-swiper .swiper-button-prev:after,
  .mobile-gallery-swiper .swiper-button-next:after{ font-size:18px; }
  
  /* Fancybox links */
  .mobile-gallery-swiper .swiper-slide a{ display:block; width:100%; height:100%; cursor:pointer; }
  .mobile-gallery-swiper .swiper-slide a img{ pointer-events:none; }
}

/* Tour header info */
.tour-header-info{ padding:24px 0; }
.tour-title{ font-size:32px; font-weight:700; color:#111; line-height:1.3; flex:1; }

.rating-badge{ 
  background:#fff; 
  padding:8px 16px; 
  border-radius:12px; 
  border:1px solid #e5e7eb;
  box-shadow:0 2px 8px rgba(0,0,0,0.04);
}
.rating-badge .stars{ color:#fbbf24; font-size:16px; display:flex; gap:2px; }
.rating-badge .rating-value{ font-weight:700; font-size:18px; color:#111; }
.rating-badge .rating-count{ font-size:14px; }

.tour-meta-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit, minmax(200px, 1fr));
  gap:16px;
  margin-top:24px;
}

.meta-item{
  display:flex;
  align-items:center;
  gap:12px;
  padding:16px;
  background:#fff;
  border:1px solid #e5e7eb;
  border-radius:12px;
  transition:all 0.2s ease;
}

.meta-item:hover{
  border-color:#d1d5db;
  box-shadow:0 4px 12px rgba(0,0,0,0.08);
  transform:translateY(-2px);
}

.meta-icon{
  width:48px;
  height:48px;
  display:flex;
  align-items:center;
  justify-content:center;
  background:linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
  border-radius:12px;
  color:#fff;
  font-size:20px;
  flex-shrink:0;
}

.meta-content{
  display:flex;
  flex-direction:column;
  gap:2px;
}

.meta-label{
  font-size:12px;
  color:#6b7280;
  font-weight:500;
  text-transform:uppercase;
  letter-spacing:0.5px;
}

.meta-value{
  font-size:15px;
  color:#111;
  font-weight:600;
}

/* Sticky navigation tabs */
#tabs-container .nav-pills .nav-link{
  color:#6b7280;
  font-weight:600;
  font-size:15px;
  padding:16px 20px;
  border-bottom:3px solid transparent;
  transition:all 0.2s ease;
}
#tabs-container .nav-pills .nav-link:hover{
  color:#111;
  background:transparent;
}
#tabs-container .nav-pills .nav-link.active{
  color:#ef4444;
  background:transparent;
  border-bottom-color:#ef4444;
}

@media (max-width: 767.98px){
  .tour-title{ font-size:24px; }
  .tour-meta-grid{ grid-template-columns:1fr; gap:12px; }
  .meta-item{ padding:12px; }
  .meta-icon{ width:40px; height:40px; font-size:18px; }
  .rating-badge{ padding:6px 12px; font-size:14px; }
  .rating-circle{ width:170px; height:170px; --ring: 10px; }
  .rating-number{ font-size:48px; }
}

/* Tour content sections */
.content-section{ 
  background:#fff; 
  border:1px solid #e5e7eb; 
  border-radius:12px; 
  padding:24px; 
}
.section-title{ 
  font-size:24px; 
  font-weight:700; 
  color:#111; 
  margin-bottom:24px; 
  position:relative;
  display:block;
  padding-bottom:16px;
  width:100%;
}
.section-title::after{
  content:'';
  position:absolute;
  left:0;
  bottom:0;
  width:100%;
  height:6px;
  background:linear-gradient(90deg, #ef4444 0%, transparent 100%);
  border-radius:3px;
}

/* Section title in flex container */
.d-flex .section-title{
  flex:1;
  margin-bottom:0;
}
.d-flex .section-title::after{
  left:-24px;
  width:calc(100% + 48px);
  bottom:-16px;
}
.section-body h5{ 
  font-size:18px; 
  font-weight:600; 
  color:#111; 
  margin-top:20px; 
  margin-bottom:12px; 
}
.section-body h5:first-child{ margin-top:0; }
.section-body p{ 
  color:#4b5563; 
  line-height:1.7; 
  margin-bottom:16px; 
}

/* Itinerary Timeline */
.itinerary-timeline{
  position:relative;
  padding-left:0;
}
.itinerary-item{
  display:flex;
  gap:16px;
  margin-bottom:24px;
  position:relative;
}
.itinerary-item:last-child{
  margin-bottom:0;
}
.itinerary-item:not(:last-child)::before{
  content:'';
  position:absolute;
  left:15px;
  top:32px;
  width:2px;
  height:calc(100% + 24px);
  background:#e5e7eb;
  z-index:0;
}
.itinerary-marker{
  flex-shrink:0;
  width:32px;
  height:32px;
  position:relative;
  z-index:1;
}
.itinerary-number{
  width:32px;
  height:32px;
  background:#ef4444;
  color:#fff;
  border-radius:50%;
  display:flex;
  align-items:center;
  justify-content:center;
  font-weight:700;
  font-size:14px;
  box-shadow:0 2px 8px rgba(239,68,68,0.3);
}
.itinerary-dot{
  width:12px;
  height:12px;
  background:#ef4444;
  border-radius:50%;
  margin:10px;
}
.itinerary-content{
  flex:1;
  padding-top:4px;
}
.itinerary-content h6{
  font-size:16px;
  font-weight:700;
  color:#111;
  margin-bottom:8px;
  line-height:1.4;
}
.itinerary-content h6 .badge{
  font-size:11px;
  font-weight:600;
  padding:4px 8px;
  margin-left:8px;
  vertical-align:middle;
}
.itinerary-content p{
  color:#6b7280;
  line-height:1.6;
  margin:0 0 8px 0;
  font-size:14px;
}
.itinerary-meta{
  display:flex;
  align-items:center;
  gap:8px;
  font-size:13px;
  color:#9ca3af;
}
.itinerary-meta span:not(:first-child):not(:last-child){
  color:#d1d5db;
}
.section-body .row{
  row-gap:0;
}
.inclusion-item,
.exclusion-item{
  display:flex;
  align-items:center;
  gap:10px;
  padding:8px 0;
  font-size:15px;
  color:#111;
}
.inclusion-item i{
  font-size:18px;
  flex-shrink:0;
}
.exclusion-item i{
  font-size:18px;
  flex-shrink:0;
}

/* FAQ Accordion */
.accordion{ border:none; }
.accordion-item{
  border:1px solid #e5e7eb;
  border-radius:12px !important;
  margin-bottom:12px;
  overflow:hidden;
}
.accordion-item:last-child{ margin-bottom:0; }
.accordion-button{
  font-size:16px;
  font-weight:600;
  color:#111;
  background:#f9fafb;
  padding:18px 20px;
  border:none;
  box-shadow:none !important;
}
.accordion-button:not(.collapsed){
  background:#fff;
  color:#111;
}
.accordion-button::after{
  background-image:url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23111'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
}
.accordion-body{
  padding:20px;
  color:#6b7280;
}

/* Modern Reviews Swiper */
.reviews-swiper-modern{
  overflow:hidden !important;
}
.reviews-swiper-modern .swiper-slide{
  height:auto;
}
.review-card{
  background:#fff;
  border:1px solid #e5e7eb;
  border-radius:16px;
  padding:24px;
  height:100%;
  box-shadow:0 2px 8px rgba(0,0,0,0.08);
}
.review-header{
  margin-bottom:16px;
}
.review-stars{
  color:#fbbf24;
  font-size:16px;
  margin-bottom:12px;
}
.review-meta{
  display:flex;
  flex-direction:column;
  gap:4px;
}
.review-author{
  font-weight:700;
  font-size:16px;
  color:#111;
}
.review-date{
  font-size:13px;
  color:#9ca3af;
}
.review-body p{
  color:#6b7280;
  line-height:1.6;
  margin:0;
}
.review-navigation{
  display:flex;
  gap:8px;
}
.review-nav-btn{
  width:36px;
  height:36px;
  border-radius:8px;
  border:1px solid #e5e7eb;
  background:#fff;
  color:#111;
  display:flex;
  align-items:center;
  justify-content:center;
  cursor:pointer;
  transition:all 0.2s ease;
  font-size:14px;
}
.review-nav-btn:hover{
  background:#111;
  color:#fff;
  border-color:#111;
}
.review-nav-btn:disabled{
  opacity:0.3;
  cursor:not-allowed;
}
.review-author{
  font-weight:600;
  color:#111;
}
.review-date{
  color:#9ca3af;
}

.review-date::before{
  content:'';
}
.review-body{
  flex:1;
}
.review-body p{
  color:#6b7280;
  line-height:1.6;
  margin-bottom:12px;
  font-size:15px;
}
.read-more{
  display:inline-flex;
  align-items:center;
  gap:6px;
  padding:8px 16px;
  background:#fff;
  border:2px solid #ef4444;
  border-radius:8px;
  color:#ef4444;
  font-weight:600;
  font-size:14px;
  text-decoration:none;
  transition:all 0.2s ease;
}
.read-more:hover{
  background:#ef4444;
  color:#fff;
  transform:translateY(-2px);
  box-shadow:0 4px 12px rgba(239,68,68,0.3);
}
.read-more::after{
  content:'\f061';
  font-family:'Font Awesome 6 Free';
  font-weight:900;
  font-size:12px;
  transition:transform 0.2s ease;
}
.read-more:hover::after{
  transform:translateX(4px);
}
.reviews-swiper .swiper-pagination{
  bottom:0 !important;
}
.reviews-swiper .swiper-pagination-bullet{
  background:#d1d5db;
  opacity:1;
}
.reviews-swiper .swiper-pagination-bullet-active{
  background:#ef4444;
}

/* Customer Reviews - Rating Summary */
.rating-summary{ text-align:center; }
.rating-circle{
  --ring: 12px;
  width:200px;
  height:200px;
  border-radius:50%;
  margin:0 auto;
  display:flex;
  align-items:center;
  justify-content:center;
  position:relative;
  background:
    conic-gradient(from 0deg, #fecaca 0deg, #ffd6d6 360deg);
  -webkit-mask:
    radial-gradient(farthest-side, #000 calc(100% - var(--ring)), transparent 0);
          mask:
    radial-gradient(farthest-side, #000 calc(100% - var(--ring)), transparent 0);
  box-shadow: 0 10px 24px rgba(239,68,68,0.15), inset 0 0 0 9999px #fff;
}
.rating-circle > *{ position:relative; z-index:1; }
.rating-label{
  font-size:12px;
  letter-spacing:.08em;
  color:#6b7280;
  font-weight:700;
  text-transform:uppercase;
}
.rating-number{
  font-size:56px;
  font-weight:900;
  color:#ef4444;
  line-height:1;
  margin:6px 0 4px;
  text-shadow: 0 2px 10px rgba(239,68,68,.2);
}
.rating-text{
  font-size:13px;
  color:#9ca3af;
  font-weight:600;
}
.overall-stars{ margin-top:10px; gap:10px !important; }
.overall-stars .stars i{ font-size:18px; color:#fbbf24 !important; filter: drop-shadow(0 2px 4px rgba(251,191,36,.35)); }
.overall-stars .fw-bold{ font-weight:800 !important; color:#111; }
.overall-stars .text-muted{ color:#6b7280 !important; }

/* New rating card layout (restored) */
.rating-card{
  background:#fff;
  border:1px solid #e5e7eb;
  border-radius:16px;
  padding:20px;
  box-shadow:0 6px 18px rgba(0,0,0,0.06);
}
.rating-grid{ display:grid; grid-template-columns: 280px 1fr; gap:24px; align-items:center; }
.overall-box{ display:flex; flex-direction:column; align-items:center; justify-content:center; }
.big-number{ font-size:64px; font-weight:900; color:#ef4444; line-height:1; text-shadow:0 6px 16px rgba(239,68,68,.18); }
.based-on{ color:#6b7280; font-size:14px; }
.overall-stars-lg{ display:flex; align-items:center; gap:6px; margin:8px 0 2px; }
.overall-stars-lg i{ color:#f6b10a; font-size:22px; }

.rating-breakdown{ display:grid; grid-template-columns: 1fr; gap:8px; }
.break-item{ display:grid; grid-template-columns: 85px 1fr 50px; gap:8px; align-items:center; font-size:14px; color:#111; }
.break-item .label{ color:#4b5563; }
.progress-wrap{ width:100%; height:10px; background:#e5e7eb; border-radius:9999px; overflow:hidden; }
.progress-fill{ height:100%; background:#10b981; border-radius:9999px; width:0; }
.break-item .count{ text-align:right; color:#6b7280; font-weight:600; }

.rating-categories{ display:grid; grid-template-columns: repeat(3, 1fr); gap:12px; margin-top:14px; }
.cat-item{ background:#f9fafb; border:1px solid #eef2f7; border-radius:12px; padding:10px 12px; }
.cat-item .cat-label{ color:#6b7280; font-size:12px; font-weight:700; text-transform:uppercase; letter-spacing:.04em; }
.cat-item .cat-row{ display:grid; grid-template-columns: 1fr 42px; align-items:center; gap:8px; margin-top:6px; }
.cat-progress{ height:8px; background:#e5e7eb; border-radius:9999px; overflow:hidden; }
.cat-fill{ height:100%; background:#0ea5e9; border-radius:9999px; width:0; }
.cat-score{ text-align:right; font-weight:800; color:#111; }

@media (max-width: 991.98px){
  .rating-grid{ grid-template-columns: 1fr; }
}
.rating-detail-item{
  display:flex;
  justify-content:space-between;
  align-items:center;
  padding:12px 0;
  border-bottom:1px solid #e5e7eb;
}
.rating-detail-item:last-child{
  border-bottom:none;
}
.rating-detail-label{
  display:flex;
  flex-direction:column;
  gap:4px;
}
.rating-detail-value{
  display:flex;
  align-items:center;
  gap:8px;
  font-size:18px;
}

/* Review List */
.review-list-item{
  padding:24px 0;
  border-bottom:1px solid #e5e7eb;
  position:relative;
}
.review-list-item:last-child{
  border-bottom:none;
}
.review-actions{ display:flex; align-items:center; gap:12px; margin-top:10px; justify-content:flex-end; }
.review-actions.top-right{ position:absolute; top:6px; right:0; margin-top:0; }
.btn-like{
  display:inline-flex; align-items:center; gap:8px;
  background:#fff; color:#6b7280; border:1px solid #d1d5db; border-radius:9999px;
  padding:6px 10px; cursor:pointer; transition:all .15s ease; font-weight:700; font-size:14px;
}
.btn-like i{ color:#9ca3af; transition:transform .15s ease; font-size:16px; }
.btn-like:hover{ box-shadow:0 6px 14px rgba(0,0,0,.05); transform:translateY(-1px); border-color:#9ca3af; }
.btn-like.active{ background:#ecfdf5; border-color:#a7f3d0; }
.btn-like.active i{ color:#059669; }
.btn-like.icon-only{ padding:6px; width:32px; height:32px; justify-content:center; }
.btn-like.active i{ transform:scale(1.1); }
.like-count{ color:#6b7280; font-weight:700; }
.review-list-item .review-stars{
  color:#fbbf24;
  font-size:14px;
  display:flex;
  gap:2px;
}
.review-title{
  font-size:16px;
  font-weight:700;
  color:#111;
  margin-bottom:8px;
}
.review-text{
  color:#6b7280;
  line-height:1.6;
  margin-bottom:12px;
}

/* Review Photos */
.review-photos{
  display:flex;
  gap:8px;
  flex-wrap:wrap;
}
.review-photos a{
  display:block;
  width:100px;
  height:100px;
  border-radius:8px;
  overflow:hidden;
  border:1px solid #e5e7eb;
  transition:all 0.2s ease;
}
.review-photos a:hover{
  transform:translateY(-2px);
  box-shadow:0 4px 12px rgba(0,0,0,0.12);
  border-color:#d1d5db;
}
.review-photos img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}

/* Rate Tour Form */
.rate-tour-section{
  background:#f9fafb;
  padding:32px;
  border-radius:12px;
  margin-top:32px;
}
.rating-input-item{
  margin-bottom:24px;
}
.rating-input-item label{
  display:block;
  font-weight:600;
  margin-bottom:8px;
  color:#111;
}
.star-rating-input{
  display:flex;
  gap:8px;
}
.star-rating-input i{
  font-size:24px;
  color:#d1d5db;
  cursor:pointer;
  transition:color 0.2s ease;
}
.star-rating-input i:hover,
.star-rating-input i.active{
  color:#fbbf24;
}

/* Sticky Sidebar - Booking Box */
.tour-sidebar-sticky{
  position:-webkit-sticky !important;
  position:sticky !important;
  top:80px !important;
  align-self:flex-start;
  height:fit-content;
  z-index:10;
}
.booking-box{
  background:#fff;
  border:1px solid #e5e7eb;
  border-radius:16px;
  padding:24px;
  box-shadow:0 2px 8px rgba(0,0,0,0.04);
}

/* Sidebar Calendar Dropdown */
.booking-date-section{
  background:transparent !important;
  padding:0 !important;
}
.date-dropdown-wrapper{
  position:relative;
}
.date-display{
  display:flex;
  align-items:center;
  gap:12px;
  padding:12px 16px;
  background:#fff;
  border:1px solid #e5e7eb;
  border-radius:8px;
  cursor:pointer;
  transition:all 0.2s ease;
}
.date-display:hover{
  border-color:#d1d5db;
}
.date-display i:first-child{
  color:#6b7280;
  font-size:16px;
}
.date-display span{
  flex:1;
  font-size:16px;
  color:#111;
  font-weight:400;
}

.sidebar-calendar{
  position:absolute;
  top:100%;
  left:0;
  right:0;
  margin-top:8px;
  z-index:10;
  background:#fff;
  border:1px solid #e5e7eb;
  border-radius:8px;
  box-shadow:0 4px 12px rgba(0,0,0,0.1);
}
.sidebar-calendar .flatpickr-calendar{
  width:100% !important;
  box-shadow:none !important;
  border:none !important;
  border-radius:8px !important;
  background:#fff !important;
}
.sidebar-calendar .flatpickr-innerContainer{
  display:block !important;
}
.sidebar-calendar .flatpickr-days{
  width:100% !important;
}
.sidebar-calendar .dayContainer{
  width:100% !important;
  min-width:100% !important;
  max-width:100% !important;
}

/* Price */
.price-header{
  text-align:center;
}
.price-from{
  font-size:12px;
  color:#9ca3af;
  text-transform:uppercase;
  letter-spacing:0.5px;
  font-weight:600;
}
.price-main{
  display:flex;
  align-items:baseline;
  justify-content:center;
  gap:4px;
}
.price-amount{
  font-size:48px;
  font-weight:800;
  color:#111;
  line-height:1;
}
.price-currency{
  font-size:24px;
  font-weight:700;
  color:#6b7280;
}
.price-per{
  text-align:center;
  font-size:14px;
  color:#6b7280;
}
/* Booking Includes */
.booking-includes{
  display:flex;
  flex-direction:column;
  gap:16px;
  background:#f0fdf4;
  padding:16px;
  border-radius:12px;
}
.include-item{
  display:flex;
  align-items:flex-start;
  gap:12px;
}
.include-item i{
  color:#10b981;
  font-size:20px;
  flex-shrink:0;
  margin-top:2px;
}
.include-text{
  display:flex;
  flex-direction:column;
  gap:4px;
}
.include-title{
  font-weight:700;
  font-size:14px;
  color:#111;
}
.include-desc{
  font-size:13px;
  color:#6b7280;
  line-height:1.4;
}

/* Date */
.booking-date{
  padding:12px;
  background:#f9fafb;
  border-radius:8px;
}
.btn-modify{
  background:none;
  border:none;
  color:#ef4444;
  font-weight:700;
  font-size:14px;
  cursor:pointer;
}
.btn-modify:hover{
  text-decoration:underline;
}

/* Travelers Display */
.travelers-display{
  display:flex;
  align-items:center;
  gap:12px;
  padding:12px 16px;
  background:#fff;
  border:1px solid #e5e7eb;
  border-radius:8px;
  cursor:pointer;
  transition:all 0.2s ease;
}
.travelers-display:hover{
  border-color:#d1d5db;
}
.travelers-display i:first-child{
  color:#6b7280;
  font-size:16px;
}
.travelers-display span{
  flex:1;
  font-size:16px;
  color:#111;
}
.travelers-display i:last-child{
  color:#6b7280;
  font-size:14px;
}

/* Travelers Dropdown */
.travelers-dropdown{
  position:absolute;
  top:100%;
  left:0;
  right:0;
  background:#fff;
  border:1px solid #e5e7eb;
  border-radius:8px;
  margin-top:8px;
  padding:16px;
  box-shadow:0 8px 24px rgba(0,0,0,0.12);
  z-index:100;
}
.traveler-item{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:12px 0;
  border-bottom:1px solid #f3f4f6;
}
.traveler-item:last-child{
  border-bottom:none;
}
.traveler-type{
  font-weight:700;
  color:#111;
  font-size:15px;
}
.traveler-limit{
  font-size:13px;
  color:#9ca3af;
  margin-top:4px;
}
.traveler-controls{
  display:flex;
  align-items:center;
  gap:16px;
}
.btn-counter{
  width:36px;
  height:36px;
  border-radius:50%;
  border:1px solid #e5e7eb;
  background:#fff;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:20px;
  cursor:pointer;
  transition:all 0.2s ease;
}
.btn-counter:hover{
  background:#f9fafb;
  border-color:#d1d5db;
}
.btn-counter[data-action="plus"]{
  color:#ef4444;
}
.btn-counter[data-action="minus"]{
  color:#6b7280;
}
.traveler-count{
  font-size:18px;
  font-weight:700;
  color:#111;
  min-width:24px;
  text-align:center;
}

/* Region & Hotel Select */
.region-select,
.hotel-select{
  display:flex;
  align-items:center;
  gap:12px;
  padding:12px 16px;
  background:#fff;
  border:1px solid #e5e7eb;
  border-radius:8px;
  cursor:pointer;
  transition:all 0.2s ease;
}
.region-select:hover,
.hotel-select:hover{
  border-color:#d1d5db;
}
.region-select i:first-child,
.hotel-select i:first-child{
  color:#6b7280;
  font-size:16px;
}
.region-select span,
.hotel-select span{
  flex:1;
  font-size:16px;
  color:#111;
}
.region-select i:last-child,
.hotel-select i:last-child{
  color:#6b7280;
  font-size:14px;
}

/* Dropdowns */
.region-dropdown,
.hotel-dropdown{
  position:absolute;
  top:100%;
  left:0;
  right:0;
  background:#fff;
  border:1px solid #e5e7eb;
  border-radius:8px;
  margin-top:8px;
  padding:12px;
  box-shadow:0 8px 24px rgba(0,0,0,0.12);
  z-index:100;
  max-height:300px;
  overflow-y:auto;
}
.region-list,
.hotel-list{
  max-height:200px;
  overflow-y:auto;
}
.region-option,
.hotel-option{
  padding:12px;
  border-radius:6px;
  cursor:pointer;
  transition:background 0.2s ease;
}
.region-option:hover,
.hotel-option:hover{
  background:#f9fafb;
}
.region-option.selected,
.hotel-option.selected{
  background:#fef2f2;
  color:#ef4444;
  font-weight:600;
}

/* Relative positioning for dropdowns */
.booking-travelers,
.mb-3{
  position:relative;
}

/* Booking Info Cards */
.booking-info-cards{
  display:flex;
  flex-direction:column;
  gap:12px;
}
.info-card{
  display:flex;
  gap:12px;
  padding:16px;
  background:#f9fafb;
  border:1px solid #e5e7eb;
  border-radius:12px;
  transition:all 0.2s ease;
}
.info-card:hover{
  background:#fff;
  box-shadow:0 4px 12px rgba(0,0,0,0.08);
  transform:translateY(-2px);
}
.info-icon{
  flex-shrink:0;
  width:40px;
  height:40px;
  display:flex;
  align-items:center;
  justify-content:center;
  background:#fff;
  border-radius:10px;
  color:#ef4444;
  font-size:20px;
  box-shadow:0 2px 8px rgba(0,0,0,0.06);
}
.info-content{
  flex:1;
}
.info-title{
  font-size:14px;
  font-weight:700;
  color:#111;
  margin-bottom:4px;
}
.info-text{
  font-size:13px;
  color:#6b7280;
  line-height:1.4;
}

/* Review Modal z-index fix */
#reviewModal{
  z-index:9999 !important;
}
#reviewModal .modal-dialog{
  z-index:10000 !important;
}

/* Similar Destinations */
.similar-destinations{
  background:#fff;
  padding:48px 0;
  margin-top:48px;
}
.similar-swiper{
  position:relative;
  padding:0 50px;
}
.tour-card-similar{
  background:#fff;
  border-radius:16px;
  overflow:hidden;
  border:1px solid #e5e7eb;
  transition:all 0.3s ease;
}
.tour-card-similar:hover{
  box-shadow:0 8px 24px rgba(0,0,0,0.12);
  transform:translateY(-4px);
}
.tour-card-similar .tour-image{
  display:block;
  position:relative;
  overflow:hidden;
  aspect-ratio:4/3;
}
.tour-card-similar .tour-image img{
  width:100%;
  height:100%;
  object-fit:cover;
  transition:transform 0.3s ease;
}
.tour-card-similar:hover .tour-image img{
  transform:scale(1.05);
}
.tour-card-similar .tour-info{
  padding:20px;
}
.tour-card-similar .tour-name{
  font-size:18px;
  font-weight:700;
  color:#111;
  margin-bottom:12px;
  line-height:1.3;
}
.tour-card-similar .tour-rating{
  display:flex;
  align-items:center;
  gap:6px;
  margin-bottom:12px;
  font-size:14px;
}
.tour-card-similar .rating-value{
  font-weight:700;
  color:#111;
}
.tour-card-similar .rating-count{
  color:#6b7280;
}
.tour-card-similar .tour-price{
  display:flex;
  align-items:center;
}
.tour-card-similar .price-amount{
  font-size:24px;
  font-weight:800;
  color:#ef4444;
}

/* Similar Swiper Navigation */
.similar-swiper .swiper-button-prev,
.similar-swiper .swiper-button-next{
  width:44px;
  height:44px;
  background:#fff;
  border:2px solid #e5e7eb;
  border-radius:50%;
  color:#111;
  transition:all 0.2s ease;
}
.similar-swiper .swiper-button-prev:hover,
.similar-swiper .swiper-button-next:hover{
  background:#ef4444;
  border-color:#ef4444;
  color:#fff;
}
.similar-swiper .swiper-button-prev:after,
.similar-swiper .swiper-button-next:after{
  font-size:18px;
  font-weight:700;
}
.similar-swiper .swiper-button-prev{
  left:0;
}
.similar-swiper .swiper-button-next{
  right:0;
}

@media (max-width: 991.98px){
  .tour-content{ padding-right:0; }
  .timeline-number{ width:40px; height:40px; font-size:18px; }
  .accordion-button{ font-size:15px; padding:16px; }
  .accordion-body{ padding:16px; }
  .review-card{ padding:16px; }
  .rating-circle{ width:150px; height:150px; }
  .rating-number{ font-size:40px; }
  .rating-metrics{ display:none; }
  .rate-tour-section{ padding:24px 16px; }
  .rate-tour-section .rating-input{ display:flex; align-items:center; }
  .rate-tour-section .rating-input input{ width:100%; }
  .similar-destinations{ padding:32px 0; margin-top:32px; }
  .tour-sidebar-sticky{ position:static !important; margin-top:24px; }
}

/* Meeting Point & Location map */
.map-container{
  position:relative;
  width:100%;
  background:#f3f4f6;
  border-radius:12px;
  overflow:hidden;
  box-shadow:0 2px 10px rgba(0,0,0,0.06);
  /* 16:9 ratio */
  padding-top:45%;
}
.map-container iframe{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  border:0;
}

/* Overall stars row */
.overall-stars{ margin-top:6px; }
.overall-stars .stars i{ font-size:18px; }

/* Tour detail: video play/pause overlay */
.td-video-toggle{
  position:absolute;
  inset:0;
  display:flex;
  align-items:center;
  justify-content:center;
  pointer-events:none;
  z-index: 3;
  opacity:1;
  transition: opacity .25s ease;
}
.td-video-toggle .td-toggle-btn{
  pointer-events:auto;
  width:58px; height:58px;
  border-radius:50%;
  border:none;
  display:flex; align-items:center; justify-content:center;
  background:rgba(0,0,0,0.4);
  color:#fff;
  box-shadow:0 6px 16px rgba(0,0,0,.25);
  transition:background .2s ease, transform .2s ease, opacity .2s ease;
}
.td-video-toggle .td-toggle-btn i{ font-size:22px; line-height:1; }
.td-video-toggle .td-toggle-btn:hover{ background:rgba(0,0,0,0.55); transform: scale(1.04); }
@media (max-width: 575.98px){
  .td-video-toggle .td-toggle-btn{ width:52px; height:52px; }
}

/* Hidden state for overlay */
.td-video-toggle.is-hidden{ opacity:0; pointer-events:none; }

/* Hero video */
.hero-video{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
  cursor:pointer;
}

/* Ensure video fills mobile swiper slide */
@media (max-width: 991.98px){
  .mobile-gallery-swiper{ height: 500px; }
  .mobile-gallery-swiper .swiper-slide{ padding:0; position:relative; background:#000; }
  .mobile-gallery-swiper .swiper-slide .hero-video{
    position:absolute;
    top:0; left:0; right:0; bottom:0;
    width:100%; height:100%;
    object-fit:cover;
    object-position:center;
    transform:scale(1.08); /* hide potential letterbox bars inside the source video */
  }
}


.section-title::after {
  display: none;
}

/* Tour Time Selection */
.booking-time-section{
  background:transparent !important;
  padding:0 !important;
}
.time-options{
  display:grid;
  grid-template-columns:repeat(3, 1fr);
  gap:12px;
}
.time-option {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 4px;
  border: 2px solid #e5e7eb;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s 
ease;
  gap: 8px;
}
.time-option:hover{
  border-color:#ef4444;
  background:#fef2f2;
}
.time-option.active{
  border-color:#ef4444;
  background:#ef4444;
  color:#fff;
}
.time-option i{
  font-size:24px;
  color:#6b7280;
}
.time-option.active i{
  color:#fff;
}
.time-text{
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:4px;
}
.time-label{
  font-size:14px;
  font-weight:600;
  color:#111;
}
.time-hours{
  font-size:12px;
  font-weight:500;
  color:#6b7280;
}
.time-option.active .time-label,
.time-option.active .time-hours{
  color:#fff;
}

/* Photo Upload Preview */
#photo-preview {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 10px;
}

.photo-preview-item {
  position: relative;
  width: 100px;
  height: 100px;
  border-radius: 8px;
  overflow: hidden;
  border: 2px solid #e5e7eb;
  display: flex;
  align-items: center;
  justify-content: center;
}

.photo-preview-item.loading {
  background: #f9fafb;
}

.photo-preview-item.loading i {
  font-size: 24px;
  color: #6b7280;
}

.photo-preview-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.photo-preview-item .remove-photo {
  position: absolute;
  top: -8px;
  right: -8px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #ef4444;
  color: #fff;
  border: 2px solid #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  transition: all 0.2s ease;
  padding: 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  z-index: 10;
}

.photo-preview-item .remove-photo:hover {
  background: #dc2626;
  transform: scale(1.15) rotate(90deg);
  box-shadow: 0 4px 12px rgba(239, 68, 68, 0.4);
}

.photo-preview-item .remove-photo i {
  line-height: 1;
}

/* Star Rating Input */
.star-rating-input {
  display: flex;
  gap: 8px;
  font-size: 32px;
  cursor: pointer;
  user-select: none;
}

.star-rating-input i {
  color: #fbbf24;
  transition: all 0.2s ease;
}

.star-rating-input i:hover {
  transform: scale(1.1);
}

.star-rating-input i.active {
  color: #fbbf24;
}

.star-rating-input i.fa-regular {
  color: #d1d5db;
}

/* Review photos in comment list */
.review-photos {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.review-photos a {
  display: block;
  width: 80px;
  height: 80px;
  border-radius: 8px;
  overflow: hidden;
  border: 2px solid #e5e7eb;
}

.review-photos img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.2s ease;
}

.review-photos a:hover img {
  transform: scale(1.05);
}
.modal-backdrop.fade.show {
  z-index: 1 !important;
}

/* Booking Total Price */
.booking-total {
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  border-radius: 12px;
  padding: 20px;
  border: 2px solid #dee2e6;
}

.booking-total .total-label {
  font-size: 16px;
  font-weight: 600;
  color: #495057;
}

.booking-total .total-price {
  font-size: 28px;
  font-weight: 700;
  color: #dc3545;
}

/* No Transfer Checkbox */
.form-check {
  padding: 15px;
  background: #f8f9fa;
  border-radius: 8px;
  border: 1px solid #dee2e6;
}

.form-check-input {
  width: 20px;
  height: 20px;
  margin-top: 0;
  cursor: pointer;
}

.form-check-label {
  font-size: 15px;
  font-weight: 500;
  color: #495057;
  cursor: pointer;
  margin-left: 8px;
}

.form-check-input:checked {
  background-color: #dc3545;
  border-color: #dc3545;
}

/* Booking Buttons */
.booking-buttons {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.booking-buttons .btn {
  width: 100%;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 14px 20px;
  border-radius: 8px;
  transition: all 0.3s ease;
  font-size: 14px;
}

.booking-buttons .btn-danger {
  background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
  border: none;
  box-shadow: 0 4px 15px rgba(220, 53, 69, 0.3);
}

.booking-buttons .btn-danger:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(220, 53, 69, 0.4);
}

.booking-buttons .btn-outline-danger {
  border: 2px solid #dc3545;
  color: #dc3545;
  background: transparent;
}

.booking-buttons .btn-outline-danger:hover {
  background: #dc3545;
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(220, 53, 69, 0.3);
}

/* Booking Info Cards */
.booking-info-cards {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.info-card {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 15px;
  background: #f8f9fa;
  border-radius: 8px;
  border: 1px solid #dee2e6;
  transition: all 0.3s ease;
}

.info-card:hover {
  background: #fff;
  border-color: #dc3545;
  box-shadow: 0 2px 8px rgba(220, 53, 69, 0.1);
  transform: translateX(3px);
}

.info-icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
  color: #fff;
  border-radius: 8px;
  font-size: 18px;
}

.info-content {
  flex: 1;
}

.info-title {
  font-size: 14px;
  font-weight: 600;
  color: #212529;
  margin-bottom: 4px;
}

.info-text {
  font-size: 13px;
  color: #6c757d;
  line-height: 1.4;
}

/* Similar Destinations */
.similar-destinations {
  background: #f8f9fa;
}

.similar-swiper {
  position: relative;
  padding: 0 50px;
}

.similar-swiper .swiper-button-prev,
.similar-swiper .swiper-button-next {
  width: 40px;
  height: 40px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.similar-swiper .swiper-button-prev:after,
.similar-swiper .swiper-button-next:after {
  font-size: 16px;
  color: #dc3545;
  font-weight: bold;
}

@media (max-width: 900px) {
/* Yacht Time Selection */
.bottom-sheet-step .booking-time-section {
  margin-bottom: 20px;
}

.bottom-sheet-step  .time-options {
  display: flex;
  flex-direction: row;
  gap: 12px;
}

.bottom-sheet-step  .time-option,
.bottom-sheet-step .time-option-bs {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 10px;
  background: #f8f9fa;
  border: 2px solid #dee2e6;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.bottom-sheet-step  .time-option:hover,
.bottom-sheet-step  .time-option-bs:hover {
  background: #fff;
  border-color: #dc3545;
  transform: translateX(3px);
}

.bottom-sheet-step  .time-option.active,
.bottom-sheet-step  .time-option-bs.active {
  background: #fff;
  border-color: #dc3545;
  box-shadow: 0 2px 8px rgba(220, 53, 69, 0.15);
}

.bottom-sheet-step  .time-option i,
.bottom-sheet-step  .time-option-bs i {
  font-size: 24px;
  color: #6c757d;
  flex-shrink: 0;
  transition: color 0.3s ease;
}

.bottom-sheet-step  .time-option.active i,
.bottom-sheet-step  .time-option-bs.active i {
  color: #dc3545;
}

.bottom-sheet-step  .time-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
}

.bottom-sheet-step  .time-label {
  font-size: 15px;
  font-weight: 600;
  color: #212529;
}

.bottom-sheet-step  .time-hours {
  font-size: 13px;
  color: #6c757d;
}
}