/* ============================================================
   TripCabinet — Homepage Package Showcase Cards
   File: tc-home-packages.css
   Prefix: tc-hp-  (standalone, non-conflicting)
   ============================================================ */

/* --- Grid --- */
.tc-hp-grid [class*="col-"] {
    display: flex;
}

/* --- Card Container --- */
.tc-hp-card {
    display: flex;
    flex-direction: column;
    width: 100%;
    background: #ffffff;
    border-radius: 18px;
    overflow: hidden;
    box-shadow:
        0 1px 2px rgba(20, 16, 45, 0.03),
        0 4px 16px rgba(20, 16, 45, 0.05);
    transition:
        transform 0.45s cubic-bezier(0.23, 1, 0.32, 1),
        box-shadow 0.45s cubic-bezier(0.23, 1, 0.32, 1);
    position: relative;
}

.tc-hp-card:hover {
    transform: translateY(-7px);
    box-shadow:
        0 4px 8px rgba(20, 16, 45, 0.05),
        0 16px 40px rgba(77, 64, 202, 0.12);
}

/* --- Image Area --- */
.tc-hp-card__media {
    position: relative;
    aspect-ratio: 4 / 3;
    overflow: hidden;
}

.tc-hp-card__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s cubic-bezier(0.23, 1, 0.32, 1);
}

.tc-hp-card:hover .tc-hp-card__img {
    transform: scale(1.06);
}

/* Soft bottom gradient on image for depth */
.tc-hp-card__media::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 40%;
    background: linear-gradient(
        to top,
        rgba(10, 8, 24, 0.42) 0%,
        rgba(10, 8, 24, 0.08) 55%,
        transparent 100%
    );
    pointer-events: none;
    z-index: 1;
}

/* --- Badges (glassmorphic pills) --- */
.tc-hp-card__badges {
    position: absolute;
    top: 12px;
    left: 12px;
    right: 12px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    z-index: 3;
    pointer-events: none;
}

.tc-hp-card__badges-left,
.tc-hp-card__badges-right {
    display: flex;
    gap: 6px;
}

.tc-hp-card__badge {
    display: inline-block;
    padding: 5px 13px;
    border-radius: 50px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    line-height: 1.3;
    pointer-events: auto;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.18);
}

.tc-hp-card__badge--featured {
    background: rgba(77, 64, 202, 0.82);
    color: #fff;
}

.tc-hp-card__badge--discount {
    background: rgba(220, 53, 69, 0.85);
    color: #fff;
}

/* --- Image Action Buttons (slide up on hover) --- */
.tc-hp-card__actions {
    position: absolute;
    bottom: 14px;
    right: 14px;
    display: flex;
    gap: 8px;
    z-index: 3;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.4s ease, transform 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

.tc-hp-card:hover .tc-hp-card__actions {
    opacity: 1;
    transform: translateY(0);
}

.tc-hp-card__action-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.22);
    color: #fff;
    font-size: 14px;
    text-decoration: none;
    transition: background 0.25s ease, transform 0.25s ease, border-color 0.25s ease;
}

.tc-hp-card__action-btn:hover {
    background: rgba(255, 255, 255, 0.35);
    border-color: rgba(255, 255, 255, 0.45);
    color: #fff;
    transform: scale(1.12);
}

/* --- Card Body --- */
.tc-hp-card__body {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 16px 18px 18px;
}

/* Location — uppercase tracking */
.tc-hp-card__loc {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 11px;
    font-weight: 700;
    color: var(--theme-color, #4D40CA);
    text-transform: uppercase;
    letter-spacing: 1.2px;
    margin-bottom: 8px;
}

.tc-hp-card__loc i {
    font-size: 10px;
    opacity: 0.7;
}

/* Title */
.tc-hp-card__name {
    font-size: 15px;
    font-weight: 700;
    line-height: 1.45;
    margin: 0 0 10px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    color: var(--header, #151415);
}

.tc-hp-card__name a {
    color: inherit;
    text-decoration: none;
    transition: color 0.25s ease;
}

.tc-hp-card__name a:hover {
    color: var(--theme-color, #4D40CA);
}

/* Meta Details — small tinted pills */
.tc-hp-card__details {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    margin-bottom: 0;
}

.tc-hp-card__detail {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 11.5px;
    font-weight: 500;
    color: #5f6b7a;
    padding: 3px 9px;
    background: #f4f3fa;
    border-radius: 6px;
    white-space: nowrap;
}

.tc-hp-card__detail i {
    font-size: 10px;
    color: #a0a8b4;
}

.tc-hp-card__detail--rating {
    background: #fef8ee;
    color: #8b6914;
}

.tc-hp-card__detail--rating i {
    color: #f59e0b;
}

.tc-hp-card__detail--rating small {
    color: #c4a96b;
    font-size: 10px;
    font-weight: 400;
}

/* Separator — gradient fade edges */
.tc-hp-card__sep {
    height: 1px;
    background: linear-gradient(to right, transparent 0%, #e5e3f0 25%, #e5e3f0 75%, transparent 100%);
    margin: 14px 0;
    flex-shrink: 0;
}

/* --- Footer (price + CTA) --- */
.tc-hp-card__foot {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 8px;
    margin-top: auto;
}

/* Pricing */
.tc-hp-card__pricing {
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.tc-hp-card__amount-row {
    display: flex;
    align-items: baseline;
    gap: 6px;
    flex-wrap: wrap;
}

.tc-hp-card__amount {
    font-size: 18px;
    font-weight: 800;
    color: var(--header, #151415);
    line-height: 1.2;
    letter-spacing: -0.3px;
}

.tc-hp-card__was {
    font-size: 12px;
    font-weight: 500;
    color: #c0bfca;
    text-decoration: line-through;
}

.tc-hp-card__unit {
    font-size: 11px;
    font-weight: 500;
    color: #9ca3af;
}

/* CTA — outlined pill that fills on hover */
.tc-hp-card__cta {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 8px 16px;
    border-radius: 50px;
    background: transparent;
    border: 1.5px solid var(--theme-color, #4D40CA);
    color: var(--theme-color, #4D40CA);
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
    transition:
        background 0.3s cubic-bezier(0.23, 1, 0.32, 1),
        color 0.3s ease,
        box-shadow 0.3s ease,
        transform 0.3s ease;
    flex-shrink: 0;
}

.tc-hp-card__cta:hover {
    background: var(--theme-color, #4D40CA);
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(77, 64, 202, 0.28);
}

.tc-hp-card__cta i {
    font-size: 10px;
    transition: transform 0.35s cubic-bezier(0.23, 1, 0.32, 1);
}

.tc-hp-card__cta:hover i {
    transform: translateX(3px);
}

/* ============================================================
   Responsive
   ============================================================ */

/* XL screens 1200-1399 — 4 cols, narrower cards */
@media (max-width: 1399px) {
    .tc-hp-card__name {
        font-size: 14px;
    }

    .tc-hp-card__amount {
        font-size: 16px;
    }

    .tc-hp-card__cta {
        padding: 7px 13px;
        font-size: 11.5px;
    }

    .tc-hp-card__detail {
        font-size: 10.5px;
        padding: 2px 7px;
    }

    .tc-hp-card__body {
        padding: 14px 16px 16px;
    }
}

/* LG screens 992-1199 — 3 cols */
@media (max-width: 1199px) {
    .tc-hp-card__body {
        padding: 14px 16px 16px;
    }

    .tc-hp-card__loc {
        font-size: 10.5px;
    }

    .tc-hp-card__name {
        font-size: 14.5px;
    }

    .tc-hp-card__amount {
        font-size: 17px;
    }
}

/* Tablets 768-991 — 2 cols */
@media (max-width: 991px) {
    .tc-hp-card__foot {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .tc-hp-card__cta {
        width: 100%;
        justify-content: center;
        padding: 10px 18px;
        font-size: 13px;
    }
}

/* Large phones 576-767 — single col */
@media (max-width: 767px) {
    .tc-hp-card__media {
        aspect-ratio: 16 / 10;
    }

    .tc-hp-card__name {
        font-size: 16px;
    }

    .tc-hp-card__amount {
        font-size: 20px;
    }

    /* Always show action buttons on touch */
    .tc-hp-card__actions {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Phones <576 */
@media (max-width: 575px) {
    .tc-hp-card {
        border-radius: 14px;
    }

    .tc-hp-card__body {
        padding: 14px;
    }

    .tc-hp-card__foot {
        flex-direction: row;
        align-items: flex-end;
    }

    .tc-hp-card__cta {
        width: auto;
        padding: 8px 16px;
    }
}
