.search-panel {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 80%;
  max-width: 1400px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  border-radius: 32px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
  padding: 32px 40px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  z-index: 2;
}

.search-panel__title {
  font-size: 32px;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 8px;
}

.search-row {
  display: flex;
  gap: 12px;
  width: 100%;
}

.search-input-wrapper {
  flex: 1;
  position: relative;
}

.search-input-wrapper input {
  width: 100%;
  padding: 16px 20px;
  border: 1px solid #e2e8f0;
  border-radius: 20px;
  font-size: 16px;
  background: white;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.search-input-wrapper input:focus {
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
  outline: none;
}

.search-submit {
  background: #2563eb;
  color: white;
  border: none;
  border-radius: 20px;
  padding: 0 32px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
  white-space: nowrap;
}

.search-submit:hover {
  background: #1d4ed8;
}

.range-row {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 20px 30px;
}
.range-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.filters-advanced {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 16px 24px;
    margin-left: auto; /* прижмёт к правому краю, если нужно */
}

.range-group > span {
  font-weight: 500;
  font-size: 15px;
  color: #334155;
}

.range-inputs {
  display: flex;
  gap: 8px;
}

.range-inputs input {
  width: 110px;
  padding: 10px 14px;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  font-size: 15px;
}

.floor-group .checkbox-row {
  display: flex;
  gap: 24px;
  margin-top: 8px;
}

.toggle-label {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-size: 14px;
  color: #1e293b;
  user-select: none;
}

.toggle-label input[type="checkbox"] {
  display: none;
}

.toggle-switch {
  position: relative;
  width: 44px;
  height: 24px;
  background: #cbd5e1;
  border-radius: 24px;
  transition: background 0.2s;
}

.toggle-switch::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  width: 20px;
  height: 20px;
  background: white;
  border-radius: 50%;
  transition: transform 0.2s;
  box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

.toggle-label input:checked + .toggle-switch {
  background: #2563eb;
}

.toggle-label input:checked + .toggle-switch::after {
  transform: translateX(20px);
}

.dropdown {
  position: relative;
}

.dropdown__toggle {
  background: white;
  border: 1px solid #e2e8f0;
  border-radius: 40px;
  padding: 10px 20px;
  font-size: 15px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: border-color 0.2s;
}

.dropdown__toggle:hover {
  border-color: #2563eb;
}

.dropdown__menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  background: white;
  border-radius: 20px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.15);
  padding: 16px;
  min-width: 220px;
  display: none;
  flex-direction: column;
  gap: 12px;
  z-index: 20;
  border: 1px solid #e2e8f0;
}

.dropdown:focus-within .dropdown__menu {
  display: flex;
}

.dropdown__menu label {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  font-size: 15px;
}

.view-options {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 24px;
}

.view-options .toggle-label {
  min-width: 100px;
}

.mountain-sea {
  display: none;
}

.city-sochi .mountain-sea,
.city-anapa .mountain-sea,
.city-yalta .mountain-sea,
.city-novorossiysk .mountain-sea,
.city-livadia .mountain-sea {
  display: flex;
  gap: 16px;
}

@media (max-width: 768px) {
  .filters-advanced {
    margin-top: 16px;
    order: 1;
  }
}