/*
Theme Name: ListingHive Child
Template: listinghive
Version: 1.0
*/

/* =========================
   BAZAR24 — ОСНОВНОЙ CSS
   ========================= */

/* САЙТ */

body {
    background: #f5f6f8 !important;
    color: #222 !important;
    font-size: 17px;
    line-height: 1.6;
}


/* ССЫЛКИ */

a {
    color: #214b97;
}

a:hover {
    color: #173a77;
}


/* ЛОГОТИП */

.header-logo img,
.site-header .header-logo img {
    width: auto !important;
    max-width: 150px !important;
    max-height: 70px !important;
    height: auto !important;
}


/* ШАПКА */

.site-header {
    background: #fff !important;
    box-shadow: 0 2px 8px rgba(0,0,0,.08);
}


/* КНОПКА "ДОБАВИТЬ ОБЪЯВЛЕНИЕ" */

.hp-menu__item--submit-listing a {
    background: #214b97 !important;
    color: #fff !important;
    border-radius: 8px !important;
    font-weight: 600 !important;
}

.hp-menu__item--submit-listing a:hover {
    background: #173a77 !important;
}


/* КАРТОЧКИ ОБЪЯВЛЕНИЙ */

.hp-listing {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    transition: .2s;
}

.hp-listing:hover {
    box-shadow: 0 8px 20px rgba(0,0,0,.10);
}


/* НАЗВАНИЕ ОБЪЯВЛЕНИЯ */

.hp-listing__title {
    font-size: 19px !important;
    font-weight: 700 !important;
    line-height: 1.4;
}


/* ЦЕНА */

.hp-listing__price {
    font-size: 22px !important;
    font-weight: 700 !important;
    color: #214b97 !important;
}


/* ПОДПИСИ ПОЛЕЙ */

.hp-field__label,
label {
    font-size: 17px;
    font-weight: 600;
    color: #222;
}


/* ПОЛЯ */

input,
textarea,
select {
    font-size: 17px !important;
    color: #222 !important;
    background: #fff !important;
    border: 2px solid #cfd3da !important;
    border-radius: 8px !important;
}


/* PLACEHOLDER */

::placeholder {
    color: #666 !important;
    opacity: 1;
}


/* ФОКУС ПОЛЯ */

input:focus,
textarea:focus,
select:focus {
    border-color: #214b97 !important;
    box-shadow: 0 0 0 3px rgba(33,75,151,.15);
    outline: none;
}


/* КНОПКИ */

.hp-form button,
.hp-button {
    font-size: 18px !important;
    font-weight: 600 !important;
    border-radius: 8px !important;
}


/* ПОИСК */

.hp-form--listing-search input,
.hp-search-form input {
    min-height: 52px !important;
    font-size: 18px !important;
}

.hp-form--listing-search button,
.hp-search-form button {
    min-height: 52px !important;
    font-size: 18px !important;
}


/* КАТЕГОРИИ */

.hp-listing-categories a,
.hp-categories a {
    font-size: 16px;
    border-radius: 20px;
}


/* ЗАГОЛОВКИ */

h1,
h2,
h3 {
    font-weight: 700;
}


/* =========================
   МОБИЛЬНЫЕ
   ========================= */

@media (max-width: 768px) {

    body {
        font-size: 18px;
    }

    .header-logo img,
    .site-header .header-logo img {
        max-width: 130px !important;
        max-height: 60px !important;
    }

    input,
    textarea,
    select {
        font-size: 18px !important;
    }

    .hp-field__label,
    label {
        font-size: 18px;
    }

    .hp-form button,
    .hp-button {
        font-size: 19px !important;
    }

}/* =================================
   BAZAR24 — ЕДИНЫЙ ПОИСК
   ================================= */

.bazar-search,
.hp-form--listing-search {
    display: flex !important;
    align-items: stretch !important;
    gap: 8px;
    width: 100%;
    max-width: 735px;
    margin: 0 auto 32px !important;
    box-sizing: border-box;
}

/* Контейнер поля HivePress */
.hp-form--listing-search .hp-form__fields {
    flex: 1 1 auto !important;
    min-width: 0;
    display: flex !important;
    margin: 0 !important;
}

/* Поля поиска */
.bazar-search input[type="search"],
.hp-form--listing-search .hp-form__field--search input {
    flex: 1 1 auto;
    width: 100% !important;
    min-width: 0;
    height: 56px !important;
    box-sizing: border-box;
    background: #ffffff !important;
    border: 2px solid #214b97 !important;
    border-radius: 8px !important;
    padding: 0 18px !important;
    font-size: 18px !important;
    color: #222222 !important;
}

/* Контейнер кнопки HivePress */
.hp-form--listing-search .hp-form__footer {
    display: flex !important;
    align-items: stretch !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Кнопки поиска */
.bazar-search button,
.hp-form--listing-search .hp-form__button {
    min-width: 140px;
    height: 56px !important;
    margin: 0 !important;
    padding: 0 24px !important;
    background: #ffbf00 !important;
    color: #172c4f !important;
    border: none !important;
    border-radius: 8px !important;
    font-size: 18px !important;
    font-weight: 700 !important;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.bazar-search button:hover,
.hp-form--listing-search .hp-form__button:hover {
    background: #e5a900 !important;
}

/* Удобный фокус */
.bazar-search input:focus,
.hp-form--listing-search input:focus {
    outline: 3px solid rgba(33,75,151,.25);
    outline-offset: 2px;
}

/* Телефоны */
@media (max-width: 600px) {
    .bazar-search,
    .hp-form--listing-search {
        flex-direction: column !important;
    }

    .hp-form--listing-search .hp-form__fields {
        width: 100%;
    }

    .bazar-search button,
    .hp-form--listing-search .hp-form__footer,
    .hp-form--listing-search .hp-form__button {
        width: 100%;
    }
}/* BAZAR24 — исправление ширины поиска на главной */

form.bazar-search {
    display: flex !important;
    flex-direction: row !important;
    align-items: stretch !important;
    width: 100% !important;
    max-width: 735px !important;
    margin: 0 auto 32px !important;
    gap: 8px !important;
    box-sizing: border-box !important;
}

form.bazar-search input[type="search"] {
    flex: 1 1 auto !important;
    width: 1% !important;
    min-width: 0 !important;
    height: 56px !important;
    font-size: 18px !important;
    box-sizing: border-box !important;
}

form.bazar-search button {
    flex: 0 0 110px !important;
    width: 110px !important;
    height: 56px !important;
    font-size: 18px !important;
}

@media (max-width: 600px) {
    form.bazar-search {
        width: 100% !important;
    }

    form.bazar-search button {
        flex-basis: 100px !important;
        width: 100px !important;
    }
}