body{
  margin: 0;
  padding: 0;
  min-height: 100dvh;
  font-size: 15px;
  font-family: "Rubik", sans-serif;
  background-color: #0e0f12;
  color: #eef0f4;
  display: flex;
  flex-direction: column;
  overflow-y: scroll;
}

@view-transition {
  navigation: auto;
}

::selection{
  color: #f2f3f5;
  background-color: #31363f;
}

a {
  color: #eef0f4;
  text-decoration: none;
}

input,
select,
textarea,
button{
  font-family: "Rubik", sans-serif;
}

.margin0{
  display: flex;
  flex-direction: row;
  margin: 0 auto;
  max-width: 1600px;
  width: 90%;
}

.just_gap_20px{
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* Правила дизайну (макет desktop.php): радіус 6px — поля, кнопки, фото; 10px — картки й панелі.
   Акцент #cd6133 — вибране й головні маркери, чорний — головна дія при наведенні. Тіней немає.
   Розмітка й JS — як на mdgroup.if.ua / prostir.estate (desktop_1_up_line, desktop_2_block, desktop_3_block). */

/* ===== шапка (desktop_1_up_line.php) ===== */

.up_line{
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 80px;
  background-color: #08090b;
  color: #f2f3f5;
}

/* адреса забирає залишок ширини й обрізається, коли праворуч кнопки агента */
.up_line_inside{
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 20px;
  width: 100%;
}

.up_line_inside_left{
  display: flex;
  flex-direction: row;
  align-items: center;
}

.level_logo{
  height: 56px;
  display: block;
}

.up_line_address{
  overflow: hidden;
  font-weight: 300;
  text-align: center;
  white-space: nowrap;
  text-overflow: ellipsis;
  color: #939ba8;
}

.up_line_inside_right{
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-end;
  gap: 20px;
}

.up_line_phone{
  font-weight: 500;
  color: #f2f3f5;
  white-space: nowrap;
  transition: color 0.2s ease;
}

.up_line_login{
  display: flex;
  flex-direction: row;
  align-items: center;
  height: 40px;
  padding: 0 20px;
  box-sizing: border-box;
  font-size: 14px;
  color: #f2f3f5;
  white-space: nowrap;
  border: 1px solid #555f6d;
  border-radius: 6px;
  cursor: pointer;
  transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}

/* авторизований агент: імʼя з іконкою замість телефону */
.up_line_user{
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 10px;
  min-width: 0;
  font-weight: 500;
  white-space: nowrap;
}

.up_line_user > span{
  overflow: hidden;
  text-overflow: ellipsis;
}

.up_line_icon{
  flex: 0 0 auto;
  width: 16px;
  height: 16px;
  color: #d4d9e2;
}

/* ===== меню категорій + ПРОДАЖ / ОРЕНДА, СПИСОК / МАПА (desktop_2_block.php, кнопки — params_2.php) ===== */

.menu_line{
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  flex-direction: column;
  background-color: #191b20;
  border-bottom: 1px solid #343943;
}

.menu_line_inside{
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  width: 100%;
}

/* -10px: текст пунктів стає в одну лінію з хлібними крихтами й заголовком */
.menu_line_left{
  display: flex;
  flex-direction: row;
  gap: 20px;
  min-width: 0;
  margin: 0 0 0 -10px;
}

.menu_line_right{
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 10px;
}

/* params_2.php ставить або menu_btn, або menu_btn_active — тому базові стилі в обох */
.menu_btn,
.menu_btn_active{
  position: relative;
  display: flex;
  flex-direction: row;
  align-items: center;
  height: 60px;
  padding: 0 10px;
  box-sizing: border-box;
  font-size: 16px;
  font-weight: 500;
  color: #adb3bd;
  white-space: nowrap;
  transition: color 0.2s ease;
}

.menu_btn::after,
.menu_btn_active::after{
  content: "";
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: -1px;
  height: 3px;
  background-color: #292d35;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.menu_btn_active{
  color: #d4d9e2;
}

.menu_btn_active::after{
  background-color: #31363f;
  opacity: 1;
}

/* ===== перемикачі-вкладки: ПРОДАЖ / ОРЕНДА, СПИСОК / МАПА, ВСІ / МОЇ / АРХІВ ===== */

.scope_tabs{
  display: flex;
  flex-direction: row;
  height: 40px;
  padding: 3px;
  box-sizing: border-box;
  background-color: #191b20;
  border: 1px solid #454d59;
  border-radius: 6px;
}

/* група без жодної кнопки (наприклад, поза каталогом) не займає місця */
.scope_tabs:not(:has(a)){
  display: none;
}

.sale_rent_button,
.sale_rent_button_active{
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  padding: 0 20px;
  font-size: 13px;
  font-weight: 500;
  color: #adb3bd;
  white-space: nowrap;
  border-radius: 3px;
  transition: color 0.2s ease, background-color 0.2s ease;
}

.sale_rent_button_active{
  color: #f2f3f5;
  background-color: #31363f;
}

/* ===== назва сторінки ===== */

.block_1{
  display: flex;
  flex-direction: column;
  padding: 20px 0;
}

.block_1_inside{
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  width: 100%;
}

.block_1_inside_left{
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
}

.block_1_inside_right{
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  margin: 0 0 0 auto;
}

/* хлібні крихти з params_2.php: <div><a>…</a></div>•<div>…</div> */
.breadcrumbs{
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: #adb3bd;
}

.breadcrumbs a{
  color: #adb3bd;
  transition: color 0.2s ease;
}

.block_1_inside_title{
  display: flex;
  flex-direction: row;
  align-items: stretch;
  gap: 20px;
}

.block_1_inside_title_names{
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.block_1_inside_title_kicker{
  font-size: 13px;
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: 0.04em;
  color: #adb3bd;
}

.block_1_inside_title_text{
  margin: 0;
  font-size: 36px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.5px;
}

/* лічильник: число й підпис за тонкою рискою від заголовка;
   число копіює js/catalog_counters.js (.counts → .line5_gray) — доти блок прихований */
.block_1_inside_title_count{
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 0 0 20px;
  border-left: 1px solid #343943;
  animation: fade_in 0.3s ease both;
}

.block_1_inside_title_count:has(.line5_gray:empty){
  display: none;
}

.block_1_inside_title_count_number{
  font-size: 22px;
  font-weight: 600;
  line-height: 1.2;
  color: #d4d9e2;
}

.block_1_inside_title_count_text{
  font-size: 12px;
  font-weight: 400;
  line-height: 1.2;
  color: #adb3bd;
}

@keyframes fade_in{
  from{
    opacity: 0;
  }
  to{
    opacity: 1;
  }
}

/* ===== сортування: іконка (#sort_icon_btn — .count_line_2_sort, як на prostir.estate) + попап із варіантами ===== */

#sort_popup{
  display: none;
  position: fixed;
  z-index: 60;
  min-width: 220px;
  padding: 5px 0;
  box-sizing: border-box;
  background-color: #191b20;
  border: 1px solid #6b7584;
  border-radius: 6px;
  transform-origin: top right;
  animation: sort_popup_in 0.18s ease;
}

#sort_popup.active{
  display: block;
}

#sort_popup.closing{
  animation: sort_popup_out 0.18s ease forwards;
}

@keyframes sort_popup_in{
  from{
    opacity: 0;
    transform: translateY(-6px);
  }
  to{
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes sort_popup_out{
  from{
    opacity: 1;
    transform: translateY(0);
  }
  to{
    opacity: 0;
    transform: translateY(-6px);
  }
}

.sort_popup_group_label{
  padding: 10px 20px 5px 20px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #939ba8;
}

.sort_popup_item{
  padding: 10px 20px;
  font-size: 13px;
  font-weight: 500;
  color: #eef0f4;
  white-space: nowrap;
  outline: none;
  cursor: pointer;
  transition: color 0.2s ease, background-color 0.2s ease;
}

.sort_popup_item.sort_active{
  color: #f2f3f5;
  background-color: #31363f;
}

/* фокус з клавіатури — рамка всередині пункту, щоб не вилазила за попап */
.sort_popup_item:focus-visible{
  outline: 2px solid #6b7584;
  outline-offset: -2px;
}

.sort_popup_item.sort_active:focus-visible{
  outline-color: #5a626f;
}

/* ===== кнопки агента: мультивибірка, режим клієнта, порівняння (desktop_2_block.php) ===== */

.count_line_2_sort{
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  padding: 0;
  box-sizing: border-box;
  color: #adb3bd;
  background-color: #191b20;
  border: 1px solid #454d59;
  border-radius: 6px;
  cursor: pointer;
  user-select: none;
  transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, opacity 0.2s ease;
}

.count_line_2_sort.is-active{
  color: #f2f3f5;
  background-color: #31363f;
  border-color: #6b7584;
}

.count_line_2_sort.is-loading,
.count_line_2_sort.is-disabled{
  cursor: not-allowed;
}

.count_line_2_sort.is-disabled{
  opacity: 0.5;
}

/* SVG-іконки з сестринських сайтів: лінії — колір кнопки (currentColor),
   заливки — колір фону кнопки, щоб перекривати лінії під ними; акцент — #cd6133 */
.count_line_2_icon{
  width: 18px;
  height: 16px;
  overflow: visible;
}

.count_line_2_icon_line{
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: stroke 0.2s ease;
}

.count_line_2_icon_line_accent{
  stroke: var(--catalog-control-accent, #d4d9e2);
}

.count_line_2_icon_fill{
  fill: var(--catalog-control-surface, #191b20);
  stroke: currentColor;
  stroke-width: 1.6;
  transition: fill 0.2s ease, stroke 0.2s ease;
}

.count_line_2_icon_dot{
  fill: var(--catalog-control-accent, #d4d9e2);
  transition: fill 0.2s ease;
}

.count_line_2_sort.is-active .count_line_2_icon_line_accent{
  stroke: currentColor;
}

.count_line_2_sort.is-active .count_line_2_icon_fill{
  fill: var(--catalog-control-surface, #31363f);
}

.count_line_2_sort.is-active .count_line_2_icon_dot{
  fill: currentColor;
}

/* мультивибірку ввімкнено — галочка домальовується */
.count_line_2_sort.is-active .count_line_2_icon_check{
  stroke-dasharray: 9;
  animation: count_line_2_check_draw 0.35s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes count_line_2_check_draw{
  from{
    stroke-dashoffset: 9;
  }
  to{
    stroke-dashoffset: 0;
  }
}

/* режим клієнта ввімкнено — око перекреслюється; «прорізь» кольору фону відділяє лінію від контуру ока */
.count_line_2_icon_slash,
.count_line_2_icon_slash_gap{
  fill: none;
  stroke-linecap: round;
  stroke-dasharray: 18;
  stroke-dashoffset: 18;
  transition: stroke-dashoffset 0.3s cubic-bezier(0.22, 1, 0.36, 1), stroke 0.2s ease;
}

.count_line_2_icon_slash{
  stroke: currentColor;
  stroke-width: 1.6;
}

.count_line_2_icon_slash_gap{
  stroke: var(--catalog-control-surface, #191b20);
  stroke-width: 4.4;
}

.count_line_2_sort.is-active .count_line_2_icon_slash,
.count_line_2_sort.is-active .count_line_2_icon_slash_gap{
  stroke-dashoffset: 0;
}

.count_line_2_sort.is-active .count_line_2_icon_slash_gap{
  stroke: var(--catalog-control-surface, #31363f);
}

/* спінер на час перемикання режиму (клас is-loading ставить desktop_3_block.php) */
.icon_btn_spinner{
  width: 0;
  height: 0;
  opacity: 0;
  overflow: hidden;
  border: 0 solid rgba(173, 179, 189, 0.25);
  border-top-color: currentColor;
  border-radius: 50%;
  box-sizing: border-box;
}

.count_line_2_sort.is-loading .count_line_2_icon{
  display: none;
}

.count_line_2_sort.is-loading .icon_btn_spinner{
  width: 16px;
  height: 16px;
  opacity: 1;
  border-width: 2px;
  animation: spin 0.7s linear infinite;
}

.count_line_2_sort.is-active .icon_btn_spinner{
  border-color: rgba(255, 255, 255, 0.35);
  border-top-color: #5a626f;
}

@keyframes spin{
  to{
    transform: rotate(360deg);
  }
}

/* кількість обраних на іконці порівняння (оновлює js/catalog_favorites.js) */
.favorites_count{
  position: absolute;
  top: -8px;
  right: -8px;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  box-sizing: border-box;
  font-size: 11px;
  font-weight: 600;
  line-height: 1;
  color: #f2f3f5;
  background-color: #31363f;
  border: 2px solid #353a44;
  border-radius: 10px;
}

/* ЗГЕНЕРУВАТИ / КОПІЮВАТИ / НОВИЙ ЛІНК — коли мультивибірку ввімкнено */
.multi_block,
.multi_done_btns{
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 10px;
}

.multi_gen_btn,
.multi_new_btn{
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 40px;
  padding: 0 20px;
  box-sizing: border-box;
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
  border: 1px solid transparent;
  border-radius: 6px;
  outline: none;
  cursor: pointer;
  user-select: none;
  transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}

.multi_gen_btn{
  color: #f2f3f5;
  background-color: #31363f;
  border-color: #6b7584;
}

.multi_new_btn{
  color: #adb3bd;
  background-color: #191b20;
  border-color: #454d59;
}

/* КОПІЮВАТИ → СКОПІЙОВАНО: зелений, як підтвердження копіювання в макеті сторінки обʼєкта */
.multi_gen_btn.multi_copied{
  color: #f2f3f5;
  background-color: #17644e;
  border-color: #458f77;
}

.multi_gen_btn:disabled,
.multi_new_btn:disabled{
  color: #adb3bd;
  background-color: #292d35;
  border-color: #343943;
  cursor: not-allowed;
}

#count_multi_objects,
.count_multi_new{
  font-weight: 700;
}

/* ===== фільтр + список (desktop_3_block.php) ===== */

.block_2{
  display: flex;
  flex-direction: column;
  padding: 0 0 40px 0;
}

.block_2_inside{
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 20px;
  width: 100%;
}

/* після «БІЛЬШЕ» фільтр росте у висоту, без власного скролу */
.block_2_left{
  display: flex;
  flex-direction: column;
  gap: 20px;
  flex: 0 0 300px;
}

.block_2_right{
  display: flex;
  flex-direction: column;
  gap: 20px;
  flex: 1 1 auto;
  min-width: 0;
}

/* ===== фільтр (розмітка filter/m_*.php + filter/btn_filter.php, JS: panel/js/m_filter.js,
   js/catalog_filter.js, js/catalog_filter_chips.js — як на mdgroup.if.ua) ===== */

.filter{
  display: flex;
  flex-direction: column;
  flex: 0 0 auto;
  padding: 20px;
  box-sizing: border-box;
  background-color: #191b20;
  border-radius: 10px;
}

.display_form_panel{
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.build_numbers{
  position: relative;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
}

/* на ПК підписи сховані інлайном (filter/m_*.php), поля мають placeholder */
.width_1{
  font-size: 12px;
  font-weight: 500;
}

.width_2:not(.drop_filter_menu_numbers){
  display: flex;
  flex-direction: row;
}

/* «службове» поле, куди JS складає вибрані значення через кому */
.hidden_values{
  position: absolute;
  top: -10000px;
  left: 0;
  width: 0;
  height: 0;
  padding: 0;
  border: 0;
  opacity: 0;
  pointer-events: none;
}

/* «БІЛЬШЕ» розгортає блок (slideToggle у btn_filter.php); початкове display:none — інлайном */
.filter_hidden{
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.filter_hidden > .build_numbers:empty{
  display: none;
}

.inputs_filter{
  width: 100%;
  height: 40px;
  padding: 0 30px 0 10px;
  box-sizing: border-box;
  overflow: hidden;
  font-size: 13px;
  font-weight: 500;
  color: #eef0f4;
  text-overflow: ellipsis;
  background-color: #191b20;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 6'%3E%3Cpath d='M0 0h10L5 6z' fill='%23adb3bd'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 10px 6px;
  border: 1px solid #454d59;
  border-radius: 6px;
  outline: none;
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  transition: border-color 0.2s ease;
}

/* поле з відкритим списком: m_filter.js відкриває список slideDown (інлайн display: block),
   тож стан «відкрито» беремо з нього, а не з фокусу — фокус іде з поля, щойно клікнули варіант */
.inputs_filter:focus,
.build_numbers:has(> .drop_filter_menu_numbers[style*="display: block"]) > .inputs_filter{
  border-color: #6b7584;
  border-radius: 6px 6px 0 0;
}

.inputs_filter_left,
.inputs_filter_right,
.inputs_filter_investors{
  width: 100%;
  min-width: 0;
  height: 40px;
  padding: 0 10px;
  box-sizing: border-box;
  font-size: 13px;
  font-weight: 500;
  color: #eef0f4;
  background-color: #191b20;
  border: 1px solid #454d59;
  outline: none;
  transition: border-color 0.2s ease;
}

.inputs_filter_left{
  border-radius: 6px 0 0 6px;
  border-right-width: 0;
}

.inputs_filter_right{
  border-radius: 0 6px 6px 0;
}

.inputs_filter_investors{
  border-radius: 6px;
}

.inputs_filter_left:focus,
.inputs_filter_right:focus,
.inputs_filter_investors:focus{
  border-color: #6b7584;
}

.inputs_filter_left:focus + .inputs_filter_right{
  border-left-color: #6b7584;
}

.inputs_filter::placeholder,
.inputs_filter_left::placeholder,
.inputs_filter_right::placeholder,
.inputs_filter_investors::placeholder{
  color: #adb3bd;
}

.width_2.drop_filter_menu_numbers,
.drop_filter_menu_numbers{
  display: none;
  width: 100%;
  max-height: 200px;
  box-sizing: border-box;
  background-color: #191b20;
  border: 1px solid #6b7584;
  border-top: none;
  border-radius: 0 0 6px 6px;
  overflow: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
}

.checkbox_filter input[type="checkbox"]{
  display: none;
}

.checkbox_filter label{
  display: block;
  padding: 10px;
  box-sizing: border-box;
  font-size: 13px;
  font-weight: 500;
  color: #eef0f4;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.checkbox_filter input[type="checkbox"]:checked + label{
  color: #f2f3f5;
  background-color: #31363f;
}

.no-results{
  padding: 10px;
  font-size: 13px;
  color: #adb3bd;
}

/* вибрані значення під полем (JS показує блок через display:flex) */
.min_values{
  display: none;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 10px;
  padding: 10px 0 0 0;
  font-size: 12px;
}

.selected-value{
  padding: 4px 10px;
  font-weight: 500;
  color: #f2f3f5;
  background-color: #31363f;
  border-radius: 6px;
  cursor: pointer;
  animation: fade_in 0.2s ease both;
  transition: background-color 0.2s ease;
}

.remove-button{
  font-weight: 500;
}

.filter_more{
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 40px;
  padding: 0 20px;
  box-sizing: border-box;
  font-size: 12px;
  font-weight: 500;
  color: #adb3bd;
  background-color: #22252b;
  border: none;
  border-radius: 6px;
  outline: none;
  cursor: pointer;
  transition: color 0.2s ease, background-color 0.2s ease;
}

.for_filter_buttons{
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.filter_button,
.filter_reset_mobile{
  display: flex;
  align-items: center;
  justify-content: center;
  height: 40px;
  padding: 0 20px;
  box-sizing: border-box;
  font-size: 13px;
  font-weight: 500;
  border: none;
  border-radius: 6px;
  outline: none;
  cursor: pointer;
  transition: color 0.2s ease, background-color 0.2s ease;
}

.filter_button{
  color: #f2f3f5;
  background-color: #31363f;
}

.filter_reset_mobile{
  color: #adb3bd;
  background-color: #22252b;
}

/* запит фільтра: catalog_filter.js ставить disabled і .is-loading на натиснуту кнопку */
.filter_button:disabled,
.filter_reset_mobile:disabled{
  color: #adb3bd;
  background-color: #292d35;
  cursor: not-allowed;
}

.filter_button_spinner{
  width: 0;
  height: 14px;
  opacity: 0;
  overflow: hidden;
  border: 0 solid rgba(173, 179, 189, 0.25);
  border-top-color: #555f6d;
  border-radius: 50%;
  box-sizing: border-box;
  transition: width 0.2s ease, margin 0.2s ease, opacity 0.2s ease;
}

.filter_button.is-loading .filter_button_spinner,
.filter_reset_mobile.is-loading .filter_button_spinner{
  width: 14px;
  margin: 0 0 0 10px;
  opacity: 1;
  border-width: 2px;
  animation: spin 0.7s linear infinite;
}

/* пошук обʼєкта за ID — окрема картка під фільтром (лише агентам, desktop_search_id.php як на mdgroup) */
.filter_search_id{
  gap: 10px;
}

.filter_search_id_title{
  font-size: 12px;
  font-weight: 500;
  color: #adb3bd;
}

.filter_search_id .just_line_height_1px{
  display: none;
}

.search_by_id{
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.open_link_search_by_id,
.open_link_search_by_id_red{
  display: flex;
  align-items: center;
  justify-content: center;
  height: 40px;
  font-size: 13px;
  font-weight: 500;
  border-radius: 6px;
}

.open_link_search_by_id{
  color: #f2f3f5;
  background-color: #17644e;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.open_link_search_by_id_red{
  color: #ff8ca1;
  background-color: rgba(235, 59, 90, 0.08);
}

#search_by_id_searching{
  height: 40px !important;
  color: #adb3bd;
}

/* ===== список (картки — view/object_card.php) ===== */

.content{
  display: flex;
  flex-direction: column;
  gap: 20px;
  min-width: 0;
}

/* лічильники для JS (catalog_counters.js копіює їх у заголовок) */
.counts,
.filter_counts{
  display: none;
}

.object{
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: row;
  gap: 20px;
  padding: 20px;
  box-sizing: border-box;
  background-color: #191b20;
  border: 1px solid #343943;
  border-radius: 10px;
}

/* акцентна риса зліва «малюється» зверху вниз при наведенні */
.object::before{
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  z-index: 3;
  width: 4px;
  background-color: #31363f;
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 0.3s ease;
}

.object:focus-within::before{
  transform: scaleY(1);
}

/* Квадратні мініатюри — у двох колонках по три.
   Головне фото та інформація заповнюють висоту картки до спільного нижнього краю. */
.object_pics{
  --object-thumb-size: 70px;
  --object-thumb-cols: 1;
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-rows: minmax(0, 1fr);
  gap: 10px;
  flex: 0 0 calc(50% - 10px);
  width: calc(50% - 10px);
  min-height: calc(3 * var(--object-thumb-size) + 20px);
  max-width: calc(50% - 10px);
}

.object_pics_cols_0{
  grid-template-columns: 1fr;
}

.object_pics_cols_2{
  --object-thumb-cols: 2;
}

.object_pic_thumbs{
  display: grid;
  grid-auto-flow: column;
  grid-template-columns: repeat(var(--object-thumb-cols), var(--object-thumb-size));
  grid-template-rows: repeat(3, var(--object-thumb-size));
  align-self: start;
  gap: 10px;
}

.object_pic_main{
  position: relative;
  min-width: 0;
  min-height: 0;
  display: block;
  overflow: hidden;
  border-radius: 6px;
  background-color: #292d35;
}

.object_pic_link{
  position: absolute;
  inset: 0;
  display: block;
}

.object_pic_thumb{
  position: relative;
  display: block;
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: 6px;
  background-color: #292d35;
}

.object_pic{
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* спінер по центру фото, поки воно (локальне або з Backblaze B2) не завантажилось */
.object_pic_spinner{
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 1;
  width: 28px;
  height: 28px;
  margin: -14px 0 0 -14px;
  box-sizing: border-box;
  border: 3px solid rgba(255, 255, 255, 0.2);
  border-top-color: var(--site-gold, #d4af37);
  border-radius: 50%;
  animation: object_pic_spin 0.8s linear infinite;
  pointer-events: none;
}

.is-loaded > .object_pic_spinner{
  display: none;
}

/* фото плавно проявляється, коли завантажилось */
.object_pic_link > .object_pic,
.object_pic_thumb > .object_pic{
  transition: opacity 0.25s;
}

.object_pic_link:not(.is-loaded) > .object_pic,
.object_pic_thumb:not(.is-loaded) > .object_pic{
  opacity: 0;
}

@keyframes object_pic_spin{
  to{ transform: rotate(360deg); }
}

/* сторінка інвесторів: фото — CSS-фон, спінер позиціюється відносно блоку */
.object_investors_right_pic_1{
  position: relative;
}

.object_pic_no_photo{
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  color: #adb3bd;
}

.object_pic_more{
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 500;
  color: #f2f3f5;
  background-color: rgba(0, 0, 0, 0.5);
}

.object_pic_more b{
  font-size: 16px;
  font-weight: 600;
}

/* прев'ю відкривають галерею Fancybox (view/object_card.php) — курсор-лупа замість звичайного посилання */
.object_pic_link[data-fancybox],
.object_pic_thumb{
  cursor: zoom-in;
}

/* рамка прев'ю при наведенні: окремий шар поверх фото, бо outline ховається під абсолютним img;
   над головним фото — поверх бейджів і чекбокса не лізе (z-index у них вищий) */
.object_pic_link::after,
.object_pic_thumb::after{
  content: "";
  position: absolute;
  inset: 0;
  box-sizing: border-box;
  border: 2px solid #6b7584;
  border-radius: 6px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

/* бейджі на фото: НОВИНКА, ЗАВДАТОК, ОРЕНДА ВІД … ДО … (object_card_prepare.php) */
.object_top_absolute{
  position: absolute;
  top: 10px;
  left: 10px;
  right: 60px;
  z-index: 2;
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 10px;
  pointer-events: none;
}

.object_top_absolute:empty{
  display: none;
}

.object_new,
.object_deposit,
.object_rent{
  padding: 10px;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 0.03em;
  color: #f2f3f5;
  white-space: nowrap;
  border-radius: 6px;
}

.object_new{
  background-color: #31363f;
}

.object_deposit{
  background-color: #08090b;
}

.object_deposit u{
  text-decoration: none;
}

.object_rent{
  background-color: #17644e;
}

.object_rent_expired{
  background-color: #922f47;
}

/* котеджне містечко на фото (лише агентам) */
.object_km{
  position: absolute;
  left: 10px;
  bottom: 10px;
  z-index: 2;
  max-width: calc(100% - 20px);
  padding: 10px;
  box-sizing: border-box;
  overflow: hidden;
  font-size: 12px;
  font-weight: 500;
  color: #f2f3f5;
  white-space: nowrap;
  text-overflow: ellipsis;
  background-color: rgba(0, 0, 0, 0.6);
  border-radius: 6px;
  pointer-events: none;
}

/* Чекбокс мультивибірки (view/select_mode.php); у сучасних картках — праворуч від ціни. */
.checkbox_multi{
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 3;
}

.object_price_line > .checkbox_multi{
  position: relative;
  top: auto;
  right: auto;
  flex: 0 0 auto;
  margin-left: auto;
}

.checkbox-wrapper-45{
  position: relative;
}

.checkbox-wrapper-45 input[type="checkbox"]{
  display: none;
}

.checkbox-wrapper-45 .cbx{
  position: relative;
  display: block;
  cursor: pointer;
}

.checkbox-wrapper-45 .box{
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  box-sizing: border-box;
  background-color: #0e0f12;
  border: 2px solid rgba(201, 162, 107, 0.55);
  border-radius: 6px;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.checkbox-wrapper-45 .box::after{
  content: "";
  width: 16px;
  height: 14px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 14'%3E%3Cpath d='M2 8.5L6 12.5L14 1.5' stroke='%230b0b0c' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round' fill='none'/%3E%3C/svg%3E") no-repeat center / contain;
  opacity: 0;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.checkbox-wrapper-45 input[type="checkbox"]:checked + .cbx .box{
  background-color: var(--site-gold);
  border-color: var(--site-gold);
}

.checkbox-wrapper-45 input[type="checkbox"]:checked + .cbx .box::after{
  opacity: 1;
  transform: scale(1.1);
}

/* хвиля від галочки (js/catalog_multi_ripple.js задає анімацію ripple-out) */
.checkbox-wrapper-45 .ripple{
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background-color: rgba(201, 162, 107, 0.35);
  transform: translate(-50%, -50%);
  pointer-events: none;
}

@keyframes ripple-out{
  from{
    width: 0;
    height: 0;
    opacity: 1;
  }
  to{
    width: 70px;
    height: 70px;
    opacity: 0;
  }
}

.object_info{
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1 1 auto;
  min-width: 0;
}

.object_head{
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.object_summary{
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px;
  font-size: 12px;
  font-weight: 300;
  color: #adb3bd;
}

/* назва + сердечко «Обране» (view/favorite_heart.php) в один рядок */
.object_title_line{
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 20px;
  min-width: 0;
}

.object_title{
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  font-size: 20px;
  font-weight: 500;
  line-height: 1.3;
  white-space: nowrap;
  text-overflow: ellipsis;
  text-decoration: underline;
  text-decoration-color: transparent;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
  transition: text-decoration-color 0.2s ease;
}

.object_price_line{
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 20px;
}

.object_price_values{
  display: flex;
  flex: 1 1 auto;
  min-width: 0;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 20px;
}

.object_price{
  font-size: 30px;
  font-weight: 700;
  letter-spacing: -0.5px;
  color: #eef0f4;
}

.object_price_per_metres{
  font-size: 14px;
  font-weight: 300;
  color: #adb3bd;
}

/* «ціна змінилась» (лише агентам, if_was_price_change.php) */
.object_reason_update{
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  font-weight: 400;
  color: #ff6b6b;
}


.object_params{
  display: flex;
  gap: 20px;
}

.object_info > .object_params{
  display: grid;
  gap: 0;
  grid-auto-flow: column;
  grid-auto-columns: minmax(0, 1fr);
  border: 1px solid #343943;
  border-radius: 6px;
  overflow: hidden;
}

.object_param{
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
  padding: 10px;
  background-color: #22252b;
}

.object_param + .object_param{
  border-left: 1px solid #343943;
}

.object_param_label{
  font-size: 12px;
  font-weight: 300;
  color: #adb3bd;
  overflow-wrap: anywhere;
}

.object_param_value{
  font-size: 14px;
  font-weight: 500;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.object_location{
  grid-area: location;
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  font-size: 14px;
  font-weight: 300;
  line-height: 1.4;
  color: #adb3bd;
}

.object_location > svg{
  flex: 0 0 18px;
  width: 18px;
  height: 20px;
  stroke: #d4d9e2;
  stroke-width: 1.5;
}

.object_location_items{
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.object_location_items > span + span::before{
  content: "·";
  margin: 0 10px;
  color: #939ba8;
}

/* квартири в новобудовах: назва ЖК над районом і вулицею, як назва місця на мапі */
.object_location_text{
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-width: 0;
}

/* шпилька — по центру висоти групи «ЖК / риска / район і вулиця» */
.object_location_has_complex{
  align-items: center;
}

/* коротка риска між ЖК і адресою — кольору рамки картки, ледь помітна на фоні */
.object_location_sep{
  width: 60px;
  height: 1px;
  background-color: #343943;
}

.object_location_complex{
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  font-weight: 500;
  color: #eef0f4;
}

.object_location_complex > span{
  font-weight: 300;
  color: #adb3bd;
}

/* котеджне містечко: інші будинки групи (лише агентам; кнопка «ще» — js/catalog_km_more.js) */
.object_params_km{
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.object_params_km_object,
.object_params_km_object_more{
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 10px;
  padding: 10px;
  box-sizing: border-box;
  font-size: 13px;
  font-weight: 500;
  border-radius: 6px;
  transition: color 0.2s ease, background-color 0.2s ease;
}

.object_params_km_object{
  color: #eef0f4;
  background-color: #22252b;
}

.object_params_km_object_more{
  justify-content: center;
  color: #adb3bd;
  border: 1px dashed #454d59;
  cursor: pointer;
}

.object_bottom{
  flex: 1 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas: "location more";
  align-items: center;
  align-content: end;
  gap: 10px 20px;
  margin-top: 0;
  padding-top: 0;
}

.object_bottom_has_meta{
  grid-template-areas: "location more" "meta more";
}

.object_bottom > .object_meta{
  grid-area: meta;
  font-size: 12px;
}

/* агенту без режиму клієнта: менеджер, ME/АРХІВ, дата оновлення і одразу за нею дата публікації */
.object_meta{
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  min-width: 0;
  font-size: 14px;
  font-weight: 300;
  color: #adb3bd;
}

.object_meta_sep{
  color: #939ba8;
}

.object_date{
  white-space: nowrap;
}

.object_list_an{
  font-size: 12px;
  font-weight: 600;
  color: #ff8ca1;
}

.object_more{
  position: relative;
  isolation: isolate;
  overflow: hidden;
  grid-area: more;
  align-self: end;
  display: flex;
  flex-direction: row;
  flex: 0 0 auto;
  margin-left: auto;
  align-items: center;
  gap: 10px;
  height: 40px;
  padding: 0 20px;
  box-sizing: border-box;
  font-size: 14px;
  color: #adb3bd;
  background-color: #22252b;
  border-radius: 6px;
  transition: color 0.3s ease;
}

.object_more::before{
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-color: #08090b;
  transform: scaleX(0);
  transform-origin: left;
  pointer-events: none;
  transition: transform 0.35s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.object_more::after{
  content: "";
  width: 6px;
  height: 6px;
  border-top: 2px solid currentColor;
  border-right: 2px solid currentColor;
  transform: rotate(45deg);
}

/* сердечко «Обране» — коли на сайті ввімкнено SHOW_FAVORITES (include_func/favorites.php) */
.object_favorite{
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  margin: -10px;
  padding: 10px;
  background: none;
  border: none;
  border-radius: 6px;
  cursor: pointer;
}

.object_favorite_icon{
  width: 22px;
  height: 22px;
  fill: transparent;
  stroke: #adb3bd;
  stroke-width: 2;
  stroke-linejoin: round;
  transition: fill 0.2s ease, stroke 0.2s ease;
}

.object_favorite.is-active .object_favorite_icon{
  fill: #d4d9e2;
  stroke: #d4d9e2;
}

.object_favorite.is-pop .object_favorite_icon{
  animation: object_favorite_pop 0.4s cubic-bezier(0.3, 0.6, 0.4, 1);
}

@keyframes object_favorite_pop{
  0%{
    transform: scale(1);
  }
  40%{
    transform: scale(1.3);
  }
  100%{
    transform: scale(1);
  }
}

/* підказка з повною датою / імʼям (створює panel/js/object_date_tip.js) */
.object_date_tip{
  cursor: help;
  white-space: nowrap;
}

.object_date_tip_box{
  position: fixed;
  z-index: 4000;
  display: flex;
  max-width: min(520px, calc(100vw - 20px));
  padding: 10px;
  box-sizing: border-box;
  font-size: 12px;
  font-weight: 400;
  color: #f2f3f5;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  background-color: #08090b;
  border-radius: 6px;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transform: translateY(4px);
  transition: opacity 0.18s ease, visibility 0.18s ease, transform 0.18s ease;
}

.object_date_tip_box.is-visible{
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* «нічого не знайдено» (filter/not_found_object.php) */
.gap5px{
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 40px 20px;
  box-sizing: border-box;
  text-align: center;
  background-color: #191b20;
  border-radius: 10px;
}

.not_found_1{
  font-size: 20px;
  font-weight: 500;
}

.not_found_2{
  font-size: 14px;
  font-weight: 300;
  color: #adb3bd;
}

/* карта (desktop_content_map.php; решта стилів — усередині файлу) */
.content_map{
  display: flex;
  flex-direction: row;
  width: 100%;
  overflow: hidden;
  background-color: #292d35;
  border-radius: 10px;
}

/* ===== пагінація (view/pagination.php) ===== */

.pagination_wrap{
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  padding: 20px 0 0 0;
}

.pagination{
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 20px;
}

.pagination_button{
  display: flex;
  align-items: center;
  height: 40px;
  padding: 0 40px;
  box-sizing: border-box;
  font-size: 14px;
  color: #adb3bd;
  background-color: #191b20;
  border: 1px solid #454d59;
  border-radius: 6px;
  transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}

.pagination_button_disabled{
  opacity: 0.4;
  pointer-events: none;
}

.pagination_current{
  font-size: 14px;
  font-weight: 500;
  color: #adb3bd;
}

.pagination_numbers{
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.pag_num,
.pag_dots{
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 5px;
  box-sizing: border-box;
  font-size: 14px;
  font-weight: 500;
  color: #adb3bd;
  border-radius: 6px;
  transition: color 0.2s ease, background-color 0.2s ease;
}

.pag_num_active{
  color: #f2f3f5;
  background-color: #31363f;
}

.pag_dots{
  min-width: 0;
  color: #939ba8;
}

/* ===== галерея Fancybox з картки (view/object_card.php): мініатюри з радіусом 6px, вибрана й фокус — акцент ===== */

.fancybox__container{
  --f-thumb-border-radius: 6px;
  --f-thumb-selected-border: 2px solid #cd6133;
  --f-button-outline-color: #cd6133;
}

/* ===== модалка входу (логіка — як на prostir.estate: desktop_1_up_line.php) =====
   display:none поки модалка закрита: інакше iOS бачить type=password на весь екран
   і пропонує «Заповнити пароль» на кожен тап. Поява — анімація при display:flex,
   зникнення — клас .closing (JS чекає 0.2s і лише тоді прибирає .active). */

@keyframes overlay_in{
  from{
    opacity: 0;
  }
  to{
    opacity: 1;
  }
}

@keyframes overlay_out{
  from{
    opacity: 1;
  }
  to{
    opacity: 0;
  }
}

@keyframes modal_in{
  from{
    opacity: 0;
    transform: translateY(20px) scale(0.98);
  }
  to{
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes modal_out{
  from{
    opacity: 1;
    transform: translateY(0) scale(1);
  }
  to{
    opacity: 0;
    transform: translateY(10px) scale(0.98);
  }
}

@keyframes modal_item_in{
  from{
    opacity: 0;
    transform: translateY(10px);
  }
  to{
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes modal_bar_in{
  from{
    transform: scaleY(0);
  }
  to{
    transform: scaleY(1);
  }
}

@keyframes modal_shake{
  0%, 100%{
    transform: translateX(0);
  }
  20%, 60%{
    transform: translateX(-6px);
  }
  40%, 80%{
    transform: translateX(6px);
  }
}

#modal-overlay{
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  box-sizing: border-box;
  background-color: rgba(0, 0, 0, 0.6);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}

#modal-overlay.active{
  display: flex;
  animation: overlay_in 0.25s ease both;
}

#modal-overlay.active.closing{
  animation: overlay_out 0.2s ease both;
}

.modal{
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 100%;
  max-width: 360px;
  padding: 30px;
  box-sizing: border-box;
  background-color: #191b20;
  border-radius: 10px;
}

#modal-overlay.active .modal{
  animation: modal_in 0.35s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

#modal-overlay.active.closing .modal{
  animation: modal_out 0.2s ease both;
}

/* помилка входу — коротке похитування (клас ставить JS) */
#modal-overlay.active .modal.is-shake{
  animation: modal_shake 0.4s ease;
}

/* акцентна риса зліва «малюється» зверху вниз — як у картки обʼєкта при наведенні */
.modal::before{
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 4px;
  background-color: #31363f;
  transform: scaleY(0);
  transform-origin: top;
}

#modal-overlay.active .modal::before{
  animation: modal_bar_in 0.45s 0.15s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

/* вміст зʼявляється по черзі */
#modal-overlay.active .modal__head,
#modal-overlay.active .modal__field,
#modal-overlay.active .modal__btn{
  animation: modal_item_in 0.35s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

#modal-overlay.active .modal__field:nth-of-type(2){
  animation-delay: 0.06s;
}

#modal-overlay.active .modal__field:nth-of-type(3){
  animation-delay: 0.12s;
}

#modal-overlay.active .modal__btn{
  animation-delay: 0.18s;
}

.modal__close{
  position: absolute;
  top: 10px;
  right: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  padding: 0;
  color: #adb3bd;
  background: transparent;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: color 0.2s ease, background-color 0.2s ease;
}

.modal__close svg{
  width: 16px;
  height: 16px;
}

.modal__head{
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-align: center;
}

.modal__logo{
  display: block;
  height: 40px;
  margin: 0 0 10px 0;
}

.modal__title{
  font-size: 22px;
  font-weight: 500;
}

.modal__subtitle{
  font-size: 13px;
  font-weight: 300;
  color: #adb3bd;
}

.modal__field{
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.modal__label{
  font-size: 12px;
  font-weight: 500;
}

.modal__control{
  position: relative;
  display: flex;
  align-items: center;
}

.modal__icon{
  position: absolute;
  left: 12px;
  width: 16px;
  height: 16px;
  color: #939ba8;
  pointer-events: none;
  transition: color 0.2s ease;
}

.modal__control:focus-within .modal__icon{
  color: #d4d9e2;
}

.modal__input{
  width: 100%;
  height: 40px;
  padding: 0 40px 0 40px;
  box-sizing: border-box;
  font-size: 13px;
  font-weight: 500;
  color: #eef0f4;
  background-color: #191b20;
  border: 1px solid #454d59;
  border-radius: 6px;
  outline: none;
  transition: border-color 0.2s ease;
}

.modal__input::placeholder{
  font-weight: 400;
  color: #939ba8;
}

.modal__input:focus{
  border-color: #6b7584;
}

/* «Показати пароль» — око всередині поля; чекбокс #auth_show_pass лишається для JS */
.modal__eye{
  position: absolute;
  right: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  color: #adb3bd;
  border-radius: 6px;
  cursor: pointer;
  transition: color 0.2s ease, background-color 0.2s ease;
}

.modal__eye input{
  position: absolute;
  width: 0;
  height: 0;
  margin: 0;
  opacity: 0;
}

.modal__eye svg{
  width: 16px;
  height: 16px;
}

.modal__eye_closed,
.modal__eye input:checked ~ .modal__eye_open{
  display: none;
}

.modal__eye input:checked ~ .modal__eye_closed{
  display: block;
}

.modal__eye input:checked ~ svg{
  color: #d4d9e2;
}

.modal__eye:has(input:focus-visible){
  outline: 2px solid #6b7584;
  outline-offset: 1px;
}

.modal__btn{
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 40px;
  padding: 0 20px;
  box-sizing: border-box;
  font-size: 13px;
  font-weight: 500;
  color: #f2f3f5;
  background-color: #31363f;
  border: none;
  border-radius: 6px;
  outline: none;
  cursor: pointer;
  user-select: none;
  transition: color 0.2s ease, background-color 0.2s ease;
}

.modal__btn:disabled{
  color: #adb3bd;
  background-color: #292d35;
  cursor: not-allowed;
}

.modal__spinner{
  display: none;
  width: 14px;
  height: 14px;
  box-sizing: border-box;
  border: 2px solid rgba(173, 179, 189, 0.25);
  border-top-color: #555f6d;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

.modal__btn:disabled .modal__spinner{
  display: inline-block;
}

#modal_auth_msg:empty{
  display: none;
}

#modal_auth_msg{
  margin: -10px 0 0 0;
  padding: 10px;
  font-size: 13px;
  font-weight: 500;
  text-align: center;
  border-radius: 6px;
  animation: fade_in 0.2s ease both;
}

#modal_auth_msg.is-success{
  color: #70dab6;
  background-color: rgba(16, 172, 132, 0.08);
}

#modal_auth_msg.is-error{
  color: #ff8ca1;
  background-color: rgba(235, 59, 90, 0.08);
}

/* Єдиний стиль керування каталогом: світла рамка, помаранчевий вибір, чорне заповнення. */
.scope_tabs{
  gap: 10px;
  padding: 0;
  background-color: transparent;
  border: 0;
}

:is(.sale_rent_button, .sale_rent_button_active, .count_line_2_sort, .filter_button, .filter_reset_mobile, .filter_more){
  position: relative;
  isolation: isolate;
  height: 40px;
  box-sizing: border-box;
  font-size: 13px;
  font-weight: 500;
  border: 1px solid #343943;
  border-radius: 6px;
  cursor: pointer;
  transition: color 0.3s ease, border-color 0.3s ease, opacity 0.2s ease;
}

:is(.sale_rent_button, .sale_rent_button_active, .count_line_2_sort, .filter_button, .filter_reset_mobile, .filter_more)::before{
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-color: #08090b;
  border-radius: inherit;
  transform: scaleX(var(--catalog-control-fill, 0));
  transform-origin: left;
  pointer-events: none;
  transition: transform 0.35s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.sale_rent_button,
.filter_reset_mobile,
.filter_more{
  color: #adb3bd;
  background-color: #191b20;
}

.sale_rent_button_active,
.filter_button{
  border-color: #6b7584;
}

.count_line_2_sort{
  padding: 10px;
}

.filter_button:disabled,
.filter_reset_mobile:disabled{
  border-color: #343943;
}

:is(.sale_rent_button, .sale_rent_button_active, .count_line_2_sort, .filter_button, .filter_reset_mobile, .filter_more):is(:focus-visible, :active):not(:disabled):not(.is-disabled):not(.is-loading){
  --catalog-control-fill: 1;
  --catalog-control-surface: #08090b;
  --catalog-control-accent: currentColor;
  color: #f2f3f5;
  border-color: #596270;
}

@media (hover: hover){
  :is(.sale_rent_button, .sale_rent_button_active, .count_line_2_sort, .filter_button, .filter_reset_mobile, .filter_more):hover:not(:disabled):not(.is-disabled):not(.is-loading){
    --catalog-control-fill: 1;
    --catalog-control-surface: #08090b;
    --catalog-control-accent: currentColor;
    color: #f2f3f5;
    border-color: #596270;
  }
}

/* ===== hover (лише там, де є курсор) ===== */

@media (hover: hover){
  /* посилання */
  .up_line_phone:hover,
  .breadcrumbs a:hover{
    color: #d4d9e2;
  }

  .object_title:hover{
    text-decoration-color: #d4d9e2;
  }

  /* меню: сіра риса під пунктом, активний лишається акцентним */
  .menu_btn:hover{
    color: #eef0f4;
  }

  .menu_btn:hover::after{
    opacity: 1;
  }

  /* головні дії чорніють, як шапка */
  .modal__btn:hover:not(:disabled),
  .multi_gen_btn:hover:not(:disabled):not(.multi_copied),
  .open_link_search_by_id:hover{
    color: #f2f3f5;
    background-color: #08090b;
    border-color: #596270;
  }

  /* Чорне заповнення зліва направо; текст і стрілка залишаються на місці. */
  .object_more:is(:hover, :focus-visible){
    color: #f2f3f5;
  }

  .object_more:is(:hover, :focus-visible)::before{
    transform: scaleX(1);
  }

  .pagination_button:hover,
  .multi_new_btn:hover:not(:disabled){
    color: #f2f3f5;
    background-color: #08090b;
    border-color: #596270;
  }

  .up_line_login:hover{
    color: #f2f3f5;
    background-color: #191b20;
    border-color: #5a626f;
  }

  /* другорядні кнопки лише темніють */
  .modal__close:hover,
  .modal__eye:hover{
    color: #eef0f4;
    background-color: #292d35;
  }

  .pag_num:not(.pag_num_active):hover{
    color: #eef0f4;
    background-color: #292d35;
  }

  /* поля: рамка темнішає, у фокусі лишається акцентною */
  .inputs_filter:hover,
  .inputs_filter_left:hover,
  .inputs_filter_right:hover,
  .inputs_filter_investors:hover,
  .modal__input:hover{
    border-color: #555f6d;
  }

  .inputs_filter:focus,
  .build_numbers:has(> .drop_filter_menu_numbers[style*="display: block"]) > .inputs_filter,
  .inputs_filter_left:focus,
  .inputs_filter_right:focus,
  .inputs_filter_investors:focus,
  .modal__input:focus{
    border-color: #6b7584;
  }

  /* варіанти списку й сортування: та сама акцентна риса зліва, що й у картки */
  .checkbox_filter label:hover,
  .sort_popup_item:not(.sort_active):hover{
    background-color: #22252b;
    background-image: linear-gradient(#31363f, #31363f);
    background-repeat: no-repeat;
    background-size: 3px 100%;
  }

  .checkbox_filter input[type="checkbox"]:checked + label:hover{
    background-color: #31363f;
    background-image: none;
  }

  .selected-value:hover{
    background-color: #08090b;
  }

  .checkbox-wrapper-45 .cbx:hover .box{
    border-color: var(--site-gold-light);
  }

  .object_favorite:hover .object_favorite_icon{
    stroke: #d4d9e2;
  }

  .object_params_km_object:hover{
    color: #f2f3f5;
    background-color: #08090b;
  }

  .object_params_km_object_more:hover{
    color: #eef0f4;
    border-color: #555f6d;
  }

  /* картка */
  .object:hover::before{
    transform: scaleY(1);
  }

  /* прев'ю фото: лише акцентна рамка (галерею відкриває клік — Fancybox) */
  .object_pic_link[data-fancybox]:hover::after,
  .object_pic_thumb:hover::after{
    opacity: 1;
  }
}

.up_line_login:focus-visible,
.menu_btn:focus-visible,
.menu_btn_active:focus-visible,
.sale_rent_button:focus-visible,
.sale_rent_button_active:focus-visible,
.count_line_2_sort:focus-visible,
.multi_gen_btn:focus-visible,
.multi_new_btn:focus-visible,
.object_title:focus-visible,
.object_more:focus-visible,
.object_pic_link:focus-visible,
.object_pic_thumb:focus-visible,
.object_favorite:focus-visible,
.pagination_button:focus-visible,
.pag_num:focus-visible,
.filter_button:focus-visible,
.filter_reset_mobile:focus-visible,
.filter_more:focus-visible,
.modal__close:focus-visible,
.modal__btn:focus-visible{
  outline: 2px solid #6b7584;
  outline-offset: 2px;
}

@media (max-width: 1400px){
  .object_pics{
    --object-thumb-size: 60px;
  }

  .object_title{
    font-size: 18px;
  }

  .object_price{
    font-size: 28px;
  }
}

/* На ноутбуках картка лишається горизонтальною. */
@media (max-width: 1200px){
  .up_line_address{
    visibility: hidden;
  }
}

@media (max-width: 1100px){
  .object{
    flex-direction: column;
  }

  .object_pics{
    flex: 0 0 auto;
    width: 100%;
    max-width: none;
    min-height: calc(3 * var(--object-thumb-size) + 20px);
  }

}

@media (prefers-reduced-motion: reduce){
  *,
  *::before,
  *::after{
    animation: none !important;
    transition: none !important;
  }

  /* без анімації акцентна риса модалки просто є */
  #modal-overlay.active .modal::before{
    transform: scaleY(1);
  }
}

/* ===== сторінка обʼєкта (object_desktop.php) =====
   блоки й назви класів — як у object/desktop_*.php на mdgroup.if.ua і prostir.estate,
   вигляд — за правилами цієї сторінки: радіус 6px / 10px, gap 10px / 20px, без тіней */

/* назва обʼєкта: довга переноситься */
.block_1_inside_left:has(.block_1_inside_title_object){
  flex: 1 1 0;
}

.block_1_inside_title_object{
  font-size: 32px;
  overflow-wrap: anywhere;
}

/* ===== галерея: велике фото й дві колонки мініатюр, як на старій сторінці =====
   у каталозі .block_2 — фільтр і список із відступом 40px, тут до колонок 20px */

.block_2_gallery{
  padding: 0 0 20px 0;
}

.gallery{
  display: grid;
  grid-template-columns: 1fr 200px 200px;
  grid-template-rows: repeat(3, 1fr);
  gap: 20px;
  flex: 1 1 auto;
  min-width: 0;
  height: 520px;
}

.gallery_cols_1{
  grid-template-columns: 1fr 300px;
}

.gallery_cols_0{
  grid-template-columns: 1fr;
}

.gallery_rows_2{
  grid-template-rows: repeat(2, 1fr);
}

.gallery_rows_1{
  grid-template-rows: 1fr;
}

.gallery_empty{
  display: flex;
  align-items: center;
  justify-content: center;
  height: 240px;
  background-color: #292d35;
  border-radius: 6px;
}

.gallery_no_photo{
  font-size: 15px;
  color: #adb3bd;
}

/* Порожні слоти залишаються в сітці та не відкривають галерею. */
.gallery .gallery_slot_empty{
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  padding: 10px;
  text-align: center;
  cursor: default;
}

.gallery .gallery_slot_empty::after{
  display: none;
}

.gallery_main{
  position: relative;
  grid-row: 1 / -1;
  display: block;
  overflow: hidden;
  border-radius: 6px;
  background-color: #292d35;
  cursor: zoom-in;
}

.gallery_thumb{
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: 6px;
  background-color: #292d35;
  cursor: zoom-in;
}

.gallery_pic{
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery_counter{
  position: absolute;
  left: 20px;
  bottom: 20px;
  padding: 4px 10px;
  font-size: 13px;
  font-weight: 500;
  color: #f2f3f5;
  background-color: rgba(0, 0, 0, 0.5);
  border-radius: 6px;
  pointer-events: none;
}

.gallery_more{
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 500;
  color: #f2f3f5;
  background-color: rgba(0, 0, 0, 0.5);
}

.gallery_more b{
  font-size: 24px;
  font-weight: 700;
  line-height: 1;
}

/* рамка мініатюри — той самий акцентний маркер, що й у списку */
.gallery_thumb::after{
  content: "";
  position: absolute;
  inset: 0;
  box-sizing: border-box;
  border: 2px solid #6b7584;
  border-radius: 6px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

/* ===== дві колонки: зліва характеристики й опис; справа ціна, менеджер, замовлення дзвінка ===== */

.block_3{
  display: flex;
  flex-direction: column;
  padding: 0 0 20px 0;
}

.block_3_inside{
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 20px;
  width: 100%;
}

.block_3_inside_left{
  display: flex;
  flex-direction: column;
  gap: 20px;
  flex: 1 1 auto;
  min-width: 0;
}

.block_3_inside_right{
  display: flex;
  flex-direction: column;
  gap: 20px;
  flex: 0 0 420px;
  min-width: 0;
}

.block_3_card{
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 20px;
  box-sizing: border-box;
  background-color: #22252b;
  border: 1px solid #343943;
  border-radius: 10px;
}

.block_3_card_head{
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.block_3_card_intro{
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.block_3_card_title{
  font-size: 20px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.2px;
}

.block_3_card_note{
  font-size: 13px;
  font-weight: 400;
  color: #adb3bd;
}

.block_3_card_slogan{
  font-size: 14px;
  font-weight: 300;
  line-height: 1.5;
  color: #adb3bd;
}

.block_3_card_text{
  max-width: 80ch;
  font-size: 15px;
  font-weight: 400;
  line-height: 1.6;
  white-space: break-spaces;
  text-align: justify;
  overflow-wrap: break-word;
}

/* ===== карта обʼєкта (object/desktop_maps.php) ===== */

.object_map_wrap{
  position: relative;
  overflow: hidden;
  isolation: isolate;
  aspect-ratio: 16 / 7;
  border-radius: 6px;
  background-color: #14161a;
  clip-path: inset(0 round 6px);
  user-select: none;
}

#object_map{
  position: absolute;
  inset: 0;
}

.object_map_wrap:fullscreen,
.object_map_wrap:-webkit-full-screen{
  width: 100%;
  height: 100%;
  aspect-ratio: auto;
  border-radius: 0;
  clip-path: none;
}

.object_map_loader{
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #14161a;
  opacity: 1;
  transition: opacity 0.4s;
}

.object_map_loader.is-hidden{
  opacity: 0;
  pointer-events: none;
}

.object_map_loader_spinner{
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 3px solid rgba(185, 195, 210, 0.25);
  border-top-color: #6b7584;
  animation: object_map_spin 0.8s linear infinite;
}

@keyframes object_map_spin{
  to { transform: rotate(360deg); }
}

.object_map_error{
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 20px;
  box-sizing: border-box;
  text-align: center;
  background-color: #14161a;
  color: #eef0f4;
  font-size: 14px;
}

.object_map_error[hidden]{
  display: none;
}

.object_map_error a{
  color: #d4d9e2;
  font-weight: 600;
  text-decoration: none;
}

.object_map_error a:hover{
  color: #b9c1ce;
}

#object_map_toolbar{
  position: absolute;
  top: 20px;
  left: 20px;
  right: 70px;
  z-index: 1;
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  pointer-events: none;
}

#object_map_toolbar > *{
  pointer-events: auto;
}

#object_toggle_3d_btn,
#object_toggle_satellite_btn,
#object_gmaps_btn{
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  padding: 9px 10px;
  font-family: "Rubik", sans-serif;
  font-size: 12px;
  font-weight: 500;
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #eef0f4;
  background-color: #191b20;
  border: 1px solid #454d59;
  border-radius: 6px;
  text-decoration: none;
  cursor: pointer;
  transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}

#object_toggle_3d_btn:hover,
#object_toggle_satellite_btn:hover,
#object_gmaps_btn:hover{
  color: #f2f3f5;
  background-color: #08090b;
  border-color: #596270;
}

#object_map_toolbar .map_btn_active,
#object_map_toolbar .map_btn_active:hover{
  color: #211a13;
  background-color: #c9a26b;
  border-color: #c9a26b;
}

.object_map_wrap .maplibregl-ctrl-top-right{
  margin: 12px 12px 0 0;
}

.object_map_wrap .maplibregl-ctrl-bottom-left{
  margin: 0 0 8px 8px;
}

.object_map_wrap .maplibregl-ctrl-bottom-right .maplibregl-ctrl-attrib{
  margin: 0 8px 8px 0;
  border-radius: 6px;
  font-family: "Rubik", sans-serif;
}

.object_map_wrap .maplibregl-ctrl-group{
  border-radius: 6px;
  overflow: hidden;
}

.object_map_popup{
  display: flex;
  flex-direction: column;
  gap: 4px;
  max-width: 240px;
}

.object_map_popup_complex{
  font-weight: 600;
  color: #d4d9e2;
  line-height: 1.35;
}

.object_map_popup_title{
  font-weight: 600;
  color: #eef0f4;
  line-height: 1.35;
}

.object_map_wrap .maplibregl-popup-content{
  font-family: "Rubik", sans-serif;
  font-size: 13px;
  color: #eef0f4;
  background: #191b20;
  border-radius: 6px;
  padding: 12px 32px 12px 12px;
  box-shadow: rgba(0, 0, 0, 0.1) 0px 1px 3px 0px, rgba(0, 0, 0, 0.06) 0px 1px 2px 0px;
}

.object_map_wrap .maplibregl-popup-close-button{
  font-size: 18px;
  width: 26px;
  height: 26px;
  line-height: 24px;
  right: 4px;
  top: 4px;
  padding: 0;
  color: #d4d9e2;
  border-radius: 50%;
  background: rgba(25, 27, 32, 0.92);
}

.object_map_wrap .maplibregl-popup-close-button:hover{
  background: #191b20;
  color: #eef0f4;
}

.object_map_wrap .maplibregl-popup-anchor-top .maplibregl-popup-tip,
.object_map_wrap .maplibregl-popup-anchor-top-left .maplibregl-popup-tip,
.object_map_wrap .maplibregl-popup-anchor-top-right .maplibregl-popup-tip{
  border-bottom-color: #5a626f;
}

.object_map_wrap .maplibregl-popup-anchor-bottom .maplibregl-popup-tip,
.object_map_wrap .maplibregl-popup-anchor-bottom-left .maplibregl-popup-tip,
.object_map_wrap .maplibregl-popup-anchor-bottom-right .maplibregl-popup-tip{
  border-top-color: #5a626f;
}

/* ===== ціна й статуси ===== */

.block_3_price{
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
  padding: 28px;
  box-sizing: border-box;
  background-color: #22252b;
  border: 1px solid #343943;
  border-radius: 10px;
}

/* Ціна зверху, вартість одиниці площі — окремим рядком нижче. */
.block_3_price_row,
.block_3_price > .block_price{
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
}

.block_3_price_value,
.block_3_price .block_price_1 > .block_price_1_down{
  font-family: "Unbounded", "Rubik", sans-serif;
  font-size: clamp(36px, 3.4vw, 50px);
  font-weight: 300;
  line-height: 1.15;
  letter-spacing: -0.04em;
  overflow-wrap: anywhere;
}

.block_3_price_per,
.block_3_price .block_price_2 > .block_price_1_down{
  font-size: 14px;
  font-weight: 300;
  line-height: 1.5;
  color: #adb3bd;
}

.block_3_price .block_price_1{
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.block_3_price .block_price_1_up{
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #adb3bd;
}

.block_price_period{
  display: inline-block;
  margin-left: 6px;
  font-family: "Rubik", sans-serif;
  font-size: 16px;
  font-weight: 300;
  letter-spacing: 0;
  color: #adb3bd;
}

.block_3_price_status:not(:has(> .status_object)){
  display: none;
}

.block_3_price_status{
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 10px;
}

.status_object{
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.2;
  color: #f2f3f5;
  background-color: #922f47;
  border-radius: 6px;
  white-space: nowrap;
}

.status_object_deposit,
.block_3_price_status > .status_object:has(> u){
  background-color: #08090b;
}

/* ===== характеристики ===== */

.inside_object_params{
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 100%;
  padding: 20px;
  box-sizing: border-box;
  background-color: #22252b;
  border: 1px solid #343943;
  border-radius: 10px;
}

/* Дві колонки параметрів: назви ліворуч, значення праворуч, між рядками — лінії. */
.inside_params_list{
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 20px;
}

.inside_params_group{
  display: flex;
  flex-direction: column;
  gap: 0;
}

.inside_params_group + .inside_params_group{
  padding: 0;
}

.inside_params_other_1{
  display: flex;
  flex-direction: row;
  align-items: baseline;
  gap: 10px;
  min-width: 0;
  padding: 12px 0;
  border-bottom: 1px solid #343943;
  line-height: 1.5;
}

/* У двоколонковому списку останній візуальний рядок не має нижньої лінії. */
.inside_params_list > .inside_params_other_1:last-child,
.inside_params_list > .inside_params_other_1:nth-last-child(2):nth-child(odd),
.inside_params_group:last-child > .inside_params_other_1:last-child,
.owner_private_block:last-child > .inside_params_other_1:last-child{
  border-bottom: none;
}

.params_flex_3{
  flex: 0 0 45%;
  min-width: 0;
  font-weight: 300;
  color: #adb3bd;
  overflow-wrap: anywhere;
}

.params_flex_4{
  flex: 1 1 auto;
  min-width: 0;
  font-weight: 500;
  text-align: right;
  overflow-wrap: anywhere;
}

.params_flex_4--id{
  display: flex;
  align-items: baseline;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 10px;
}

.params_flex_4 .dfgd,
.params_flex_4 .dfgdd{
  align-items: flex-end;
}

/* посилання й дії в параметрах — пунктирне підкреслення, як ID */
.params_flex_4 a,
.zip_link,
.copy-id-btn{
  border-bottom: 1px dashed #454d59;
  cursor: pointer;
  transition: color 0.2s ease, border-color 0.2s ease;
}

/* «Приховано» — не посилання: приглушено й без підкреслення */
.params_flex_4 u{
  font-weight: 400;
  color: #adb3bd;
  text-decoration: none;
}

.params_muted{
  color: #adb3bd;
}

/* Усі рядки власників мають ті самі розділювачі, що й характеристики. */
.owners_private{
  gap: 0;
}

.owner_private_block{
  display: flex;
  flex-direction: column;
  gap: 0;
}

.copy-id-label{
  display: none;
  font-size: 12px;
  font-weight: 500;
  color: #70dab6;
}

/* ===== менеджер ===== */

.inside_manager{
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 20px;
  box-sizing: border-box;
  background-color: #22252b;
  border: 1px solid #343943;
  border-radius: 10px;
}

.manager{
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 20px;
  min-width: 0;
}

.manager_photo{
  flex: 0 0 auto;
  width: 100px;
  height: 100px;
  overflow: hidden;
  border-radius: 6px;
  background-color: #292d35;
}

.manager_photo .photo{
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.manager_info{
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
}

.manager_ups{
  font-size: 12px;
  line-height: 1.2;
  color: #adb3bd;
}

.manager_name{
  font-size: 20px;
  font-weight: 600;
  line-height: 1.2;
}

.manager_phone a{
  display: inline-block;
  color: var(--site-gold);
  font-size: 15px;
  font-weight: 500;
  transition: color 0.2s ease;
}

/* особистий лінк для клієнта (лише ріелтор): у картці менеджера під кнопками, як на gkalliance.com.ua */
.create_private_link{
  display: flex;
  flex-direction: column;
  gap: 20px;
  border-top: 1px solid #343943;
}

/* форма містить лише приховані поля — без display:none вона стає
   зайвим flex-елементом і подвоює gap батька (40px замість 20px) */
#generate_link{
  display: none;
}

/* блок лінка згорнутий до натискання "Створити", далі плавно розгортається */
.create_private_this_link_in{
  display: grid;
  grid-template-rows: 0fr;
  min-width: 0;
  padding-top: 0;
  opacity: 0;
  /* згортання: спершу гасне текст, потім складається блок */
  transition: opacity 0.2s ease, grid-template-rows 0.4s ease 0.2s, padding-top 0.4s ease 0.2s;
}

.create_private_this_link_in.is-open{
  grid-template-rows: 1fr;
  padding-top: 20px;
  opacity: 1;
  /* розгортання: спершу кнопка доїжджає донизу, потім проявляється текст */
  transition: grid-template-rows 0.4s ease, padding-top 0.4s ease, opacity 0.3s ease 0.4s;
}

.create_private_this_link{
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.4;
  color: #adb3bd;
  text-align: center;
  word-break: break-all;
}

/* кнопки особистого лінка: заливка й спінер як на gkalliance, кольори сайту */
#copy_new_btns{
  display: none;
  flex-direction: row;
  gap: 10px;
  animation: private_link_fade_in 0.35s ease;
}

@keyframes private_link_fade_in{
  from{ opacity: 0; }
  to{ opacity: 1; }
}

@media (prefers-reduced-motion: reduce){
  .create_private_this_link_in,
  .create_private_this_link_in.is-open{
    transition: none;
  }

  #copy_new_btns{
    animation: none;
  }
}

#copy_new_btns .input_copy_btn{
  flex: 1;
  min-width: 0;
}

.create_private_link .input_copy_btn{
  position: relative;
  overflow: hidden;
  isolation: isolate;
  height: 42px;
  width: 100%;
  padding: 0 16px;
  border: 1px solid #6b7584;
  border-radius: 6px;
  background: transparent;
  color: #d4d9e2;
  font-family: "Rubik", sans-serif;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.09em;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  user-select: none;
  box-sizing: border-box;
  transition: border-color 0.45s ease;
}

.create_private_link .input_copy_btn::before{
  content: "";
  position: absolute;
  inset: 0;
  background: #31363f;
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1), background 0.45s ease;
  z-index: -1;
  pointer-events: none;
}

.create_private_link .input_copy_btn_label{
  position: relative;
  z-index: 1;
  color: #d4d9e2;
  font-weight: 500;
  letter-spacing: 0.09em;
  transition: color 0.45s ease, letter-spacing 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.create_private_link .input_copy_btn:hover::before,
.create_private_link .input_copy_btn.is-loading::before,
.create_private_link .input_copy_btn_primary::before{
  transform: scaleX(1);
}

.create_private_link .input_copy_btn:hover .input_copy_btn_label,
.create_private_link .input_copy_btn.is-loading .input_copy_btn_label,
.create_private_link .input_copy_btn_primary .input_copy_btn_label{
  color: #f2f3f5;
  letter-spacing: 0.14em;
}

.create_private_link .input_copy_btn_primary:hover::before{
  background: #08090b;
}

.create_private_link .input_copy_btn:focus-visible{
  outline: 2px solid #6b7584;
  outline-offset: 2px;
}

.create_private_link .input_copy_btn:disabled{
  cursor: not-allowed;
  pointer-events: auto;
  opacity: 0.65;
}

.create_private_link .input_copy_btn.is-loading:disabled{
  opacity: 1;
}

.create_private_link .input_copy_btn_spinner{
  position: relative;
  z-index: 1;
  width: 0;
  height: 13px;
  margin-left: 0;
  opacity: 0;
  overflow: hidden;
  border: 0 solid rgba(185, 195, 210, 0.35);
  border-top-color: #6b7584;
  border-radius: 50%;
  box-sizing: border-box;
  transition: width 0.25s ease, margin-left 0.25s ease, opacity 0.2s ease, border-width 0.25s ease, border-color 0.45s ease;
}

.create_private_link .input_copy_btn:hover .input_copy_btn_spinner,
.create_private_link .input_copy_btn.is-loading .input_copy_btn_spinner,
.create_private_link .input_copy_btn_primary .input_copy_btn_spinner{
  border-color: rgba(255, 255, 255, 0.4);
  border-top-color: #5a626f;
}

.create_private_link .input_copy_btn.is-loading .input_copy_btn_spinner{
  width: 13px;
  margin-left: 8px;
  opacity: 1;
  border-width: 2px;
  animation: spin 0.6s linear infinite;
}

.pic_documents{
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.pic_documents_photos{
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 1 / 1;
  color: #adb3bd;
  background-color: #292d35;
  border-radius: 6px;
  transition: color 0.2s ease, background-color 0.2s ease;
}

.description_managers{
  font-size: 14px;
  font-weight: 400;
  line-height: 1.6;
  white-space: break-spaces;
  text-align: justify;
  overflow-wrap: break-word;
}

/* відеоогляд (object/desktop_video_review.php). На LEVEL блок у hidden, стилі ті самі, що на prostir.
   ширина кадру — інлайн у PHP: горизонтальне 50%, вертикальне 25%, між ними gap 20px */
.block_line_3_desc{
  box-sizing: border-box;
  padding: 20px;
  background-color: #22252b;
  border: 1px solid #343943;
  border-radius: 10px;
}

.video_review_list{
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 20px;
  width: 100%;
}

.video_review{
  position: relative;
  overflow: hidden;
  border-radius: 10px;
  background-color: #22252b;
}

.video_review video,
.video_review .plyr{
  width: 100%;
  height: 100%;
}

.video_review .plyr video{
  object-fit: contain;
}

.video_review .plyr{
  --plyr-color-main: #cd6133;
}

/* ===== історія змін: перемикач, графік і таблиці ===== */

.switch_tabs{
  display: flex;
  flex-direction: row;
  padding: 3px;
  box-sizing: border-box;
  border: 1px solid #454d59;
  border-radius: 6px;
}

.switch_btn{
  padding: 5px 10px;
  font-size: 12px;
  font-weight: 500;
  color: #adb3bd;
  background-color: transparent;
  border: none;
  border-radius: 3px;
  outline: none;
  cursor: pointer;
  transition: color 0.2s ease, background-color 0.2s ease;
}

.switch_btn.is-active{
  color: #f2f3f5;
  background-color: #31363f;
}

/* графік ціни (Chart.js, object/desktop_tabs.php) — висота як на prostir */
#price_view_chart{
  position: relative;
  height: 240px;
}

#price_view_chart canvas{
  height: 100% !important;
}

.table_history{
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.table_history th{
  padding: 0 10px 10px 0;
  font-size: 12px;
  font-weight: 400;
  text-align: left;
  color: #adb3bd;
  border-bottom: 1px solid #343943;
}

.table_history td{
  padding: 10px 10px 10px 0;
  font-weight: 500;
  border-bottom: 1px solid #343943;
}

.table_history th:last-child,
.table_history td:last-child{
  padding-right: 0;
}

.table_history tbody tr:last-child td{
  padding-bottom: 0;
  border-bottom: none;
}

.table_history td.is_down{
  color: #70dab6;
}

.table_history td.is_up{
  color: #ff8ca1;
}

/* ===== hover ===== */

@media (hover: hover){
  .gallery_thumb:hover::after{
    opacity: 1;
  }

  .params_flex_4 a:hover,
  .zip_link:hover,
  .copy-id-btn:hover{
    color: #d4d9e2;
  }

  .manager_phone a:hover{
    color: var(--site-gold-light);
  }

  .params_flex_4 a:hover,
  .zip_link:hover,
  .copy-id-btn:hover{
    border-bottom-color: #6b7584;
  }

  .switch_btn:hover:not(.is-active){
    color: #eef0f4;
    background-color: #22252b;
  }

  .pic_documents_photos:hover{
    color: #f2f3f5;
    background-color: #31363f;
  }
}

.switch_btn:focus-visible,
.pic_documents_photos:focus-visible,
.gallery_main:focus-visible,
.gallery_thumb:focus-visible,
.copy-id-btn:focus-visible{
  outline: 2px solid #6b7584;
  outline-offset: 2px;
}

@media (max-width: 1400px){
  .gallery{
    grid-template-columns: 1fr 160px 160px;
    height: 440px;
  }

  .gallery_cols_1{
    grid-template-columns: 1fr 240px;
  }

  .gallery_cols_0{
    grid-template-columns: 1fr;
  }

  .block_3_inside_right{
    flex-basis: 380px;
  }
}

/* ===== сторінка обʼєкта: стани, яких немає в макеті (дані з БД, заявки, службові дії) ===== */

/* менеджер без фото — перша літера імені на чорному, як шапка сайту */
.manager_photo .photo_letter{
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 40px;
  font-weight: 600;
  color: #f2f3f5;
  background-color: #08090b;
}

/* JPG і дубль: рядок результату і нижнє вікно підтвердження, як на gkalliance */
.dfgd,
.dfgdd{
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.confirm_overlay{
  display: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  overscroll-behavior: none;
}

.confirm_overlay.active,
.confirm_overlay.closing{
  display: flex;
}

.confirm_overlay::before{
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  opacity: 0;
  pointer-events: none;
  z-index: 0;
  transition: opacity 0.22s ease;
}

.confirm_overlay.is-visible::before{
  opacity: 1;
}

.confirm_overlay.closing::before{
  opacity: 0;
  transition-duration: 0.2s;
}

.confirm_popup_sheet{
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 420px;
  padding: 20px;
  background: #191b20;
  border-radius: 6px;
  box-sizing: border-box;
  margin: 20px;
  cursor: default;
}

.confirm_overlay.active .confirm_popup_sheet{
  animation: confirmPopupSheetIn 0.22s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.confirm_overlay.closing .confirm_popup_sheet{
  animation: confirmPopupSheetOut 0.2s ease forwards;
}

@keyframes confirmPopupSheetIn{
  from{ transform: translateY(100%); }
  to  { transform: translateY(0); }
}

@keyframes confirmPopupSheetOut{
  from{ transform: translateY(0); }
  to  { transform: translateY(100%); }
}

.confirm_popup_list{
  display: flex;
  flex-direction: column;
  gap: 10px;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}

.confirm_popup_item{
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 40px;
  padding: 8px 14px;
  border: 1px solid transparent;
  border-radius: 6px;
  font-family: "Rubik", sans-serif;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}

.confirm_popup_item_label{
  position: relative;
}

.confirm_popup_item_confirm{
  background: #31363f;
  color: #f2f3f5;
  border-color: #6b7584;
}

.confirm_popup_item_confirm:hover{
  background: #08090b;
  border-color: #596270;
}

.confirm_popup_item_confirm:disabled{
  background: #292d35;
  border-color: #3d4450;
  cursor: default;
}

.confirm_popup_item_cancel{
  background: transparent;
  color: #f2f3f5;
  border-color: #596270;
}

.confirm_popup_item_cancel:hover{
  background: #08090b;
  color: #f2f3f5;
}

.confirm_popup_item:focus-visible{
  outline: 2px solid #6b7584;
  outline-offset: 2px;
}

.status-good{
  font-weight: 600;
  color: #70dab6;
}

.status-bad,
.status-error{
  font-weight: 600;
  color: #ff8ca1;
}

.status-sql{
  font-weight: 600;
  color: #d4d9e2;
}

.status-unknown{
  font-weight: 600;
  color: #adb3bd;
}

/* документи — мініатюри фото, рамка при наведенні як у галереї */
.pic_documents_photos{
  position: relative;
  overflow: hidden;
  cursor: zoom-in;
}

.pic_documents_photo{
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pic_documents_photos::after{
  content: "";
  position: absolute;
  inset: 0;
  box-sizing: border-box;
  border: 2px solid #6b7584;
  border-radius: 6px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

@media (hover: hover){
  .pic_documents_photos:hover::after{
    opacity: 1;
  }
}


/* Тимчасовий темний перегляд. Точні оригінали та rollback.py — у резервній копії. */
body{
  color-scheme: dark;
  background-color: #0e0f12;
  color: #f2f3f5;
}

.width_1{
  color: #adb3bd !important;
}

/* Золотисті акценти тимчасової темної теми — відтінки LEVEL з референсу. */
:root{
  --site-gold: #c9a26b;
  --site-gold-light: #e6c999;
  --site-gold-ink: #0b0b0c;
}

::selection{
  color: var(--site-gold-ink);
  background-color: var(--site-gold);
}

.sale_rent_button_active,
.scope_btn.is-active,
.count_line_2_sort.is-active,
.filter_button:not(:disabled),
.modal__btn:not(.modal__btn_second):not(:disabled),
.multi_gen_btn:not(:disabled):not(.multi_copied),
.switch_btn.is-active,
.pag_num_active{
  --catalog-control-surface: var(--site-gold);
  --catalog-control-accent: currentColor;
  color: var(--site-gold-ink);
  background-color: var(--site-gold);
  border-color: var(--site-gold);
}

:is(.sale_rent_button, .sale_rent_button_active, .count_line_2_sort, .filter_button, .filter_reset_mobile, .filter_more)::before{
  background-color: var(--site-gold);
}

:is(.sale_rent_button, .sale_rent_button_active, .count_line_2_sort, .filter_button, .filter_reset_mobile, .filter_more):is(:focus-visible, :active):not(:disabled):not(.is-disabled):not(.is-loading){
  --catalog-control-surface: var(--site-gold);
  --catalog-control-accent: currentColor;
  color: var(--site-gold-ink);
  border-color: var(--site-gold);
}

.count_line_2_sort.is-active .count_line_2_icon_knob,
.count_line_2_sort.is-active .count_line_2_icon_knob_accent{
  stroke: currentColor;
}

.count_line_2_sort.is-active .count_line_2_icon_knob_accent{
  fill: currentColor;
}

.count_line_2_sort.is-active .icon_btn_spinner{
  border-color: rgba(11, 11, 12, 0.25);
  border-top-color: currentColor;
}

.object_more{
  position: relative;
  isolation: isolate;
  overflow: hidden;
  box-sizing: border-box;
  color: var(--site-gold);
  background-color: transparent;
  border: 1px solid var(--site-gold);
}

.object_more::before{
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-color: var(--site-gold);
  transform: scaleX(0);
  transform-origin: left;
  pointer-events: none;
  transition: transform 0.35s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.object_more:focus-visible{
  color: var(--site-gold-ink);
}

.object_more:focus-visible::before{
  transform: scaleX(1);
}

.up_line_login{
  color: var(--site-gold);
  border-color: rgba(201, 162, 107, 0.5);
}

.up_line_login:is(:active, :focus-visible){
  color: var(--site-gold-ink);
  background-color: var(--site-gold);
  border-color: var(--site-gold);
}

.object_price,
.block_3_price_value,
.block_3_price .block_price_1 > .block_price_1_down{
  color: var(--site-gold-light);
}

.menu_btn_active,
.block_1_inside_title_count_number{
  color: var(--site-gold);
}

.menu_btn::after,
.menu_btn_active::after,
.object::before,
.object_pics_dot.is-active{
  background-color: var(--site-gold);
}

.object_location > svg{
  stroke: var(--site-gold);
}

:is(.inputs_filter, .inputs_filter_left, .inputs_filter_right, .inputs_filter_investors, .modal__input):focus{
  border-color: var(--site-gold);
}

:is(.sale_rent_button, .sale_rent_button_active, .scope_btn, .count_line_2_sort, .filter_button, .filter_reset_mobile, .filter_more, .object_more, .object_pic_slide, .object_pic_link, .object_pic_thumb, .up_line_login, .switch_btn):focus-visible{
  outline-color: var(--site-gold);
}

@media (hover: hover){
  :is(.sale_rent_button, .sale_rent_button_active, .count_line_2_sort, .filter_button, .filter_reset_mobile, .filter_more):hover:not(:disabled):not(.is-disabled):not(.is-loading){
    --catalog-control-surface: var(--site-gold);
    --catalog-control-accent: currentColor;
    color: var(--site-gold-ink);
    border-color: var(--site-gold);
  }

  .object_more:hover{
    color: var(--site-gold-ink);
  }

  .object_more:hover::before{
    transform: scaleX(1);
  }

  .up_line_login:hover{
    color: var(--site-gold-ink);
    background-color: var(--site-gold);
    border-color: var(--site-gold);
  }

  .scope_btn.is-active:hover,
  .modal__btn:not(.modal__btn_second):not(:disabled):hover,
  .multi_gen_btn:not(:disabled):not(.multi_copied):hover{
    color: var(--site-gold-ink);
    background-color: var(--site-gold-light);
    border-color: var(--site-gold-light);
  }

  .object_title:hover{
    text-decoration-color: var(--site-gold);
  }

  .breadcrumbs a:hover,
  .up_line_phone:hover{
    color: var(--site-gold-light);
  }
}


/* BEGIN LEVEL CATALOG BUTTONS */
/* Кнопки каталогу. */
body.catalog-page :is(.scope_tabs .sale_rent_button, .scope_tabs .sale_rent_button_active,
         #copy_icon_btn, #hide_icon_btn, #sort_icon_btn, #filter_icon_btn,
         .filter_button, .filter_reset_mobile, .filter_more, .object_more) {
  border-radius: 9px;
  transition: color .2s ease, background-color .2s ease, border-color .2s ease,
              box-shadow .2s ease, opacity .2s ease;
}

/* Прибираємо попередню заливку, яка виїжджала зліва на hover. */
body.catalog-page :is(.scope_tabs .sale_rent_button, .scope_tabs .sale_rent_button_active,
         #copy_icon_btn, #hide_icon_btn, #sort_icon_btn, #filter_icon_btn,
         .filter_button, .filter_reset_mobile, .filter_more, .object_more)::before {
  content: none;
}

body.catalog-page .scope_tabs .sale_rent_button,
body.catalog-page :is(#copy_icon_btn, #hide_icon_btn, #sort_icon_btn, #filter_icon_btn),
body.catalog-page .filter :is(.filter_reset_mobile, .filter_more) {
  --catalog-control-surface: #1d2025;
  --catalog-control-accent: #d2d4d6;
  color: #c4c7cd;
  background: #1d2025;
  border: 1px solid #3b4049;
}

body.catalog-page .scope_tabs .sale_rent_button_active,
body.catalog-page .filter .filter_button:not(:disabled) {
  color: #211a13;
  background: #d5b17e;
  border: 1px solid #d5b17e;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .25);
}

body.catalog-page :is(#copy_icon_btn, #hide_icon_btn, #sort_icon_btn, #filter_icon_btn).is-active {
  --catalog-control-surface: #d5b17e;
  --catalog-control-accent: #211a13;
  color: #211a13;
  background: #d5b17e;
  border-color: #d5b17e;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .25);
}
body.catalog-page :is(#copy_icon_btn, #hide_icon_btn).is-active .icon_btn_spinner {
  border-color: rgba(33, 26, 19, .25);
  border-top-color: #211a13;
}

body.catalog-page .object_more {
  color: #e1c294;
  background: transparent;
  border: 1px solid #8e7759;
}
body.catalog-page .object_more::after {
  transition: transform .2s ease;
}

@media (hover: hover) {
  body.catalog-page .scope_tabs .sale_rent_button:hover:not(:disabled):not(.is-disabled):not(.is-loading),
  body.catalog-page .filter :is(.filter_reset_mobile, .filter_more):hover:not(:disabled):not(.is-disabled):not(.is-loading),
  body.catalog-page :is(#copy_icon_btn, #hide_icon_btn, #sort_icon_btn, #filter_icon_btn):hover:not(:disabled):not(.is-disabled):not(.is-loading) {
    --catalog-control-surface: #2b2a2a;
    --catalog-control-accent: #ead5b5;
    color: #f0ddc2;
    background: #2b2a2a;
    border-color: #a48762;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06);
  }
  body.catalog-page .scope_tabs .sale_rent_button_active:hover:not(:disabled):not(.is-disabled):not(.is-loading),
  body.catalog-page .filter .filter_button:hover:not(:disabled):not(.is-disabled):not(.is-loading),
  body.catalog-page :is(#copy_icon_btn, #hide_icon_btn, #sort_icon_btn, #filter_icon_btn).is-active:hover:not(:disabled):not(.is-disabled):not(.is-loading) {
    --catalog-control-surface: #e6c99c;
    --catalog-control-accent: #211a13;
    color: #211a13;
    background: #e6c99c;
    border-color: #e6c99c;
    box-shadow: 0 4px 16px rgba(201, 162, 107, .15), inset 0 1px 0 rgba(255, 255, 255, .3);
  }
  body.catalog-page .object_more:hover {
    color: #f3dfbf;
    background: rgba(201, 162, 107, .12);
    border-color: #d5b17e;
  }
  body.catalog-page .object_more:hover::after {
    transform: translateX(3px) rotate(45deg);
  }
}

body.catalog-page :is(.scope_tabs .sale_rent_button, .scope_tabs .sale_rent_button_active,
         #copy_icon_btn, #hide_icon_btn, #sort_icon_btn, #filter_icon_btn,
         .filter_button, .filter_reset_mobile, .filter_more, .object_more):focus-visible {
  outline: 2px solid #e6c999;
  outline-offset: 2px;
}

/* Той самий контраст для клавіатури та натискання на сенсорному екрані. */
body.catalog-page .scope_tabs .sale_rent_button:is(:focus-visible, :active):not(:disabled):not(.is-disabled):not(.is-loading),
body.catalog-page .filter :is(.filter_reset_mobile, .filter_more):is(:focus-visible, :active):not(:disabled):not(.is-disabled):not(.is-loading) {
  color: #f0ddc2;
  background: #2b2a2a;
  border-color: #a48762;
}
body.catalog-page .scope_tabs .sale_rent_button_active:is(:focus-visible, :active):not(:disabled):not(.is-disabled):not(.is-loading),
body.catalog-page .filter .filter_button:is(:focus-visible, :active):not(:disabled):not(.is-disabled):not(.is-loading) {
  color: #211a13;
  background: #e6c99c;
  border-color: #e6c99c;
}
body.catalog-page .object_more:focus-visible {
  color: #f3dfbf;
  background: rgba(201, 162, 107, .12);
  border-color: #d5b17e;
}
body.catalog-page :is(#copy_icon_btn, #hide_icon_btn, #sort_icon_btn, #filter_icon_btn):is(:focus-visible, :active):not(.is-active):not(.is-disabled):not(.is-loading) {
  --catalog-control-surface: #2b2a2a;
  --catalog-control-accent: #ead5b5;
  color: #f0ddc2;
  background: #2b2a2a;
  border-color: #a48762;
}

@media (prefers-reduced-motion: reduce) {
  body.catalog-page :is(.scope_tabs a, #copy_icon_btn, #hide_icon_btn, #sort_icon_btn, #filter_icon_btn,
           .filter_button, .filter_reset_mobile, .filter_more, .object_more),
  body.catalog-page .object_more::after {
    transition: none;
  }
}

/* END LEVEL CATALOG BUTTONS */

/* BEGIN LEVEL OBJECT BUTTONS */
/* Кнопки сторінки об'єкта. */
body.object-page :is(#object_toggle_3d_btn, #object_toggle_satellite_btn, #object_gmaps_btn,
         #price_view_buttons .switch_btn, .create_private_link .input_copy_btn,
         .confirm_popup_item, .carousel_pics_arrow) {
  border-radius: 9px;
  transition: color .2s ease, background-color .2s ease, border-color .2s ease,
              box-shadow .2s ease, opacity .2s ease;
}

/* Карта, посилання й неактивні вкладки. */
body.object-page #object_map_toolbar :is(#object_toggle_3d_btn, #object_toggle_satellite_btn, #object_gmaps_btn),
body.object-page #price_view_buttons .switch_btn,
body.object-page .create_private_link .input_copy_btn,
body.object-page .confirm_popup_item_cancel {
  color: #c4c7cd;
  background: #1d2025;
  border: 1px solid #3b4049;
}
body.object-page #price_view_buttons {
  gap: 3px;
  border-color: #3b4049;
  border-radius: 9px;
}
body.object-page #price_view_buttons .switch_btn {
  border-radius: 6px;
}

/* Вибраний режим і основна дія мають той самий теплий акцент, що і в каталозі. */
body.object-page #object_map_toolbar :is(#object_toggle_3d_btn, #object_toggle_satellite_btn, #object_gmaps_btn).map_btn_active,
body.object-page #price_view_buttons .switch_btn.is-active,
body.object-page .create_private_link .input_copy_btn_primary:not(:disabled),
body.object-page .create_private_link .input_copy_btn_primary.is-loading,
body.object-page .confirm_popup_item_confirm:not(:disabled) {
  color: #211a13;
  background: #d5b17e;
  border-color: #d5b17e;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .25);
}

/* Не змінюємо відстань між літерами та не закриваємо спінер анімацією. */
body.object-page .create_private_link .input_copy_btn::before {
  content: none;
}
body.object-page .create_private_link .input_copy_btn:is(:hover, .is-loading, .input_copy_btn_primary) .input_copy_btn_label,
body.object-page .create_private_link .input_copy_btn .input_copy_btn_label {
  color: inherit;
  letter-spacing: inherit;
  transition: color .2s ease;
}
body.object-page .create_private_link .input_copy_btn:is(:hover, .is-loading) .input_copy_btn_spinner {
  border-color: rgba(196, 199, 205, .3);
  border-top-color: currentColor;
}
body.object-page .create_private_link .input_copy_btn_primary:is(:hover, .is-loading) .input_copy_btn_spinner {
  border-color: rgba(33, 26, 19, .25);
  border-top-color: #211a13;
}

body.object-page .carousel_pics_arrow {
  color: #f1f1f1;
  background: rgba(29, 32, 37, .92);
  border: 1px solid rgba(255, 255, 255, .16);
}

@media (hover: hover) {
  body.object-page #object_map_toolbar :is(#object_toggle_3d_btn, #object_toggle_satellite_btn, #object_gmaps_btn):hover:not(.map_btn_active),
  body.object-page #price_view_buttons .switch_btn:hover:not(.is-active),
  body.object-page .create_private_link .input_copy_btn:hover:not(:disabled):not(.input_copy_btn_primary),
  body.object-page .confirm_popup_item_cancel:hover:not(:disabled),
  body.object-page .carousel_pics_arrow:hover {
    color: #f0ddc2;
    background: #2b2a2a;
    border-color: #a48762;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06);
  }
  body.object-page #object_map_toolbar :is(#object_toggle_3d_btn, #object_toggle_satellite_btn, #object_gmaps_btn).map_btn_active:hover,
  body.object-page #price_view_buttons .switch_btn.is-active:hover,
  body.object-page .create_private_link .input_copy_btn_primary:hover:not(:disabled),
  body.object-page .confirm_popup_item_confirm:hover:not(:disabled) {
    color: #211a13;
    background: #e6c99c;
    border-color: #e6c99c;
    box-shadow: 0 4px 16px rgba(201, 162, 107, .15), inset 0 1px 0 rgba(255, 255, 255, .3);
  }
}

body.object-page :is(#object_toggle_3d_btn, #object_toggle_satellite_btn, #object_gmaps_btn,
         #price_view_buttons .switch_btn, .create_private_link .input_copy_btn,
         .confirm_popup_item, .carousel_pics_arrow):focus-visible {
  outline: 2px solid #e6c999;
  outline-offset: 2px;
}
body.object-page #object_map_toolbar :is(#object_toggle_3d_btn, #object_toggle_satellite_btn, #object_gmaps_btn):active:not(.map_btn_active),
body.object-page #price_view_buttons .switch_btn:active:not(.is-active),
body.object-page .create_private_link .input_copy_btn:active:not(:disabled):not(.input_copy_btn_primary),
body.object-page .confirm_popup_item_cancel:active:not(:disabled),
body.object-page .carousel_pics_arrow:active {
  color: #f0ddc2;
  background: #2b2a2a;
  border-color: #a48762;
}
body.object-page #object_map_toolbar :is(#object_toggle_3d_btn, #object_toggle_satellite_btn, #object_gmaps_btn).map_btn_active:active,
body.object-page #price_view_buttons .switch_btn.is-active:active,
body.object-page .create_private_link .input_copy_btn_primary:active:not(:disabled),
body.object-page .confirm_popup_item_confirm:active:not(:disabled) {
  color: #211a13;
  background: #e6c99c;
  border-color: #e6c99c;
}

@media (prefers-reduced-motion: reduce) {
  body.object-page :is(#object_toggle_3d_btn, #object_toggle_satellite_btn, #object_gmaps_btn,
           #price_view_buttons .switch_btn, .create_private_link .input_copy_btn,
           .create_private_link .input_copy_btn_label, .confirm_popup_item, .carousel_pics_arrow) {
    transition: none;
  }
}

/* END LEVEL OBJECT BUTTONS */

/* BEGIN LEVEL FILTER FIELDS */
/* Спільні поля для всіх шаблонів filter/m_*.php. */
#filter_panel :is(.inputs_filter, .inputs_filter_left, .inputs_filter_right, .inputs_filter_investors),
#search_by_id_input {
  color: #eef0f4;
  background-color: #1d2025;
  border-color: #41464f;
  transition: background-color .2s ease, border-color .2s ease, box-shadow .2s ease;
}
#filter_panel :is(.inputs_filter, .inputs_filter_investors),
#search_by_id_input {
  padding-left: 13px;
  border-radius: 9px;
}
#filter_panel .inputs_filter {
  padding-right: 35px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='m1.5 1.5 4.5 4.5 4.5-4.5' fill='none' stroke='%23c9a26b' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-position: right 13px center;
  background-size: 12px 8px;
}
#filter_panel .inputs_filter_left {
  padding-left: 13px;
  border-radius: 9px 0 0 9px;
}
#filter_panel .inputs_filter_right {
  padding-left: 13px;
  border-radius: 0 9px 9px 0;
}
#filter_panel :is(.inputs_filter, .inputs_filter_left, .inputs_filter_right, .inputs_filter_investors)::placeholder,
#search_by_id_input::placeholder {
  color: #aeb4be;
  opacity: 1;
}

/* Відкритий список залишається з'єднаним із полем. */
#filter_panel .inputs_filter:focus,
#filter_panel .build_numbers:has(> .drop_filter_menu_numbers[style*="display: block"]) > .inputs_filter {
  background-color: #222327;
  border-color: #c9a26b;
  border-radius: 9px 9px 0 0;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .03);
}
#filter_panel :is(.inputs_filter_left, .inputs_filter_right, .inputs_filter_investors):focus,
#search_by_id_input:focus {
  background-color: #222327;
  border-color: #c9a26b;
  box-shadow: inset 0 0 0 1px rgba(201, 162, 107, .28);
}
#filter_panel .inputs_filter_left:focus + .inputs_filter_right {
  border-left-color: #c9a26b;
}
#filter_panel .drop_filter_menu_numbers {
  background-color: #1d2025;
  border-color: #a48762;
  border-radius: 0 0 9px 9px;
  box-shadow: 0 10px 20px rgba(0, 0, 0, .16);
  scrollbar-color: #665844 #1d2025;
}
#filter_panel .checkbox_filter label {
  color: #d9dbe0;
  transition: color .2s ease, background-color .2s ease, box-shadow .2s ease;
}
#filter_panel .checkbox_filter input[type="checkbox"]:checked + label {
  color: #f2d9b3;
  background-color: #3a3229;
  background-image: none;
  box-shadow: inset 3px 0 #c9a26b;
}
#filter_panel .selected-value {
  color: #efdbbd;
  background-color: #39332c;
  border: 1px solid #6c5b46;
  border-radius: 7px;
  transition: color .2s ease, background-color .2s ease, border-color .2s ease;
}
#filter_panel .remove-button {
  color: #d5b17e;
}

@media (hover: hover) {
  #filter_panel :is(.inputs_filter, .inputs_filter_left, .inputs_filter_right, .inputs_filter_investors):hover:not(:focus),
  #search_by_id_input:hover:not(:focus) {
    background-color: #24252a;
    border-color: #8d795e;
  }
  #filter_panel .checkbox_filter label:hover {
    color: #f0ddc2;
    background-color: #2b2a2a;
    background-image: none;
    box-shadow: inset 3px 0 #a48762;
  }
  #filter_panel .checkbox_filter input[type="checkbox"]:checked + label:hover {
    color: #f6e3c5;
    background-color: #493c2d;
    box-shadow: inset 3px 0 #e6c999;
  }
  #filter_panel .selected-value:hover {
    color: #f7e7cf;
    background-color: #4a3e31;
    border-color: #a48762;
  }
}
@media (prefers-reduced-motion: reduce) {
  #filter_panel :is(.inputs_filter, .inputs_filter_left, .inputs_filter_right, .inputs_filter_investors, .checkbox_filter label, .selected-value),
  #search_by_id_input {
    transition: none;
  }
}
/* END LEVEL FILTER FIELDS */

/* BEGIN LEVEL HEADING FONT */
:is(.block_1_inside_title_text, .object_title, .block_3_card_title, .filter_title, .modal__title, .block_line_2_title_1) {
  font-family: "Unbounded", "Rubik", sans-serif;
  font-weight: 500;
  letter-spacing: 0;
}

.block_1_inside_title_text { font-size: 30px; line-height: 1.25; }
.block_1_inside_title_object { font-size: 25px; line-height: 1.35; }
.object_title { font-size: 16px; line-height: 1.4; }
.block_3_card_title { font-size: 16px; line-height: 1.35; }
/* END LEVEL HEADING FONT */

/* заголовок картки обʼєкта see=an/me */
.object_title_see,
.object_title_see a{
  color: #10ac84;
}

/* заголовок обʼєкта see=an/me у списку інвестора */
.link_investors_list_see{
  color: #10ac84;
}

/* карта обʼєкта: темна підкладка — елементи MapLibre теж темні */
.object_map_wrap .maplibregl-ctrl-group{
  border: 1px solid #343943;
  box-shadow: none;
  background: #191b20;
}

.object_map_wrap .maplibregl-ctrl-group button + button{
  border-top: 1px solid #343943;
}

.object_map_wrap .maplibregl-ctrl-group button:hover{
  background: #31363f;
}

.object_map_wrap .maplibregl-ctrl-icon{
  filter: invert(1) brightness(0.9);
}

.object_map_wrap .maplibregl-ctrl-scale{
  border-color: #6b7584;
  color: #adb3bd;
  background: rgba(25, 27, 32, 0.85);
  font-family: "Rubik", sans-serif;
}

.object_map_wrap .maplibregl-ctrl-attrib{
  background: rgba(25, 27, 32, 0.85);
  color: #adb3bd;
}

.object_map_wrap .maplibregl-ctrl-attrib a{
  color: #adb3bd;
}

.object_map_wrap .maplibregl-ctrl-attrib-button{
  filter: invert(1);
}

.object_map_wrap .maplibregl-popup-anchor-top .maplibregl-popup-tip,
.object_map_wrap .maplibregl-popup-anchor-top-left .maplibregl-popup-tip,
.object_map_wrap .maplibregl-popup-anchor-top-right .maplibregl-popup-tip{
  border-bottom-color: #191b20;
}

.object_map_wrap .maplibregl-popup-anchor-bottom .maplibregl-popup-tip,
.object_map_wrap .maplibregl-popup-anchor-bottom-left .maplibregl-popup-tip,
.object_map_wrap .maplibregl-popup-anchor-bottom-right .maplibregl-popup-tip{
  border-top-color: #191b20;
}

/* позначка «Приховано» на карті обʼєкта */
#object_map_toolbar .map_hidden_badge{
  display: inline-flex;
  align-items: center;
  box-sizing: border-box;
  padding: 9px 10px;
  border: 1px solid #eb3b5a;
  border-radius: 9px;
  background-color: #eb3b5a;
  color: #FFFFFF;
  font-family: "Rubik", sans-serif;
  font-size: 12px;
  font-weight: 500;
  line-height: 1;
  white-space: nowrap;
  pointer-events: none;
}
