/* สไตล์เฉพาะหน้า — เดิมฝังเป็น <style> อยู่ใน HTML ของทั้ง TH และ EN
   (ก๊อปกันไว้สองที่ แก้ทีต้องแก้สองรอบ และเบราว์เซอร์แคชซ้ำไม่ได้) */
.tours-hero {
  text-align: center;
  padding: 80px 20px 40px;
}
.tours-hero h1 {
  font-size: clamp(36px, 5vw, 56px);
  color: var(--dark);
  margin-bottom: 12px;
}
.tours-hero p {
  font-size: 18px;
  color: var(--muted);
  max-width: 600px;
  margin: 0 auto;
}

/* Tabs for locations */
.tabs-container {
  max-width: 1000px;
  margin: 0 auto 40px;
  display: flex;
  justify-content: center;
  gap: 12px;
  padding: 0 16px;
}
.tab-btn {
  font-family: 'Kanit', sans-serif;
  font-weight: 700;
  font-size: 16px;
  padding: 14px 28px;
  border: 1.5px solid #dcecf7;
  border-radius: var(--r-pill);
  background: rgba(255, 255, 255, 0.8);
  color: var(--text);
  cursor: pointer;
  transition: all 0.25s ease;
  box-shadow: var(--shadow);
}
.tab-btn:hover {
  background: #eef8ff;
  color: var(--blue);
  border-color: var(--cyan);
}
.tab-btn.active {
  /* เดิมไล่สีจบที่ฟ้าสว่าง ตัวขาววัดได้ 3.74 ไม่ถึง 4.5 */
  background: var(--blue);
  color: #fff;
  border-color: transparent;
}

.tours-container-wrap {
  max-width: 1000px;
  margin: 0 auto 80px;
  padding: 0 16px;
}

.location-section {
  display: none;
  animation: fadeInSection 0.4s ease-in-out forwards;
}
.location-section.active {
  display: block;
}
@keyframes fadeInSection {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

.location-header {
  margin-bottom: 30px;
  border-left: 5px solid var(--blue);
  padding-left: 20px;
}
.location-header h2 {
  font-size: 28px;
  color: var(--dark);
  margin: 0 0 6px 0;
}
.location-header p {
  color: var(--muted);
  margin: 0;
  font-size: 15px;
  line-height: 1.6;
}

.tour-list {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.tour-detail-card {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  border-radius: var(--r-panel);
  padding: 34px;
  box-shadow: var(--shadow);
  border: 1px solid rgba(255, 255, 255, 0.9);
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 30px;
  transition: transform 0.3s ease;
}
.tour-detail-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 30px 80px rgba(6, 75, 142, 0.18);
}
.tour-card-img {
  width: 100%;
  height: 100%;
  min-height: 200px;
  object-fit: cover;
  border-radius: var(--r-card);
}

.tour-info-wrap {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.tour-title-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 12px;
}
.tour-title-row h3 {
  font-family: 'Kanit', sans-serif;
  font-size: 26px;
  color: var(--blue);
  margin: 0;
}
.tour-badge {
  display: inline-flex;
  background: #eef8ff;
  /* เดิม var(--cyan) บนพื้นนี้ = 2.57 อ่านไม่ออก */
  color: var(--blue);
  font-size: 13px;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: var(--r-pill);
}

.tour-desc {
  color: var(--muted);
  line-height: 1.7;
  margin: 14px 0 20px;
  font-size: 15px;
}

.tour-meta-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 16px;
  border-top: 1px solid #eaeaea;
  padding-top: 20px;
  margin-bottom: 24px;
}
.meta-box {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--text);
}
.meta-box svg {
  color: var(--blue);
  flex-shrink: 0;
}
.meta-box span {
  font-weight: 600;
}
.meta-box small {
  color: var(--muted);
  display: block;
  font-size: 11px;
}

.inclusions-grid {
  background: #fafcff;
  border-radius: var(--r-small);
  padding: 16px;
  margin-bottom: 24px;
  border: 1px solid #eef6fc;
}
.inclusions-title {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 10px;
  letter-spacing: 0.5px;
}
.inclusions-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 10px;
}
.inclusion-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text);
}
.inclusion-item svg {
  color: var(--green);
  flex-shrink: 0;
}

.booking-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  border-top: 1px solid #eaeaea;
  padding-top: 20px;
}
.tour-price-info {
  font-size: 14px;
  color: var(--muted);
}
.tour-price-value {
  font-size: 24px;
  font-weight: 800;
  color: var(--blue);
  display: block;
}

@media (max-width: 860px) {
  .tour-detail-card {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 24px;
  }
  .tour-card-img {
    height: 180px;
    min-height: auto;
  }
  .tab-btn {
    font-size: 14px;
    padding: 10px 18px;
  }
}
/* package detail: departure windows + highlights */
.tour-times{display:flex;flex-wrap:wrap;gap:8px;margin:0 0 16px}
.tour-times-label{font-size:13px;color:var(--muted);align-self:center;font-weight:600}
.tour-time-chip{display:inline-flex;align-items:center;gap:6px;background:rgba(94,201,65,.14);
  color:#1c6b12;border-radius: var(--r-pill);padding:7px 14px;font-weight:700;font-size:13px}
.tour-highlights{margin:0 0 18px;padding:18px 20px;border-radius: var(--r-card);
  background:rgba(14,165,233,.06);border:1px solid rgba(14,165,233,.14)}
.tour-highlights-title{font-family:'Kanit',sans-serif;font-weight:700;font-size:14px;
  color:var(--blue);margin-bottom:10px}
.tour-highlight{display:flex;gap:10px;margin-bottom:10px;font-size:14px;line-height:1.65}
.tour-highlight:last-child{margin-bottom:0}
.tour-highlight svg{flex:none;color:var(--green);margin-top:3px}
.tour-highlight b{color:var(--dark);font-weight:700}
.tour-highlight span{color:var(--muted)}

/* ---------- Readable line length ---------- */
.location-header p { max-width: 62ch; margin-left: auto; margin-right: auto; }

/* ---------- Text list under #tours-content ----------
   The script on the page replaces this block with the tour cards as the page
   loads, so visitors never see it. It keeps readable styling for two cases:
   a crawler that does not run scripts, and a visitor whose script fails. */
.tours-seo { max-width: 820px; margin: 0 auto; padding: 0 4px; }
.tours-seo section { margin-bottom: 34px; }
.tours-seo h2 { font-family: 'Kanit', sans-serif; font-size: 26px; color: var(--dark); margin: 0 0 8px; }
.tours-seo h3 { font-family: 'Kanit', sans-serif; font-size: 20px; color: var(--blue); margin: 0 0 6px; }
.tours-seo article {
  margin: 0 0 20px;
  padding: 20px 22px;
  border-radius: var(--r-card);
  background: rgba(255, 255, 255, .78);
  border: 1px solid rgba(14, 165, 233, .14);
}
.tours-seo p { color: var(--muted); line-height: 1.8; margin: 0 0 10px; max-width: 62ch; }
.tours-seo ul { margin: 0 0 10px; padding-left: 20px; color: var(--muted); line-height: 1.8; }
.tours-seo li { margin-bottom: 6px; max-width: 62ch; }
.tours-seo b { color: var(--dark); }
.tours-seo a { color: var(--blue); font-weight: 700; }
