/* Tour Detail Page — Global Booking Style */

/* Breadcrumb */
.td-breadcrumb {
  background: #fff;
  border-bottom: 1px solid #eef0f5;
  padding: 14px 0;
}

.breadcrumb-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
}

.breadcrumb-nav a {
  color: #888;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: color 0.25s ease;
}

.breadcrumb-nav a:hover {
  color: var(--primary-dark);
}

.breadcrumb-nav a i {
  font-size: 16px;
}

.breadcrumb-sep {
  color: #ccc;
  font-size: 15px;
}

.breadcrumb-nav span {
  color: var(--text-color);
  font-weight: 600;
  max-width: 400px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Hero */
.td-hero {
  position: relative;
  color: #fff;
}

.td-hero-image {
  margin-top: -7px;
  position: absolute;
  inset: 0;
}

.td-hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.td-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15, 15, 35, 0.55) 0%, rgba(15, 15, 35, 0.75) 100%);
}

.td-hero-content {
  position: relative;
  z-index: 2;
  padding: 70px 20px 70px;
  margin-top: 90px;
}

.td-hero-badges {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.td-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 16px;
  border-radius: 20px;
  font-size: 12.5px;
  font-weight: 700;
  backdrop-filter: blur(8px);
}

.td-badge-category {
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: #fff;
}

.td-badge-featured {
  background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
  color: #fff;
  box-shadow: 0 4px 14px rgba(217, 18, 0, 0.5);
}

.td-badge-available {
  background: rgba(46, 204, 113, 0.9);
  color: #fff;
}

.td-badge-unavailable {
  background: rgba(108, 117, 125, 0.9);
  color: #fff;
}

.td-hero-content h1 {
  font-size: 42px;
  font-weight: 800;
  margin: 0 0 18px;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.4);
  max-width: 800px;
}

.td-hero-meta {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.td-meta-item {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 18px;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
  backdrop-filter: blur(8px);
}

.td-meta-item i {
  font-size: 17px;
  color: var(--primary-color);
}

/* Content layout */
.td-content-section {
  background: linear-gradient(180deg, #f4f6fa 0%, #eef1f7 100%);
  padding: 0 0 80px;
  margin-top: 50px;
  position: relative;
  z-index: 5;
}

.td-layout {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 30px;
  align-items: start;
}

.td-main {
  display: flex;
  flex-direction: column;
  gap: 24px;
  min-width: 0;
}

.td-card {
  background: #fff;
  border-radius: 18px;
  padding: 28px 30px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  border: 1px solid rgba(234, 185, 117, 0.18);
}

.td-card-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 19px;
  font-weight: 700;
  color: var(--text-color);
  margin: 0 0 18px;
  padding-bottom: 14px;
  border-bottom: 2px solid #f5f0e6;
}

.td-card-title i {
  color: var(--primary-dark);
  font-size: 22px;
}

.td-description {
  color: #555;
  line-height: 2;
  font-size: 15px;
  margin: 0;
}

.td-certificate {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  background: linear-gradient(135deg, #fdf8f0, #faf3e6);
  border: 1px solid rgba(234, 185, 117, 0.4);
  border-radius: 14px;
  padding: 20px 22px;
}

.td-certificate > i {
  font-size: 34px;
  color: var(--primary-dark);
  flex-shrink: 0;
}

.td-certificate p {
  margin: 0;
  color: #5a4a2e;
  line-height: 1.9;
  font-size: 14.5px;
  font-weight: 500;
}

/* Gallery */
.td-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.td-gallery-item {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  cursor: pointer;
}

.td-gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.td-gallery-item:hover img {
  transform: scale(1.08);
}

.td-gallery-item span {
  position: absolute;
  bottom: 0;
  right: 0;
  left: 0;
  padding: 22px 12px 10px;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.75));
  color: #fff;
  font-size: 12px;
  font-weight: 600;
}

.td-no-gallery {
  color: #999;
  grid-column: 1 / -1;
}

/* Booking sidebar */
.td-sidebar {
  position: sticky;
  top: 150px;
}

.td-booking-card {
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.12);
  border: 1px solid rgba(234, 185, 117, 0.3);
  overflow: hidden;
}

.td-price-box {
  padding: 28px 28px 22px;
  text-align: center;
  background: linear-gradient(180deg, #fdf8f0, #fff);
  border-bottom: 1px dashed rgba(234, 185, 117, 0.4);
}

.td-price-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: #999;
  margin-bottom: 8px;
}

.td-price {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 4px;
}

.td-price-currency {
  font-size: 24px;
  font-weight: 800;
  color: var(--primary-dark);
}

.td-price-value {
  font-size: 46px;
  font-weight: 800;
  color: var(--text-color);
  line-height: 1;
}

.td-price-note {
  display: block;
  font-size: 12.5px;
  color: #999;
  margin-top: 8px;
}

.td-booking-meta {
  padding: 10px 28px;
  display: flex;
  flex-direction: column;
}

.td-meta-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 13px 0;
  border-bottom: 1px solid #f5f5f8;
}

.td-meta-row:last-child {
  border-bottom: none;
}

.td-meta-row > i {
  font-size: 22px;
  color: var(--primary-dark);
  width: 28px;
  text-align: center;
  flex-shrink: 0;
}

.td-meta-label {
  display: block;
  font-size: 11.5px;
  color: #999;
  font-weight: 600;
}

.td-meta-value {
  display: block;
  font-size: 15px;
  font-weight: 700;
  color: var(--text-color);
}

.td-book-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 20px 28px 12px;
  padding: 2px;
  background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
  color: #fff;
  text-decoration: none;
  border-radius: 11px;
  font-size: 17px;
  font-weight: 800;
  transition: all 0.3s ease;
  box-shadow: 0 8px 24px rgba(217, 18, 0, 0.35);
}

.td-book-btn i {
  font-size: 22px;
}

.td-book-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 34px rgba(217, 18, 0, 0.5);
}

.td-unavailable-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 20px 28px 12px;
  padding: 16px;
  background: #e9ecef;
  color: #888;
  border-radius: 14px;
  font-size: 16px;
  font-weight: 700;
}

.td-contact-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 0 28px 22px;
  padding: 7px;
  border: 1.5px solid var(--primary-color);
  color: var(--primary-dark);
  text-decoration: none;
  border-radius: 11px;
  font-size: 14px;
  font-weight: 700;
  transition: all 0.3s ease;
}

.td-contact-btn:hover {
  background: #faf3e6;
}

.td-trust {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 18px 28px 24px;
  background: #fafbfc;
  border-top: 1px solid #f0f1f5;
}

.td-trust-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: #666;
  padding: 5px 0;
}

.td-trust-item i {
  font-size: 18px;
  color: #27ae60;
}

/* Related tours */
.td-related-section {
  background: #fff;
  padding: 70px 0;
}

.td-related-header {
  text-align: center;
  margin-bottom: 45px;
}

.td-related-header h2 {
  font-size: 32px;
  font-weight: 700;
  color: var(--text-color);
  margin: 0 0 8px;
}

.td-related-header p {
  color: #888;
  font-size: 15px;
  margin: 0;
}

.td-related-section .tours-grid {
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
}

/* Responsive */
@media (max-width: 992px) {
  .td-layout {
    grid-template-columns: 1fr;
  }

  .td-sidebar {
    position: static;
    order: -1;
  }

  .td-booking-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
  }

  .td-price-box {
    grid-column: 1 / -1;
    border-bottom: none;
    border-left: 1px solid #f0f1f5;
  }

  .td-book-btn,
  .td-unavailable-btn,
  .td-contact-btn {
    margin-right: 20px;
    margin-left: 20px;
  }

  .td-trust {
    grid-column: 1 / -1;
    flex-direction: row;
    justify-content: space-around;
    gap: 10px;
    padding: 15px 20px;
  }

  .td-hero-content h1 {
    font-size: 30px;
  }
}

@media (max-width: 768px) {
  .td-breadcrumb {
    display: none;
  }

  .td-hero-content {
    padding: 45px 20px 70px;
  }

  .td-hero-content h1 {
    font-size: 24px;
  }

  .td-hero-meta {
    flex-direction: column;
    align-items: flex-start;
  }

  .td-content-section {
    margin-top: 40px;
    padding-bottom: 50px;
  }

  .td-card {
    padding: 20px;
  }

  .td-gallery {
    grid-template-columns: repeat(2, 1fr);
  }

  .td-booking-card {
    grid-template-columns: 1fr;
  }

  .td-price-box {
    border-left: none;
    border-bottom: 1px dashed rgba(234, 185, 117, 0.4);
  }

  .td-trust {
    flex-direction: column;
    gap: 4px;
  }

  .td-related-section {
    padding: 50px 0;
  }
}

/* ===== Tour detail: extra info sections ===== */
.td-includes-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.td-include-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 15px;
  background: #f8fafc;
  border: 1px solid #eef1f5;
  border-radius: 12px;
  transition: all 0.25s ease;
}

.td-include-item:hover {
  border-color: #eab975;
  background: #fdf8ee;
  transform: translateY(-2px);
}

.td-include-item > i {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: linear-gradient(135deg, #dcfce7, #bbf7d0);
  color: #16a34a;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
}

.td-include-item strong {
  display: block;
  font-size: 13.5px;
  color: #1e293b;
}

.td-include-item span {
  font-size: 12px;
  color: #94a3b8;
}

.td-highlights {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.td-highlight {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px 15px;
  background: linear-gradient(135deg, #fdf6ec, #faf0dd);
  border: 1px solid #f0dfc0;
  border-radius: 12px;
  font-size: 13.5px;
  color: #5d4020;
  font-weight: 600;
}

.td-highlight i {
  color: #d91200;
  font-size: 19px;
  flex-shrink: 0;
}

.td-practical {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.td-practical-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 13px 10px;
  border-bottom: 1px solid #f4f5f8;
}

.td-practical-item:last-child {
  border-bottom: none;
}

.td-practical-item > i {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: #eef2ff;
  color: #4f46e5;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 19px;
  flex-shrink: 0;
}

.td-practical-item strong {
  display: block;
  font-size: 14px;
  color: #1e293b;
  margin-bottom: 3px;
}

.td-practical-item span {
  font-size: 13px;
  color: #64748b;
  line-height: 1.7;
}

@media (max-width: 768px) {
  .td-includes-grid,
  .td-highlights {
    grid-template-columns: 1fr;
  }
}
