.custom-map {
    display: flex;
    flex-direction: column;
    gap: 22px;
}

.wpsl-search.wpsl-clearfix {
    display: none;
}

.custom-map__container #wpsl-wrap #wpsl-search-wrap {
    display: none !important;
}

.custom-map__search {
    margin: 0 auto;
    width: 100%;
}

.custom-map__search #wpsl-search-wrap {
    margin: 0;
}

.custom-map__search #wpsl-search-wrap form {
    display: flex;
    flex-direction: column;
    background: white;
    border: 1px solid #cccccc;
    margin: 0;
    gap: 0;
}

.wpsl-dropdown {
    border: none;
}

.custom-map__search #wpsl-search-wrap .wpsl-input {
    display: flex;
    margin: 0;
}

.custom-map__search #wpsl-search-wrap .wpsl-input-field {
    width: 100%;
    position: relative;
    margin: 0;
}

.custom-map__search #wpsl-search-wrap .wpsl-input-field label {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

.custom-map__search #wpsl-search-wrap #wpsl-search-input {
    width: 100%;
    padding: 0.875rem 1.25rem;
    border: none;
    font-size: 0.9rem;
    color: #333;
    background: transparent;
    margin: 0;
}

.custom-map__search #wpsl-search-wrap #wpsl-search-input::placeholder {
    color: #999;
}

.custom-map__search #wpsl-search-wrap #wpsl-search-input:focus {
    outline: none;
}

.custom-map__search #wpsl-search-wrap .wpsl-select-wrap {
    width: 100%;
    margin: 0;
    display: flex;
    align-items: center;
    padding: 0;
    border-left: 1px solid #e0e0e0;
    max-width: 90px;
}

.custom-map__search #wpsl-search-wrap #wpsl-radius {
    margin: 0;
    width: 100%;
}

.custom-map__search #wpsl-search-wrap #wpsl-radius label {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

.custom-map__search #wpsl-search-wrap #wpsl-radius-dropdown {
    width: 100%;
    padding: 0.875rem 0.75rem;
    border: none;
    background: transparent;
    color: #333;
    font-size: 0.85rem;
    cursor: pointer;
}

.custom-map__search #wpsl-search-wrap #wpsl-radius-dropdown:focus {
    outline: none;
}

.custom-map__search #wpsl-search-wrap .wpsl-search-btn-wrap {
    width: 100%;
    margin: 0;
}

.custom-map__search #wpsl-search-wrap #wpsl-search-btn {
    width: 100%;
    padding: 0.875rem 1.5rem;
    background: #3f5c9a;
    color: white;
    border: none;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease;
    margin: 0;
}

.custom-map__search #wpsl-search-wrap #wpsl-search-btn:hover {
    background: #2e4471;
}

.custom-map__accordion-wrapper {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

.custom-map__accordion-item {
    background: transparent;
}

.custom-map__accordion-trigger {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 20px;
    background: #f5f5f5;
    border: none;
    font-weight: 700;
    font-size: 19px;
    color: #3754a4;
    text-align: left;
    cursor: pointer;
}

.custom-map__accordion-trigger::after {
    content: "▼";
    font-size: 0.75rem;
    color: #3f5c9a;
    transition: transform 0.3s ease;
}

.custom-map__accordion-item[open] .custom-map__accordion-trigger::after {
    transform: rotate(180deg);
}

.custom-map__accordion-content {
    padding: 1rem;
    background: #f5f5f5;
}

.custom-map__accordion-content a {
    display: block;
    font-size: 18px;
    color: #3754a4;
    text-decoration: none;
    padding: 0;
}

.custom-map__accordion-content a:hover {
    text-decoration: underline;
}

@media (min-width: 768px) {
    .custom-map__search #wpsl-search-wrap form {
        flex-direction: row;
        align-items: stretch;
    }

    .custom-map__search #wpsl-search-wrap .wpsl-input {
        flex: 1;
        flex-direction: row;
        align-items: center;
    }

    .custom-map__search #wpsl-search-wrap .wpsl-input-field {
        flex: 1;
    }

    .custom-map__search #wpsl-search-wrap #wpsl-search-input {
        padding: 1rem 1.5rem;
        font-size: 1rem;
    }

    .custom-map__search #wpsl-search-wrap .wpsl-select-wrap {
        flex-shrink: 0;
        width: auto;
        padding: 0 1rem;
        border-top: none;
        border-left: 1px solid #e0e0e0;
        max-width: inherit;
    }

    .custom-map__search #wpsl-search-wrap #wpsl-radius {
        width: auto;
    }

    .custom-map__search #wpsl-search-wrap #wpsl-radius-dropdown {
        width: auto;
        padding: 0.5rem;
        font-size: 0.9rem;
    }

    .custom-map__search #wpsl-search-wrap .wpsl-search-btn-wrap {
        flex-shrink: 0;
        width: auto;
    }

    .custom-map__search #wpsl-search-wrap #wpsl-search-btn {
        width: auto;
        height: 100%;
        padding: 1rem 2rem;
        font-size: 1rem;
    }

    .custom-map__accordion-wrapper {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }

    div#wpsl-stores,
    #wpsl-direction-details,
    #wpsl-gmap,
    #wpsl-result-list,
    .custom-map__container #wpsl-gmap {
        height: 500px !important;
    }
}
