/* Header Layout - Clean and Responsive Design */
.header {
    background: white;
    border-bottom: 1px solid #e9ecef;
    position: relative;
    z-index: 9999 !important;
}

.navigation {
    background: white;
    padding: 10px 0;
}

/* Mobile Header Overrides */
@media (max-width: 991.98px) {
    .header {
        display: none !important;
    }
    
    .mobile-header {
        display: block !important;
    }
}

@media (min-width: 992px) {
    .mobile-header {
        display: none !important;
    }
    
    .header {
        display: block !important;
    }
}

/* Header Flexbox Layout */
.header-flex-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    min-height: 50px;
}

.header-logo-section {
    flex: 0 0 auto;
    min-width: 200px;
}

.header-search-section {
    flex: 0 1 600px;
    display: flex;
    justify-content: center;
    padding: 0 10px;
    position: relative;
    z-index: 9999 !important;
}

.header-nav-section {
    flex: 0 0 auto;
    min-width: 400px;
    display: flex;
    justify-content: flex-end;
    margin-left: auto;
}

/* Override container padding for better space utilization */
.navigation .container {
    padding-left: 15px;
    padding-right: 0;
    max-width: 100%;
    width: 100%;
}

/* Logo styling */
.logo-branding {
    display: flex;
    align-items: center;
    height: 100%;
    justify-content: flex-start;
}

.logo-branding .navbar-brand {
    margin: 0;
    padding: 0;
}

.logo_height_width {
    max-height: 35px;
    width: auto;
}

/* Header search container */
.header-search {
    display: flex;
    align-items: center;
    gap: 12px;
    height: 100%;
    justify-content: center;
    max-width: 600px;
    width: 100%;
    position: relative;
    z-index: 9999 !important;
}

/* Search form styling */
.sc-search-new { 
    display: flex; 
    gap: 10px; 
    align-items: center;
    padding: 8px 15px;
    background: white;
    border-radius: 25px;
    border: 1px solid #e9ecef;
    min-width: 350px;
    max-width: 550px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: box-shadow 0.3s ease;
    position: relative;
    z-index: 9999 !important;
}

.sc-search-new:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.12);
}

/* Home button */
.sc-home {
    background: #6c757d;
    color: white;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    text-decoration: none;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.sc-home:hover {
    background: #5a6268;
    color: white;
    transform: scale(1.05);
}

/* Search form elements */
.sc-search-new select[name="city_header_main"] {
    border: none;
    background: #f8f9fa;
    outline: none;
    font-size: 14px;
    color: #333;
    min-width: 120px;
    padding: 8px 12px;
    border-radius: 12px;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L6 6L11 1' stroke='%23333' stroke-width='2'/%3E%3C/svg%3E") no-repeat right 10px center;
    background-size: 12px;
    padding-right: 30px;
    transition: background-color 0.3s ease;
    position: relative;
    z-index: 9999 !important;
}

.sc-search-new select[name="city_header_main"]:focus {
    background-color: #e9ecef;
}

.sc-search-new #search-box {
    flex: 1;
    border: none;
    background: transparent;
    outline: none;
    font-size: 14px;
    color: #333;
    padding: 8px 12px;
    min-width: 200px;
    position: relative;
    z-index: 9999 !important;
}

.sc-search-new button {
    background: #ff4939;
    border: none;
    color: white;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.sc-search-new button:hover {
    background: #e63946;
    transform: scale(1.05);
}

/* Header controls */
.header-controls {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    height: 100%;
}

.headerRightMenu {
    display: flex;
    align-items: center;
    gap: 15px;
}

/* Navigation controls */
.group-control,
.inbox-control,
.notify-control,
.enquiry-control {
    position: relative;
}

.notification-button,
.message_custom_button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #f8f9fa;
    color: #6c757d;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
}

.notification-button:hover,
.message_custom_button:hover {
    background: #e9ecef;
    color: #ff4939;
    transform: scale(1.05);
}

.notification-button i,
.message_custom_button i {
    font-size: 16px;
}

/* Badge styling */
.notificatio_counter_bg {
    background: #ff4939 !important;
    color: white !important;
    font-size: 10px !important;
    padding: 2px 6px !important;
    border-radius: 10px !important;
    min-width: 18px !important;
    height: 18px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

/* Enquiry button */
.enquiry-btn {
    width: 40px !important;
    height: 40px !important;
    background-color: #ff4939 !important;
    border: none !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: all 0.3s ease !important;
}

.enquiry-btn:hover {
    background-color: #e63946 !important;
    transform: scale(1.05);
}

.enquiry-btn i {
    color: white !important;
    font-size: 16px;
}

/* Non-authenticated user styling */
.headerRightMenu .profile-control .dropdown-toggle img {
    width: 40px !important;
    height: 40px !important;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #e9ecef;
    background: #f8f9fa;
}

/* Ensure proper spacing for non-authenticated users */
.headerRightMenu {
    gap: 15px;
    justify-content: flex-end;
}

/* Mobile search icon styling for all users */
.mobilesearchIcon button {
    background: #ff4939;
    border: none;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    font-size: 16px;
}

.mobilesearchIcon button:hover {
    background: #e63946;
    transform: scale(1.05);
}

/* Profile control */
.profile-control {
    position: relative;
    display: flex;
    align-items: center;
}

.profile-control .dropdown-toggle {
    display: flex;
    align-items: center;
    background: none;
    border: none;
    padding: 0;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.profile-control .dropdown-toggle:hover {
    transform: scale(1.05);
}

.profile-control .dropdown-toggle img {
    width: 40px !important;
    height: 40px !important;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #e9ecef;
}

.profile-control .dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 8px;
    border: none;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    border-radius: 8px;
    padding: 8px 0;
    background: white;
    min-width: 200px;
    z-index: 1000;
}

.profile-control .dropdown-item {
    padding: 10px 16px;
    font-size: 14px;
    color: #333;
    transition: all 0.2s ease;
    border: none;
    background: transparent;
}

.profile-control .dropdown-item:hover {
    background-color: #f8f9fa;
    color: #ff4939;
}

/* Select2 overrides for header */
.header-search .select2-container {
    min-width: 120px;
    flex: 1;
    z-index: 1001;
}

.header-search .select2-container .select2-selection--single {
    border: none !important;
    background: transparent !important;
    height: auto !important;
    padding: 0 !important;
}

.header-search .select2-container--default .select2-selection--single .select2-selection__rendered {
    color: #333 !important;
    padding: 0 !important;
    line-height: 1.5 !important;
}

.header-search .select2-container--default .select2-selection--single .select2-selection__arrow {
    display: none !important;
}

.header-search .select2-dropdown {
    border-color: #ff4939 !important;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1) !important;
    z-index: 1001 !important;
}

/* Mobile search icon */
.onlymobile {
    display: none;
}

.mobilesearchIcon button {
    background: #ff4939;
    border: none;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.mobilesearchIcon button:hover {
    background: #e63946;
    transform: scale(1.05);
}

/* Mobile dropdown menu */
.mobile-dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    padding: 20px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    border-top: 1px solid #e9ecef;
    z-index: 1001;
    border-radius: 0 0 8px 8px;
}

/* Ensure header has proper positioning for mobile dropdown */
.header {
    position: relative;
}

.mobile-dropdown-menu .sc-search-new {
    min-width: auto;
    width: 100%;
    flex-direction: column;
    gap: 10px;
}

    .mobile-dropdown-menu .sc-search-new button {
        border-radius: 6px !important;
        width: 100% !important;
        height: 40px !important;
    }

    /* Mobile Navigation Menu */
    .mobile-nav-menu {
        margin-top: 20px;
        border-top: 1px solid #e9ecef;
        padding-top: 20px;
    }

    .mobile-nav-section {
        margin-bottom: 20px;
    }

    .mobile-nav-title {
        color: #333;
        font-size: 16px;
        font-weight: 600;
        margin-bottom: 10px;
        padding: 0 15px;
    }

    .mobile-nav-list {
        list-style: none;
        margin: 0;
        padding: 0;
    }

    .mobile-nav-list li {
        border-bottom: 1px solid #f8f9fa;
    }

    .mobile-nav-list li:last-child {
        border-bottom: none;
    }

    .mobile-nav-list a {
        display: block;
        padding: 12px 15px;
        color: #666;
        text-decoration: none;
        font-size: 14px;
        transition: all 0.3s ease;
    }

    .mobile-nav-list a:hover {
        background: #f8f9fa;
        color: #FF4939;
        text-decoration: none;
    }

/* Responsive Design */
@media (max-width: 991px) {
    .header-search {
        display: none;
    }
    
    .headerRightMenu {
        gap: 10px;
    }
    
    .notification-button,
    .message_custom_button,
    .enquiry-btn {
        width: 35px !important;
        height: 35px !important;
    }
    
    .profile-control .dropdown-toggle img {
        width: 35px !important;
        height: 35px !important;
    }
}

@media (max-width: 767px) {
    .onlydesktop {
        display: none !important;
    }
    
    .onlymobile {
        display: block !important;
    }
    
    .headerRightMenu {
        justify-content: flex-end !important;
        gap: 10px;
    }
    
    .logo_height_width {
        max-height: 30px;
    }
    
    .navigation {
        padding: 8px 0;
    }
    
    .navigation .row {
        min-height: 40px;
    }
    
    /* Mobile styling for non-authenticated users */
    .headerRightMenu .profile-control .dropdown-toggle img {
        width: 35px !important;
        height: 35px !important;
    }
    
    .mobilesearchIcon button {
        width: 35px !important;
        height: 35px !important;
    }
    
    /* Mobile search form */
    .mobile-dropdown-menu .sc-search-new {
        grid-template-columns: 1fr;
        min-width: auto;
        width: 100%;
        flex-direction: column;
        gap: 12px;
        padding: 15px;
        border-radius: 8px;
        background: #f8f9fa;
        position: relative;
        z-index: 9999 !important;
    }
    
    .mobile-dropdown-menu .sc-search-new select {
        line-height: inherit !important;
        height: 45px !important;
        width: 100% !important;
        border-radius: 6px !important;
        border: 1px solid #ddd !important;
        padding: 10px 12px !important;
        position: relative;
        z-index: 9999 !important;
    }
    
    .mobile-dropdown-menu .sc-search-new button {
        border-radius: 6px !important;
        width: 100% !important;
        height: 45px !important;
        font-weight: 600 !important;
        text-transform: uppercase !important;
        letter-spacing: 0.5px !important;
    }
    
    /* Ensure Select2 works properly on mobile */
    .select2-container {
        z-index: 9999 !important;
    }
    
    /* Mobile Select2 improvements */
    .mobile-dropdown-menu .select2-container {
        width: 100% !important;
        z-index: 9999 !important;
    }
    
    .mobile-dropdown-menu .select2-container .select2-selection--single {
        height: 45px !important;
        border: 1px solid #ddd !important;
        border-radius: 6px !important;
        background: white !important;
    }
    
    .mobile-dropdown-menu .select2-container--default .select2-selection--single .select2-selection__rendered {
        line-height: 45px !important;
        padding-left: 12px !important;
        color: #333 !important;
    }
    
    .mobile-dropdown-menu .select2-container--default .select2-selection--single .select2-selection__arrow {
        height: 45px !important;
        right: 10px !important;
    }
    
    /* Ensure Select2 dropdown appears above mobile menu */
    .mobile-dropdown-menu .select2-dropdown {
        z-index: 9999 !important;
        position: absolute !important;
    }
    
    /* Mobile dropdown menu positioning */
    .mobile-dropdown-menu {
        position: absolute !important;
        top: 100% !important;
        left: 0 !important;
        right: 0 !important;
        z-index: 9999 !important;
    }
}

@media (max-width: 576px) {
    .headerRightMenu {
        gap: 8px;
    }
    
    .notification-button,
    .message_custom_button,
    .enquiry-btn {
        width: 32px !important;
        height: 32px !important;
    }
    
    .profile-control .dropdown-toggle img {
        width: 32px !important;
        height: 32px !important;
    }
    
    .mobilesearchIcon button {
        width: 32px !important;
        height: 32px !important;
    }
    
    .logo_height_width {
        max-height: 28px;
    }
}

/* Legacy styles for compatibility */
.sc-search-new select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background: url("data:image/svg+xml;charset=UTF-8,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L6 6L11 1' stroke='%23333' stroke-width='2'/%3E%3C/svg%3E") no-repeat right 10px center !important;
    background-color: white;
    padding-right: 30px;
    border: 1px solid #aaa !important;
    border-radius: 4px;
    font-size: 14px;
    height: 38px !important;
    line-height: 35px;
    cursor: pointer;
}

.sc-search-new button {
    background-color: #FF4939 !important;
    color: #fff !important;
    border: none !important;
    border-radius: 50%;
    width: 38px !important;
    height: 38px !important;
}

.sc-search-new button i {
    color: #fff !important;
}

/* Modal styling */
.modal {
    z-index: 1050 !important;
}

.modal-backdrop {
    z-index: 1040 !important;
}

/* Select2 dropdown z-index */
.select2-dropdown {
    z-index: 9999 !important;
}

/* Global Select2 z-index improvements */
.select2-container--default .select2-dropdown {
    z-index: 9999 !important;
}

.select2-results__options {
    z-index: 9999 !important;
}

.select2-results__option {
    z-index: 9999 !important;
}

.select2-dropdown--below {
    z-index: 9999 !important;
}

.select2-dropdown--above {
    z-index: 9999 !important;
}

/* Ensure Select2 dropdowns appear above other elements */
.select2-container {
    z-index: 9999 !important;
}

/* Force Select2 to appear above everything when open */
.select2-container--open {
    z-index: 9999 !important;
}

.select2-container--open .select2-dropdown {
    z-index: 9999 !important;
}

/* Utility classes */
.text-primary, .small i.fa-thumbs-up {
    color: #FF4939 !important;
}

.btn-primary {
    background-color: #FF4939 !important;
}

.shadow-sm {
    border: solid 1px #efecf3;
    box-shadow: 0 .125rem .5rem -.25rem rgba(31, 27, 45, .12), 0 .25rem 1rem rgba(31, 27, 45, .12);
    border-radius: 10px;
}

/* Navigation Dropdowns */
.header-navigation {
    display: flex;
    align-items: center;
    height: 100%;
    justify-content: flex-end;
    width: 100%;
}

.nav-dropdowns {
    display: flex;
    gap: 25px;
    align-items: center;
}

.nav-dropdown {
    position: relative;
}

.nav-dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 5px;
    background: transparent;
    border: none;
    color: #333;
    font-weight: 500;
    font-size: 14px;
    padding: 8px 12px;
    border-radius: 6px;
    transition: all 0.3s ease;
    cursor: pointer;
    text-decoration: none;
    white-space: nowrap;
}

.nav-dropdown-toggle:hover {
    background: #f8f9fa;
    color: #FF4939;
}

.nav-dropdown-toggle i:first-child {
    font-size: 16px;
}

.nav-dropdown-toggle i:last-child {
    font-size: 12px;
    transition: transform 0.3s ease;
}

.nav-dropdown.show .nav-dropdown-toggle i:last-child {
    transform: rotate(180deg);
}

/* Bootstrap Dropdown Overrides for Navigation */
.nav-dropdown .dropdown-menu {
    position: absolute !important;
    top: 100% !important;
    right: 0 !important;
    left: auto !important;
    background: white !important;
    border: 1px solid #e9ecef !important;
    border-radius: 8px !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1) !important;
    min-width: 200px !important;
    padding: 8px 0 !important;
    margin-top: 4px !important;
    z-index: 1001 !important;
    list-style: none !important;
    margin: 0 !important;
    transform: none !important;
    opacity: 1 !important;
    visibility: visible !important;
    display: none !important;
}

.nav-dropdown.show .dropdown-menu,
.nav-dropdown .dropdown-menu.show {
    display: block !important;
}

/* Ensure dropdown appears on hover for desktop */
@media (min-width: 992px) {
    .nav-dropdown:hover .dropdown-menu {
        display: block !important;
    }
}

/* Fix Bootstrap dropdown positioning */
.nav-dropdown .dropdown-menu[data-bs-popper] {
    top: 100% !important;
    right: 0 !important;
    left: auto !important;
    margin-top: 4px !important;
    z-index: 1001 !important;
}

.nav-dropdown-item {
    display: block !important;
    padding: 10px 16px !important;
    color: #333 !important;
    text-decoration: none !important;
    font-size: 14px !important;
    transition: all 0.3s ease !important;
    border: none !important;
    background: transparent !important;
    width: 100% !important;
    text-align: left !important;
    line-height: 1.4 !important;
}

.nav-dropdown-item:hover {
    background: #f8f9fa !important;
    color: #FF4939 !important;
    text-decoration: none !important;
}

/* Ensure proper z-index hierarchy */
.header {
    z-index: 1000 !important;
}

.navigation {
    z-index: 1000 !important;
}

/* Higher z-index for non-logged in users */
.header.guest-user {
    z-index: 100000 !important;
}

.navigation.guest-user {
    z-index: 100000 !important;
}

/* Higher z-index for non-logged in users - Select2 dropdowns */
.header.guest-user .select2-container {
    z-index: 9999 !important;
}

.header.guest-user .select2-dropdown {
    z-index: 9999 !important;
}

/* Additional Select2 z-index fixes for non-logged in users */
.header.guest-user .select2-container--default .select2-dropdown {
    z-index: 9999 !important;
}

.header.guest-user .select2-results__options {
    z-index: 9999 !important;
}

.header.guest-user .select2-results__option {
    z-index: 9999 !important;
}

/* Ensure Select2 dropdown appears above everything for non-logged in users */
.header.guest-user .select2-dropdown--below {
    z-index: 9999 !important;
}

.header.guest-user .select2-dropdown--above {
    z-index: 9999 !important;
}

/* Force Select2 dropdown to appear above all other elements */
.header.guest-user .select2-container--open {
    z-index: 9999 !important;
}

.header.guest-user .select2-container--open .select2-dropdown {
    z-index: 9999 !important;
}

/* Higher z-index for non-logged in users - Mobile dropdowns */
.header.guest-user .mobile-dropdown-menu {
    z-index: 100001 !important;
}

/* Higher z-index for non-logged in users - Navigation dropdowns */
.header.guest-user .nav-dropdown .dropdown-menu {
    z-index: 100001 !important;
}

.header.guest-user .nav-dropdown .dropdown-menu.show {
    z-index: 100001 !important;
}

/* Additional dropdown improvements */
.nav-dropdown .dropdown-toggle::after {
    display: none !important;
}

.nav-dropdown .dropdown-menu {
    animation: dropdownFadeIn 0.2s ease-out;
}

/* Override any Bootstrap dropdown positioning */
.nav-dropdown .dropdown-menu[data-bs-popper="static"] {
    position: absolute !important;
    top: 100% !important;
    right: 0 !important;
    left: auto !important;
    transform: none !important;
    z-index: 1001 !important;
}

/* Ensure dropdown container has proper positioning */
.nav-dropdown {
    position: relative !important;
}

/* Override Bootstrap's dropdown display logic */
.nav-dropdown .dropdown-menu.show,
.nav-dropdown.show .dropdown-menu {
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
    z-index: 1001 !important;
    position: absolute !important;
    top: 100% !important;
    right: 0 !important;
    left: auto !important;
    transform: none !important;
}

@keyframes dropdownFadeIn {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Ensure dropdowns don't interfere with other elements */
.nav-dropdown .dropdown-menu {
    pointer-events: auto !important;
}

/* Improve dropdown item spacing */
.nav-dropdown .dropdown-item {
    margin: 0 !important;
    border-radius: 0 !important;
}

.nav-dropdown .dropdown-item:first-child {
    border-top-left-radius: 8px !important;
    border-top-right-radius: 8px !important;
}

.nav-dropdown .dropdown-item:last-child {
    border-bottom-left-radius: 8px !important;
    border-bottom-right-radius: 8px !important;
}

/* Mobile responsive for navigation dropdowns */
@media (max-width: 991px) {
    .header-navigation {
        display: none;
    }
    
    /* Ensure mobile dropdowns work properly */
    .nav-dropdown .dropdown-menu {
        position: static !important;
        box-shadow: none !important;
        border: none !important;
        border-radius: 0 !important;
        margin-top: 0 !important;
        padding: 0 !important;
        background: transparent !important;
    }
}

/* Ensure dropdowns work on all screen sizes */
@media (min-width: 992px) {
    .nav-dropdown {
        position: relative;
    }
    
    .nav-dropdown .dropdown-menu {
        position: absolute !important;
        top: 100% !important;
        right: 0 !important;
        left: auto !important;
        transform: none !important;
        z-index: 1001 !important;
    }
}

/* Fix for dropdown positioning issues */
.nav-dropdown .dropdown-menu.show {
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
    z-index: 1001 !important;
}

/* Additional debugging and visibility fixes */
.nav-dropdown .dropdown-menu {
    pointer-events: auto !important;
    position: absolute !important;
    top: 100% !important;
    right: 0 !important;
    left: auto !important;
    background: white !important;
    border: 1px solid #e9ecef !important;
    border-radius: 8px !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1) !important;
    min-width: 200px !important;
    padding: 8px 0 !important;
    margin-top: 4px !important;
    z-index: 1001 !important;
    list-style: none !important;
    margin: 0 !important;
    transform: none !important;
    opacity: 1 !important;
    visibility: visible !important;
    display: none !important;
}

/* Force dropdown to be visible when shown */
.nav-dropdown.show .dropdown-menu,
.nav-dropdown .dropdown-menu.show {
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
    z-index: 1001 !important;
} 

/* Additional Select2 styling from header.blade.php */
.select2-results__option {
    font-weight: bold;
}

/* Proper z-index for Select2 to ensure it appears above everything */
.select2-container {
    z-index: 9999 !important;
}

.select2-dropdown {
    z-index: 9999 !important;
}

.select2-container--default .select2-dropdown {
    z-index: 9999 !important;
}

.select2-results__options {
    z-index: 9999 !important;
}

.select2-results__option {
    z-index: 9999 !important;
}

.select2-dropdown--below {
    z-index: 9999 !important;
}

.select2-dropdown--above {
    z-index: 9999 !important;
}

.select2-container--open {
    z-index: 9999 !important;
}

.select2-container--open .select2-dropdown {
    z-index: 9999 !important;
}

/* Ensure Select2 appears above modals and other high z-index elements */
.select2-container,
.select2-dropdown,
.select2-results__options {
    z-index: 9999 !important;
}

/* Simple and clean Select2 z-index fix */
.select2-dropdown {
    z-index: 9999 !important;
}

.select2-container--open .select2-dropdown {
    z-index: 9999 !important;
}

/* Force Select2 to be above everything when initialized */
.select2-container--default {
    z-index: 9999 !important;
}

.select2-container--default .select2-selection--single {
    z-index: 9999 !important;
}

/* Ensure dropdown appears above all other elements */
.select2-container--open {
    z-index: 9999 !important;
}

.select2-container--open .select2-dropdown {
    z-index: 9999 !important;
    position: absolute !important;
}

/* Make Select2 height match Bootstrap input */
.select2-container .select2-selection--single {
    height: calc(2.25rem + 2px) !important;
    padding: 0.375rem 0.75rem !important;
    display: flex;
    align-items: center;
}
.select2-container--default .select2-selection--single .select2-selection__rendered {
    line-height: 1.5 !important;
}
.select2-container--default .select2-selection--single .select2-selection__arrow {
    height: calc(2.25rem + 2px) !important;
}

/* Modal Close Button (Cross Icon) */
.btn-close {
    color: #000 !important;
    background: none;
    border: none;
    font-size: 1.5rem;
    opacity: 1 !important;
}

.btn-close:hover {
    color: #f00;
    opacity: 0.8;
}

/* Modal z-index */
.modal-backdrop {
    z-index: 1040 !important;
}

.modal {
    z-index: 1050 !important;
}