/* =====================================================
   TOUR CARD — uniform, price-led card used by every grid
   ===================================================== */

.tc-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 26px;
    align-items: stretch;   /* every card in a row gets the same height */
}

.tc {
    display: flex;
    flex-direction: column;
    height: 100%;            /* fill the stretched grid cell */
    background: #fff;
    border: 1px solid #e8ecf3;
    border-radius: 18px;
    overflow: hidden;
    transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
.tc:hover {
    transform: translateY(-4px);
    border-color: #dbe3ee;
    box-shadow: 0 22px 44px -22px rgba(15, 23, 42, .28);
}

/* ---------- media ---------- */
.tc__media {
    position: relative;
    display: block;
    aspect-ratio: 16 / 10;   /* fixes image height across all cards */
    overflow: hidden;
    background: #eef2f7;
}
.tc__media img {
    width: 100%; height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .5s ease;
}
.tc:hover .tc__media img { transform: scale(1.06); }

.tc__badge, .tc__off {
    position: absolute; top: 12px;
    font-size: .72rem; font-weight: 800; letter-spacing: .03em;
    padding: 6px 11px; border-radius: 999px;
}
.tc__badge { left: 12px;  background: #0369A1; color: #fff; }
.tc__off   { right: 12px; background: #fff;    color: #15803d; box-shadow: 0 2px 10px rgba(0,0,0,.14); }

/* ---------- body ---------- */
.tc__body {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;          /* body grows so the price/CTA sit flush at the bottom */
    padding: 16px 18px 18px;
    gap: 10px;
}

.tc__top {
    display: flex; align-items: center; justify-content: space-between; gap: 10px;
}
.tc__dur {
    font-size: .86rem; color: #64748b; font-weight: 500;
}
.tc__rating {
    display: inline-flex; align-items: center; gap: 4px;
    font-size: .88rem; color: #15803d; white-space: nowrap;
}
.tc__rating i      { font-size: .82rem; }
.tc__rating strong { font-weight: 800; }
.tc__rating small  { color: #94a3b8; font-weight: 500; }

.tc__title {
    margin: 0;
    font-size: 1.06rem;
    line-height: 1.35;
    font-weight: 700;
    /* Clamp to two lines so a long name can't make one card taller */
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.7em;
}
.tc__title a { color: #0f172a; text-decoration: none; }
.tc__title a:hover { color: #0EA5E9; }

.tc__meta {
    display: flex; flex-wrap: wrap; align-items: center; gap: 7px;
    background: #EFF6FF;
    border-radius: 10px;
    padding: 9px 12px;
    font-size: .84rem; color: #0369A1; font-weight: 600;
}
.tc__dot { color: #93C5FD; }

/* ---------- price ---------- */
.tc__price { margin-top: auto; padding-top: 4px; }   /* the alignment anchor */

.tc__price-row {
    display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
    margin-bottom: 4px;
}
.tc__price-row del { color: #94a3b8; font-size: .92rem; }
.tc__save {
    background: #e8f7ee; color: #15803d;
    font-size: .74rem; font-weight: 800; letter-spacing: .02em;
    padding: 4px 9px; border-radius: 4px;
}
.tc__now {
    font-size: 1.35rem; font-weight: 800; color: #0f172a; letter-spacing: -.02em;
}
.tc__now small { font-size: .8rem; font-weight: 600; color: #64748b; margin-left: 3px; }

/* ---------- actions ---------- */
.tc__actions { display: flex; gap: 10px; margin-top: 12px; }

.tc__call {
    flex: 0 0 auto;
    width: 50px; display: grid; place-items: center;
    border: 1.5px solid #0EA5E9; border-radius: 12px;
    color: #0EA5E9; font-size: 1rem; text-decoration: none;
    transition: background .18s, color .18s;
}
.tc__call:hover { background: #0EA5E9; color: #fff; }

.tc__cta {
    flex: 1 1 auto;
    display: inline-flex; align-items: center; justify-content: center;
    padding: 14px 18px; border-radius: 12px;
    background: #0EA5E9; color: #fff;
    font-size: .98rem; font-weight: 700; text-decoration: none;
    transition: background .18s, transform .18s;
}
.tc__cta:hover { background: #0369A1; color: #fff; transform: translateY(-1px); }

/* ---------- responsive ---------- */
@media (max-width: 640px) {
    .tc-grid { grid-template-columns: 1fr; gap: 18px; }
    .tc__title { font-size: 1rem; }
    .tc__now   { font-size: 1.25rem; }
    .tc__cta   { padding: 13px 16px; }
}

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

/* ---------- departure strip (departing-soon section) ---------- */
.tc__dep {
    display: flex; align-items: center; justify-content: space-between;
    gap: 10px; flex-wrap: wrap;
    background: #F1F5F9; border-radius: 10px;
    padding: 9px 12px; font-size: .83rem; font-weight: 600; color: #334155;
}
.tc__dep-when { display: inline-flex; align-items: center; gap: 6px; }
.tc__dep-when i { color: #0EA5E9; }
.tc__dep-when strong { color: #0f172a; }
.tc__dep-seats { color: #64748b; font-weight: 600; }

/* Tight departure or low stock reads as urgency, not decoration */
.tc__dep--urgent {
    background: #FFF7ED; color: #9A3412;
}
.tc__dep--urgent .tc__dep-when i { color: #EA580C; }
.tc__dep--urgent .tc__dep-when strong,
.tc__dep--urgent .tc__dep-seats { color: #C2410C; }
