.b2c-recent-searches-mount {
    margin-top: 18px;
}

.b2c-recent-searches {
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(255, 255, 255, 0.65);
    border-radius: 18px;
    padding: 16px 16px 14px;
    box-shadow: 0 14px 40px rgba(15, 23, 42, 0.12);
    backdrop-filter: blur(8px);
}

.b2c-recent-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.b2c-recent-title {
    margin: 0;
    font-size: 1rem;
    font-weight: 800;
    color: #0f172a;
    display: flex;
    align-items: center;
    gap: 8px;
}

.b2c-recent-title-icon {
    width: 30px;
    height: 30px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--b2c-accent, #fcd34d), #f59e0b);
    color: #1a1400;
    font-size: 14px;
}

.b2c-recent-tabs {
    display: inline-flex;
    gap: 6px;
    padding: 4px;
    border-radius: 999px;
    background: #f1f5f9;
}

.b2c-recent-tab {
    border: 0;
    background: transparent;
    color: #64748b;
    font-size: 12px;
    font-weight: 700;
    padding: 6px 12px;
    border-radius: 999px;
    cursor: pointer;
}

.b2c-recent-tab.active {
    background: #fff;
    color: #0f172a;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.08);
}

.b2c-recent-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: auto;
}

.b2c-recent-clear,
.b2c-recent-nav {
    border: 1px solid #e2e8f0;
    background: #fff;
    color: #475569;
    border-radius: 10px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 700;
}

.b2c-recent-clear {
    padding: 6px 10px;
}

.b2c-recent-nav {
    width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.b2c-recent-nav:disabled {
    opacity: 0.35;
    cursor: default;
}

.b2c-recent-track {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    padding-bottom: 4px;
    scrollbar-width: none;
}

.b2c-recent-track::-webkit-scrollbar {
    display: none;
}

.b2c-recent-card {
    flex: 0 0 min(100%, 300px);
    scroll-snap-align: start;
    border: 1px solid #e8edf3;
    border-radius: 14px;
    background: #fff;
    padding: 14px;
    text-align: left;
    cursor: pointer;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
    transition: transform 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease;
}

.b2c-recent-card:hover {
    transform: translateY(-2px);
    border-color: #fde68a;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.1);
}

.b2c-recent-card-top {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 10px;
}

.b2c-recent-badge {
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    padding: 3px 8px;
    border-radius: 999px;
    background: #f1f5f9;
    color: #475569;
}

.b2c-recent-badge.hotel {
    background: #eff6ff;
    color: #1d4ed8;
}

.b2c-recent-when {
    font-size: 11px;
    color: #94a3b8;
}

.b2c-recent-route {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 8px;
    align-items: center;
    margin-bottom: 10px;
}

.b2c-recent-code {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    height: 42px;
    border-radius: 11px;
    background: #0f172a;
    color: var(--b2c-accent, #fcd34d);
    font-size: 13px;
    font-weight: 800;
    margin-bottom: 4px;
}

.b2c-recent-city {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: #334155;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.b2c-recent-arrow {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #fffbeb;
    border: 1px solid #fde68a;
    color: #b45309;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.b2c-recent-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 12px;
    font-size: 11px;
    color: #64748b;
    border-top: 1px dashed #e2e8f0;
    padding-top: 8px;
}

.b2c-recent-empty {
    font-size: 13px;
    color: #64748b;
    padding: 8px 2px;
}

body.b2c-flight-results-mode .b2c-recent-searches-mount,
body.b2c-hotel-results-mode .b2c-recent-searches-mount {
    display: none;
}

html[dir="rtl"] .b2c-recent-route {
    direction: ltr;
}

@media (max-width: 767px) {
    .b2c-recent-card {
        flex-basis: min(100%, 260px);
    }
}
