/* v1.5 functional enhancements. Existing TourEx visual language is preserved. */
.tg-blog-grid-item .tg-blog-standard-thumb{overflow:hidden;border-radius:inherit;aspect-ratio:16/10}
.tg-blog-grid-item .tg-blog-standard-thumb a{display:block;width:100%;height:100%}
.tg-blog-grid-item .tg-blog-standard-thumb img{display:block;width:100%!important;height:100%!important;max-height:none!important;object-fit:cover!important;object-position:center}
.tg-blog-post-thumb{flex:0 0 82px;width:82px;height:62px;overflow:hidden;border-radius:8px}
.tg-blog-post-thumb a{display:block;width:100%;height:100%}.tg-blog-post-thumb img{width:100%!important;height:100%!important;object-fit:cover!important}
.tourex-native-select-wrap{position:relative}.tourex-native-select{appearance:none;-webkit-appearance:none;width:100%;height:100%;border:0;background:transparent;padding-right:34px!important;cursor:pointer}.tourex-native-select-wrap .location{pointer-events:none}
.tourex-search-date{min-width:250px}.tourex-search-flex-note{display:block;color:var(--tg-text-body,#737374);font-size:11px;line-height:1.35;margin-top:5px}.tourex-guest-field{position:relative}.tourex-guest-field input{border:0!important;background:transparent!important;padding:0 34px 0 0!important;width:100%}
.tourex-tour-search-form.is-compact .tg-booking-form-parent-inner{width:100%}.tourex-tour-search-form.is-compact .tg-booking-form-search-btn,.tourex-tour-search-form.is-compact .bk-search-button{width:100%}.tourex-tour-search-form.is-compact .tourex-search-date{min-width:0}
.tourex-filter-clear{border:0;background:none;padding:0;color:inherit;text-decoration:underline;cursor:pointer}.tourex-filter-group .tg-label{display:flex;justify-content:space-between;gap:8px;width:100%}.tourex-filter-group .tg-label small{color:var(--tg-text-body,#737374)}
.tourex-ajax-tour-filter{position:relative}.tourex-ajax-tour-filter.is-loading{pointer-events:none;opacity:.72}.tourex-filter-loading{display:none;position:absolute;inset:0;align-items:flex-start;justify-content:center;padding-top:120px;background:rgba(255,255,255,.35);z-index:5}.tourex-ajax-tour-filter.is-loading .tourex-filter-loading{display:flex}.tourex-filter-loading span{width:28px;height:28px;border:3px solid rgba(0,0,0,.15);border-top-color:var(--tg-theme-primary,#560ce3);border-radius:50%;animation:tourexSpin .75s linear infinite}@keyframes tourexSpin{to{transform:rotate(360deg)}}
.tourex-review-stars{display:inline-flex;gap:3px}.tourex-review-star{border:0;background:transparent;padding:0;line-height:1;color:#d9dce1;cursor:pointer}.tourex-review-star.active,.tourex-review-star:hover{color:#ff9901}.tourex-review-notice{font-size:14px}.tourex-review-notice.is-success{color:#198754}.tourex-review-notice.is-error{color:#dc3545}
@media(max-width:991px){.tourex-search-date{min-width:0}.tourex-tour-search-form:not(.is-compact) .tg-booking-form-input-group{flex-wrap:wrap}.tourex-tour-search-form:not(.is-compact) .tg-booking-form-parent-inner{flex:1 1 calc(50% - 15px)}.tourex-tour-search-form:not(.is-compact) .tg-booking-form-search-btn{flex:1 1 100%}.tourex-tour-search-form:not(.is-compact) .bk-search-button{width:100%}}
@media(max-width:575px){.tourex-tour-search-form:not(.is-compact) .tg-booking-form-parent-inner{flex:1 1 100%;margin-right:0!important}}
.tourex-filter-group input:disabled + .tg-label{opacity:.45;cursor:not-allowed}


/* v1.5.1 — polished destination/date search, scoped to Tourex search only. */
.tourex-search-wrap{
  border-radius:22px;
  border:1px solid rgba(15,35,58,.08);
  box-shadow:0 18px 55px rgba(15,35,58,.10);
  padding:26px 30px 30px;
}
.tourex-tour-search-form{width:100%;--tourex-search-border:#e7eaf0;--tourex-search-bg:#f7f8fa;--tourex-search-ink:#111827;}
.tourex-tour-search-form:not(.is-compact) .tg-booking-form-input-group{
  display:grid!important;
  grid-template-columns:minmax(220px,1.05fr) minmax(300px,1.35fr) minmax(150px,.65fr) minmax(190px,.72fr);
  gap:18px;
  align-items:end!important;
  flex-wrap:nowrap!important;
}
.tourex-tour-search-form .tg-booking-form-parent-inner,
.tourex-tour-search-form .tg-booking-form-search-btn{margin:0!important;min-width:0;}
.tourex-tour-search-form .tg-booking-form-title{
  display:block;
  margin:0 0 8px!important;
  color:var(--tourex-search-ink);
  font-size:13px;
  line-height:1.2;
  font-weight:700;
  letter-spacing:.015em;
}
.tourex-tour-search-form .tg-booking-add-input-field,
.tourex-tour-search-form .tg-booking-add-input-date{
  position:relative;
  display:flex;
  align-items:center;
  width:100%;
  height:58px;
  padding:0!important;
  overflow:hidden;
  background:var(--tourex-search-bg)!important;
  border:1px solid var(--tourex-search-border)!important;
  border-radius:14px!important;
  box-shadow:0 1px 2px rgba(16,24,40,.02);
  transition:border-color .2s ease,box-shadow .2s ease,background .2s ease;
}
.tourex-tour-search-form .tg-booking-add-input-field:focus-within,
.tourex-tour-search-form .tg-booking-add-input-date:focus-within{
  background:#fff!important;
  border-color:rgba(86,12,227,.32)!important;
  box-shadow:0 0 0 4px rgba(86,12,227,.07);
}
.tourex-tour-search-form .tg-booking-add-input-field .input,
.tourex-tour-search-form .tg-booking-add-input-date .input,
.tourex-tour-search-form .tourex-native-select{
  width:100%!important;
  height:100%!important;
  min-width:0;
  margin:0!important;
  padding:0 48px 0 17px!important;
  border:0!important;
  outline:0!important;
  background:transparent!important;
  color:#242833!important;
  font-size:15px!important;
  line-height:58px!important;
  box-shadow:none!important;
}
.tourex-tour-search-form .tg-booking-add-input-date .input{cursor:pointer;text-overflow:ellipsis;white-space:nowrap;overflow:hidden;}
.tourex-tour-search-form .tg-booking-add-input-field .location,
.tourex-tour-search-form .tg-booking-add-input-date > span{
  position:absolute!important;
  right:16px!important;
  top:50%!important;
  left:auto!important;
  transform:translateY(-50%)!important;
  width:28px;
  height:28px;
  display:flex!important;
  align-items:center;
  justify-content:center;
  border-radius:8px;
  color:var(--tg-theme-primary,#560ce3)!important;
  background:rgba(86,12,227,.07);
  pointer-events:none;
}
.tourex-tour-search-form .tourex-search-flex-note{
  margin-top:7px;
  color:#858b98;
  font-size:11px;
  line-height:1.35;
}
.tourex-tour-search-form .tourex-search-flex-note i{margin-right:4px;color:var(--tg-theme-primary,#560ce3);}
.tourex-tour-search-form:not(.is-compact) .tourex-search-flex-note{display:none;}
.tourex-tour-search-form .tg-booking-form-search-btn .bk-search-button{
  width:100%;
  min-width:190px;
  height:58px;
  padding:0 28px!important;
  border:0;
  border-radius:14px!important;
  background:var(--tg-theme-secondary,#ff4d24);
  color:#fff;
  font-size:15px;
  font-weight:700;
  letter-spacing:.01em;
  box-shadow:0 12px 24px rgba(255,77,36,.20);
  transition:transform .2s ease,box-shadow .2s ease,filter .2s ease;
}
.tourex-tour-search-form .tg-booking-form-search-btn .bk-search-button:hover{
  transform:translateY(-2px);
  box-shadow:0 16px 30px rgba(255,77,36,.27);
  filter:saturate(1.05);
}
.tourex-tour-search-form.is-compact .tg-booking-form-parent-inner{margin-bottom:16px!important;}
.tourex-tour-search-form.is-compact .tg-booking-add-input-field,
.tourex-tour-search-form.is-compact .tg-booking-add-input-date{height:52px;border-radius:12px!important;background:#fff!important;}
.tourex-tour-search-form.is-compact .tg-booking-add-input-field .input,
.tourex-tour-search-form.is-compact .tg-booking-add-input-date .input,
.tourex-tour-search-form.is-compact .tourex-native-select{line-height:52px!important;font-size:14px!important;}
.tourex-tour-search-form.is-compact .tg-booking-form-search-btn .bk-search-button{height:54px;border-radius:12px!important;box-shadow:0 10px 20px rgba(255,77,36,.16);}

/* Review stars: theme CSS colors the <i> directly, so selected/preview icons must override it. */
.tourex-review-stars .tourex-review-star i{transition:color .15s ease,transform .15s ease;color:#d9dce1!important;}
.tourex-review-stars .tourex-review-star.active i,
.tourex-review-stars .tourex-review-star:hover i,
.tourex-review-stars .tourex-review-star i.active{color:#ffb300!important;}
.tourex-review-stars .tourex-review-star.active i{transform:scale(1.06);}
.tourex-review-star:focus-visible{outline:2px solid rgba(255,179,0,.45);outline-offset:3px;border-radius:4px;}

/* Dynamic Popular Tours wishlist button keeps the original card placement but uses native wishlist state. */
.tourex-popular-tour-slide .tg-listing-item-wishlist a{display:flex;align-items:center;justify-content:center;}
.tourex-popular-tour-slide .tg-listing-item-wishlist.active a,
.tourex-popular-tour-slide .tg-listing-item-wishlist a.active{color:var(--tg-theme-primary,#560ce3);border-color:var(--tg-theme-primary,#560ce3);background:rgba(86,12,227,.06);}

@media (max-width:1199px){
  .tourex-tour-search-form:not(.is-compact) .tg-booking-form-input-group{grid-template-columns:repeat(2,minmax(0,1fr));}
  .tourex-tour-search-form:not(.is-compact) .tg-booking-form-search-btn .bk-search-button{min-width:0;}
}
@media (max-width:767px){
  .tourex-search-wrap{padding:22px 20px 24px;border-radius:18px;}
  .tourex-tour-search-form:not(.is-compact) .tg-booking-form-input-group{grid-template-columns:1fr;gap:14px;}
  .tourex-tour-search-form .tg-booking-add-input-field,
  .tourex-tour-search-form .tg-booking-add-input-date,
  .tourex-tour-search-form .tg-booking-form-search-btn .bk-search-button{height:54px;}
}


/* v1.5.14.2 - make selected Tour search sub-ranges unmistakable. */
.flatpickr-calendar.open .flatpickr-innerContainer .flatpickr-days .flatpickr-day.startRange,
.flatpickr-calendar.open .flatpickr-innerContainer .flatpickr-days .flatpickr-day.endRange,
.flatpickr-calendar.open .flatpickr-innerContainer .flatpickr-days .flatpickr-day.selected {
  color: var(--tg-common-white) !important;
  background: var(--tg-theme-primary) !important;
  border-color: var(--tg-theme-primary) !important;
}
.flatpickr-calendar.open .flatpickr-innerContainer .flatpickr-days .flatpickr-day.inRange {
  color: var(--tg-theme-primary) !important;
  background: var(--tg-grey-8, #f6f4fa) !important;
  border-color: var(--tg-theme-primary) !important;
  box-shadow: none !important;
}

/* v1.5.14.3 latest Tours footer list keeps the approved footer geometry. */
.tourex-footer-latest-tours li a{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:100%;}


/* v1.5.14.26 - Tour Inner gallery: arbitrary ACF images, fixed slots, cover fit. */
.tourex-tour-fixed-gallery{display:grid;grid-template-columns:minmax(0,7fr) minmax(260px,5fr);gap:15px;align-items:stretch}
.tourex-tour-fixed-gallery-main,.tourex-tour-fixed-gallery-side{min-width:0}
.tourex-tour-fixed-gallery-side{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));grid-auto-rows:minmax(0,1fr);gap:15px}
.tourex-tour-fixed-image{width:100%;height:100%;min-height:180px;background-position:center;background-repeat:no-repeat;background-size:cover;border-radius:15px}
.tourex-tour-fixed-gallery-main .tourex-tour-fixed-image{aspect-ratio:1.42 / 1;min-height:360px}
.tourex-tour-fixed-side-item:first-child{grid-column:1 / -1}
.tourex-tour-fixed-side-item:first-child .tourex-tour-fixed-image{min-height:170px}
.tourex-tour-fixed-side-item:not(:first-child) .tourex-tour-fixed-image{min-height:130px}
@media(max-width:991px){.tourex-tour-fixed-gallery{grid-template-columns:1fr}.tourex-tour-fixed-gallery-main .tourex-tour-fixed-image{min-height:320px}.tourex-tour-fixed-gallery-side{min-height:260px}}
@media(max-width:575px){.tourex-tour-fixed-gallery{gap:10px}.tourex-tour-fixed-gallery-side{gap:10px}.tourex-tour-fixed-gallery-main .tourex-tour-fixed-image{min-height:230px}.tourex-tour-fixed-side-item:first-child .tourex-tour-fixed-image{min-height:150px}}

/* v1.5.14.26 - Trip Highlights uses the Cancellation Policy card language. */
.tourex-trip-highlights-card{border:1px solid #e6e7eb;border-radius:18px;background:#fff;overflow:hidden}
.tourex-trip-highlights-head{display:flex;align-items:center;gap:14px;padding:20px 24px;background:linear-gradient(135deg,rgba(86,12,227,.06),rgba(247,74,31,.04));border-bottom:1px solid #ececf0}
.tourex-trip-highlights-head h3{margin:0;font-size:25px;font-weight:700;color:var(--tg-common-black,#020615)}
.tourex-trip-highlights-icon{width:42px;height:42px;border-radius:12px;display:inline-flex;align-items:center;justify-content:center;background:var(--tg-theme-primary,#560ce3);color:#fff;flex:0 0 auto;font-size:17px}
.tourex-trip-highlights-content{padding:22px 24px;color:var(--tg-common-black,#353844);line-height:1.65}
.tourex-trip-highlights-content ul{margin:0;padding:0;list-style:none}
.tourex-trip-highlights-content li{display:flex;align-items:flex-start;gap:10px;margin:0 0 11px}
.tourex-trip-highlights-content li:last-child{margin-bottom:0}
.tourex-trip-highlight-check{width:23px;height:23px;border-radius:50%;display:inline-flex;align-items:center;justify-content:center;flex:0 0 23px;margin-top:2px;background:rgba(86,12,227,.08);color:var(--tg-theme-primary,#560ce3);font-size:11px}
@media(max-width:575px){.tourex-trip-highlights-head,.tourex-trip-highlights-content{padding:18px}.tourex-trip-highlights-head{align-items:flex-start}.tourex-trip-highlights-head h3{font-size:21px}.tourex-trip-highlights-icon{width:38px;height:38px;border-radius:10px}}

/* v1.5.14.26 - Keep a growing Destination filter compact and scrollable. */
.tourex-destination-filter-list{max-height:280px;overflow-y:auto;overflow-x:hidden;padding-right:5px;scrollbar-width:thin;scrollbar-color:rgba(6,57,94,.35) transparent}
.tourex-destination-filter-list::-webkit-scrollbar{width:6px}
.tourex-destination-filter-list::-webkit-scrollbar-thumb{background:rgba(6,57,94,.35);border-radius:20px}
.tourex-destination-filter-list::-webkit-scrollbar-track{background:transparent}

/* v1.5.14.26 - Deposit uses the approved full-width navy strip layout. */
.tg-listing-card-thumb.tourex-has-deposit .tourex-tour-card-deposit-badge{position:absolute!important;left:0!important;right:0!important;bottom:0!important;z-index:20!important;width:100%!important;min-height:50px!important;padding:8px 14px!important;display:flex!important;align-items:center!important;justify-content:center!important;gap:7px!important;background:#063d69!important;color:#fff!important;border-radius:0!important;box-shadow:0 -2px 10px rgba(0,0,0,.12)!important;font-size:13px!important;line-height:1!important;white-space:nowrap!important;overflow:hidden!important}
.tg-listing-card-thumb.tourex-has-deposit .tourex-tour-card-deposit-badge:after{display:none!important}
.tg-listing-card-thumb.tourex-has-deposit .tourex-tour-card-deposit-badge strong{font-size:18px!important;font-weight:800!important;color:#fff!important}
.tg-listing-card-thumb.tourex-has-deposit .tourex-tour-card-deposit-badge em{font-style:normal!important;font-size:14px!important;font-weight:800!important;letter-spacing:.02em;color:#fff!important}
@media(max-width:767px){.tg-listing-card-thumb.tourex-has-deposit .tourex-tour-card-deposit-badge{min-height:44px!important;padding:7px 10px!important}.tg-listing-card-thumb.tourex-has-deposit .tourex-tour-card-deposit-badge strong{font-size:16px!important}.tg-listing-card-thumb.tourex-has-deposit .tourex-tour-card-deposit-badge em{font-size:13px!important}}
