FiltersLayouts {
    Id: "default"

    # Desktop
    QuickFiltersRefs {
        Id: "yandex-plus-quick-desktop"
        Type: CT_QuickFilter
        QuickFilterId: "yandex-plus-quick-desktop"
        Tag: "no-black-friday"
        Tag: "no-white-label"
        Tag: "desktop"
    }
    QuickFiltersRefs {
        Id: "mir-offers-quick-desktop"
        Type: CT_QuickFilter
        QuickFilterId: "mir-offers-quick-desktop"
        Tag: "mir"
        Tag: "no-white-label"
        Tag: "desktop"
    }
    QuickFiltersRefs {
        Id: "black-friday-quick-desktop"
        Type: CT_QuickFilter
        QuickFilterId: "black-friday-quick-desktop"
        Tag: "black-friday"
        Tag: "no-white-label"
        Tag: "desktop"
    }

    # Touch
    QuickFiltersRefs {
        Id: "mir-offers-quick-touch"
        Type: CT_QuickFilter
        QuickFilterId: "mir-offers-quick-touch"
        Tag: "mir"
        Tag: "no-white-label"
        Tag: "touch"
    }
    QuickFiltersRefs {
        Id: "yandex-plus-quick-touch"
        Type: CT_QuickFilter
        QuickFilterId: "yandex-plus-quick-touch"
        Tag: "no-black-friday"
        Tag: "no-white-label"
        Tag: "touch"
    }
    QuickFiltersRefs {
        Id: "quick-sort-touch"
        Type: CT_QuickSort
        Tag: "touch"
    }
    QuickFiltersRefs {
        Id: "quick-price-filter-touch"
        Type: CT_QuickPriceFilter
        Tag: "touch"
    }
    QuickFiltersRefs {
        Id: "black-friday-quick-touch"
        Type: CT_QuickFilter
        QuickFilterId: "black-friday-quick-touch"
        Tag: "black-friday"
        Tag: "no-white-label"
        Tag: "touch"
    }
    QuickFiltersRefs {
        Id: "free-cancellation-quick"
        Type: CT_QuickFilter
        QuickFilterId: "free-cancellation-quick"
        Tag: "touch"
    }
    QuickFiltersRefs {
        Id: "breakfast-included-quick"
        Type: CT_QuickFilter
        QuickFilterId: "breakfast-included-quick"
        Tag: "touch"
    }
    QuickFiltersRefs {
        Id: "all-inclusive-quick"
        Type: CT_QuickFilter
        QuickFilterId: "all-inclusive-quick"
        Tag: "touch"
    }
    QuickFiltersRefs {
        Id: "5-stars"
        Type: CT_QuickFilter
        QuickFilterId: "5-stars"
        Tag: "touch"
    }

    Batches {
        Items { PriceItem {} }
        Items { GroupItem { Id: "pansion" } }
        Items { GroupItem { Id: "stars" } }
        Items { GroupItem { Id: "places-nearby" } }
    }

    Batches {
        Items { GroupItem { Id: "facilities" } }
        Items { GroupItem { Id: "ratings" } }
    }

    Batches {
        Tag: "white-label"
        Items { GroupItem { Id: "distance-to-city-center" } }
        Items { GroupItem { Id: "category" } }
        Items { GroupItem { Id: "options-white-label" } }
    }

    Batches {
        Tag: "not-mir"
        Tag: "no-black-friday"
        Tag: "no-white-label"
        Items { GroupItem { Id: "distance-to-city-center" } }
        Items { GroupItem { Id: "category" } }
        Items { GroupItem { Id: "options-not-mir-no-black-friday" } }
    }
    Batches {
        Tag: "not-mir"
        Tag: "black-friday"
        Tag: "no-white-label"
        Items { GroupItem { Id: "distance-to-city-center" } }
        Items { GroupItem { Id: "category" } }
        Items { GroupItem { Id: "options-not-mir-black-friday" } }
    }

    Batches {
        Tag: "mir"
        Tag: "no-black-friday"
        Tag: "no-white-label"
        Items { GroupItem { Id: "distance-to-city-center" } }
        Items { GroupItem { Id: "category" } }
        Items { GroupItem { Id: "options-mir" } }
    }

    Batches {
        Tag: "testing"
        Items { GroupItem { Id: "partners" } }
        Items { GroupItem { Id: "hotel-chains" } }
    }

    Batches {
        Tag: "only-requested-geo-id"
        Tag: "desktop"
        Tag: "is-moscow-area-exp"
        Items { GroupItem { Id: "only-requested-geo-id" } }
    }
}

FiltersLayouts {
    Id: "seo-filters-exp"

    # Desktop
    QuickFiltersRefs {
        Id: "yandex-plus-quick-desktop"
        Type: CT_QuickFilter
        Tag: "desktop"
    }
    QuickFiltersRefs {
        Id: "mir-offers-quick-desktop"
        Type: CT_QuickFilter
        Tag: "mir"
        Tag: "desktop"
    }

    # Touch
    QuickFiltersRefs {
        Id: "yandex-plus-quick-touch"
        Type: CT_QuickFilter
        Tag: "touch"
    }


    Batches {
        Items { PriceItem {} }
        Items { GroupItem { Id: "stars" } }
        Items { GroupItem { Id: "ratings" } }
    }

    Batches {
        Tag: "not-mir"
        Items { GroupItem { Id: "options-not-mir-no-black-friday" } }
        Items { GroupItem { Id: "facilities" } }
    }
    Batches {
        Tag: "mir"
        Items { GroupItem { Id: "options-mir" } }
        Items { GroupItem { Id: "facilities" } }
    }

    Batches {
        Items { GroupItem { Id: "pansion" } }
        Items { GroupItem { Id: "category" } }
    }
}

QuickFilters {
    Id: "3-and-more-stars"

    Name: "3* и выше"

    AtomsOff: "star:one"
    AtomsOff: "star:two"

    AtomsOn: "star:three"
    AtomsOn: "star:four"
    AtomsOn: "star:five"
}

QuickFilters {
    Id: "5-stars"

    Name: "5 звезд"

    AtomsOn: "star:five"
}

QuickFilters {
    Id: "free-cancellation-quick"

    Name: "Бесплатная отмена"

    AtomsOn: "hotel_free_cancellation:1"
}

QuickFilters {
    Id: "yandex-offers-quick"

    Name: "Оплата на Я.Путешествиях"

    AtomsOn: "FAKE-ID-yandex-offers:1"
}

QuickFilters {
    Id: "yandex-plus-quick-desktop"

    Name: "Кешбэк Плюса"

    Effect: "yandex-plus"

    AtomsOn: "FAKE-ID-yandex-offers:1"
}

QuickFilters {
    Id: "yandex-plus-quick-touch"

    Name: ""

    Effect: "yandex-plus"

    AtomsOn: "FAKE-ID-yandex-offers:1"
}

QuickFilters {
    Id: "black-friday-quick-desktop"

    Name: "Чёрная пятница"

    Effect: "yandex-plus"  # Front uses some hacks based on yandex-plus value

    AtomsOn: "FAKE-ID-yandex-offers:1"
}

QuickFilters {
    Id: "black-friday-quick-touch"

    Name: ""

    Effect: "yandex-plus" # Front uses some hacks based on yandex-plus value

    AtomsOn: "FAKE-ID-yandex-offers:1"
}

QuickFilters {
    Id: "mir-offers-quick-desktop"

    Name: "Возврат 20%"

    Hint: "Бронируйте сейчас от 2 ночей на даты с 01.10.2021 по 24.12.2021 и получите возврат 20% по карте «Мир»"

    Effect: "mir-cashback"

    AtomsOn: "FAKE-ID-mir-offers:1"
}

QuickFilters {
    Id: "mir-offers-quick-touch"

    Name: "20%"

    Effect: "mir-cashback"

    AtomsOn: "FAKE-ID-mir-offers:1"
}

QuickFilters {
    Id: "breakfast-included-quick"

    Name: "С завтраком"

    AtomsOn: "hotel_pansion_with_offerdata:hotel_pansion_breakfast_included"
}

QuickFilters {
    Id: "all-inclusive-quick"

    Name: "Всё включено"

    AtomsOn: "hotel_pansion_with_offerdata:hotel_pansion_all_inclusive"
}

DetailedFilters {
    Id: "stars"
    Name: "Звёздность"
    Type: Or
    Items {
        Name: "Без звёзд"
        Filter {
            UniqueId: "stars-no"
            FeatureId: "star"
            ListValue: { Value: "unrated" }
        }
    }
    Items {
        Name: "1*"
        Filter {
            UniqueId: "stars-1"
            FeatureId: "star"
            ListValue: { Value: "one" }
        }
        SpecialNameForResetAction: "1 звезда"
    }
    Items {
        Name: "2*"
        Filter {
            UniqueId: "stars-2"
            FeatureId: "star"
            ListValue: { Value: "two" }
        }
        SpecialNameForResetAction: "2 звезды"
    }
    Items {
        Name: "3*"
        Filter {
            UniqueId: "stars-3"
            FeatureId: "star"
            ListValue: { Value: "three" }
        }
        SpecialNameForResetAction: "3 звезды"
    }
    Items {
        Name: "4*"
        Filter {
            UniqueId: "stars-4"
            FeatureId: "star"
            ListValue: { Value: "four" }
        }
        SpecialNameForResetAction: "4 звезды"
    }
    Items {
        Name: "5*"
        Filter {
            UniqueId: "stars-5"
            FeatureId: "star"
            ListValue: { Value: "five" }
        }
        SpecialNameForResetAction: "5 звёзд"
    }
}

DetailedFilters {
    Id: "ratings"
    Name: "Рейтинг"
    Type: Single
    Items {
        Name: "С любым рейтингом"
        Effect: "rating:any"
        Filter {
            UniqueId: "rating-any"
            FeatureId: "rating"
            IgnoredValue: { } # any or absent
        }
    }
    Items {
        Name: "4.5 и выше"
        Effect: "rating:4.5"
        Filter {
            UniqueId: "rating-4.5"
            FeatureId: "rating"
            ComparableValue: { Mode: GreaterOrEqual; Value: 4.5 }
        }
        SpecialNameForResetAction: "Рейтинг 4.5 и выше"
    }
    Items {
        Name: "4 и выше"
        Effect: "rating:4"
        Filter {
            UniqueId: "rating-4"
            FeatureId: "rating"
            ComparableValue: { Mode: GreaterOrEqual; Value: 4 }
        }
        SpecialNameForResetAction: "Рейтинг 4 и выше"
    }
    Items {
        Name: "3 и выше"
        Effect: "rating:3"
        Filter {
            UniqueId: "rating-3"
            FeatureId: "rating"
            ComparableValue: { Mode: GreaterOrEqual; Value: 3 }
        }
        SpecialNameForResetAction: "Рейтинг 3 и выше"
    }
}

DetailedFilters {
    Id: "facilities"
    Name: "Удобства"
    Type: And
    Items {
        Name: "Wi-Fi"
        Filter {
            UniqueId: "wi_fi"
            FeatureId: "wi_fi"
            ListValue: { Value: "1" }
        }
    }
    Items {
        Name: "Кондиционер"
        Filter {
            UniqueId: "air_conditioning"
            FeatureId: "air_conditioning"
            ListValue: { Value: "1" }
        }
    }
    Items {
        Name: "Бассейн"
        Filter {
            UniqueId: "pool"
            FeatureId: "pool"
            ListValue: { Value: "1" }
        }
    }
    Items {
        Name: "Парковка"
        Filter {
            UniqueId: "car_park"
            FeatureId: "car_park"
            ListValue: { Value: "1" }
        }
    }
    Items {
        Name: "SPA"
        Filter {
            UniqueId: "spa"
            FeatureId: "spa"
            ListValue: { Value: "1" }
        }
    }
    Items {
        Name: "Можно с животными"
        Filter {
            UniqueId: "pets"
            FeatureId: "pets"
            ListValue: { Value: "1" }
        }
    }
    Items {
        Name: "Сауна"
        Filter {
            UniqueId: "sauna"
            FeatureId: "sauna"
            ListValue: { Value: "1" }
        }
    }
    Items {
        Name: "Баня"
        Filter {
            UniqueId: "bathhouse"
            FeatureId: "bathhouse"
            ListValue: { Value: "1" }
        }
    }
    Items {
        Name: "Ресторан"
        Filter {
            UniqueId: "has_restaurant"
            FeatureId: "has_restaurant"
            ListValue: { Value: "1" }
        }
    }
    Items {
        Name: "Кафе"
        Filter {
            UniqueId: "cafe"
            FeatureId: "cafe"
            ListValue: { Value: "1" }
        }
    }
    Items {
        Name: "Фитнес"
        Filter {
            UniqueId: "gym"
            FeatureId: "gym"
            ListValue: { Value: "1" }
        }
    }
    Items {
        Name: "Трансфер"
        Filter {
            UniqueId: "transfer"
            FeatureId: "transfer"
            ListValue: { Value: "1" }
        }
    }
}


DetailedFilters {
    Id: "options-white-label"
    Name: "Опции"
    Type: And
    Items {
        Name: "Бесплатная отмена"
        Filter {
            UniqueId: "free_cancellation"
            FeatureId: "free_cancellation"
            GeoSearchBusinessId: "hotel_free_cancellation"
            ListValue: { Value: "1" }
        }
    }
}


DetailedFilters {
    Id: "options-not-mir-no-black-friday"
    Name: "Опции"
    Type: And
    Items {
        Name: "Бесплатная отмена"
        Filter {
            UniqueId: "free_cancellation"
            FeatureId: "free_cancellation"
            GeoSearchBusinessId: "hotel_free_cancellation"
            ListValue: { Value: "1" }
        }
    }
    Items {
        Name: "Кешбэк Плюса"
        Persistent: true
        Filter {
            UniqueId: "yandex-offers"
            FeatureId: "FAKE-ID-yandex-offers"
            ListValue: { Value: "1";}
        }
    }
}

DetailedFilters {
    Id: "options-not-mir-black-friday"
    Name: "Опции"
    Type: And
    Items {
        Name: "Бесплатная отмена"
        Filter {
            UniqueId: "free_cancellation"
            FeatureId: "free_cancellation"
            GeoSearchBusinessId: "hotel_free_cancellation"
            ListValue: { Value: "1" }
        }
    }
    Items {
        Name: "Чёрная пятница"
        Persistent: true
        Filter {
            UniqueId: "yandex-offers"
            FeatureId: "FAKE-ID-yandex-offers"
            ListValue: { Value: "1";}
        }
    }
}

DetailedFilters {
    Id: "options-mir"
    Name: "Опции"
    Type: And
    Items {
        Name: "Бесплатная отмена"
        Filter {
            UniqueId: "free_cancellation"
            FeatureId: "free_cancellation"
            GeoSearchBusinessId: "hotel_free_cancellation"
            ListValue: { Value: "1" }
        }
    }
    Items {
        Name: "Кешбэк Плюса"
        Persistent: true
        Filter {
            UniqueId: "yandex-offers"
            FeatureId: "FAKE-ID-yandex-offers"
            ListValue: { Value: "1";}
        }
    }
    Items {
        Name: "Возврат 20% по карте «Мир» (от 2 ночей)"
        Persistent: true
        Filter {
            UniqueId: "mir-offers"
            FeatureId: "FAKE-ID-mir-offers"
            ListValue: { Value: "1";}
        }
    }
}

DetailedFilters {
    Id: "pansion"
    Name: "Питание"
    Type: Or
    Items {
        Name: "Завтрак"
        Filter {
            UniqueId: "breakfast_included"
            FeatureId: "hotel_pansion"
            GeoSearchBusinessId: "hotel_pansion_with_offerdata"
            ListValue: { Value: "hotel_pansion_breakfast_included" }
        }
    }
    Items {
        Name: "Полупансион"
        Filter {
            UniqueId: "breakfast_dinner_included"
            FeatureId: "hotel_pansion"
            GeoSearchBusinessId: "hotel_pansion_with_offerdata"
            ListValue: { Value: "hotel_pansion_breakfast_dinner_included" }
        }
    }
    Items {
        Name: "Завтрак, обед и ужин"
        Filter {
            UniqueId: "breakfast_lunch_dinner_included"
            FeatureId: "hotel_pansion"
            GeoSearchBusinessId: "hotel_pansion_with_offerdata"
            ListValue: { Value: "hotel_pansion_breakfast_lunch_dinner_included" }
        }
    }
    Items {
        Name: "Всё включено"
        Filter {
            UniqueId: "all_inclusive"
            FeatureId: "hotel_pansion"
            GeoSearchBusinessId: "hotel_pansion_with_offerdata"
            ListValue: { Value: "hotel_pansion_all_inclusive" }
        }
    }
    Items {
        Name: "Без питания"
        Filter {
            UniqueId: "no_pansion_included"
            FeatureId: "hotel_pansion"
            GeoSearchBusinessId: "hotel_pansion_with_offerdata"
            ListValue: { Value: "hotel_pansion_no_pansion_included" }
        }
    }
}

DetailedFilters {
    Id: "category"
    Name: "Тип размещения"
    Type: Or
    Items {
        Name: "Гостиница"
        Filter {
            UniqueId: "category_184106414"
            FeatureId: "category_id"
            ListValue: { Value: "184106414" }
        }
    }
    Items {
        Name: "Санаторий"
        Filter {
            UniqueId: "category_184106404"
            FeatureId: "category_id"
            ListValue: { Value: "184106404" }
        }
    }
    Items {
        Name: "Дом отдыха"
        Filter {
            UniqueId: "category_184106400"
            FeatureId: "category_id"
            ListValue: { Value: "184106400" }
        }
    }
    Items {
        Name: "Хостел"
        Filter {
            UniqueId: "category_20699506347"
            FeatureId: "category_id"
            ListValue: { Value: "20699506347" }
        }
    }
    Items {
        Name: "Турбаза"
        Filter {
            UniqueId: "category_184106426"
            FeatureId: "category_id"
            ListValue: { Value: "184106426" }
        }
    }
    Items {
        Name: "Кемпинг"
        Filter {
            UniqueId: "category_184106420"
            FeatureId: "category_id"
            ListValue: { Value: "184106420" }
        }
    }
}

DetailedFilters {
    Id: "partners"
    Name: "Партнёры"
    Type: Or
    Items {
        Name: "Booking"
        Filter {
            UniqueId: "partner-booking"
            FeatureId: "hotel_provider"
            ListValue: { Value: "PI_BOOKING" }
        }
    }
    Items {
        Name: "101hotels"
        Filter {
            UniqueId: "partner-101hotels"
            FeatureId: "hotel_provider"
            ListValue: { Value: "PI_HOTELS101" }
        }
    }
    Items {
        Name: "Hotelscombined"
        Filter {
            UniqueId: "partner-hotelscombined"
            FeatureId: "hotel_provider"
            ListValue: { Value: "PI_HOTELSCOMBINED" }
        }
    }
    Items {
        Name: "Ostrovok"
        Filter {
            UniqueId: "partner-ostrovok"
            FeatureId: "hotel_provider"
            ListValue: { Value: "PI_OSTROVOK" }
        }
    }
    Items {
        Name: "TVIL"
        Filter {
            UniqueId: "partner-tvil"
            FeatureId: "hotel_provider"
            ListValue: { Value: "PI_TVIL" }
        }
    }
    # BoY Parnters
    Items {
        Name: "Travelline"
        Filter {
            UniqueId: "partner-travelline"
            FeatureId: "hotel_provider"
            ListValue: { Value: "PI_TRAVELLINE" }
        }
    }
    Items {
        Name: "Expedia"
        Filter {
            UniqueId: "partner-expedia"
            FeatureId: "hotel_provider"
            ListValue: { Value: "PI_EXPEDIA" }
        }
    }
    Items {
        Name: "Dolphin"
        Filter {
            UniqueId: "partner-dolphin"
            FeatureId: "hotel_provider"
            ListValue: { Value: "PI_DOLPHIN" }
        }
    }
    Items {
        Name: "BNovo"
        Filter {
            UniqueId: "partner-bnovo"
            FeatureId: "hotel_provider"
            ListValue: { Value: "PI_BNOVO" }
        }
    }

    Items {
        Name: "Bronevik"
        Filter {
            UniqueId: "partner-bronevik"
            FeatureId: "hotel_provider"
            ListValue: { Value: "PI_BRONEVIK" }
        }
    }
}

DetailedFilters {
    Id: "places-nearby"
    Name: "Рядом"
    Type: And
    Items {
        Name: "Море"
        Filter {
            UniqueId: "hotel_sea_nearby"
            FeatureId: "hotel_sea_nearby"
            ListValue: { Value: "1" }
        }
        SpecialNameForResetAction: "Рядом море"
    }
    Items {
        Name: "Парк"
        Filter {
            UniqueId: "hotel_park_nearby"
            FeatureId: "hotel_park_nearby"
            ListValue: { Value: "1" }
        }
        SpecialNameForResetAction: "Рядом парк"
    }
    Items {
        Name: "Аэропорт"
        Filter {
            UniqueId: "hotel_airport_nearby"
            FeatureId: "hotel_airport_nearby"
            ListValue: { Value: "1" }
        }
        SpecialNameForResetAction: "Рядом аэропорт"
    }
}

DetailedFilters {
    Id: "distance-to-city-center"
    Name: "До центра"
    Type: Or
    Items {
        Name: "Меньше 1 км"
        Filter {
            UniqueId: "hotel_city_center_dist_category_less_1"
            FeatureId: "hotel_city_center_dist_category"
            ListValue: { Value: "hotel_city_center_dist_category_less_1" }
        }
        SpecialNameForResetAction: "До центра меньше 1 км"
    }
    Items {
        Name: "Меньше 2 км"
        Filter {
            UniqueId: "hotel_city_center_dist_category_less_2"
            FeatureId: "hotel_city_center_dist_category"
            ListValue: { Value: "hotel_city_center_dist_category_less_2" }
        }
        SpecialNameForResetAction: "До центра меньше 2 км"
    }
    Items {
        Name: "Меньше 3 км"
        Filter {
            UniqueId: "hotel_city_center_dist_category_less_3"
            FeatureId: "hotel_city_center_dist_category"
            ListValue: { Value: "hotel_city_center_dist_category_less_3" }
        }
        SpecialNameForResetAction: "До центра меньше 3 км"
    }
}

DetailedFilters {
    Id: "hotel-chains"
    Name: "Сети"
    Type: Or
    Items {
        Name: "Radisson"
        Filter {
            UniqueId: "chain_radisson"
            FeatureId: "hotel_chain_ids"
            ListValue: { Value: "104369396414"; Value: "226226277119" }
        }
    }
    Items {
        Name: "Holiday Inn"
        Filter {
            UniqueId: "chain_holiday_inn"
            FeatureId: "hotel_chain_ids"
            ListValue: { Value: "584548812" }
        }
    }
}

DetailedFilters {
    Id: "only-requested-geo-id"
    Name: ""
    Type: And
    Items {
        Name: "Московская область"
        Filter {
            UniqueId: "only_moscow_region"
            FeatureId: "geo_ids"
            ListValue: { Value: "1" }
        }
    }
    Items {
        Name: "Ленинградская область"
        Filter {
            UniqueId: "only_leningrad_region"
            FeatureId: "geo_ids"
            ListValue: { Value: "10174" }
        }
    }
}

DetailedFilters {
    Id: "BACKEND-only-boy-offers-for-white-label"
    Name: ""
    Type: And
    Items {
        Name: ""
        Filter {
            UniqueId: "BACKEND-only-boy-offers-for-white-label"
            FeatureId: "FAKE-ID-only-boy-offers"
            ListValue: { Value: "1" }
        }
    }
}
