/* =========================================
   GLOBAL LAYOUT
========================================= */

/* Site-Wrapper: Begrenzt alle Sections auf max-width 1200px */
.site-wrapper {
    max-width: var(--max-width);
    margin: 0 auto;
    width: 100%;
}

/* Container: Nur noch für Padding/Spacing innerhalb der Sections */
.container {
    width: 100%;
    margin: 0;
    padding: 0 var(--space-md);
}

/* =========================================
   HEADER / HERO
========================================= */

.site-header {
    display: block;
    width: 100%;
    margin: 0;
}

/* Banner-Container ohne Padding für volle Breite */
.site-header .container {
    padding: 0;
}

.header-inner {
    position: relative;
}

/* Flaggen + Währung: ein Block oben rechts auf dem Hero */
.hero-global-actions {
    position: absolute;
    top: 12px;
    right: var(--space-md);
    z-index: 40;
    display: flex;
    align-items: center;
}

@media (min-width: 992px) {
    .hero-global-actions {
        top: 14px;
        right: clamp(12px, 2vw, 28px);
    }
}

.hero-global-actions .language-switcher,
.hero-global-actions .language-switcher__row {
    margin: 0;
}

.hero-global-actions .currency-switcher__select {
    background: rgba(15, 23, 42, 0.55);
    border: 1px solid rgba(255, 255, 255, 0.55);
    color: #fff;
}

.hero-global-actions .lang-list img {
    border-color: rgba(255, 255, 255, 0.65);
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.2);
}

.hero-banner {
    position: relative;
    width: 100%;
    height: var(--hero-height);
    overflow: hidden;
}

/* Slides */

.hero-slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 0.6s ease;
}

.hero-slide.active {
    opacity: 1;
}

/* Dark overlay */

.hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.25);
}


/* =========================================
   MENU SECTION
========================================= */


.menu-section {
    padding: 0;
    width: 100%;
    margin: 0;
    overflow: visible;
}

.menu-section .nav-right {
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

.menu-section .nav-left {
    flex: 0 1 auto;
    min-width: 0;
}

/* Kaskadierendes Listing-Formular (Kaufen / Mieten) */
body.listing-offer-open {
    overflow: hidden;
}

.listing-search-form {
    margin: 0;
    position: relative;
    --listing-control-h: 34px;
}

.listing-search-form__main {
    display: flex;
    flex-wrap: nowrap;
    align-items: flex-end;
    gap: 10px 12px;
    /* Nur horizontal scrollen; vertikal nicht abschneiden (Listing-Dropdown nach unten). */
    overflow-x: auto;
    overflow-y: visible;
    -webkit-overflow-scrolling: touch;
    max-width: 100%;
    scrollbar-width: thin;
}

.menu-section .nav-wrapper--listing-search .nav-left {
    flex: 1 1 auto;
    min-width: 0;
}

.listing-search-geo {
    display: flex;
    flex-wrap: nowrap;
    align-items: flex-end;
    gap: 10px 12px;
    flex: 0 0 auto;
    min-width: 0;
}

.listing-search-geo .listing-cascade-field {
    min-width: 100px;
    max-width: min(200px, 32vw);
}

.listing-search-legacy {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

.listing-offer-wrap {
    position: relative;
    flex: 1 1 auto;
    min-width: 0;
    max-width: min(520px, 56vw);
    z-index: 50;
}

.listing-offer-trigger {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
    min-height: var(--listing-control-h);
    padding: 0 12px 0 14px;
    margin: 0;
    border: 1px solid rgba(255, 255, 255, 0.45);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.96);
    color: var(--color-primary);
    font: inherit;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.2;
    text-align: left;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

.listing-offer-trigger:hover,
.listing-offer-trigger:focus-visible {
    background: #fff;
    outline: 2px solid rgba(255, 255, 255, 0.55);
    outline-offset: 2px;
}

.listing-offer-trigger__text {
    flex: 1 1 auto;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.listing-offer-trigger__chevron {
    flex-shrink: 0;
    font-size: 10px;
    opacity: 0.75;
}

.listing-offer-panel[hidden] {
    display: none !important;
}

.listing-offer-panel {
    position: absolute;
    left: 0;
    top: calc(100% + 8px);
    min-width: min(440px, 92vw);
    max-width: min(520px, 94vw);
    z-index: 10060;
}

.listing-offer-panel__backdrop {
    display: none;
}

.listing-offer-panel__sheet {
    position: relative;
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 18px 48px rgba(15, 23, 42, 0.22);
    border: 1px solid #e2e8f0;
    overflow: hidden;
    max-height: min(72vh, 560px);
    display: flex;
    flex-direction: column;
}

.listing-offer-panel__head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
    padding: 12px 14px 10px;
    border-bottom: 1px solid #e5e7eb;
    flex-shrink: 0;
}

.listing-offer-panel__title {
    margin: 0;
    font-size: 0.95rem;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.3;
}

.listing-offer-panel__close {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    margin: -4px -6px -4px 0;
    border: none;
    border-radius: 10px;
    background: transparent;
    color: #64748b;
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
}

.listing-offer-panel__close:hover,
.listing-offer-panel__close:focus-visible {
    background: #f1f5f9;
    color: #0f172a;
    outline: none;
}

.listing-offer-panel__body {
    padding: 12px 14px 14px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
}

.listing-offer-panel__section {
    margin-top: 14px;
}

.listing-offer-panel__section:first-of-type {
    margin-top: 0;
}

.listing-offer-panel__section-label {
    margin: 0 0 8px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #64748b;
}

.listing-offer-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.listing-offer-pills--grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.listing-offer-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 8px 14px;
    border: 1px solid #e2e8f0;
    border-radius: 999px;
    background: #f8fafc;
    color: #0f172a;
    font: inherit;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.2;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

.listing-offer-pill:hover,
.listing-offer-pill:focus-visible {
    border-color: #cbd5e1;
    background: #f1f5f9;
    outline: none;
}

.listing-offer-pill.is-active {
    border-color: var(--color-primary, #1a365d);
    background: rgba(26, 54, 93, 0.08);
    color: var(--color-primary, #1a365d);
    box-shadow: inset 0 0 0 1px var(--color-primary, #1a365d);
}

.listing-offer-tabs {
    display: flex;
    flex-wrap: nowrap;
    gap: 6px;
    overflow-x: auto;
    padding-bottom: 2px;
    scrollbar-width: thin;
}

.listing-offer-tab {
    flex: 0 0 auto;
    margin: 0;
    padding: 8px 14px;
    border: none;
    border-radius: 999px;
    background: #f1f5f9;
    color: #334155;
    font: inherit;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
}

.listing-offer-tab:hover,
.listing-offer-tab:focus-visible {
    background: #e2e8f0;
    outline: none;
}

.listing-offer-tab.is-active {
    background: var(--color-primary, #1a365d);
    color: #fff;
}

.listing-offer-panel__hint {
    margin: 8px 0 0;
    font-size: 13px;
    color: #64748b;
    line-height: 1.4;
}

.listing-type-buttons {
    display: flex;
    flex-wrap: nowrap;
    align-items: flex-end;
    gap: 8px;
    flex: 0 0 auto;
}

a.listing-type-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    box-sizing: border-box;
}

button.listing-type-btn {
    display: inline-flex;
    box-sizing: border-box;
    margin: 0;
    font: inherit;
    text-align: center;
    align-items: center;
    justify-content: center;
    -webkit-appearance: none;
    appearance: none;
}

.listing-type-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    height: var(--listing-control-h);
    padding: 0 14px;
    border: 1px solid rgba(255, 255, 255, 0.4);
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    font-family: inherit;
    line-height: 1.2;
    -webkit-tap-highlight-color: transparent;
}

.listing-type-btn:hover,
.listing-type-btn:focus-visible {
    background: rgba(255, 255, 255, 0.22);
    outline: 2px solid rgba(255, 255, 255, 0.5);
    outline-offset: 2px;
}

.listing-type-btn.is-active {
    background: #fff;
    color: var(--color-primary);
    border-color: #fff;
}

.listing-cascade-step2,
#listingCascadeStep2 {
    margin-top: 0;
    max-width: none;
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    flex-wrap: nowrap;
    align-items: flex-end;
    gap: 10px 12px;
    font-size: 13px;
    line-height: 1.4;
    color: rgba(255, 255, 255, 0.88);
}

.listing-cascade-step2__text {
    margin: 0;
}

.listing-cascade-step2__row,
.listing-cascade-field {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-end;
    gap: 4px;
    margin-top: 0;
    flex: 0 1 auto;
    min-width: 120px;
    max-width: min(220px, 38vw);
}

.listing-search-submit-wrap.listing-cascade-field {
    max-width: none;
    min-width: 0;
    flex: 0 0 auto;
}

.listing-group-select {
    width: 100%;
    max-width: 100%;
    height: var(--listing-control-h);
    min-height: 0;
    padding: 0 10px;
    font-size: 15px;
    font-family: inherit;
    line-height: 1.2;
    border: 1px solid rgba(255, 255, 255, 0.45);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.95);
    color: var(--color-primary);
    cursor: pointer;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

.listing-group-select:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.listing-search-submit {
    margin: 0;
    box-sizing: border-box;
    font: inherit;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.2;
    height: var(--listing-control-h);
    padding: 0 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    border: 1px solid #fff;
    background: #fff;
    color: var(--color-primary);
    cursor: pointer;
    white-space: nowrap;
    -webkit-appearance: none;
    appearance: none;
    -webkit-tap-highlight-color: transparent;
}

.listing-search-submit:hover,
.listing-search-submit:focus-visible {
    background: rgba(255, 255, 255, 0.92);
    outline: 2px solid rgba(255, 255, 255, 0.65);
    outline-offset: 2px;
}

.listing-cascade-step2__empty,
.listing-cascade-hint {
    flex-basis: 100%;
    margin: 0;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.85);
}

.menu-section .listing-search-form .listing-cascade-step2__empty.listing-cascade-hint:not([hidden]) {
    position: absolute;
    top: 100%;
    left: 0;
    margin-top: 6px;
    z-index: 40;
    flex-basis: auto;
    width: max-content;
    max-width: min(92vw, 360px);
    padding: 8px 12px;
    border-radius: 8px;
    background: rgba(15, 23, 42, 0.92);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.28);
    font-size: 12px;
    line-height: 1.35;
    color: rgba(255, 255, 255, 0.95);
}

.menu-section .container {
    margin: 0;
    background: var(--color-primary);
    height: 80px;                /* feste Höhe */
    display: flex;
    align-items: center;         /* vertikal zentriert */
    justify-content: space-between;
    padding: 0 var(--space-md);  /* nur horizontal */
}

.menu-section .container.nav-wrapper--listing-search {
    height: 80px;
    min-height: 80px;
    align-items: center;
    padding-top: 0;
    padding-bottom: 0;
    overflow: visible;
}



/* =========================================
   MAIN
========================================= */

main {
    /* Weniger Luft unter der Nav; unten weiterhin großzügig */
    padding: var(--space-md) 0 var(--space-xl) 0;
    width: 100%;
    margin: 0;
}

.main-content {
    background-color: var(--color-gray);
    border: 1px solid #bbbbbb;
}

.page-content__h1 {
    margin-top: 0;
    margin-bottom: var(--space-sm);
}

/* Agent-Detail: Kontakt + Social unter der Bio */
.agent-detail-page {
    padding: var(--space-md) 0 var(--space-xl);
}

.agent-detail-page__inner {
    max-width: 980px;
    margin: 0 auto;
}

.agent-detail-page__hero {
    display: flex;
    gap: 22px;
    align-items: flex-start;
    flex-wrap: wrap;
}

.agent-detail-page__photo {
    flex: 0 0 240px;
    max-width: 240px;
}

.agent-detail-page__photo-img {
    width: 100%;
    height: auto;
    border-radius: 14px;
    border: 1px solid rgba(0, 0, 0, 0.08);
}

.agent-detail-page__photo-placeholder {
    width: 100%;
    aspect-ratio: 1 / 1;
    border-radius: 14px;
    background: #f1f5f9;
    border: 1px solid rgba(0, 0, 0, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #64748b;
}

.agent-detail-page__main {
    flex: 1;
    min-width: 260px;
}

.agent-detail-page__title {
    font-weight: 600;
    color: #334155;
    margin: 0 0 12px;
}

.agent-detail-page__bio {
    margin: 0 0 16px;
}

.agent-detail-contact {
    margin-top: 4px;
    margin-bottom: 18px;
    padding: var(--space-md);
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.agent-detail-contact__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-lg) var(--space-xl);
    align-items: start;
}

.agent-detail-contact__grid--single {
    grid-template-columns: 1fr;
}

.agent-detail-contact__heading {
    margin: 0 0 var(--space-sm);
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #64748b;
}

.agent-detail-contact__list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.agent-detail-contact__row {
    margin: 0 0 10px;
    font-size: 15px;
    line-height: 1.45;
}

.agent-detail-contact__row:last-child {
    margin-bottom: 0;
}

.agent-detail-contact__label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: #64748b;
    margin-bottom: 2px;
}

.agent-detail-contact__value {
    color: #0f172a;
    font-weight: 500;
    word-break: break-word;
}

.agent-detail-contact__value a {
    color: var(--color-primary, #1f3c88);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.agent-detail-contact__value a:hover {
    color: #0f172a;
}

.agent-detail-contact__social {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.agent-detail-contact__social-link {
    display: inline-block;
    font-size: 15px;
    font-weight: 600;
    color: var(--color-primary, #1f3c88);
    text-decoration: underline;
    text-underline-offset: 2px;
    word-break: break-word;
}

.agent-detail-contact__social-link:hover {
    color: #0f172a;
}

.agent-detail-contact__social-meta {
    display: block;
    font-size: 12px;
    font-weight: 400;
    color: #64748b;
    margin-top: 2px;
}

.agent-detail-page__listings {
    margin-top: 18px;
}

.agent-detail-page__listings-btn {
    display: inline-block;
    padding: 10px 14px;
    border-radius: 10px;
    background: #1f3c88;
    color: #fff;
    text-decoration: none;
    font-weight: 600;
}

.agent-detail-page__listings-btn:hover {
    filter: brightness(1.08);
    color: #fff;
}

@media (max-width: 719px) {
    .agent-detail-contact__grid {
        grid-template-columns: 1fr;
        gap: var(--space-md);
    }
}

/* Startseite: vier Kategorien nebeneinander (Platzhalter) */
.home-category-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: var(--space-md);
    margin: var(--space-md) 0 var(--space-lg);
}

.home-category-grid__cell {
    min-width: 0;
}

.home-category-grid__inner {
    height: 100%;
    min-height: 120px;
    padding: var(--space-md);
    background: #fff;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.home-category-grid__title {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 600;
    color: #1e293b;
    line-height: 1.35;
}

@media (max-width: 991px) {
    .home-category-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 479px) {
    .home-category-grid {
        grid-template-columns: 1fr;
    }
}

/* =========================================
   OBJECT-LIST: Card-Grid
========================================= */

.object-list-page {
    padding: var(--space-md) 0 var(--space-xl);
}

.object-list-page__intro {
    margin-bottom: var(--space-lg);
    max-width: 65ch;
    line-height: 1.65;
}

/* Objektdetail: gleiche vertikale Shell wie Objektliste; konkretes Layout folgt */
.object-detail-page {
    padding: var(--space-md) 0 var(--space-xl);
}

.object-detail-page__intro {
    margin-bottom: var(--space-lg);
    max-width: 65ch;
    line-height: 1.65;
}

.object-detail-page__body {
    margin-top: var(--space-md);
}

.object-detail-page__placeholder {
    margin: 0;
    max-width: 65ch;
    color: #64748b;
    font-size: 1rem;
    line-height: 1.55;
}

.object-detail-page__placeholder--muted {
    font-size: 0.9375rem;
}

.object-list-empty {
    margin: var(--space-lg) 0;
    color: #444;
    font-size: 16px;
}

/* Liste (ca. 66 %) + Filter-Spalte (Rest) */
.object-list-page__layout {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: var(--space-xl);
    width: 100%;
}

.object-list-page__main {
    flex: 0 0 66%;
    max-width: 66%;
    min-width: 0;
}

.object-list-page__filters {
    flex: 1 1 0;
    min-width: 0;
    position: relative;
}

.object-list-page__filters-inner {
    min-height: 120px;
    padding: var(--space-md);
    background: #fff;
    border: 1px solid #c8c8c8;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.object-list-used-attrs-section {
    margin-bottom: var(--space-md);
    padding-bottom: var(--space-md);
    border-bottom: 1px solid #ddd;
}

.object-list-used-attrs__title {
    margin: 0 0 var(--space-xs);
    font-size: 15px;
    font-weight: 600;
    color: #1a1a1a;
}

.object-list-used-attrs__meta {
    margin: 0 0 var(--space-sm);
    font-size: 12px;
    line-height: 1.45;
    color: #64748b;
}

.object-list-used-attrs {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
    max-height: 320px;
    overflow-y: auto;
}

.object-list-used-attrs__item {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: var(--space-sm);
    font-size: 13px;
    line-height: 1.35;
}

.object-list-used-attrs__label {
    flex: 1;
    min-width: 0;
}

.object-list-used-attrs__key {
    display: block;
    font-size: 11px;
    color: #94a3b8;
    font-family: ui-monospace, monospace;
}

.object-list-used-attrs__count {
    flex-shrink: 0;
    font-weight: 600;
    color: var(--color-primary);
    min-width: 2ch;
    text-align: right;
}

.object-list-attr-filter-form {
    margin: 0;
}

.object-list-attr-filter-list {
    list-style: none;
    margin: 0 0 var(--space-md);
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
    max-height: min(56vh, 420px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.object-list-attr-filter-row {
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 8px 10px;
    background: #fafafa;
}

.object-list-attr-filter-row__head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 6px;
}

.object-list-attr-filter-row__label {
    flex: 1;
    min-width: 0;
}

.object-list-attr-filter-row__name {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #1e293b;
}

.object-list-attr-filter-row__badge {
    flex-shrink: 0;
    font-size: 13px;
    font-weight: 700;
    color: var(--color-primary);
    min-width: 1.5rem;
    text-align: right;
}

.object-list-attr-filter-row__controls {
    margin-top: 2px;
}

.object-list-attr-filter-row__controls--num {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
}

.object-list-attr-numin {
    width: 100%;
    box-sizing: border-box;
    padding: 6px 8px;
    border: 1px solid #c8c8c8;
    border-radius: 6px;
    font-size: 14px;
}

.object-list-attr-filter-checkbox {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 13px;
    color: #334155;
}

.object-list-attr-filter-checkbox input {
    width: auto;
    accent-color: var(--color-primary);
}

.object-list-attr-filter-row__muted {
    margin: 0;
    font-size: 12px;
    color: #94a3b8;
    font-style: italic;
}

.object-list-attr-filter-actions {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-sm);
    align-items: center;
    margin-top: var(--space-sm);
}

.object-list-attr-filter__submit {
    padding: 8px 16px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
    color: #fff;
    background: var(--color-primary);
}

.object-list-attr-filter__submit:hover {
    filter: brightness(1.06);
}

.object-list-attr-filter__reset {
    font-size: 13px;
    color: #475569;
    text-decoration: underline;
}

.object-list-attr-filter__reset:hover {
    color: var(--color-primary);
}

@media (min-width: 992px) {
    .object-list-page__filters-inner {
        position: sticky;
        top: calc(var(--space-md) + 72px);
    }
}

.object-list-grid {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
}

.object-list-grid__cell {
    margin: 0;
    padding: 0;
    min-width: 0;
    width: 100%;
}

.object-card {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    width: 100%;
    min-height: 140px;
    background: #fff;
    border: 1px solid #c8c8c8;
    border-radius: 10px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.object-card:hover,
.object-card:focus-visible {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    transform: translateY(-2px);
    outline: none;
}

.object-card__media {
    flex: 0 0 40%;
    max-width: 280px;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, var(--color-primary) 0%, #2a4a6e 100%);
    opacity: 0.92;
    align-self: stretch;
    min-height: 140px;
}

.object-card__media:has(.object-card__img) {
    opacity: 1;
}

.object-card__img {
    width: 100%;
    height: 100%;
    min-height: 140px;
    display: block;
    object-fit: cover;
}

.object-card__body {
    padding: var(--space-md);
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    text-align: left;
    gap: var(--space-sm);
}

.object-card__title {
    margin: 0;
    font-size: 17px;
    font-weight: 600;
    line-height: 1.35;
    color: #1a1a1a;
}

.object-card__teaser {
    margin: 0;
    font-size: 13.5px;
    line-height: 1.45;
    color: #4a5568;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
    max-width: 100%;
}

.object-card__price {
    margin: 0;
    font-size: 15px;
    font-weight: 600;
    color: var(--color-primary);
}

.object-card__specs {
    margin: 0;
    padding: 0;
    width: 100%;
    list-style: none;
    border-top: 1px solid #e8e8e8;
    margin-top: 6px;
    padding-top: 8px;
}

.object-card__spec-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 12px;
    font-size: 13px;
    line-height: 1.35;
    padding: 3px 0;
}

.object-card__spec-k {
    color: #5c5c5c;
    font-weight: 500;
    flex: 1 1 auto;
    min-width: 0;
}

.object-card__spec-v {
    color: #1a1a1a;
    text-align: right;
    flex: 0 1 auto;
    min-width: 0;
    word-break: break-word;
}

@media (max-width: 991px) {
    /*
     Mobiler Aufbau:
     • Filter-Spalte zuerst (order), nicht erst nach vielen Cards.
     • Sticky unterhalb der Hauptnav: bleibt beim Scrollen durch lange Listen erreichbar.
    */
    .object-list-page__layout {
        flex-direction: column;
        gap: var(--space-lg);
        align-items: stretch;
    }

    .object-list-page__main {
        flex: 1 1 auto;
        max-width: 100%;
        width: 100%;
        order: 2;
    }

    .object-list-page__filters {
        flex: 0 0 auto;
        width: 100%;
        order: 1;
        position: sticky;
        top: calc(env(safe-area-inset-top, 0px) + 72px);
        z-index: 15;
        margin-bottom: 0;
        padding-bottom: var(--space-xs);
        background: var(--color-gray);
        box-shadow: 0 6px 12px rgba(0, 0, 0, 0.06);
        border-radius: 0 0 10px 10px;
    }

    .object-list-page__filters-inner {
        position: relative;
        top: auto;
        margin-bottom: 0;
        max-height: min(52vh, 420px);
        overflow-y: auto;
        min-height: 0;
        -webkit-overflow-scrolling: touch;
    }

    .object-card {
        flex-direction: column;
        min-height: 0;
    }

    .object-card__media {
        flex: 0 0 auto;
        max-width: none;
        width: 100%;
        aspect-ratio: 16 / 10;
        min-height: 0;
    }

    .object-card__img {
        min-height: 0;
    }
}

/* H1 steht außerhalb von .template-default: Abstand zur ersten Section im Body */
.page-content .page-body > .template-default:first-child {
    margin-top: var(--space-lg);
}

/* =========================================
   FOOTER
========================================= */

footer {
    padding: var(--space-lg) 0;
    background: var(--color-primary);
    width: 100%;
    margin: 0;
    color: white;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-lg);
}

.footer-column h3 {
    margin: 0 0 var(--space-md) 0;
    font-size: 18px;
    font-weight: 600;
    color: white;
}

.footer-column p {
    margin: 0 0 var(--space-sm) 0;
    color: white;
    line-height: 1.6;
}

.footer-column ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-column ul li {
    margin-bottom: var(--space-sm);
}

.footer-column a {
    color: white;
    text-decoration: none;
    opacity: 0.9;
    transition: opacity 0.2s;
}

.footer-column a:hover {
    opacity: 1;
    text-decoration: underline;
}

/* Mobile: Footer 1-spaltig */
@media (max-width: 991px) {
    .footer-content {
        grid-template-columns: 1fr;
        gap: var(--space-md);
    }
}

/* =========================================
   DESKTOP (>= 992px)
========================================= */

@media (max-width: 991px) {

    .menu-section .container {
        height: auto;
        flex-direction: column;
        align-items: stretch;
        padding: var(--space-md);
        gap: var(--space-md);
    }

    /* Menü + Burger in einer Zeile */
    .menu-section .nav-wrapper {
        flex-direction: row !important;
        justify-content: flex-end;
        align-items: center;
    }

}


/* =========================================
   TEMPLATE: DEFAULT
   (zweispaltiges Standard-Layout)
========================================= */

.template-default {
    padding: 0 0 var(--space-xl);
    /* Negativer Margin nur ohne vorgelagertes Seiten-H1 (Fallback) */
    margin-top: calc(var(--space-xl) * -0.5);
}

.template-default .header-container {
    max-width: var(--max-width);
    margin: 0 auto var(--space-lg);
    padding: 0 var(--space-md);
}

.template-default .header-container h1 {
    margin: 0 0 var(--space-sm) 0;
    font-size: 32px;
    font-weight: 600;
}

.template-default .header-container .subheader {
    margin: 0;
    font-size: 18px;
    line-height: 1.6;
    opacity: 0.85;
}

.template-default .two-col-container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--space-md);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-xl);
    align-items: flex-start;
}

.template-default .col {
    font-size: 16px;
    line-height: 1.7;
}

.template-default .col-left {
    /* Haupttextspalte – kann später erweitert werden */
}

.template-default .col-right {
    /* Rechte Spalte – z.B. für Highlights, Listen etc. */
}

/* Impressum / Imprint / Künye: kein negativer Offset, H1 im Inhalt */
.template-default--legal {
    margin-top: 0;
    padding-top: var(--space-md);
}

.template-default--legal .legal-col-left h2,
.template-default--legal .legal-col-right h2 {
    margin: var(--space-lg) 0 var(--space-sm);
    font-size: 20px;
    font-weight: 600;
}

.template-default--legal .legal-col-left h2:first-of-type,
.template-default--legal .legal-col-right h2:first-of-type {
    margin-top: 0;
}

.template-default--legal a {
    color: inherit;
    text-decoration: underline;
    text-underline-offset: 2px;
}

@media (max-width: 991px) {
    .template-default {
        padding: 0 0 var(--space-lg);
        margin-top: calc(var(--space-xl) * -0.5);
    }

    .template-default--legal {
        margin-top: 0;
    }
    .template-default .header-container {
        padding: 0 var(--space-md);
    }

    .template-default .two-col-container {
        padding: 0 var(--space-md);
        grid-template-columns: 1fr;
        gap: var(--space-md);
    }
}

/* =========================================
   TEMPLATE: OBJEKTDETAIL (öffentliche Immobilie)
========================================= */

.object-detail-page .mi24-detail__back {
    margin: 0 0 var(--space-md);
    font-size: 15px;
}

.object-detail-page .mi24-detail__back-link {
    color: inherit;
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* Galerie: volle Innenbreite, horizontal scrollbar (touch + Mausrad mit Shift) */
.object-detail-page .mi24-detail__section--gallery-full {
    margin: 0 0 var(--space-xl);
    width: 100%;
}

.object-detail-page .mi24-detail-gallery--scroll {
    width: 100%;
    border-radius: 12px;
    border: 1px solid rgba(15, 23, 42, 0.08);
    background: rgba(15, 23, 42, 0.04);
    /* Einheitliche Höhe aller Bildkacheln (Breite ergibt sich aus 16∶9 zur Höhe) */
    --mi24-gallery-h: clamp(172px, 28vh, 300px);
}

.object-detail-page .mi24-detail-gallery--scroll.mi24-detail-gallery--with-arrows {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: stretch;
    gap: var(--space-sm);
    padding-inline: var(--space-xs);
}

.object-detail-page .mi24-detail-gallery__arrow {
    align-self: stretch;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: clamp(38px, 5vw, 48px);
    min-width: 38px;
    margin: var(--space-sm) 0;
    padding: 0;
    border-radius: 12px;
    border: 1px solid rgba(15, 23, 42, 0.18);
    background: rgba(255, 255, 255, 0.95);
    color: rgba(15, 23, 42, 0.88);
    font-size: 26px;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
    transition: background 0.12s ease-out, opacity 0.12s ease-out, transform 0.12s ease-out;
}

.object-detail-page .mi24-detail-gallery__arrow:hover:not(:disabled) {
    background: #fff;
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
}

.object-detail-page .mi24-detail-gallery__arrow:focus-visible {
    outline: 2px solid rgba(56, 189, 248, 0.95);
    outline-offset: 2px;
}

.object-detail-page .mi24-detail-gallery__arrow:disabled {
    opacity: 0.32;
    cursor: not-allowed;
}

.object-detail-page .mi24-detail-gallery__scroller {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    min-width: 0;
    gap: var(--space-sm);
    overflow-x: auto;
    overflow-y: hidden;
    padding: var(--space-sm);
    scroll-snap-type: x mandatory;
    scroll-padding-inline: var(--space-sm);
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: rgba(15, 23, 42, 0.35) rgba(15, 23, 42, 0.08);
}

.object-detail-page .mi24-detail-gallery__scroller::-webkit-scrollbar {
    height: 11px;
}

.object-detail-page .mi24-detail-gallery__scroller::-webkit-scrollbar-track {
    background: rgba(15, 23, 42, 0.08);
    border-radius: 99px;
    margin-inline: var(--space-sm);
}

.object-detail-page .mi24-detail-gallery__scroller::-webkit-scrollbar-thumb {
    background: rgba(15, 23, 42, 0.3);
    border-radius: 99px;
}

.object-detail-page .mi24-detail-gallery__scroller::-webkit-scrollbar-thumb:hover {
    background: rgba(15, 23, 42, 0.46);
}

.object-detail-page .mi24-detail-gallery__slide {
    flex: 0 0 auto;
    box-sizing: border-box;
    height: var(--mi24-gallery-h);
    scroll-snap-align: start;
    text-decoration: none;
    color: inherit;
    border-radius: 10px;
    overflow: hidden;
    outline: none;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.12s ease-out, box-shadow 0.12s ease-out;
}

.object-detail-page .mi24-detail-gallery__slide:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.1);
}

.object-detail-page .mi24-detail-gallery__slide:focus-visible {
    outline: 2px solid rgba(56, 189, 248, 0.95);
    outline-offset: 3px;
}

.object-detail-page .mi24-detail-gallery__thumb-wrap {
    display: block;
    box-sizing: border-box;
    height: 100%;
    width: calc(var(--mi24-gallery-h) * 16 / 9);
    max-width: none;
    background: #0f172a;
}

.object-detail-page .mi24-detail-gallery__thumb-img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
}

.object-detail-page .mi24-detail-gallery__hint {
    margin: var(--space-sm) 0 0;
    padding: 0.55rem 0.85rem;
    max-width: 65ch;
    font-size: 13px;
    line-height: 1.35;
    color: rgba(15, 23, 42, 0.78);
    background: rgba(15, 23, 42, 0.045);
    border: 1px solid rgba(15, 23, 42, 0.1);
    border-radius: 10px;
}

/* Großansicht: Skript verschiebt #mi24-detail-lightbox an document.body — nicht unter .object-detail-page verschachteln */
.mi24-detail-lightbox {
    box-sizing: border-box;
    position: fixed;
    inset: 0;
    z-index: 2147483600;
    width: 100vw;
    max-width: 100vw;
    min-height: 100vh;
    min-height: 100dvh;
    overflow: hidden;
    padding:
        calc(12px + env(safe-area-inset-top, 0))
        calc(12px + env(safe-area-inset-right, 0))
        calc(12px + env(safe-area-inset-bottom, 0))
        calc(12px + env(safe-area-inset-left, 0));
}

.mi24-detail-lightbox[hidden] {
    display: none !important;
}

.mi24-detail-lightbox:not([hidden]) {
    display: flex;
    flex-direction: column;
}

.mi24-detail-lightbox__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.88);
    cursor: zoom-out;
}

@supports ((-webkit-backdrop-filter: blur(12px)) or (backdrop-filter: blur(12px))) {
    .mi24-detail-lightbox__backdrop {
        -webkit-backdrop-filter: blur(12px);
        backdrop-filter: blur(12px);
        background: rgba(15, 23, 42, 0.76);
    }
}

.mi24-detail-lightbox__frame {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
    width: 100%;
}

.mi24-detail-lightbox__icon-circle {
    position: absolute;
    top: 0;
    right: 0;
    z-index: 6;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    padding: 0;
    margin: 0;
    border: none;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.45);
    color: #fff;
    cursor: pointer;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.35);
}

.mi24-detail-lightbox__icon-circle:hover {
    background: rgba(0, 0, 0, 0.62);
}

.mi24-detail-lightbox__icon-circle:focus-visible {
    outline: 2px solid rgba(125, 211, 252, 0.95);
    outline-offset: 3px;
}

.mi24-detail-lightbox__close-x {
    font-size: 32px;
    line-height: 1;
    font-weight: 300;
    margin-top: -2px;
}

.mi24-detail-lightbox__fab {
    position: absolute;
    top: 50%;
    z-index: 5;
    transform: translateY(-50%);
    width: 56px;
    height: 56px;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.42);
    color: #fff;
    font-size: 34px;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.35);
}

.mi24-detail-lightbox__fab:hover {
    background: rgba(0, 0, 0, 0.58);
    border-color: rgba(255, 255, 255, 0.5);
}

.mi24-detail-lightbox__fab:focus-visible {
    outline: 2px solid rgba(125, 211, 252, 0.95);
    outline-offset: 3px;
}

.mi24-detail-lightbox__fab[hidden] {
    display: none !important;
}

.mi24-detail-lightbox__fab--prev {
    left: max(10px, env(safe-area-inset-left, 0));
}

.mi24-detail-lightbox__fab--next {
    right: max(10px, env(safe-area-inset-right, 0));
}

.mi24-detail-lightbox__stage {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 0;
    padding: 56px max(64px, 5vw) 12px;
}

.mi24-detail-lightbox__figure {
    position: relative;
    display: inline-block;
    max-width: 100%;
    vertical-align: middle;
}

.mi24-detail-lightbox__figure .mi24-detail-lightbox__img {
    display: block;
    max-width: 100%;
    max-height: min(86vh, calc(100dvh - 120px));
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 6px;
    box-shadow: 0 12px 48px rgba(0, 0, 0, 0.45);
}

.mi24-detail-lightbox__caption {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    margin: 0;
    padding: 11px 14px 13px;
    background: rgba(0, 0, 0, 0.52);
    color: #fff;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.85);
    font-size: 14px;
    line-height: 1.48;
    text-align: left;
    white-space: pre-line;
    box-sizing: border-box;
    max-height: 48%;
    overflow-y: auto;
    border-radius: 0 0 6px 6px;
    -webkit-font-smoothing: antialiased;
}

@supports ((-webkit-backdrop-filter: blur(8px)) or (backdrop-filter: blur(8px))) {
    .mi24-detail-lightbox__caption {
        -webkit-backdrop-filter: blur(10px);
        backdrop-filter: blur(10px);
        background: rgba(0, 0, 0, 0.42);
    }
}

.mi24-detail-lightbox__caption[hidden] {
    display: none !important;
}

.mi24-detail-lightbox__toolbar {
    flex-shrink: 0;
    padding: 10px 8px 4px;
    text-align: center;
    font-size: 15px;
}

.mi24-detail-lightbox__orig {
    color: rgba(186, 230, 253, 0.98);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.mi24-detail-lightbox__orig:hover {
    color: #fff;
}

@media (max-width: 600px) {
    .mi24-detail-lightbox__stage {
        padding: 52px 12px 8px;
    }

    .mi24-detail-lightbox__fab {
        width: 48px;
        height: 48px;
        font-size: 30px;
    }

    .mi24-detail-lightbox__fab--prev {
        left: 6px;
    }

    .mi24-detail-lightbox__fab--next {
        right: 6px;
    }

    .mi24-detail-lightbox__figure .mi24-detail-lightbox__img {
        max-height: min(82vh, calc(100dvh - 108px));
    }

    .mi24-detail-lightbox__caption {
        font-size: 13px;
        padding: 9px 12px;
    }
}

/* Zwei gleich breite Spalten (je 50 % der verfügbaren Zeilenbreite abzüglich gap) */
.object-detail-page .mi24-detail__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--space-xl);
    align-items: flex-start;
    margin-bottom: var(--space-xl);
}

.object-detail-page .mi24-detail__col--text {
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
    min-width: 0;
}

.object-detail-page .mi24-detail__col--embed {
    min-width: 0;
}

.object-detail-page h1.page-content__h1 {
    font-size: clamp(20px, 2.35vw, 26px);
    font-weight: 700;
    line-height: 1.25;
}

.object-detail-page .mi24-detail__title {
    margin: 0 0 var(--space-sm);
}

.object-detail-page .mi24-detail__price {
    margin: 0 0 var(--space-sm);
    font-size: 20px;
}

.object-detail-page .mi24-detail__meta {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-xs);
    margin: 0 0 var(--space-md);
}

.object-detail-page .mi24-detail__meta-pill {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.06);
    font-size: 14px;
    line-height: 1.3;
}

.object-detail-page .mi24-detail__facts {
    margin: 0 0 var(--space-md);
    padding: 0 0 0 1.25rem;
    font-size: 15px;
    line-height: 1.65;
}

.object-detail-page .mi24-detail__facts li + li {
    margin-top: 0.35rem;
}

.object-detail-page .mi24-detail__muted {
    margin: 0;
    font-size: 15px;
    opacity: 0.75;
    line-height: 1.5;
}

.object-detail-page .mi24-detail__description {
    font-size: 16px;
    line-height: 1.65;
}

.object-detail-page .mi24-detail__description p:first-child {
    margin-top: 0;
}

.object-detail-page .mi24-detail__embed-stack {
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
}

/* Karte + YouTube aus video_url eine Spaltenbreite, Video direkt unter der Karte */
.object-detail-page .mi24-detail__map-video-stack {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
    width: 100%;
}

.object-detail-page .mi24-detail__map-card {
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(15, 23, 42, 0.08);
    background: #f8fafc;
    width: 100%;
}

.object-detail-page .mi24-detail__map {
    min-height: 280px;
    width: 100%;
}

.object-detail-page .mi24-detail__youtube-card {
    position: relative;
    width: 100%;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(15, 23, 42, 0.08);
    background: #0f172a;
    aspect-ratio: 16 / 9;
}

.object-detail-page .mi24-detail__youtube-iframe {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
}

.object-detail-page .mi24-detail__section--attrs {
    border-top: 1px solid rgba(15, 23, 42, 0.08);
    padding-top: var(--space-xl);
}

/* Unter „Text“-Hero-Spalte (50 % Desktop): Rand-zu-Rand ohne Überlaufen */
.object-detail-page .mi24-detail__col--text .mi24-detail__section--attrs {
    width: 100%;
    min-width: 0;
    align-self: stretch;
}

.object-detail-page .mi24-detail__h2 {
    margin: 0 0 var(--space-md);
    font-size: 22px;
    font-weight: 700;
}

/* Weitere Details: Zeile = Attributname (50 %) | Wert + Einheit bzw. Häkchen (50 %), alles linksbündig */
.object-detail-page .mi24-detail-attributes {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-lg);
    align-items: flex-start;
    min-width: 0;
}

.object-detail-page .mi24-detail-attributes__cat {
    min-width: 0;
}

.object-detail-page .mi24-detail-attributes__cat-title {
    margin: 0 0 var(--space-sm);
    font-size: 16px;
    font-weight: 600;
}

.object-detail-page .mi24-detail-attributes__list {
    display: flex;
    flex-direction: column;
    margin: 0;
    padding: 0;
    list-style: none;
    font-size: 15px;
    line-height: 1.5;
}

.object-detail-page .mi24-detail-attributes__item {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: var(--space-lg);
    align-items: start;
    padding: 0.35rem 0;
    border-bottom: 1px solid rgba(15, 23, 42, 0.06);
    min-width: 0;
}

.object-detail-page .mi24-detail-attributes__name {
    font-weight: 500;
    min-width: 0;
}

.object-detail-page .mi24-detail-attributes__value {
    display: flex;
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 0.25rem 0.35rem;
    text-align: left;
    min-width: 0;
}

.object-detail-page .mi24-detail-attributes__check {
    flex: 0 0 auto;
    color: rgb(34, 197, 94);
    font-weight: 700;
}

@media (max-width: 991px) {
    .object-detail-page .mi24-detail__grid {
        grid-template-columns: 1fr;
    }

    .object-detail-page .mi24-detail-attributes__item {
        grid-template-columns: 1fr;
        row-gap: 0.2rem;
    }

    .object-detail-page .mi24-detail-gallery--scroll {
        --mi24-gallery-h: clamp(148px, 24vh, 240px);
    }
}

