.property-wrapper {
  position: relative;
  width: 100vw;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  background: #fff;
}

/* Контейнер с объектами и картой */
.property-container {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  width: 100%;
  /* ширина вровень с шапкой */
  margin: 40px auto;
  padding: 0 40px;
  gap: 40px;
}

/* Левая колонка с объектами — чуть шире */
.property-left {
  flex: 0 0 50%;
  display: flex;
  flex-direction: column;
   box-sizing: border-box;
}

/* Внутри .property-left создаем контейнер для списка объектов */
.property-list-wrapper {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-top: 15px;
}

/* Карта справа — чуть уже, но высокая */
.property-right {
  flex: 0 0 50%;
  position: sticky;
  top: 110px;
  height: calc(100vh - 120px);
}

/* Карта */
#property-map {
  width: 100%;
  height: 100%;
  border-radius: 12px;
  overflow: hidden;
}
/*=====*/
.property-right {
  width: 50vw;
  height: 100vh;
}


#divo-property-map,
#divo-property-map .leaflet-container {
  width: 100%;
  height: 100%;
}

/* Теперь подвал естественно будет виден ниже .property-container */
footer {
  margin-top: 20px;
}

.property-buttons {
  display: flex;
  gap: 15px;
  width: 200px;
  margin-bottom: 10px;
}

.property-filter-btn {
  flex: 1;
  padding: 8px 20px;
  border: 1px solid #ccc;
  color: grey;
  background: #fff;
  cursor: pointer;
  border-radius: 6px;
  font-size: 14px;
  transition: 0.3s;
}

.property-filter-btn:hover {
  border-color: #f57840;
  color: #f57840;
  font-weight: 500;
  background-color: #fff;
}

.property-filter-btn.active {
  border-color: #f57840;
  color: #f57840;
  font-weight: 600;
}

.property-search {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 98%;
}

.property-search input {
  width: 98%;
  padding: 8px;
  border: 1px solid #ccc;
  border-radius: 6px;
  margin-bottom: 10px;
}

.property-filters {
  display: flex;
  gap: 15px;
  width: 98%;
  padding: 8px;
  margin-bottom: 10px;
  align-items: center;
}

.filter-district-wrapper,
.filter-floor-wrapper,
.filter-rooms-wrapper {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 25%;
}

.price-range-wrapper {
  display: flex;
  flex-direction: column;
  gap: 4px;
  width: 25%;
}

.district-name,
.floor-name,
.rooms-name,
.price-name,
.search-name {
  font-weight: 500;
}

.property-filters select,
.property-filters input[type="number"] {
  padding: 7px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 13px;
  width: 90%;
}

/* Уменьшаем поля цены */
.price-range {
  display: flex;
  align-items: center;
  gap: 8px;
}

.property-filters .price-input {
  width: 40%;
}

#search-btn,
#reset-btn {
  width: 100px;
  padding: 8px 20px;
  background: #f57840;
  color: #fff;
  cursor: pointer;
  border: none;
  border-radius: 15px;
  font-size: 13px;
  transition: 0.3s;
}

#reset-btn {
  background: #fff;
  color: grey;
}

.property-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
  overflow: hidden;
  /* убрали скролл */
  max-height: none;
  padding-right: 10px;
}

/* Стили пагинации */
.pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 10px;
}

.pagination button {
  padding: 6px 12px;
  border: 1px solid #ccc;
  border-radius: 6px;
  background: #fff;
  cursor: pointer;
  font-size: 13px;
  color: grey;
  /* основной цвет текста */
  transition: 0.3s;
}

.pagination button.active {
  background: #f57840;
  color: #fff;
  border-color: #f57840;
}

.pagination button:hover {
  background: #f57840;
  /* при наведении выделяем кнопки */
  color: #fff;
  /* текст всегда белый */
  border-color: #f57840;
}

.property-card {
  border: 1px solid #ddd;
  padding: 10px;
  border-radius: 6px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  /* Добавляем тень */
  box-shadow: 0 4px 20px 0 #f5f5f5;
}

.property-card a {
  color: #000;
  text-decoration: none !important;
}

.property-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
}

.property-info,
.object-id,
.uah {
  margin-left: 20px;
  /* расстояние между районом и ID */
}

.object-id,
.district {
  font-size: 16px;
  font-weight: 400;
  color: #000;
}

.dollar,
.uah {
  color: #f57840;
  font-weight: 700;
}

.property-top {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.property-image img {
  width: 120px;
  height: 90px;
  object-fit: cover;
  border-radius: 4px;
}

.property-content h2 {
  font-weight: 500;
  margin: 0 0 3px 0;
  font-size: 18px;
}

.property-content p {
  display: flex;
  margin: 1px 0;
  color: #555;
  font-size: 14px;
}

/* ====== ВЫРАВНИВАЕМ ОСНОВНОЙ КОНТЕНТ ====== */
.property-container {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 50px;
  width: 100%;
  /* Можно увеличить */
  margin: 0 auto;
  padding: 0 40px;
  box-sizing: border-box;
}

/* Левая часть (список объектов и фильтры) */
.property-left {
  flex: 1;
  /* немного шире */
  /* делаем немного шире */
  display: flex;
  flex-direction: column;
}

/* Правая часть (карта) */
.property-right {
  flex: 1;
  /* немного уже */
  display: flex;
  position: sticky;
  top: 100px;
  height: calc(100vh - 120px);
}

/* Карта */
#property-map {
  width: 100%;
  height: 100%;
  border-radius: 12px;
  overflow: hidden;
}

/* ====== ВЫРАВНИВАЕМ КНОПКИ НАД КАРТОЙ ====== */
.header-right {
  display: flex;
  justify-content: center;
  /* центрируем весь блок справа */
  align-items: center;
  position: relative;
}

.header-right > .header-menu-overlay {
  position: absolute;
  top: 85px;
  /* расположение по вертикали над картой */
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 25px;
}

/* Красивые кнопки и языки */
.header-menu-overlay a,
.header-menu-overlay button {
  font-family: Roboto, sans-serif;
  font-size: 15px;
  text-decoration: none;
  color: #000;
  background: none;
  border: none;
  cursor: pointer;
}

/* =======================================================================================
   1) Широкий десктоп >1600px
======================================================================================= */
@media (min-width: 1601px) {
  .property-container {
    padding: 0 40px;
    gap: 60px;
  }

  .property-left {
    flex: 1.2;
  }

  .property-right {
    flex: 0.8;
  }

  #property-map {
    height: calc(100vh - 160px);
  }
   .rooms{
  display:flex;
  flex-direction:row;
  gap:16px;
  align-items:center;
}

.room-item{
  display:flex;
  align-items:center;
  gap:6px;
}
}

/* =======================================================================================
   2) Обычный десктоп 1600px — 1441px
======================================================================================= */
@media (min-width: 1441px) and (max-width: 1600px) {
  .property-container {
    padding: 0 40px;
    gap: 45px;
  }

  .property-left,
  .property-right {
    flex: 1;
  }

  #property-map {
    height: calc(100vh - 150px);
  }
   .rooms{
  display:flex;
  flex-direction:row;
  gap:16px;
  align-items:center;
}

.room-item{
  display:flex;
  align-items:center;
  gap:6px;
}
}

/* =======================================================================================
   3) Узкий десктоп 1440px — 1281px
======================================================================================= */
@media (min-width: 1281px) and (max-width: 1440px) {
  .property-container {
    padding: 0 40px;
    gap: 35px;
  }

  .property-left,
  .property-right {
    flex: 1;
  }

  #property-map {
    height: calc(100vh - 140px);
  }
   .rooms{
  display:flex;
  flex-direction:row;
  gap:16px;
  align-items:center;
}

.room-item{
  display:flex;
  align-items:center;
  gap:6px;
}
}

/* =======================================================================================
   4) Очень узкий десктоп 1280px — 1025px
======================================================================================= */
@media (min-width: 1025px) and (max-width: 1280px) {
  .property-container {
    padding: 0 25px;
    gap: 25px;
  }

  .property-left,
  .property-right {
    flex: 1;
  }

  #property-map {
    height: calc(100vh - 120px);
  }
   .rooms{
  display:flex;
  flex-direction:row;
  gap:16px;
  align-items:center;
}

.room-item{
  display:flex;
  align-items:center;
  gap:6px;
}
}

/* =======================================================================================
   5) Планшет 1024px — 768px
   ❗ У тебя шапка на планшете остаётся в две строки, не ломается.
      Поэтому и контент мы НЕ сводим в одну колонку!
======================================================================================= */
@media (min-width: 768px) and (max-width: 1024px) {
  .property-container {
    padding: 0 20px;
    gap: 20px;
  }

  .property-left,
  .property-right {
    flex: 1;
  }

  #property-map {
    height: 420px;
    position: relative;
  }

  .property-filters,
  .filter-district-wrapper,
  .filter-floor-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    width: 100%;
  }

  .filter-district-wrapper,
  .filter-floor-wrapper,
  .filter-rooms-wrapper {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 48%;
  }

  .price-range-wrapper {
    display: flex;
    flex-direction: column;
    gap: 4px;
    width: 48%;
  }

  .property-search {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 98%;
  }

  .property-search input {
    width: 100%;
  }

  .property-filters select,
  .property-filters input[type="number"] {
    padding: 7px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 13px;
    width: 100%;
  }

  .property-content .property-info {
    display: flex;
    flex-direction: row !important;
    margin-left: 0px !important;
  }

  .property-content p:first-of-type {
    flex-direction: column; /* district и object-id друг под другом */
    gap: 5px;
  }
}

/* Вторая <p> — цены, всегда в строку */
.property-content p:nth-of-type(2) {
  display: flex;
  gap: 15px;
}

/* =======================================================================================
   6) Мобильный ≤767px
======================================================================================= */
@media (max-width: 767px) {
  .property-container {
    flex-direction: column;
    padding: 0 20px;
  }
  .property-content h2 {
    margin-left: 20px;
  }

  .property-right {
    width: 100%;
    height: 400px;
  }

  .property-buttons,
  .property-filters,
  .property-search,
  #search-btn,
  #reset-btn {
    width: 100%;
    text-align: center;
    justify-content: center;
  }

  /* Общий контейнер фильтров */
  .property-filters {
    display: grid;
    grid-template-columns: 1fr 1fr;
    /* два столбца */
    gap: 15px;
    width: 100%;
  }

  /* Район + Этажность — первая строка */
  .filter-district-wrapper {
    grid-column: 1;
  }

  .filter-floor-wrapper {
    grid-column: 2;
  }

  /* Комнаты + Цена — вторая строка */
  .filter-rooms-wrapper {
    grid-column: 1;
  }

  .price-range-wrapper {
    grid-column: 2;
  }

  /* Поля внутри выглядят аккуратнее */
  .property-filters select,
  .property-filters input[type="number"],
  .property-search input {
    width: 100%;
  }

  .filter-district-wrapper,
  .filter-floor-wrapper,
  .filter-rooms-wrapper {
    display: flex;
    flex-direction: column;
    align-items: start;
    gap: 10px;
    width: 100%;
  }

  .property-filters select,
  .property-filters input[type="number"] {
    padding: 7px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 13px;
    width: 100%;
  }

  .price-range-wrapper {
    display: flex;
    flex-direction: column;
    align-items: start;
    gap: 4px;
    width: 100%;
  }

  /* Цена — два маленьких инпута в ряд */
  .price-range {
    display: flex;
    gap: 8px;
    width: 100%;
  }

  .price-input {
    width: 100% !important;
  }

  .property-card {
    border: 1px solid #ddd;
    padding: 10px;
    border-radius: 6px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    /* Добавляем тень */
    box-shadow: 0 4px 20px 0 #f5f5f5;
  }

  .property-card a {
    color: #000;
    text-decoration: none;
  }

  .property-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 10px;
  }

  /* ДОЛЛАР + ГРИВНА В ОДНУ ЛИНИЮ */
  .property-top .property-content .property-info .dollar,
  .property-top .property-content .property-info .uah {
    color: #f57840 !important;
    font-weight: 700;
    white-space: nowrap;
    /* не переносить */
  }

  /* Контейнер для ДОЛЛАР + ГРИВНА в одну строку (row) */
  .property-top .property-content .property-info {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 12px;
    /* расстояние между $ и грн */
    margin-left: 20px;
    /* как на десктопе */
  }

  .property-info,
  h2 {
    margin-left: 20px;
    /* как на десктопе */
  }
   .rooms{
  display:flex;
  flex-direction:row;
  gap: 20px;
  align-items:center;
  margin-left: 20px !important;
}

.room-item{
  display:flex;
  align-items:center;
  gap:6px;
}
}
@media (max-width: 580px) {
  .rooms{
  display:flex;
  flex-direction:row;
  gap:0 !important;
  align-items:start !important;
  margin-left: 0 !important;
}
}
/* =======================================================================================
   7) Маленькие телефоны ≤480px
======================================================================================= */
@media (max-width: 480px) {

  .property-container {
    padding: 0 15px;
    gap: 15px;
  }

  .property-content h2 {
    font-size: 16px;
  }

  .property-content p {
    font-size: 13px;
  }

  .property-image img {
    width: 100px;
    height: 75px;
  }

  .property-buttons {
    flex-direction: column;
    width: 100%;
    gap: 10px;
  }

  .property-filter-btn {
    width: 100%;
  }

  /* Фильтры — одна колонка */
  .property-filters {
    grid-template-columns: 1fr;
  }

  .filter-district-wrapper,
  .filter-floor-wrapper,
  .filter-rooms-wrapper,
  .price-range-wrapper {
    width: 100%;
  }

  /* Цена */
  .price-range {
    flex-direction: row;
  }

  /* Карта */
  .property-right {
    height: 300px;
  }

  /* Отступы текста */
  .property-info,
  .property-content h2 {
    margin-left: 10px;
  }

  .rooms {
    display: flex;
    flex-direction: row !important;
    margin-left: 0 !important;
    gap: 10px !important;
  }

  .room-item {
    gap: 4px !important;
    font-size: 16px !important;
  }



   /* Карточка становится вертикальной */
  .property-top {
    flex-direction: column;
    align-items: flex-start;
  }

  /* КАРТИНКА — нормального размера */
  .property-image img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 8px;
  }

  /* Контент */
  .property-content {
    width: 100%;
    gap: 6px;
  }

  .property-content h2 {
    font-size: 15px;
    margin-left: 0;
  }

  /* Убираем странные отступы */
  .property-info {
    margin-left: 0;
    flex-direction: column;
    gap: 4px;
    margin-left: 0 !important;
  }
  .property-content {
    align-items: flex-start !important;
  }

  .property-content p {
    display: flex;
    flex-direction: column;
    align-items: start !important;
    justify-content: flex-start !important;
    text-align: left !important;
  }
  /* Цена в одну строку */
  .property-content p:nth-of-type(2) {
    flex-direction: row;
    gap: 10px;
  }

  /* Rooms — компактно */
  .rooms {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }

  .room-item {
    font-size: 12px;
  }

  .room-item img {
    width: 18px !important;
  }

  /* Кнопки */
  #search-btn,
  #reset-btn {
    width: 100%;
  }

  /* Фильтры — строго в одну колонку */
  .property-filters {
    display: flex;
    flex-direction: column;
    gap: 12px;
  }

  /* Карта ниже */
  .property-right {
    height: 250px;
  }
}

/* =======================================================================================
   8) Очень маленькие телефоны ≤360px (включая 320px)
======================================================================================= */
/* =======================================================================================
   FIX ДЛЯ МАЛЕНЬКИХ ЭКРАНОВ ≤360px (нормальный mobile layout)
======================================================================================= */
@media (max-width: 360px) {

  /* Карточка становится вертикальной */
  .property-top {
    flex-direction: column;
    align-items: flex-start;
  }

  /* КАРТИНКА — нормального размера */
  .property-image img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 8px;
  }

  /* Контент */
  .property-content {
    width: 100%;
    gap: 6px;
  }

  .property-content h2 {
    font-size: 15px;
    margin-left: 0;
  }

  /* Убираем странные отступы */
  .property-info {
    margin-left: 0;
    flex-direction: column;
    gap: 4px;
    margin-left: 0 !important;
  }
  .property-content {
    align-items: flex-start !important;
  }

  .property-content p {
    display: flex;
    flex-direction: column;
    align-items: start !important;
    justify-content: flex-start !important;
    text-align: left !important;
  }
  /* Цена в одну строку */
  .property-content p:nth-of-type(2) {
    flex-direction: row;
    gap: 10px;
  }

  /* Rooms — компактно */
  .rooms {
    flex-direction: column !important;
    align-items: flex-start;
  }

  .room-item {
    font-size: 12px;
  }

  .room-item img {
    width: 18px !important;
  }

  /* Кнопки */
  #search-btn,
  #reset-btn {
    width: 100%;
  }

  /* Фильтры — строго в одну колонку */
  .property-filters {
    display: flex;
    flex-direction: column;
    gap: 12px;
  }

  /* Карта ниже */
  .property-right {
    height: 250px;
  }
}