/* ===========================
   RECENTLY VIEWED
=========================== */
.tour-category-recent {
  margin-top: 18px;
  padding: 1rem 0 1rem 0;
}

.tour-category-recent-inner {
  width: 1200px;
  max-width: 100%;
  margin: 0 auto;
  padding: 0 2rem;
}

.tour-category-recent-title {
  margin: 0 auto 2.5rem auto;
  font-size: var(--font-size-2xl);
  font-weight: 700;
  color: var(--text-color);
  text-align: center;
  text-transform: uppercase;
  position: relative;
}

.tour-category-recent-title::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -12px;
  transform: translateX(-50%);
  width: 120px;
  height: 3px;
  background: #024bd2;
}

.tour-category-recent-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2rem;
}

.recent-tour-card {
  display: grid;
  grid-template-columns: 1.5fr 1.75fr;
  gap: 1rem;
  align-items: stretch;
  background: var(--bg-color);
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  text-decoration: none;
  color: inherit;
  min-height: 120px;
}

.recent-tour-image {
  width: 100%;
  height: 100%;
  height: 180px;
  border-radius: 10px 0 0 10px;
  object-fit: cover;
}

.recent-tour-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  padding: 1rem 1rem 1rem 0;
}

.recent-tour-name {
  font-size: 1.2rem;
  font-weight: 500;
  line-height: 1.5;
  color: var(--text-color);
  display: -webkit-box;
  line-clamp: 2;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.recent-tour-category {
  margin-top: 0.5rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 1px;
  color: #888;
  text-transform: uppercase;
}

.recent-tour-price {
  margin-top: 0.5rem;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-color);
}

.recent-tour-desc {
  margin-top: 6px;
  font-size: 0.85rem;
  line-height: 1.5;
  color: rgba(0, 0, 0, 0.6);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ===========================
   CLONE FROM INDEX
=========================== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.tour-category-index-extras {
  background: #fff;
  padding: 2rem 0;
}

/* 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;
}

/* ============================================
	 TOUR CATEGORY - HERO (100vh)
	 ============================================ */
.tour-category-main {
  background: var(--bg-color);
}

.tour-category-hero {
  position: relative;
  height: 60vh;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background-image: url("../images/tour_category/tour_1.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.tour-category-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
}

.tour-category-hero-content {
  margin-top: 50px;
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 0 1.5rem;
}

.tour-category-hero-title {
  margin: 0;
  color: #fff;
  font-size: 4rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.55);
}

/* ============================================
	 TOUR CATEGORY - INTRO (2 cột, full 100vh)
	 ============================================ */
.tour-category-intro {
  height: 40vh;
  background: #dfe9ef;
  display: flex;
  align-items: center;
}

.tour-category-intro-inner {
  width: 1200px;
  max-width: 100%;
  margin: 0 auto;
  padding: 2rem;
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 4rem;
  align-items: center;
  box-sizing: border-box;
}

.tour-category-intro-left {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.tour-category-intro-title {
  margin: 0;
  font-size: 2rem;
  font-weight: 500;
  color: #597cbd;
  letter-spacing: 1px;
}

.tour-category-intro-icon {
  width: 88px;
  height: 88px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #597cbd;
}

.tour-category-intro-icon i {
  font-size: 3.25rem;
  line-height: 1;
}

.tour-category-intro-right {
  color: var(--text-color);
}

.tour-category-intro-right p {
  color: #597cbd;
  margin: 0 0 1.25rem;
  font-size: 1rem;
  line-height: 1.8;
}

.tour-category-intro-right p:last-child {
  margin-bottom: 0;
}

/* ============================================
	 TOUR CATEGORY - BREADCRUMB
	 ============================================ */
.tour-category-breadcrumb {
  background: var(--bg-color);
}

.tour-category-breadcrumb-inner {
  width: 1200px;
  max-width: 100%;
  margin: 0 auto;
  padding: 3rem 2rem 1rem 2rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-color);
  box-sizing: border-box;
}

.tour-category-breadcrumb-link {
  color: inherit;
  text-decoration: none;
  font-weight: 500;
}

.tour-category-breadcrumb-link:hover {
  text-decoration: underline;
}

.tour-category-breadcrumb-sep {
  opacity: 0.7;
}

.tour-category-breadcrumb-current {
  font-weight: 700;
}

/* ============================================
	 TOUR CATEGORY - CATEGORY TABS (right)
	 ============================================ */
.tour-category-tabs {
  background: var(--bg-color);
}

.tour-category-tabs-inner {
  width: 1200px;
  max-width: 100%;
  margin: 0 auto;
  padding: 0 2rem 2rem;
  display: flex;
  justify-content: flex-end;
  box-sizing: border-box;
}

.tour-category-tabs-pill {
  max-width: 100%;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 0.75rem 1rem;
  border-radius: 999px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  background: var(--bg-color);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.tour-category-tabs-pill::-webkit-scrollbar {
  height: 0;
}

.tour-category-tab {
  color: var(--text-color);
  text-decoration: none;
  font-size: 1.05rem;
  font-weight: 500;
  white-space: nowrap;
}

.tour-category-tab.is-active {
  color: var(--primary-color);
}

.tour-category-tabs-icon {
  flex: 0 0 auto;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(0, 0, 0, 0.06);
  color: var(--text-color);
}

.tour-category-tabs-icon i {
  font-size: 1.2rem;
  line-height: 1;
}

/* ============================================
	 TOUR CATEGORY - TOUR CARD
	 ============================================ */
.tour-category-tourlist {
  width: 1200px;
  max-width: 100%;
  margin: 0 auto;
  padding: 0 2rem 3rem;
  box-sizing: border-box;
}

.tour-card {
  margin-bottom: 20px;
  display: grid;
  grid-template-columns: 1fr 2fr;
  border-radius: var(--border-radius-lg);
  border: 1px solid rgba(0, 0, 0, 0.08);
  background: var(--bg-color);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.3);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.tour-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.35);
}

.tour-card-media {
  position: relative;
  min-height: 360px;
  background: rgba(0, 0, 0, 0.04);
}

.tour-card-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.tour-card-hot {
  position: absolute;
  top: 1rem;
  padding: 0.35rem 0.7rem;
  background: #ff4b22;
  color: var(--text-light);
  font-weight: 800;
  letter-spacing: 0.04em;
}

.tour-card-like {
  position: absolute;
  right: 1rem;
  bottom: 1rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 0.8rem;
  border-radius: 0.65rem;
  border: 1px solid rgba(0, 0, 0, 0.14);
  background: rgba(255, 255, 255, 0.9);
  color: var(--text-color);
  font-weight: 700;
  cursor: pointer;
  transition: background-color 180ms ease, border-color 180ms ease,
    color 180ms ease;
}

.tour-card-like:hover {
  background: #ec0404;
  border-color: #ec0404;
  color: var(--text-light);
}

.tour-card-like i {
  font-size: 1.1rem;
  line-height: 1;
}

.tour-card-content {
  padding: 1.5rem 1.75rem;
}

.tour-card-title {
  margin: 0;
  font-size: 1.7rem;
  font-weight: 700;
  color: var(--text-color);
}

.tour-card-days {
  color: #18c;
  font-weight: 600;
}

.tour-card-trip-title {
  color: inherit;
  font-weight: inherit;
}

.tour-card-meta {
  margin-top: 0.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.tour-card-category {
  font-size: 0.9rem;
  letter-spacing: 0.08em;
  color: rgba(0, 0, 0, 0.55);
  font-weight: 600;
}

.tour-card-pill {
  font-size: 0.95rem;
  padding: 0.25rem 0.7rem;
  border: 1px solid rgba(0, 0, 0, 0.1);
  background: rgba(0, 0, 0, 0.03);
  color: rgba(0, 0, 0, 0.7);
}

.tour-card-price-row {
  margin-top: 0.9rem;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.25rem;
  align-items: start;
}

.tour-card-price {
  font-size: 2rem;
  font-weight: 500;
  color: rgba(0, 0, 0, 0.9);
  padding-right: 1.25rem;
  border-right: 1px solid rgba(0, 0, 0, 0.12);
}

.tour-card-upgrades {
  color: rgba(0, 0, 0, 0.75);
  line-height: 1.5;
}

.tour-card-upgrades strong {
  font-weight: 800;
}

.tour-card-desc {
  margin-top: 0.9rem;
  color: rgba(0, 0, 0, 0.78);
  line-height: 1.7;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
  line-clamp: 4;
  overflow: hidden;
}

.tour-card-destination {
  margin-top: 1.1rem;
}

.tour-card-destination-title {
  margin: 0 0 0.75rem;
  font-size: 1.1rem;
  font-weight: 800;
  color: rgba(0, 0, 0, 0.86);
}

.tour-card-destination-row {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 1.25rem;
  padding: 0.65rem 0;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.tour-card-destination-country {
  color: rgba(0, 0, 0, 0.55);
  font-weight: 700;
}

.tour-card-destination-places {
  line-height: 1.5;
  color: rgba(0, 0, 0, 0.78);
  
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  overflow: hidden;
}

/* ============================================
	 TOUR CATEGORY - PAGINATION
	 ============================================ */
.tour-category-pagination {
  width: 1200px;
  max-width: 100%;
  margin: 0 auto 3rem;
  padding: 0 2rem;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.6rem;
  box-sizing: border-box;
}

.tour-category-page-btn {
  width: 52px;
  height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: var(--text-color);
  background: rgba(0, 0, 0, 0.03);
  border: 1px solid rgba(0, 0, 0, 0.06);
  font-weight: 700;
}

.tour-category-page-btn i {
  font-size: 1.2rem;
  line-height: 1;
}

.tour-category-page-btn.is-active {
  color: var(--primary-color);
  border-bottom: 4px solid var(--primary-color);
  background: var(--bg-color);
}

.tour-category-page-btn.is-disabled {
  color: rgba(0, 0, 0, 0.35);
  cursor: not-allowed;
}

/* ============================================
   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;
}
