/* Layout Wrappers */
.tct-comparison-wrapper {
  width: 100%;
  max-width: 1200px;
  margin: 2em auto;
  padding: 0 1em;
  text-align: center;
}

.tct-button-wrapper {
  display: flex;
  justify-content: center;
  margin: 1em 0;
}

.tct-comparison-placeholder + .tct-comparison-scroll-wrapper,
.tct-comparison-scroll-wrapper {
  justify-content: center;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
}

.tct-comparison-table {
  display: flex;
  flex-wrap: nowrap;
  gap: 1em;
  align-items: stretch;
}

.tct-upper-sections {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 220px;  /* or adjust based on your testing */
}

/* Loading Spinner */
.tct-loading-spinner {
  display: block;
  width: 32px;
  height: 32px;
  margin: 1em auto;
  border: 4px solid #ddd;
  border-top: 4px solid #ff5722;
  border-radius: 50%;
  animation: tct-spin 1s linear infinite;
}

@keyframes tct-spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Card Item Container */
.tct-item {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  flex: 1;
  height: auto;
  text-align: center;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 10px;
  padding: 1em;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  box-sizing: border-box;
  transition: height 0.3s ease, transform 0.3s, box-shadow 0.3s;
}

.tct-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
}

.tct-card-content {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
}

/* Image Section */
.tct-img {
  width: 100%;
  aspect-ratio: 305 / 135;
  overflow: hidden;
  border-radius: 5px;
  margin-bottom: 0.8em;
}

.tct-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 5px;
  display: block;
}

/* Name / Title */
.tct-name {
  font-size: 16px;        /* reduced from 1.1em */
  font-weight: 600;
  color: #333;
  margin-bottom: 0.5em;
  line-height: 1.4em;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: normal;
}

/* Price */
.tct-price {
  color: #ff5722;
  font-size: 18px;        /* reduced from 1.2em */
  font-weight: bold;
  min-height: 2.4em;
}

/* Section Layout */
.tct-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  text-align: center;
  font-size: 14px;        /* reduced from 0.9em */
  margin: 0.5em 0;
}

.tct-lower-sections {
  display: grid;
  grid-template-rows: repeat(5, auto);
  row-gap: 0.5em;
  margin-top: auto;
}

.tct-lower-sections .tct-section {
  min-height: 4em;
}

/* Labels & Values */
.tct-label {
  font-weight: 600;
  font-size: 14px;        /* reduced from 0.9em */
  color: #848484;
  margin-bottom: 0.2em;
}

.tct-value {
  font-size: 14px;        /* reduced from 0.9em */
  color: #3A3A3A;
  min-height: 1.4em;
}

/* See More / Toggle */
.tct-see-more {
  color: #ff5722;
  font-weight: bold;
  font-size: 14px;        /* reduced from 0.85em */
  cursor: pointer;
  margin-top: 0.3em;
  user-select: none;
}

.tct-see-more .tct-chevron {
  display: inline-block;
  transform: rotate(0deg);
  transition: transform 0.3s;
}

.tct-see-more.active .tct-chevron {
  transform: rotate(180deg);
}

/* Inclusions & Exclusions */
.tct-inclusions {
  text-align: left;
}

.tct-inclusions .tct-value {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  max-height: 6em;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.tct-inclusions .tct-value.expanded {
  max-height: 100em;
  overflow: visible;
}

.tct-inc {
  font-size: 14px;        /* reduced from 0.9em */
  color: #3A3A3A;
  line-height: 1.4;
  margin: 0.2em 0;
  word-break: break-word;
}

.tct-inc.tct-yes::before,
.tct-status.tct-yes::before {
  content: "✔ ";
  color: green;
  font-weight: bold;
  margin-right: 0.2em;
}

.tct-inc.tct-no::before,
.tct-status.tct-no::before {
  content: "✘ ";
  color: red;
  font-weight: bold;
  margin-right: 0.2em;
}

/* Book Button */
.tct-section.tct-book {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 4em;
}

.tct-book a {
  display: inline-block;
  margin-top: 0.6em;
  padding: 0.6em 1.2em;
  background: #ff5722;
  color: #fff;
  font-weight: 600;
  font-size: 14px;         /* reduced from inherit */
  text-decoration: none;
  border-radius: 6px;
  transition: background 0.3s;
}

.tct-book a:hover {
  background: #e64a19;
}

/* Unavailable Wrapper */
.tct-unavailable-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 0.5em;
  gap: 0.2em;
}

.tct-unavailable-text {
  font-size: 14px;        /* reduced from 0.85em */
  color: #999;
}

/* Icons */
.tct-star-icon {
  width: 16px;
  height: 16px;
  margin-right: 4px;
  vertical-align: middle;
}

.tct-unavailable-icon {
  width: 36px;
  height: 36px;
  opacity: 0.8;
  margin-top: 0.3em;
}

/* Responsive Design */
@media (max-width: 900px) {
  .tct-item {
    flex: 0 0 80%;
    max-width: 80%;
  }
}

@media (max-width: 600px) {
  .tct-comparison-scroll-wrapper {
    padding-left: 1em;
    padding-right: 1em;
  }

  .tct-name {
    -webkit-line-clamp: 3;
    line-clamp: 3;
  }

  .tct-item {
    flex: 0 0 80%;
    max-width: 80%;
    margin-right: 1em;
  }

  .tct-comparison-table {
    gap: 1em;
  }
}

/* ────────── Single Product Card Styles (Revised) ────────── */

/* Container for one product card */
.tct-single-card {
  display: flex;
  flex-wrap: wrap;
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
  overflow: hidden;
  margin: 2em 0;
  text-align: left;
}

/* LEFT COLUMN: Image (40% width on desktop) */
.tct-card-left {
  flex: 0 0 40%;
  max-width: 40%;
  overflow: hidden;
  position: relative;
}

.tct-card-left .tct-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* RIGHT COLUMN: All text/content */
.tct-card-right {
  flex: 1;
  padding: 1.2em 1.5em;
  display: flex;
  flex-direction: column;
}

/* A) Header Row: Title + Price */
.tct-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.4em;
}

.tct-single-card .tct-card-header h3.tct-card-title {
  font-size: 16px;
  font-weight: 600;
  line-height: 1.3;
}

.tct-card-title a {
  color: #333;
  text-decoration: none;
}

.tct-card-price {
  font-size: 18px;        /* reduced from 1.4em */
  font-weight: 700;
  color: #ff5722;
}

/* B) Rating Row (under title) */
.tct-card-rating-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6em;
  align-items: center;
  font-size: 14px;        /* reduced from 0.95em */
  color: #555;
  margin-bottom: 0.6em;
}

.tct-rating-group {
  display: inline-flex;
  align-items: center;
  gap: 0.3em;
  white-space: nowrap;
  flex-shrink: 0;
}

.tct-card-rating-text {
  white-space: nowrap;
}

.tct-inline-status-group {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0.6em;
}

.tct-status-inline {
  color: #5327ec;
  font-weight: 600;
  font-size: 14px;        /* ensure 14px */
}

/* C) Duration + Language Row */
.tct-card-meta-row {
  display: flex;
  align-items: center;
  font-size: 14px;        /* reduced from 0.9em */
  color: #555;
  margin-bottom: 0.8em;
}

.tct-card-duration,
.tct-card-language {
  display: inline-flex;
  align-items: center;
  margin-right: 1.2em;
  font-size: 14px;        /* ensure 14px */
}

.tct-card-duration .tct-icon,
.tct-card-language .tct-icon {
  width: 16px;
  height: 16px;
  margin-right: 0.3em;
}

/* D) Tabs: “What’s included” + “Summary” */
.tct-card-tabs {
  display: flex;
  border-bottom: 2px solid #e0e0e0;
  margin-bottom: 0.8em;
}

.tct-card-tabs .tct-tab {
  padding: 0.4em 0.8em;
  font-size: 14px;        /* reduced from 0.9em */
  color: #555;
  cursor: pointer;
  margin-right: 1.2em;
  border-bottom: 2px solid transparent;
}

.tct-card-tabs .tct-tab.active {
  color: #ff5722;
  border-bottom: 2px solid #ff5722;
}

/* E) Inclusion List (scrollable if tall) */
/* ─── Remove default bullets from the “What’s included” list ─── */
.tct-card-inclusions {
  flex: 1;
  overflow-y: auto;
  margin-bottom: 0.8em;
}

.tct-content-inclusions ul {
  list-style: none;
  list-style-type: none;
  padding-left: 0;
  margin-left: 0;
}

.tct-card-inclusions ul {
  list-style-type: none;
  padding-left: 0;
  margin: 0;
}

.tct-card-inclusions li {
  font-size: 14px;        /* reduced from 0.9em */
  color: #333;
  line-height: 1.4;
  margin-bottom: 0.3em;
  display: flex;
  align-items: center;
}

.tct-card-inclusions li.tct-yes::before {
  content: "✔ ";
  color: green;
  font-weight: bold;
  margin-right: 0.3em;
}

.tct-card-inclusions li.tct-no::before {
  content: "✘ ";
  color: red;
  font-weight: bold;
  margin-right: 0.3em;
}

.tct-card-inclusions li.tct-none {
  color: #999;
  font-style: italic;
  margin-left: 1.7em; /* align text when no icon */
}

/* F) Instant / Free Cancellation Status Row */
.tct-card-status-row {
  display: flex;
  flex-wrap: wrap;
  font-size: 14px;        /* reduced from 0.9em */
  color: #555;
  margin-bottom: 1em;
}

.tct-card-status-item {
  margin-right: 2em;
  display: flex;
  align-items: center;
  font-size: 14px;        /* ensure 14px */
}

.tct-card-status-item .tct-yes::before {
  content: "✔ ";
  color: green;
  font-weight: bold;
  margin-right: 0.3em;
}

.tct-card-status-item .tct-no::before {
  content: "✘ ";
  color: red;
  font-weight: bold;
  margin-right: 0.3em;
}

/* G) Footer: Book Now Button */
.tct-card-footer {
  text-align: right;
  margin-top: auto;
}

.tct-book-btn {
  display: inline-block;
  padding: 0.6em 1.4em;
  background: #ff5722;
  color: #fff;
  font-weight: 600;
  font-size: 14px;        /* reduced from inherit */
  text-decoration: none;
  border-radius: 6px;
  transition: background 0.3s;
}

.tct-book-btn:hover {
  background: #e64a19 !important;
  color: #fcf406 !important;
}

/* ────────── Responsive Adjustments ────────── */
@media (max-width: 900px) {
  .tct-card-left {
    flex: 0 0 100%;
    max-width: 100%;
    height: 220px;
  }
  .tct-card-left .tct-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
  .tct-card-right {
    flex: 0 0 100%;
    max-width: 100%;
    padding: 1em;
  }
}

/* ─── Tab Content Spacing & Transition ─── */
.tct-tab-content {
  margin-bottom: 0.8em;    /* Give some space below the tabs */
  transition: opacity 0.2s ease-in-out;
}

/* When JavaScript sets display: none or display: block, opacity can animate */
.tct-content-inclusions[style*="display: none"],
.tct-content-summary[style*="display: none"] {
  opacity: 0;
}

.tct-content-inclusions:not([style*="display: none"]),
.tct-content-summary:not([style*="display: none"]) {
  opacity: 1;
}