/* base styles for Trawey Package Match Finder cba2cdaf */
.tpmf-cba2cdaf-wrapper {
  font-family: inherit;
  width: 100%;
  box-sizing: border-box;
}

.tpmf-cba2cdaf-finder-box {
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
}

.tpmf-cba2cdaf-fb-eyebrow,
.tpmf-cba2cdaf-pk-eyebrow {
  display: block;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.tpmf-cba2cdaf-fb-title,
.tpmf-cba2cdaf-pk-title {
  margin: 0 0 0.5rem 0;
  font-weight: 800;
}

.tpmf-cba2cdaf-fb-desc,
.tpmf-cba2cdaf-pk-desc {
  margin: 0 0 1.5rem 0;
  font-size: 1rem;
  line-height: 1.5;
}

/* Spacer section */
.tpmf-cba2cdaf-divider-gap {
  width: 100%;
}

/* Questions Pills Row */
.tpmf-cba2cdaf-questions-wrapper {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  width: 100%;
  margin-top: 1rem;
}

.tpmf-cba2cdaf-question-row {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.tpmf-cba2cdaf-question-label {
  font-weight: 700;
  font-size: 0.95rem;
}

.tpmf-cba2cdaf-pills-row {
  display: flex;
  flex-wrap: wrap;
}

.tpmf-cba2cdaf-pill {
  cursor: pointer;
  outline: none;
  transition: all 0.25s ease;
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* Status area hint / fallback */
.tpmf-cba2cdaf-status-area {
  margin-top: 1.5rem;
  padding: 10px 15px;
  border-radius: 6px;
  background-color: #FEF9EC;
  border-left: 4px solid #D4A017;
  color: #92600A;
  font-weight: 700;
  font-size: 0.95rem;
  animation: fadeIn_cba2cdaf 0.4s ease;
}

@keyframes fadeIn_cba2cdaf {
  from { opacity: 0; transform: translateY(5px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Package Grid and Cards */
.tpmf-cba2cdaf-pk-intro {
  margin-bottom: 2rem;
}

.tpmf-cba2cdaf-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  width: 100%;
  box-sizing: border-box;
}

@media (max-width: 1024px) {
  .tpmf-cba2cdaf-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 767px) {
  .tpmf-cba2cdaf-grid {
    grid-template-columns: 1fr;
  }
}

.tpmf-cba2cdaf-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  position: relative;
  box-sizing: border-box;
}

/* Image wrapper */
.tpmf-cba2cdaf-card-image-wrapper {
  position: relative;
  width: 100%;
  overflow: hidden;
}

.tpmf-cba2cdaf-card-image {
  width: 100%;
  object-fit: cover;
  display: block;
}

/* Badges inside image */
.tpmf-cba2cdaf-badge-container {
  position: absolute;
  top: 10px;
  left: 10px;
  right: 10px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  pointer-events: none;
  z-index: 2;
}

.tpmf-cba2cdaf-badge-best-match,
.tpmf-cba2cdaf-badge-top-seller {
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 8px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Card Body */
.tpmf-cba2cdaf-card-body {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.tpmf-cba2cdaf-card-tag {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  margin-bottom: 0.5rem;
}

.tpmf-cba2cdaf-card-title {
  margin: 0 0 0.5rem 0;
  font-weight: 700;
}

.tpmf-cba2cdaf-card-title a {
  text-decoration: none;
}

.tpmf-cba2cdaf-card-meta {
  font-size: 0.85rem;
  margin-bottom: 0.75rem;
}

.tpmf-cba2cdaf-card-separator {
  border-top-width: 1px;
  width: 100%;
}

.tpmf-cba2cdaf-card-price {
  font-size: 1.25rem;
  font-weight: 800;
  margin-bottom: 1rem;
}

/* Inclusions */
.tpmf-cba2cdaf-inclusions {
  list-style: none;
  padding: 0;
  margin: 0 0 1.25rem 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.tpmf-cba2cdaf-inc-item {
  display: flex;
  align-items: center;
  gap: 8px;
}

.tpmf-cba2cdaf-inc-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.tpmf-cba2cdaf-best-for {
  font-size: 0.8rem;
  font-weight: 700;
  padding: 6px 10px;
  margin-top: auto;
  display: inline-block;
  align-self: flex-start;
}

/* Footer layout: VERTICALLY STACKED */
.tpmf-cba2cdaf-card-footer {
  padding: 0 1.25rem 1.25rem 1.25rem;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
}

.tpmf-cba2cdaf-btn-book,
.tpmf-cba2cdaf-btn-details {
  text-align: center;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.9rem;
  transition: all 0.25s ease-in-out;
  box-sizing: border-box;
}

/* Book Button Width Controls */
.tpmf-cba2cdaf-book-width-full .tpmf-cba2cdaf-btn-book {
  width: 100%;
  display: block;
}
.tpmf-cba2cdaf-book-width-auto .tpmf-cba2cdaf-btn-book {
  width: auto;
  align-self: flex-start;
  display: inline-block;
}

/* Details Button Width Controls */
.tpmf-cba2cdaf-details-width-full .tpmf-cba2cdaf-btn-details {
  width: 100%;
  display: block;
}
.tpmf-cba2cdaf-details-width-auto .tpmf-cba2cdaf-btn-details {
  width: auto;
  align-self: flex-start;
  display: inline-block;
}
