/* ==========================================================================
   REUSABLE TRIP CARD COMPONENT
   ========================================================================== */
.trip-card {
    flex: 0 0 380px; /* Fixed width per card in horizontal scrolls */
    width: 380px;
    background: #FFFFFF;
    border-radius: 36px;
    padding: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
    scroll-snap-align: start;
    transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.3s ease;
}

.trip-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.12);
}

/* Card Image Box */
.trip-card-image-box {
    position: relative;
    width: 100%;
    height: 360px;
    border-radius: 22px;
    overflow: hidden;
}

.trip-card-image-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.trip-card:hover .trip-card-image-box img {
    transform: scale(1.05);
}

/* 4N/5D Floating Pill Badge */
.trip-badge {
    position: absolute;
    top: 14px;
    right: 14px;
    background: #EFEFEB;
    color: #616161;
    font-family: var(--font-primary, 'Be Vietnam Pro', sans-serif);
    font-size: 12px;
    font-weight: 600;
    padding: 6px 14px;
    border-radius: 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Card Content Area */
.trip-card-body {
    padding: 18px 6px 6px 6px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

/* Title & Rating Row */
.trip-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    min-height: 58px;
}

.trip-header h3 {
    font-family: var(--font-primary, 'Be Vietnam Pro', sans-serif);
    font-weight: 600;
    font-size: 20px;
    line-height: 1.3;
    color: #212121;
    margin: 0;
}

.trip-rating {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-family: var(--font-primary, 'Be Vietnam Pro', sans-serif);
    font-weight: 500;
    font-size: 13px;
    color: #212121;
    white-space: nowrap;
    flex-shrink: 0;
}

.trip-rating svg {
    width: 13px;
    height: 13px;
    fill: #212121;
    flex-shrink: 0;
}

/* Price Row */
.trip-price-row {
    margin: 10px 0 12px;
}

.trip-price-label {
    display: block;
    font-size: 10px;
    color: #9E9E9E;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.trip-price-val {
    font-size: 16px;
    font-weight: 600;
    color: #212121;
}

.trip-price-val span {
    font-size: 11px;
    font-weight: 400;
    color: #9E9E9E;
}

/* Description */
.trip-desc {
    font-family: var(--font-primary, 'Be Vietnam Pro', sans-serif);
    font-size: 12px;
    line-height: 1.5;
    color: #616161;
    margin-bottom: 22px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Card Button */
.btn-trip {
    display: block;
    width: 100%;
    height: 42px;
    line-height: 42px;
    text-align: center;
    background: #5E66A2;
    color: #FFFFFF;
    font-family: var(--font-primary, 'Be Vietnam Pro', sans-serif);
    font-weight: 600;
    font-size: 13px;
    letter-spacing: 0.05em;
    border-radius: 21px;
    text-decoration: none;
    margin-top: auto;
    transition: background-color 0.25s ease, transform 0.2s ease;
}

.btn-trip:hover {
    background: #4F568C;
    transform: translateY(-1px);
}