/*
 Theme Name:   GeneratePress Child
 Theme URI:    https://generatepress.com
 Description:  Default GeneratePress child theme
 Author:       Tom Usborne
 Author URI:   https://tomusborne.com
 Template:     generatepress
 Version:      0.1
*/





/* ==========================================================
 * НЕДВИЖИМОСТЬ: стили фильтра и карточек
 * Вставить в: Внешний вид > Настроить > Дополнительные CSS
 * ========================================================== */

/* ---------- Панель фильтра (сайдбар) ---------- */
.nedv-panel { background: #fff; }
.nedv-panel h3 { margin: 0 0 22px; font-size: 20px; font-weight: 700; line-height: 1.2; }

/* Два выпадающих списка в одной строке */
.nedv-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }

.nedv-select {
  width: 100%; height: 52px; padding: 0 36px 0 14px; border: 0; border-radius: 14px;
  background-color: #f1f0ee; font-size: 16px; color: #111; cursor: pointer;
  -webkit-appearance: none; appearance: none; box-sizing: border-box;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%23111' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center;
}
.nedv-select:focus { outline: 2px solid #111; outline-offset: 2px; }

.nedv-group-title { margin: 26px 0 12px; font-size: 16px; font-weight: 700; }
.nedv-group-title span { font-weight: 400; margin-left: 6px; }

/* Флажки */
.nedv-checks { display: flex; flex-direction: column; gap: 14px; }
.nedv-check { display: flex; align-items: center; gap: 14px; cursor: pointer; font-size: 17px; line-height: 1.2; }
.nedv-check input {
  -webkit-appearance: none; appearance: none; flex: 0 0 24px; width: 24px; height: 24px; margin: 0;
  border-radius: 7px; background-color: #e3e2e0; cursor: pointer; transition: background-color .15s;
}
.nedv-check input:hover { background-color: #d6d5d3; }
.nedv-check input:checked {
  background-color: #111;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E");
}
.nedv-check input:focus-visible { outline: 2px solid #111; outline-offset: 2px; }

/* Поля "От / до" */
.nedv-range { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.nedv-range input {
  width: 100%; height: 52px; padding: 0 16px; border: 0; border-radius: 14px;
  background: #f1f0ee; font-size: 16px; color: #111; box-sizing: border-box;
}
.nedv-range input::placeholder { color: #7a7977; }
.nedv-range input:focus { outline: 2px solid #111; outline-offset: 2px; }

.nedv-reset { margin-top: 26px; padding: 0; border: 0; background: none; color: #555; font-size: 15px; text-decoration: underline; cursor: pointer; }
.nedv-reset:hover { color: #111; background: none; }

/* ---------- Результаты (страница) ---------- */
.nedv-results-top { padding: 14px 22px; margin-bottom: 22px; border: 1px solid #e5e7eb; border-radius: 12px; font-size: 16px; font-weight: 600; }
.nedv-results-top b { margin-left: 4px; }

.nedv-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 20px; transition: opacity .15s; }
.nedv-grid.is-loading { opacity: .45; }

.nedv-card { display: flex; flex-direction: column; border: 1px solid #e5e7eb; border-radius: 14px; overflow: hidden; background: #fff; color: #111; text-decoration: none; }
.nedv-card:hover { border-color: #111; }
.nedv-card-img { aspect-ratio: 4 / 3; background: #f1f0ee; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.nedv-card-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.nedv-noimg { color: #7a7977; font-size: 14px; }
.nedv-card-body { padding: 16px 18px 18px; }
.nedv-card-title { margin: 0 0 10px; font-size: 16px; line-height: 1.3; font-weight: 600; }
.nedv-card-price { font-size: 18px; font-weight: 700; }
.nedv-card-area { margin-top: 4px; font-size: 15px; color: #555; }
.nedv-empty { grid-column: 1 / -1; margin: 0; padding: 30px; border: 1px solid #e5e7eb; border-radius: 12px; color: #555; text-align: center; }

/* ---------- Типы объекта ссылками (карточка объекта, шорткод [nedv_types]) ---------- */
.nedv-types { display: inline-flex; flex-wrap: wrap; gap: 8px; }
.nedv-type {
  display: inline-block; padding: 6px 14px; border-radius: 999px;
  background: #f1f0ee; color: #111; font-size: 15px; line-height: 1.3; text-decoration: none;
  transition: background-color .15s, color .15s;
}
.nedv-type:hover { background: #111; color: #fff; }
span.nedv-type:hover { background: #f1f0ee; color: #111; }




