/* ========================================
   TOUR DETAIL PAGE STYLES
   ======================================== */

/* ----------------------------------------
   BACK TO TOP BUTTON
   ---------------------------------------- */
.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 50px;
  height: 50px;
  background: var(--primary-color);
  color: #fff;
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(2, 75, 210, 0.3);
}

.back-to-top.show {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  background: #0239a8;
  transform: translateY(-5px);
  box-shadow: 0 6px 20px rgba(2, 75, 210, 0.4);
}

.back-to-top i {
  font-size: 1.5rem;
}

/* ----------------------------------------
   HERO SECTION
   ---------------------------------------- */
.tour-detail-hero {
  position: relative;
 
  max-width: 100%;
  
  margin: 6rem auto 0 auto;
  
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border-radius: var(--border-radius-lg);
}

/* ----------------------------------------
   BREADCRUMB / Điều hướng trang
   ---------------------------------------- */
.tour-detail-breadcrumb {
  background: var(--bg-color);
}

.tour-detail-breadcrumb-inner {
  width: 1200px;
  max-width: 100%;
  margin: 0 auto;
  padding: 2rem 0 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-color);
  box-sizing: border-box;
}

.tour-detail-breadcrumb-link {
  color: inherit;
  text-decoration: none;
  font-weight: 500;
}

.tour-detail-breadcrumb-link:hover {
  text-decoration: underline;
}

.tour-detail-breadcrumb-sep {
  opacity: 0.7;
}

.tour-detail-breadcrumb-current {
  font-weight: 700;
}

/* ----------------------------------------
   TOUR INFO SECTION
   ---------------------------------------- */
.tour-detail-info {
  background: var(--bg-color);
}

.tour-detail-info-inner {
  width: 1200px;
  max-width: 100%;
  margin: 0 auto;
  padding: 2rem 0;
  display: flex;
  gap: 2rem;
  box-sizing: border-box;
}

/* Left Column */
.tour-info-left {
  flex: 1;
}

.tour-info-title {
  font-size: 1.75rem;
  font-weight: 400;
  margin-bottom: 0.75rem;
  line-height: 1.3;
}

.tour-info-days {
  color: #1a73a8;
  font-weight: 600;
}

.tour-info-name {
  font-weight: 700;
  color: var(--text-color);
}

.tour-info-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
  font-size: 0.85rem;
}

.tour-info-category {
  color: #666;
  font-weight: 500;
  letter-spacing: 0.5px;
}

.tour-info-id {
  color: #666;
  padding: 0.25rem 0.75rem;
  border: 1px solid #ddd;
  border-radius: 4px;
}

.tour-info-price-row {
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
  margin-bottom: 1.25rem;
}

.tour-info-price {
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-color);
}

.tour-info-upgrade {
  font-size: 0.85rem;
  color: #666;
  line-height: 1.5;
}

.tour-info-upgrade strong {
  color: var(--text-color);
}

.tour-info-desc {
  font-size: 0.95rem;
  line-height: 1.7;
  color: #444;
  margin-bottom: 1.5rem;
}

.tour-info-actions {
  display: flex;
  gap: 1rem;
}

.tour-info-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.25rem;
  border-radius: 25px;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.3s ease;
}

.tour-info-btn-primary {
  background: #1a73a8;
  color: #fff;
  border: 2px solid #1a73a8;
}

.tour-info-btn-primary:hover {
  background: #155d87;
  border-color: #155d87;
}

.tour-info-btn-secondary {
  background: #fff;
  color: var(--text-color);
  border: 2px solid #ddd;
}

.tour-info-btn-secondary:hover {
  border-color: #1a73a8;
  color: #1a73a8;
}

/* Right Column */
.tour-info-right {
  width: 350px;
  flex-shrink: 0;
}

.tour-info-box {
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 4px;
  margin-bottom: 1rem;
}

.tour-info-box-title {
  font-size: 1rem;
  font-weight: 700;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid #e0e0e0;
  margin: 0;
}

.tour-info-box-row {
  display: flex;
  padding: 0.75rem 1.25rem;
  border-bottom: 1px solid #f0f0f0;
}

.tour-info-box-row:last-child {
  border-bottom: none;
}

.tour-info-box-label {
  width: 80px;
  flex-shrink: 0;
  font-weight: 500;
  color: #666;
  font-size: 0.85rem;
}

.tour-info-box-value {
  flex: 1;
  font-size: 0.85rem;
  color: #1a73a8;
  line-height: 1.5;
}

/* ----------------------------------------
   HIGHLIGHT SECTION
   ---------------------------------------- */
.tour-detail-highlight {
  background: var(--bg-color);
}

.tour-detail-highlight-inner {
  width: 1200px;
  max-width: 100%;
  margin: 0 auto 2rem auto;
  padding: 2rem;
  border: 1px solid #e0e0e0;
  box-sizing: border-box;
  border-radius: var(--border-radius-lg);
}

.tour-highlight-title {
  font-size: 1.2rem;
  font-weight: 500;
  color: var(--text-color);
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid #e0e0e0;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.tour-highlight-list {
  list-style: disc;
  padding-left: 1.5rem;
  margin: 0;
}

.tour-highlight-list li {
  font-size: 0.95rem;
  line-height: 1.7;
  color: #444;
  margin-bottom: 0.75rem;
}

.tour-highlight-list li:last-child {
  margin-bottom: 0;
}

.tour-highlight-list li strong {
  color: var(--text-color);
  font-weight: 700;
}

/* ----------------------------------------
   INTRODUCTION SECTION
   ---------------------------------------- */
.tour-detail-introduction {
  background: var(--bg-color);
}

.tour-detail-introduction-inner {
  width: 1200px;
  max-width: 100%;
  margin: 2rem auto 2rem auto;
  padding: 2rem;
  box-sizing: border-box;
  border: 1px solid #e0e0e0;
  border-radius: var(--border-radius-lg);
}

.tour-introduction-title {
  font-size: 1.2rem;
  font-weight: 500;
  color: var(--text-color);
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid #e0e0e0;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.tour-introduction-content p {
  font-size: 0.95rem;
  line-height: 1.8;
  color: #444;
  margin-bottom: 1rem;
}

.tour-introduction-content p:last-child {
  margin-bottom: 0;
}

/* ----------------------------------------
   PLACES TO BE SEEN SECTION
   ---------------------------------------- */
.tour-detail-places {
  background: var(--bg-color);
}

.tour-detail-places-inner {
  width: 1200px;
  max-width: 100%;
  margin: 2rem auto;
  padding: 2rem;
  box-sizing: border-box;
  border: 1px solid #e0e0e0;
  border-radius: var(--border-radius-lg);
}

.tour-places-title {
  font-size: 1.2rem;
  font-weight: 500;
  color: var(--text-color);
  margin-bottom: 1.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid #e0e0e0;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.tour-places-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.tour-place-item {
  border-radius: var(--border-radius-lg);
  position: relative;
  overflow: hidden;
  aspect-ratio: 4/3;
}

.tour-place-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.tour-place-item:hover img {
  transform: scale(1.05);
}

.tour-place-label {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 0.75rem;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent);
  color: #fff;
  font-size: 0.9rem;
  font-weight: 500;
  text-align: center;
}

.tour-place-item {
  cursor: pointer;
}

/* ----------------------------------------
   LIGHTBOX GALLERY
   ---------------------------------------- */
.lightbox {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.95);
  z-index: 9999;
  align-items: center;
  justify-content: center;
}

.lightbox.active {
  display: flex;
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: none;
  border: none;
  color: #fff;
  font-size: 2rem;
  cursor: pointer;
  padding: 0.5rem;
  transition: opacity 0.3s ease;
  z-index: 10001;
}

.lightbox-close:hover {
  opacity: 0.7;
}

.lightbox-prev,
.lightbox-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: #fff;
  font-size: 1.75rem;
  cursor: pointer;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s ease;
  z-index: 10001;
}

.lightbox-prev {
  left: 20px;
}

.lightbox-next {
  right: 20px;
}

.lightbox-prev:hover,
.lightbox-next:hover {
  background: rgba(255, 255, 255, 0.25);
}

.lightbox-content {
  text-align: center;
  max-width: 90%;
  max-height: 90%;
}

.lightbox-content img {
  max-width: 100%;
  max-height: 80vh;
  object-fit: contain;
  border-radius: var(--border-radius-md);
}

.lightbox-caption {
  color: #fff;
  font-size: 1.1rem;
  margin-top: 1rem;
  font-weight: 500;
}

.lightbox-counter {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.9rem;
  margin-top: 0.5rem;
}

/* ----------------------------------------
   SIMILAR TOURS SECTION
   ---------------------------------------- */
.tour-detail-similar {
  background: #fff;
  padding: 3rem 0 4rem 0;
}

.tour-detail-similar-inner {
  width: 1200px;
  max-width: 100%;
  margin: 0 auto;
  padding: 0 1rem;
  box-sizing: border-box;
}

.tour-similar-title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-color);
  margin-bottom: 2.5rem;
  text-align: center;
  text-transform: uppercase;
  position: relative;
}

.tour-similar-title::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -12px;
  transform: translateX(-50%);
  width: 120px;
  height: 3px;
  background: #024bd2;
}

.tour-similar-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.similar-tour-card {
  display: flex;
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.similar-tour-card:hover {
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
  transform: translateY(-3px);
}

.similar-tour-image {
  width: 140px;
  height: auto;
  object-fit: cover;
  flex-shrink: 0;
}

.similar-tour-content {
  padding: 0.75rem 1rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.similar-tour-name {
  font-size: 0.95rem;
  font-weight: 400;
  margin: 0 0 0.25rem 0;
  line-height: 1.4;
}

.similar-tour-days {
  color: #1a73a8;
}

.similar-tour-title {
  font-weight: 700;
  color: var(--text-color);
}

.similar-tour-category {
  font-size: 0.7rem;
  color: #888;
  letter-spacing: 0.5px;
  margin-bottom: 0.25rem;
}

.similar-tour-price {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-color);
}

/* ----------------------------------------
   RECENTLY VIEWED SECTION
   ---------------------------------------- */
.tour-detail-recent {
  background: #fff;
  padding: 2rem 0;
}

.tour-detail-recent-inner {
  width: 1200px;
  max-width: 100%;
  margin: 0 auto;
  padding: 0 1rem;
  box-sizing: border-box;
}

.tour-recent-title {
  font-size: 2rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-color);
  text-align: center;
  margin-bottom: 2.5rem;
  position: relative;
  display: block;
}

.tour-recent-title::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 3px;
  background: #024bd2;
}

.tour-recent-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.recent-tour-card-detail {
  display: flex;
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.recent-tour-card-detail:hover {
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
  transform: translateY(-3px);
}

.recent-tour-card-detail-image {
  width: 200px;
  height: 180px;
  object-fit: cover;
  flex-shrink: 0;
}

.recent-tour-card-detail-content {
  padding: 1rem 1.25rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.35rem;
}

.recent-tour-card-detail-name {
  font-size: 1.15rem;
  font-weight: 400;
  line-height: 1.4;
  color: var(--text-color);
  margin: 0;
}

.recent-tour-days {
  color: #1a73a8;
}

.recent-tour-card-detail-category {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  color: #888;
  letter-spacing: 0.5px;
}

.recent-tour-card-detail-price {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text-color);
}

.recent-tour-card-detail-desc {
  font-size: 0.85rem;
  color: #666;
  line-height: 1.5;
  margin: 0;
}

/* ----------------------------------------
   TOUR SEARCH BOX + CONTACT INFO BAR
   ---------------------------------------- */

/* Container chung */
.tour-detail-index-extras .container,
.our-brands-section .container {
  max-width: 1200px;
  margin: 0 auto;
}

.tour-detail-index-extras {
  background: #fff;
}

/* TOUR SEARCH BOX */
.tour-search-box {
  width: 100%;
  max-width: 500px;
  margin: 2rem auto 1rem auto;
  position: relative;
}

.tour-search-input {
  width: 100%;
  padding: 0.85rem 3rem 0.85rem 1.2rem;
  border: 1.5px solid #ddd;
  border-radius: 2rem;
  font-size: 1rem;
  font-family: inherit;
  background: #fff;
  color: #222;
  transition: border-color 0.3s;
  box-sizing: border-box;
  outline: none;
}

.tour-search-input:focus {
  border-color: #024bd2;
  box-shadow: 0 0 0 2px rgba(2, 75, 210, 0.08);
}

.tour-search-btn {
  position: absolute;
  top: 50%;
  right: 1rem;
  transform: translateY(-50%);
  background: none;
  border: none;
  outline: none;
  cursor: pointer;
  color: #757575;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  transition: color 0.2s;
}

.tour-search-btn:hover {
  color: #024bd2;
}

/* CONTACT INFO BAR */
.contact-info-bar {
  padding: 1.25rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.contact-info-item {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.contact-info-icon {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: #5c5c5c;
}

.contact-info-icon i {
  font-size: 2.5rem;
  line-height: 1;
}

.contact-info-text {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.contact-info-title {
  font-size: var(--font-size-base);
  font-weight: 600;
  color: var(--text-color);
}

.contact-info-value {
  font-size: var(--font-size-sm);
  color: var(--text-color);
  opacity: 0.8;
}

/* ----------------------------------------
   OUR BRANDS SECTION
   ---------------------------------------- */
.our-brands-section {
  background: #fff;
  padding: 2rem 0 4rem 0;
}

.our-brands-title {
  font-size: var(--font-size-2xl);
  text-transform: uppercase;
  font-weight: 600;
  text-align: center;
  margin: 1rem auto;
  color: var(--text-color);
  position: relative;
  display: block;
  width: 100%;
}

.our-brands-title::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 120px;
  height: 3px;
  background: #024bd2;
}

.brands-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3rem;
  align-items: center;
  justify-items: center;
  margin-top: 3rem;
}

.brand-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  padding: 2rem;
  background: #fff;
  border-radius: var(--border-radius-lg);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  width: 100%;
  max-width: 280px;
}

.brand-item:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.brand-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 200px;
  height: 120px;
}

.brand-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.brand-name {
  font-size: var(--font-size-base);
  font-weight: 500;
  color: var(--text-color);
  text-align: center;
}
