:where(.ivm-object-list-apartments, .ivm-object-list-apartment-detail, .ivm-object-list-search, .ivm-object-list-tabs) {
    --ivm-apartments-page: #f5f6f7;
    --ivm-apartments-surface: #ffffff;
    --ivm-apartments-text: #20252b;
    --ivm-apartments-muted: #66707a;
    --ivm-apartments-border: #dfe3e7;
    --ivm-apartments-accent: #1d5b4f;
    --ivm-apartments-accent-hover: #15483f;
    --ivm-apartments-success: #287a4d;
    --ivm-apartments-danger: #9f2f2f;
    --ivm-apartments-radius: 12px;
    --ivm-apartments-space: 8px;
    --ivm-apartments-gutter: clamp(16px, 3vw, 40px);
    --ivm-apartments-transition: 160ms ease;

    width: 100%;
    box-sizing: border-box;
    color: var(--ivm-apartments-text);
    font-family:
        Inter,
        ui-sans-serif,
        system-ui,
        -apple-system,
        BlinkMacSystemFont,
        'Segoe UI',
        sans-serif;
}

:is(.ivm-object-list-apartments, .ivm-object-list-apartment-detail, .ivm-object-list-tabs__list).ivm-object-list-layout--full {
    width: calc(100vw - (var(--ivm-apartments-gutter) * 2));
    max-width: none;
    /* WordPress constrained layouts set auto margins with !important. */
    margin-right: 0 !important;
    margin-left: calc(50% - 50vw + var(--ivm-apartments-gutter)) !important;
}

:where(.ivm-object-list-apartments, .ivm-object-list-apartment-detail, .ivm-object-list-search) *,
:where(.ivm-object-list-apartments, .ivm-object-list-apartment-detail, .ivm-object-list-search)
    *::before,
:where(.ivm-object-list-apartments, .ivm-object-list-apartment-detail, .ivm-object-list-search)
    *::after {
    box-sizing: border-box;
}

.ivm-object-list-search {
    border: calc(var(--ivm-border-width, 1) * 1px) solid var(--ivm-form-border, #e2e8f0);
    border-radius: calc(var(--ivm-radius, 22) * 1px);
    background: var(--ivm-form-bg, #ffffff);
    padding: var(--ivm-container-padding, clamp(18px, 2vw, 28px));
    color: var(--ivm-form-text, #1f2937);
    font-family: var(--ivm-font-family, inherit);
    font-size: calc(var(--ivm-font-size, 16) * 1px);
    line-height: calc(var(--ivm-line-height, 135) / 100);
    box-shadow: 0 20px 48px rgba(15, 23, 42, 0.07);
}

.ivm-object-list-search[data-constrained='true'] {
    max-width: calc(var(--ivm-max-width) * 1px);
    margin-inline: auto;
}
.ivm-object-list-search[data-constrained='true'][data-align='left'] {
    margin-left: 0;
}
.ivm-object-list-search[data-constrained='true'][data-align='right'] {
    margin-right: 0;
}
.ivm-object-list-search[data-shadow='none'] {
    box-shadow: none;
}
.ivm-object-list-search[data-shadow='strong'] {
    box-shadow: 0 12px 36px #0f172a33;
}

.ivm-object-list-search__form {
    width: 100%;
}

.ivm-object-list-search__header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 26px;
}

.ivm-object-list-search__eyebrow {
    display: block;
    margin-bottom: 5px;
    color: var(--ivm-form-muted, #64748b);
    font-size: 12px;
    font-weight: 750;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.ivm-object-list-search__header h2 {
    margin: 0;
    color: var(--ivm-heading-color, var(--ivm-form-text, #1f2937));
    font-size: calc(var(--ivm-heading-size, 20) * 1px);
    font-weight: var(--ivm-heading-weight, 700);
    line-height: inherit;
}

.ivm-object-list-search__filter-count {
    display: inline-flex;
    min-height: 30px;
    align-items: center;
    border: 1px solid var(--ivm-form-border, #e2e8f0);
    border-radius: 999px;
    background: var(--ivm-field-bg, #ffffff);
    padding: 5px 11px;
    color: var(--ivm-form-text, #1f2937);
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
}

.ivm-object-list-search__columns {
    display: grid;
    gap: calc(var(--ivm-gap, 20) * 1px);
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.ivm-object-list-search__columns--simple {
    grid-template-columns: minmax(0, 1fr);
}

.ivm-object-list-search__column {
    display: grid;
    align-content: start;
    gap: calc(var(--ivm-gap, 20) * 1px);
    min-width: 0;
}

.ivm-object-list-search__columns--simple > .ivm-object-list-search__column {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr));
}

.ivm-object-list-search__group {
    min-width: 0;
    border: 0;
    margin: 0;
    padding: 0;
}

.ivm-object-list-search__group > legend {
    margin-bottom: calc(var(--ivm-label-gap, 8) * 1px);
    padding: 0;
    color: var(--ivm-label-color, var(--ivm-form-text));
    font-size: calc(var(--ivm-label-size, 16) * 1px);
    font-weight: var(--ivm-label-weight, 400);
}

.ivm-object-list-search__group-fields {
    display: flex;
    flex-wrap: wrap;
    gap: calc(var(--ivm-gap, 20) * 1px);
}

.ivm-object-list-search__group-fields > * {
    flex: 1 1 120px;
    min-width: 0;
}

.ivm-object-list-search__help,
.ivm-object-list-search__intro {
    color: var(--ivm-form-muted, #64748b);
    font-size: calc(var(--ivm-help-size, 13) * 1px);
    font-weight: var(--ivm-help-weight, 400);
}

.ivm-object-list-search__help {
    margin: calc(var(--ivm-help-gap, 6) * 1px) 0 0;
}

.ivm-object-list-search__field {
    display: grid;
    min-width: 0;
    gap: calc(var(--ivm-label-gap, 8) * 1px);
    margin: 0;
}

.ivm-object-list-search__label {
    color: var(--ivm-label-color, var(--ivm-form-text, #1f2937));
    font-size: calc(var(--ivm-label-size, 16) * 1px);
    font-weight: var(--ivm-label-weight, 400);
}

.ivm-object-list-search__field input,
.ivm-object-list-search__field select,
.ivm-object-list-search__submit {
    width: 100%;
    margin: 0;
    font: inherit;
    line-height: inherit;
}

.ivm-object-list-search__field input,
.ivm-object-list-search__field select {
    min-height: calc(var(--ivm-field-height, 38) * 1px);
    border: calc(var(--ivm-field-border-width, 1) * 1px) solid var(--ivm-field-border, #d9d9d9);
    border-radius: calc(var(--ivm-field-radius, 0) * 1px);
    background: var(--ivm-field-bg, #ffffff);
    padding: calc(var(--ivm-field-padding, 8) * 1px) calc((var(--ivm-field-padding, 8) + 2) * 1px);
    color: var(--ivm-field-text, var(--ivm-form-text, #1f2937));
    font-weight: var(--ivm-field-weight, 400);
}

.ivm-object-list-search__field input::placeholder {
    color: var(--ivm-placeholder-color, #64748b);
    opacity: 1;
}
.ivm-object-list-search__field :is(input, select):hover {
    border-color: var(--ivm-hover-color, #64748b);
}
.ivm-object-list-search__field :is(input, select):disabled {
    background: var(--ivm-disabled-bg, #f1f5f9);
    cursor: not-allowed;
}

.ivm-object-list-search__field select {
    cursor: pointer;
}

/* Native option lists open on the system's light surface; keep them readable on dark designs. */
.ivm-object-list-search__field select option {
    background-color: #ffffff;
    color: #1f2937;
}

.ivm-object-list-search__field input:focus,
.ivm-object-list-search__field select:focus {
    border-color: var(--ivm-focus-color, #0c4a6e);
    outline: 2px solid var(--ivm-focus-color, #0c4a6e);
    outline-offset: 1px;
}

.ivm-object-list-search__input-wrap {
    position: relative;
    display: block;
}

.ivm-object-list-search__input-wrap input {
    padding-right: 40px;
}

.ivm-object-list-search__input-wrap > span {
    position: absolute;
    top: 50%;
    right: 13px;
    color: var(--ivm-form-muted, #64748b);
    font-size: 13px;
    pointer-events: none;
    transform: translateY(-50%);
}

.ivm-object-list-search__advanced {
    margin-top: 22px;
    border-top: 1px solid var(--ivm-form-border, #e2e8f0);
    border-bottom: 1px solid var(--ivm-form-border, #e2e8f0);
}

.ivm-object-list-search__advanced summary {
    display: flex;
    min-height: 52px;
    align-items: center;
    gap: 10px;
    color: var(--ivm-heading-color, var(--ivm-form-text, #1f2937));
    cursor: pointer;
    font-size: calc(var(--ivm-heading-size, 20) * 1px);
    font-weight: var(--ivm-heading-weight, 700);
    list-style: none;
}

.ivm-object-list-search__advanced summary::-webkit-details-marker {
    display: none;
}

.ivm-object-list-search__advanced summary::after {
    width: 8px;
    height: 8px;
    margin-left: auto;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    content: '';
    transform: rotate(45deg) translateY(-2px);
    transition: transform var(--ivm-apartments-transition);
}

.ivm-object-list-search__advanced[open] summary::after {
    transform: rotate(225deg) translate(-2px, -2px);
}

.ivm-object-list-search__advanced-hint {
    color: var(--ivm-form-muted, #64748b);
    font-size: calc(var(--ivm-help-size, 13) * 1px);
    font-weight: var(--ivm-help-weight, 400);
}

.ivm-object-list-search__advanced-content {
    display: grid;
    gap: calc(var(--ivm-gap, 20) * 1px);
    padding: 8px 0 28px;
}

.ivm-object-list-search__equipments {
    display: grid;
    gap: 18px;
}

.ivm-object-list-search__equipment-heading {
    display: flex;
    align-items: baseline;
    gap: 10px;
}

.ivm-object-list-search__equipment-heading strong {
    font-size: 14px;
}

.ivm-object-list-search__equipment-heading span {
    color: var(--ivm-form-muted, #64748b);
    font-size: 12px;
}

.ivm-object-list-search__equipments fieldset {
    min-width: 0;
    margin: 0;
    border: 0;
    padding: 0;
}

.ivm-object-list-search__equipments legend {
    margin-bottom: 9px;
    color: var(--ivm-form-muted, #64748b);
    font-size: 11px;
    font-weight: 750;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.ivm-object-list-search__checks {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.ivm-object-list-search__checks label {
    position: relative;
    margin: 0;
    cursor: pointer;
}

.ivm-object-list-search__checks input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
}

.ivm-object-list-search__checks span {
    display: inline-flex;
    min-height: calc(var(--ivm-field-height, 38) * 1px);
    align-items: center;
    border: calc(var(--ivm-field-border-width, 1) * 1px) solid var(--ivm-field-border, #d9d9d9);
    border-radius: calc(var(--ivm-field-radius, 0) * 1px);
    background: var(--ivm-field-bg, #ffffff);
    padding: calc(var(--ivm-field-padding, 8) * 1px) calc((var(--ivm-field-padding, 8) + 2) * 1px);
    color: var(--ivm-field-text, var(--ivm-form-text, #1f2937));
    font-size: inherit;
    font-weight: var(--ivm-field-weight, 400);
    transition:
        border-color var(--ivm-apartments-transition),
        background var(--ivm-apartments-transition),
        color var(--ivm-apartments-transition);
}

.ivm-object-list-search__checks input:checked + span {
    border-color: var(--ivm-button-bg, #0f172a);
    background: var(--ivm-button-bg, #0f172a);
    color: var(--ivm-button-text, #ffffff);
}

.ivm-object-list-search__checks input:focus-visible + span {
    outline: 3px solid var(--ivm-focus-color, #0c4a6e);
    outline-offset: 2px;
}

.ivm-object-list-search__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: calc(var(--ivm-gap, 20) * 1px);
    margin-top: calc(var(--ivm-gap, 20) * 1px);
}

.ivm-object-list-search[data-buttonalign='center'] .ivm-object-list-search__actions {
    justify-content: center;
}
.ivm-object-list-search[data-buttonalign='right'] .ivm-object-list-search__actions {
    justify-content: flex-end;
}
.ivm-object-list-search[data-buttonwidth='full'] .ivm-object-list-search__submit {
    width: 100%;
}

.ivm-object-list-search__submit {
    width: auto;
    border: calc(var(--ivm-button-border-width, 1) * 1px) solid
        var(--ivm-button-border, transparent);
    border-radius: calc(var(--ivm-button-radius, 10) * 1px);
    background: var(--ivm-button-bg, #0f172a);
    padding: calc(var(--ivm-button-padding, 10) * 1px)
        calc((var(--ivm-button-padding, 10) + 8) * 1px);
    color: var(--ivm-button-text, #ffffff);
    cursor: pointer;
    font-size: calc(var(--ivm-button-size, 16) * 1px);
    font-weight: var(--ivm-button-weight, 600);
}

.ivm-object-list-search__reset {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: calc(var(--ivm-reset-border-width, 0) * 1px) solid var(--ivm-reset-border, transparent);
    border-radius: calc(var(--ivm-reset-radius, 0) * 1px);
    background: var(--ivm-reset-bg, transparent);
    padding: calc(var(--ivm-reset-padding, 0) * 1px);
    color: var(--ivm-reset-text, #64748b);
    font-family: inherit;
    font-size: calc(var(--ivm-reset-size, 13) * 1px);
    font-weight: var(--ivm-reset-weight, 650);
    line-height: inherit;
    cursor: pointer;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.ivm-object-list-search__reset:hover {
    background: var(--ivm-reset-hover, var(--ivm-reset-bg, transparent));
    color: var(--ivm-reset-hover-text, #1f2937);
}

.ivm-object-list-search__reset:focus-visible {
    outline: 3px solid var(--ivm-focus-color, #0c4a6e);
    outline-offset: 3px;
}

.ivm-object-list-search__submit:hover {
    background: var(--ivm-button-hover, var(--ivm-button-bg, #0f172a));
    color: var(--ivm-button-text, #ffffff);
}

.ivm-object-list-search__submit:focus-visible {
    outline: 3px solid var(--ivm-focus-color, #0c4a6e);
    outline-offset: 3px;
}

.ivm-object-list-apartments {
    display: grid;
    gap: calc(var(--ivm-apartments-space) * 3);
}

.ivm-object-list-apartments__toolbar {
    display: flex;
    flex-wrap: wrap;
    min-height: 54px;
    align-items: center;
    justify-content: space-between;
    gap: calc(var(--ivm-apartments-space) * 2);
    border-top: 1px solid var(--ivm-apartments-border);
    border-bottom: 1px solid var(--ivm-apartments-border);
    padding: var(--ivm-apartments-space) 0;
}

.ivm-object-list-apartments__summary,
.ivm-object-list-apartments__pages {
    margin: 0;
    color: var(--ivm-apartments-text);
    font-size: 14px;
    font-weight: 650;
    line-height: 1.4;
}

.ivm-object-list-apartments__pagination {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 7px;
    margin-top: 4px;
}

.ivm-object-list-apartments__pagination a,
.ivm-object-list-apartments__pagination span {
    display: inline-flex;
    min-width: 38px;
    min-height: 38px;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--ivm-apartments-border);
    border-radius: 9px;
    background: var(--ivm-apartments-surface);
    padding: 7px 11px;
    color: var(--ivm-apartments-text);
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
}

.ivm-object-list-apartments__pagination a:hover,
.ivm-object-list-apartments__pagination .is-current {
    border-color: var(--ivm-apartments-accent);
    background: var(--ivm-apartments-accent);
    color: #ffffff;
}

.ivm-object-list-apartments__sort {
    display: inline-flex;
    align-items: center;
    gap: var(--ivm-apartments-space);
    margin: 0;
    color: var(--ivm-apartments-muted);
    font-size: 13px;
    font-weight: 500;
}

.ivm-object-list-apartments__sort > span {
    white-space: nowrap;
}

.ivm-object-list-apartments__sort select {
    min-width: 190px;
    min-height: 40px;
    margin: 0;
    border: 1px solid var(--ivm-apartments-border);
    border-radius: 8px;
    background-color: var(--ivm-apartments-surface);
    padding: 7px 34px 7px 11px;
    color: var(--ivm-apartments-text);
    font: inherit;
    font-size: 13px;
    line-height: 1.25;
}

.ivm-object-list-apartments__sort select:focus-visible {
    border-color: var(--ivm-apartments-accent);
    outline: 3px solid color-mix(in srgb, var(--ivm-apartments-accent) 22%, transparent);
    outline-offset: 2px;
}

.ivm-object-list-apartments__grid {
    display: grid;
    align-items: stretch;
    gap: calc(var(--ivm-apartments-space) * 3);
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr));
}

.ivm-object-list-apartment-card {
    display: flex;
    min-width: 0;
    height: 100%;
    overflow: hidden;
    flex-direction: column;
    border: 1px solid var(--ivm-apartments-border);
    border-radius: var(--ivm-apartments-radius);
    background: var(--ivm-apartments-surface);
    box-shadow: 0 2px 8px rgba(32, 37, 43, 0.045);
    transition:
        border-color var(--ivm-apartments-transition),
        box-shadow var(--ivm-apartments-transition),
        transform var(--ivm-apartments-transition);
}

.ivm-object-list-apartment-card:hover {
    border-color: #c9cfd4;
    box-shadow: 0 7px 18px rgba(32, 37, 43, 0.08);
    transform: translateY(-1px);
}

.ivm-object-list-apartment-card--unavailable {
    border-color: #d4d8dc;
    background: #f7f8f8;
    box-shadow: none;
}

.ivm-object-list-apartment-card--unavailable:hover {
    border-color: #d4d8dc;
    box-shadow: none;
    transform: none;
}

.ivm-object-list-apartment-card--unavailable .ivm-object-list-apartment-card__placeholder,
.ivm-object-list-apartment-card--unavailable .ivm-object-list-apartment-card__type,
.ivm-object-list-apartment-card--unavailable .ivm-object-list-apartment-card__title,
.ivm-object-list-apartment-card--unavailable .ivm-object-list-apartment-card__address {
    filter: grayscale(1);
    opacity: 0.58;
}

.ivm-object-list-apartment-card__unavailable-status {
    margin: auto 0 0;
    padding-top: 8px;
    color: var(--ivm-apartments-danger);
    font-size: 13px;
    font-weight: 720;
    line-height: 1.35;
}

.ivm-object-list-apartment-card__media {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 10;
    background: var(--ivm-apartments-page);
}

.ivm-object-list-apartment-card__media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ivm-object-list-apartment-card__placeholder {
    display: flex;
    width: 100%;
    height: 100%;
    min-height: 180px;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 10px;
    background: var(--ivm-apartments-page);
    color: #89929a;
    font-size: 12px;
    font-weight: 550;
}

.ivm-object-list-apartment-card__placeholder svg {
    width: 52px;
    height: 52px;
    fill: none;
    opacity: 0.62;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.5;
}

.ivm-object-list-apartment-card__body {
    display: flex;
    min-width: 0;
    height: 100%;
    flex: 1 1 auto;
    flex-direction: column;
    gap: 10px;
    padding: 18px;
}

.ivm-object-list-apartment-card__type,
.ivm-object-list-apartment-card__address {
    margin: 0;
    overflow-wrap: anywhere;
}

.ivm-object-list-apartment-card__type {
    color: var(--ivm-apartments-accent);
    font-size: 11px;
    font-weight: 750;
    letter-spacing: 0.08em;
    line-height: 1.3;
    text-transform: uppercase;
}

.ivm-object-list-apartment-card__title {
    display: -webkit-box;
    min-height: 2.7em;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    margin: 0;
    color: var(--ivm-apartments-text);
    font-size: clamp(17px, 1.25vw, 20px);
    font-weight: 680;
    letter-spacing: -0.018em;
    line-height: 1.34;
    overflow-wrap: anywhere;
}

.ivm-object-list-apartment-card__address {
    display: -webkit-box;
    min-height: 2.8em;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    color: var(--ivm-apartments-muted);
    font-size: 13px;
    line-height: 1.4;
}

.ivm-object-list-apartment-card__facts {
    display: grid;
    gap: 0;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin: 4px 0 0;
}

.ivm-object-list-apartment-card__fact {
    min-width: 0;
    padding: 10px 10px 8px 0;
}

.ivm-object-list-apartment-card__fact:not(:last-child):not(
        .ivm-object-list-apartment-card__fact--price
    ):not(.ivm-object-list-apartment-card__fact--availability) {
    border-right: 1px solid var(--ivm-apartments-border);
}

.ivm-object-list-apartment-card__fact:nth-last-child(2):not(
        .ivm-object-list-apartment-card__fact--price
    ) {
    border-right: 0;
}

.ivm-object-list-apartment-card__fact--floor {
    border-right: 0 !important;
}

.ivm-object-list-apartment-card__fact
    + .ivm-object-list-apartment-card__fact:not(
        .ivm-object-list-apartment-card__fact--availability
    ) {
    padding-left: 10px;
}

.ivm-object-list-apartment-card__facts dt,
.ivm-object-list-apartment-card__facts dd {
    margin: 0;
    overflow-wrap: anywhere;
}

.ivm-object-list-apartment-card__facts dt {
    color: var(--ivm-apartments-muted);
    font-size: 11px;
    font-weight: 550;
    line-height: 1.35;
}

.ivm-object-list-apartment-card__facts dd {
    margin-top: 3px;
    color: var(--ivm-apartments-text);
    font-size: 14px;
    font-weight: 680;
    line-height: 1.3;
}

.ivm-object-list-apartment-card__fact--price {
    grid-column: 1 / -1;
    border-bottom: 1px solid var(--ivm-apartments-border);
    padding: 4px 0 13px;
}

.ivm-object-list-apartment-card__fact--price dd {
    margin-top: 2px;
    color: var(--ivm-apartments-text);
    font-size: clamp(21px, 1.8vw, 27px);
    font-weight: 720;
    letter-spacing: -0.025em;
    line-height: 1.15;
}

.ivm-object-list-apartment-card__fact--availability {
    grid-column: 1 / -1;
    border-top: 1px solid var(--ivm-apartments-border);
    padding: 11px 0 0;
}

.ivm-object-list-apartment-card__fact--availability dd {
    color: var(--ivm-apartments-success);
    font-weight: 700;
}

.ivm-object-list-apartment-card__actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: auto;
    padding-top: 8px;
}

.ivm-object-list-apartment-card__link {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    flex: 1 1 126px;
    border: 1px solid var(--ivm-apartments-accent);
    border-radius: 8px;
    background: var(--ivm-apartments-accent);
    padding: 9px 13px;
    color: #fff;
    font-size: 13px;
    font-weight: 680;
    line-height: 1.25;
    text-align: center;
    text-decoration: none;
    transition:
        background-color var(--ivm-apartments-transition),
        border-color var(--ivm-apartments-transition),
        color var(--ivm-apartments-transition);
}

.ivm-object-list-apartment-card__link:hover {
    border-color: var(--ivm-apartments-accent-hover);
    background: var(--ivm-apartments-accent-hover);
    color: #fff;
}

.ivm-object-list-apartment-card__link:focus-visible,
.ivm-object-list-favorite-toggle:focus-visible {
    outline: 3px solid color-mix(in srgb, var(--ivm-apartments-accent) 24%, transparent);
    outline-offset: 3px;
}

.ivm-object-list-apartment-card__link--application {
    background: transparent;
    color: var(--ivm-apartments-accent);
}

.ivm-object-list-apartment-card__link--application:hover {
    background: color-mix(in srgb, var(--ivm-apartments-accent) 8%, white);
    color: var(--ivm-apartments-accent-hover);
}

.ivm-object-list-apartment-card__link--secondary {
    min-height: 40px;
    flex: 0 1 auto;
    border-color: transparent;
    background: transparent;
    padding-right: 4px;
    padding-left: 4px;
    color: var(--ivm-apartments-text);
    font-weight: 600;
    text-decoration: underline;
    text-decoration-color: #aeb5bb;
    text-underline-offset: 4px;
}

.ivm-object-list-apartment-card__link--secondary:hover {
    border-color: transparent;
    background: transparent;
    color: var(--ivm-apartments-accent);
    text-decoration-color: currentColor;
}

.ivm-object-list-favorite-toggle {
    appearance: none;
    display: inline-flex;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 1px solid var(--ivm-apartments-border);
    border-radius: 8px;
    background: var(--ivm-apartments-surface);
    padding: 0 13px;
    color: var(--ivm-apartments-text);
    cursor: pointer;
    font: inherit;
    font-size: 13px;
    font-weight: 650;
    line-height: 1;
    transition:
        border-color var(--ivm-apartments-transition),
        background-color var(--ivm-apartments-transition),
        color var(--ivm-apartments-transition),
        transform var(--ivm-apartments-transition);
}

.ivm-object-list-favorite-toggle:hover {
    border-color: var(--ivm-apartments-accent);
    color: var(--ivm-apartments-accent);
    transform: translateY(-1px);
}

.ivm-object-list-favorite-toggle.is-favorite {
    border-color: var(--ivm-apartments-accent);
    background: var(--ivm-apartments-accent);
    color: #fff;
}

.ivm-object-list-favorite-toggle.has-error {
    border-color: var(--ivm-apartments-danger);
    color: var(--ivm-apartments-danger);
}

.ivm-object-list-favorite-toggle__icon {
    width: 18px;
    height: 18px;
    flex: 0 0 auto;
    fill: transparent;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.8;
}

.ivm-object-list-favorite-toggle.is-favorite .ivm-object-list-favorite-toggle__icon {
    fill: currentColor;
}

.ivm-object-list-favorite-toggle--card {
    width: 44px;
    padding: 0;
    align-self: flex-end;
    border-radius: 50%;
}

.ivm-object-list-favorite-toggle--card [data-ivm-favorite-label] {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    white-space: nowrap;
}

.ivm-object-list-favorite-toggle--card.is-favorite::after {
    position: absolute;
    right: -2px;
    bottom: -2px;
    display: grid;
    width: 16px;
    height: 16px;
    place-items: center;
    border: 2px solid var(--ivm-apartments-surface);
    border-radius: 50%;
    background: var(--ivm-apartments-success);
    color: #fff;
    content: '\2713';
    font-size: 9px;
    font-weight: 800;
    line-height: 1;
}

.ivm-object-list-apartment-card__media .ivm-object-list-favorite-toggle--card {
    position: absolute;
    z-index: 2;
    top: 12px;
    right: 12px;
}

.ivm-object-list-favorite-toggle--detail {
    justify-self: start;
}

.ivm-object-list-apartments button.ivm-object-list-favorite-toggle,
.ivm-object-list-apartment-detail button.ivm-object-list-favorite-toggle {
    border-color: var(--ivm-apartments-border);
    background-color: var(--ivm-apartments-surface);
    color: var(--ivm-apartments-text);
}

.ivm-object-list-apartments button.ivm-object-list-favorite-toggle:hover,
.ivm-object-list-apartments button.ivm-object-list-favorite-toggle:focus-visible,
.ivm-object-list-apartment-detail button.ivm-object-list-favorite-toggle:hover,
.ivm-object-list-apartment-detail button.ivm-object-list-favorite-toggle:focus-visible {
    border-color: var(--ivm-apartments-accent);
    background-color: var(--ivm-apartments-surface);
    color: var(--ivm-apartments-accent);
}

.ivm-object-list-apartments button.ivm-object-list-favorite-toggle.is-favorite,
.ivm-object-list-apartments button.ivm-object-list-favorite-toggle.is-favorite:hover,
.ivm-object-list-apartments button.ivm-object-list-favorite-toggle.is-favorite:focus-visible,
.ivm-object-list-apartment-detail button.ivm-object-list-favorite-toggle.is-favorite,
.ivm-object-list-apartment-detail button.ivm-object-list-favorite-toggle.is-favorite:hover,
.ivm-object-list-apartment-detail button.ivm-object-list-favorite-toggle.is-favorite:focus-visible {
    border-color: var(--ivm-apartments-accent);
    background-color: var(--ivm-apartments-accent);
    color: #fff;
}

.ivm-object-list-apartments button.ivm-object-list-favorite-toggle.has-error,
.ivm-object-list-apartment-detail button.ivm-object-list-favorite-toggle.has-error {
    border-color: var(--ivm-apartments-danger);
    background-color: #fff7f7;
    color: var(--ivm-apartments-danger);
}

.ivm-object-list-apartments__empty,
.ivm-object-list-apartments--error,
.ivm-object-list-favorites__notice,
.ivm-object-list-favorites__status {
    margin: 0;
    border: 1px solid var(--ivm-apartments-border);
    border-radius: var(--ivm-apartments-radius);
    background: var(--ivm-apartments-page);
    padding: 18px 20px;
    color: var(--ivm-apartments-muted);
    font-size: 14px;
    line-height: 1.55;
}

.ivm-object-list-apartments--error {
    border-color: #e5c3c3;
    background: #fff7f7;
    color: var(--ivm-apartments-danger);
}

.ivm-object-list-favorites__status {
    display: flex;
    align-items: center;
    gap: 10px;
}

.ivm-object-list-favorites__status[hidden] {
    display: none;
}

.ivm-object-list-favorites__status::before {
    width: 16px;
    height: 16px;
    flex: 0 0 auto;
    border: 2px solid #c8ced3;
    border-top-color: var(--ivm-apartments-accent);
    border-radius: 50%;
    content: '';
    animation: ivm-apartments-spin 0.75s linear infinite;
}

.ivm-object-list-apartments__pages {
    border-top: 1px solid var(--ivm-apartments-border);
    padding-top: 16px;
    color: var(--ivm-apartments-muted);
    font-weight: 500;
}

.ivm-object-list-favorites__header {
    display: grid;
    max-width: 680px;
    gap: 6px;
    padding: 0 0 4px;
}

.ivm-object-list-favorites__header span {
    color: var(--ivm-apartments-accent);
    font-size: 11px;
    font-weight: 750;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.ivm-object-list-favorites__header h2,
.ivm-object-list-favorites__header p {
    margin: 0;
}

.ivm-object-list-favorites__header h2 {
    color: var(--ivm-apartments-text);
    font-size: clamp(25px, 3vw, 36px);
    font-weight: 680;
    letter-spacing: -0.025em;
    line-height: 1.18;
}

.ivm-object-list-favorites__header p {
    color: var(--ivm-apartments-muted);
    font-size: 14px;
    line-height: 1.55;
}

.ivm-object-list-favorites__content {
    display: grid;
    gap: calc(var(--ivm-apartments-space) * 2);
}

.ivm-object-list-apartment-detail {
    display: block;
}

.ivm-object-list-apartment-detail__shell {
    display: grid;
    gap: calc(var(--ivm-apartments-space) * 3);
}

.ivm-object-list-apartment-detail__top {
    display: grid;
    align-items: start;
    gap: calc(var(--ivm-apartments-space) * 3);
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 360px), 1fr));
}

.ivm-object-list-apartment-detail__top--single {
    grid-template-columns: minmax(0, 1fr);
}

.ivm-object-list-apartment-detail__media-card,
.ivm-object-list-apartment-detail__section {
    min-width: 0;
    overflow: hidden;
    border: 1px solid var(--ivm-apartments-border);
    border-radius: var(--ivm-apartments-radius);
    background: var(--ivm-apartments-surface);
}

.ivm-object-list-apartment-detail__media-card {
    display: grid;
    align-content: start;
    gap: 16px;
    padding: 16px;
}

.ivm-object-list-apartment-detail__gallery-slider {
    display: grid;
    min-width: 0;
    gap: 10px;
}

.ivm-object-list-apartment-detail__gallery-stage {
    position: relative;
    overflow: hidden;
    touch-action: pan-y pinch-zoom;
}

.ivm-object-list-apartment-detail__gallery-stage:focus-visible {
    outline: 3px solid color-mix(in srgb, var(--ivm-apartments-accent) 24%, transparent);
    outline-offset: 3px;
}

.ivm-object-list-apartment-detail__gallery-stage .ivm-object-list-apartment-card__placeholder {
    min-height: 0;
    aspect-ratio: 16 / 10;
}

.ivm-object-list-apartment-detail__gallery-slide {
    position: relative;
    overflow: hidden;
    flex: 0 0
        calc((72% - (var(--ivm-gallery-columns, 1) - 1) * 12px) / var(--ivm-gallery-columns, 1));
    box-sizing: border-box;
    min-width: 0;
    aspect-ratio: 16 / 10;
    border: 1px solid var(--ivm-apartments-border);
    border-radius: 16px;
    background: var(--ivm-apartments-page);
    /* Embla includes the last slide's margin when measuring the loop length. */
    margin: 0 12px 0 0;
}

.ivm-object-list-apartment-detail__gallery-slider--single
    .ivm-object-list-apartment-detail__gallery-slide {
    flex-basis: 100%;
}

.ivm-object-list-apartment-detail__gallery-viewport {
    overflow: hidden;
}

.ivm-object-list-apartment-detail__gallery-track {
    display: flex;
    touch-action: pan-y pinch-zoom;
}

.ivm-object-list-apartment-detail__gallery-slide[hidden] {
    display: none;
}

.ivm-object-list-apartment-detail__gallery-slide img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ivm-object-list-apartment-detail__gallery-open {
    display: block;
    width: 100%;
    height: 100%;
    cursor: zoom-in;
}

.ivm-object-list-apartment-detail__gallery-open:focus-visible {
    outline: 3px solid var(--ivm-apartments-accent);
    outline-offset: -3px;
}

.ivm-object-list-apartment-detail__gallery-expand {
    position: absolute;
    top: 12px;
    right: 12px;
    display: flex;
    align-items: center;
    gap: 6px;
    border: 1px solid var(--ivm-apartments-border);
    border-radius: 8px;
    background: var(--ivm-apartments-surface);
    padding: 6px;
    color: var(--ivm-apartments-text);
    font-size: 13px;
    font-weight: 600;
    line-height: 1.4;
}

.ivm-object-list-apartment-detail__gallery-expand svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
}

.ivm-object-list-lightbox.pswp {
    z-index: 100000;
    color-scheme: dark;
}

.ivm-object-list-lightbox .pswp__top-bar {
    background: rgba(0, 0, 0, 0.7);
}

.ivm-object-list-lightbox .pswp__caption {
    position: absolute;
    bottom: max(16px, env(safe-area-inset-bottom));
    left: 16px;
    right: 16px;
    color: #fff;
    border-radius: 6px;
    background: rgba(0, 0, 0, 0.7);
    padding: 6px 10px;
    font:
        14px / 1.5 system-ui,
        sans-serif;
    text-align: center;
    pointer-events: none;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ivm-object-list-lightbox .pswp__button:focus-visible {
    outline: 2px solid #fff;
    outline-offset: -4px;
}

.ivm-object-list-lightbox .pswp__button--fullscreen .pswp__icn {
    color: var(--pswp-icon-color, #fff);
}

.ivm-object-list-apartment-detail__gallery-navigation {
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.ivm-object-list-apartment-detail__gallery-arrows {
    position: absolute;
    z-index: 1;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 10px;
    pointer-events: none;
}

.ivm-object-list-apartment-detail__gallery-control {
    appearance: none;
    display: grid;
    width: 36px;
    height: 36px;
    place-items: center;
    border: 1px solid var(--ivm-apartments-border);
    border-radius: 50%;
    background: var(--ivm-apartments-surface);
    padding: 0;
    color: var(--ivm-apartments-text);
    cursor: pointer;
    pointer-events: auto;
    transition:
        border-color var(--ivm-apartments-transition),
        background-color var(--ivm-apartments-transition),
        color var(--ivm-apartments-transition),
        opacity var(--ivm-apartments-transition);
}

.ivm-object-list-apartment-detail__gallery-control[aria-disabled='true'] {
    opacity: 0.4;
    cursor: default;
}

.ivm-object-list-apartment-detail__gallery-autoscroll {
    position: absolute;
    z-index: 1;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.ivm-object-list-apartment-detail__gallery-autoscroll[hidden],
.ivm-object-list-apartment-detail__gallery-autoscroll[data-playing='true']
    .ivm-object-list-apartment-detail__gallery-play-icon,
.ivm-object-list-apartment-detail__gallery-autoscroll[data-playing='false']
    .ivm-object-list-apartment-detail__gallery-stop-icon {
    display: none;
}

.ivm-object-list-apartment-detail__gallery-status,
.ivm-object-list-apartment-detail__gallery-counter {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
}

.ivm-object-list-apartment-detail__gallery-control svg {
    width: 22px;
    height: 22px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.8;
}

.ivm-object-list-apartment-detail__gallery-autoscroll svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
    stroke: none;
}

.ivm-object-list-apartment-detail__gallery-control:hover {
    border-color: var(--ivm-apartments-accent);
    background: var(--ivm-apartments-accent);
    color: #fff;
}

.ivm-object-list-apartment-detail__gallery-control:focus-visible,
.ivm-object-list-apartment-detail__gallery-dot:focus-visible {
    outline: 3px solid color-mix(in srgb, var(--ivm-apartments-accent) 24%, transparent);
    outline-offset: 3px;
}

.ivm-object-list-apartment-detail__gallery-dots {
    display: flex;
    min-width: 0;
    max-width: 100%;
    overflow-x: auto;
    padding: 3px 0;
    overscroll-behavior-inline: contain;
    scrollbar-width: thin;
}

.ivm-object-list-apartment-detail__gallery-dot {
    appearance: none;
    display: grid;
    place-items: center;
    flex: 0 0 26px;
    height: 32px;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: var(--ivm-apartments-muted);
    padding: 0;
    cursor: pointer;
}

.ivm-object-list-apartment-detail__gallery-dot::before {
    content: '';
    width: 10px;
    height: 10px;
    box-sizing: border-box;
    border: 2px solid currentColor;
    border-radius: 50%;
    opacity: 0.35;
}

.ivm-object-list-apartment-detail__gallery-dot:hover::before,
.ivm-object-list-apartment-detail__gallery-dot[aria-current='true']::before {
    opacity: 1;
}

.ivm-object-list-apartment-detail__gallery-dot[aria-current='true'] {
    color: var(--ivm-apartments-text);
}

@media (hover: hover) and (pointer: fine) {
    .ivm-object-list-apartment-detail__gallery-stage:not(:hover):not(:focus-within)
        .ivm-object-list-apartment-detail__gallery-control,
    .ivm-object-list-apartment-detail__gallery-stage:not(:hover):not(:focus-within)
        .ivm-object-list-apartment-detail__gallery-expand {
        opacity: 0;
        pointer-events: none;
    }
}

.ivm-object-list-apartment-detail__side {
    display: grid;
    align-content: start;
    gap: calc(var(--ivm-apartments-space) * 2);
}

.ivm-object-list-apartment-detail__section {
    padding: 22px;
}

.ivm-object-list-apartment-detail__summary-card {
    display: grid;
    gap: 16px;
}

.ivm-object-list-apartment-detail__title {
    margin: 0;
    color: var(--ivm-apartments-text);
    font-size: clamp(24px, 3vw, 38px);
    font-weight: 680;
    letter-spacing: -0.03em;
    line-height: 1.16;
    overflow-wrap: anywhere;
}

.ivm-object-list-apartment-detail__meta {
    display: grid;
    gap: 5px;
    color: var(--ivm-apartments-muted);
    font-size: 14px;
    line-height: 1.45;
}

.ivm-object-list-apartment-detail__meta p,
.ivm-object-list-apartment-detail__section p {
    margin: 0;
}

.ivm-object-list-apartment-detail__actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.ivm-object-list-apartment-detail__actions .ivm-object-list-apartment-card__link {
    flex: 0 1 auto;
}

.ivm-object-list-apartment-detail__summary-header {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 20px;
}

.ivm-object-list-apartment-detail__summary-heading {
    flex: 1 1 220px;
    min-width: 0;
}

.ivm-object-list-apartment-detail__floorplan {
    flex: 0 0 150px;
    max-width: 100%;
    margin-left: auto;
    display: grid;
    gap: 6px;
    padding: 8px;
    border: 1px solid var(--ivm-field-border, #d8e1e8);
    border-radius: 8px;
    color: inherit;
    text-align: center;
    font-size: 12px;
    text-decoration: none;
}

.ivm-object-list-apartment-detail__floorplan img {
    display: block;
    width: 100%;
    height: 110px;
    object-fit: contain;
}

.ivm-object-list-apartment-detail__floorplan:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 3px;
}

.ivm-object-list-apartment-detail__facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    border-top: 1px solid var(--ivm-apartments-border);
}

.ivm-object-list-apartment-detail__facts div {
    display: grid;
    align-items: baseline;
    gap: 12px;
    grid-template-columns: minmax(0, 1fr) auto;
    border-bottom: 1px solid var(--ivm-apartments-border);
    padding: 11px 0;
}

.ivm-object-list-apartment-detail__facts div:nth-child(odd) {
    padding-right: 14px;
}

.ivm-object-list-apartment-detail__facts div:nth-child(even) {
    padding-left: 14px;
}

.ivm-object-list-apartment-detail__facts dt {
    font-size: 12px;
}

.ivm-object-list-apartment-detail__facts dd {
    margin-top: 0;
    text-align: right;
}

.ivm-object-list-apartment-detail__application {
    margin-top: 2px;
}

.ivm-object-list-apartment-detail__application .ivm-object-list-apartment-card__link {
    width: 100%;
}

.ivm-object-list-apartment-detail__availability {
    border-left: 3px solid var(--ivm-apartments-danger);
    padding: 10px 12px;
    background: #fff7f7;
    color: var(--ivm-apartments-danger);
    font-size: 13px;
    font-weight: 650;
    line-height: 1.45;
}

.ivm-object-list-apartment-detail__section h3,
.ivm-object-list-apartment-detail__section h4 {
    margin: 0 0 14px;
    color: var(--ivm-apartments-text);
    line-height: 1.3;
}

.ivm-object-list-apartment-detail__section h3 {
    font-size: 18px;
    font-weight: 680;
}

.ivm-object-list-apartment-detail__section h4 {
    font-size: 14px;
    font-weight: 680;
}

.ivm-object-list-apartment-detail__section p {
    color: #3f474f;
    line-height: 1.7;
}

.ivm-object-list-apartment-detail__section p + p {
    margin-top: 12px;
}

.ivm-object-list-apartment-detail__equipment {
    display: grid;
    gap: 20px 32px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.ivm-object-list-apartment-detail__equipment ul {
    display: grid;
    gap: 8px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.ivm-object-list-apartment-detail__equipment li {
    position: relative;
    padding-left: 17px;
    color: #3f474f;
    font-size: 14px;
    line-height: 1.45;
}

.ivm-object-list-apartment-detail__equipment li::before {
    position: absolute;
    top: 0.58em;
    left: 1px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--ivm-apartments-accent);
    content: '';
}

.ivm-object-list-apartment-detail__data-list {
    display: grid;
    margin: 0;
}

.ivm-object-list-apartment-detail__data-list div {
    display: grid;
    gap: 18px;
    grid-template-columns: minmax(180px, 0.4fr) minmax(0, 1fr);
    border-bottom: 1px solid var(--ivm-apartments-border);
    padding: 11px 0;
}

.ivm-object-list-apartment-detail__data-list div:first-child {
    padding-top: 0;
}

.ivm-object-list-apartment-detail__data-list div:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.ivm-object-list-apartment-detail__data-list dt,
.ivm-object-list-apartment-detail__data-list dd,
.ivm-object-list-apartment-detail__contact dt,
.ivm-object-list-apartment-detail__contact dd {
    margin: 0;
}

.ivm-object-list-apartment-detail__data-list dt,
.ivm-object-list-apartment-detail__contact dt {
    color: var(--ivm-apartments-muted);
    font-size: 13px;
}

.ivm-object-list-apartment-detail__data-list dd,
.ivm-object-list-apartment-detail__contact dd {
    color: var(--ivm-apartments-text);
    font-size: 14px;
    font-weight: 650;
    overflow-wrap: anywhere;
}

.ivm-object-list-apartment-detail__contact {
    display: grid;
    gap: 11px;
    margin: 0;
}

.ivm-object-list-apartment-detail__contact div {
    display: grid;
    gap: 3px;
}

@keyframes ivm-apartments-spin {
    to {
        transform: rotate(360deg);
    }
}

@media (max-width: 980px) {
    .ivm-object-list-apartment-detail__top,
    .ivm-object-list-apartment-detail__equipment {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (max-width: 640px) {
    .ivm-object-list-search__columns--simple > .ivm-object-list-search__column {
        grid-template-columns: minmax(0, 1fr);
    }

    .ivm-object-list-search__columns {
        grid-template-columns: minmax(0, 1fr);
    }

    .ivm-object-list-apartment-detail__gallery-slide {
        flex-basis: 72%;
    }

    :where(
        .ivm-object-list-apartments,
        .ivm-object-list-apartment-detail,
        .ivm-object-list-search
    ) {
        --ivm-apartments-gutter: 14px;
    }

    .ivm-object-list-search {
        padding: var(--ivm-container-padding, 18px);
    }

    .ivm-object-list-search__header {
        align-items: flex-start;
        flex-direction: column;
        margin-bottom: 22px;
    }

    .ivm-object-list-search__advanced-hint {
        display: none;
    }

    .ivm-object-list-search__equipment-heading {
        align-items: stretch;
        flex-direction: column;
    }

    .ivm-object-list-apartments {
        gap: 18px;
    }

    .ivm-object-list-apartments__toolbar {
        align-items: stretch;
        flex-direction: column;
        padding: 12px 0;
    }

    .ivm-object-list-apartments__sort {
        align-items: stretch;
        flex-direction: column;
        gap: 5px;
    }

    .ivm-object-list-apartments__sort select {
        width: 100%;
        min-height: 44px;
    }

    .ivm-object-list-apartment-detail__side,
    .ivm-object-list-apartment-detail__facts,
    .ivm-object-list-apartment-detail__data-list div {
        grid-template-columns: minmax(0, 1fr);
    }

    .ivm-object-list-apartment-card__body,
    .ivm-object-list-apartment-detail__section {
        padding: 16px;
    }

    .ivm-object-list-apartment-card__actions {
        align-items: stretch;
        flex-direction: column;
    }

    .ivm-object-list-apartment-card__link,
    .ivm-object-list-apartment-card__link--secondary {
        width: 100%;
        min-height: 44px;
        flex-basis: auto;
        padding-right: 12px;
        padding-left: 12px;
    }

    .ivm-object-list-apartment-detail__facts div:nth-child(odd),
    .ivm-object-list-apartment-detail__facts div:nth-child(even) {
        padding-right: 0;
        padding-left: 0;
    }

    .ivm-object-list-apartment-detail__data-list div {
        gap: 4px;
    }
}

@media (max-width: 359px) {
    .ivm-object-list-apartment-card__facts {
        grid-template-columns: minmax(0, 1fr);
    }

    .ivm-object-list-apartment-card__fact,
    .ivm-object-list-apartment-card__fact
        + .ivm-object-list-apartment-card__fact:not(
            .ivm-object-list-apartment-card__fact--availability
        ) {
        border-right: 0;
        border-bottom: 1px solid var(--ivm-apartments-border);
        padding-right: 0;
        padding-left: 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    .ivm-object-list-apartment-card,
    .ivm-object-list-apartment-card__link,
    .ivm-object-list-favorite-toggle,
    .ivm-object-list-apartment-detail__gallery-control,
    .ivm-object-list-apartment-detail__gallery-dot {
        transition: none;
    }

    .ivm-object-list-apartment-card:hover,
    .ivm-object-list-favorite-toggle:hover {
        transform: none;
    }

    .ivm-object-list-favorites__status::before {
        animation: none;
    }
}

/* Global page width takes precedence over per-search width and alignment. */
.ivm-object-list-search[data-layout-width='full'] {
    width: calc(100vw - (var(--ivm-apartments-gutter) * 2));
    max-width: none;
    margin-right: 0 !important;
    margin-left: calc(50% - 50vw + var(--ivm-apartments-gutter)) !important;
}

:is(.ivm-object-list-apartments, .ivm-object-list-apartment-detail, .ivm-object-list-tabs__list).ivm-object-list-layout--custom,
.ivm-object-list-search[data-layout-width='custom'] {
    --ivm-container-size: min(
        var(--ivm-container-width, 1200px),
        calc(100vw - (var(--ivm-apartments-gutter) * 2))
    );
    width: var(--ivm-container-size);
    max-width: none;
    margin-right: 0 !important;
    margin-left: calc(50% - (var(--ivm-container-size) / 2)) !important;
}

/* Optional tab view by usage type; without JavaScript the panels stay stacked with headings. */
.ivm-object-list-tabs {
    display: grid;
    gap: calc(var(--ivm-apartments-space) * 3);
}

.ivm-object-list-tabs__list {
    display: flex;
    flex-wrap: wrap;
    gap: var(--ivm-apartments-space);
    border-bottom: 1px solid var(--ivm-apartments-border);
}

.ivm-object-list-tabs__list[hidden],
.ivm-object-list-tabs__panel[hidden],
.ivm-object-list-tabs.is-tabbed .ivm-object-list-tabs__heading {
    display: none;
}

.ivm-object-list-tabs__tab {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin: 0 0 -1px;
    border: 0;
    border-bottom: 2px solid transparent;
    background: none;
    padding: 10px 14px;
    color: var(--ivm-apartments-muted);
    font: inherit;
    font-size: 14px;
    font-weight: 650;
    cursor: pointer;
    transition: color var(--ivm-apartments-transition);
}

.ivm-object-list-tabs__tab:hover,
.ivm-object-list-tabs__tab[aria-selected='true'] {
    color: var(--ivm-apartments-text);
}

.ivm-object-list-tabs__tab[aria-selected='true'] {
    border-bottom-color: var(--ivm-apartments-accent);
}

.ivm-object-list-tabs__tab:focus-visible {
    outline: 2px solid var(--ivm-apartments-accent);
    outline-offset: 2px;
}

.ivm-object-list-tabs__count {
    border-radius: 999px;
    background: var(--ivm-apartments-page);
    padding: 1px 8px;
    font-size: 12px;
}

.ivm-object-list-tabs__heading {
    margin: 0;
    font-size: 20px;
}
