/* Google Places autocomplete dropdown */
.pac-container { z-index: 999999 !important; }

.bd-search-widget-container{
    padding: 4rem 1rem;
    background-color: var(--bd-lblue);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;

    .widget-input-container{

        width: 100%;
        max-width: 500px;
        position: relative;
        display: flex;
        align-items: stretch;
        background: white;
        border-radius: 5px;
        box-shadow: 0 0 5px rgba(0, 0, 0, 0.1);

        .widget-input{
            flex: 1;
            padding: 10px 20px;
            border: none;
            border-radius: 5px 0 0 5px;
            box-shadow: none;
        }

        gmp-place-autocomplete {
            flex: 1;
            min-width: 0;
            max-width: calc(100% - 50px);
            --gmp-mat-icon-button-touch-target-display: none;
        }

        gmp-place-autocomplete::part(input) {
            padding-left: 10px;
        }

        /* Hide Google's built-in search icon */
        gmp-place-autocomplete .icon,
        gmp-place-autocomplete [class*="search-icon"],
        gmp-place-autocomplete svg {
            display: none !important;
        }

        gmp-place-autocomplete input {
            width: 100%;
            padding: 10px 20px;
            border: none;
            border-radius: 5px 0 0 5px;
            font-size: 16px;
            outline: none;
        }

        .widget-search-button{
            background-color: #007bff !important;
            color: #ffffff !important;
            border: none;
            border-radius: 0 5px 5px 0;
            cursor: pointer;
            padding: 5px 15px;
            width: 50px;
            display: flex;
            align-items: center;
            justify-content: center;
            flex-shrink: 0;
            position: relative;
            z-index: 1000010;

            svg{
                width: 15px;

                path{
                    fill: #ffffff !important;
                }
            }

            &:hover {
                background-color: #0056b3 !important;
            }
        }

        .bd-autocomplete-dropdown {
            position: absolute;
            top: 100%;
            left: 0;
            right: 0;
            margin: 4px 0 0 0;
            padding: 4px 0;
            list-style: none;
            background: #ffffff;
            border: 1px solid #d0d5dd;
            border-radius: 5px;
            box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
            max-height: 320px;
            overflow-y: auto;
            z-index: 1000020;
            text-align: left;
        }

        .bd-autocomplete-dropdown[hidden] {
            display: none;
        }

        .bd-autocomplete-item {
            padding: 10px 14px;
            cursor: pointer;
            display: flex;
            flex-direction: column;
            gap: 2px;
            line-height: 1.3;
            color: #111;
        }

        .bd-autocomplete-item.highlighted,
        .bd-autocomplete-item:hover {
            background-color: rgba(0, 123, 255, 0.08);
        }

        .bd-autocomplete-main {
            font-size: 1rem;
            font-weight: 500;
        }

        .bd-autocomplete-secondary {
            font-size: 0.8rem;
            color: #6b7280;
        }
    }
}