/* Hegau24 — Immobilienkatalog */

.hegau24-properties {
    --property-blue: #2463eb;
    --property-blue-dark: #1749b8;
    --property-text: #202b3c;
    --property-muted: #687589;
    --property-border: #e4eaf2;
    --property-surface: #ffffff;
    --property-background: #f3f7fc;

    color: var(--property-text);
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
}

.hegau24-properties *,
.hegau24-properties *::before,
.hegau24-properties *::after {
    box-sizing: border-box;
}

.hegau24-properties__header {
    margin-bottom: 24px;
}

.hegau24-properties__title {
    margin: 0;
    color: var(--property-text);
    font-size: clamp(26px, 3vw, 36px);
    font-weight: 750;
    line-height: 1.2;
}

.hegau24-properties__filters {
    display: grid;
    grid-template-columns: minmax(180px, 1.5fr) minmax(170px, 1fr) minmax(150px, 1fr) auto;
    align-items: end;
    gap: 16px;
    padding: 22px;
    margin: 0 0 24px;
    border: 1px solid var(--property-border);
    border-radius: 18px;
    background: var(--property-surface);
    box-shadow: 0 5px 20px rgb(31 57 90 / 4%);
}

.hegau24-properties__field {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 0;
    margin: 0;
    color: var(--property-text);
    font-size: 14px;
    font-weight: 600;
}

.hegau24-properties__field input,
.hegau24-properties__field select {
    display: block;
    width: 100%;
    min-width: 0;
    min-height: 46px;
    padding: 10px 12px;
    border: 1px solid #d9e1ed;
    border-radius: 10px;
    background: #fff;
    color: var(--property-text);
    font: inherit;
    font-weight: 400;
}

.hegau24-properties__field input:focus,
.hegau24-properties__field select:focus {
    border-color: var(--property-blue);
    outline: 2px solid rgb(36 99 235 / 14%);
    outline-offset: 1px;
}

.hegau24-properties__filter-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
}

.hegau24-properties__button {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    min-height: 46px;
    padding: 11px 20px;
    border: 1px solid var(--property-blue);
    border-radius: 10px;
    background: var(--property-blue);
    color: #fff;
    font-size: 14px;
    font-weight: 650;
    cursor: pointer;
    transition: background .18s ease, border-color .18s ease;
}

.hegau24-properties__button:hover {
    border-color: var(--property-blue-dark);
    background: var(--property-blue-dark);
    color: #fff;
}

.hegau24-properties__reset {
    color: var(--property-muted);
    font-size: 13px;
    text-decoration: none;
}

.hegau24-properties__reset:hover {
    color: var(--property-blue);
}

.hegau24-properties__count {
    margin: 0 0 16px;
    color: var(--property-muted);
    font-size: 14px;
}

.hegau24-properties__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
}

/* Избранное на карточке недвижимости */
.hegau24-properties__card {
    position: relative;
}

.hegau24-properties__favorite {
    position: absolute;
    z-index: 3;
    top: 12px;
    right: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    padding: 0;
    border: 1px solid rgb(255 255 255 / 80%);
    border-radius: 50%;
    background: rgb(255 255 255 / 94%);
    color: #344054;
    box-shadow: 0 2px 10px rgb(0 0 0 / 12%);
    font-size: 25px;
    line-height: 1;
    cursor: pointer;
    transition: color .18s ease, transform .18s ease, background .18s ease;
}

.hegau24-properties__favorite:hover {
    transform: scale(1.06);
    background: #fff;
}

.hegau24-properties__favorite.is-favorite {
    color: #d84a5a;
}

.hegau24-properties__favorite:focus-visible {
    outline: 2px solid var(--property-blue);
    outline-offset: 3px;
}

.hegau24-properties__card {
    min-width: 0;
    overflow: hidden;
    border: 1px solid var(--property-border);
    border-radius: 16px;
    background: var(--property-surface);
    box-shadow: 0 5px 20px rgb(31 57 90 / 4%);
    transition: transform .18s ease, box-shadow .18s ease;
}

.hegau24-properties__card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 28px rgb(31 57 90 / 9%);
}

.hegau24-properties__card-link {
    display: flex;
    flex-direction: column;
    height: 100%;
    color: inherit;
    text-decoration: none;
}

.hegau24-properties__card-link:hover {
    color: inherit;
    text-decoration: none;
}

.hegau24-properties__media {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: var(--property-background);
}

/* Общая группа меток поверх фотографии */
.hegau24-properties__badges {
    position: absolute;
    z-index: 3;
    top: 12px;
    left: 12px;
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 8px;
    max-width: calc(100% - 24px);
}

/* Метка типа сделки */
.hegau24-properties__deal-badge {
    position: static;
    display: inline-flex;
    align-items: center;
    max-width: 100%;
    padding: 7px 11px;
    border: 1px solid transparent;
    border-radius: 8px;
    background: #e8f7ed;
    color: #187642;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.3;
    box-shadow: 0 2px 10px rgb(0 0 0 / 10%);
}

/* Аренда — синяя метка; продажа — зелёная */
.hegau24-properties__deal-badge--rent {
    background: #e7f0ff;
    border-color: #cbdcff;
    color: #2458b8;
}

.hegau24-properties__deal-badge--sale {
    background: #e8f7ed;
    border-color: #c5e8d0;
    color: #187642;
}

.hegau24-properties__image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hegau24-properties__card-body {
    display: flex;
    flex: 1;
    flex-direction: column;
    align-items: flex-start;
    padding: 18px;
}

.hegau24-properties__badge {
    display: inline-flex;
    align-items: center;
    max-width: 100%;
    padding: 5px 10px;
    margin-bottom: 10px;
    border-radius: 7px;
    background: #eaf2ff;
    color: #2458b8;
    font-size: 12px;
    font-weight: 650;
}

.hegau24-properties__card-title {
    margin: 0 0 8px;
    color: var(--property-text);
    font-size: 18px;
    font-weight: 700;
    line-height: 1.4;
    overflow-wrap: anywhere;
}

.hegau24-properties__city {
    margin-bottom: 14px;
    color: var(--property-muted);
    font-size: 14px;
}

.hegau24-properties__price {
    margin: 0 0 14px;
    color: var(--property-blue-dark);
    font-size: 21px;
    font-weight: 750;
}

.hegau24-properties__specs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 14px;
    margin-bottom: 18px;
    color: var(--property-muted);
    font-size: 13px;
}

.hegau24-properties__details {
    margin-top: auto;
    color: var(--property-blue);
    font-size: 14px;
    font-weight: 650;
}

.hegau24-properties__empty {
    padding: 36px 24px;
    border: 1px solid var(--property-border);
    border-radius: 16px;
    background: var(--property-surface);
    color: var(--property-muted);
    text-align: center;
}

.hegau24-properties__pagination {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin-top: 28px;
}

.hegau24-properties__page {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    min-width: 40px;
    min-height: 40px;
    padding: 8px 12px;
    border: 1px solid var(--property-border);
    border-radius: 9px;
    background: #fff;
    color: var(--property-text);
    text-decoration: none;
}

.hegau24-properties__page.is-active {
    border-color: var(--property-blue);
    background: var(--property-blue);
    color: #fff;
}

@media (max-width: 1100px) {
    .hegau24-properties__filters {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .hegau24-properties__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .hegau24-properties__filters,
    .hegau24-properties__grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .hegau24-properties__filters {
        gap: 14px;
        padding: 16px;
        border-radius: 14px;
    }

    .hegau24-properties__filter-actions {
        align-items: stretch;
    }

    .hegau24-properties__button {
        flex: 1;
    }

    .hegau24-properties__card-body {
        padding: 16px;
    }
}

/* Hegau24 Immobilien: kontrollierte Inhaltsbreite */
.hegau24-properties {
    width: 100%;
    max-width: 1440px;
    margin-inline: auto;
}

@media (min-width: 768px) {
    .hegau24-properties {
        padding-inline: 8px;
    }
}

@media (max-width: 767px) {
    .hegau24-properties {
        padding-inline: 12px;
    }

    .hegau24-properties__filters {
        grid-template-columns: minmax(0, 1fr);
        gap: 14px;
        padding: 16px;
    }

    .hegau24-properties__grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 16px;
    }
}

/* Hegau24 Immobilien: Hauptbereich und rechte Sidebar */
.hegau24-properties {
    width: min(1800px, 94%);
    max-width: none;
    margin: 32px auto 70px;
    box-sizing: border-box;
}

.hegau24-properties__layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 24px;
    align-items: start;
}

.hegau24-properties__main,
.hegau24-properties__sidebar {
    min-width: 0;
}

.hegau24-properties__sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.hegau24-properties__sidebar-cta,
.hegau24-properties__sidebar-block {
    padding: 22px;
    background: #fff;
    border: 1px solid #e3eaf2;
    border-radius: 16px;
    box-sizing: border-box;
}

.hegau24-properties__sidebar-cta {
    border-top: 3px solid #2878c8;
}

.hegau24-properties__sidebar-cta h2,
.hegau24-properties__sidebar-block h2 {
    margin: 0 0 12px;
    font-size: 18px;
    line-height: 1.35;
}

.hegau24-properties__sidebar-cta p,
.hegau24-properties__sidebar-block p {
    margin: 0;
    color: #5d6b7b;
    font-size: 14px;
    line-height: 1.6;
}

.hegau24-properties__sidebar-ad {
    width: 100%;
    aspect-ratio: 1 / 2;
    min-height: 600px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: #f5f8fc;
    border: 1px dashed #bdcbdc;
    border-radius: 12px;
    color: #718096;
    font-size: 13px;
    box-sizing: border-box;
}

.hegau24-properties__sidebar-note {
    display: inline-block;
    margin-top: 14px;
    color: #718096;
    font-size: 12px;
    line-height: 1.4;
}

.hegau24-properties__sidebar-ad strong {
    color: #52637a;
    font-size: 14px;
    text-align: center;
}

.hegau24-properties__sidebar-ad-label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
}

.hegau24-properties__sidebar-block ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.hegau24-properties__sidebar-block li {
    margin: 0;
    color: #2878c8;
}

.hegau24-properties__city-map-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin-top: 16px;
}

.hegau24-properties__city-map-item {
    display: flex;
    min-width: 0;
    min-height: 68px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px 5px;
    border: 1px solid #e1ebf7;
    border-radius: 12px;
    background: #f3f8ff;
    color: #24466f;
    text-align: center;
    text-decoration: none;
}

.hegau24-properties__city-map-item strong {
    display: inline-flex;
    min-width: 26px;
    min-height: 26px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #2167d5;
    color: #fff;
    font-size: 12px;
}

.hegau24-properties__city-map-item:hover,
.hegau24-properties__popular-cities a:hover {
    border-color: #8bb8f2;
    color: #1749b8;
}

.hegau24-properties__popular-cities li + li {
    border-top: 1px solid #edf1f6;
}

.hegau24-properties__popular-cities a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 10px 0;
    color: #2878c8;
    text-decoration: none;
}

.hegau24-properties__popular-cities strong {
    display: inline-flex;
    min-width: 26px;
    min-height: 24px;
    align-items: center;
    justify-content: center;
    padding: 0 7px;
    border-radius: 7px;
    background: #edf4ff;
    color: #2167c5;
    font-size: 12px;
}

@media (max-width: 900px) {
    .hegau24-properties__layout {
        grid-template-columns: minmax(0, 1fr);
    }

    .hegau24-properties__sidebar {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        align-items: start;
    }

    .hegau24-properties__sidebar-ad {
        min-height: 180px;
    }
}

@media (max-width: 767px) {
    .hegau24-properties {
        width: calc(100% - 24px);
        margin: 20px auto 50px;
        padding-inline: 0;
    }

    .hegau24-properties__sidebar {
        grid-template-columns: minmax(0, 1fr);
    }
}

/* Hegau24 Immobilien: Ansicht umschalten */
.hegau24-properties__results-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin: 22px 0 16px;
}

.hegau24-properties__view-switch {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px;
    border: 1px solid var(--property-border);
    border-radius: 10px;
    background: #fff;
}

.hegau24-properties__view-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 36px;
    padding: 0;
    border: 0;
    border-radius: 7px;
    background: transparent;
    color: var(--property-muted);
    cursor: pointer;
}

.hegau24-properties__view-button:hover {
    color: var(--property-blue);
    background: #f0f6ff;
}

.hegau24-properties__view-button.is-active {
    background: var(--property-blue);
    color: #fff;
}

.hegau24-properties__view-button:focus-visible {
    outline: 2px solid var(--property-blue);
    outline-offset: 2px;
}

.hegau24-properties__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.hegau24-properties__grid.is-list {
    grid-template-columns: minmax(0, 1fr);
}

.hegau24-properties__grid.is-list .hegau24-properties__card-link {
    display: grid;
    grid-template-columns: minmax(220px, 36%) minmax(0, 1fr);
    height: auto;
}

.hegau24-properties__grid.is-list .hegau24-properties__media {
    height: 100%;
    min-height: 220px;
    aspect-ratio: auto;
}

.hegau24-properties__grid.is-list .hegau24-properties__card-body {
    min-width: 0;
}

@media (max-width: 1100px) {
    .hegau24-properties__grid:not(.is-list) {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .hegau24-properties__results-toolbar {
        align-items: flex-start;
    }

    .hegau24-properties__grid,
    .hegau24-properties__grid:not(.is-list) {
        grid-template-columns: minmax(0, 1fr);
    }

    .hegau24-properties__grid.is-list .hegau24-properties__card-link {
        grid-template-columns: minmax(0, 1fr);
    }

    .hegau24-properties__grid.is-list .hegau24-properties__media {
        min-height: 0;
        aspect-ratio: 16 / 10;
    }
}


/* Hegau24 Immobilien: Kategorie-Kacheln */
.hegau24-properties__tiles {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin: 0 0 24px;
}

.hegau24-properties__tile {
    position: relative;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 14px;
    min-width: 0;
    min-height: 112px;
    padding: 16px;
    color: #243247;
    text-decoration: none;
    background: #fff;
    border: 1px solid #e2eaf3;
    border-radius: 14px;
    box-shadow: 0 4px 14px rgba(34, 66, 100, 0.04);
    transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.hegau24-properties__tile:hover,
.hegau24-properties__tile:focus-visible {
    color: #243247;
    border-color: #2878c8;
    box-shadow: 0 8px 22px rgba(34, 66, 100, 0.10);
    transform: translateY(-2px);
}

.hegau24-properties__tile:focus-visible {
    outline: 2px solid #2878c8;
    outline-offset: 2px;
}

.hegau24-properties__tile.is-active {
    border-color: #2878c8;
    box-shadow: inset 0 0 0 1px #2878c8;
}

.hegau24-properties__tile-icon {
    display: flex;
    flex: 0 0 56px;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    color: #2878c8;
    background: #edf5ff;
    border-radius: 14px;
}

.hegau24-properties__tile-svg {
    display: block;
    width: 42px;
    height: 42px;
}

.hegau24-properties__tile-title {
    display: block;
    min-width: 0;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.35;
    overflow-wrap: anywhere;
}

.hegau24-properties__tile-count {
    display: block;
    margin-top: 4px;
    color: #718096;
    font-size: 12px;
    line-height: 1.4;
}

.hegau24-properties__tile::after {
    content: "›";
    flex: 0 0 auto;
    margin-left: auto;
    padding-left: 4px;
    color: #286ec7;
    font-size: 25px;
    line-height: 1;
}

@media (max-width: 1100px) {
    .hegau24-properties__tiles {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 480px) {
    .hegau24-properties__tiles {
        grid-template-columns: minmax(0, 1fr);
        gap: 12px;
    }

    .hegau24-properties__tile {
        min-height: 96px;
        padding: 14px;
    }
}\n\n/* Название категории и счётчик в едином вертикальном блоке */
.hegau24-properties__tile-content {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 4px;
    min-width: 0;
}

.hegau24-properties__tile-count {
    margin-top: 0;
}


/* Метки платного продвижения недвижимости */
.hegau24-properties__promotion-badge {
    position: static;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    padding: 7px 11px;
    border: 1px solid transparent;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.3;
    box-shadow: 0 2px 10px rgb(0 0 0 / 10%);
}

.hegau24-properties__promotion-badge--top {
    background: #fff0d6;
    border-color: #f2d39c;
    color: #945400;
}

.hegau24-properties__promotion-badge--premium {
    background: #f1e8ff;
    border-color: #d9c2ff;
    color: #7138b8;
}


/* Место под будущую интерактивную карту недвижимости */
.hegau24-properties__map-placeholder-area {
    display: flex;
    min-height: 180px;
    align-items: center;
    justify-content: center;
    margin-top: 14px;
    padding: 16px;
    border: 1px dashed #bdcbdc;
    border-radius: 12px;
    background: #f5f8fc;
    color: #718096;
    font-size: 13px;
    line-height: 1.5;
    text-align: center;
}

/* Housing CTA: visual style aligned with the Work sidebar */
.hegau24-properties__submit-card {
    width: 100%;
    padding: 22px;
    box-sizing: border-box;
    border: 1px solid #d9e3ee;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 8px 24px rgba(30, 60, 90, .04);
}

.hegau24-properties__submit-title {
    margin: 0 0 9px;
    color: #1d3045;
    font-size: 20px;
    font-weight: 700;
    line-height: 1.25;
}

.hegau24-properties__submit-text {
    margin: 0 0 18px !important;
    color: #718096 !important;
    font-size: 13px !important;
    line-height: 1.55 !important;
}

.hegau24-properties__submit-button {
    width: 100%;
    min-height: 46px;
    padding: 11px 13px;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 9px;
    background: #1268d0;
    color: #fff;
    text-align: center;
    font-size: 13px;
    font-weight: 800;
    line-height: 1.4;
    box-shadow: 0 4px 10px rgba(18, 104, 208, .18);
    cursor: default;
}

.hegau24-properties__submit-note {
    display: block;
    margin-top: 12px;
    color: #718096;
    font-size: 12px;
    line-height: 1.4;
}

/* Remove the outer frame around the Housing CTA */
.hegau24-properties__sidebar > .hegau24-properties__sidebar-cta {
    padding: 0;
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
}

/* Housing CTA button: same hover animation as the Work CTA */
.hegau24-properties__submit-button {
    gap: 8px;
    box-shadow: 0 7px 17px rgba(18, 104, 208, .22);
    transition:
        transform .2s ease,
        box-shadow .2s ease,
        background-color .2s ease;
}

.hegau24-properties__submit-button:hover {
    transform: translateY(-2px);
    background: #1268d0;
    color: #fff;
    box-shadow: 0 10px 22px rgba(18, 104, 208, .28);
}

.hegau24-properties__submit-arrow {
    display: inline-flex;
    align-items: center;
    font-size: 18px;
    font-weight: 400;
    line-height: 1;
    transition: transform .2s ease;
}

.hegau24-properties__submit-button:hover .hegau24-properties__submit-arrow {
    transform: translateX(4px);
}


/* Дополнительные фильтры каталога недвижимости */
.hegau24-properties__filters {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.hegau24-properties__filter-actions {
    align-self: end;
}

@media (max-width: 1100px) {
    .hegau24-properties__filters {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .hegau24-properties__filters {
        grid-template-columns: minmax(0, 1fr);
    }
}

/* Быстрые фильтры каталога недвижимости */
.hegau24-properties__quick-filters {
    grid-column: 1 / -1;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.hegau24-properties__quick-filter {
    min-height: 42px;
    padding: 9px 15px;
    border: 1px solid var(--property-border, #d9e1ed);
    border-radius: 999px;
    background: #fff;
    color: var(--property-text, #243247);
    font: inherit;
    font-size: 14px;
    cursor: pointer;
    transition: background-color .18s ease, border-color .18s ease, color .18s ease;
}

.hegau24-properties__quick-filter:hover,
.hegau24-properties__quick-filter.is-active {
    border-color: var(--property-blue, #2463eb);
    background: #edf4ff;
    color: var(--property-blue, #2463eb);
}

.hegau24-properties__quick-filter:focus-visible,
.hegau24-properties__more-toggle:focus-visible {
    outline: 2px solid var(--property-blue, #2463eb);
    outline-offset: 2px;
}

.hegau24-properties__basic-fields {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    align-items: end;
    gap: 16px;
}

.hegau24-properties__more-toggle {
    justify-self: start;
    padding: 8px 0;
    border: 0;
    background: transparent;
    color: var(--property-blue, #2463eb);
    font: inherit;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
}

.hegau24-properties__advanced-fields {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: end;
    gap: 16px;
}

.hegau24-properties__advanced-fields[hidden] {
    display: none !important;
}

.hegau24-properties__filter-actions {
    grid-column: 1 / -1;
}

@media (max-width: 1100px) {
    .hegau24-properties__basic-fields,
    .hegau24-properties__advanced-fields {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .hegau24-properties__quick-filters {
        gap: 8px;
    }

    .hegau24-properties__quick-filter {
        flex: 1 1 calc(50% - 8px);
        padding: 9px 10px;
        font-size: 13px;
    }

    .hegau24-properties__basic-fields,
    .hegau24-properties__advanced-fields {
        grid-template-columns: minmax(0, 1fr);
    }
}

/* Hegau24: уточнение визуального стиля быстрых фильтров */
.hegau24-properties__quick-filter {
    border-radius: 10px;
    border-color: #cbd8eb;
    border-left: 3px solid #2463eb;
    background: #f7faff;
    color: #243247;
    font-weight: 600;
}

.hegau24-properties__quick-filter:hover,
.hegau24-properties__quick-filter.is-active {
    border-color: #2463eb;
    border-left-color: #1749b8;
    background: #eaf2ff;
    color: #1749b8;
}

.hegau24-properties__quick-filters {
    min-width: 0;
}

.hegau24-properties__quick-filter {
    max-width: 100%;
    white-space: normal;
    overflow-wrap: anywhere;
}

@media (max-width: 640px) {
    .hegau24-properties__quick-filters {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
    }

    .hegau24-properties__quick-filter {
        width: 100%;
        min-width: 0;
        padding: 9px 10px;
        text-align: center;
    }
}

/* Hegau24: структура панели фильтров недвижимости */
.hegau24-properties__filters {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.hegau24-properties__basic-fields {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr)) auto;
    align-items: end;
    gap: 14px;
    width: 100%;
    min-width: 0;
}

.hegau24-properties__basic-fields > .hegau24-properties__field {
    min-width: 0;
}

.hegau24-properties__basic-fields .hegau24-properties__filter-actions {
    grid-column: auto;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    align-self: end;
}

.hegau24-properties__quick-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px 18px;
    width: 100%;
    min-width: 0;
}

.hegau24-properties__quick-row .hegau24-properties__quick-filters {
    flex: 1 1 auto;
    min-width: 0;
}

.hegau24-properties__quick-row .hegau24-properties__more-toggle {
    flex: 0 0 auto;
    margin-left: auto;
    white-space: nowrap;
}

.hegau24-properties__advanced-fields {
    width: 100%;
    min-width: 0;
}

@media (max-width: 1100px) {
    .hegau24-properties__basic-fields {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .hegau24-properties__basic-fields .hegau24-properties__filter-actions {
        grid-column: 1 / -1;
    }
}

@media (max-width: 640px) {
    .hegau24-properties__filters {
        gap: 14px;
        padding: 16px;
    }

    .hegau24-properties__basic-fields {
        grid-template-columns: minmax(0, 1fr);
        gap: 12px;
    }

    .hegau24-properties__basic-fields .hegau24-properties__filter-actions {
        grid-column: 1;
    }

    .hegau24-properties__quick-row {
        align-items: stretch;
    }

    .hegau24-properties__quick-row .hegau24-properties__more-toggle {
        margin-left: auto;
    }
}

/* Исправление кнопки «Больше фильтров» */
.hegau24-properties .hegau24-properties__filters .hegau24-properties__quick-row button.hegau24-properties__more-toggle {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    gap: 12px;
    min-height: 44px;
    padding: 10px 16px !important;
    border: 1px solid #b9d3ff !important;
    border-radius: 10px !important;
    background: #fff !important;
    color: #2463eb !important;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.3;
    text-decoration: none;
    box-shadow: none;
    cursor: pointer;
}

/* Шеврон вниз */
.hegau24-properties .hegau24-properties__filters .hegau24-properties__quick-row button.hegau24-properties__more-toggle::after {
    content: "";
    display: inline-block;
    flex: 0 0 7px;
    width: 7px;
    height: 7px;
    margin-top: -4px;
    border-right: 1.7px solid currentColor;
    border-bottom: 1.7px solid currentColor;
    transform: rotate(45deg);
    transition: transform .2s ease;
}

/* Шеврон вверх, когда дополнительные фильтры открыты */
.hegau24-properties .hegau24-properties__filters .hegau24-properties__quick-row button.hegau24-properties__more-toggle[aria-expanded="true"]::after {
    margin-top: 4px;
    transform: rotate(225deg);
}

.hegau24-properties .hegau24-properties__filters .hegau24-properties__quick-row button.hegau24-properties__more-toggle:hover {
    border-color: #2463eb !important;
    background: #f5f9ff !important;
}

/* Hegau24: единый стиль кнопки «Сбросить», как на странице «Работа» */
.hegau24-properties .hegau24-properties__filters .hegau24-properties__filter-actions .hegau24-properties__reset {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 10px 18px;
    border: 1px solid #d7e0e8;
    border-radius: 9px;
    background: #ffffff;
    color: #52677c;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.2;
    text-decoration: none;
    cursor: pointer;
    box-sizing: border-box;
    white-space: nowrap;
}

.hegau24-properties .hegau24-properties__filters .hegau24-properties__filter-actions .hegau24-properties__reset:hover {
    border-color: #b9c8d6;
    background: #f8fafc;
    color: #17395f;
}

/* Hegau24: компактные горизонтальные быстрые фильтры */
.hegau24-properties .hegau24-properties__quick-filters {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.hegau24-properties .hegau24-properties__quick-row .hegau24-properties__quick-filter {
    display: inline-flex !important;
    flex: 0 0 auto;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 9px;
    width: auto;
    min-width: 0;
    min-height: 46px;
    height: 46px;
    padding: 10px 18px;
    border: 1px solid #dbe7f7;
    border-left-width: 1px;
    border-radius: 10px;
    font-size: 15px;
    line-height: 1.2;
    text-align: left;
    white-space: nowrap;
}

.hegau24-properties .hegau24-properties__quick-row .hegau24-properties__quick-icon {
    display: block;
    flex: 0 0 18px;
    width: 18px;
    height: 18px;
    max-width: 18px;
    max-height: 18px;
}

.hegau24-properties .hegau24-properties__quick-filter[data-quick-filter="furnished"] {
    color: #2675ed;
    border-color: #d8e7ff;
    background: #f5f9ff;
}

.hegau24-properties .hegau24-properties__quick-filter[data-quick-filter="pets_allowed"] {
    color: #29965d;
    border-color: #d8f0e2;
    background: #f5fcf7;
}

.hegau24-properties .hegau24-properties__quick-filter[data-quick-filter="budget_rent"] {
    color: #c98119;
    border-color: #f6e3c5;
    background: #fffaf2;
}

.hegau24-properties .hegau24-properties__quick-filter[data-quick-filter="rooms_3plus"] {
    color: #2675ed;
    border-color: #d8e7ff;
    background: #f5f9ff;
}

.hegau24-properties .hegau24-properties__quick-filter.is-active {
    box-shadow: inset 0 0 0 1px currentColor;
}

@media (max-width: 640px) {
    .hegau24-properties .hegau24-properties__quick-filters {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
    }

    .hegau24-properties .hegau24-properties__quick-row .hegau24-properties__quick-filter {
        width: 100%;
        min-width: 0;
        height: auto;
        min-height: 44px;
        padding: 9px 10px;
        white-space: normal;
        font-size: 13px;
    }
}

/* Hegau24: эффект наведения быстрых фильтров, аналогичный странице «Работа» */
.hegau24-properties .hegau24-properties__quick-row .hegau24-properties__quick-filter {
    transition:
        transform 0.22s ease,
        box-shadow 0.22s ease,
        background-color 0.22s ease,
        border-color 0.22s ease;
}

@media (hover: hover) and (min-width: 641px) {
    .hegau24-properties .hegau24-properties__quick-row .hegau24-properties__quick-filter:hover {
        transform: translateY(-2px);
        box-shadow: 0 5px 14px rgba(25, 55, 85, 0.12);
    }
}
