.block-tour_search_bar_with_image[data-layout_style="style_3"] form div{
    width: unset;
    flex: 1 1 auto !important;
}

#funky-canvas .block-tour_search_bar_with_image[data-layout_style="style_3"] form button {
    width: 100%;
    line-height: 1.5 !important;
    font-size: 1rem;
    height: calc(1.5em + .75rem + 2px);
    padding: .375rem .75rem;
    border-radius: 0.25rem;
}

.block-tour_search_bar_with_image[data-layout_style="style_3"] form select {
    border-radius: 0.25rem;
    margin: 0;
}

@media all and (max-width: 768px) {
    #funky-canvas .block-tour_search_bar_with_image[data-layout_style="style_3"] form button,
    .block-tour_search_bar_with_image[data-layout_style="style_3"] form select {
        border-radius: 0.5rem !important;
        height: auto;
        padding: 1em .75rem;
    }

    #funky-canvas .block-tour_search_bar_with_image[data-layout_style="style_3"] {
        padding-top: 2em;
        padding-bottom: 2em;
    }
}

.header_text_shadow-sm {
    text-shadow: 0 0 3px black;
}

.bold {
    font-weight: 700;
}

/* Animation for dropdowns */
@keyframes slideDown {
    from { max-height: 0; opacity: 0; }
    to { max-height: 300px; opacity: 1; }
}

/* Core dropdown styles */
.tour-search-bar-custom-select-container {
    position: relative;
    min-width: 180px;
    border-right: 1px solid #ddd;
    height: 100%;
}

.tour-search-bar-custom-select-container:last-child {
    border-right: none;
}

.tour-search-bar-custom-select {
    position: relative;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    min-width: 160px;
    background: transparent;
    border: none;
}

.tour-search-bar-custom-select-selected {
    display: flex;
    align-items: center;
    font-weight: normal;
    background: transparent;
    border: none;
}

.tour-search-bar-custom-select-selected p {
    margin: 0;
}

.filter-label {
    width: 100%;
    font-size: 10px;
    display: block;
    text-align: left;
    font-weight: bold;
    height: 15px; /* Consistent height for the labels */
}

.tour-search-bar-custom-select-selected i {
    color: #555;
    transition: all 0.3s ease;
}

.tour-search-bar-custom-select.active {
    background-color: #fff;
}

.tour-search-bar-custom-select.active .tour-search-bar-custom-select-selected i {
    transform: scale(1.2);
}

.tour-search-bar-custom-select-options {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: #fff;
    border-radius: 0.5rem;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: all 0.3s ease-in-out;
    z-index: 100;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    margin-top: 0.25rem;
}

.tour-search-bar-custom-select-options.show {
    max-height: 300px;
    overflow-y: auto;
    opacity: 1;
    animation: slideDown 0.3s ease forwards;
}

.tour-search-bar-custom-option {
    padding: 8px 15px;
    cursor: pointer;
    display: flex;
    align-items: center;
    transition: background-color 0.2s ease;
}

.tour-search-bar-custom-option:hover {
    background-color: #f5f5f5;
}

.option-text, .select-text {
    font-weight: 100 !important;
    font-size: 14px;
}

/* Custom dropdown container */
.custom-dropdown-container {
    background-color: rgba(255, 255, 255, 0.9);
    padding-left: 1em;
    padding-right: 1em;
    color: #999;
    border-radius: 6px;
    border: 1px solid #ccc;
}

/* Search button styles */
.banner_search_cta {
    padding: 10px 20px;
    color: white;
    border: none;
    border-radius: 0.25rem;
    cursor: pointer;
    transition: background-color 0.2s;
}

/* Mobile Responsive Styles */
@media (max-width: 767px) {
    .custom-dropdown-container {
        flex-direction: column;
        padding: 1rem;
        max-width: 100%;
        margin: 0 auto;
    }
    
    .tour-search-bar-custom-select-container {
        width: 100%;
        margin: 0.5rem 0;
        border-right: none;
        border-bottom: 1px solid #ddd;
        padding-bottom: 0.75rem;
    }
    
    .tour-search-bar-custom-select-container:last-child {
        border-bottom: none;
    }
    
    .banner_search_cta {
        width: 100%;
        margin-top: 0.75rem !important;
    }
    
    .tour-search-bar-custom-select-options {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        width: 100%;
        border-radius: 0.5rem;
        z-index: 100;
    }
    
    .html-banner_text {
        padding: 0 15px;
    }
}