/* Uniform trip listing cards (trip types and shared .trip-card-grid) */
.trip-card-grid {
    padding: 10px 0 48px;
    background: #f5f9fb;
}
.trip-card-grid > .container > .row > [class*="col-"] {
    display: flex;
}
.trip-card-grid .package {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background: #fff;
    border: 1px solid #dfe8ed;
    border-radius: 12px;
    box-shadow: 0 8px 22px rgba(23, 51, 66, .07);
}
.trip-card-grid .package .package-img {
    position: relative;
    aspect-ratio: 16 / 11;
    overflow: hidden;
    background: #edf4f7;
}
.trip-card-grid .package .package-img-thumb,
.trip-card-grid .package .package-img img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.trip-card-grid .package .package-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 3;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    border-radius: 999px;
    color: #fff;
    font-size: 11px;
    font-weight: 800;
}
.trip-card-grid .package .package-hover {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    padding: 22px;
    background: linear-gradient(180deg, rgba(9, 34, 50, .18), rgba(9, 34, 50, .82));
    opacity: 0;
    text-align: center;
    transition: opacity .24s ease;
}
.trip-card-grid .package:hover .package-hover {
    opacity: 1;
}
.trip-card-grid .package .package-hover__text {
    max-width: 95%;
    margin: 0 !important;
    padding: 0 !important;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.55;
}
.trip-card-grid .package .package-hover__btn {
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    padding: 10px 16px;
    gap: 8px;
    border-radius: 999px;
    background: var(--hh-primary, #1f7f39);
    color: #fff !important;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none !important;
}
.trip-card-grid .package .package-hover__btn:hover {
    background: var(--hh-primary-dark, #176f30);
    color: #fff !important;
}
.trip-card-grid .package .all-down {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 18px;
}
.trip-card-grid .package .package-title {
    min-height: 52px;
    margin: 0 0 14px;
    font-size: 18px;
    font-weight: 800;
    line-height: 1.3;
}
.trip-card-grid .package .package-title a {
    color: #075989;
    text-decoration: none !important;
}
.trip-card-grid .package .package-title a:hover {
    color: var(--hh-primary, #1f7f39);
}
.trip-card-grid .package .package-meta {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}
.trip-card-grid .package .package-meta__item {
    min-width: 0;
    padding: 11px 9px;
    border: 1px solid #e1ebf0;
    border-radius: 8px;
    background: #f6fafc;
    text-align: center;
}
.trip-card-grid .package .package-meta__item i {
    display: block;
    margin-bottom: 6px;
    color: var(--hh-primary, #1f7f39);
    font-size: 15px;
}
.trip-card-grid .package .package-meta__item small {
    display: block;
    color: #647783;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.2;
    text-transform: uppercase;
}
.trip-card-grid .package .package-meta__item strong {
    display: block;
    margin-top: 3px;
    color: #173342;
    font-size: 12px;
    font-weight: 800;
    line-height: 1.25;
    overflow-wrap: anywhere;
}
.trip-card-grid .package .package-divider {
    height: 1px;
    margin: 16px 0;
    background: #edf2f5;
}
.trip-card-grid .package .package-footer {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 12px;
    margin-top: auto;
}
.trip-card-grid .package .package-rating {
    min-width: 0;
}
.trip-card-grid .package .package-rating__stars i {
    color: #f5a623;
    font-size: 13px;
}
.trip-card-grid .package .package-rating small {
    display: block;
    color: #647783;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.35;
}
.trip-card-grid .package .package-price {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 2px;
    text-align: right;
}
.trip-card-grid .package .package-price__from {
    color: #7d8d9a;
    font-size: 12px;
    font-weight: 600;
}
.trip-card-grid .package .package-price__current {
    color: #173342;
    font-size: 16px;
    font-weight: 800;
    white-space: nowrap;
}
.trip-card-grid .package .package-price__current small {
    margin-left: 2px;
    font-size: 12px;
    font-weight: 700;
}
@media (max-width: 1199.98px) {
    .trip-card-grid .package .package-title {
        min-height: auto;
    }
}
@media (max-width: 767.98px) {
    .trip-card-grid .package .all-down {
        padding: 16px;
    }
    .trip-card-grid .package .package-meta {
        grid-template-columns: 1fr;
    }
    .trip-card-grid .package .package-footer {
        align-items: flex-start;
        flex-direction: column;
    }
    .trip-card-grid .package .package-price {
        align-items: flex-start;
        text-align: left;
    }
}
