/* Card tour dùng chung: danh sách, trang chủ, tour tương tự. */

.ptc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: var(--pt-s5); }
.ptc-col { margin-bottom: var(--pt-s5); }
.ptc-col > .ptc { height: 100%; }

.ptc { position: relative; display: flex; flex-direction: column; height: 100%; overflow: hidden; background: #fff; border: 1px solid var(--postum-border); border-radius: var(--postum-radius-card); font-family: var(--postum-font); color: var(--postum-text); transition: box-shadow .2s, border-color .2s; }
.ptc:hover, .ptc:focus-within { border-color: #CBD5E1; box-shadow: var(--postum-shadow-md); }
.ptc * { box-sizing: border-box; }
.ptc p { margin: 0; }

.ptc .ptc-media { position: relative; display: block; aspect-ratio: 4 / 3; background: var(--postum-bg-alt); overflow: hidden; }
.ptc .ptc-media img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.ptc:hover .ptc-media img { transform: scale(1.03); }
.ptc .ptc-noimg { display: grid; place-items: center; width: 100%; height: 100%; color: #8BA5BA; }
.ptc .ptc-badge { position: absolute; top: 12px; left: 12px; padding: 6px 10px; border-radius: 999px; background: #fff; color: var(--postum-heading); font: 600 0.75rem/1 var(--postum-font); box-shadow: var(--postum-shadow-sm); }

.ptc .ptc-body { display: flex; flex-direction: column; flex: 1; gap: var(--pt-s2); padding: var(--pt-s4); }
.ptc .ptc-meta { display: flex; flex-wrap: wrap; gap: 4px var(--pt-s3); font-size: 0.8125rem; line-height: 1.4; color: var(--postum-text-muted); }
.ptc .ptc-meta span { display: inline-flex; align-items: center; gap: 6px; }
.ptc .ptc-meta .pts-icon, .ptc .ptc-dep .pts-icon { color: var(--postum-icon); }

.ptc .ptc-title { margin: 0; font: 700 1.0625rem/1.35 var(--postum-font-display); letter-spacing: -0.005em; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ptc .ptc-title a { color: var(--postum-heading); text-decoration: none; }
.ptc .ptc-title a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.ptc .ptc-title a:focus-visible { outline: none; }
.ptc .ptc-title a:focus-visible::after { box-shadow: inset 0 0 0 3px var(--postum-primary); border-radius: var(--postum-radius-card); }

.ptc .ptc-route { font-size: 0.875rem; line-height: 1.5; color: var(--postum-text-muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ptc .ptc-dep { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; font-size: 0.875rem; font-weight: 600; color: var(--postum-text); }
.ptc .ptc-dep .pts-icon { margin-right: -2px; }
.ptc .ptc-dep.is-none { font-weight: 400; color: var(--postum-text-muted); }
.ptc .ptc-more { font-weight: 400; color: var(--postum-text-muted); }

.ptc .ptc-foot { display: flex; align-items: flex-end; justify-content: space-between; gap: var(--pt-s3); margin-top: auto; padding-top: var(--pt-s3); border-top: 1px solid var(--postum-border); }
.ptc .ptc-price { font: 700 1.25rem/1.2 var(--postum-font-display); color: var(--postum-price); white-space: nowrap; }
.ptc .ptc-price span, .ptc .ptc-price small { font: 400 0.8125rem/1.2 var(--postum-font); color: var(--postum-text-muted); }
.ptc .ptc-price small { display: block; margin-top: 2px; }
.ptc .ptc-price--text { font-size: 1rem; }
.ptc .ptc-cta { flex: none; display: inline-flex; align-items: center; min-height: 40px; padding: 0 var(--pt-s3); border: 1px solid #94A3B8; border-radius: var(--postum-radius-btn); color: var(--postum-heading); font: 600 0.875rem/1 var(--postum-font); white-space: nowrap; transition: background-color .15s, color .15s; }
.ptc:hover .ptc-cta { background: var(--postum-accent); border-color: var(--postum-accent); color: var(--postum-on-accent); }

@media (prefers-reduced-motion: reduce) {
    .ptc, .ptc .ptc-media img, .ptc .ptc-cta { transition: none; }
    .ptc:hover .ptc-media img { transform: none; }
}

/* Địa điểm, đánh giá, tóm tắt */
.ptc .ptc-route { display: flex; align-items: flex-start; gap: 6px; }
.ptc .ptc-route .pts-icon { flex: none; margin-top: 3px; color: var(--postum-icon); }
.ptc .ptc-rate { display: flex; align-items: center; gap: 6px; font-size: 0.8125rem; color: var(--postum-text-muted); }
.ptc .ptc-rate .pts-icon { fill: #F5A623; stroke: #F5A623; }
.ptc .ptc-rate b { color: var(--postum-heading); }
.ptc .ptc-blurb { display: none; font-size: 0.875rem; line-height: 1.5; color: var(--postum-text-muted); -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ptc .ptc-badge--holiday { background: var(--postum-accent); color: var(--postum-on-accent); }

/* Nhãn marketing của CRM */
.ptc .ptc-badge--new { background: #0E7A4F; color: #fff; }
.ptc .ptc-badge--hot_tour, .ptc .ptc-badge--season_hot { background: #D9381E; color: #fff; }
.ptc .ptc-badge--offer, .ptc .ptc-badge--promotion { background: var(--postum-accent); color: var(--postum-on-accent); }
.ptc .ptc-badge--last_minute { background: #7A1FA2; color: #fff; }
.ptc .ptc-badge--best_seller { background: var(--postum-brand-navy); color: #fff; }
