/* Search Section Refinement */
.search-card {
    width: 100%;
    max-width: 1200px;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(12px);
    position: relative;
    padding: 10px 20px 24px;
    /* box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15); */
    box-shadow:
        inset 3px 3px 6px #cccccc,
        /* dark shadow */
        inset -3px -3px 6px #ffffff;
    /* light highlight */
    margin: 20px auto;
    border: 1px solid rgba(255, 255, 255, 0.4);
}

/* Overriding bl-top-filter for the home page card */
.search-card .bl-top-filter {
    background: transparent !important;
    box-shadow: none !important;
    border: none !important;
    position: relative !important;
    top: 0 !important;
    padding: 0 !important;
    margin-bottom: 0 !important;
    gap: 8px;
    align-items: flex-end;
}

/* Hide Bootstrap dropdown arrow for the counter */
#seat-counter-display.dropdown-toggle::after {
    display: none !important;
}

#seat-counter-display {
    padding: 8px 14px !important;
}

.display-text {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-high);
}

.icon-inside-static {
    color: var(--text-low);
    font-size: 14px;
}

/* Shuffle Button specifically for this bar */
.bl-filter-shuffle {
    margin-bottom: 1px;
}

.swap-btn-mini {
    width: 38px;
    height: 38px;
    background: #fff;
    border: 1px solid #cdd9ea;
    border-radius: var(--borderRadius-default);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.4s ease;
    color: var(--text-low);
    flex-shrink: 0;
}

.swap-btn-mini svg {
    color: var(--text-low);
}

.swap-btn-mini:hover {
    color: var(--brand-primary);
    border-color: var(--brand-primary);
    background: #f0f4ff;
    transform: rotate(180deg);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
}

/* Adjusting labels for the home page context */
.search-card .bl-filter-label {
    color: var(--text-low);
    margin-left: 12px;
}

/* Counter Dropdown Enhancements */
.travellers-dropdown {
    min-width: 260px;
    border-radius: 12px;
    border: 1px solid #cdd9ea;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    padding: 16px !important;
    background: #fff !important;
}

.counter-controls {
    background: #f8fafc;
    padding: 6px;
    border-radius: 30px;
}

.counter-btn {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: #fff;
    border: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    color: var(--brand-primary);
}

.counter-btn:hover {
    background: var(--brand-primary);
    color: #fff;
    border-color: var(--brand-primary);
}

.counter-input {
    width: 44px;
    text-align: center;
    border: none;
    background: transparent;
    font-weight: 700;
    font-size: 16px;
}

/* Nav Pills Customization - Square Card Layout */
.nav-pills-custom {
    gap: 15px;
    margin-bottom: 10px !important;
}

.nav-pills-custom .nav-link {
    width: 170px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    /* background: #fff !important; */
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(0, 0, 0, 0.08) !important;
    border-radius: var(--borderRadius-default) !important;
    color: var(--text-medium) !important;
    font-weight: 700;
    font-size: 13px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    padding: 10px !important;
    box-shadow:
        inset 3px 3px 6px #cccccc,
        inset -3px -3px 6px #ffffff;
}

.nav-pills-custom .nav-link img,
.nav-pills-custom .nav-link .search-tab-icon svg {
    max-width: 100%;
    height: auto;
    transition: transform 0.3s ease;
}

.nav-pills-custom .nav-link .tab-label {
    white-space: nowrap;
}

.nav-pills-custom .nav-link:hover {
    transform: translateY(-4px);
    color: var(--brand-primary) !important;
}

.nav-pills-custom .nav-link.active {
    color: var(--brand-primary) !important;
    background: rgba(255, 255, 255, 0.5) !important;
    backdrop-filter: blur(12px) !important;
    /* box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1); */
    box-shadow:
        inset 3px 3px 6px #cccccc,
        inset -3px -3px 6px #ffffff;
}

/* Underline Indicator */
.nav-pills-custom .nav-link::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%) translateY(4px);
    width: 0;
    height: 4px;
    background: var(--brand-primary);
    border-radius: 4px 4px 0 0;
    transition: all 0.3s ease;
}

.nav-pills-custom .nav-link.active::after,
.nav-pills-custom .nav-link:hover::after {
    width: 40px;
    transform: translateX(-50%) translateY(0);
}

/* Responsive Overrides */
@media (max-width: 1024px) {
    .search-card .bl-top-filter {
        flex-direction: row;
        flex-wrap: wrap;
    }

    .bl-filter-group {
        flex: 1 1 45%;
    }
}

@media (max-width: 768px) {
    .search-card {
        padding: 15px;
        background: #fff;
        margin: 10px;
    }

    .bl-filter-shuffle {
        display: none !important;
    }

    .bl-filter-group,
    .bl-filter-group--sm {
        flex: 1 1 100%;
    }

    .bl-search-btn {
        width: 100% !important;
        margin-top: 10px;
    }
}