/* ============================================================
   PREMIUM TRIP CARDS
   ============================================================ */

/* ---- Grid ---- */
.trip-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    align-items: stretch;
}

/* ---- Card Shell ---- */
.tc-card {
    position: relative;
    display: flex;
    flex-direction: column;
    background: #ffffff;
    border-radius: 22px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04), 0 1px 3px rgba(0, 0, 0, 0.02);
    transition: transform 300ms ease, box-shadow 300ms ease;
    cursor: pointer;
    border: none;
    text-decoration: none;
    color: inherit;
    height: 100%;
}

.tc-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12), 0 4px 12px rgba(0, 0, 0, 0.06);
}

/* ---- Image Hero Section (16:10) ---- */
.tc-media {
    position: relative;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    flex-shrink: 0;
    background: #e8eef3;
}

.tc-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 300ms ease;
}

.tc-card:hover .tc-img {
    transform: scale(1.05);
}

/* Dark gradient overlay from bottom (60%) */
.tc-img-veil {
    position: absolute;
    left: 0; right: 0; bottom: 0;
    height: 60%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent);
    pointer-events: none;
}

/* ---- Glassmorphism Countdown Badge (top-right) ---- */
.tc-time-badge {
    position: absolute;
    top: 16px;
    right: 16px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 99px;
    background: #ffffff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    font-size: 0.8rem;
    font-weight: 700;
    color: #1e293b;
    z-index: 2;
}

.tc-time-badge i {
    font-size: 0.85rem;
    color: #0f766e;
}

/* ---- Card Body ---- */
.tc-body {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 24px;
    background: #ffffff;
    gap: 12px;
}

/* ---- Trip Title ---- */
.tc-title {
    margin: 0;
    font-size: 22px;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ---- Description (2 lines max) ---- */
.tc-desc {
    margin: 0;
    font-size: 14px;
    color: #64748b;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ---- Trip Information Row ---- */
.tc-meta-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 16px;
    margin-top: auto;
}

.tc-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 600;
    color: #475569;
}

.tc-meta-item i {
    font-size: 14px;
    color: #94a3b8;
}

.tc-avail i, .tc-avail {
    color: #16a34a !important;
}

.tc-full i, .tc-full {
    color: #dc2626 !important;
}

/* ---- Divider ---- */
.tc-divider {
    height: 1px;
    background: #f1f5f9;
    margin: 4px 0;
}

/* ---- Footer: price + CTA ---- */
.tc-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Price block */
.tc-price-block {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.tc-price-label {
    font-size: 11px;
    font-weight: 700;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.tc-price-amount {
    font-size: 18px;
    font-weight: 800;
    color: #0f766e; /* Green accent */
}

/* CTA Button */
.tc-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: #f8fafc;
    color: #0f766e;
    border-radius: 12px; /* rounded square */
    text-decoration: none;
    transition: background 300ms ease, color 300ms ease;
}

.tc-btn-icon {
    font-size: 18px;
    transition: transform 300ms ease;
}

.tc-card:hover .tc-btn {
    background: #0f766e;
    color: #ffffff;
}

.tc-card:hover .tc-btn-icon {
    transform: translateX(4px);
}

/* ---- Responsive ---- */
@media (max-width: 991.98px) {
    .trip-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    .tc-body {
        padding: 20px;
    }
    .tc-title {
        font-size: 20px;
    }
}

@media (max-width: 575.98px) {
    .trip-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    .tc-body {
        padding: 16px;
    }
    .tc-title {
        font-size: 18px;
    }
}

/* Reset any aggressive page specific overrides just in case */
.home-page .tc-card, .landing-page .tc-card {
    height: 100% !important;
    border-radius: 22px !important;
}
.home-page .tc-media, .landing-page .tc-media {
    height: auto !important;
    aspect-ratio: 16/10 !important;
}
.home-page .tc-body, .landing-page .tc-body {
    padding: 24px !important;
    gap: 12px !important;
}
@media (max-width: 991.98px) {
    .home-page .tc-body, .landing-page .tc-body {
        padding: 20px !important;
    }
}
@media (max-width: 575.98px) {
    .home-page .tc-body, .landing-page .tc-body {
        padding: 16px !important;
    }
}
