header #menu .navbar .dropdown-favorite ul.list-unstyled li.media img {
  width: 4.6rem !important;
  height: 3.45rem !important;
  object-fit: cover !important;
  border-radius: .35rem !important;
  display: block !important;
}

/* Category page: FAQ / Good to know blocks (after pagination) */
#category #category-faqs h3,
#category #category-goodtoKnow h3 {
  font-size: 1.6rem;
  color: #000;
  margin: 0 0 .8rem 0;
}

#category #category-faqs ul,
#category #category-goodtoKnow ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

#category #category-faqs ul li,
#category #category-goodtoKnow ul li {
  border-bottom: 1px solid rgba(15, 23, 42, 0.06);
  padding: 0;
}

#category #category-faqs ul li:first-child,
#category #category-goodtoKnow ul li:first-child {
  border-top: 1px solid rgba(15, 23, 42, 0.06);
}

#category #category-goodtoKnow {
  margin-top: 1.2rem;
}

#category #category-faqs ul li a,
#category #category-goodtoKnow ul li a {
  color: #383838 !important;
  display: block;
  padding: .65rem 0;
}

#category #category-faqs ul li a h5,
#category #category-goodtoKnow ul li a h5 {
  font-weight: 400;
  font-size: 1.05rem;
  line-height: 1.35;
  margin: 0;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: .75rem;
}

#category #category-faqs ul li a h5 i,
#category #category-goodtoKnow ul li a h5 i {
  flex: 0 0 auto;
  margin-top: .2rem;
}

#category #category-faqs ul li a:hover,
#category #category-goodtoKnow ul li a:hover {
  color: #000 !important;
  text-decoration: none;
}

#category #category-faqs ul li .category-content-text,
#category #category-goodtoKnow ul li .category-content-text {
  color: #3f3f3f !important;
  padding: .35rem 0 .6rem 0;
}

#category #category-faqs ul li .category-content-text ul,
#category #category-goodtoKnow ul li .category-content-text ul {
  list-style: disc;
  padding-left: 1.1rem;
  margin: .4rem 0 .6rem 0;
}

#category #category-faqs ul li .category-content-text ol,
#category #category-goodtoKnow ul li .category-content-text ol {
  list-style: decimal;
  padding-left: 1.1rem;
  margin: .4rem 0 .6rem 0;
}

#category #category-faqs ul li .category-content-text ul li,
#category #category-goodtoKnow ul li .category-content-text ul li,
#category #category-faqs ul li .category-content-text ol li,
#category #category-goodtoKnow ul li .category-content-text ol li {
  border: 0 !important;
  padding: 0 !important;
}

/* Travel detail: fix nested lists inside FAQ / Good to know answers (avoid inheriting accordion list borders) */
#travel #travel-faqs .travel-content-text,
#travel #travel-goodtoKnow .travel-content-text {
  color: #3f3f3f !important;
  padding: .35rem 0 .6rem 0;
}

#travel #travel-faqs .travel-content-text ul,
#travel #travel-goodtoKnow .travel-content-text ul {
  list-style: disc;
  padding-left: 1.1rem;
  margin: .4rem 0 .6rem 0;
}

#travel #travel-faqs .travel-content-text ol,
#travel #travel-goodtoKnow .travel-content-text ol {
  list-style: decimal;
  padding-left: 1.1rem;
  margin: .4rem 0 .6rem 0;
}

#travel #travel-faqs .travel-content-text ul li,
#travel #travel-goodtoKnow .travel-content-text ul li,
#travel #travel-faqs .travel-content-text ol li,
#travel #travel-goodtoKnow .travel-content-text ol li {
  border: 0 !important;
  padding: 0 !important;
}

#travel #travel-faqs .travel-content-text p,
#travel #travel-goodtoKnow .travel-content-text p {
  margin: 0 0 .6rem 0;
}

#travel #travel-faqs .travel-content-text p:last-child,
#travel #travel-goodtoKnow .travel-content-text p:last-child {
  margin-bottom: 0;
}

/* About Us page: centered site logo above the main text (shown on About Us content id=1). */
#us #us_content .us-about-logo-wrap{
  text-align: center;
  margin: .75rem 0 1rem 0;
}
#us #us_content .us-about-logo{
  display: inline-block;
  width: 100%;
  max-width: 200px;
  height: auto;
}

/* ============ Home Showcase: Group/Private Best Tours (show_home_showcase=5) ============ */
#home .home-s5,
#travelList .home-s5{
  margin-top: 1rem;
}
#home .home-s5-section,
#travelList .home-s5-section{
  margin: 1.25rem 0 1.5rem 0;
}
#home .home-s5-section + .home-s5-section,
#travelList .home-s5-section + .home-s5-section{
  margin-top: 3rem;
}
#home .home-s5-head,
#travelList .home-s5-head{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.4rem;
}
#home .home-s5-title,
#travelList .home-s5-title{
  margin: 0;
}
#home .home-s5-group-title,
#travelList .home-s5-group-title{
  margin: 0 0 1.4rem 0;
}
#home .home-s5-nav,
#travelList .home-s5-nav{
  display: inline-flex;
  gap: .5rem;
  align-items: center;
}
#home .home-s5-count,
#travelList .home-s5-count{
  color: #64748b;
  font-size: .9rem;
  margin-right: .25rem;
  white-space: nowrap;
}
#home .home-s5-btn,
#travelList .home-s5-btn{
  line-height: 1;
  background: #0b0b0b !important;
  border-color: #0b0b0b !important;
  color: #fff !important;
}
#home .home-s5-btn:hover,
#travelList .home-s5-btn:hover{
  background: #111 !important;
  border-color: #111 !important;
}
#home .home-s5-btn i,
#travelList .home-s5-btn i{
  color: #fff !important;
}

#home .home-s5-track,
#travelList .home-s5-track{
  display: flex;
  gap: .75rem;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding-bottom: .25rem;
  scrollbar-width: none;
}
#home .home-s5-track::-webkit-scrollbar,
#travelList .home-s5-track::-webkit-scrollbar{
  display: none;
}
#home .home-s5-item,
#travelList .home-s5-item{
  flex: 0 0 auto;
  width: calc((100% - (2 * .75rem)) / 3);
  scroll-snap-align: start;
}
@media (max-width: 768px){
  #home .home-s5-item,
  #travelList .home-s5-item{
    width: 100%;
  }
}

#home .home-s5-card,
#travelList .home-s5-card{
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: .85rem;
  overflow: hidden;
  height: 100%;
  display: flex;
  flex-direction: column;
}
#home .home-s5-media,
#travelList .home-s5-media{
  display: block;
  width: 100%;
  aspect-ratio: 3/3;
  overflow: hidden;
  background: #f1f5f9;
  position: relative;
}
#home .home-s5-img,
#travelList .home-s5-img{
  width: 100%;
  height: 380px !important;
  object-fit: cover;
  object-position: center center;
  display: block;
}
#home .home-s5-body,
#travelList .home-s5-body{
  padding: .75rem .85rem .85rem .85rem;
  display: flex;
  flex-direction: column;
  gap: .4rem;
}

#home .home-s5-quality,
#travelList .home-s5-quality{
  display: inline-flex;
  gap: .4rem;
  align-items: center;
}
#home .home-s5-badge,
#travelList .home-s5-badge{
  display: inline-flex;
  align-items: center;
  padding: .2rem .45rem;
  border-radius: .4rem;
  font-size: .82rem;
  line-height: 1.1;
  white-space: nowrap;
}
#home .home-s5-badge-code,
#travelList .home-s5-badge-code{
  background: #0b0b0b;
  color: #fff;
}
#home .home-s5-badge-quality,
#travelList .home-s5-badge-quality{
  background: #f8fafc;
  border: 1px solid #e5e7eb;
  color: #0f172a;
}
#home .home-s5-name,
#travelList .home-s5-name{
  color: #000;
  text-decoration: none !important;
  font-size: 1.25rem;
  font-weight: 500;
  line-height: 1.2;
  text-transform: none;
  margin: 0;
}
#home .home-s5-name:hover,
#travelList .home-s5-name:hover{
  text-decoration: none !important;
}
#home .home-s5-meta,
#travelList .home-s5-meta{
  display: flex;
  flex-wrap: wrap;
  gap: .35rem;
  color: #475569;
  font-size: .92rem;
}
#home .home-s5-dot,
#travelList .home-s5-dot{
  color: #94a3b8;
}
#home .home-s5-price,
#travelList .home-s5-price{
  margin-top: .6rem;
  color: #0f172a;
  font-size: .95rem;
  position: relative;
}
#home .home-s5-desc,
#travelList .home-s5-desc{
  color: #475569;
  font-size: .92rem;
  line-height: 1.35;
}
#home .home-s5-actions,
#travelList .home-s5-actions{
  margin-top: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .6rem;
}
#home .home-s5-cta,
#travelList .home-s5-cta{
  display: inline-flex;
  align-items: stretch;
  border-radius: 0;
  overflow: hidden;
}
#home .home-s5-cta-btn,
#travelList .home-s5-cta-btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: .48rem .9rem;
  font-size: 1.6rem;
  line-height: 1.1;
  border: 0;
  border-radius: 0;
  text-decoration: none;
  white-space: nowrap;
}
#home .home-s5-cta-route,
#travelList .home-s5-cta-route{
  background: #0ea5a4;
  color: #fff;
}
#home .home-s5-cta-route:hover,
#travelList .home-s5-cta-route:hover{
  background: #0b8f8e;
  color: #fff;
}
#home .home-s5-cta-book,
#travelList .home-s5-cta-book{
  background: #16a34a;
  color: #fff;
}
#home .home-s5-cta-book:hover,
#travelList .home-s5-cta-book:hover{
  background: #11803a;
  color: #fff;
}

#home .home-s5-warning,
#travelList .home-s5-warning{
  position: absolute;
  bottom: .5rem;
  left: 0;
  margin: 0;
  padding: 0;
  z-index: 2;
}
#home .home-s5-warning li,
#travelList .home-s5-warning li{
  width: fit-content;
  font-size: .78rem;
  line-height: .9rem;
  padding: .45rem .55rem;
  margin-bottom: .3rem;
  color: #fff;
  text-align: left;
  border-top-left-radius: 0 !important;
  border-bottom-left-radius: 0 !important;
  border-top-right-radius: .25rem !important;
  border-bottom-right-radius: .25rem !important;
}
#home .home-s5-from,
#travelList .home-s5-from{
  color: #64748b;
  margin-right: .25rem;
}
#home .home-s5-old,
#travelList .home-s5-old{
  color: #64748b;
  margin-right: .35rem;
}
#home .home-s5-new,
#travelList .home-s5-new{
  font-weight: 600;
}

/* ============ Tour List Model: Single Horizontal (model 1) ============ */
/* Goal (>=576px): image column height follows the row height when text grows,
   while keeping the image masked and undistorted (cover-crop). */
@media (min-width: 576px){
  .mt-single-horizontal .tour-sh-media-col{
    display: flex;
    position: relative;
    min-height: 13rem;
  }
  .mt-single-horizontal .tour-sh-media-link{
    /* Prevent portrait images from defining the row height.
       The row height should come from text/price columns; media fills it. */
    position: absolute;
    inset: 0;
    display: flex;
    width: 100%;
  }
  /* Override main.css fixed heights (13rem/18rem/14rem) only for this model. */
  .mt-single-horizontal .tour-sh-media-col .tour-sh-media-overlay{
    height: 100% !important;
    min-height: 13rem;
  }
  .mt-single-horizontal .tour-sh-media-mask{
    width: 100%;
    height: 100%;
    overflow: hidden;
    position: relative;
  }
  .mt-single-horizontal .tour-sh-media-mask picture{
    display: block;
    width: 100% !important;
    height: 100% !important;
  }
  .mt-single-horizontal .tour-sh-media-img{
    display: block;
    width: 100% !important;
    height: 100% !important;
    position: static !important;
    object-fit: cover;
    object-position: center center;
  }

  /* Beat legacy rules like:
     .mt-single-horizontal .col .overlay picture{width:auto !important}
     .mt-single-horizontal .col .overlay picture img{width:auto !important}
     which can break cover-crop for portrait images. */
  .mt-single-horizontal .col .overlay.tour-sh-media-overlay picture{
    width: 100% !important;
    height: 100% !important;
  }
  .mt-single-horizontal .col .overlay.tour-sh-media-overlay picture img.tour-sh-media-img{
    width: 100% !important;
    height: 100% !important;
    left: 0 !important;
    right: 0 !important;
    top: 0 !important;
    bottom: 0 !important;
    margin: 0 !important;
    object-fit: cover !important;
    object-position: center center !important;
  }
}

/* ============ Tour List Model: Single Thin (model 2) ============ */
/* Goal (>=576px): image column height follows the row height when text grows,
   while keeping the image masked and undistorted (cover-crop). */
@media (min-width: 576px){
  .mt-single-thin .tour-st-media-col{
    display: flex;
  }
  .mt-single-thin .tour-st-media-link{
    display: flex;
    flex: 1 1 auto;
    width: 100%;
  }
  /* Override travel.css fixed heights (7rem/8rem/13rem) only for this model. */
  .mt-single-thin .tour-st-media-col a.tour-st-media-link .tour-st-media-overlay{
    height: 100% !important;
    min-height: 7rem;
  }
  .mt-single-thin .tour-st-media-mask{
    width: 100%;
    height: 100%;
    overflow: hidden;
  }
  .mt-single-thin .tour-st-media-col a.tour-st-media-link .tour-st-media-overlay .tour-st-media-mask picture{
    display: block;
    width: 100% !important;
    height: 100% !important;
  }
  .mt-single-thin .tour-st-media-col a.tour-st-media-link .tour-st-media-overlay .tour-st-media-mask .tour-st-media-img{
    display: block;
    width: 100% !important;
    height: 100% !important;
    position: static !important;
    object-fit: cover;
    object-position: center center;
  }
}

/* ============ Tour List Model: Double Horizontal (model 3) ============ */
/* Goal (>=576px): remove image "shift" hacks (250% width + negative left) and
   make image height follow the row height when text grows, while keeping it masked. */
@media (min-width: 576px){
  /* Make sure the inner row uses stretch so the image column follows the content column height. */
  .mt-double-horizontal .col > .row{
    align-items: stretch;
  }

  .mt-double-horizontal .tour-dh-media-col{
    display: flex;
  }
  .mt-double-horizontal .tour-dh-media-link{
    display: flex;
    flex: 1 1 auto;
    width: 100%;
    align-items: stretch;
  }
  /* Override travel.css fixed heights (17rem/23rem/27rem) only for this model. */
  .mt-double-horizontal .tour-dh-media-col a.tour-dh-media-link .tour-dh-media-overlay{
    height: 100% !important;
    min-height: 17rem;
    width: 100%;
    flex: 1 1 auto;
  }
  .mt-double-horizontal .tour-dh-media-mask{
    width: 100%;
    height: 100%;
    overflow: hidden;
  }
  .mt-double-horizontal .tour-dh-media-col a.tour-dh-media-link .tour-dh-media-overlay .tour-dh-media-mask picture{
    display: block;
    width: 100% !important;
    height: 100% !important;
  }
  /* Kill "shift" positioning and rely on object-fit cover. */
  .mt-double-horizontal .tour-dh-media-col a.tour-dh-media-link .tour-dh-media-overlay .tour-dh-media-mask .tour-dh-media-img{
    display: block;
    width: 100% !important;
    height: 100% !important;
    position: static !important;
    left: auto !important;
    right: auto !important;
    top: auto !important;
    bottom: auto !important;
    margin: 0 !important;
    object-fit: cover;
    object-position: center center;
  }
}

/* ============ Tour List Model: Double Thin (model 4) ============ */
/* Goal (>=576px): remove image "shift" hacks (200% width + negative left) and
   make image height follow the row height when text grows, while keeping it masked. */
@media (min-width: 576px){
  /* Make sure the inner row uses stretch so the image column follows the content column height. */
  .mt-double-thin .col > .row{
    align-items: stretch;
  }

  /* Ensure the left content column fills the full card height (which may be driven by the price column). */
  .mt-double-thin .tour-dt-body-col{
    display: flex;
  }
  .mt-double-thin .tour-dt-body-row{
    flex: 1 1 auto;
    width: 100%;
    align-items: stretch;
  }

  .mt-double-thin .tour-dt-media-col{
    display: flex;
  }
  .mt-double-thin .tour-dt-media-link{
    display: flex;
    flex: 1 1 auto;
    width: 100%;
    align-items: stretch;
  }
  /* Override travel.css fixed heights (9rem/14rem) only for this model. */
  .mt-double-thin .tour-dt-media-col a.tour-dt-media-link .tour-dt-media-overlay{
    height: 100% !important;
    min-height: 9rem;
    width: 100%;
    flex: 1 1 auto;
  }
  .mt-double-thin .tour-dt-media-mask{
    width: 100%;
    height: 100%;
    overflow: hidden;
  }
  .mt-double-thin .tour-dt-media-col a.tour-dt-media-link .tour-dt-media-overlay .tour-dt-media-mask picture{
    display: block;
    width: 100% !important;
    height: 100% !important;
  }
  /* Kill "shift" positioning and rely on object-fit cover. */
  .mt-double-thin .tour-dt-media-col a.tour-dt-media-link .tour-dt-media-overlay .tour-dt-media-mask .tour-dt-media-img{
    display: block;
    width: 100% !important;
    height: 100% !important;
    position: static !important;
    left: auto !important;
    right: auto !important;
    top: auto !important;
    bottom: auto !important;
    margin: 0 !important;
    object-fit: cover;
    object-position: center center;
  }
}

/* ============ Tour List Model: Double Vertical (model 5) ============ */
/* Goal:
   1) Keep warning tags (wtags) on top of the image (not clipped / not pushed below),
      and make their left edges square.
   2) Standardize the image rendering with mask + object-fit cover (no width/left hacks). */
/* Warning tags on top of the image (all breakpoints).
   NOTE: travel.css has `.mt-double-vertical .card .overlay ul.warning { bottom: -.8rem; }`
   which can clip the first tag. We override it only for this template via `.tour-dv-media-overlay`. */
.mt-double-vertical .card .overlay.tour-dv-media-overlay ul.warning,
.mt-double-vertical a.tour-dv-media-link .overlay ul.warning{
  position: absolute;
  bottom: .8rem !important;
  left: 0;
  z-index: 20;
  margin: 0;
}

.mt-double-vertical .card .overlay.tour-dv-media-overlay ul.warning li,
.mt-double-vertical a.tour-dv-media-link .overlay ul.warning li{
  border-top-left-radius: 0 !important;
  border-bottom-left-radius: 0 !important;
}

@media (min-width: 576px){
  .mt-double-vertical .tour-dv-media-overlay{
    position: relative;
    /* Let warning tags overflow if needed; cropping is handled by the mask. */
    overflow: visible !important;
  }

  .mt-double-vertical .card .overlay .tour-dv-media-mask{
    width: 100%;
    height: 100%;
    overflow: hidden;
  }

  .mt-double-vertical .card .overlay .tour-dv-media-mask picture{
    display: block;
    width: 100% !important;
    height: 100% !important;
  }

  /* Kill 992px<= hacks (width:200% + left:-50%) and rely on object-fit cover. */
  .mt-double-vertical .card .overlay .tour-dv-media-mask picture .tour-dv-media-img{
    display: block;
    width: 100% !important;
    height: 100% !important;
    position: static !important;
    left: auto !important;
    right: auto !important;
    top: auto !important;
    bottom: auto !important;
    margin: 0 !important;
    object-fit: cover;
    object-position: center center;
  }
}

/* ============ Tour List Model: Triple (model 6) ============ */
/* Goal: fix warning tags being pushed below the image via negative bottom value,
   make left edges square (no rounding),
   and remove image "shift" hacks (125%/200% width + negative left). */
.mt-triple .card .overlay ul.warning{
  bottom: .2rem !important; /* override travel.css bottom:-.8rem */
  z-index: 20;
}

.mt-triple .card .overlay ul.warning li{
  border-top-left-radius: 0 !important;
  border-bottom-left-radius: 0 !important;
}

@media (min-width: 576px){
  .mt-triple .card .overlay.tour-tr-media-overlay{
    overflow: hidden; /* keep cropping inside the mask */
  }
  .mt-triple .card .overlay.tour-tr-media-overlay .tour-tr-media-mask{
    width: 100%;
    height: 100%;
    overflow: hidden;
  }
  .mt-triple .card .overlay.tour-tr-media-overlay .tour-tr-media-mask picture{
    display: block;
    width: 100% !important;
    height: 100% !important;
  }
  /* Kill travel.css width/left hacks and rely on object-fit cover. */
  .mt-triple .card .overlay.tour-tr-media-overlay .tour-tr-media-mask picture .tour-tr-media-img{
    display: block;
    width: 100% !important;
    height: 100% !important;
    position: static !important;
    left: auto !important;
    right: auto !important;
    top: auto !important;
    bottom: auto !important;
    margin: 0 !important;
    object-fit: cover;
    object-position: center center;
  }
}

/* ============ Tour List Model: Quaternary (model 7) ============ */
/* Goal: fix warning tags being pushed below the image via negative bottom value,
   make left edges square (no rounding),
   and remove image "shift" hacks (200%/175% width + negative left). */
.mt-quaternary .card .overlay.tour-q4-media-overlay ul.warning{
  bottom: .2rem !important; /* override travel.css bottom:-.8rem */
  z-index: 20;
}

.mt-quaternary .card .overlay.tour-q4-media-overlay ul.warning li{
  border-top-left-radius: 0 !important;
  border-bottom-left-radius: 0 !important;
}

@media (min-width: 576px){
  .mt-quaternary .card .overlay.tour-q4-media-overlay{
    overflow: hidden;
  }
  .mt-quaternary .card .overlay.tour-q4-media-overlay .tour-q4-media-mask{
    width: 100%;
    height: 100%;
    overflow: hidden;
  }
  .mt-quaternary .card .overlay.tour-q4-media-overlay .tour-q4-media-mask picture{
    display: block;
    width: 100% !important;
    height: 100% !important;
  }
  /* Kill travel.css width/left hacks and rely on object-fit cover. */
  .mt-quaternary .card .overlay.tour-q4-media-overlay .tour-q4-media-mask picture .tour-q4-media-img{
    display: block;
    width: 100% !important;
    height: 100% !important;
    position: static !important;
    left: auto !important;
    right: auto !important;
    top: auto !important;
    bottom: auto !important;
    margin: 0 !important;
    object-fit: cover;
    object-position: center center;
  }
}
