.trips-carousel-container {
    position: relative;
    margin-top: 25px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 25px;
}

[data-theme="light"] .trips-carousel-container {
    border-top: 1px solid #e2e8f0;
}

.trips-carousel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.trips-carousel {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 20px;
    padding-bottom: 20px;
    /* Space for shadow */
    padding-left: 5px;
    /* Space for hover expansion */
    padding-right: 5px;
    padding-right: 5px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    /* Firefox */
    scrollbar-color: var(--primary-color) rgba(255, 255, 255, 0.05);
    /* Firefox */
}

/* Styled Scrollbar for Chrome/Safari/Opera */
.trips-carousel::-webkit-scrollbar {
    height: 6px;
    /* Visible but thin */
    display: block;
}

.trips-carousel::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
}

.trips-carousel::-webkit-scrollbar-thumb {
    background-color: var(--primary-color);
    border-radius: 10px;
}

.trips-carousel.active {
    cursor: grabbing !important;
    cursor: -webkit-grabbing !important;
}

/* Premium Ticket Card Style */
.trip-card-mini {
    flex: 0 0 300px;
    /* Slightly wider for better layout */
    scroll-snap-align: center;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.02) 100%);
    border: 2px solid #003366 !important;
    /* User Request: Dark Black Border */
    border-radius: 16px;
    padding: 0;
    /* Removing padding to handle sections */
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

[data-theme="light"] .trip-card-mini {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

/* Colored Top Bar (accent) */
.trip-card-mini::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), #ffffff);
}

.trip-card-mini:hover {
    transform: translateY(-5px) scale(1.02);
    border-color: #003366 !important;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4);
}

/* Content Sections */
.trip-card-body {
    padding: 20px 20px 15px 20px;
}

.trip-route {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--text-color);
    margin-bottom: 15px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.trip-route i {
    color: var(--primary-color);
    font-size: 0.9em;
    opacity: 0.8;
}

.trip-meta-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 15px;
}

.trip-meta-item {
    display: flex;
    flex-direction: column;
    font-size: 1rem;
    color: var(--text-muted);
}

.trip-meta-item i {
    margin-bottom: 4px;
    color: var(--primary-color);
}

.trip-meta-item strong {
    color: var(--text-color);
    font-size: 1.25rem;
}

/* Ticket Footer */
.trip-card-footer {
    background: rgba(0, 0, 0, 0.2);
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px dashed rgba(255, 255, 255, 0.1);
    position: relative;
}

[data-theme="light"] .trip-card-footer {
    background: #f8fafc;
    border-top: 1px dashed #cbd5e1;
}

[data-theme="light"] .trip-price-val {
    color: #0f172a;
}

/* Ticket Notches */
.trip-card-footer::before,
.trip-card-footer::after {
    content: '';
    position: absolute;
    top: -6px;
    width: 12px;
    height: 12px;
    background-color: var(--card-bg);
    /* Matches parent background to look like a cutout */
    border-radius: 50%;
    z-index: 2;
}

.trip-card-footer::before {
    left: -6px;
}

.trip-card-footer::after {
    right: -6px;
}

[data-theme="light"] .trip-price-val {
    color: #0f172a;
}

[data-theme="light"] .trip-price-val small {
    color: #475569;
}

.btn-book-mini {
    background: var(--primary-color);
    color: #ffffff !important;
    /* Changed from #000 for better contrast with blue/dark primary */
    padding: 10px 25px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.1rem;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 212, 255, 0.3);
}

[data-theme="light"] .btn-book-mini {
    background: var(--primary-color);
    color: #ffffff !important;
    box-shadow: 0 4px 10px rgba(37, 99, 235, 0.2);
}

.btn-book-mini:hover {
    background: white;
    box-shadow: 0 6px 15px rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

/* Service Badge Style */
.service-badge {
    display: inline-block;
    padding: 4px 10px;
    background: rgba(16, 185, 129, 0.15);
    color: #10b981;
    border: 1px solid rgba(16, 185, 129, 0.3);
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

[data-theme="light"] .service-badge {
    background: #ecfdf5;
    color: #059669;
    border: 1px solid #10b981;
}

/* Special Package Card in Carousel */
.package-card {
    flex: 0 0 340px;
    /* Wider than standard ticket */
    scroll-snap-align: center;
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.08) 0%, rgba(0, 0, 0, 0.2) 100%);
    border: 2px solid #003366 !important;
    /* User Request: Dark Black Border */
    border-radius: 16px;
    overflow: hidden;
    position: relative;
    transition: transform 0.3s ease, border-color 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.package-card:hover {
    transform: translateY(-5px);
    border-color: #003366 !important;
    box-shadow: 0 10px 25px rgba(255, 215, 0, 0.1);
}

.package-card-header {
    padding: 20px;
    text-align: center;
    border-bottom: 1px dashed rgba(255, 255, 255, 0.1);
    background: rgba(0, 0, 0, 0.2);
}

.package-card-body {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}