/* Operational property list: compact query controls and a row-first catalogue. */
.v4-properties-page {
    min-width: 0;
}

.v4-properties-page .v4-properties-header {
    gap: 12px;
    margin-bottom: 8px;
}

.v4-properties-page .v4-properties-header-actions {
    display: flex;
    min-width: 0;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: flex-end;
    gap: 6px;
}

.v4-properties-page .v4-properties-header-actions .btn,
.v4-properties-page .v4-property-query-submit {
    min-height: 40px;
}

.v4-property-query-card {
    margin-bottom: 8px;
    padding: 10px 12px 7px;
    border: 1px solid var(--v4-line);
    border-radius: 15px;
    background: var(--v4-surface);
    box-shadow: var(--v4-shadow-sm);
}

.v4-property-query-grid {
    display: grid;
    grid-template-columns: minmax(280px, 2fr) repeat(3, minmax(132px, .8fr)) auto;
    align-items: end;
    gap: 8px;
}

.v4-property-query-grid .v4-property-field,
.v4-property-results-controls .v4-property-compact-field {
    min-width: 0;
    margin: 0;
}

.v4-property-query-grid .v4-property-field {
    gap: 3px;
}

.v4-property-query-grid .form-control,
.v4-property-query-grid .form-select,
.v4-property-query-submit {
    min-height: 36px;
    height: 36px;
}

.v4-property-query-submit {
    display: inline-flex;
    min-width: 94px;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.v4-property-query-submit svg {
    width: 16px;
    height: 16px;
}

.v4-property-query-secondary {
    display: grid;
    min-width: 0;
    grid-template-columns: auto minmax(0, 1fr) auto auto;
    align-items: center;
    gap: 8px;
    margin-top: 5px;
    border-top: 1px solid var(--v4-line);
}

.v4-property-query-secondary > .v4-properties-header-actions {
    grid-column: 4;
    margin-left: 2px;
}

.v4-property-query-secondary > .v4-properties-header-actions .btn,
.v4-property-query-secondary > .v4-properties-header-actions #v4-refresh-properties {
    min-height: 34px;
    padding: 5px 9px;
    white-space: nowrap;
}

.v4-property-query-secondary > .v4-properties-header-actions .v4-property-sync {
    gap: 6px;
    white-space: nowrap;
}

.v4-property-query-secondary > .v4-properties-header-actions .v4-live-dot {
    flex: 0 0 auto;
}

.v4-property-query-secondary > .v4-property-extra-filters {
    min-width: 0;
    grid-column: auto;
    margin: 0;
}

.v4-property-query-secondary > #v4-clear-property-filters {
    min-height: 34px;
    margin: 0;
    padding: 5px 8px;
}

.v4-property-extra-filters > summary {
    display: flex;
    min-height: 34px;
    align-items: center;
    gap: 10px;
    padding: 4px 2px;
    cursor: pointer;
    list-style: none;
    color: var(--v4-brand);
    font-weight: 700;
}

.v4-property-extra-filters > summary::-webkit-details-marker {
    display: none;
}

.v4-property-extra-filters > summary > span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.v4-property-extra-filters > summary svg {
    width: 15px;
    height: 15px;
}

.v4-property-extra-filters > summary small {
    overflow: hidden;
    color: var(--v4-muted);
    font-size: 11px;
    font-weight: 500;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.v4-property-advanced-content {
    display: grid;
    grid-template-columns: minmax(260px, .65fr) minmax(0, 2.35fr);
    gap: 14px;
    padding: 12px 0 4px;
    border-top: 1px solid var(--v4-line);
}

.v4-property-advanced-content > .v4-property-price-fields {
    align-content: start;
    margin: 0;
}

.v4-property-advanced-content > .v4-property-extra-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 10px;
    margin: 0;
}

.v4-property-advanced-content .v4-property-extra-types,
.v4-property-advanced-content .v4-property-extra-neighborhoods,
.v4-property-advanced-content .v4-property-extra-owner,
.v4-property-advanced-content .v4-property-area-fields {
    grid-column: span 2;
}

.v4-property-owner-search {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 6px;
}

.v4-property-filter-status {
    grid-column: 1 / -1;
    margin: 0;
}

.v4-property-filter-error {
    margin: 8px 0 0;
}

.v4-active-property-filters {
    min-width: 0;
    margin: 0;
    overflow-x: auto;
    flex-wrap: nowrap;
    scrollbar-width: none;
}

.v4-active-property-filters::-webkit-scrollbar {
    display: none;
}

.v4-active-property-filters:empty {
    display: none;
}

button.v4-property-filter-chip.is-removable {
    display: inline-flex;
    min-height: 28px;
    flex: 0 0 auto;
    align-items: center;
    gap: 5px;
    border: 1px solid transparent;
    cursor: pointer;
}

button.v4-property-filter-chip.is-removable:hover,
button.v4-property-filter-chip.is-removable:focus-visible {
    border-color: var(--v4-brand);
    background: var(--v4-brand-soft);
    color: var(--v4-brand);
}

button.v4-property-filter-chip.is-removable svg {
    width: 12px;
    height: 12px;
}

.v4-property-status-totals {
    display: grid;
    min-width: 0;
    flex: 1 1 560px;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    margin: 0;
    overflow: hidden;
    border: 1px solid var(--v4-line);
    border-radius: 9px;
    background: var(--v4-paper);
}

.v4-property-status-total {
    display: flex;
    min-width: 0;
    min-height: 40px;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 5px 7px;
    border: 0;
    border-right: 1px solid var(--v4-line);
    background: transparent;
    color: var(--v4-muted);
    text-align: left;
}

.v4-property-status-total:last-child {
    border-right: 0;
}

.v4-property-status-total:hover,
.v4-property-status-total:focus-visible {
    background: var(--v4-brand-soft);
    color: var(--v4-brand);
}

.v4-property-status-total[aria-pressed="true"],
.v4-property-status-total.is-active {
    background: var(--v4-brand-strong);
    color: #fff;
}

.v4-property-status-total span {
    overflow: hidden;
    font-size: 10px;
    font-weight: 650;
    line-height: 1.2;
    text-overflow: ellipsis;
}

.v4-property-status-total strong {
    flex: 0 0 auto;
    font-size: 14px;
    line-height: 1;
}

.v4-properties-page .v4-property-workspace,
.bymob-properties-workspace.v4-property-workspace {
    display: block;
}

.v4-property-results-toolbar {
    display: flex;
    min-width: 0;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 6px;
    padding: 3px 6px;
    border: 1px solid var(--v4-line);
    border-radius: 12px;
    background: var(--v4-surface);
}

.v4-properties-page .v4-property-results-head {
    min-width: 150px;
    min-height: 0;
    flex: 1 1 auto;
    margin: 0;
    padding: 0;
}

.v4-properties-page .v4-property-results-head h2 {
    font-size: 15px;
}

.v4-property-results-controls {
    display: flex;
    min-width: 0;
    flex: 0 1 auto;
    align-items: center;
    justify-content: flex-end;
    gap: 5px;
}

.v4-property-compact-field {
    display: grid;
    min-width: 142px;
    gap: 0;
}

.v4-property-compact-field > span {
    color: var(--v4-muted);
    font-size: 10px;
    font-weight: 700;
}

.v4-property-compact-field .form-select {
    min-height: 36px;
    padding-top: 6px;
    padding-bottom: 6px;
}

.v4-property-page-size-field {
    min-width: 64px;
}

.v4-property-view-toggle {
    display: inline-flex;
    overflow: hidden;
    border: 1px solid var(--v4-line);
    border-radius: 9px;
    background: var(--v4-paper);
}

.v4-property-view-toggle button {
    display: inline-flex;
    min-height: 36px;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 6px 9px;
    border: 0;
    border-right: 1px solid var(--v4-line);
    background: transparent;
    color: var(--v4-muted);
    font-size: 11px;
    font-weight: 700;
}

.v4-property-view-toggle button:last-child {
    border-right: 0;
}

.v4-property-view-toggle button[aria-pressed="true"] {
    background: var(--v4-brand-strong);
    color: #fff;
}

.v4-property-view-toggle svg {
    width: 15px;
    height: 15px;
}

.v4-property-export-menu {
    position: relative;
    z-index: 5;
    flex: 0 0 auto;
    align-self: center;
}

@media (min-width: 768px) {
    .v4-properties-page .v4-property-results-head,
    .v4-property-results-controls .v4-property-compact-field > span {
        position: absolute !important;
        width: 1px;
        height: 1px;
        padding: 0;
        margin: -1px;
        overflow: hidden;
        clip: rect(0, 0, 0, 0);
        white-space: nowrap;
        border: 0;
    }
}

.v4-property-export-menu > summary {
    display: inline-flex;
    min-height: 36px;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 6px 10px;
    border: 1px solid var(--v4-line);
    border-radius: 9px;
    background: var(--v4-paper);
    color: var(--v4-muted);
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
    list-style: none;
}

.v4-property-export-menu > summary::-webkit-details-marker {
    display: none;
}

.v4-property-export-menu > summary svg {
    width: 15px;
    height: 15px;
}

.v4-property-export-menu > summary[aria-disabled="true"] {
    opacity: .52;
    cursor: not-allowed;
    pointer-events: none;
}

.v4-property-export-menu[open] > summary,
.v4-property-export-menu > summary:hover,
.v4-property-export-menu > summary:focus-visible {
    border-color: var(--v4-brand);
    color: var(--v4-brand);
}

.v4-property-export-menu > summary:focus-visible {
    outline: 3px solid var(--v4-brand);
    outline-offset: 2px;
}

.v4-property-export-menu > div {
    position: absolute;
    z-index: 20;
    top: calc(100% + 6px);
    right: 0;
    display: grid;
    min-width: 156px;
    gap: 3px;
    padding: 6px;
    border: 1px solid var(--v4-line);
    border-radius: 10px;
    background: var(--v4-paper);
    box-shadow: 0 14px 34px rgba(15, 33, 26, .16);
}

.v4-property-export-menu > div > button {
    min-height: 36px;
    padding: 7px 9px;
    border: 0;
    border-radius: 7px;
    background: transparent;
    color: var(--v4-ink);
    font-size: 12px;
    font-weight: 650;
    text-align: left;
}

.v4-property-export-menu > div > button:hover,
.v4-property-export-menu > div > button:focus-visible {
    background: var(--v4-surface-soft);
    color: var(--v4-brand);
}

.v4-property-export-menu > div > button:focus-visible {
    outline: 2px solid var(--v4-brand);
    outline-offset: -2px;
}

.v4-property-export-menu > div > button:disabled {
    opacity: .5;
    cursor: not-allowed;
}

.v4-properties-page .v4-property-grid,
.v4-properties-page .v4-property-grid.is-list-view,
.v4-properties-page .v4-property-grid[data-property-view="list"],
.v4-properties-page .v4-property-grid[data-view="list"] {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 7px;
}

.v4-property-grid.is-list-view .v4-property-skeleton,
.v4-property-grid[data-property-view="list"] .v4-property-skeleton,
.v4-property-grid[data-view="list"] .v4-property-skeleton {
    min-height: 88px;
}

.v4-property-grid.is-list-view .v4-property-card,
.v4-property-grid[data-property-view="list"] .v4-property-card,
.v4-property-grid[data-view="list"] .v4-property-card {
    display: grid;
    min-height: 88px;
    grid-template-columns: 116px minmax(0, 1fr);
    overflow: hidden;
    border-radius: 12px;
    box-shadow: none;
}

.v4-property-grid.is-list-view .v4-property-card:hover,
.v4-property-grid[data-property-view="list"] .v4-property-card:hover,
.v4-property-grid[data-view="list"] .v4-property-card:hover {
    transform: none;
    box-shadow: 0 5px 18px rgba(15, 33, 26, .08);
}

.v4-property-grid.is-list-view .v4-property-card-media,
.v4-property-grid[data-property-view="list"] .v4-property-card-media,
.v4-property-grid[data-view="list"] .v4-property-card-media {
    height: 100%;
    min-height: 88px;
}

.v4-property-grid.is-list-view .v4-property-code,
.v4-property-grid[data-property-view="list"] .v4-property-code,
.v4-property-grid[data-view="list"] .v4-property-code {
    top: auto;
    right: 7px;
    bottom: 7px;
}

.v4-property-grid.is-list-view .v4-property-card-body,
.v4-property-grid[data-property-view="list"] .v4-property-card-body,
.v4-property-grid[data-view="list"] .v4-property-card-body {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(210px, .7fr);
    grid-template-rows: auto auto;
    align-content: center;
    align-items: center;
    gap: 5px 18px;
    padding: 11px 13px;
}

.v4-property-grid.is-list-view .v4-property-card-heading,
.v4-property-grid[data-property-view="list"] .v4-property-card-heading,
.v4-property-grid[data-view="list"] .v4-property-card-heading {
    grid-column: 1;
    grid-row: 1;
}

.v4-property-grid.is-list-view .v4-property-card-heading h3,
.v4-property-grid[data-property-view="list"] .v4-property-card-heading h3,
.v4-property-grid[data-view="list"] .v4-property-card-heading h3 {
    font-size: 14px;
    -webkit-line-clamp: 1;
}

.v4-property-grid.is-list-view .v4-property-card-location,
.v4-property-grid[data-property-view="list"] .v4-property-card-location,
.v4-property-grid[data-view="list"] .v4-property-card-location {
    grid-column: 1;
    grid-row: 2;
    font-size: 11px;
}

.v4-property-grid.is-list-view .v4-property-card-footer,
.v4-property-grid[data-property-view="list"] .v4-property-card-footer,
.v4-property-grid[data-view="list"] .v4-property-card-footer {
    grid-column: 2;
    grid-row: 1 / span 2;
    min-width: 0;
    align-items: center;
    padding: 0;
    border: 0;
}

.v4-property-grid.is-list-view .v4-property-card-price strong,
.v4-property-grid[data-property-view="list"] .v4-property-card-price strong,
.v4-property-grid[data-view="list"] .v4-property-card-price strong {
    font-size: 15px;
}

.v4-property-grid.is-gallery-view,
.v4-property-grid[data-property-view="gallery"],
.v4-property-grid[data-view="gallery"] {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 10px;
}

.v4-property-grid.is-gallery-view .v4-property-card,
.v4-property-grid[data-property-view="gallery"] .v4-property-card,
.v4-property-grid[data-view="gallery"] .v4-property-card {
    display: block;
}

.v4-property-grid.is-gallery-view .v4-property-card-media,
.v4-property-grid[data-property-view="gallery"] .v4-property-card-media,
.v4-property-grid[data-view="gallery"] .v4-property-card-media {
    height: 170px;
}

.v4-property-row {
    position: relative;
    display: grid;
    min-width: 0;
    min-height: 86px;
    grid-template-columns: 34px minmax(0, 1fr) auto;
    align-items: center;
    gap: 9px;
    padding: 8px 9px;
    border: 1px solid rgba(15, 33, 26, .1);
    border-radius: 12px;
    background: var(--v4-surface);
    box-shadow: 0 2px 8px rgba(15, 33, 26, .035);
}

.v4-property-row:hover,
.v4-property-row:focus-within,
.v4-property-row.is-active {
    border-color: var(--v4-control);
    box-shadow: 0 6px 20px rgba(15, 33, 26, .08);
}

.v4-property-row.is-selected {
    border-color: var(--v4-brand);
    box-shadow: inset 3px 0 0 var(--v4-brand);
}

.v4-property-row-select {
    display: inline-grid;
    width: 34px;
    min-width: 34px;
    height: 34px;
    padding: 0;
    place-items: center;
    border: 1px solid var(--v4-line);
    border-radius: 9px;
    background: var(--v4-paper);
    color: var(--v4-muted);
}

.v4-property-row-select:hover,
.v4-property-row-select:focus-visible,
.v4-property-row-select.is-selected {
    border-color: var(--v4-brand);
    background: var(--v4-brand-soft);
    color: var(--v4-brand);
}

.v4-property-row-select svg {
    width: 16px;
    height: 16px;
}

.v4-property-row-main {
    display: grid;
    min-width: 0;
    grid-template-columns: 68px minmax(180px, 1.25fr) minmax(130px, .72fr) minmax(125px, .62fr) minmax(180px, .9fr) minmax(82px, .48fr);
    align-items: center;
    gap: 12px;
    color: var(--v4-ink);
    text-decoration: none;
}

.v4-property-row-main:hover,
.v4-property-row-main:focus-visible {
    color: var(--v4-ink);
    text-decoration: none;
}

.v4-property-row-main:focus-visible {
    border-radius: 8px;
    outline: 3px solid var(--v4-brand);
    outline-offset: 3px;
}

.v4-property-row-thumbnail {
    position: relative;
    display: block;
    width: 68px;
    height: 66px;
    overflow: hidden;
    border-radius: 9px;
    background: var(--v4-surface-soft);
}

.v4-property-row-thumbnail img {
    position: absolute;
    z-index: 1;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.v4-property-row-thumbnail .v4-property-image-fallback {
    font-size: 9px;
}

.v4-property-row-thumbnail .v4-property-image-fallback svg {
    width: 19px;
    height: 19px;
}

.v4-property-row-identity,
.v4-property-row-owner,
.v4-property-row-commercial,
.v4-property-row-media {
    display: grid;
    min-width: 0;
    gap: 3px;
}

.v4-property-row-meta {
    display: flex;
    min-width: 0;
    flex-wrap: wrap;
    align-items: center;
    gap: 5px;
}

.v4-property-row-status,
.v4-property-row-code,
.v4-property-row-linked {
    display: inline-flex;
    min-height: 19px;
    align-items: center;
    padding: 2px 6px;
    border-radius: 999px;
    background: var(--v4-paper);
    color: var(--v4-muted);
    font-size: 9px;
    font-weight: 750;
    line-height: 1;
}

.v4-property-row-status.is-available,
.v4-property-row-linked {
    background: var(--v4-green-100);
    color: var(--v4-green-700);
}

.v4-property-row-title,
.v4-property-row-owner strong,
.v4-property-row-commercial strong {
    overflow: hidden;
    font-size: 13px;
    line-height: 1.25;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.v4-property-row-address,
.v4-property-row-owner > span,
.v4-property-row-commercial > span,
.v4-property-row-media > span {
    overflow: hidden;
    color: var(--v4-muted);
    font-size: 10px;
    line-height: 1.3;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.v4-property-row-owner small,
.v4-property-row-commercial small {
    color: var(--v4-muted);
    font-size: 9px;
    font-weight: 700;
    letter-spacing: .02em;
    text-transform: uppercase;
}

.v4-property-row-commercial strong {
    font-size: 14px;
}

.v4-property-row-facts {
    display: grid;
    min-width: 0;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 5px 8px;
}

.v4-property-row-fact {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 5px;
}

.v4-property-row-fact > svg {
    width: 14px;
    height: 14px;
    flex: 0 0 auto;
    color: var(--v4-brand);
}

.v4-property-row-fact > span {
    display: grid;
    min-width: 0;
}

.v4-property-row-fact strong,
.v4-property-row-fact small {
    overflow: hidden;
    line-height: 1.1;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.v4-property-row-fact strong {
    font-size: 11px;
}

.v4-property-row-fact small {
    color: var(--v4-muted);
    font-size: 9px;
}

.v4-property-row-photo-count {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.v4-property-row-photo-count svg {
    width: 13px;
    height: 13px;
}

.v4-property-row-actions {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 5px;
}

.v4-property-row-actions .btn {
    min-height: 36px;
    white-space: nowrap;
}

.v4-property-attendance-add {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    white-space: nowrap;
}

.v4-property-attendance-add svg {
    width: 14px;
    height: 14px;
}

.v4-property-attendance-add:disabled {
    opacity: .72;
}

.v4-property-card-footer {
    flex-wrap: wrap;
}

.v4-property-attendance-add.is-card {
    margin-left: auto;
}

.v4-property-row-more {
    position: relative;
}

.v4-property-row-more > summary {
    display: inline-grid;
    width: 36px;
    min-width: 36px;
    min-height: 36px;
    place-items: center;
    list-style: none;
    cursor: pointer;
}

.v4-property-row-more > summary::-webkit-details-marker {
    display: none;
}

.v4-property-row-more-menu {
    position: absolute;
    z-index: 20;
    top: calc(100% + 6px);
    right: 0;
    display: grid;
    width: 180px;
    overflow: hidden;
    border: 1px solid var(--v4-line);
    border-radius: 10px;
    background: var(--v4-surface);
    box-shadow: 0 14px 34px rgba(15, 33, 26, .16);
}

.v4-property-row-more:not([open]) .v4-property-row-more-menu {
    display: none;
}

.v4-property-row-more-menu > a,
.v4-property-row-more-menu > button {
    min-height: 40px;
    padding: 8px 11px;
    border: 0;
    border-bottom: 1px solid var(--v4-line);
    background: transparent;
    color: var(--v4-ink);
    font-size: 11px;
    text-align: left;
    text-decoration: none;
}

.v4-property-row-more-menu > :last-child {
    border-bottom: 0;
}

.v4-property-row-more-menu > a:hover,
.v4-property-row-more-menu > a:focus-visible,
.v4-property-row-more-menu > button:hover,
.v4-property-row-more-menu > button:focus-visible {
    background: var(--v4-brand-soft);
    color: var(--v4-brand);
}

/* JS keeps this node for comparison and preview; the empty column never occupies the list. */
.v4-property-inspector-on-demand {
    display: none;
}

.v4-property-inspector-on-demand.is-open,
.v4-property-inspector-on-demand:not(:has(.v4-property-inspector-empty)) {
    display: block;
}

@media (min-width: 1200px) {
    .v4-property-inspector-on-demand:not(:has(.v4-property-inspector-empty)) {
        position: fixed;
        z-index: 1100;
        top: 82px;
        right: 18px;
        width: min(390px, calc(100vw - 36px));
        max-height: calc(100dvh - 100px);
        overflow: auto;
        box-shadow: -12px 16px 48px rgba(15, 33, 26, .22);
    }
}

@media (max-width: 1299.98px) {
    .v4-property-query-grid {
        grid-template-columns: minmax(260px, 2fr) repeat(3, minmax(120px, 1fr)) auto;
    }

    .v4-property-advanced-content {
        grid-template-columns: 1fr;
    }

    .v4-property-extra-filters > summary small,
    .v4-property-query-secondary .v4-property-sync > span:not(.v4-live-dot) {
        display: none;
    }

    .v4-property-row-main {
        grid-template-areas:
            "thumbnail identity commercial facts"
            "thumbnail owner media facts";
        grid-template-columns: 64px minmax(170px, 1fr) minmax(130px, .72fr) minmax(165px, .85fr);
        gap: 5px 11px;
    }

    .v4-property-row-thumbnail { grid-area: thumbnail; width: 64px; height: 64px; }
    .v4-property-row-identity { grid-area: identity; }
    .v4-property-row-owner { grid-area: owner; }
    .v4-property-row-commercial { grid-area: commercial; }
    .v4-property-row-facts { grid-area: facts; }
    .v4-property-row-media { grid-area: media; }
}

@media (max-width: 991.98px) {
    .v4-property-query-grid {
        grid-template-columns: minmax(220px, 2fr) repeat(2, minmax(125px, 1fr));
    }

    .v4-property-query-grid .v4-property-query-search {
        grid-column: span 2;
    }

    .v4-property-query-submit {
        min-height: 40px;
    }

    .v4-property-results-toolbar {
        align-items: stretch;
        flex-direction: column;
    }

    .v4-property-status-totals {
        width: 100%;
        flex: 0 0 auto;
    }

    .v4-property-results-controls {
        justify-content: flex-start;
    }

    .v4-property-advanced-content > .v4-property-extra-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .v4-property-row {
        grid-template-columns: 34px minmax(0, 1fr);
    }

    .v4-property-row-main {
        grid-column: 2;
        grid-template-areas:
            "thumbnail identity commercial"
            "thumbnail owner media"
            "thumbnail facts facts";
        grid-template-columns: 64px minmax(150px, 1fr) minmax(125px, .7fr);
    }

    .v4-property-row-actions {
        grid-column: 2;
        justify-content: flex-end;
    }
}

@media (max-width: 767.98px) {
    .v4-property-query-card {
        padding: 10px;
        border-radius: 13px;
    }

    .v4-property-query-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
    }

    .v4-property-query-grid .v4-property-query-search {
        grid-column: 1 / -1;
    }

    .v4-property-query-grid .v4-property-field:nth-of-type(4) {
        grid-column: 1;
    }

    .v4-property-query-submit {
        grid-column: 2;
        min-width: 0;
    }

    .v4-property-query-secondary {
        position: relative;
        display: block;
        min-width: 0;
        align-items: center;
    }

    .v4-property-query-secondary > .v4-properties-header-actions {
        display: flex;
        width: 100%;
        margin: 4px 0 0;
        padding-top: 7px;
        overflow-x: auto;
        border-top: 1px solid var(--v4-line);
        justify-content: flex-start;
        scrollbar-width: none;
    }

    .v4-property-query-secondary > .v4-properties-header-actions::-webkit-scrollbar {
        display: none;
    }

    .v4-property-query-secondary > .v4-properties-header-actions > * {
        flex: 0 0 auto;
    }

    .v4-property-query-secondary > .v4-property-extra-filters {
        width: 100%;
        min-width: 0;
        flex: 1 1 100%;
    }

    .v4-property-query-secondary > #v4-clear-property-filters {
        position: absolute;
        top: 4px;
        right: 0;
        min-width: 72px;
        min-height: 44px;
        margin: 0;
    }

    .v4-property-extra-filters > summary {
        min-height: 44px;
        padding-right: 82px;
    }

    .v4-property-extra-filters > summary small {
        display: none;
    }

    .v4-property-status-totals {
        display: flex;
        width: calc(100% + 16px);
        margin-right: -8px;
        margin-left: -8px;
        overflow-x: auto;
        border-right: 0;
        border-left: 0;
        border-radius: 0;
        scrollbar-width: none;
    }

    .v4-property-status-totals::-webkit-scrollbar {
        display: none;
    }

    .v4-property-status-total {
        min-width: 120px;
        min-height: 48px;
        border-right: 1px solid var(--v4-line) !important;
        border-bottom: 0 !important;
    }

    .v4-property-results-toolbar {
        padding: 8px;
    }

    .v4-properties-page .v4-property-results-head {
        display: none;
    }

    .v4-property-results-controls {
        display: grid;
        grid-template-columns: minmax(0, 1fr) 72px;
        align-items: end;
        gap: 6px;
    }

    .v4-property-compact-field,
    .v4-property-page-size-field {
        min-width: 0;
    }

    .v4-property-view-toggle button {
        width: 42px;
        min-height: 40px;
        padding: 6px;
    }

    .v4-property-view-toggle button > span:not(.bymob-properties-sr-only) {
        display: none;
    }

    .v4-property-view-toggle {
        grid-column: 1;
        grid-row: 2;
        width: max-content;
    }

    .v4-property-export-menu {
        grid-column: 2;
        grid-row: 2;
        justify-self: stretch;
    }

    .v4-property-export-menu > summary {
        width: 100%;
        min-height: 40px;
        padding-right: 7px;
        padding-left: 7px;
    }

    .v4-property-advanced-content > .v4-property-extra-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .v4-property-advanced-content .v4-property-extra-types,
    .v4-property-advanced-content .v4-property-extra-neighborhoods,
    .v4-property-advanced-content .v4-property-extra-owner,
    .v4-property-advanced-content .v4-property-area-fields {
        grid-column: 1 / -1;
    }

    .bymob-properties-filter-fields > .v4-property-extra-grid {
        grid-column: 1 / -1;
    }

    .v4-property-row {
        min-height: 126px;
        grid-template-columns: 38px minmax(0, 1fr);
        align-items: start;
        gap: 7px;
        padding: 8px;
    }

    .v4-property-row-select {
        width: 38px;
        min-width: 38px;
        height: 44px;
    }

    .v4-property-row-main {
        grid-column: 2;
        grid-template-areas:
            "thumbnail identity"
            "thumbnail commercial"
            "owner owner"
            "facts facts"
            "media media";
        grid-template-columns: 72px minmax(0, 1fr);
        gap: 6px 10px;
    }

    .v4-property-row-thumbnail {
        grid-area: thumbnail;
        width: 72px;
        height: 80px;
    }

    .v4-property-row-identity {
        grid-area: identity;
    }

    .v4-property-row-commercial {
        grid-area: commercial;
    }

    .v4-property-row-owner {
        display: grid;
        grid-area: owner;
        grid-template-columns: 72px minmax(0, 1fr);
        gap: 2px 8px;
        padding-top: 7px;
        border-top: 1px solid var(--v4-line);
    }

    .v4-property-row-owner small {
        grid-row: 1 / span 2;
        align-self: center;
    }

    .v4-property-row-owner strong,
    .v4-property-row-owner > span {
        grid-column: 2;
    }

    .v4-property-row-facts {
        display: grid;
        grid-area: facts;
        grid-template-columns: repeat(4, minmax(0, 1fr));
        padding-top: 7px;
        border-top: 1px solid var(--v4-line);
    }

    .v4-property-row-media {
        display: flex;
        grid-area: media;
        min-width: 0;
        align-items: center;
        gap: 10px;
    }

    .v4-property-row-actions {
        grid-column: 2;
        justify-content: flex-start;
    }

    .v4-property-row-actions .btn {
        min-height: 44px;
        flex: 1 1 auto;
        padding-right: 8px;
        padding-left: 8px;
    }

    .v4-property-row-more > summary {
        width: 44px;
        min-width: 44px;
        min-height: 44px;
    }

    .v4-property-grid.is-list-view .v4-property-card,
    .v4-property-grid[data-property-view="list"] .v4-property-card,
    .v4-property-grid[data-view="list"] .v4-property-card {
        grid-template-columns: 92px minmax(0, 1fr);
        min-height: 118px;
    }

    .v4-property-grid.is-list-view .v4-property-card-media,
    .v4-property-grid[data-property-view="list"] .v4-property-card-media,
    .v4-property-grid[data-view="list"] .v4-property-card-media {
        min-height: 118px;
    }

    .v4-property-grid.is-list-view .v4-property-card-body,
    .v4-property-grid[data-property-view="list"] .v4-property-card-body,
    .v4-property-grid[data-view="list"] .v4-property-card-body {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 6px;
        padding: 9px 10px;
    }

    .v4-property-grid.is-list-view .v4-property-card-footer,
    .v4-property-grid[data-property-view="list"] .v4-property-card-footer,
    .v4-property-grid[data-view="list"] .v4-property-card-footer {
        width: 100%;
    }
}

@media (max-width: 419.98px) {
    .v4-property-row-facts {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .v4-properties-page .v4-property-query-secondary > .v4-properties-header-actions {
        width: 100%;
        max-width: none;
        flex-wrap: nowrap;
        justify-content: flex-start;
        overflow-x: auto;
        padding-bottom: 2px;
    }

    .v4-properties-page .v4-property-query-secondary > .v4-properties-header-actions > * {
        flex: 0 0 auto;
    }

    .v4-property-query-grid .v4-property-field > span:first-child {
        font-size: 10px;
    }

    .v4-property-query-secondary > #v4-clear-property-filters {
        padding-right: 5px;
        padding-left: 5px;
    }

    .v4-property-results-controls {
        grid-template-columns: minmax(0, 1fr) 72px;
    }

    .v4-property-row-actions {
        padding-left: 0;
    }

    .v4-property-row-actions .v4-property-row-open,
    .v4-property-row-actions .v4-property-row-edit {
        font-size: 10px;
    }

    .v4-property-grid.is-list-view .v4-property-card,
    .v4-property-grid[data-property-view="list"] .v4-property-card,
    .v4-property-grid[data-view="list"] .v4-property-card {
        grid-template-columns: 84px minmax(0, 1fr);
    }
}

@media (max-width: 767.98px) {
    .v4-properties-page .v4-properties-header-actions .btn,
    .v4-properties-page #v4-refresh-properties,
    .v4-property-query-grid .form-control,
    .v4-property-query-grid .form-select,
    .v4-property-query-grid .btn,
    .v4-property-results-controls .form-select,
    .v4-property-view-toggle button,
    .v4-property-export-menu > summary,
    .v4-property-export-menu > div > button,
    button.v4-property-filter-chip.is-removable,
    .v4-property-row-actions .btn,
    .v4-property-row-more > summary,
    .v4-property-row-more-menu > a,
    .v4-property-row-more-menu > button {
        min-height: 44px;
    }

    .v4-property-query-grid .form-control,
    .v4-property-query-grid .form-select,
    .v4-property-extra-grid .form-control,
    .v4-property-extra-grid .form-select,
    .v4-property-extra-grid input,
    .v4-property-extra-grid textarea,
    .v4-property-results-controls .form-select {
        font-size: 16px;
    }

    .v4-properties-page .v4-properties-header-actions .btn,
    .v4-property-query-grid .btn,
    .v4-property-view-toggle button,
    .v4-property-row-actions .btn,
    .v4-property-row-more > summary {
        font-size: 13px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .v4-properties-page .v4-property-card,
    .v4-properties-page .v4-property-card-media img {
        transition: none;
    }
}

@media (max-width: 767.98px) {
    .v4-property-view-toggle button {
        width: 44px;
        min-width: 44px;
        font-size: 0;
    }
}

/* Benchmark-led catalogue: one working surface, quiet controls and scannable records. */
.v4-property-operational-surface {
    overflow: visible;
    border: 1px solid rgba(25, 48, 39, .12);
    border-radius: 18px;
    background: var(--v4-surface);
    box-shadow: 0 1px 2px rgba(15, 33, 26, .025);
}

.v4-property-operational-surface .v4-property-query-card {
    margin: 0;
    padding: 14px 16px 11px;
    border: 0;
    border-bottom: 1px solid rgba(25, 48, 39, .1);
    border-radius: 18px 18px 0 0;
    background: transparent;
    box-shadow: none;
}

.v4-property-operational-surface .v4-property-workspace {
    min-width: 0;
}

.v4-property-operational-surface .v4-property-results {
    min-width: 0;
    padding: 0;
    background: transparent;
}

.v4-property-query-grid {
    grid-template-columns: minmax(320px, 2.2fr) repeat(3, minmax(138px, .72fr)) auto;
    gap: 10px;
}

.v4-property-query-grid .v4-property-field > span:first-child,
.v4-property-compact-field > span {
    color: var(--v4-muted);
    font-size: 12px;
    font-weight: 650;
    letter-spacing: 0;
    text-transform: none;
}

.v4-property-query-grid .form-control,
.v4-property-query-grid .form-select,
.v4-property-query-submit {
    min-height: 40px;
    height: 40px;
    border-color: var(--v4-control);
    border-radius: 10px;
    box-shadow: none;
}

.v4-property-query-grid .form-control:focus,
.v4-property-query-grid .form-select:focus {
    border-color: var(--v4-brand);
    box-shadow: 0 0 0 3px var(--v4-brand-soft);
}

.v4-property-query-secondary {
    grid-template-columns: auto minmax(80px, 1fr) auto auto;
    gap: 10px;
    margin-top: 9px;
    padding-top: 8px;
    border-top-color: rgba(25, 48, 39, .08);
}

.v4-property-extra-filters > summary {
    color: var(--v4-brand);
    font-size: 13px;
}

.v4-property-extra-filters > summary small {
    font-size: 12px;
}

.v4-property-query-secondary > .v4-properties-header-actions {
    gap: 5px;
}

.v4-property-query-secondary > .v4-properties-header-actions .btn,
.v4-property-query-secondary > .v4-properties-header-actions #v4-refresh-properties {
    min-height: 36px;
    border-radius: 9px;
    font-size: 12px;
}

.v4-property-query-secondary > .v4-properties-header-actions > .btn:not(.btn-primary) {
    border-color: transparent;
    background: transparent;
}

.v4-property-query-secondary > .v4-properties-header-actions > .btn:not(.btn-primary):hover,
.v4-property-query-secondary > .v4-properties-header-actions > .btn:not(.btn-primary):focus-visible {
    background: var(--v4-surface-soft);
}

.v4-property-query-secondary > .v4-properties-header-actions .v4-property-sync {
    padding-left: 5px;
    color: var(--v4-muted);
    font-size: 12px;
}

.v4-property-results-toolbar {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
}

.v4-property-status-totals {
    display: flex;
    width: 100%;
    min-width: 0;
    overflow-x: auto;
    border: 0;
    border-bottom: 1px solid rgba(25, 48, 39, .1);
    border-radius: 0;
    background: transparent;
    scrollbar-width: none;
}

.v4-property-status-totals::-webkit-scrollbar {
    display: none;
}

.v4-property-status-total {
    position: relative;
    min-width: max-content;
    min-height: 48px;
    justify-content: flex-start;
    gap: 7px;
    padding: 9px 14px 8px;
    border: 0;
    background: transparent;
    color: var(--v4-muted);
}

.v4-property-status-total::after {
    position: absolute;
    right: 14px;
    bottom: -1px;
    left: 14px;
    height: 2px;
    border-radius: 2px 2px 0 0;
    background: transparent;
    content: "";
}

.v4-property-status-total:hover,
.v4-property-status-total:focus-visible {
    background: var(--v4-brand-soft);
    color: var(--v4-brand);
}

.v4-property-status-total[aria-pressed="true"],
.v4-property-status-total.is-active {
    background: transparent;
    color: var(--v4-brand);
}

.v4-property-status-total[aria-pressed="true"]::after,
.v4-property-status-total.is-active::after {
    background: var(--v4-brand);
}

.v4-property-status-total span {
    font-size: 12px;
    font-weight: 650;
}

.v4-property-status-total strong {
    min-width: 24px;
    padding: 3px 7px;
    border-radius: 999px;
    background: var(--v4-surface-soft);
    color: var(--v4-muted);
    font-size: 11px;
    line-height: 1.2;
    text-align: center;
}

.v4-property-status-total[aria-pressed="true"] strong,
.v4-property-status-total.is-active strong {
    background: var(--v4-brand-soft);
    color: var(--v4-brand);
}

.v4-property-results-meta {
    display: flex;
    min-width: 0;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 9px 14px;
    border-bottom: 1px solid rgba(25, 48, 39, .08);
}

.v4-properties-page .v4-property-results-head {
    position: static !important;
    display: flex;
    width: auto;
    height: auto;
    min-width: 0;
    flex: 1 1 auto;
    align-items: baseline;
    gap: 8px;
    overflow: visible;
    clip: auto;
    margin: 0;
    white-space: normal;
}

.v4-properties-page .v4-property-results-head > div {
    min-width: 0;
}

.v4-properties-page .v4-property-results-head p {
    margin: 0;
    color: var(--v4-ink);
    font-size: 13px;
    font-weight: 700;
}

.v4-properties-page .v4-property-updated {
    color: var(--v4-muted);
    font-size: 12px;
    white-space: nowrap;
}

.v4-property-results-controls {
    gap: 6px;
}

.v4-property-compact-field {
    min-width: 140px;
}

.v4-property-page-size-field {
    min-width: 66px;
}

.v4-property-results-controls .v4-property-compact-field > span {
    position: absolute !important;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.v4-property-compact-field .form-select,
.v4-property-view-toggle button,
.v4-property-export-menu > summary {
    min-height: 36px;
    border-radius: 8px;
    font-size: 12px;
}

.v4-property-view-toggle {
    border-color: rgba(25, 48, 39, .13);
    border-radius: 8px;
}

.v4-property-view-toggle button {
    color: var(--v4-muted);
}

.v4-property-view-toggle button[aria-pressed="true"] {
    background: var(--v4-brand-soft);
    color: var(--v4-brand-strong);
}

.v4-property-export-menu > summary {
    border-color: transparent;
    background: transparent;
}

.v4-property-list-columns {
    display: grid;
    grid-template-columns: 42px minmax(300px, 1.55fr) minmax(138px, .62fr) minmax(240px, .95fr) minmax(130px, .62fr) minmax(180px, .85fr) 77px;
    align-items: center;
    gap: 16px;
    min-height: 34px;
    padding: 0 14px;
    border-bottom: 1px solid rgba(25, 48, 39, .1);
    background: var(--v4-surface-soft);
    color: var(--v4-muted);
}

.v4-property-list-columns span {
    min-width: 0;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .025em;
    text-transform: uppercase;
}

.v4-property-list-columns span:last-child {
    text-align: right;
}

.v4-properties-page .v4-property-grid,
.v4-properties-page .v4-property-grid.is-list-view,
.v4-properties-page .v4-property-grid[data-property-view="list"],
.v4-properties-page .v4-property-grid[data-view="list"] {
    gap: 0;
}

.v4-property-row {
    min-height: 96px;
    grid-template-columns: 42px minmax(0, 1fr) 77px;
    gap: 16px;
    padding: 11px 14px;
    border: 0;
    border-bottom: 1px solid rgba(25, 48, 39, .09);
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    transition: background-color .16s ease;
}

.v4-property-row:last-child {
    border-bottom: 0;
}

.v4-property-row:hover,
.v4-property-row:focus-within,
.v4-property-row.is-active {
    border-color: rgba(25, 48, 39, .09);
    background: var(--v4-surface-soft);
    box-shadow: none;
}

.v4-property-row.is-selected {
    border-color: rgba(25, 48, 39, .09);
    background: var(--v4-brand-soft);
    box-shadow: inset 3px 0 0 var(--v4-brand);
}

.v4-property-row-select {
    width: 32px;
    min-width: 32px;
    height: 32px;
    border-color: rgba(25, 48, 39, .15);
    border-radius: 8px;
    background: transparent;
}

.v4-property-row-main {
    grid-template-columns: minmax(300px, 1.55fr) minmax(138px, .62fr) minmax(240px, .95fr) minmax(130px, .62fr) minmax(180px, .85fr);
    gap: 16px;
}

.v4-property-row-summary {
    display: grid;
    min-width: 0;
    grid-template-columns: 78px minmax(0, 1fr);
    align-items: center;
    gap: 12px;
}

.v4-property-row-thumbnail {
    width: 78px;
    height: 68px;
    border-radius: 8px;
    background: var(--v4-surface-soft);
}

.v4-property-row-identity,
.v4-property-row-owner,
.v4-property-row-commercial,
.v4-property-row-media {
    gap: 4px;
}

.v4-property-row-status,
.v4-property-row-code,
.v4-property-row-linked {
    min-height: 21px;
    padding: 3px 7px;
    font-size: 12px;
    font-weight: 700;
}

.v4-property-row-code {
    background: var(--v4-surface-soft);
    color: var(--v4-muted);
}

.v4-property-row-title {
    color: var(--v4-ink);
    font-size: 15px;
    font-weight: 750;
    line-height: 1.25;
}

.v4-property-row-owner strong,
.v4-property-row-commercial strong {
    color: var(--v4-ink);
    font-size: 14px;
    line-height: 1.25;
}

.v4-property-row-commercial strong {
    font-size: 16px;
    font-variant-numeric: tabular-nums;
}

.v4-property-row-address,
.v4-property-row-owner > span,
.v4-property-row-commercial > span,
.v4-property-row-media > span {
    color: var(--v4-muted);
    font-size: 12px;
    line-height: 1.35;
}

.v4-property-row-owner small,
.v4-property-row-commercial small,
.v4-property-row-media small {
    color: var(--v4-muted);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .02em;
    text-transform: uppercase;
}

.v4-property-row-facts {
    grid-template-columns: repeat(2, minmax(82px, 1fr));
    gap: 8px 12px;
}

.v4-property-row-fact {
    gap: 7px;
}

.v4-property-row-fact > svg {
    width: 15px;
    height: 15px;
    color: var(--v4-muted);
}

.v4-property-row-fact strong {
    color: var(--v4-ink);
    font-size: 13px;
    font-weight: 700;
}

.v4-property-row-fact small {
    color: var(--v4-muted);
    font-size: 11px;
}

.v4-property-row-photo-count {
    color: var(--v4-ink) !important;
    font-weight: 650;
}

.v4-property-row-update {
    color: var(--v4-muted) !important;
}

.v4-property-row-actions {
    justify-content: flex-end;
}

.v4-property-row-actions .v4-property-row-open {
    display: inline-flex;
    width: 36px;
    min-width: 36px;
    min-height: 36px;
    align-items: center;
    justify-content: center;
    padding: 7px;
    border-color: rgba(25, 48, 39, .2);
    border-radius: 8px;
    background: transparent;
    color: var(--v4-ink);
    font-size: 12px;
    font-weight: 700;
}

.v4-property-row-actions .v4-property-row-open svg {
    flex: 0 0 17px;
    margin: 0;
}

.v4-property-card-footer .v4-property-details-link {
    min-width: 44px;
    min-height: 44px;
    justify-content: center;
}

.v4-property-card-footer .v4-property-details-link svg {
    width: 19px;
    height: 19px;
}

.v4-property-row-actions .v4-property-row-open:hover,
.v4-property-row-actions .v4-property-row-open:focus-visible {
    border-color: var(--v4-brand);
    background: var(--v4-brand-soft);
    color: var(--v4-brand);
}

.v4-property-row-more > summary {
    border: 1px solid transparent;
    border-radius: 8px;
    color: var(--v4-muted);
}

.v4-property-row-more[open] > summary,
.v4-property-row-more > summary:hover,
.v4-property-row-more > summary:focus-visible {
    border-color: rgba(25, 48, 39, .13);
    background: var(--v4-surface-soft);
    color: var(--v4-ink);
}

.v4-property-row-more-menu {
    width: 190px;
    border-color: rgba(25, 48, 39, .13);
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 14px 34px rgba(15, 33, 26, .13);
}

.v4-property-row-more-menu > a,
.v4-property-row-more-menu > button {
    min-height: 42px;
    padding: 9px 12px;
    border-bottom-color: rgba(25, 48, 39, .08);
    font-size: 13px;
}

.v4-property-pagination {
    margin: 0;
    padding: 14px;
    border-top: 1px solid rgba(25, 48, 39, .09);
}

.v4-property-grid[data-property-view="gallery"] + .v4-property-pagination,
.v4-property-grid.is-gallery-view + .v4-property-pagination {
    margin-top: 10px;
}

.v4-property-results:has(.v4-property-grid[data-property-view="gallery"]) .v4-property-list-columns,
.v4-property-results:has(.v4-property-grid.is-gallery-view) .v4-property-list-columns {
    display: none;
}

@media (min-width: 1300px) {
    .is-attendance-modal-catalog .v4-property-list-columns {
        grid-template-columns: 42px minmax(300px, 1.55fr) minmax(138px, .62fr) minmax(240px, .95fr) minmax(130px, .62fr) minmax(180px, .85fr) 226px;
    }

    .is-attendance-modal-catalog .v4-property-row {
        grid-template-columns: 42px minmax(0, 1fr) 226px;
    }
}

.v4-property-grid.is-gallery-view,
.v4-property-grid[data-property-view="gallery"],
.v4-property-grid[data-view="gallery"] {
    padding: 14px;
}

@media (max-width: 1399.98px) {
    .v4-property-list-columns {
        grid-template-columns: 40px minmax(270px, 1.42fr) minmax(126px, .62fr) minmax(196px, .9fr) minmax(118px, .58fr) minmax(158px, .78fr) 77px;
        gap: 12px;
    }

    .v4-property-row {
        grid-template-columns: 40px minmax(0, 1fr) 77px;
        gap: 12px;
    }

    .v4-property-row-main {
        grid-template-columns: minmax(270px, 1.42fr) minmax(126px, .62fr) minmax(196px, .9fr) minmax(118px, .58fr) minmax(158px, .78fr);
        gap: 12px;
    }

    .v4-property-row-summary {
        grid-template-columns: 68px minmax(0, 1fr);
        gap: 10px;
    }

    .v4-property-row-thumbnail {
        width: 68px;
        height: 64px;
    }

    .v4-property-row-facts {
        gap: 7px 9px;
    }
}

@media (max-width: 1299.98px) {
    .v4-property-query-grid {
        grid-template-columns: minmax(280px, 1.8fr) repeat(3, minmax(118px, .8fr)) auto;
    }

    .v4-property-list-columns {
        display: none;
    }

    .v4-properties-page .v4-property-grid,
    .v4-properties-page .v4-property-grid.is-list-view,
    .v4-properties-page .v4-property-grid[data-property-view="list"],
    .v4-properties-page .v4-property-grid[data-view="list"] {
        gap: 10px;
        padding: 12px;
        background: var(--v4-surface-soft);
    }

    .v4-property-row {
        min-height: 0;
        grid-template-columns: 38px minmax(0, 1fr) auto;
        align-items: start;
        gap: 12px;
        padding: 13px;
        border: 1px solid rgba(25, 48, 39, .11);
        border-radius: 12px;
        background: #fff;
    }

    .v4-property-row-main {
        grid-column: 2;
        grid-template-areas:
            "summary commercial"
            "facts facts"
            "media owner";
        grid-template-columns: minmax(260px, 1.3fr) minmax(150px, .7fr);
        gap: 12px 18px;
    }

    .v4-property-row-summary { grid-area: summary; }
    .v4-property-row-summary > .v4-property-row-thumbnail,
    .v4-property-row-summary > .v4-property-row-identity { grid-area: auto; }
    .v4-property-row-commercial { grid-area: commercial; }
    .v4-property-row-facts { grid-area: facts; grid-template-columns: repeat(4, minmax(86px, 1fr)); padding: 9px 0; border-top: 1px solid rgba(25, 48, 39, .08); border-bottom: 1px solid rgba(25, 48, 39, .08); }
    .v4-property-row-media { grid-area: media; }
    .v4-property-row-owner { grid-area: owner; }

    .v4-property-row-actions {
        grid-column: 3;
    }
}

@media (max-width: 991.98px) {
    .v4-property-query-grid {
        grid-template-columns: minmax(220px, 1.5fr) repeat(2, minmax(130px, 1fr));
    }

    .v4-property-results-meta {
        align-items: flex-start;
        flex-direction: column;
        gap: 8px;
    }

    .v4-property-results-controls {
        width: 100%;
        justify-content: flex-start;
    }

    .v4-property-row-main {
        grid-template-columns: minmax(220px, 1.2fr) minmax(140px, .8fr);
    }

    .v4-property-row-actions {
        align-self: stretch;
        flex-direction: column;
    }
}

@media (max-width: 767.98px) {
    .v4-property-operational-surface {
        margin: 0 -4px;
        border-radius: 14px;
    }

    .v4-property-operational-surface .v4-property-query-card {
        padding: 12px;
        border-radius: 14px 14px 0 0;
    }

    .v4-property-query-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .v4-property-query-grid .form-control,
    .v4-property-query-grid .form-select,
    .v4-property-query-submit {
        min-height: 44px;
        height: 44px;
    }

    .v4-property-query-secondary {
        padding-top: 6px;
    }

    .v4-property-status-total {
        min-height: 46px;
        padding-right: 12px;
        padding-left: 12px;
    }

    .v4-property-results-meta {
        padding: 10px 12px;
    }

    .v4-properties-page .v4-property-results-head {
        display: flex;
    }

    .v4-property-results-controls {
        display: grid;
        grid-template-columns: minmax(0, 1fr) 72px auto auto;
        align-items: center;
    }

    .v4-property-view-toggle,
    .v4-property-export-menu {
        grid-column: auto;
        grid-row: auto;
    }

    .v4-property-view-toggle button,
    .v4-property-export-menu > summary {
        min-height: 44px;
    }

    .v4-properties-page .v4-property-grid,
    .v4-properties-page .v4-property-grid.is-list-view,
    .v4-properties-page .v4-property-grid[data-property-view="list"],
    .v4-properties-page .v4-property-grid[data-view="list"] {
        gap: 10px;
        padding: 10px;
    }

    .v4-property-row {
        position: relative;
        display: block;
        padding: 13px;
        border-radius: 12px;
    }

    .v4-property-row-select {
        position: absolute;
        z-index: 2;
        top: 13px;
        right: 13px;
        width: 44px;
        min-width: 44px;
        height: 44px;
        background: rgba(255, 255, 255, .94);
    }

    .v4-property-row-main {
        display: grid;
        grid-template-areas:
            "summary"
            "commercial"
            "facts"
            "media"
            "owner";
        grid-template-columns: minmax(0, 1fr);
        gap: 11px;
    }

    .v4-property-row-summary {
        grid-template-columns: 86px minmax(0, 1fr);
        gap: 11px;
        padding-right: 0;
    }

    .v4-property-row-summary > .v4-property-row-thumbnail,
    .v4-property-row-summary > .v4-property-row-identity {
        grid-area: auto;
    }

    .v4-property-row-summary > .v4-property-row-identity {
        padding-right: 48px;
    }

    .v4-property-row-thumbnail {
        width: 86px;
        height: 82px;
    }

    .v4-property-row-title {
        font-size: 16px;
        white-space: normal;
    }

    .v4-property-row-address {
        display: -webkit-box;
        overflow: hidden;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 2;
        white-space: normal;
    }

    .v4-property-row-commercial {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        align-items: end;
        padding-top: 10px;
        border-top: 1px solid rgba(25, 48, 39, .08);
    }

    .v4-property-row-commercial small {
        grid-column: 1;
    }

    .v4-property-row-commercial strong {
        grid-column: 1;
        font-size: 18px;
    }

    .v4-property-row-commercial > span {
        grid-column: 2;
        grid-row: 1 / span 2;
        align-self: center;
        text-align: right;
    }

    .v4-property-row-facts {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 7px;
        padding: 10px 0;
    }

    .v4-property-row-fact {
        align-items: flex-start;
    }

    .v4-property-row-media,
    .v4-property-row-owner {
        padding: 0;
        border: 0;
    }

    .v4-property-row-media {
        display: grid;
        grid-template-columns: auto minmax(0, 1fr);
        gap: 4px 10px;
    }

    .v4-property-row-media small {
        grid-column: 1 / -1;
    }

    .v4-property-row-update {
        grid-column: 1 / -1;
    }

    .v4-property-row-owner {
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        gap: 3px;
        padding-top: 10px;
        border-top: 1px solid rgba(25, 48, 39, .08);
    }

    .v4-property-row-owner small,
    .v4-property-row-owner strong,
    .v4-property-row-owner > span {
        grid-column: auto;
        grid-row: auto;
    }

    .v4-property-row-actions {
        display: grid;
        grid-template-columns: minmax(0, 1fr) 44px;
        gap: 8px;
        margin-top: 12px;
    }

    .is-attendance-modal-catalog .v4-property-row-actions {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 44px;
    }

    .v4-property-row-actions .v4-property-row-open {
        width: 44px;
        min-width: 44px;
        min-height: 44px;
        justify-self: end;
    }

    .v4-property-row-more > summary {
        width: 44px;
        min-width: 44px;
        min-height: 44px;
    }
}

@media (max-width: 519.98px) {
    .is-attendance-modal-catalog .v4-property-row-actions {
        grid-template-columns: minmax(0, 1fr) 44px;
    }

    .is-attendance-modal-catalog .v4-property-attendance-add.is-row {
        grid-column: 1 / -1;
    }

    .is-attendance-modal-catalog .v4-property-row-actions .v4-property-row-open {
        grid-column: 1;
    }

    .is-attendance-modal-catalog .v4-property-row-actions .v4-property-row-more {
        grid-column: 2;
    }

    .v4-property-attendance-add.is-card {
        width: 100%;
        margin-left: 0;
        order: 3;
    }

    .v4-property-results-controls {
        grid-template-columns: minmax(0, 1fr) 96px;
        align-items: end;
        gap: 10px 8px;
    }

    .v4-property-results-controls .v4-property-compact-field > span {
        position: static !important;
        width: auto;
        height: auto;
        margin: 0 0 4px;
        overflow: visible;
        clip: auto;
        white-space: normal;
    }

    .v4-property-view-toggle {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        grid-column: 1;
        grid-row: 2;
        width: 100%;
    }

    .v4-property-view-toggle button {
        width: 100%;
        min-width: 0;
        padding-right: 8px;
        padding-left: 8px;
        font-size: 12px;
        white-space: nowrap;
    }

    .v4-property-export-menu {
        grid-column: 2;
        grid-row: 2;
        width: 100%;
    }

    .v4-property-export-menu > summary {
        width: 100%;
    }

    .v4-property-row-summary {
        grid-template-columns: 78px minmax(0, 1fr);
    }

    .v4-property-row-thumbnail {
        width: 78px;
        height: 76px;
    }

    .v4-property-row-meta {
        padding-right: 42px;
    }

    .v4-property-row-facts {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
