from django.urls import path

from apps.core.views.search import (
    AdaptiveSearchView,
    FilterFormView,
    LocationSearchView,
    LocationSuggestionsView,
)
from apps.rides.views import RideSearchView

app_name = "search"

urlpatterns = [
    path("parks/", AdaptiveSearchView.as_view(), name="search"),
    path("parks/filters/", FilterFormView.as_view(), name="filter_form"),
    path("rides/", RideSearchView.as_view(), name="ride_search"),
    path("rides/results/", RideSearchView.as_view(), name="ride_search_results"),
    # Location-aware search
    path("location/", LocationSearchView.as_view(), name="location_search"),
    path(
        "location/suggestions/",
        LocationSuggestionsView.as_view(),
        name="location_suggestions",
    ),
]
