/**
 * Tour Card Horizontal Styles
 * Horizontal layout for tour package cards
 */

:root {
  --primary-color: #0d47a1;
  --color-orange: #ff7c2b;
  --color-gray-light: #333;
}

/* ==================== Main Container ==================== */
.tour-card-horizontal {
  display: flex;
  flex-direction: row;
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  margin-bottom: 20px;
  transition: all 0.3s ease;
  border: 1px solid #e8e8e8;
}

.tour-card-horizontal:hover {
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
  transform: translateY(-2px);
}

/* ==================== Image Section ==================== */
.tch-image {
  flex: 0 0 260px;
  position: relative;
  overflow: hidden;
}

.tch-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 220px;
  transition: transform 0.3s ease;
}

.tch-image:hover img {
  transform: scale(1.05);
}

/* Sold Out overlay in horizontal card */
.card-soldout .tch-image .card-soldout-overlay {
  border-radius: 0;
}

.tch-tour-code {
  display: inline-block;
  background: #f1f5f9;
  color: #475569;
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 600;
  width: fit-content;
  border: 1px solid #e2e8f0;
}

/* ==================== Content Section ==================== */
.tch-content {
  flex: 1;
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 7px;
}

/* Meta Row */
.tch-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  text-align: center;
  align-items: center;
  font-size: 13px;
  color: #666;
}

.tch-meta-row span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.tch-meta-row i {
  color: var(--primary-color);
}

.tch-country {
  background: #e3f2fd;
  color: var(--primary-color);
  padding: 4px 10px;
  border-radius: 15px;
  font-weight: 600;
}

.tch-star {
  font-weight: bold;
  color: #f59e0b !important;
}

.tch-star i {
  color: #f59e0b;
}

.tch-airline-logo {
  width: 60px;
  object-fit: contain;
  border-radius: 4px;
}

.tch-company {
  font-size: 10px;
  color: var(--primary-color);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: block;
}

/* Meta items with dividers */
.tch-meta-row > span:not(:first-child) {
  padding-left: 12px;
  border-left: 1px solid #ddd;
}

/* Title */
.tch-title {
  font-size: 17px;
  font-weight: 600;
  color: #1a1a1a;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.tch-title a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease;
}

.tch-title a:hover {
  color: var(--primary-color);
}

.tch-duration {
  font-weight: 600;
}

/* Highlights */
.tch-highlights {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 13px;
  color: #555;
  padding: 10px 12px;
  background: #f8f9fa;
  border-radius: 8px;
  border-left: 3px solid var(--primary-color);
}

.tch-highlights i {
  color: #f59e0b;
  margin-top: 2px;
}

.tch-highlights span {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.5;
}

/* AI Tags */
.tch-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tch-tag {
  color: #333;
  background: #f8f9fa;
  padding: 4px 10px;
  border-radius: 12px;
  border: 1px solid #e0e0e0;
  font-size: 11px;
  font-weight: 500;
}

/* Bottom Row */
.tch-bottom-row {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  align-items: center;
  margin-top: auto;
  padding-top: 10px;
  padding-bottom: 10px;
  border-top: 1px solid #f0f0f0;
  border-bottom: 1px solid #f0f0f0;
  font-size: 13px;
  color: #666;
}

.tch-date-range {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.tch-date-range i {
  color: var(--primary-color);
}

.tch-month-badge {
  background: #fff3e0;
  color: #e65100;
  padding: 3px 8px;
  border-radius: 10px;
  font-size: 11px;
  font-weight: 500;
}

.tch-airport {
  display: flex;
  align-items: center;
  gap: 5px;
}

.tch-airport i {
  color: var(--primary-color);
}

/* ==================== Price Section ==================== */
.tch-price-section {
  flex: 0 0 180px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 20px;
  background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
  border-left: 1px solid #f0f0f0;
  gap: 15px;
}

.tch-price-wrapper {
  text-align: center;
}

.tch-price-label {
  display: block;
  font-size: 12px;
  color: #888;
  margin-bottom: 2px;
}

.tch-price {
  display: block;
  font-size: 28px;
  font-weight: 700;
  color: var(--color-orange);
  line-height: 1.2;
}

.tch-currency {
  display: block;
  font-size: 13px;
  color: var(--color-orange);
  font-weight: 500;
}

.tch-btn-detail {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--primary-color);
  color: #fff;
  padding: 10px 20px;
  border-radius: 25px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.tch-btn-detail:hover {
  background: #0077b6;
  transform: scale(1.02);
  color: #fff;
}

/* ==================== Responsive ==================== */
@media (max-width: 992px) {
  .tch-image {
    flex: 0 0 200px;
  }

  .tch-price-section {
    flex: 0 0 150px;
  }

  .tch-price {
    font-size: 24px;
  }
}

@media (max-width: 768px) {
  .tour-card-horizontal {
    flex-direction: column;
  }

  .tch-image {
    flex: none;
    height: 200px;
  }

  .tch-image img {
    height: 200px;
    min-height: auto;
  }

  .tch-price-section {
    flex: none;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    border-left: none;
    border-top: 1px solid #f0f0f0;
    padding: 15px 20px;
    gap: 10px;
  }

  .tch-price-wrapper {
    text-align: left;
    order: 1;
  }

  .tch-btn-detail {
    order: 2;
  }

  .tch-price-section .btn-compare-tour {
    order: 3;
    width: auto;
    justify-content: center;
    margin-top: 0 !important;
    padding: 8px 14px;
    border-radius: 20px;
    flex-basis: 100%;
    display: flex;
    padding-top: 10px;
  }

  .tch-price-section::after {
    content: "";
    order: 3;
    width: 100%;
    border-top: 1px solid #f0f0f0;
  }

  .tch-price {
    font-size: 26px;
    display: inline;
  }

  .tch-currency {
    display: inline;
    margin-left: 4px;
  }
}

@media (max-width: 480px) {
  .tch-content {
    padding: 14px;
    gap: 8px;
  }

  .tch-title {
    font-size: 15px;
  }

  .tch-meta-row {
    flex-wrap: nowrap;
    gap: 8px;
    font-size: 12px;
  }

  .tch-highlights {
    padding: 8px 10px;
    font-size: 12px;
  }

  .tch-btn-detail {
    padding: 8px 16px;
    font-size: 15px;
  }
}

/*//////////////// Seat Left (Scarcity) — Horizontal Card ////////////////*/
.tch-seat-left {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border: 1px solid;
  border-radius: 8px;
  font-size: 12.5px;
}

.tch-seat-left i {
  font-size: 13px;
}

.tch-seat-left strong {
  font-family: Prompt-Bold, sans-serif;
  font-size: 14px;
}

.tch-seat-left.scarcity-urgent {
  animation: scarcityPulse 2s ease-in-out infinite;
}
