/* .searchTab-card {
    width: 100%;
    max-width: 400px;
    max-height: 100%;
} */

/* .search-card {
    width: 100%;
    max-width: 400px;
    max-height: 100%;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    margin: 15px;

} */

/* transparent search card */
.search-card {
    width: 100%;
    max-width: 400px;
    max-height: 100%;
    border-radius: var(--borderRadius-default);
    background: rgba(250, 252, 255, 0.3);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(4px);

    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 18px;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.1);
    overflow: hidden;
    margin: 15px;

}

/* Nav Pills Container */

.nav-pills-custom {
    padding: 16px 16px 0;
    gap: 3px;
    /* border-bottom: 1px solid var(--bg-body); */
    flex-wrap: nowrap;
    overflow-x: auto;
}

/* Base tab */
.nav-pills-custom .nav-link {
    background-color: var(--input-bg) !important;
    color: var(--text-high);
    /* color: #fff; */
    font-size: 14px;
    font-weight: 500;
    padding: 6px 12px;
    border-radius: var(--borderRadius-default) !important;
    border: 1.5px solid transparent;
    display: flex;
    align-items: center;
    gap: 4px;
    white-space: nowrap;
    transition: color 0.2s ease, border-color 0.2s ease;
}

/* Icon inherits color */
.nav-pills-custom .nav-link i {
    color: inherit;
}

/* Hover */
.nav-pills-custom .nav-link:hover {
    color: var(--primary);
    border-color: var(--primary) !important;
    background: var(--input-bg) !important;
}

/* Active */
.nav-pills-custom .nav-link.active {
    background: var(--input-bg) !important;
    color: var(--primary) !important;
    border: 2px solid var(--primary);
    border-radius: var(--borderRadius-default);
}




.route-container {
    position: relative;
    width: 100%;
}

.swap-btn {
    width: 50px;
    height: 120px;
    background: var(--input-bg);
    border: 1px solid #E2E8F0;
    border-radius: var(--borderRadius-default);
    display: flex;
    align-items: center;
    justify-content: center;
    align-self: stretch;
    /* color: var(--primary); */
    color: var(--text-low);
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    padding: 0;
}

.search-section .form-group .error-msg {
    color: #dc3545;
    font-size: 12px;
    margin-top: 4px;
}

/* .swap-btn:hover {
    background: var(--primary);
    color: #fff;
    
    transform: rotate(180deg);
} */


/* Ticket Type Section */
.ticket-type-section {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 20px 0;
}

.ticket-type-label {
    font-size: 12px;
    font-weight: 500;
    color: var(--header-text);
    /* background-color: var(--input-bg);
    border: 1px solid #E2E8F0; */
    border-radius: var(--borderRadius-default);
    padding: 4px 8px;
}

.radio-group {
    display: flex;
    gap: 10px;
    /* background: var(--input-bg); */
    padding: 4px 8px;
    border-radius: var(--borderRadius-default);

}

.form-check-custom {
    display: flex;
    align-items: center;
    gap: 4px;
}

.form-check-custom .form-check-input {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.form-check-custom .form-check-label {
    font-size: 14px;
    color: var(--header-text);
    cursor: pointer;
}

/* Adult Counter Section */
.counter-section {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 20px 0;
}

.counter-label {
    font-size: 12px;
    font-weight: 500;
    color: var(--header-text);
    /* background-color: var(--input-bg);
    border: 1px solid #E2E8F0; */
    border-radius: var(--borderRadius-default);
    padding: 4px 8px;

}

.counter-controls {
    display: flex;
    align-items: center;
    gap: 12px;
    /* background: var(--input-bg); */
    padding: 4px;
    border-radius: var(--borderRadius-default);
}

.counter-btn {
    width: 32px;
    height: 32px;
    background: #fafafa;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 20px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.counter-btn:hover {
    background: #E2E8F0;
    color: #fff;
}

.counter-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.counter-input {
    background: transparent !important;
    border: none !important;
    min-width: 20px;
    text-align: center;
    font-size: 16px;
    font-weight: 600;
    color: var(--header-text);
}



/* Custom Scrollbar for tabs */
.nav-pills-custom::-webkit-scrollbar {
    height: 0px;
}

/* error state */
.input-field.has-error {
    border-color: #dc3545 !important;
}

/* optional: red placeholder when error */
.input-field.has-error::placeholder {
    color: #dc3545;
    opacity: 1;
}

.search-section .floating-label-group .select2-container {
    width: 100% !important;
}

.search-section .floating-label-group .select2-selection--single {
    background-color: var(--input-bg) !important;
    border: 2px solid transparent !important;
    border-radius: var(--borderRadius-default) !important;
    min-height: 48px;
    height: 48px !important;
    padding: 14px 38px 14px 48px !important;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.search-section .floating-label-group .select2-selection__rendered {
    color: var(--text-high) !important;
    line-height: 18px !important;
    padding: 0 !important;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.search-section .floating-label-group .select2-selection__arrow {
    height: 100% !important;
    right: 10px !important;
}

.search-section .floating-label-group.is-focused .select2-selection--single,
.search-section .floating-label-group .select2-container--open .select2-selection--single {
    background-color: #fff !important;
    border-color: var(--primary) !important;
    box-shadow: 0 0 0 4px rgba(59, 89, 152, 0.05) !important;
}

.search-section .floating-label-group.is-focused .floating-label,
.search-section .floating-label-group.has-value .floating-label {
    top: 0;
    left: 42px;
    font-size: 10px;
    padding: 0 4px;
    transform: translateY(-10%);
}

.search-section .floating-label-group.is-focused .input-icon,
.search-section .floating-label-group.has-value .input-icon {
    color: var(--primary);
}

.search-section .floating-label-group.has-error .select2-selection--single {
    border-color: #dc3545 !important;
    box-shadow: none !important;
}

.search-section .select2-container--bootstrap .select2-dropdown {
    background-color: var(--input-bg);
}

.search-section .select2-container--bootstrap .select2-search__field {
    background-color: var(--input-bg);
}