

.entry-price .tag-danger {
  color: #ef4444;
}
.entry-price .tag-info {
  color: #393939;
}
/* Custom styles for tour period status tags */
.entry-tag .tag-available {
    color: #22c55e;
    background: #dcfce7;
    border-color: #86efac;
}

.entry-tag .tag-danger {
    color: #ef4444;
    background: #fef2f2;
    border-color: #fca5a5;
}

.entry-tag .tag-cancelled {
    color: #f59e0b;
    background: #fffbeb;
    border-color: #fcd34d;
}

.entry-tag .tag-warning {
    color: #f59e0b;
    background: #fffbeb;
    border-color: #fcd34d;
}

.entry-tag .tag-info {
    color: #3b82f6;
    background: #eff6ff;
    border-color: #93c5fd;
}

.entry-tag .tag-default {
    color: #6b7280;
    background: #f9fafb;
    border-color: #d1d5db;
}

/* Month filter active state */
.date-price-grid.active {
    background: #f0f9ff;
    border-color: #0ea5e9;
}

.date-price-grid:hover {
    background: #f8fafc;
    cursor: pointer;
}

/* Default state - hide all periods except first month */
.period-item {
    display: flex; /* เปลี่ยนจาก none เป็น flex */
}

.period-item.hidden {
    display: none !important;
}

.period-item.show {
    display: flex;
}/* QR Code Modal Styles */
.qr-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
}

.qr-modal-content {
    background-color: #fefefe;
    margin: 10% auto;
    padding: 30px;
    border-radius: 12px;
    width: 90%;
    max-width: 400px;
    text-align: center;
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.qr-modal-close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    position: absolute;
    right: 15px;
    top: 10px;
    cursor: pointer;
}

.qr-modal-close:hover,
.qr-modal-close:focus {
    color: #000;
    text-decoration: none;
}

.qr-modal h3 {
    margin-bottom: 20px;
    color: #06B2BB;
    font-size: 24px;
}

.qr-modal img {
    max-width: 250px;
    width: 100%;
    height: auto;
    margin-bottom: 20px;
}

.qr-modal p {
    font-size: 16px;
    line-height: 1.5;
    color: #06B2BB;
}

.qr-modal a {
    color: #06B2BB;
    font-size: 20px;
    line-height: 1.5;
}

/* Holiday tag styles */
.tag-holiday {
    background-color: #f59e0b !important;
    color: #777 ;
    font-weight: normal;
    transition: all 0.2s ease;
}
/*
.tag-holiday:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
} */

.tag-holiday.tag-national {
    background-color: #dc2626 !important; /* Red for national holidays */
}

.tag-holiday.tag-royal {
    background-color: #fbbf24 !important; /* Yellow for royal holidays */
    color: #1f2937 !important;
}

.tag-holiday.tag-religious {
    background-color: #3b82f6 !important; /* Blue for religious holidays */
}

.tag-holiday.tag-special {
    background-color: #10b981 !important; /* Green for special holidays */
}

.tag-holiday.tag-multiple {
    background-color: #8b5cf6 !important; /* Purple for multiple holidays */
}

.tag-holiday.tag-weekend {
    background-color: #ECF0F5 !important; /* Gray for weekend-only periods */
}

.tag-holiday.tag-major {
    background-color: #DDF6F7 !important; /* Orange for major holidays */
    animation: pulse 2s infinite;
    border: 1px solid #9DD6D9 ;
}

/* Holiday Calendar Modal Styles */
.holiday-modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
}

/* Prevent body scrolling when modal is open */
body.modal-open {
    overflow: hidden;
}

.holiday-modal-content {
    background-color: #ffffff;
    margin: 1% auto;
    width: 95%;
    max-width: 800px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    position: relative;
}

.holiday-modal-header {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 64px;
  background-color: #FDD219;
  color: #111111;
}

.holiday-modal-close {
    color: #111;
    font-size: 24px;
    font-weight: bold;
    position: absolute;
    left: 10px;
    cursor: pointer;
    z-index: 1;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.holiday-modal-close:hover,
.holiday-modal-close:focus {
    color: #000;
    text-decoration: none;
}


.tour-info {
    background: #f0f9ff;
    border-radius: 8px;
    padding: 12px;
    margin-bottom: 12px;
    border-left: 4px solid #06B2BB;
}

.tour-name, .tour-period {
    font-size: 24px;
    color: #111;
}

.tour-name {
    font-weight: bold;
}

.holiday-info-summary {
    background: #f8fafc;
    border-radius: 12px;
    padding: 12px;
    margin-bottom: 16px;
}

.holiday-stats {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 10px;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.stat-label {
    font-size: 13px;
    color: #64748b;
    margin-bottom: 3px;
}

.stat-value {
    font-size: 16px;
    font-weight: bold;
    color: #06B2BB;
}

.calendar-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    padding: 0 8px;
}

.nav-btn:disabled {
    background: linear-gradient(135deg, #cbd5e1 0%, #94a3b8 100%);
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
    opacity: 0.6;
}

.month-year {
    font-family: 'DB Heavent', sans-serif;
    font-size: 20px;
    font-weight: 500;
    color: #111111;
    text-align: center;
    padding: 8px 12px;
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    background: #fff;
    padding: 16px;
}

.calendar-header {
    color: #737373;
    padding: 10px 6px;
    text-align: center;
    font-family: 'DB Heavent', sans-serif;
    font-weight: normal;
    font-size: 20px;
}

.calendar-day {
    background: #FFFFFF;
    padding: 10px 6px;
    text-align: center;
    font-family: 'DB Heavent', sans-serif;
    font-size: 20px;
    font-weight: 500;
    min-height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    cursor: default;
    transition: all 0.3s ease;
    color: #111111;
}

.calendar-day.other-month {
    color: #111;
    background: #fff;
    opacity: 1;
}

.calendar-day.today {
    background: #FDD219;
    color: #111111;
    font-weight: 700;
}

.calendar-day.tour-period {
    color: #111;
    font-weight: 700;
    background-color: #FFF4C2;
    position: relative;
}

.calendar-day.tour-period.period-start {
    border-top-left-radius: 12px;
    border-bottom-left-radius: 12px;
}

.calendar-day.tour-period.period-end {
    border-top-right-radius: 12px;
    border-bottom-right-radius: 12px;
}

.calendar-day.tour-period.period-single {
    border-radius: 12px;
}

/* .calendar-day.tour-period::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, #FDD219, #F78828);
    border-radius: 12px;
    z-index: -1;
} */

.calendar-day.weekend {
    color: #111;
    font-weight: normal;
}

.calendar-day.weekend.tour-period {
    color: #111;
    font-weight: normal;
}

.calendar-day.weekend.tour-period::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, #FDD219, #F78828);
    border-radius: 12px;
    z-index: -1;
}

.calendar-day.public-holiday {
    color: #111;
    font-weight: 700;
    position: relative;
}

.calendar-day.public-holiday::before {
    content: '';
    position: absolute;
    top: 5px;
    left: 30px;
    width: 5px;
    height: 5px;
    background-color: #06B2BB;
    border-radius: 50%;
    z-index: 50;
}

.calendar-legend {
    display: flex;
    justify-content: start;
    flex-wrap: wrap;
    gap: 24px;
    margin-bottom: 20px;
    padding: 10px 20px;
    font-size: 20px;
    font-weight: bold;
    color: #06B2BB;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: 'DB Heavent', sans-serif;
    font-size: 16px;
    font-weight: 500;
    color: #111111;
}

.legend-color {
    width: 24px;
    height: 24px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(17, 17, 17, 0.15);
}

.legend-color.tour-period {
    /* background: #06B2BB; */
    border: 3px solid #FDD219;
    position: relative;
}

.legend-color.tour-period::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, #FDD219, #F78828);
    border-radius: 10px;
    z-index: -1;
}

.legend-color.weekend {
    background: #777777;
    border: 2px solid #CDD5DF;
}

.legend-color.public-holiday {
    background: #FA5456;
    border: 3px solid #F78828;
}

.legend-color.both-holiday {
    background: linear-gradient(135deg, #FA5456 0%, #F78828 100%);
    border: 3px solid #FDD219;
}

.holiday-list {
    background: #FCFBF8;
    border-radius: 16px;
    padding: 24px;
    border: 2px solid #ECF0F5;
    box-shadow: 0 4px 16px rgba(17, 17, 17, 0.08);
}

.holiday-list h4 {
    font-family: 'DB Heavent', sans-serif;
    color: #111111;
    margin-bottom: 20px;
    font-size: 20px;
    font-weight: 600;
    padding-bottom: 12px;
    border-bottom: 3px solid #06B2BB;
}

.holiday-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 0;
    border-bottom: 1px solid #ECF0F5;
    transition: all 0.3s ease;
}

.holiday-item:hover {
    background: rgba(6, 178, 187, 0.08);
    border-radius: 12px;
    margin: 0 -12px;
    padding: 16px 12px;
}

.holiday-item:last-child {
    border-bottom: none;
}

.holiday-name {
    font-family: 'DB Heavent', sans-serif;
    font-weight: 600;
    color: #111111;
    font-size: 16px;
}

.holiday-date {
    font-family: 'DB Heavent', sans-serif;
    color: #777777;
    font-size: 14px;
    margin-top: 4px;
}

.holiday-type {
    padding: 8px 16px;
    border-radius: 20px;
    font-family: 'DB Heavent', sans-serif;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 8px rgba(17, 17, 17, 0.15);
}

.holiday-type.national {
    background: #FA5456;
    color: #FFFFFF;
}

.holiday-type.royal {
    background: #FDD219;
    color: #111111;
}

.holiday-type.religious {
    /* background: #06B2BB; */
    color: #FFFFFF;
}

.holiday-type.special {
    background: #F78828;
    color: #FFFFFF;
}

/* Booking button disabled state */
.booking-btn.disabled,
.booking-btn[disabled],
.booking-btn-mobile.disabled,
.button.disabled {
    opacity: 0.5 !important;
    cursor: not-allowed !important;
    background: #9ca3af !important;
    border-color: #9ca3af !important;
    color: #fff !important;
    pointer-events: none;
}

.booking-btn.disabled:hover,
.booking-btn[disabled]:hover,
.booking-btn-mobile.disabled:hover,
.button.disabled:hover {
    transform: none !important;
    box-shadow: none !important;
}

.calendar-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 10px 0;
    padding: 0 12px;
}

.nav-btn {
    color: #111;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    font-family: 'DB Heavent', sans-serif;
    font-size: 16px;
    font-weight: bold;
    background: #FDD219;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    line-height: 0.8;
}

.nav-btn:disabled {
    background: #CDD5DF;
    color: #777777;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}
.swiper-button-next:after,
.swiper-button-prev:after {
  content: '';
}

.swiper-button-next {
  background-image: url('/assets/frontend/media/design/icon/icon-next.svg');
  background-repeat: no-repeat;
  background-position: center;
  background-size: 20px 20px;
  width: 28px;
  height: 28px;
}

.swiper-button-prev {
  background-image: url('/assets/frontend/media/design/icon/icon-prev.svg');
  background-repeat: no-repeat;
  background-position: center;
  background-size: 20px 20px;
  width: 28px;
  height: 28px;
}
@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(151, 214, 217, 1);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(253, 210, 25, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(253, 210, 25, 0);
    }
}

.date-price-swiper {
    width: 100%;
    overflow: inherit!important;
}
.date-price-swiper .swiper-slide {
    width: auto;
}
.date-price-grid {
  display: block;
  width: 120px;
  padding: 15px;
  text-align: center;
}
.date-price-next, .date-price-prev {
  background-color: #FFF4C2;
  border-radius: 50%;
  right: -10px;
}
.date-price-prev {
  right: auto;
  left: -10px;
}
.tour-detail-date-price .date-price-grid {
  border: solid 1px;
  background: #fff;
  border-color: #CDD5DF;
}
.custom-period-item {
  flex: 1;
  gap: 20px;
}
.show-price-pr {
    display: flex;
    width: 100%;
    align-items: flex-start;
    justify-content: space-between;
}
.show-price-pr .entry-meta {
    flex: 0 0 75%;
    width: 75%;
}
.show-price-pr .entry-price {
    flex: 0 0 25%;
    width: 25%;
    text-align: right;
}
.time-and-price {
  justify-content: space-between;
  flex: 1;
  align-items: center;
  font-size: 16px;
  color: #777;
  font-weight: normal;
}
.time-and-price .holiday-calendar-btn {
  color: #D8900A;
}
.total-seats {
  align-items: end;
  gap: 10px;
}
.total-seats .price-start span {
  font-size: clamp(24px, 5vw, 32px);
  font-weight: bold !important ;
}
.total-seats .price-start .price-sale {
  color: #FA5456;
}
.total-seats .price-start .price-original {
  color: #393939;
}
.tour-detail-header {
  display: flex;
  flex-direction: column;
}
.sc-wrapper {
  display: flex;
  flex-direction: column;
  background: #fff;
}

@media (max-width: 768px) {
  .qr-modal-content {
      margin: 20% auto;
      padding: 20px;
      width: 95%;
  }
  .qr-modal img {
      max-width: 200px;
  }
  .holiday-modal-content {
      margin: 0;
      padding: 0;
      width: 100%;
      max-height: 95vh;
  }
  .holiday-stats {
      flex-direction: column;
      gap: 10px;
  }
  .stat-item {
      flex-direction: row;
      justify-content: space-between;
  }
  .month-year {
      font-size: 20px;
  }
  .calendar-grid {
      padding: 10px;
  }
  .calendar-day {
      padding: 8px 4px;
      min-height: 35px;
  }
  .calendar-header {
      padding: 8px 4px;
      font-size: 20px;
  }
  .calendar-legend {
      gap: 10px;
  }
  .legend-item {
      font-size: 12px;
  }
  .holiday-item {
      flex-direction: column;
      align-items: flex-start;
      gap: 5px;
  }
}
.custom-headline {
  display: flex !important;
  flex-direction: column !important;
  margin: 10px 0 0 !important;
  gap: 10px !important ;
  align-items: center ;
  text-align: center;
}
.section-gallery {
  margin-top: 0 !important;
  padding-top: 40px !important;
  background: #fff !important;
}
.ic-price-sale {
  background-image: url('/assets/frontend/media/design/icon/icon-price-sale.svg');
  background-size: contain;
  background-repeat: no-repeat;
  width: 0.8em;
  height: 0.8em;
}
.ic-price-sale::before {
  content: '';
}
.price-sale-true {
  align-items: center !important;
  color: #FA5456;
  font-size: clamp(20px, 5vw, 24px);
}
@media (min-width: 992px) {
    .tour-detail-header .sc-cover {
      max-width: 340px;
    }
    .sc-wrapper {
      flex-direction: row;
    }
    .custom-cover-square {
      padding: 0;
      background: #fff;
    }
    .custom-headline {
      padding-left: 40px;
      align-items: flex-start;
      text-align: left;
    }
    .tour-detail-header .sc-headline > .sc-actions {
      align-self: flex-start;
    }
}

/* ===== from element-gallery.php ===== */


.grid-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 4px;
    width: 100%;
    height: 100%;
    position: relative;
}
.grid-item {
    position: relative;
    overflow: hidden;
    border-radius: 4px;
    cursor: pointer;
    transition: transform 0.2s ease;
    background: #f6f6f6;
}
.grid-item:hover {
    transform: scale(1.02);
}
.grid-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.grid-item-1 {
    grid-column: 1 / 5;
    grid-row: 1 / 2;
}
.grid-item-2 {
    grid-column: 1 / 2;
    grid-row: 2 / 3;
}
.grid-item-3 {
    grid-column: 2 / 3;
    grid-row: 2 / 3;
}
.grid-item-4 {
    grid-column: 3 / 4;
    grid-row: 2 / 3;
}
.grid-item-5 {
    grid-column: 4 / 5;
    grid-row: 2 / 3;
}

@media (min-width: 992px) {
    .grid-container {
        display: grid;
        grid-template-columns: 2fr 1fr 1fr;
        grid-template-rows: 1fr 1fr;
        width: 100%;
        margin: 0 auto;
    }
    .grid-item {
        aspect-ratio: 4 / 3;
        width: 100%;
        height: auto;
    }
    .grid-item-1 {
        grid-column: 1 / 2;
        grid-row: 1 / 3;
    }
    .grid-item-2 {
        grid-column: 2 / 3;
        grid-row: 1 / 2;
    }
    .grid-item-3 {
        grid-column: 3 / 4;
        grid-row: 1 / 2;
    }
    .grid-item-4 {
        grid-column: 2 / 3;
        grid-row: 2 / 3;
    }
    .grid-item-5 {
        grid-column: 3 / 4;
        grid-row: 2 / 3;
    }
}

.gallery-modal {
    display: none;
    position: fixed;
    z-index: 999999 !important;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
}
.gallery-modal-content {
    position: relative;
    width: 95%;
    height: 95%;
    margin: 2.5% auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 15px;
}
.gallery-modal-main {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex: 1;
    width: 100%;
    max-height: 85%;
}
.gallery-modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    color: #fff;
    background: rgba(0, 0, 0, 0.8);
    border: none;
    font-size: 22px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 15;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}
.gallery-modal-close:hover {
    background: rgba(0, 0, 0, 0.95);
    transform: scale(1.1);
}
.gallery-modal-image-container {
    position: relative;
    width: 100%;
    max-width: 90%;
    max-height: 80%;
    display: flex;
    align-items: center;
    justify-content: center;
}
.gallery-modal-image-container img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 8px;
}
.gallery-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.6);
    color: white;
    border: none;
    font-size: 28px;
    width: 50px;
    height: 50px;
    cursor: pointer;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease;
    z-index: 5;
}
.gallery-prev {
    left: -60px;
}
.gallery-next {
    right: -60px;
}
.gallery-nav-btn:hover {
    background: rgba(0, 0, 0, 0.8);
}
.gallery-modal-info {
    text-align: center;
    margin-top: 10px;
    max-width: 90%;
}
.gallery-modal-description {
    color: white;
    font-size: 16px;
    text-align: center;
    padding: 0 20px;
    line-height: 1.4;
    margin-bottom: 10px;
}
.gallery-modal-counter {
    color: white;
    font-size: 14px;
    opacity: 0.8;
}
.gallery-modal-thumbnails {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    max-width: 90%;
    padding: 10px 0;
}

/* Responsive design for mobile devices */
@media (max-width: 768px) {
    .gallery-modal-content {
        width: 98%;
        height: 98%;
        margin: 1% auto;
        gap: 10px;
    }
    .gallery-modal-main {
        max-height: 80%;
    }
    .gallery-modal-image-container {
        max-width: 95%;
        max-height: 75%;
    }
    .gallery-nav-btn {
        font-size: 24px;
        width: 45px;
        height: 45px;
    }
    .gallery-prev {
        left: -50px;
    }
    .gallery-next {
        right: -50px;
    }
    .gallery-modal-close {
        top: 10px;
        right: 10px;
        width: 32px;
        height: 32px;
        font-size: 18px;
    }
    .gallery-modal-description {
        font-size: 14px;
        padding: 0 15px;
    }
    .gallery-modal-counter {
        font-size: 12px;
    }
    .gallery-modal-thumbnails {
        gap: 6px;
        max-width: 95%;
    }
}

/* For very small screens */
@media (max-width: 480px) {
    .gallery-nav-btn {
        left: 10px !important;
        right: 10px !important;
        position: fixed;
        top: 50%;
    }
    .gallery-prev {
        left: 10px !important;
    }
    .gallery-next {
        right: 10px !important;
    }
    .gallery-modal-description {
        font-size: 13px;
        padding: 0 10px;
    }
}
.gallery-thumbnail {
    width: 60px;
    height: 60px;
    object-fit: cover;
    cursor: pointer;
    border: 2px solid transparent;
    border-radius: 4px;
}
.gallery-thumbnail:hover,
.gallery-thumbnail.active {
    border-color: #06B2BB;
}


/* ===== from line-promo-banner.php ===== */

  .line-promo-subtitle {
    font-size: clamp(24px, 5vw, 32px);
    font-weight: 500;
  }
  .promo-wrap-text {
    position: relative;
    width: 100%;
    height: auto;
    padding: 0 50px;
    display: flex;
    flex-direction: column;
    gap: 8px;

  }
  .promo-wrap-text h2 {
    font-size: clamp(40px, 5vw, 80px);
  }
.line-promo-banner {
    background: var(--color-primary);
    padding: 0 ;
}
.line-promo-container {
    display: flex;
    flex-direction: column;
    gap: 0;
    position: relative;
    padding-bottom: 30px;
}
.line-promo-title {
    font-size: clamp(40px, 4vw, 80px);
    font-weight: 700;
    color: #000;
    margin: 0;
    position: relative;
    display: flex;
    flex-direction: column;
    line-height: 1;
}
.line-promo-title .circle {
  content: "";
  background: url(/assets/frontend/media/design/gift/circle-mb.png) no-repeat left center;
  display: inline;
  background-size: contain;
}
.line-promo-title .line {
  content: "";
  background: url(/assets/frontend/media/design/gift/line-mb.png) no-repeat left bottom;
  display: block;

}
.line-promo-description {
    font-size: clamp(22px, 3vw, 28px);
    color: #000;
    font-weight: normal;
    margin: 0;
    line-height: 1;
    padding-top: 10px;
}
.line-promo-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 24px;
    background: white;
    color: #000;
    font-size: 24px;
    font-weight: 600;
    text-decoration: none;
    border-radius: 30px;
    transition: all 0.3s;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    width: clamp(200px, 30%, 200px);
    margin-top: 16px;
}
.line-promo-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}
.line-promo-icon {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}
.line-promo-container-img {
    width: 100%;
    height: 100%;
    padding: 0;
    margin: 0;
    display: none;
}
.line-promo-container-img-mb {
  width: 100%;
  height: auto;
  padding: 0;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
}

.line-promo-container-img-mb img, .line-promo-container-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.line-promo-link-img {
  display: flex;
  padding: 0;
  margin: 0;
  width: 100%;
}
@media (min-width: 992px) {
    .line-promo-container-img-mb {
      display: none;
    }
    .line-promo-container-img {
      display: block;
      height: 560px;
      width: 120%;
    }
    .line-promo-banner {
      padding: 0 var(--spacing-container);
    }
    .line-promo-container {
      flex-direction: row;
      padding-bottom: 0;
      align-items: center;
      justify-content: center;
    }
    .promo-wrap-text {
      padding: 50px 0;
      max-width: 400px;
    }
    .line-promo-title .line {
      background: url(/assets/frontend/media/design/gift/line-dt.png) no-repeat left bottom;
    }
}

/* ===== from element-testimonial.php ===== */

    .testimonial-section {
    margin: 0 auto;
    padding: 30px var(--spacing-container);
}
.testimonial-section-title {
    padding-bottom: 10px;
}
.testimonial-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
    scroll-snap-type: x mandatory;
    cursor: grab;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    transition: scroll-behavior 0.3s ease;
}
.testimonial-wrapper:active {
    cursor: grabbing;
}
.testimonial-wrapper.dragging {
    scroll-snap-type: none;
}
.testimonial-wrapper::-webkit-scrollbar {
    display: none; /* ซ่อน scrollbar */
}
.testimonial-container {
    display: flex;
    gap: 30px;
    padding: 10px 0;
    align-items: stretch;
}
.testimonial-card {
    width: 280px;
    flex-shrink: 0;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    scroll-snap-align: start;
    display: flex;
    flex-direction: column;
    height: auto;
}
.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
}
.testimonial-image {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
}
.testimonial-content {
    flex: 1;
    padding: 15px;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: stretch;
}
.testimonial-content::before {
    content: '';
    background: url('/assets/frontend/media//design/icon/icon-quote.svg') no-repeat top left;
    width: 200px;
    height: 200px;
    display: block;
    position: absolute;
    left: 20px;
    top: 20px;
}
.testimonial-text {
    font-size: 22px;
    color: #111;
    font-weight: normal;
    line-height: 1.2;
    position: relative;
    padding: 30px 20px 15px;
    flex: 1;
    margin-bottom: 0;
}
.testimonial-footer {
    padding: 15px 20px;
    margin-top: auto;
    min-height: 220px;
}
.testimonial-author {
    font-size: 24px;
    font-weight: bold;
    color: #06B2BB;
    line-height: 1;
}
.testimonial-trip {
    font-size: 22px;
    color: #777;
    padding-top: 8px;
    line-height: 1;
}
.ic-testimonial {
    background-image: url('/assets/frontend/media/design/icon/icon-testimonial.svg');
    background-size: contain;
    background-repeat: no-repeat;
    width: 1em;
    height: 1em;
}
.ic-testimonial::before {
    content: '';
}
@media (min-width: 992px) {
    .testimonial-section-title {
        font-size: 24px;
    }
    .testimonial-content {
        padding: 20px;
    }
}

/* ═══ NEW-STACK ADAPTATION (not from PHP — Pop-approved 2026-07-09) ═══
   In the PHP site DOMContentLoaded fires early so the date-price Swiper initializes
   before paint. In Next the theme init is re-dispatched after window.load, so for a
   moment the 10 month tabs render at natural width and overflow the column.
   Until Swiper adds .swiper-initialized: clip the row and size slides like the
   initialized state (6 per view desktop / 3 mobile) so there is no layout flash. */
/* Always clip the month-tab row: the PHP's `overflow: inherit` let extra tabs bleed past
   the column whenever a tour has more months than slidesPerView (latent on the old site —
   its tours rarely exceeded 6 months). Clipping matches the design intent: 6 tabs shown,
   the prev/next arrows page through the rest. */
.date-price-swiper { overflow: hidden !important; padding: 0 36px; }
/* the verbatim arrows sit OUTSIDE the box (right/left:-10px) and would be clipped —
   park them fully inside the 36px gutters instead */
.date-price-swiper .date-price-next { right: 0 !important; }
.date-price-swiper .date-price-prev { left: 0 !important; }
/* mask the gutters so a 7th tab can't peek behind the arrows (bg = styleguide Background) */
.date-price-swiper::before, .date-price-swiper::after {
  content: ''; position: absolute; top: 0; bottom: 0; width: 36px; background: #FCFBF8; z-index: 2;
}
.date-price-swiper::before { left: 0; }
.date-price-swiper::after { right: 0; }
.date-price-swiper:not(.swiper-initialized) .swiper-wrapper { display: flex; }
.date-price-swiper:not(.swiper-initialized) .swiper-slide { flex: 0 0 calc((100% - 50px)/6); margin-right: 10px; }
@media (max-width: 991px) {
  .date-price-swiper:not(.swiper-initialized) .swiper-slide { flex: 0 0 calc((100% - 20px)/3); }
}

/* ═══ NEW-STACK ADAPTATION: count-adaptive highlight gallery (Pop-approved 2026-07-09) ═══
   The PHP always rendered 5 grid positions with grey placeholders — with missing images it
   read as a broken page. Now: 0 images = section not rendered at all (see detailHtml.ts);
   1-4 images = their own layouts below; 5 = the original hero + 4 thumbs. */
.grid-container.gallery-count-1 .grid-item,
.grid-container.gallery-count-2 .grid-item,
.grid-container.gallery-count-3 .grid-item,
.grid-container.gallery-count-4 .grid-item { grid-column: auto; grid-row: auto; }

/* count-5 = ORIGINAL layout untouched (live: left hero 2 rows + right 2x2 via 2fr 1fr 1fr) */

.grid-container.gallery-count-4 { grid-template-columns: repeat(3, 1fr); }
.grid-container.gallery-count-4 .grid-item { aspect-ratio: 4 / 3; }
.grid-container.gallery-count-4 .grid-item-1 { grid-column: 1 / -1; aspect-ratio: 3 / 1; }

.grid-container.gallery-count-3 { grid-template-columns: repeat(2, 1fr); }
.grid-container.gallery-count-3 .grid-item { aspect-ratio: 4 / 3; }
.grid-container.gallery-count-3 .grid-item-1 { grid-column: 1 / -1; aspect-ratio: 3 / 1; }

.grid-container.gallery-count-2 { grid-template-columns: repeat(2, 1fr); }
.grid-container.gallery-count-2 .grid-item { aspect-ratio: 16 / 10; }

.grid-container.gallery-count-1 { grid-template-columns: 1fr; }
.grid-container.gallery-count-1 .grid-item-1 { grid-column: 1 / -1; aspect-ratio: 3 / 1; }

@media (max-width: 767px) {
  .grid-container.gallery-count-4 .grid-item-1,
  .grid-container.gallery-count-3 .grid-item-1,
  .grid-container.gallery-count-1 .grid-item-1 { aspect-ratio: 2 / 1; }
}

/* ═══ NEW-STACK ADAPTATION: day-plan keyword highlight (Pop-approved 2026-07-10) ═══
   Rule-based only (no AI): places = names from the tour's highlight mapping · meals = fixed
   Thai patterns. Activity lines = plain • bullets (Pop 07-10: binocular icon looked buggy). */
.tour-detail-plan .plan-detail .plan-activity {
  font-weight: 400;
  list-style: none;
  position: relative;
  padding-left: 16px;
}
.tour-detail-plan .plan-detail .plan-activity::before {
  content: "\2022";
  position: absolute;
  left: 2px;
  color: #A6A6A6;
}
.tour-detail-plan .kw-place { color: #06B2BB; font-weight: 600; }
.tour-detail-plan .kw-meal  { color: #D8900A; font-weight: 600; }
