.booking-modal-bg {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.3);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
}
.booking-modal {
  background: #fff;
  border-radius: 8px;
  max-width: 520px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 4px 32px #0003;
  padding: 24px 18px 18px 18px;
  position: relative;
}
.booking-modal-close {
  position: absolute;
  top: 8px;
  right: 12px;
  background: none;
  border: none;
  font-size: 2rem;
  color: #888;
  cursor: pointer;
  z-index: 10;
}

.tour-detail {
  margin: 24px auto;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 12px #0001;
  padding: 16px;
  font-family: Arial, sans-serif;
  width: 100%;
  box-sizing: border-box;
}
.tour-detail__header {
  border-bottom: 1px solid #eee;
  margin-bottom: 16px;
  padding-bottom: 8px;
}
.tour-detail__header h1 {
  font-size: 2rem;
  margin: 0 0 8px 0;
}
.tour-detail__meta {
  color: #666;
  font-size: 1rem;
  display: flex;
  gap: 24px;
}
.tour-detail__meta--secondary {
  color: #1976d2;
  font-size: 0.98rem;
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}

/* Legacy class aliases: keep compatibility with server-side templates that
   still use `.tourdetail*` names. We group legacy + new selectors together so
   both receive the same rules. */
.tourdetail, .tour-detail {
  margin: 24px auto;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 12px #0001;
  padding: 16px;
  font-family: Arial, sans-serif;
  width: 100%;
  box-sizing: border-box;
}
.tourdetail-header, .tour-detail__header {
  border-bottom: 1px solid #eee;
  margin-bottom: 16px;
  padding-bottom: 8px;
}
.tourdetail-header h1, .tour-detail__header h1 {
  font-size: 2rem;
  margin: 0 0 8px 0;
}
.tourdetail-meta, .tour-detail__meta {
  color: #666;
  font-size: 1rem;
  display: flex;
  gap: 24px;
}
.tourdetail-meta2, .tour-detail__meta--secondary {
  color: #1976d2;
  font-size: 0.98rem;
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}
.tourdetail-main, .tour-detail__main {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 24px;
}
.tourdetail-img, .tour-detail__img {
  flex: 0 0 320px;
  max-width: 100%;
  display: flex;
  justify-content: center;
  align-items: flex-start;
}
.tourdetail-img img, .tour-detail__img img {
  width: 100%;
  max-width: 320px;
  height: auto;
  aspect-ratio: 16/11;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid #eee;
}
.tourdetail-banner img, .tour-detail__banner img { display:block; width:100%; height:auto; border-radius:8px 8px 0 0; }
.tourdetail-info, .tour-detail__info {
  flex: 1 1 240px;
  min-width: 0;
}
.tourdetail-info h2, .tour-detail__info h2 {
  margin-top: 0;
  font-size: 1.2rem;
  color: #1976d2;
}
.tourdetail-deps, .tour-detail__deps {
  width: 100%;
  border-collapse: collapse;
  margin-top: 8px;
  margin-bottom: 16px;
  display: block;
  overflow-x: auto;
  font-size: 0.98rem;
}
.tourdetail-deps table, .tour-detail__deps table { min-width: 480px; }
.tourdetail-deps th, .tourdetail-deps td, .tour-detail__deps th, .tour-detail__deps td {
  border: 1px solid #eee;
  padding: 8px 12px;
  text-align: left;
}
.tourdetail-content, .tour-detail__content { margin-top: 24px; }
.tourdetail-tabs, .tour-detail__tabs { display: flex; gap: 8px; margin-bottom: 16px; }
.tourdetail-tab, .tour-detail__tab {
  padding: 8px 20px;
  border-radius: 6px 6px 0 0;
  background: #f5f5f5;
  border: 1px solid #eee;
  border-bottom: none;
  cursor: pointer;
  font-weight: 500;
  color: #1976d2;
  transition: background 0.2s;
}
.tourdetail-tab.active, .tour-detail__tab.active { background:#fff; color:#222; border-bottom:1px solid #fff; }
.tourdetail-tabpanel, .tour-detail__tabpanel {
  border: 1px solid #eee;
  border-radius: 0 0 8px 8px;
  padding: 12px 6px;
  background: #fff;
  overflow-x: auto;
}
.tourdetail-places-photos, .tour-detail__places-photos { display:flex; flex-wrap:wrap; gap:16px; margin-top:8px }
.tourdetail-places-photos > div, .tour-detail__places-photos > div { width:220px; margin-bottom:16px; text-align:center }
.tourdetail-places-photos img, .tour-detail__places-photos img { width:100%; height:140px; object-fit:cover; border-radius:8px; border:1px solid #eee; background:#fafafa }

.tour-detail__main {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 24px;
}
.tour-detail__img {
  flex: 0 0 320px;
  max-width: 100%;
  display: flex;
  justify-content: center;
  align-items: flex-start;
}
.tour-detail__img img {
  width: 100%;
  max-width: 320px;
  height: auto;
  aspect-ratio: 16/11;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid #eee;
}
.tour-detail__banner img { display:block; width:100%; height:auto; border-radius:8px 8px 0 0; }
.tour-detail__info {
  flex: 1 1 240px;
  min-width: 0;
}
.tour-detail__info h2 {
  margin-top: 0;
  font-size: 1.2rem;
  color: #1976d2;
}

.tour-detail__deps {
  width: 100%;
  border-collapse: collapse;
  margin-top: 8px;
  margin-bottom: 16px;
  display: block;
  overflow-x: auto;
  font-size: 0.98rem;
}
.tour-detail__deps table {
  min-width: 480px;
}
.tour-detail__deps th, .tour-detail__deps td {
  border: 1px solid #eee;
  padding: 8px 12px;
  text-align: left;
}

.tour-detail__content {
  margin-top: 24px;
}

.tour-detail__tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
}
.tour-detail__tab {
  padding: 8px 20px;
  border-radius: 6px 6px 0 0;
  background: #f5f5f5;
  border: 1px solid #eee;
  border-bottom: none;
  cursor: pointer;
  font-weight: 500;
  color: #1976d2;
  transition: background 0.2s;
}
.tour-detail__tab.active {
  background: #fff;
  color: #222;
  border-bottom: 1px solid #fff;
}
.tour-detail__tabpanel {
  border: 1px solid #eee;
  border-radius: 0 0 8px 8px;
  padding: 12px 6px;
  background: #fff;
  overflow-x: auto;
}

.tour-detail__places-photos {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 8px;
}
.tour-detail__places-photos > div {
  width: 220px;
  margin-bottom: 16px;
  text-align: center;
}
.tour-detail__places-photos img {
  width: 100%;
  height: 140px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid #eee;
  background: #fafafa;
}
.tour-detail__places-photos div[style*="fontWeight:500"] {
  margin-top: 8px;
  font-weight: 500;
}

.breadcrumb {
  font-size: 0.95rem;
  color: #666;
  margin-bottom: 8px;
}
.breadcrumb a { color:#1976d2; text-decoration: none; }

/* Simple button styles used for booking links */
.btn { display:inline-block; padding:6px 12px; border-radius:6px; text-decoration:none; cursor:pointer; }
.btn-sm { padding:4px 8px; font-size:0.9rem; }
.btn-primary { background:#1976d2; color:#fff; border:1px solid #136ab0; }
.btn-phone { background:#ff6b00; color:#fff; border:1px solid #e55a00; }

/* Price tag style to reflect remote site emphasis */
.tour-price { color:#d32f2f; font-weight:700; font-size:1.25rem; }
@media (max-width: 600px) {
  .tour-detail {
    padding: 4px;
    margin: 0;
    border-radius: 0;
    box-shadow: none;
  }
  .tour-detail__main {
    flex-direction: column;
    gap: 10px;
  }
  .tour-detail__img {
    flex: 1 1 100%;
    max-width: 100%;
    margin-bottom: 8px;
  }
  .tour-detail__img img {
    max-width: 100vw;
    width: 100%;
    height: auto;
    aspect-ratio: 16/11;
  }
  .tour-detail__info {
    min-width: 0;
    width: 100%;
  }
  .tour-detail__header h1 {
    font-size: 1.2rem;
    word-break: break-word;
  }
  .tour-detail__meta {
    flex-direction: column;
    gap: 4px;
    font-size: 0.98rem;
  }
  .tour-detail__tabs {
    flex-wrap: wrap;
    gap: 4px;
  }
  .tour-detail__tab {
    padding: 6px 10px;
    font-size: 0.98rem;
  }
  .tour-detail__tabpanel {
    padding: 8px 2px;
    font-size: 0.98rem;
  }
}
