html, body{
color: #3b3b3b;
font-weight: 500;
}

.bgbody{
 	background: #e8effd;
}

.boxcode{
	border-radius: 0 0 30px 30px;
    color: #fff;
    background: rgb(183,210,255);
    background: linear-gradient(0deg, rgb(180 231 255) 0%, rgb(70 178 255) 100%);
}

.limit2line{
	display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
/*  height: 60px;*/
}

.limit3line{
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
/*  height: 60px;*/
}

.limit-2-lines {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.txtgridprice{
	color: #ff5e00;
}

.btnhover:hover{
  opacity: 0.8;
}

.titleflashsale{
  font-size: 52px;
  line-height: 68px;
}

.tour-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 8px;
}

.tour-badge {
    padding: 4px 12px;
    font-size: 12px;
    font-weight: 600;
    border-radius: 999px;
    white-space: nowrap;
}

/* สีไม่ซ้ำ */
.badge-blue {
    background: #e8f1ff;
    color: #1a4fd8;
}

.badge-green {
    background: #e9f8f0;
    color: #0f7b4f;
}

.badge-pink {
    background: #ffe5f2;
    color: #e100af;
}

.badge-purple {
    background: #f3eaff;
    color: #6b3fd6;
}



.tour-card{
  background:#fff;
  border-radius:12px;
  padding:10px;
  box-shadow:0 2px 8px rgba(0,0,0,.07);
}

.textred{
  color: red;
}

.tour-banner img{
  width:100%;
  border-radius:10px;
}

.tour-title{
  font-weight:600;
  margin:8px 0;
  font-size:15px;
}

.rate-month{
  display:flex;
  align-items:flex-start;
  gap:4px;
  margin-bottom:4px;
}

/* ป้ายเดือน (ซ้าย) */
.rate-month .month-label{
  flex:0 0 44px;        /* ความกว้าง ม.ค. */
  background:#00c7a5;
  color:#fff;
  font-size:12px;
  padding:4px 6px;
  border-radius:6px;
  white-space:nowrap;
  text-align:center;
}

/* กล่องวันที่ (ขวา) */
.rate-month .rate-grid{
  display:grid;
  grid-template-columns:repeat(auto-fill,minmax(90px,1fr));
  gap:4px;
  flex:1;
}

/* กล่องราคาแต่ละช่วง */
.rate-box{
  border:1px solid #eee;
  border-radius:8px;
  text-align:center;
  padding:15px 2px 4px 2px;
  font-size:12px;
  min-width:90px;
  position: relative;
  z-index: 1;
}

/*.rate-box:hover{
  border:1px solid #ff5e00;
}*/

.labeldot{
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #00c40a;
  display: inline-block;
}

.tooltip-inner {
  max-width: 260px;
  text-align: left;
  font-size: 12px;
  line-height: 1.4;
  background: #000 !important;
  color: #fff !important;
}

.rate-holiday-dots{
  position: absolute;
  top: 6px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 4px;
}

.rate-holiday-dots .dot{
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #ededed;
}

.rate-holiday-dots.has-holiday .dot{
  background: #00c40a;
}


.dropdown-menu {
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all .2s ease;
}

.dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}



/*.holiday-tooltip {
  position: absolute;
  top: -8px;
  left: 50%;
  transform: translate(-50%, -100%);
  z-index: 9999;
  background: #fff;
  border: 1px solid #ddd;
  padding: 6px 8px;
  border-radius: 6px;
  box-shadow: 0 6px 20px rgba(0,0,0,.15);
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
}

.rate-box:hover .holiday-tooltip {
  opacity: 1;
  visibility: visible;
}

.holiday-item{
  line-height: 1.4;
}

/* hover */
.has-holiday-box:hover .holiday-tooltip{
  opacity: 1;
}
*/

.rate-price{
  color:#ff5e00;
  font-weight:700;
}

.rate-date{
  font-size:11px;
  margin-top:2px;
}

.tour-banner{
  width:100%;
}

@media (min-width:768px){
  .tour-banner{
    flex:0 0 300px;   /* กว้างคงที่ */
    max-width:300px;
  }
}


.bgcode {
   background: #ededed;
background: linear-gradient(180deg, rgba(237, 237, 237, 1) 0%, rgba(255, 255, 255, 1) 100%);
    border-radius:0px 0px 15px 15px;
}

.bgboxsearch {
background: #e8e8e8;
background: linear-gradient(180deg, rgba(232, 232, 232, 1) 0%, rgba(245, 245, 245, 1) 100%);
}

.boxtopicsearch{
    padding: 6px;
    border-radius: 15px;
    background: #e8e8e8;
    background: linear-gradient(0deg, rgb(225 225 225) 0%, rgb(255 255 255) 100%);
    margin-top: 0;
}

.owl-item {
            display: flex;
            justify-content: center;
        }
        .tour-item {
/*           background: rgb(233 233 233);*/
background: #fff;
         box-shadow: 0px 10px 20px -5px rgba(0, 0, 0, 0.05);
        }
        .tour-item img {
            width: 100%;
            border-radius: 5px;
        }

        .tour-item:hover{
            margin-top: -5px;
            transform: translateY(-2px);
            transition: all 0.3s ease-out;
        }

        .ttopic{
            font-size: 15px;
        }
        .tdetail{
            font-size: 14px;
        }
        .tour-info {
            color: #000;
        }

        .owl-carousel .tour-item {
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  justify-content: stretch;
  height: 100%;
  width: 100%;
}



.owl-carousel .tour-info {
    flex-grow: 1; /* Allow content to expand */
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.ttopic {
    min-height: 50px; /* Minimum height */
    flex-grow: 1; /* Expand automatically */
}

.tdetail {
    flex-grow: 1; /* Push content down */
}

/*.owl-carousel .owl-stage-outer{
    padding: 0 5px;
}
*/
       
        /* Style for custom navigation buttons */
        .owl-nav {
            position: absolute;
            top: 50%;
            width: 100%;
            transform: translateY(-50%);
            color: #fff;
/*            display: none;*/
        }


        .owl-carousel:hover .owl-nav{
            display: block;
        }

        .owl-prev, .owl-next {
            font-size: 2rem;
            color: #ffffff;
            background: rgb(0 0 0 / 55%) !important;
            border-radius: 50%;
            padding: 10px;
            position: absolute;
            top: 50%;
            transform: translateY(-50%);
                display: flex !important;
    justify-content: center;
    align-items: center;
    width: 32px;
    height: 32px;
        }
        .owl-prev {
            left: 10px;
        }
        .owl-next {
            right: 10px;
        }
        .owl-stage {
            padding-left: 0 !important;
            padding-bottom: 20px;
            padding-top: 10px;
        }


.owl-carousel .owl-stage {
  display: flex;
}
.owl-carousel .owl-item {
  display: flex;
  flex: 1 0 auto;
}
.owl-carousel .caption {
  display: flex;
  flex: 1 0 auto;
  flex-direction: column;
}
.owl-carousel .flex-text {
  flex-grow: 1;
}
.owl-carousel .thumbnail {
  display: flex;
  flex-direction: column;
  margin: 0 15px;
}


/* 1. บังคับให้พื้นที่ปุ่ม Nav แสดงผลเสมอ ห้ามซ่อน! */
.owl-carousel .owl-nav {
    display: block !important;
}

/* 2. บังคับปุ่มซ้าย-ขวาให้แสดงผล แม้ Lib จะใส่คลาส .disabled ให้ก็ตาม */
.owl-carousel .owl-nav .owl-prev,
.owl-carousel .owl-nav .owl-next {
    display: inline-block !important; /* บังคับโชว์ */
    opacity: 1 !important;             /* บังคับให้เข้ม */
    visibility: visible !important;    /* บังคับให้มองเห็น */
    cursor: pointer !important;
}

/* 3. กรณีมีรูปเดียวจริงๆ (เราจะใช้ JS สั่งซ่อนจากข้างนอกแทน) */
.nav-hide .owl-nav {
    display: none !important;
}

.priceblinking {
  animation: blink 0.5s infinite;
}

.priceblinking2 {
  animation: blink2 1s infinite;
}

@keyframes blink {
  0%{
    color: red;
  }
  100% {
    color: #ff5e00;
  }
}


@keyframes blink2 {
  0%{
    color: red;
  }
  100% {
    color: #ffffff;
  }
}


.bgred{
  background: red;
}

.blinking-bg {
    color: white; /* Text color */
    animation: blink-bg 0.5s infinite; /* Blink animation */
    padding: 10px;
    text-align: center; /* Center text */
}

/* Define the animation */
@keyframes blink-bg {
    0%, 100% {
        background-color: red; /* Start and end with red */
    }
    50% {
        background-color: black; /* Middle frame is black */
    }
}


.random-hover {
      box-shadow: 0px 0px 26px rgb(0 0 0 / 10%);
      transition: box-shadow 0.3s ease;
    }

.fb-video{
  display: flex !important;
  justify-content: center !important;
}

.tooltip-inner {
    color: #000;
    background-color: #f0f1f2;
}

.cavatar{
      position: fixed;
    bottom: 40px;
    right: 80px;
    cursor: pointer;
    z-index: 9;
}

.txtboxcat2 {
font-size: 1.1em;
    font-weight: 500;
    text-align: center;
    color: #000;
    display: flex;
    align-items: center;
    justify-content: end;
    border-radius: 0;
    flex-direction: column;
    line-height: 1.2em;
    position: absolute;
    bottom: -1px;
background: #ffffff;
background: linear-gradient(0deg, rgba(255, 255, 255, 1) 0%, rgba(255, 255, 255, 0.8) 35%, rgba(255, 255, 255, 0.45) 70%, rgba(255, 255, 255, 0) 100%);
    width: 100%;
    padding: 10px;
    min-height: 50%;
    border-radius: 20px;
}

.boxsearchResults{
    max-height: 350px;
    overflow-y: auto;
    position: absolute;
    width: 97%;
    z-index: 2;
}

.boxsearchResultsMo{
    max-height: 250px;
    overflow-y: auto;
    position: absolute;
    width: 98%;
    z-index: 2;
}

.iccov{
  width: 42px;
}

.flex1{
  flex: 1;
}


.search-result:hover{
  cursor: pointer;
  background: #e0e4e7;
}

strong{
  font-weight: 600 !important;
}

.slidermain{
      max-width: 100%;
    width: 100% !important;
    height: auto !important;
}

.datepicker{
  padding: .375rem .75rem !important;
}

.bntour{
  height: auto;
}

/*.boxcatmo{
    overflow: auto;
    width: 100%;
    justify-content: center;
    height: 70px;
    align-items: center;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr 1fr 1fr 1fr 1fr;
}

.boxincatmo{
  width: 140px;
}
*/

.horizontal-scroll {
  overflow-x: auto; /* ให้แสดงเลื่อนแนวนอนเมื่อเกินขอบเขต */
  white-space: nowrap; /* ให้รายการแสดงต่อเนื่องแนวนอน */
}

.sltopic{
  font-size: 3em;
}

.slslogan{
  font-size: 1.5em;
}

.cont{
  font-size: 1.5em;
}


.horizontal-list {
  display: flex;
  list-style: none;
  padding: 0;
  margin: 0;
}

.horizontal-list li {
  margin-right: 10px;
  border-radius: 5px;
  padding: 5px 10px;
  display: flex;
    flex-direction: column;
    align-items: center;
}

.boxhorizontalimg{
  width: 80px;
  height: 80px;
  margin: 0 auto;
}

.boxhorizontalimg img{
  aspect-ratio: 1 / 1;
    object-fit: cover;
    padding: 2px;
    border: 1px solid #e3e3e3;
}

.boxcathorizontalimg{
  width: 50px;
  height: 50px;
  margin: 0 auto;
}

.boxcathorizontalimg img{
  aspect-ratio: 1 / 1;
    object-fit: cover;
    padding: 2px;
    border: 1px solid #e3e3e3;
}

.txtcat{
  font-size: 14px;
}

.bdr50{
  border-radius: 50px;
}

.boxbgse{
padding: 5px 10px;
    background: #ededed;
    border-radius: 50px;
    font-size: 12px;
}

.thumbnailsm {
    width: 60px;
    height: 60px;
    aspect-ratio: 1 / 1;
    object-fit: cover;
}

.thumbnaillg {
    width: 150px;
    height: 150px;
    aspect-ratio: 1 / 1;
    object-fit: cover;
}

.thumbnail200 {
    width: 200px;
    height: 200px;
    aspect-ratio: 1 / 1;
    object-fit: cover;
}
.thumbnailpost {

    aspect-ratio: 1 / 1;
    object-fit: cover;
}

.thumbnailwidpost {
    width: 75px;
    height: 75px;
    aspect-ratio: 1 / 1;
    object-fit: cover;
}

.boxpostwidget {
    display: grid;
    grid-template-columns: 0.2fr 1fr;
    gap: 0.5rem;
}


.fixselect .select2-container{
  width: 200px;
}

.maximg img{
  max-width: 100%;
  height: auto !important;
}

.boxsl{
  min-height: 400px;
}

.bubblesearch {
            position: fixed;
            bottom: 100px;
            right: 20px;
            width: 70px;
            height: 70px;
            background-color: #007bff;
            border-radius: 50%;
            text-align: center;
            line-height: 60px;
            color: #fff;
            font-size: 20px;
            cursor: pointer;
            z-index: 999;
            display: flex;
            justify-content: center;
            align-items: center;
        }

.bubble {
            position: fixed;
            bottom: 20px;
            right: 20px;
            width: 70px;
            height: 70px;
            background-color: #007bff;
            border-radius: 50%;
            text-align: center;
            line-height: 60px;
            color: #fff;
            font-size: 20px;
            cursor: pointer;
            z-index: 999;
                display: flex;
    justify-content: center;
    align-items: center;
        }

        .bubble-icons {
            display: none;
            position: fixed;
            bottom: 100px;
            right: 20px;
            background-color: #fff;
            border-radius: 5px;
            padding: 10px;
            color: #000;
            z-index: 999;
            max-width: 250px;
        }

        .bubble-icons a{
          color: #000 !important;
        }

        .bubble.show .bubble-icons {
            display: block;
        }

        .bubble-icon {
            display: block;
        }



               .search-icons {
            display: none;
            position: fixed;
            bottom: 80px;
            right: 20px;
            background-color: #fff;
            border-radius: 5px;
            padding: 10px;
            color: #000;
            z-index: 999;
            max-width: 250px;
        }

        .search-icons a{
          color: #000 !important;
        }

        .search.show .search-icons {
            display: block;
        }

        .search-icon {
            display: block;
        }


         .switch-panel {
            display: none;
            position: fixed;
            bottom: 100px;
            right: 30px;
            background-color: #fff;
            border-radius: 5px;
            padding: 10px;
            color: #000;
            z-index: 999;
            max-width: 250px;
            width: 250px;

        }

        .switch-panel a{
          color: #000 !important;
        }

        .switch-panel.show .switch-panel {
            display: block;
        }

        .switch-panel {
            display: none;
        }



 .icface{
    background: #006fe1;
    color: #fff;
 } 

  .icphone{
    background: #e1020c;
    color: #fff;
 } 

  .icline{
    background: #08b11d;
    color: #fff;
 } 

 .icclose{
  right: -20px;
    position: absolute;
    top: -20px;
    background: #f5f5f5;
    border-radius: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 22px;
    color: #4b4b4b;
 }

 .pointer{
    cursor: pointer;
 }

 .fs12{
  font-size: 12px;
 }

  .fs18{
  font-size: 18px;
 }

.barmo{
  background: #F5F5F5;
  z-index: 99;
  border-top: 1px solid #dbdbdb;
}

.boxic{
    display: inline-flex;
    width: 32px;
    height: 32px;
    border-radius: 50px;
    justify-content: center;
    align-items: center;
 }    

 .bubble-icon {
  transition: transform 0.3s ease;
}

.bubble-icon:hover span {
  animation: rotate 0.3s linear;
}   
      
@keyframes rotate {
  0% {
    transform: rotate(0deg);
  }
  
  100% {
    transform: rotate(360deg);
  }
}

@keyframes bounce {
  0% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
  100% {
    transform: translateY(0);
  }
}

.bounce-effect {
  transition: transform 0.3s ease;
}

.bounce-effect:hover {
  animation: bounce 0.5s;
}

.fullpage-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(255, 255, 255, 0.5);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: bold;
}

.btnviewtour{
  display: flex;
  gap:0.2rem;
}

  #notification {
    position:fixed;
    right: 20px;
    top:20px;
    width:200px;
    height: 50px;
    display: flex;
    flex-wrap: nowrap;
    justify-content: center;
    align-items: center;
    z-index:105;
    border-radius: 5px;
    text-align:center;
    font-weight:normal;
    font-size:14px;
    font-weight:bold;
    color:white;
    background-color:red;
    padding:5px;
}

.bdr10{
	border-radius: 10px;
}

.bdr20{
	border-radius: 20px;
}

.wimgtour{
  width: 75%;
  max-width: 800px;
}

.boxads{
  flex-direction: row;
}

.bannerads{
  width: 33.33%;
}

.bannerads img{
    max-width: 100%;
}

.tab-content img{
  max-width: 100%;
  height: auto !important;
}

.boxtable{
  width: 1024px;
}

.boxinactive{
  position: fixed;
    top: 0;
    height: 100%;
    width: 100%;
    background: #fff;
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hvr-bob {
  display: inline-block;
  vertical-align: middle;
  -webkit-transform: perspective(1px) translateZ(0);
  transform: perspective(1px) translateZ(0);
  box-shadow: 0 0 1px rgba(0, 0, 0, 0);
}
.hvr-bob:hover, .hvr-bob:focus, .hvr-bob:active {
  -webkit-animation-name: hvr-bob-float, hvr-bob;
  animation-name: hvr-bob-float, hvr-bob;
  -webkit-animation-duration: .3s, 1.5s;
  animation-duration: .3s, 1.5s;
  -webkit-animation-delay: 0s, .3s;
  animation-delay: 0s, .3s;
  -webkit-animation-timing-function: ease-out, ease-in-out;
  animation-timing-function: ease-out, ease-in-out;
  -webkit-animation-iteration-count: 1, infinite;
  animation-iteration-count: 1, infinite;
  -webkit-animation-fill-mode: forwards;
  animation-fill-mode: forwards;
  -webkit-animation-direction: normal, alternate;
  animation-direction: normal, alternate;
}


@-webkit-keyframes hvr-bob {
  0% {
    -webkit-transform: translateY(-8px);
    transform: translateY(-8px);
  }
  50% {
    -webkit-transform: translateY(-4px);
    transform: translateY(-4px);
  }
  100% {
    -webkit-transform: translateY(-8px);
    transform: translateY(-8px);
  }
}
@keyframes hvr-bob {
  0% {
    -webkit-transform: translateY(-8px);
    transform: translateY(-8px);
  }
  50% {
    -webkit-transform: translateY(-4px);
    transform: translateY(-4px);
  }
  100% {
    -webkit-transform: translateY(-8px);
    transform: translateY(-8px);
  }
}
@-webkit-keyframes hvr-bob-float {
  100% {
    -webkit-transform: translateY(-8px);
    transform: translateY(-8px);
  }
}
@keyframes hvr-bob-float {
  100% {
    -webkit-transform: translateY(-8px);
    transform: translateY(-8px);
  }
}




.hvr-bob2 {
  display: inline-block;
  vertical-align: middle;
  -webkit-transform: perspective(1px) translateZ(0);
  transform: perspective(1px) translateZ(0);
  box-shadow: 0 0 1px rgba(0, 0, 0, 0);
}
.hvr-bob2:hover, .hvr-bob2:focus, .hvr-bob2:active {
  -webkit-animation-name: hvr-bob-float2, hvr-bob2;
  animation-name: hvr-bob-float2, hvr-bob2;
  -webkit-animation-duration: .3s, 1.5s;
  animation-duration: .3s, 1.5s;
  -webkit-animation-delay: 0s, .3s;
  animation-delay: 0s, .3s;
  -webkit-animation-timing-function: ease-out, ease-in-out;
  animation-timing-function: ease-out, ease-in-out;
  -webkit-animation-iteration-count: 1, infinite;
  animation-iteration-count: 1, infinite;
  -webkit-animation-fill-mode: forwards;
  animation-fill-mode: forwards;
  -webkit-animation-direction: normal, alternate;
  animation-direction: normal, alternate;
}


@-webkit-keyframes hvr-bob2 {
  0% {
    -webkit-transform: translateY(-4px);
    transform: translateY(-4px);
  }
  50% {
    -webkit-transform: translateY(-2px);
    transform: translateY(-2px);
  }
  100% {
    -webkit-transform: translateY(-4px);
    transform: translateY(-4px);
  }
}
@keyframes hvr-bob2 {
  0% {
    -webkit-transform: translateY(-4px);
    transform: translateY(-4px);
  }
  50% {
    -webkit-transform: translateY(-2px);
    transform: translateY(-2px);
  }
  100% {
    -webkit-transform: translateY(-4px);
    transform: translateY(-4px);
  }
}
@-webkit-keyframes hvr-bob-float2 {
  100% {
    -webkit-transform: translateY(-4px);
    transform: translateY(-4px);
  }
}
@keyframes hvr-bob-float2 {
  100% {
    -webkit-transform: translateY(-4px);
    transform: translateY(-4px);
  }
}


.boxsha{
	    box-shadow: 0px 0px 26px rgb(0 0 0 / 10%);
    border-radius: 15px;
    background: #fff;
}

.icwv{
	width: 15px;
  height: auto;
}

.icwvx{
  width: 22px;
  height: auto;
}

.fs12{
  font-size: 12px;
}

.gridplan {
    grid-template-columns: 1fr 9fr;
    display: grid;
    width: 100%;
    align-items: center;
    gap: 0.8rem;
}

.boxsponsor{
  width: 80%;
}

.topicday{
      min-width: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    background: #fff;
}

.boxcolleft {
    flex-grow: 1;
}

.boxcolright {
    width: 300px;
  flex-shrink: 0;
}

.bargrid{
  grid-template-columns: 1fr 1fr 1fr 1fr;
  display: grid;
    width: 100%;
    align-items: start;
    gap: 0.8rem;
}

.boxflex{
  display: flex;
  flex-direction: row;
}

.tourprice {
    font-size: 28px;
    color: #ff0023;
    padding: 0 20px;
    font-weight: 500;
}

 .btnbookwebs a {
  background: #fff;
        text-align: center;
    color: #7463AB;
    padding: 12px 10px;
    display: block;
    border-radius: 0;
    font-size: 16px;
    cursor: pointer;
    margin-top: 10px;
    border: 1px solid #7463AB;
    border-radius: 50px;
}

.btnbookwebs a:hover {
  background: #7463AB;
  color: #fff;
}
 .btnphones a {
   background: #fff;
      text-align: center;
    color: #5e77cf;
    padding: 12px 10px;
    display: block;
    border-radius: 0;
    font-size: 16px;
    cursor: pointer;
    margin-top: 10px;
    border: 1px solid #5e77cf;
    border-radius: 50px;

} 
.btnphones a:hover {
  background: #5e77cf;
  color: #fff;
}

.btnsline a {
   background: #fff;
      text-align: center;
    color: #54c56c;
    padding: 12px 10px;
    display: block;
    border-radius: 0;
    font-size: 16px;
    cursor: pointer;
    margin-top: 10px;
    border: 1px solid #54c56c;
    border-radius: 50px;

}
.btnsline a:hover {
  background: #54c56c;
  color: #fff;
}
.btnspdf a {
   background: #fff;
      text-align: center;
    color: #e54e4e;
    padding: 12px 10px;
    display: block;
    border-radius: 0;
    font-size: 16px;
    cursor: pointer;
    margin-top: 10px;
    border: 1px solid #e54e4e;
    border-radius: 50px;

}
.btnspdf a:hover {
  background: #e54e4e;
  color: #fff;
}

.btnsword a {
   background: #fff;
      text-align: center;
    color: #034fc5;
    padding: 12px 10px;
    display: block;
    border-radius: 0;
    font-size: 16px;
    cursor: pointer;
    margin-top: 10px;
    border: 1px solid #034fc5;
    border-radius: 50px;

}
.btnsword a:hover {
  background: #034fc5;
  color: #fff;
}

.btnscopy {
   background: #fff;
      text-align: center;
    color: #2f2f2f;
    padding: 12px 10px;
    display: block;
    border-radius: 0;
    font-size: 16px;
    cursor: pointer;
    margin-top: 10px;
    border: 1px solid #2f2f2f;
    border-radius: 50px;

}
.btnscopy:hover {
  background: #2f2f2f;
  color: #fff;
}


.btnsfav {
   background: #fff;
      text-align: center;
    color: #2f2f2f;
    padding: 12px 10px;
    display: block;
    border-radius: 0;
    font-size: 16px;
    cursor: pointer;
    margin-top: 10px;
    border: 1px solid #2f2f2f;
    border-radius: 50px;

}


.btnsfav:hover {
  background: #2f2f2f;
  color: #fff;
}

.btnsfavl a {
   background: #fff;
      text-align: center;
    color: #2f2f2f;
    padding: 12px 10px;
    display: block;
    border-radius: 0;
    font-size: 16px;
    cursor: pointer;
    margin-top: 10px;
    border: 1px solid #2f2f2f;
    border-radius: 50px;

}
.btnsfavl a:hover {
  background: #2f2f2f;
  color: #fff;
}

.gaprow{
  gap: 1rem;
}

.bgtags{
  background: #efefef;
}

.mobileon{
  display: none !important;
}

.deskon{
  display: block;
}

.logo{
      max-height: 90px;
      width: auto;
}

/*img[data-src] {
  background-color: #f2f2f2;
}*/

.boxcatimg {
    position: relative;
}

.boxcatimg img {
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 20px;
}

.boxcatimg {
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 20px;
}

.txtboxcat {
    font-size: 1.5em;
    font-weight: 700;
    text-align: center;
    position: absolute;
    bottom: 0;
    width: 100%;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgb(0,0,0);
    background: linear-gradient(180deg, rgba(0,0,0,0.2) 0%, rgba(0,0,0,0.5) 100%);
    padding: 20px 10px 20px 10px;
    border-radius: 20px;
    flex-direction: column;
    height: 100%;
}

.fcopy{
  font-size: 12px;
}

.bggray{
  background: #F7F8FA;
}


.date-picker {
      position: relative;
    }

    .date-picker input[type="date"]::-webkit-calendar-picker-indicator {
      position: absolute;
      top: 0;
      right: 0;
      bottom: 0;
      left: 0;
      width: 100%;
      opacity: 0;
      cursor: pointer;
    }



.select2-container .select2-selection--single {
  height: calc(2.25rem + 2px) !important;
  padding: .375rem .75rem !important;
  font-size: 1rem !important;
  line-height: 1.5 !important;
  font-weight: 400 !important;
}

.select2-container .select2-selection--single .select2-selection__arrow {
  height: calc(2.25rem + 2px) !important;
}

.select2-container--default .select2-selection--single .select2-selection__rendered{
  line-height: unset !important;
      color: #6e707e !important;
}

.select2-container--default .select2-selection--single {
    border: 1px solid #d1d3e2 !important;
}

.select2-results__option[aria-selected] {
    font-weight: 400 !important;
}

.ui-slider .ui-slider-range{
  background: #FF5722 !important;
}

.boxgrayprice{
  background-color: transparent;
  background-image: linear-gradient(180deg, #F4F4F4 0%, #FFFFFF 100%);
  border-radius: 10px 10px 0 0;
}

.h100px{
  height: 100px;
}

.linkmenu:hover{
  color: #0d6efd !important;
}

.icmenu{
  width: 24px;
  height: 24px;
}

.fs14{
  font-size: 14px;
}

.fs15{
  font-size: 15px;
}

.fs16{
  font-size: 16px;
}

.fs18{
  font-size: 18px;
}


.country-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px; /* row-gap / column-gap */
}

.country-item-2 {
  flex: 0 0 calc(50% - 6px);
  display: flex;
  align-items: center;
}

.country-item-1 {
  flex: 0 0 calc(100% - 6px);
  display: flex;
  align-items: center;
}

.highlight-wrapper{
  position:relative;
}

.highlight-content{
  max-height:80px;
  overflow:hidden;
  transition:max-height .4s ease;
}

.highlight-content.expanded{
  max-height:2000px;
}

.highlight-overlay{
  position:absolute;
  left:0;
  right:0;
  bottom:0;
  height:80px;
  background:linear-gradient(
    to bottom,
    rgba(255,255,255,0),
    rgba(255,255,255,1)
  );
  display:flex;
  justify-content:center;
  align-items:flex-end;
  pointer-events:none;
}

.highlight-toggle{
  background:#fff;
  border:1px solid #ddd;
  border-radius:50%;
  width:36px;
  height:36px;
  margin-bottom:10px;
  cursor:pointer;
  pointer-events:auto;
  display:flex;
  align-items:center;
  justify-content:center;
  box-shadow:0 2px 6px rgba(0,0,0,.15);
}

/* ถ้าเนื้อหาสั้น → ไม่ต้องมี overlay */
.highlight-wrapper.no-expand .highlight-overlay{
  display:none;
}

.highlight-wrapper.no-expand .highlight-content{
  max-height:none;
}

.btn-baseline{
  display:inline-flex;        /* สำคัญ */
  align-items:baseline;       /* จัดข้อความในปุ่ม */
  padding-top:2px;            /* ปรับละเอียด */
  padding-bottom:2px;
  align-self:baseline;        /* ให้เสมอ baseline กับราคา */
}

.tourrate-wrapper{
  position:relative;
}

/* ซ่อนให้เห็นแค่บางส่วน */
.tourrate{
  max-height:150px;        /* <<< ปรับตรงนี้ */
  overflow:hidden;
  transition:max-height .4s ease;
}

/* ตอนเปิด */
.tourrate.expanded{
  max-height:3000px;       /* เปิดทั้งหมด */
}

/* เงาด้านล่าง */
.tourrate-overlay{
  position:absolute;
  left:0;
  right:0;
  bottom:0;
  height:80px;
  background:linear-gradient(
    to bottom,
    rgba(255,255,255,0),
    rgba(255,255,255,1)
  );
  display:flex;
  justify-content:center;
  align-items:flex-end;
  pointer-events:none;
  z-index: 1;
}

/* ปุ่มลูกศร */
.tourrate-toggle{
  pointer-events:auto;
  background:#fff;
  border:1px solid #ddd;
  border-radius:50px;
  width:160px;
  height:36px;
  margin-bottom:10px;
  display:flex;
  align-items:center;
  justify-content:center;
  cursor:pointer;
  font-size: 12px;
}

.tourrate-toggle:hover{
  background: #f1f1f1;
}

.tourrate-toggle i{
  transition:transform .3s ease;
}

/* ถ้าเนื้อหาสั้น → ไม่ต้องแสดงอะไร */
.tourrate-wrapper.no-expand .tourrate{
  max-height:none;
}
.tourrate-wrapper.no-expand .tourrate-overlay{
  display:none;
}

.text-green{
  color: #1bb912;
}

.limit2lineyt {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
     height: 60px; 
}

.boxpin{
  background-color: rgb(255 255 255 / 30%);
    backdrop-filter: blur(50px);
    border-radius: 20px;
}

.bgoverlay{
  background: rgb(0 0 0 / 35%);
}

@media only screen and (max-width: 767px) {
  .hidetb{
    display: none;
  }



  .bgcode {
    background-color: #fff !important;
    border-radius:0px 0px 0px 0px;
}


  .boxsponsor{
  width: 100%;
}

  .fstb{
    font-size: 14px;
  }

    .limit2line{
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: inherit;
  overflow: hidden;
}
}

@media only screen and (max-width: 992px) {

.sltopic{
  font-size: 2em;
}

  .btnrate a{
    font-size: 13px;
  }
  
.titleflashsale{
  font-size: 24px;
  line-height: 34px;
}

.min51{
  min-height: 51px;
}

.slslogan{
  font-size: 1em;
}

.cont{
  font-size: 1.2em;
}


  .table-condensed{
    width: 100%;
  }

.thumbnailwidpost {
    width:120px;
    height:120px;
    aspect-ratio: 1 / 1;
    object-fit: cover;
}

         .switch-panel {
            bottom: 80px;
        }

        .post_detail h1{
  font-size: 1.3em;
  line-height: 1.6em;
}

.iccov{
  width: 42px;
}


.post_detail h2{
  font-size: 1.2em;
  line-height: 1.5em;
}

.post_detail h3{
  font-size: 1.1em;
  line-height: 1.4em;
}

.post_detail h4{
  font-size: 1em;
  line-height: 1.3em;
}

.post_detail h4{
  font-size: 0.9em;
  line-height: 1.2em;
}


  .wimgtour{
    width: 100%;
  }

  .boxmo{
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 0.5rem;
/*    align-items: center;*/

  }



    .boxmopost{
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 0.5rem;
/*    align-items: center;*/

  }

  .thumbnailpost {
    width: 100% !important;
    aspect-ratio: 1 / 1;
    object-fit: cover;
}

.thumbnailyt{
  width: 120px !important;
}



  .boxads{
  flex-direction: column;
}


  .bannerads{
  width: 100%;
}

  .bannerads img{
  width: 100%;
}

.navmo{
  flex-direction: column !important;
  align-items: start !important;
}

  .bargrid{
  grid-template-columns: 1fr 1fr;
}
.boxcolleft {
    flex-basis: 100%;
}

.boxcolright {
    flex-basis: 100%;
    width: 100%;
}
.boxflex{
  display: flex;
  flex-direction: column;
}
.mobileon{
  display: block !important;
}
.deskon{
  display: none;
}

.txtboxcat {
    font-size: 1.2em;
}

.txtboxcat2 {
    font-size: 16px;
}


.h100px{
  height: auto;
}

 .ftmobile{
  height: 80px;
 }

  .bubble-icons {
            bottom: 80px;
        }


}


@media only screen and (max-width: 1199px) {
  .thumbnailpost {
    aspect-ratio: 1 / 1;
    object-fit: cover;
}
}


@media only screen and (max-width: 1400px) {
.container, .container-lg, .container-md, .container-sm, .container-xl {
    max-width: 100%;
}
}



#snow-container {
            position: fixed; /* สำคัญมาก: เปลี่ยนเป็น fixed เพื่อให้หิมะลอยอยู่บน viewport เสมอ */
            top: 0;
            left: 0;
            width: 100%;
            height: 100%; /* 100% ของ viewport */
            overflow: hidden;
            /* สำคัญมาก: ทำให้องค์ประกอบนี้ไม่ตอบสนองต่อเหตุการณ์เมาส์ (คลิก/สัมผัส) */
            pointer-events: none;
            z-index: 1000; /* ให้หิมะอยู่บนสุด */
        }

        .snowflake {
            position: absolute;
            background: #FFFFFF; /* สีหิมะ */
            border-radius: 50%;
            opacity: 0.8;
            user-select: none;
            pointer-events: none; /* ป้องกันไว้ซ้ำ */
            animation-name: fall, sway;
            animation-timing-function: linear;
            animation-iteration-count: infinite;
        }

        /* แอนิเมชันให้หิมะร่วงลงมา */
        @keyframes fall {
            from { top: -10vh; }
            to { top: 100vh; } /* ตกลงมาถึงขอบล่างของ viewport */
        }

        /* แอนิเมชันให้หิมะแกว่งไปมาด้านข้างเล็กน้อยเพื่อความสมจริง */
        @keyframes sway {
            0% { transform: translateX(0); }
            50% { transform: translateX(50px); }
            100% { transform: translateX(0); }
        }


.customcontainer{
  width: 100%;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
  --bs-gutter-x: 1.5rem;
    --bs-gutter-y: 0;
}

/* ≥ 576px (sm) */
@media only screen and (min-width: 576px){
  .customcontainer{
    max-width: 100%;
  }
}

/* ≥ 768px (md) */
@media only screen and (min-width: 768px){
  .customcontainer{
   max-width: 100%;
  }
}

/* ≥ 992px (lg) */
@media only screen and (min-width: 992px){
  .customcontainer{
    max-width: 100%;
  }
}

/* ≥ 1200px (xl) */
@media only screen and (min-width: 1200px){
  .customcontainer{
    max-width: 100%;
  }
}


@media only screen and (min-width: 1400px){
  .customcontainer{
    max-width: 1700px;
  }
}


.container-800 {
  width: 100%;
  max-width: 800px !important;
  margin: 0 auto;
}



@media (min-width: 992px) { /* Bootstrap lg */
  .container-800 {
    max-width: 800px;
    margin: 0 auto;
  }
}