/* =========================================================
   Hegau24 — Classifieds full-width layout
   ========================================================= */

body.hp-template--listings-view-page .hp-page {
        width: 100% !important;
        max-width: 100% !important;
}

/* =========================================================
   Hegau24 — Classifieds page header
   ========================================================= */

.hegau24-classifieds-header {
        margin: 0 0 28px;
        padding: 0;
}

.hegau24-classifieds-header {
        margin: 0 0 28px;
        padding: 0;
}

.hegau24-classifieds-header__content {
        display: flex;
        align-items: flex-end;
        justify-content: space-between;
        gap: 32px;
        width: 100%;
}

.hegau24-classifieds-header__text {
        min-width: 0;
}

.hegau24-classifieds-header h1 {
        margin: 0 0 8px;
        font-size: 32px;
        line-height: 1.2;
        font-weight: 700;
        color: var(--color-text);
}

.hegau24-classifieds-header__description {
        margin: 0;
        font-size: 16px;
        line-height: 1.5;
        color: var(--color-text-light);
}

.hegau24-classifieds-header__actions {
        flex: 0 0 auto;
}

.hegau24-classifieds-header__submit {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 9px;
        min-height: 46px;
        padding: 0 20px;
        border-radius: 10px;
        background: #38ad69 !important;
        color: #fff !important;
        font-size: 15px;
        font-weight: 600;
        line-height: 1;
        text-decoration: none;
        transition:
                background-color 0.2s ease,
                transform 0.2s ease,
                box-shadow 0.2s ease;
}

.hegau24-classifieds-header__submit:hover {
        color: #fff;
        text-decoration: none;
        transform: translateY(-1px);
        box-shadow: 0 5px 14px rgba(0, 0, 0, 0.10);
}

.hegau24-classifieds-header__submit-icon {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 20px;
        height: 20px;
        font-size: 21px;
        font-weight: 400;
        line-height: 20px;
}

/* ---------------------------------------------------------
   Mobile
   --------------------------------------------------------- */

@media (max-width: 767px) {

        .hegau24-classifieds-header {
                margin-bottom: 22px;
        }

        .hegau24-classifieds-header__content {
                flex-direction: column;
                align-items: stretch;
                gap: 18px;
        }

        .hegau24-classifieds-header h1 {
                font-size: 28px;
        }

        .hegau24-classifieds-header__submit {
                width: 100%;
        }
}

/* =========================================================
   Hegau24 — Classifieds search
   ========================================================= */

.hegau24-classifieds-header + .hp-form--listing-search {
        display: flex;
        align-items: stretch;
        gap: 12px;
        width: 100%;
        margin: 0 0 36px;
}

.hegau24-classifieds-header + .hp-form--listing-search .hp-form__fields {
        flex: 1 1 auto;
        min-width: 0;
        margin: 0;
}

.hegau24-classifieds-header + .hp-form--listing-search .hp-form__field--search {
        margin: 0;
}

.hegau24-classifieds-header + .hp-form--listing-search .hp-field--search {
        width: 100%;
        min-height: 50px;
        padding: 0 16px;
        border-radius: 10px;
        font-size: 15px;
}

.hegau24-classifieds-header + .hp-form--listing-search .hp-form__footer {
        flex: 0 0 auto;
        margin: 0;
        padding: 0;
}

.hegau24-classifieds-header + .hp-form--listing-search .hp-form__button {
        min-width: 88px;
        min-height: 50px;
        margin: 0;
        padding: 0 22px;
        border-radius: 10px;
        font-size: 15px;
        font-weight: 600;
}

/* ---------------------------------------------------------
   Mobile
   --------------------------------------------------------- */

@media (max-width: 767px) {

        .hegau24-classifieds-header + .hp-form--listing-search {
                flex-direction: column;
                gap: 10px;
                margin-bottom: 28px;
        }

        .hegau24-classifieds-header + .hp-form--listing-search .hp-form__button {
                width: 100%;
        }
}

/* =========================================================
   Hegau24 — Classifieds categories grid
   ========================================================= */

.hegau24-classifieds-categories {
        margin: 0 0 36px;
}

.hegau24-classifieds-categories__header {
        margin: 0 0 16px;
}

.hegau24-classifieds-categories__header h2 {
        margin: 0;
        font-size: 28px;
        line-height: 1.25;
        font-weight: 700;
        color: var(--color-text);
}

.hegau24-classifieds-categories__grid {
        display: grid;
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 14px;
}

.hegau24-classifieds-category {
        display: flex;
        flex-direction: column;
        justify-content: center;
        min-height: 92px;
        padding: 18px 20px;
        border: 1px solid #dce5ed;
        border-radius: 12px;
        background: #fff;
        color: var(--color-text);
        text-decoration: none;
        box-shadow: 0 2px 8px rgba(29, 48, 69, 0.04);
        transition:
                border-color 0.2s ease,
                box-shadow 0.2s ease,
                transform 0.2s ease;
}

.hegau24-classifieds-category:hover {
        color: var(--color-text);
        text-decoration: none;
        border-color: #38ad69;
        box-shadow: 0 6px 16px rgba(29, 48, 69, 0.08);
        transform: translateY(-2px);
}

.hegau24-classifieds-category__name {
        font-size: 16px;
        line-height: 1.35;
        font-weight: 600;
}

.hegau24-classifieds-category__count {
        margin-top: 6px;
        font-size: 13px;
        line-height: 1.3;
        color: #718096;
}

/* ---------------------------------------------------------
   Tablet
   --------------------------------------------------------- */

@media (max-width: 1100px) {

        .hegau24-classifieds-categories__grid {
                grid-template-columns: repeat(3, minmax(0, 1fr));
        }
}

/* ---------------------------------------------------------
   Mobile
   --------------------------------------------------------- */

@media (max-width: 767px) {

        .hegau24-classifieds-categories {
                margin-bottom: 28px;
        }

        .hegau24-classifieds-categories__header h2 {
                font-size: 24px;
        }

        .hegau24-classifieds-categories__grid {
                grid-template-columns: repeat(2, minmax(0, 1fr));
                gap: 10px;
        }

        .hegau24-classifieds-category {
                min-height: 82px;
                padding: 14px;
        }

        .hegau24-classifieds-category__name {
                font-size: 14px;
        }
}

/* =========================================================
   Hegau24 — Classifieds page full width
   Override HivePress .hp-page max-width: 80rem.
   Keep the existing sidebar/filter structure intact.
   ========================================================= */

body.hp-template--listings-view-page .hp-page {
        max-width: none !important;
}

/* =========================================================
   Hegau24 — Classifieds outer container full width
   Override Blocksy container width only for classifieds.
   ========================================================= */

body.hp-template--listings-view-page .ct-container {
        max-width: 1800px !important;
        width: min(1800px, 94%) !important;
}