/* === TOUR DETAIL PAGE STYLES === */
.tour-detail-container {
  padding: 40px 100px;
  background-color: #f9f9f9;
  font-family: Arial, sans-serif;
}

.breadcrumb {
  font-size: 14px;
  color: #555;
  margin-bottom: 10px;
}

.breadcrumb a {
  color: #007bff;
  text-decoration: none;
}

.breadcrumb span {
  color: #222;
  font-weight: bold;
}

.tour-name-heading {
  font-size: 32px;
  font-weight: 800;
  color: #002244;
  margin: 30px 0 40px;
  text-align: center;
  line-height: 1.3;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

.tour-flex-box {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  background: #fff;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.05);
}

.tour-left {
  flex: 1 1 60%;
  order: 1;
}

.tour-left img {
  width: 90%;
  border-radius: 12px;
  object-fit: cover;
  margin-bottom: 30px;
}

.tour-right {
  flex: 1 1 35%;
  order: 2;
}

.tour-info {
  font-size: 16px;
  color: #333;
  line-height: 1.8;
  margin: 20px 0 30px;
}

.tour-info i {
  color: #555;
  margin-right: 8px;
  width: 20px;
}

.tour-price {
  margin: 20px 0;
  font-size: 22px;
  font-weight: bold;
}

.price-new {
  color: #d1005d;
  font-size: 26px;
  margin-right: 10px;
}

.price-old {
  color: #666;
  text-decoration: line-through;
  font-size: 18px;
}

.discount-badge {
  display: inline-block;
  background: linear-gradient(45deg, #ff0000, #ff6a00);
  color: #fff;
  font-weight: bold;
  font-size: 14px;
  padding: 4px 10px;
  border-radius: 20px;
  margin-left: 10px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
  vertical-align: middle;
  animation: bounce 1s infinite ease-in-out;
}

@keyframes bounce {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-3px);
  }
}

.contact-btn {
  display: inline-block;
  background-color: #007bff;
  color: #fff;
  padding: 12px 24px;
  font-size: 16px;
  border-radius: 6px;
  text-decoration: none;
  margin-bottom: 30px;
  transition: 0.3s;
}

.contact-btn:hover {
  background-color: #0056b3;
}

.tour-tabs {
  margin-top: 30px;
  border-top: 2px solid #348dda;
  order: 3;
}

.tab-nav {
  display: flex;
  list-style: none;
  padding: 0;
  margin: 0;
  background: #f8f8f8;
  border-bottom: 2px solid #ddd;
}

.tab-nav li {
  padding: 10px 20px;
  cursor: pointer;
  font-weight: bold;
  color: #333;
  position: relative;
  transition: 0.3s;
  font-size: 20px;
}

.tab-nav li.active {
  color: black;
}

.tab-nav li.active::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 20px;
  right: 20px;
  height: 3px;
  background-color: #168038;
  border-radius: 2px;
}

.tab-content {
  display: none;
  padding: 20px;
  background: #fff;
  border: 1px solid #ddd;
  border-top: none;
}

.tab-content.active {
  display: block;
}

.other-box {
  border: 1px solid #ccc;
  border-radius: 12px;
  padding: 20px;
  background-color: #fff;
  margin-top: 30px;
  order: 4;
}

.other-box-title {
  text-align: center;
  font-size: 18px;
  font-weight: bold;
  color: #222;
  margin-bottom: 20px;
  text-transform: uppercase;
}

.other-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.other-row a {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  background-color: #fafafa;
  padding: 10px;
  border-radius: 10px;
  transition: background 0.3s;
}

.other-row a:hover {
  background-color: #f0f8ff;
}

.other-row img {
  width: 80px;
  height: 60px;
  object-fit: cover;
  border-radius: 8px;
  flex-shrink: 0;
}

.other-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.other-name {
  font-size: 14px;
  font-weight: 600;
  color: #006400;
  margin: 0 0 4px;
  line-height: 1.4;
}

.other-price {
  color: #d1005d;
  font-size: 14px;
  font-weight: bold;
  margin: 0;
}

/* === Responsive === */
@media (max-width: 768px) {
  .tour-detail-container {
    padding: 16px;
  }

  .tour-flex-box {
    flex-direction: column;
  }

  .tour-name-heading {
    font-size: 24px;
    margin: 16px 0 24px;
    text-align: center;
    order: 1;
  }

  .tour-left {
    order: 2;
    width: 100%;
  }

  .tour-left img {
    width: 100%;
    height: auto;
    border-radius: 10px;
  }

  .tour-right {
    order: 3;
    width: 100%;
  }

  .tour-tabs {
    order: 4;
  }

  .other-box {
    order: 5;
  }

  .tour-price {
    font-size: 20px;
  }

  .price-new {
    font-size: 22px;
  }

  .price-old {
    font-size: 16px;
  }

  .discount-badge {
    font-size: 12px;
    padding: 3px 8px;
  }

  .tour-info {
    font-size: 15px;
  }

  .contact-btn {
    width: 90%;
    text-align: center;
    padding: 12px;
    font-size: 16px;
    margin-top: 10px;
  }

  .tab-nav li {
    font-size: 11px;
    padding: 10px;
  }

  .tab-content {
    padding: 16px;
  }

  .other-list {
    gap: 12px;
  }

  .other-row {
    flex-direction: row;
    align-items: center;
  }

  .other-row img {
    width: 80px;
    height: 60px;
  }

  .other-info {
    margin-left: 10px;
  }

  .limited-text {
    max-height: 500px;
  }

  .limited-text table {
    font-size: 13px !important;
  }

  .limited-text th,
  .limited-text td {
    padding: 8px 6px !important;
  }
}

/* === EXPANDABLE TEXT AREA === */
.limited-text {
  max-height: 700px;
  overflow: hidden;
  position: relative;
  transition: max-height 0.3s ease;
  overflow-x: auto;
}

.tab-content.expanded .limited-text {
  max-height: none;
}

.toggle-btn {
  margin-top: 10px;
  color: #007bff;
  font-weight: bold;
  cursor: pointer;
  display: inline-block;
}

.toggle-btn:hover {
  text-decoration: underline;
}

.limited-text table {
  width: 100% !important;
  max-width: 100% !important;
  display: block !important;
  overflow-x: auto !important;
  -webkit-overflow-scrolling: touch;
  border-collapse: collapse !important;
  table-layout: fixed !important;
}

.limited-text th,
.limited-text td {
  padding: 10px !important;
  border: 1px solid #ccc !important;
  text-align: center !important;
  vertical-align: middle !important;
  word-break: break-word !important;
  white-space: normal !important;
  font-size: 14px !important;
}

.limited-text table * {
  height: auto !important;
  width: auto !important;
  line-height: 1.4 !important;
}

.limited-text td p,
.limited-text th p {
  margin: 0 !important;
  line-height: 1.4 !important;
  white-space: normal !important;
}

@media (max-width: 768px) {
  .limited-text table {
    font-size: 13px !important;
    min-width: 600px;
  }

  .limited-text th,
  .limited-text td {
    padding: 8px 6px !important;
  }
}
