/* Layout tổng thể */
.single-tour-page {
  padding: 40px 0 60px;
}

.tour-container {
  margin: 0 auto;
}

.tour-layout {
  display: flex;
  gap: 32px;
  align-items: start;
  font-family: "Be Vietnam Pro", Sans-serif;
}

.tour-main-content {
  width: calc(100% - 350px - 32px);
}

.tour-header {
  margin-bottom: 12px;
}

.tour-title {
  margin: 0 0 4px;
  line-height: 1.35;
  font-weight: 700;
  color: var(--main-color) !important;
  font-size: 28px;
}

.tour-post-date {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #777;
  font-size: 14px;
}
.tour-post-date span {
  display: inline-flex;
  align-items: center;
}

/* Gallery */
.tour-gallery {
  margin-bottom: 32px;
}

.tour-gallery-swiper {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
}

.tour-gallery-item {
  display: block;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: #f3f3f3;
}

.tour-gallery-item img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.tour-gallery-item:hover img {
  transform: scale(1.04);
}

.tour-gallery-swiper .swiper-button-prev,
.tour-gallery-swiper .swiper-button-next {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  color: #fff;
  background: rgba(0, 0, 0, 0.5);
}

.tour-gallery-swiper .swiper-button-prev::after,
.tour-gallery-swiper .swiper-button-next::after {
  font-size: 16px;
  font-weight: 700;
}

.tour-gallery-swiper .swiper-pagination-bullet-active {
  background: #fff;
}

.tour-route-directForm,
.tour-route-directForm:hover {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 24px;
  background: var(--main-color);
  color: #fff;
  border-radius: 10px;
  padding: 9px 12px;
  text-transform: uppercase;
  font-weight: 600;
}

.tour-route--note {
  display: block;
  text-align: center;
  font-size: 13px;
  font-weight: 300;
  font-style: italic;
  margin-top: 10px;
  line-height: 140%;
}

/* Thông tin chung */
.tour-general-info {
  margin-bottom: 46px;
  color: #333;
}

.tour-section-title,
.tour-sidebar-title {
  margin: 0 0 20px;
  font-size: 22px;
  line-height: 1.4;
  font-weight: 700;
  color: #000 !important;
  text-transform: capitalize;
}

.tour-info-grid {
  display: flex;
  flex-direction: column;
  gap: 12px;
  color: #0f172a;
}

.tour-info-item {
  width: 100%;
}

.tour-info-label,
.tour-sidebar-label {
  display: block;
  margin-bottom: 3px;
  font-size: 13px;
  text-transform: uppercase;
  font-weight: 600;
  color: #0f172a;
  opacity: 0.5;
}

.tour-info-value,
.tour-sidebar-value {
  color: #333;
  font-size: 14px;
  line-height: 1.7;
  overflow-wrap: anywhere;
  white-space: normal;
  font-weight: 600;
}

.tour-sidebar-matour {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  border-bottom: 1px solid #ebebeb;
  padding-bottom: 20px;
}
.tour-sidebar-matour span:first-child {
  font-size: 14px;
}
.tour-sidebar-matour span:last-child {
  background: rgb(15 23 42 / 5%);
  font-size: 12px;
  padding: 2px 6px;
  border-radius: 4px;
  color: #000;
  font-weight: 600;
}

/* Nội dung bài viết */
.tour-content {
  line-height: 1.8;
}
.tour-content-body {
  color: #0f172a;
}
.tour-content-body p:last-child {
  margin-bottom: 0;
}

.tour-content-body img {
  max-width: 100%;
  height: auto;
}

.tour-content-body iframe {
  max-width: 100%;
}

.tour-gallery-thumbs {
  margin-top: 18px;
}

.tour-gallery-thumb {
  display: block;
  height: 90px;
  overflow: hidden;
  border-radius: 8px;
  cursor: pointer;
}
.tour-gallery-thumb img {
  object-fit: cover;
  width: 100%;
  height: 100%;
}

/* Sidebar */
.tour-sidebar {
  width: 350px;
  align-self: start;
  position: sticky;
  top: 100px;
}

.tour-sidebar-box {
  padding: 24px;
  border: 1px solid rgb(15 23 42 / 10%);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 5px 24px rgba(0, 0, 0, 0.05);
  position: sticky;
  top: 30px;
  font-family: "Be Vietnam Pro", Sans-serif;
}

.tour-sidebar-title {
  padding-bottom: 16px;
  border-bottom: 1px solid rgb(15 23 42 / 10%);
}

.tour-sidebar-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 20px;
}
.tour-sidebar-item {
  display: flex;
  gap: 12px;
  align-items: start;
}
.tour-sidebar-item--icon {
  width: 35px;
  height: 35px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: var(--icon-bg, #e8f3ff);
  color: var(--icon-color, #2878c8);
  border-radius: 50%;
  flex-shrink: 0;
  box-sizing: border-box;
}
.tour-sidebar-item--icon svg {
  transform: scale(0.8);
}
.tour-sidebar-item--content {
  width: calc(100% - 35px - 12px);
}
.tour-route-arrow {
  color: #e87932;
  margin: 0 3px;
}

.tour-sidebar-item:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.related-tours {
  max-width: 1240px;
  margin: auto;
  margin-top: 60px;
  padding-top: 60px;
  border-top: 1px solid rgb(15 23 42 / 10%);
}
.related-tours-header {
  margin-bottom: 30px;
}
.related-tours--note {
  display: block;
  font-size: 14px;
  font-weight: 300;
  margin-top: 5px;
  line-height: 140%;
}

.tour-sidebar--mobile {
  display: none !important;
}

@media screen and (max-width: 1024px) {
  .tour-sidebar {
    display: none;
  }
  .tour-main-content {
    width: 100%;
  }
  .tour-sidebar--mobile {
    display: block !important;
    width: 100%;
    position: relative;
    top: unset;
    margin-bottom: 24px;
  }
}
/* Responsive */
@media (max-width: 991px) {
}

@media (max-width: 767px) {
  .tour-title {
    font-size: 22px;
  }
  .related-tours {
    margin-top: 30px;
    padding-top: 30px;
  }
  .tour-section-title,
  .tour-sidebar-title {
    font-size: 18px;
  }
  .tour-gallery-thumb {
    height: 80px;
  }
  .tour-gallery-thumbs {
    margin-top: 10px;
  }
}
