/*
Theme Name: ListingHive Child
Theme URI: https://hivepress.io
Description: Дочерняя тема для ListingHive.
Author: Ваше Имя
Author URI: https://your-site.com
Template: listinghive
Version: 1.0.0
*/

/* ==========================================================================
   Базовые стили и шрифты
   ========================================================================== */
@import url('https://googleapis.com');

body, html, p, span, a, input, select, textarea, .hp-field, .hp-listing, .hp-vendor,
h1, h2, h3, h4, h5, h6, .hp-listing__title, .hp-vendor__name {
    font-family: 'PT Sans', sans-serif !important;
}

body {
    position: relative;
    padding-left: 0px !important; 
    padding-right: 0px !important; 
}

.container {
    margin-right: auto;
    margin-left: auto;
    padding-right: 1rem!important;
    padding-left: 1rem!important;
    width: 100% !important;
}

.hp-page {
    max-width: none;
    margin: 0 auto;
}

.site-content {
    padding: 0 !important;
    position: relative;
    z-index: 1; padding: 1rem 1rem !important;
}

/* ==========================================================================
   Шапка и форма поиска
   ========================================================================== */
.hp-form--listing-search,
.hp-form--vendor-search {
	border: 0px solid rgba(7, 36, 86, 0.075);
	border-radius: 0px;
	box-shadow: 0 2px 4px 0 rgba(7, 36, 86, 0);
	background-color: #fff;
	padding: 0.625rem;
	align-items: center;
}

.hp-form:not(:last-child) {
    margin-bottom: 0rem;
}

.hp-form__field--select { 
    display: none !important; 
}

.hp-search-with-logo { 
    display: flex; 
    align-items: center; 
    gap: 20px; 
    margin-bottom: 0; 
}

.hp-search-logo { 
    flex-shrink: 0; 
}

.hp-search-logo img { 
    max-height: 70px; 
    width: auto; 
}

.hp-search-form { 
    flex-grow: 1; 
}

.hp-page__header:not(:last-child) { 
    margin-bottom: 1rem !important; 
}

@media (max-width: 767px) { 
    .hp-search-with-logo { 
        flex-direction: column; 
        align-items: flex-start; 
    } 
}

/* ==========================================================================
   Виджет "Товары и услуги"
   ========================================================================== */
.widget_folders {
    background-color: #ff5900;
    padding: 15px;
    border-radius: 0px;
}

.widget_folders .widget__title {
    margin-bottom: 15px;
}

.widget_folders .widget__title a {
    font-size: 20px;
    font-weight: 700;
    color: #ffffff;
    text-decoration: none;
}

.widget_folders .link-tree__item-link {
    color: #ffffff !important;
    text-decoration: none;
    transition: opacity 0.2s;
}

.widget_folders .link-tree__item-link:hover {
    opacity: 0.8;
}

.widget_folders .link-tree__item-count {
    color: #ffffff;
    opacity: 0.6;
    font-size: 0.9em;
}

.widget_folders .link-tree__item-children {
    margin-left: 15px;
}

.widget_folders .link-tree__item {
    margin-bottom: 5px;
}

.widget_folders .widget__content {
    background: transparent;
    border: none;
}

/* ==========================================================================
   Индикаторы и мета-данные
   ========================================================================== */
.custom-indicators {
    display: inline-flex;
    align-items: center;
    gap: 20px;
    margin-left: 15px;
}

.custom-indicator {
    display: flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
    color: #333;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.2s;
}

.custom-indicator:hover {
    color: #e67e22;
}

.custom-indicator i {
    font-size: 18px;
}

.hp-meta, .hp-result-count {
    display: none;
}

/* ==========================================================================
   ЕДИНЫЕ СТИЛИ ДЛЯ КАРТОЧЕК КАТЕГОРИЙ И ОБЪЯВЛЕНИЙ
   ========================================================================== */

/* Общий контейнер */
.hp-listing-category--view-block,
.hp-listing--view-block {
    overflow: hidden;
    background: #ff5900 !important;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.15);
    transition: box-shadow 0.2s, transform 0.2s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    border: 7px solid #ff5900 !important;
    border-radius: 17px !important;
}
.hp-listing-category--view-block,
.hp-listing--view-block * {
    color: #ffffff !important;line-height: 1;
}
.hp-listing-category--view-block:hover,
.hp-listing--view-block:hover {
    box-shadow: 0 2px 12px rgba(0,0,0,0.1);
    transform: translateY(-5px);
}

/* ===== ИЗОБРАЖЕНИЕ КАТЕГОРИЙ — КВАДРАТНОЕ ===== */
.hp-listing-category__image--square {
    position: relative;
    width: 100%;
    padding-top: 100%;
    overflow: hidden;
    background: #ff5900;
    border-radius: 15px !important;
}

.hp-listing-category__image--square a,
.hp-listing-category__image--square img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ===== ИЗОБРАЖЕНИЕ ОБЪЯВЛЕНИЙ — ТОЛЬКО ОДИНОЧНЫЕ (БЕЗ СЛАЙДЕРА) ДЕЛАЕМ КВАДРАТНЫМИ ===== */
.hp-listing--view-block .hp-listing__image {
    position: relative;
    width: 100%;
    overflow: hidden;
    background: #ff5900;
    border-radius: 15px;
    aspect-ratio: auto !important; /* Убираем динамический aspect-ratio */
}

/* Если НЕТ слайдера — делаем квадрат */
.hp-listing--view-block .hp-listing__image > a:first-child:last-child {
    display: block;
    position: relative;
    width: 100%;
    padding-top: 100%;
}

.hp-listing--view-block .hp-listing__image > a:first-child:last-child img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* ===== СЛАЙДЕР — НЕ ТРОГАЕМ, ОСТАВЛЯЕМ РОДНЫЕ СТИЛИ ===== */
.hp-listing--view-block .hp-listing__image-slider {
    /* Не применяем padding-top, слайдер работает как обычно */
    border-radius: 15px !important;
    overflow: hidden;
}

.hp-listing--view-block .hp-listing__image-slider .slick-slide {
    border-radius: 15px !important;
    overflow: hidden;
}

.hp-listing--view-block .hp-listing__image-slider img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* ===== КОНТЕНТ — БЕЛАЯ ПОЛОСА ===== */
.hp-listing-category--view-block .hp-listing-category__header,
.hp-listing--view-block .hp-listing__header {
    position: static !important;
}

.hp-listing-category--view-block .hp-listing-category__content,
.hp-listing--view-block .hp-listing__content {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    right: auto !important;
    bottom: auto !important;
    background: #ff5900 !important;
   padding: 10px 5px !important;
    display: flex !important;
    flex-grow: 1;
    flex-direction: column-reverse;
    flex-grow: 1;
}

/* ===== НАЗВАНИЕ ===== */
.hp-listing-category__name {
    display: inline;
    margin: 0;
   font-size: 18px !important;
    line-height: 1;
    font-weight: 500;
    color: #000;
    white-space: normal;
    word-wrap: break-word;
    overflow: visible;
    max-width: none;
}

.hp-listing__title {
    display: inline;
    margin: 0;
   font-size: 18px !important;
    line-height: 1;
    font-weight: 500;
    color: #000;
    white-space: normal;
    word-wrap: break-word;
    overflow: visible;
    max-width: none;
}


.hp-listing-category__name a,
.hp-listing__title a {
    color: inherit;
    text-decoration: none;
}

.hp-listing-category__name a:hover,
.hp-listing__title a:hover {
    color: #0073aa;
}

/* ===== СЧЁТЧИК ===== */
.hp-listing-category__item-count {
    font-size: 13px;
    color: #fff;
    white-space: nowrap;
    margin-left: 0.45em;
    vertical-align: baseline;
    display: block !important;
}

/* ===== СКРЫВАЕМ ЛИШНЕЕ ===== */
.hp-listing--view-block .hp-listing__categories,
.hp-listing--view-page .hp-listing__categories {
    display: none !important;
}

.hp-listing--view-block .hp-listing__created-date,
.hp-listing--view-page .hp-listing__created-date {
    display: none !important;
}

.hp-listing__details {
    display: none !important;
}

/* ===== ФУТЕР С ЦЕНОЙ ===== */
.hp-listing--view-block .hp-listing__footer {
    margin-top: auto !important;
    padding: 5px !important;
    border-top: 2px solid rgba(255, 255, 255, 0.5) !important;
}

/* ==========================================================================
   Адаптивная сетка и сайдбар
   ========================================================================== */
@media (min-width: 768px) {
    .hp-listings .hp-grid__item.hp-col-sm-6 {
        flex: 0 0 20%;
        max-width: 20%;
    }
    .hp-page__sidebar {
        flex: 0 0 20%;
        max-width: 20%;
    }
    .hp-page__content {
        flex: 0 0 80%;
        max-width: 80%;
    }
}

@media only screen and (min-width: 960.01px) and (max-width: 74.99em) {
    .header-navbar__menu {
        display: flex !important;
    }
    .header-navbar__burger > a {
        display: none !important;
    }
}

@media only screen and (max-width: 960px) {
    .header-navbar__menu {
        display: none !important;
    }
    .header-navbar__burger > a {
        display: flex !important;
        align-items: center !important;
    }
}

@media only screen and (max-width: 74.99em) {
    .site-content {
        padding: 1rem 1rem !important;
    }
}

.hp-grid__item {
    margin-bottom: 2rem;
   padding-left: 0rem !important;
}
/*
body {
  background-color: #fafafa; 
  background-image: 
    radial-gradient(circle at 15% 50%, rgba(255, 89, 0, 0.04), transparent 40%),
    radial-gradient(circle at 85% 30%, rgba(255, 89, 0, 0.03), transparent 40%);
  background-size: 100% 100%;
  
 
  animation: softPulse 15s ease-in-out infinite alternate;
  margin: 0;
  min-height: 100vh;
}

@keyframes softPulse {
  0% {
    background-size: 100% 100%;
    background-position: 0% 0%;
  }
  100% {
    background-size: 110% 110%;
    background-position: 2% 2%;
  }
}
*/

/* Выстраиваем элементы строго в одну линию */
.hp-listing-category--view-page .hp-listing-category__header {
    display: flex !important;
    flex-direction: row !important; 
    align-items: center !important;  /* Выравнивание по вертикальному центру */
    flex-wrap: nowrap !important;    /* Запрещаем перенос на новую строку */
    gap: 10px !important;            /* Расстояние между текстом и цифрой */
	justify-content: center !important;
}

/* Название (убираем встроенные отступы h1) */
.hp-listing-category--view-page .hp-listing-category__name {
    order: 1 !important;
    margin: 0 !important;            /* Сбрасываем стандартные отступы */
    padding: 0 !important;font-size: 24px !important;
}

/* Блок с цифрой */
.hp-listing-category--view-page .hp-listing-category__item-count {
    order: 2 !important;
    margin: 0 !important;            /* Сбрасываем отступы */
    /* font-size: 0 !important;          Прячем текст «объявлений» */
}

/* Показываем только саму цифру */
.hp-listing-category--view-page .hp-listing-category__item-count::first-letter {
    font-size: 24px !important;     /* Подстройте под размер вашего h1 */
    font-weight: bold !important;   /* Делаем цифру жирной */
}

.hp-page__topbar:not(:last-child) {
    margin-bottom: 0rem !important;
}



@media (min-width: 768px) {
    .hp-listing--view-page .hp-page__content {
        flex: 0 0 66.66666667% !important;
        max-width: 66.66666667% !important;
    }
    .hp-listing--view-page .hp-page__sidebar {
        flex: 0 0 33.33333333% !important;
        max-width: 33.33333333% !important;
    }
}


