/* ============================================
   БАЗОВЫЕ КОНТЕЙНЕРЫ HIVEPRESS
   ============================================ */

.hp-page {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    box-sizing: border-box;
}

/* ============================================
   КАРТОЧКИ ЛИСТИНГОВ (объявлений)
   ============================================ */

.hp-listing--view-block {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    transition: box-shadow 0.3s ease;
}

.hp-listing--view-block:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.hp-listing__image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

.hp-listing__content {
    padding: 16px;
}

.hp-listing__title {
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 8px 0;
}

.hp-listing__title a {
    color: #333;
    text-decoration: none;
}

.hp-listing__title a:hover {
    color: #0073aa;
}

.hp-listing__price {
    font-size: 20px;
    font-weight: 700;
    color: #2c3e50;
}

/* ============================================
   СЕТКА ЛИСТИНГОВ
   ============================================ */

.hp-listings {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
}

/* ============================================
   СТРАНИЦА ОТДЕЛЬНОГО ЛИСТИНГА
   ============================================ */

.hp-listing--view-page {
    max-width: 1000px;
    margin: 0 auto;
}

.hp-listing__images {
    margin-bottom: 24px;
}

.hp-listing__images img {
    width: 100%;
    border-radius: 8px;
}

.hp-listing__details {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 32px;
}

@media (max-width: 768px) {
    .hp-listing__details {
        grid-template-columns: 1fr;
    }
}

/* ============================================
   ФОРМЫ (добавление, редактирование, поиск)
   ============================================ */

.hp-form {
    max-width: 700px;
    margin: 0 auto;
}

.hp-form__field {
    margin-bottom: 20px;
}

.hp-form__label {
    display: block;
    font-weight: 600;
    margin-bottom: 6px;
    color: #333;
}

.hp-form__field input[type="text"],
.hp-form__field input[type="email"],
.hp-form__field input[type="number"],
.hp-form__field input[type="url"],
.hp-form__field input[type="tel"],
.hp-form__field textarea,
.hp-form__field select {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 15px;
    box-sizing: border-box;
    transition: border-color 0.2s;
}

.hp-form__field input:focus,
.hp-form__field textarea:focus,
.hp-form__field select:focus {
    border-color: #0073aa;
    outline: none;
    box-shadow: 0 0 0 2px rgba(0, 115, 170, 0.15);
}

.hp-form__field textarea {
    min-height: 120px;
    resize: vertical;
}

/* Кнопки */
.hp-form button[type="submit"],
.hp-button,
button.hp-button {
    background-color: #0073aa;
    color: #fff;
    border: none;
    padding: 12px 28px;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s;
}

.hp-form button[type="submit"]:hover,
.hp-button:hover {
    background-color: #005a87;
}

/* ============================================
   ПРОФИЛЬ ПРОДАВЦА (VENDOR)
   ============================================ */

.hp-vendor--view-block {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: #f9f9f9;
    border-radius: 8px;
}

.hp-vendor__image img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
}

.hp-vendor__name {
    font-weight: 600;
    font-size: 16px;
}

/* ============================================
   ПОИСК / ФИЛЬТРЫ
   ============================================ */

.hp-listing-search-form {
    background: #f5f5f5;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 30px;
}

.hp-listing-search-form .hp-form__fields {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    align-items: flex-end;
}

/* ============================================
   ПАГИНАЦИЯ
   ============================================ */

.hp-pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 40px;
}

.hp-pagination a,
.hp-pagination span {
    padding: 8px 14px;
    border: 1px solid #ddd;
    border-radius: 4px;
    text-decoration: none;
    color: #333;
}

.hp-pagination .current {
    background: #0073aa;
    color: #fff;
    border-color: #0073aa;
}

/* ============================================
   УВЕДОМЛЕНИЯ / СООБЩЕНИЯ
   ============================================ */

.hp-notice {
    padding: 14px 20px;
    border-radius: 6px;
    margin-bottom: 20px;
}

.hp-notice--success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.hp-notice--error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* ============================================
   АТРИБУТЫ ЛИСТИНГА
   ============================================ */

.hp-listing__attributes {
    list-style: none;
    padding: 0;
    margin: 16px 0;
}

.hp-listing__attributes li {
    padding: 8px 0;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
}

.hp-listing__attribute-label {
    font-weight: 600;
    color: #555;
}