/* H4Y Skin — корпоративное оформление поверх WPResidence.
   Палитра: золото #c9a24b / #b88a32, тёмный #2a2620, зелёный (аренда) #3f9a5a. */

:root{ --h4y-gold:#c9a24b; --h4y-gold2:#b88a32; --h4y-dark:#2a2620; --h4y-green:#3f9a5a;
    --wp-estate-header-height:60px; --wp-estate-sticky-header-height:60px; }

.entry-title{ margin:0 !important; }

/* ===== 2. Главное меню: активный пункт в золоте с подчёркиванием ===== */
#menu-main-menu > li > a{ position:relative; transition:color .15s; }
#menu-main-menu > li.current-menu-item > a,
#menu-main-menu > li.current_page_item > a,
#menu-main-menu > li.current-menu-ancestor > a,
#menu-main-menu > li.current-menu-parent > a,
#menu-main-menu > li.h4y-nav-active > a,
#menu-main-menu > li > a:hover{ color:var(--h4y-gold2) !important; }

#menu-main-menu > li.current-menu-item > a::after,
#menu-main-menu > li.current_page_item > a::after,
#menu-main-menu > li.current-menu-ancestor > a::after,
#menu-main-menu > li.current-menu-parent > a::after,
#menu-main-menu > li.h4y-nav-active > a::after{
    content:''; position:absolute; left:0; right:0; bottom:-6px; height:3px; border-radius:3px;
    background:linear-gradient(90deg,var(--h4y-gold),var(--h4y-gold2)); }

/* ===== 3. Бейджи на карточке: Продажа — тёмный, Аренда — зелёный,
      статус (Новое/Горячее) — золотой ===== */
.action_tag_wrapper{
    border-radius:8px !important; padding:4px 11px !important; font-weight:400 !important;
    letter-spacing:.2px; box-shadow:0 4px 12px rgba(42,38,32,.22); border:0 !important; 
	opacity: 0.85;}
.action_tag_wrapper.Rentals,
.action_tag_wrapper.rentals{ background:var(--h4y-green) !important;
    box-shadow:0 4px 12px rgba(63,154,90,.26); }

.ribbon-inside,
.status-wrapper .ribbon-inside{
    color:#fff !important;
    border-radius:8px !important; padding:4px 11px !important; font-weight:400 !important;
    box-shadow:0 4px 12px rgba(184,138,50,.3); border:0 !important; }
/* убираем «хвостик» ленты, если тема его рисует */
.ribbon-inside::before,.ribbon-inside::after{ display:none !important; }

/* Краткое описание в карточке не нужно — скрываем (специфику оставляем). */
.property_listing .listing_details.the_grid_view,
.property_listing .listing_details.the_list_view{ display:none !important; }

/* ===== 4. Цена на всех карточках — корпоративное золото ===== */
.listing_unit_price_wrapper,
.listing_unit_price_wrapper .price_label{
    color:var(--h4y-gold2) !important; font-weight:700 !important; }

/* страница объекта: главная цена — золото, статус-бейдж — золотой */
.price_area,
.price_area .price_label{ color:var(--h4y-gold2) !important; }
.slider-property-status,
.status-wrapper .slider-property-status,
[class*="ribbon-wrapper-"]{
    background:linear-gradient(135deg,var(--h4y-gold),var(--h4y-gold2)) !important; color:#fff !important;
    border-radius:8px !important; font-weight:400 !important; }
/* бейджи в шапке страницы объекта: Продажа/Аренда — тёмный, категория — золото */
.single_property_labels .property_title_label{
    color:#fff !important; border-radius:8px !important; font-weight:400 !important; }
.single_property_labels .property_title_label.actioncat{
     }

/* ===== Панели фильтров/сортировки — «пилюли» в корп. стиле (десктоп) ===== */
@media (min-width:993px){
  /* --- Левая форма поиска: flex, ширина полей по содержимому --- */
  #instream-search-form{ display:flex !important; align-items:center; gap:0 !important; flex-wrap:wrap; row-gap:10px;
      width:-moz-fit-content !important; width:fit-content !important; max-width:100% !important; min-width:0 !important; box-sizing:border-box; }
  /* одинаковый отступ между полями через margin-right (пустые промо-элементы его не имеют) */
  #instream-search-form .dropdown.form-control{ margin:0 12px 0 0 !important; }
  #instream-search-form #prop_number{ margin:0 !important; }
  #instream-search-form .instream-search-btn{ margin:0 0 0 12px !important; }
  /* Колонки-обёртки убираем из потока — flex-элементами станут сами пилюли,
     тогда gap между полями одинаковый. */
  #instream-search-form div[class*="col-"]{ display:contents !important; }
  #instream-search-form .dropdown.form-control{
      width:auto !important; background:#fff !important; border:0 !important; border-radius:26px !important;
      height:48px !important; box-shadow:0 2px 8px rgba(42,38,32,.05) !important; padding:0 !important;
      display:flex !important; align-items:center !important; transition:box-shadow .15s; }
  #instream-search-form .filter_menu_trigger{
      display:flex !important; align-items:center; gap:8px; height:100%;
      padding:0 15px !important; font-size:14px; font-weight:500; color:var(--h4y-dark) !important;
      white-space:nowrap; cursor:pointer; }
  #instream-search-form .filter_menu_trigger .caret,
  #instream-search-form .filter_menu_trigger .caret_filter{
      position:static !important; flex:0 0 auto; margin:-3px 0 0 8px !important; border:0 !important;
      width:8px; height:8px; transform:rotate(45deg);
      border-right:2px solid #b4ab99 !important; border-bottom:2px solid #b4ab99 !important; }
  /* иконки слева у полей */
  #instream_adv_actions::before,
  #instream-advanced_city::before,
  #instream_adv_price_conditions_0::before,
  #instream_adv_price_conditions::before{
      content:''; width:18px; height:18px; flex:0 0 18px; background-repeat:no-repeat; background-position:center;
      background-size:contain; opacity:.75; }
  #instream_adv_actions::before{ background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236b6453' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 10c0 7-9 13-9 13s-9-6-9-13a9 9 0 0 1 18 0z'/%3E%3Ccircle cx='12' cy='10' r='3'/%3E%3C/svg%3E"); }
  #instream-advanced_city::before{ background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236b6453' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 3 3 5v16l6-2 6 2 6-2V3l-6 2-6-2z'/%3E%3Cpath d='M9 3v16M15 5v16'/%3E%3C/svg%3E"); }
  #instream_adv_price_conditions_0::before,
  #instream_adv_price_conditions::before{ background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236b6453' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='2' y='5' width='20' height='14' rx='3'/%3E%3Cpath d='M2 10h20'/%3E%3C/svg%3E"); }
  /* поле № Объекта — тоже пилюля */
  #instream-search-form #prop_number{
      background:#fff !important; border:1px solid #e8e3d7 !important; border-radius:26px !important;
      height:48px !important; padding:0 18px !important; font-size:14px; color:var(--h4y-dark) !important;
      box-shadow:0 2px 8px rgba(42,38,32,.05) !important; margin:0 !important;
      width:135px !important; min-width:135px !important; flex:0 0 135px !important; }
  #instream-search-form #prop_number:focus{ border-color:#d9c79b !important; outline:none;
      box-shadow:0 0 0 3px rgba(201,162,75,.12) !important; }

  /* круглая кнопка поиска (белая, золотая иконка) — и на обычном, и на half-map */
  #instream-search-form .instream-search-btn{
      width:48px !important; height:48px !important; min-width:48px; border-radius:50% !important;
      background:#fff !important; flex:0 0 48px;
      display:flex !important; align-items:center; justify-content:center; cursor:pointer; border:0 !important;
      transition:transform .15s; color:var(--h4y-gold2); }
  #instream-search-form .instream-search-btn:hover{ transform:scale(1.05); }
  #instream-search-form .instream-search-btn i{ color:var(--h4y-gold2) !important; font-size:17px !important; }

  /* --- Страница результатов (grid/list): поиск + сортировка строго в ОДНОМ ряду --- */
  /* Только внутри .h4y-search-row (не трогаем главную в #search_wrapper и half-map). */
  /* Контейнер ряда ~1170px — поджимаем форму, чтобы обе группы влезли без переноса. */
  .h4y-search-row{ justify-content:flex-start !important; align-items:center; flex-wrap:nowrap !important; gap:0 !important; }
  .h4y-search-row #instream-search-form{
      flex:0 1 auto !important; width:auto !important; flex-wrap:nowrap !important; margin:0 14px 0 0 !important; }
  .h4y-search-row #instream-search-form .dropdown.form-control{ margin:0 8px 0 0 !important; }
  .h4y-search-row #instream-search-form #prop_number{
      width:118px !important; min-width:118px !important; flex:0 0 118px !important; padding:0 14px !important; }
  .h4y-search-row #instream-search-form .instream-search-btn{ margin:0 0 0 8px !important; }
  .h4y-search-row .listing_filters_head{ flex:0 0 auto !important; flex-wrap:nowrap !important; gap:6px !important; }

  /* --- Правая панель: сортировка + режимы отображения (в т.ч. half-map, где нет .listing_filters_head) --- */
  .listing_filters_head{ display:flex !important; align-items:center; gap:8px; flex-wrap:wrap; }
  .listing_filter_select{
      background:#fff !important; border:0 !important; border-radius:26px !important;
      height:48px !important; display:flex !important; align-items:center; box-shadow:0 2px 8px rgba(42,38,32,.05) !important;
      padding:0 !important; }
  .listing_filter_select .filter_menu_trigger{
      background:transparent !important; border:0 !important; height:100%; display:flex !important; align-items:center; gap:9px;
      padding:0 16px !important; font-size:14px; font-weight:500; color:var(--h4y-dark) !important; white-space:nowrap; box-shadow:none !important; }
  .listing_filter_select .filter_menu_trigger::after{ content:'' !important; position:static !important; flex:0 0 auto;
      border:0 !important; width:8px; height:8px; transform:rotate(45deg);
      border-right:2px solid #b4ab99 !important; border-bottom:2px solid #b4ab99 !important; margin:-3px 0 0 8px; }
  #a_filter_order::before{ content:''; width:17px; height:17px; flex:0 0 17px; background-repeat:no-repeat; background-position:center;
      background-size:contain; opacity:.75;
      background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236b6453' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 6h18M6 12h12M9 18h6'/%3E%3C/svg%3E"); }
  /* иконки видов — скруглённые кнопки, активная золотая */
  #list_view, #grid_view, #h4y_map_view, #h4y_reset_view{
      width:35px; height:35px; display:inline-flex !important; align-items:center; justify-content:center;
      background:#fff; border-radius:14px; color:#c5c3c0; cursor:pointer;
      transition:all .15s; margin:0; }
  #list_view svg, #grid_view svg, #h4y_map_view svg, #h4y_reset_view svg,
  #list_view i, #grid_view i, #h4y_map_view i, #h4y_reset_view i{ width:19px; height:19px; }
  #grid_view.icon_selected, #list_view.icon_selected, #h4y_map_view.icon_selected{
      border-color:transparent !important; color:#b88a32 !important; }

  /* --- Выпадающие панели фильтров в стиле дизайна --- */
  #instream-search-form .dropdown-menu,
  .listing_filters_head .dropdown-menu{
      border:0 !important; border-radius:16px !important; background:#fff !important;
      box-shadow:0 18px 44px rgba(42,38,32,.16) !important; padding:12px !important; margin-top:8px !important; }
  #instream-search-form .instream-drop-ui{ min-width:320px !important; }
  /* сегмент Купить/Снять */
  #buyrent-switch{ display:flex !important; gap:4px !important;
      padding:4px !important; margin-bottom:12px !important; }
  #buyrent-switch .switch-button{ flex:1 1 0; display:flex !important; align-items:center; justify-content:center; gap:7px;
      text-align:center; padding:9px 10px !important; border-radius:9px !important; border:0 !important; background:transparent !important;
      font-weight:600; font-size:14px; color:#6b6453 !important; cursor:pointer; transition:background .15s,color .15s,box-shadow .15s; }
  #buyrent-switch .switch-button.active{ background:linear-gradient(135deg,var(--h4y-gold),var(--h4y-gold2)) !important; color:#fff !important;
      box-shadow:0 4px 12px rgba(184,138,50,.3); }
  #buyrent-switch .switch-button::before{ content:''; width:16px; height:16px; flex:0 0 16px; background-color:currentColor;
      -webkit-mask-repeat:no-repeat; mask-repeat:no-repeat; -webkit-mask-position:center; mask-position:center;
      -webkit-mask-size:contain; mask-size:contain; }
  #buy-switch::before{ -webkit-mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 11l9-8 9 8'/%3E%3Cpath d='M5 10v10h14V10'/%3E%3Cpath d='M9 20v-6h6v6'/%3E%3C/svg%3E");
      mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 11l9-8 9 8'/%3E%3Cpath d='M5 10v10h14V10'/%3E%3Cpath d='M9 20v-6h6v6'/%3E%3C/svg%3E"); }
  #rent-switch::before{ -webkit-mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='8' cy='9' r='5'/%3E%3Cpath d='M11.5 12.5L21 22'/%3E%3Cpath d='M17 18l2.5-2.5'/%3E%3C/svg%3E");
      mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='8' cy='9' r='5'/%3E%3Cpath d='M11.5 12.5L21 22'/%3E%3Cpath d='M17 18l2.5-2.5'/%3E%3C/svg%3E"); }
  /* блок «вид аренды»: тема ставит его absolute top-right — возвращаем в поток под переключатель */
  #instream-price-filter .rent-extra-block{ position:static !important; top:auto !important; right:auto !important; left:auto !important;
      width:100% !important; float:none !important; margin:0 0 10px !important; }
  #instream-price-filter .rent-extra-block select{ width:100% !important; border:1px solid #e8e3d7 !important; border-radius:10px !important;
      padding:9px 12px !important; font-size:14px !important; color:var(--h4y-dark) !important; outline:none; background:#fff !important; height:auto !important; }
  /* заголовки секций */
  .instream-holder-title{ font-size:11.5px !important; font-weight:700 !important; text-transform:uppercase; letter-spacing:.4px;
      color:#9a9488 !important; margin:12px 2px 6px !important; padding:0 !important; background:none !important; }
  .instream-holder:first-child .instream-holder-title{ margin-top:2px !important; }
  /* строки-чекбоксы в один столбец */
  .instream-holder-items [class*="col-"]{ width:100% !important; max-width:none !important; padding:0 !important; float:none !important; }
  .instream-holder-items label{ display:flex !important; align-items:center; gap:10px; padding:7px 9px !important; margin:0 !important;
      border-radius:9px; cursor:pointer; font-size:14px; color:var(--h4y-dark); transition:background .12s; }
  .instream-holder-items label:hover{ background:#f7f4ec; }
  .instream-holder-items input.instream-checkbox-item{ width:17px; height:17px; min-width:17px; accent-color:var(--h4y-gold2); margin:0; }
  .instream-checkbox-item:checked + .checkbox-span{ color:var(--h4y-gold2); font-weight:600; }
  /* списки городов / сортировки */
  #instream-search-form .filter_menu li,
  .listing_filters_head .filter_menu li{ padding:8px 12px !important; border-radius:9px; cursor:pointer; font-size:14px;
      color:var(--h4y-dark); list-style:none; }
  #instream-search-form .dropdown-menu.filter_menu li:hover,
  .listing_filters_head .dropdown-menu.filter_menu li:hover,
  #instream-search-form .filter_menu li:hover,
  .listing_filters_head .filter_menu li:hover{ background:#f7f4ec !important; color:var(--h4y-dark) !important; }

  /* правка: без рамки на hover у кнопки поиска */
  .h4y-search-row .instream-search-btn:hover{ border:0 !important; }
}

/* отступы строки поиска */
.h4y-search-row{ margin:22px 0 30px 0 !important; }

/* ===== Плитки каталога — единые карточки-блоки равной высоты ===== */
.listing_wrapper{ display:flex !important; flex-direction:column; margin-bottom:26px !important; }
.property_listing.property_card_default{
    float:none !important; width:100% !important; flex:1 1 auto; margin:0 !important;
    background:#fff !important; border:1px solid #ece6da !important; border-radius:16px !important; overflow:hidden !important;
    box-shadow:0 6px 20px rgba(42,38,32,.07) !important; display:flex !important; flex-direction:column; }
.property_listing.property_card_default:hover{ box-shadow:0 10px 30px rgba(42,38,32,.12) !important; }
.property_listing.property_card_default .property-unit-information-wrapper{
    display:flex !important; flex-direction:column; flex:1 1 auto; padding:13px 16px 14px !important; }
.property_listing.property_card_default h4{ margin:0 0 8px !important; min-height:42px; line-height:1.3; }
.property_listing.property_card_default h4 a{
    display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; }
/* блок менеджера всегда прижат к низу карточки */
.property_listing.property_card_default .h4y-card-agent{ margin-top:auto; }

/* цена (слева) + характеристики (справа) в один ряд */
.h4y-card-priceline{ display:flex !important; align-items:center; justify-content:space-between; gap:10px; margin:0 0 10px !important; }
.h4y-card-priceline .listing_unit_price_wrapper{ margin:0 !important; }
.h4y-card-priceline .property_listing_details{ margin:0 !important; text-align:right; }
.h4y-card-priceline .property_listing_details .listing_actions{ display:none !important; } /* пустой контейнер */
/* менеджер (слева, выровнен с заголовком) + кнопки поделиться/сравнить (справа) */
.property_listing .h4y-card-agent{ display:flex !important; align-items:center; gap:10px; }
.property_listing .h4y-card-agent-ava{ margin:0 !important; }
.property_listing .h4y-card-agent .listing_actions{ margin-left:auto !important; display:flex; align-items:center; gap:8px; }
.property_listing .property-unit-information-wrapper > .property_location{ display:none !important; } /* опустел после переноса */

/* ===== 5. Менеджер объекта в подвале карточки ===== */
.h4y-card-agent{ display:flex; align-items:center; gap:9px; margin-top:0; padding-top:5px;
    border-top:1px solid #eef0f3; }
.h4y-card-agent-ava{ width:36px !important; height:36px !important; min-width:36px; max-width:36px; border-radius:50% !important;
    object-fit:cover; background:linear-gradient(135deg,var(--h4y-gold),var(--h4y-gold2)); display:flex !important;
    align-items:center; justify-content:center; color:#fff; font-weight:700; font-size:15px; flex:0 0 36px; padding:0 !important;
    margin:5px 5px 10px 10px !important; border:0 !important; box-shadow:none !important; }
img.h4y-card-agent-ava{ display:inline-block !important; margin:0 !important; }
.h4y-card-agent-info{ display:flex; flex-direction:column; min-width:0; line-height:1.2; }
.h4y-card-agent-name{ font-weight:600; font-size:13px; color:var(--h4y-dark); white-space:nowrap;
    overflow:hidden; text-overflow:ellipsis; }
.h4y-card-agent-role{ font-size:11.5px; color:#9a9488; }
