/* Travespert destination archive (/destination/{slug}/). Uses tokens.css. */
body.tv-dest-page { overflow-x: hidden; }
.tv-dst { color: var(--tv-body); }
.tv-dst-wrap { max-width: calc(1280px + 2 * var(--tv-gutter)); margin: 0 auto; padding: 0 var(--tv-gutter); box-sizing: border-box; }
.tv-dst-sec { padding: clamp(28px, 4vw, 44px) 0 clamp(52px, 7vw, 88px); }

/* Title band - same as Group Trips / listing pages */
.tv-dst-hero { position: relative; overflow: hidden; isolation: isolate; padding: clamp(44px, 6vw, 76px) 0 clamp(36px, 5vw, 56px); }
.tv-dst-hero::before { content: ''; position: absolute; inset: 0; z-index: -2; background: linear-gradient(180deg, var(--tv-primary-tint) 0%, #fffaf0 100%); }
.tv-dst-hero::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 110px; z-index: -1; pointer-events: none; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 110' preserveAspectRatio='none'%3E%3Cpath d='M0 110 L140 50 250 85 400 22 520 80 660 34 800 92 940 44 1080 76 1200 38 1200 110 Z' fill='%23e59a1a' opacity='.10'/%3E%3C/svg%3E") bottom / 100% 110px no-repeat; }
.tv-dst-eyebrow { display: inline-flex; align-items: center; gap: 10px; font-size: var(--tv-fs-sm); font-weight: 700; letter-spacing: 1.4px; text-transform: uppercase; color: var(--tv-primary-hover); margin: 0 0 12px; }
.tv-dst-eyebrow::before { content: ''; width: 22px; height: 3px; border-radius: 3px; background: var(--tv-primary); }
.tv-dst-h1 { font-size: var(--tv-fs-h1); font-weight: 800; color: var(--tv-ink); letter-spacing: var(--tv-ls-display); line-height: var(--tv-lh-tight); margin: 0 0 16px; max-width: 20ch; }
.tv-dst-lead { font-size: var(--tv-fs-lead); line-height: var(--tv-lh-body); margin: 0 0 18px; max-width: 62ch; }
.tv-dst-points { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.tv-dst-points li { display: inline-flex; align-items: center; gap: 8px; background: #fff; border: 1px solid #f3e2b8; border-radius: 999px; padding: 7px 14px; font-size: 14px; font-weight: 600; color: var(--tv-ink); }
.tv-dst-points li::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--tv-primary); }

/* Type tabs */
.tv-dst-bar { display: flex; flex-wrap: nowrap; gap: 8px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; margin: 0 0 clamp(20px, 3vw, 28px); }
.tv-dst-bar::-webkit-scrollbar { display: none; }
.tv-dst-bar .tv-theme-pill { flex: 0 0 auto; white-space: nowrap; }
.tv-dst-n { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px; margin-left: 4px; border-radius: 999px; font-size: 11.5px; font-weight: 800; background: rgba(0, 0, 0, .07); }
.tv-dst-bar .is-active .tv-dst-n { background: rgba(255, 255, 255, .55); }

/* Equal-height cards */
.tv-dst-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; align-items: stretch; }
.tv-dst-card { display: flex; flex-direction: column; background: var(--tv-canvas); border: 1px solid var(--tv-hairline-soft); border-radius: var(--tv-radius-lg); overflow: hidden; box-shadow: var(--tv-shadow-card); transition: transform var(--tv-transition), box-shadow var(--tv-transition); }
.tv-dst-card[hidden] { display: none; }
.tv-dst-card:hover { transform: translateY(-3px); box-shadow: var(--tv-shadow-float); }
.tv-dst-card__media { position: relative; display: block; aspect-ratio: 16 / 10; background: var(--tv-surface); overflow: hidden; }
.tv-dst-card__img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s ease; }
.tv-dst-card:hover .tv-dst-card__img { transform: scale(1.04); }
.tv-dst-card__type, .tv-dst-card__gt { position: absolute; top: 14px; font-size: 12.5px; font-weight: 800; border-radius: 999px; padding: 6px 12px; }
.tv-dst-card__type { left: 14px; background: rgba(255, 255, 255, .95); color: var(--tv-ink); }
.tv-dst-card__gt { right: 14px; background: var(--tv-primary); color: var(--tv-ink); }
.tv-dst-card__body { display: flex; flex-direction: column; gap: 8px; padding: 18px 20px 20px; flex: 1; }
.tv-dst-card__title { font-size: 18px; font-weight: 800; line-height: 1.3; margin: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.6em; }
.tv-dst-card__title a { color: var(--tv-ink); text-decoration: none; }
.tv-dst-card__title a:hover { color: var(--tv-primary-hover); }
.tv-dst-card__meta { margin: 0; font-size: 13.5px; font-weight: 600; color: var(--tv-primary-hover); }
.tv-dst-card__txt { margin: 0; font-size: 14.5px; line-height: 1.6; color: var(--tv-body); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; min-height: 4.8em; }
.tv-dst-card__foot { margin-top: auto; padding-top: 14px; border-top: 1px solid var(--tv-hairline-soft); display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.tv-dst-card__price { font-size: 13.5px; color: var(--tv-muted); }
.tv-dst-card__price b { font-size: 19px; color: var(--tv-ink); }
.tv-dst-none { text-align: center; padding: 24px; color: var(--tv-muted); }

/* Other states */
.tv-dst-others { margin-top: clamp(40px, 6vw, 64px); }
.tv-dst-others h2 { font-size: clamp(20px, 2.2vw, 26px); font-weight: 800; color: var(--tv-ink); margin: 0 0 16px; }
.tv-dst-others__row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.tv-dst-other { display: flex; align-items: center; gap: 10px; padding: 18px 20px; border-radius: 16px; background: #fffaf0; border: 1px solid #f3e2b8; color: var(--tv-ink); text-decoration: none; transition: transform var(--tv-transition), border-color var(--tv-transition); }
.tv-dst-other:hover { transform: translateY(-2px); border-color: var(--tv-primary); text-decoration: none; }
.tv-dst-other b { font-size: 17px; }
.tv-dst-other span { flex: 1; font-size: 13.5px; color: var(--tv-muted); }
.tv-dst-other svg { width: 18px; height: 18px; color: var(--tv-primary-hover); transition: transform var(--tv-transition); }
.tv-dst-other:hover svg { transform: translateX(3px); }

@media (max-width: 1024px) { .tv-dst-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 680px) {
  .tv-dst-grid, .tv-dst-others__row { grid-template-columns: 1fr; }
  .tv-dst-card__foot .tv-btn { width: 100%; justify-content: center; }
  .tv-dst-card__txt, .tv-dst-card__title { min-height: 0; }
}
@media (prefers-reduced-motion: reduce) { .tv-dst-card, .tv-dst-card__img, .tv-dst-other { transition: none; } }

/* Destination pages use the 1280 listing width: widen header + footer to match (as for /tours/ etc.) */
body.tv-dest-page #brx-header .tv-sitehead__in, body.tv-dest-page #brx-footer .tv-sitefoot__grid, body.tv-dest-page #brx-footer .tv-sitefoot__barin, body.tv-dest-page #brx-footer .tv-foot-banner { max-width: calc(1280px + 2 * var(--tv-gutter)); }
