.backgroud {
    font-family: 'Oswald', sans-serif;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    height: 350px;
    padding-top: 10vh;
    flex-direction: column;
}
.pre-filter{

}
.selecter-filter-list {
    min-width: 65%;
    display: flex;
    align-items: center;
    justify-content: space-around;
}
.map-filter-backgroud {
    font-family: 'Oswald', sans-serif;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    position: absolute;
    z-index: 1000;
    width: 100%;
    justify-content: center;
    flex-direction: column;
}
.map-filter-backgroud::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-size: 100% auto;
    z-index: -1;
}
.backgroud::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('../images/background.jpg') no-repeat center center;
    background-size: 100% auto;
    z-index: -1;
}
.filter-container {
    display: flex;
    align-items: center;
    background: white;
    padding: 25px 40px;
    border-radius: 10px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    gap: 15px;
    position: relative;
}
.filter-container-map {
    display: flex;
    align-items: center;
    background: white;
    padding: 25px 40px;
    border-radius: 10px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    gap: 15px;
    position: relative;
    margin-top: 10vh;
}
.search-container {
    display: flex;
    gap: 10px;
    position: relative;
    margin-left: auto;
}
.filter-categories-item {
    position: relative;
}
.filter-rooms-item {
    position: relative;
}
.filter-prices-item {
    position: relative;
}
.filter-additionally-item {
    position: relative;
}
.dropdown-btn {
    padding: 15px 22px;
    border: none;
    color: black;
    background: white;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 400;
    font-size: 16px;
    border: 2px solid transparent;
    transition: 0.3s;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
}
.dropdown-btn:hover {
    background: #f7f7f7;
    border-color: #f1c40f;
}
.dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    padding: 20px;
    z-index: 1000;
    width: max-content;
    min-width: 350px;
}

.dropdown-content-rooms {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    padding: 20px;
    z-index: 1000;
    width: max-content;
    min-width: 500px;
}
.dropdown-content-prices {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    padding: 10px;
    z-index: 1000;
    width: max-content;
    min-width: 350px;
}
.dropdown-content-additionally{
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    padding: 15px;
    min-width: 500px;
    z-index: 1000;
    max-height: 400px;
    overflow-y: auto;
    padding: 10px;
}
.dropdown-content-additionally::-webkit-scrollbar {
  width: 8px;
}
.dropdown-content-additionally::-webkit-scrollbar-track {
  background: #f1f1f1;
}
.dropdown-content-additionally::-webkit-scrollbar-thumb {
  background: #888;
  border-radius: 4px;
}
.filter-categories-item:hover .dropdown-content {
    display: flex;
    flex-wrap: wrap; 
    gap: 10px;
    animation: fadeIn 0.2s ease-in-out;
    justify-content: center;
}
.filter-rooms-item:hover .dropdown-content-rooms {
    display: flex;
    flex-wrap: nowrap; 
    animation: fadeIn 0.2s ease-in-out;
    justify-content: center;
}
.filter-prices-item:hover .dropdown-content-prices {
    display: flex;
    flex-wrap: nowrap; 
    animation: fadeIn 0.2s ease-in-out;
    justify-content: center;
}
.filter-additionally-item:hover .dropdown-content-additionally {
    display: flex;
    flex-wrap: wrap;
    animation: fadeIn 0.2s ease-in-out;
}

.dropdown-item {
    width: 100%; /* Занимает всю ширину */
    display: flex;
    align-items: center;
    transition: background 0.3s ease-in-out;
    font-size: 16px;
    font-weight: 400;
}
.dropdown-room-item{
    width: 100%;
    display: flex;
    align-items: center;
    transition: background 0.3s ease-in-out;
    font-size: 16px;
    font-weight: 400;
    border: none;
    background: white;
    border-radius: 7px;
    cursor: pointer;
    border: 1px solid transparent;
    transition: 0.3s;
    box-shadow: 0 15px 20px rgba(0, 0, 0, 0.1);
    margin-right: 5px;
}
.dropdown-price-item{
    width: 100%;
    display: flex;
    align-items: center;
    transition: background 0.3s ease-in-out;
    font-size: 16px;
    font-weight: 400;
    border: none;
    background: white;
    border-radius: 7px;
    cursor: pointer;
    border: 1px solid transparent;
    transition: 0.3s;
    box-shadow: 0 15px 20px rgba(0, 0, 0, 0.1);
    margin-right: 5px;
}
.dropdown-additionally-item{
    width: 150px;
    display: flex;
    align-items: center;
    transition: background 0.3s ease-in-out;
    font-size: 16px;
    font-weight: 400;
    border: none;
    background: white;
    border-radius: 7px;
    cursor: pointer;
    border: 1px solid transparent;
    transition: 0.3s;
    box-shadow: 0 15px 20px rgba(0, 0, 0, 0.1);
}
.dropdown-floor-item{
    width: 150px;
    display: flex;
    align-items: center;
    transition: background 0.3s ease-in-out;
    font-size: 16px;
    font-weight: 400;
    border: none;
    background: white;
    border-radius: 7px;
    cursor: pointer;
    border: 1px solid transparent;
    transition: 0.3s;
    box-shadow: 0 15px 20px rgba(0, 0, 0, 0.1);
}
.dropdown-thice-item{
    width: 100%;
    display: flex;
    align-items: center;
    transition: background 0.3s ease-in-out;
    font-size: 16px;
    font-weight: 400;
    border: none;
    background: white;
    border-radius: 7px;
    cursor: pointer;
    border: 1px solid transparent;
    transition: 0.3s;
    box-shadow: 0 15px 20px rgba(0, 0, 0, 0.1);
}
.dropdown-item:hover{
    border-left: 2px solid #ccc;
    border-color: #f1c40f;
    transform: scale(1.05);   
}
.dropdown-room-item:hover{
    border-bottom: 2px solid #ccc;
    border-color: #f1c40f;
    transform: scale(1.05);   
}
.dropdown-price-item:hover{
    border-bottom: 2px solid #ccc;
    border-color: #f1c40f;
    transform: scale(1.05);   
}
.dropdown-additionally-item:hover{
    border-bottom: 2px solid #ccc;
    border-color: #f1c40f;
    transform: scale(1.05);   
}
.dropdown-floor-item:hover{
    border-bottom: 2px solid #ccc;
    border-color: #f1c40f;
    transform: scale(1.05);   
}
.dropdown-thice-item:hover{
    border-bottom: 2px solid #ccc;
    border-color: #f1c40f;
    transform: scale(1.05);   
}
.filter-group {
    position: relative;
    color: #495057;
    display: flex;
}
.filter-group label {
    cursor: pointer;
    padding: 8px 15px;
    border-radius: 5px;
    transition: all 0.3s;
    display: block;
}

.filter-group label:hover {
    background: rgba(0, 0, 0, 0.1);
}
input[class="search-box"] {
    border: 1px solid #ced4da;
    border-radius: 5px;
    font-size: 22px;
    max-width: 120px;
    min-height: 40px;
    font-weight: 400;
    text-align: end;
}
.dropdown-item input[type="checkbox"] {
    display: none;
}
.dropdown-room-item input[type="checkbox"] {
    display: none;
}
.dropdown-additionally-item input[type="checkbox"] {
    display: none;
}
.dropdown-floor-item input[type="checkbox"] {
    display: none;
}
.dropdown-thice-item input[type="checkbox"] {
    display: none;
}
.dropdown-item label {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    padding: 10px;
    border-radius: 5px;
    transition: background 0.3s ease-in-out;
}
.dropdown-room-item label {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    padding: 10px;
    border-radius: 5px;
    transition: background 0.3s ease-in-out;
}
.dropdown-additionally-item label {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    padding: 10px;
    border-radius: 5px;
    transition: background 0.3s ease-in-out;
}
.dropdown-floor-item label {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    padding: 10px;
    border-radius: 5px;
    transition: background 0.3s ease-in-out;
}
.dropdown-thice-item label {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    padding: 10px;
    border-radius: 5px;
    transition: background 0.3s ease-in-out;
}
.dropdown-item label::before {
    content: "";
    width: 20px;
    height: 20px;
    border: 1px solid #ccc;
    background: white;
    border-radius: 4px;
    transition: background 0.3s, border-color 0.3s;
}
.dropdown-room-item label::before {
    content: "";
    width: 20px;
    height: 20px;
    border: 1px solid #ccc;
    background: white;
    border-radius: 4px;
    transition: background 0.3s, border-color 0.3s;
}
.dropdown-additionally-item label::before {
    content: "";
    width: 20px;
    height: 20px;
    border: 1px solid #ccc;
    background: white;
    border-radius: 4px;
    transition: background 0.3s, border-color 0.3s;
}
.dropdown-floor-item label::before {
    content: "";
    width: 20px;
    height: 20px;
    border: 1px solid #ccc;
    background: white;
    border-radius: 4px;
    transition: background 0.3s, border-color 0.3s;
}
.dropdown-thice-item label::before {
    content: "";
    width: 20px;
    height: 20px;
    border: 1px solid #ccc;
    background: white;
    border-radius: 4px;
    transition: background 0.3s, border-color 0.3s;
}
.dropdown-item input[type="checkbox"]:checked + label {
    color: black;
    width: 100%;
}
.dropdown-room-item input[type="checkbox"]:checked + label {
    color: black;
    width: 100%;
}
.dropdown-additionally-item input[type="checkbox"]:checked + label {
    color: black;
    width: 100%;
}
.dropdown-floor-item input[type="checkbox"]:checked + label {
    color: black;
    width: 100%;
}
.dropdown-thice-item input[type="checkbox"]:checked + label {
    color: black;
    width: 100%;
}
.dropdown-item input[type="checkbox"]:checked + label::before {
    background: white;
    border-color: black;
    content: "✔";
    font-size: 16px;
    color: black;
    text-align: center;
    line-height: 20px;
}
.dropdown-room-item input[type="checkbox"]:checked + label::before {
    background: white;
    border-color: black;
    content: "✔";
    font-size: 16px;
    color: black;
    text-align: center;
    line-height: 20px;
}
.dropdown-additionally-item input[type="checkbox"]:checked + label::before {
    background: white;
    border-color: black;
    content: "✔";
    font-size: 16px;
    color: black;
    text-align: center;
    line-height: 20px;
}
.dropdown-floor-item input[type="checkbox"]:checked + label::before {
    background: white;
    border-color: black;
    content: "✔";
    font-size: 16px;
    color: black;
    text-align: center;
    line-height: 20px;
}
.dropdown-thice-item input[type="checkbox"]:checked + label::before {
    background: white;
    border-color: black;
    content: "✔";
    font-size: 16px;
    color: black;
    text-align: center;
    line-height: 20px;
}
.filter-title {
    font-size: 20px;
    font-weight: 400;
    text-align: center;
    margin-bottom: 1vh;
    width: 100%;
}
.filter-additionally-list{
    margin-top: 1vh;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}
.filter-thice-list{
    margin-top: 1vh;
    display: flex;
    gap: 10px;
    flex-wrap: nowrap;
}
.filter-floor-list{
    margin-top: 1vh;
    display: flex;
    gap: 10px;
    flex-wrap: nowrap;
}
.filter-place-list{
    margin-top: 1vh;
    display: flex;
    gap: 10px;
    flex-wrap: nowrap;
}
input[type="text"] {
    box-sizing: border-box;
    border: 1px solid #ced4da;
    border-radius: 5px;
    font-size: 22px;
    margin-right: 1vh;
    width: 100%;
    min-height: 40px;
    font-weight: 400;
    text-align: end;
}
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(5px); }
    to { opacity: 1; transform: translateY(0); }
}
.search-box {
    padding: 15px;
    border: 2px solid #ddd;
    border-radius: 8px;
    flex-grow: 1;
    min-width: 35vh;
    font-size: 16px;
    font-weight: 500;
    box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.1);
}
.search-btn {
    padding: 1vh 3vh;
    background: white;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-weight: 400;
    font-size: 16px;
    cursor: pointer;
    transition: 0.3s;
    color: black;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
}
.search-btn:hover {
    background: #f7f7f7;
    border-color: #f1c40f;
}
.search-btn.yellow {
    background: #ffcc00;
    color: #000;
    border: none;
    font-weight: 400;
}
.filter-line {
    position: absolute;
    right: 0;
    width: 6px;
    height: 100%;
    background: #f1c40f;
    border-radius: 3px;
}
.filter-category {
    margin-bottom: 3vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}
/* Стили для заблокированных чекбоксов */
input[type="checkbox"]:disabled + label {
    opacity: 0.5;
    cursor: not-allowed;
}
input:disabled ~ .dropdown-content::after {
    display: block;
}
.address-suggestions {
    position: absolute;
    top: calc(100% + 5px); /* Отступ от поля ввода */
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    max-height: 300px;
    overflow-y: auto;
    margin-top: 8px;
}

.suggestion-item {
    padding: 10px 15px;
    cursor: pointer;
    transition: background 0.2s;
    border-bottom: 1px solid #eee;
}

.suggestion-item:last-child {
    border-bottom: none;
}

.suggestion-item:hover {
    background: #f8f9fa;
}

.suggestion-item strong {
  color: #ff6b6b;
  font-weight: 600;
}
.selected-filters {
    display: flex;
    gap: 10px;
}

.clear-filters-btn {
  display: none; /* По умолчанию скрыта */
}

.filters-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 10px;
}

.filter-chip {
    background-color: white;
    padding: 10px 15px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: 0.3s;
}
.filter-chip:hover{
    background-color: #ffcc00;
    cursor: pointer;
}

.clear-filters-btn {
    margin-top: 10px;
    padding: 10px 15px;
    background-color: #f44336;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    max-height: fit-content;
}

.clear-filters-btn:hover {
  background-color: #d32f2f;
  cursor: pointer;
}

.remove-chip-btn {
  background: none;
  border: none;
  color: #333;
  font-size: 16px;
  cursor: pointer;
}

@media (max-width: 1150px) {
    .filter-container {
        flex-direction: column;
        gap: 10px;
        align-items: normal;
        border-radius: 0;
    }

    .search-container input[type="text"] {
        min-width: 100%;
        margin: 0;
    }

    .backgroud, .map-filter-backgroud {
        height: auto;
        align-items: normal;
    }


    .filter-container-map {
        display: none;
    }

    .selecter-filter-list {
        flex-wrap: wrap;
        gap: 10px;
        min-width: 100%;
        margin-bottom: 1vh;
    }

    .dropdown-content,
    .dropdown-content-rooms,
    .dropdown-content-prices,
    .dropdown-content-additionally {
        position: static;
        min-width: 100%;
        width: 100%;
        box-shadow: none;
        padding: 15px;
    }

    .dropdown-btn {
        width: 100%;
        text-align: center;
    }

    .search-container {
        width: 100%;
        margin-top: 15px;
        justify-content: center;
        display: flex;
        flex-direction: column;
    }
}

@media (max-width: 768px) {
    .backgroud,
    .map-filter-backgroud {
        height: auto;
        align-items: normal;
    }

    .filter-rooms-item:hover .dropdown-content-rooms {
    display: flex;
    flex-wrap: nowrap;
    flex-direction: column;
    animation: fadeIn 0.2s ease-in-out;
    justify-content: center;
    gap: 1vh;
}

    .filter-container {
        flex-direction: column;
        gap: 10px;
        align-items: normal;
        border-radius: 0;
    }

    .filter-container-map {
        display: none;
    }

    .search-container input[type="text"]{
        min-width: 100%;
        margin: 0;
    }

    .dropdown-content-additionally {
        max-height: 250px;
    }

    .dropdown-btn {
        font-size: 14px;
        padding: 12px 18px;
    }

    .dropdown-item,
    .dropdown-room-item,
    .dropdown-price-item,
    .dropdown-additionally-item,
    .dropdown-floor-item,
    .dropdown-thice-item {
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .dropdown-content,
    .dropdown-content-rooms,
    .dropdown-content-prices,
    .dropdown-content-additionally {
        padding: 10px;
    }

    .dropdown-additionally-item,
    .dropdown-floor-item {
        width: 100%;
        justify-content: center;
    }

    .filter-group label {
        font-size: 14px;
        padding: 6px 10px;
    }

    .dropdown-item:hover,
    .dropdown-room-item:hover,
    .dropdown-price-item:hover,
    .dropdown-additionally-item:hover,
    .dropdown-floor-item:hover,
    .dropdown-thice-item:hover {
        transform: none;
        border-color: #f1c40f;
    }
}
