/* TF Tour Enhanced Cards v4 — Clean, Professional */

/* ─── Variables ─── */
:root {
  --tfte-accent:    #E67E22;
  --tfte-accent-dk: #c96b10;
  --tfte-gold:      #f0a500;
  --tfte-text:      #1c1c2e;
  --tfte-sub:       #6b6b80;
  --tfte-muted:     #a0a0b8;
  --tfte-border:    #eaeaf2;
  --tfte-bg:        #ffffff;
  --tfte-bg2:       #f8f8fc;
  --tfte-pill-bg:   #f2f2f8;
  --tfte-radius:    16px;
  --tfte-ease:      0.25s cubic-bezier(.4,0,.2,1);
}

/* ─── Section ─── */
.tfte-section { padding: 8px 0 48px; width: 100%; }

.tfte-section-title {
  text-align: center;
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800;
  color: var(--tfte-text);
  margin: 0 0 36px;
  letter-spacing: -0.025em;
  line-height: 1.2;
}
.tfte-section-title::after {
  content: '';
  display: block;
  width: 48px; height: 3px;
  background: var(--tfte-accent);
  border-radius: 2px;
  margin: 10px auto 0;
}

/* ─── Grid ─── */
.tfte-grid {
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(3, 1fr); /* default fallback */
}

/* ─── Card ─── */
.tfte-card {
  background: var(--tfte-bg);
  border-radius: var(--tfte-radius);
  border: 1px solid var(--tfte-border);
  box-shadow: 0 1px 8px rgba(0,0,0,0.05), 0 4px 16px rgba(0,0,0,0.04);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform var(--tfte-ease), box-shadow var(--tfte-ease);
}
.tfte-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 32px rgba(0,0,0,0.12), 0 2px 8px rgba(0,0,0,0.06);
}

/* ─── Thumbnail ─── */
.tfte-thumb {
  display: block;
  position: relative;
  width: 100%;
  padding-top: 62%;
  overflow: hidden;
  background: #eaeaf2;
  text-decoration: none;
  flex-shrink: 0;
}
.tfte-thumb img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.5s cubic-bezier(.4,0,.2,1);
}
.tfte-card:hover .tfte-thumb img { transform: scale(1.07); }

.tfte-thumb__placeholder {
  position: absolute; inset: 0;
}
.tfte-thumb__placeholder svg { width: 100%; height: 100%; }

/* Overlays on image */
.tfte-thumb__overlays {
  position: absolute;
  top: 12px; left: 12px; right: 12px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.tfte-badge {
  font-size: 10.5px; font-weight: 700;
  padding: 4px 10px;
  border-radius: 30px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}
.tfte-badge--cat {
  background: var(--tfte-accent);
  color: #fff;
  box-shadow: 0 2px 8px rgba(230,126,34,0.35);
}

.tfte-rating-pill {
  display: flex; align-items: center; gap: 4px;
  background: #fff;
  color: var(--tfte-text);
  font-size: 12.5px; font-weight: 800;
  padding: 5px 10px;
  border-radius: 30px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.15);
  line-height: 1;
}
.tfte-rating-pill svg { color: var(--tfte-gold); fill: var(--tfte-gold); }

.tfte-dur-badge {
  position: absolute;
  bottom: 12px; left: 12px;
  background: rgba(10,10,20,0.62);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #fff;
  font-size: 11px; font-weight: 700;
  padding: 5px 12px 5px 9px;
  border-radius: 30px;
  display: flex; align-items: center; gap: 5px;
}

/* ─── Card Body ─── */
.tfte-body {
  padding: 16px 18px 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 0;
}

/* Stars row */
.tfte-stars-row {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 8px;
  flex-wrap: wrap;
}
.tfte-stars { display: flex; gap: 1px; }
.tfte-star { font-size: 14px; line-height: 1; }
.tfte-star--on   { color: var(--tfte-gold); }
.tfte-star--half { color: var(--tfte-gold); opacity: 0.5; }
.tfte-star--off  { color: #dddde8; }

.tfte-avg {
  font-size: 13px; font-weight: 800;
  color: var(--tfte-text);
}
.tfte-rev-count {
  font-size: 12px;
  color: var(--tfte-sub);
}

/* Location */
.tfte-location {
  display: flex; align-items: flex-start; gap: 4px;
  font-size: 12px; color: var(--tfte-sub);
  margin-bottom: 7px; line-height: 1.4;
}
.tfte-location svg { color: var(--tfte-accent); flex-shrink: 0; margin-top: 1px; }

/* Title */
.tfte-title {
  font-size: 0.97rem; font-weight: 700;
  line-height: 1.35;
  margin: 0 0 12px;
  color: var(--tfte-text);
}
.tfte-title a {
  color: inherit; text-decoration: none;
  transition: color var(--tfte-ease);
}
.tfte-title a:hover { color: var(--tfte-accent); }

/* Info pills */
.tfte-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 14px;
}
.tfte-pill {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 11px; font-weight: 600;
  color: var(--tfte-sub);
  background: var(--tfte-pill-bg);
  border: 1px solid var(--tfte-border);
  padding: 4px 9px;
  border-radius: 20px;
  line-height: 1;
  white-space: nowrap;
}
.tfte-pill svg { color: var(--tfte-accent); flex-shrink: 0; }
.tfte-pill--diff { font-weight: 700; }

/* Divider */
.tfte-divider {
  height: 1px;
  background: var(--tfte-border);
  margin-bottom: 14px;
  margin-top: auto; /* pushes footer to bottom */
}

/* Footer */
.tfte-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.tfte-price-wrap {
  display: flex; flex-direction: column;
  line-height: 1.2;
}
.tfte-from {
  font-size: 10px; font-weight: 600;
  color: var(--tfte-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.tfte-price {
  font-size: 1.05rem; font-weight: 800;
  color: var(--tfte-accent);
  letter-spacing: -0.01em;
}
.tfte-price-na {
  font-size: 12px; color: var(--tfte-muted);
  font-style: italic;
}

.tfte-btn {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--tfte-accent);
  color: #fff !important;
  text-decoration: none;
  padding: 10px 18px;
  border-radius: 30px;
  font-size: 12.5px; font-weight: 700;
  letter-spacing: 0.01em;
  white-space: nowrap;
  border: 2px solid var(--tfte-accent);
  transition: background var(--tfte-ease), border-color var(--tfte-ease), transform var(--tfte-ease);
  line-height: 1;
}
.tfte-btn:hover {
  background: var(--tfte-accent-dk);
  border-color: var(--tfte-accent-dk);
}
.tfte-btn svg { transition: transform var(--tfte-ease); flex-shrink: 0; }
.tfte-btn:hover svg { transform: translateX(3px); }

/* ─── Mobile tweaks ─── */
@media (max-width: 600px) {
  .tfte-grid { gap: 12px; }
  .tfte-body { padding: 12px 13px 14px; }
  .tfte-title { font-size: 0.82rem; }
  .tfte-btn { padding: 8px 13px; font-size: 11.5px; }
  .tfte-pill { font-size: 10px; padding: 3px 8px; }
  .tfte-price { font-size: 0.95rem; }
  .tfte-dur-badge { font-size: 10px; padding: 4px 9px 4px 7px; }
  .tfte-rating-pill { font-size: 11.5px; padding: 4px 8px; }
}
