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