.v4-property-editor {
    width: min(100%, 1380px);
    margin: 0 auto;
    padding: .2rem 0 2rem;
}

.v4-editor-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.v4-editor-page-heading {
    min-height: 32px;
    margin-bottom: .35rem;
}

.v4-editor-back {
    display: inline-flex;
    min-height: 32px;
    align-items: center;
    font-size: .84rem;
    font-weight: 650;
}

.v4-editor-heading-actions,
.v4-editor-inline-action,
.v4-editor-card-heading-action,
.v4-editor-image-actions {
    display: flex;
    align-items: center;
    gap: .55rem;
}

.v4-editor-loading:empty {
    display: none;
}

.v4-editor-overview {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: .75rem;
    margin: 1rem 0;
}

.v4-editor-overview-card {
    min-width: 0;
    padding: .9rem 1rem;
    border: 1px solid var(--v4-line);
    border-radius: 13px;
    background: var(--v4-surface);
    color: var(--v4-ink);
    text-align: left;
    box-shadow: var(--v4-shadow-sm);
    transition: border-color .16s ease, box-shadow .16s ease, transform .16s ease;
}

.v4-editor-overview-card:hover {
    border-color: #98ada1;
    box-shadow: var(--v4-shadow);
    transform: translateY(-1px);
}

.v4-editor-overview-card span,
.v4-editor-overview-card strong,
.v4-editor-overview-card small {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.v4-editor-overview-label {
    margin-bottom: .25rem;
    color: var(--v4-muted);
    font-size: .7rem;
    font-weight: 750;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.v4-editor-overview-card strong {
    font-size: .96rem;
}

.v4-editor-overview-card small {
    margin-top: .2rem;
    color: var(--v4-muted);
}

.v4-editor-workspace {
    position: sticky;
    top: 82px;
    z-index: 12;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .75rem;
    margin: .35rem 0 .65rem;
    padding: .35rem;
    border: 1px solid rgba(15, 33, 26, .08);
    border-radius: 14px;
    background: rgba(255, 255, 255, .94);
    box-shadow: 0 9px 28px rgba(15, 33, 26, .08);
    backdrop-filter: blur(12px);
}

.v4-editor-sections {
    display: flex;
    min-width: 0;
    gap: .3rem;
    overflow-x: auto;
    scrollbar-width: thin;
}

.v4-editor-tab {
    flex: 0 0 auto;
    min-height: 36px;
    padding: .45rem .72rem;
    border: 0;
    border-radius: 9px;
    background: transparent;
    color: var(--v4-muted);
    font-size: .82rem;
    font-weight: 680;
    white-space: nowrap;
}

.v4-editor-tab:hover {
    background: var(--v4-surface-soft);
    color: var(--v4-forest-950);
}

.v4-editor-tab.is-active {
    background: var(--v4-forest-950);
    color: #fff;
}

.v4-editor-tab:focus-visible {
    outline: 3px solid rgba(33, 131, 89, .28);
    outline-offset: 2px;
}

.v4-editor-progress {
    display: grid;
    flex: 0 0 235px;
    gap: .3rem;
    color: var(--v4-muted);
    font-size: .72rem;
    font-weight: 600;
}

.v4-editor-progress-track {
    height: 5px;
    overflow: hidden;
    border-radius: 999px;
    background: var(--v4-line);
}

.v4-editor-progress-bar {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: var(--v4-green-600);
    transition: width .24s ease;
}

.v4-property-editor fieldset {
    min-width: 0;
    margin: 0;
    padding: 0;
    border: 0;
}

.v4-editor-panel[hidden] {
    display: none !important;
}

.v4-editor-panel-heading {
    display: none;
}

.v4-editor-card-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
    align-items: start;
}

.v4-editor-card {
    min-width: 0;
    margin: 0;
    padding: 1rem;
    background: var(--v4-surface);
}

.v4-editor-card-heading {
    margin-bottom: .75rem;
    padding-bottom: .6rem;
    border-bottom: 1px solid var(--v4-line);
}

.v4-editor-card-heading h3 {
    margin: 0;
    font-size: 1rem;
    letter-spacing: -.015em;
}

.v4-editor-card-heading p {
    display: none;
}

.v4-editor-card-heading-action {
    justify-content: space-between;
}

.v4-market-reference {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: .7rem 1rem;
    margin-top: 1rem;
    padding: .75rem .8rem;
    border: 1px solid var(--v4-line);
    border-radius: 10px;
    background: var(--v4-surface-soft);
}

.v4-market-reference-copy strong,
.v4-market-reference-copy span {
    display: block;
}

.v4-market-reference-copy strong {
    color: var(--v4-ink);
    font-size: .82rem;
}

.v4-market-reference-copy span {
    margin-top: .18rem;
    color: var(--v4-muted);
    font-size: .72rem;
    line-height: 1.4;
}

.v4-market-reference > .btn {
    min-height: 42px;
    white-space: nowrap;
}

.v4-market-reference-feedback {
    grid-column: 1 / -1;
    padding-top: .65rem;
    border-top: 1px solid var(--v4-line);
    color: var(--v4-green-700);
    font-size: .78rem;
    line-height: 1.5;
}

.v4-market-reference-feedback[hidden] {
    display: none;
}

.v4-market-reference-feedback .market-data-text-button {
    margin-left: .35rem;
}

.v4-editor-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .9rem;
}

.v4-editor-field {
    display: flex;
    flex-direction: column;
    min-width: 0;
    gap: .34rem;
}

.v4-editor-field.is-wide {
    grid-column: 1 / -1;
}

.v4-editor-field .form-label,
.v4-editor-field > label:first-child {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: .35rem;
    margin: 0;
    color: #35443c;
    font-size: .76rem;
    font-weight: 680;
}

.v4-editor-required-badge {
    display: inline-flex;
    align-items: center;
    min-height: 1.25rem;
    padding: .12rem .42rem;
    border: 1px solid #d6a74e;
    border-radius: 999px;
    background: #fff2cf;
    color: #704700;
    font-size: .62rem;
    font-weight: 760;
    letter-spacing: .015em;
    line-height: 1;
}

.v4-editor-field .form-control,
.v4-editor-field .form-select {
    width: 100%;
    min-height: 42px;
    border-color: var(--v4-line-strong);
    border-radius: 9px;
    background-color: #fff;
    color: var(--v4-ink);
    font-size: .86rem;
}

.v4-editor-field textarea.form-control {
    min-height: 108px;
    resize: vertical;
}

.v4-editor-native-multiselect {
    display: none !important;
}

.v4-multiselect {
    display: grid;
    gap: .65rem;
}

.v4-multiselect-summary {
    display: flex;
    align-items: center;
    gap: .6rem;
    min-height: 42px;
    padding: .45rem .55rem .45rem .75rem;
    border: 1px solid var(--v4-line);
    border-radius: 10px;
    background: #fff;
}

.v4-multiselect-count {
    flex: 1 1 auto;
    color: var(--v4-muted);
    font-size: .78rem;
    font-weight: 600;
}

.v4-multiselect-trigger,
.v4-multiselect-clear,
.v4-multiselect-chip-remove,
.v4-multiselect-option {
    font: inherit;
}

.v4-multiselect-trigger,
.v4-multiselect-clear {
    border: 0;
    background: transparent;
    font-size: .78rem;
    font-weight: 700;
}

.v4-multiselect-trigger {
    color: var(--v4-green-700);
}

.v4-multiselect-clear {
    color: var(--v4-muted);
}

.v4-multiselect-clear:disabled {
    opacity: .45;
}

.v4-multiselect-trigger:focus-visible,
.v4-multiselect-clear:focus-visible,
.v4-multiselect-chip-remove:focus-visible,
.v4-multiselect-option:focus-visible {
    outline: 3px solid rgba(33, 131, 89, .2);
    outline-offset: 2px;
}

.v4-multiselect-chips {
    display: flex;
    flex-wrap: wrap;
    gap: .4rem;
    min-height: 28px;
}

.v4-multiselect-chip {
    display: inline-flex;
    align-items: center;
    gap: .3rem;
    max-width: 100%;
    padding: .32rem .42rem .32rem .62rem;
    border: 1px solid rgba(33, 131, 89, .22);
    border-radius: 999px;
    background: rgba(33, 131, 89, .09);
    color: var(--v4-green-800, #165f41);
    font-size: .76rem;
    font-weight: 600;
}

.v4-multiselect-chip > span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.v4-multiselect-chip-remove {
    display: grid;
    width: 22px;
    height: 22px;
    padding: 0;
    place-items: center;
    border: 0;
    border-radius: 50%;
    background: rgba(15, 33, 26, .09);
    color: inherit;
    line-height: 1;
}

.v4-multiselect-placeholder {
    color: var(--v4-muted);
    font-size: .78rem;
}

.v4-multiselect-panel {
    padding: .7rem;
    border: 1px solid rgba(15, 33, 26, .14);
    border-radius: 11px;
    background: #fff;
    box-shadow: 0 12px 30px rgba(15, 33, 26, .1);
}

.v4-multiselect-search-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: .5rem;
    margin-bottom: .55rem;
}

.v4-multiselect-search {
    min-width: 0;
}

.v4-multiselect-options {
    display: grid;
    gap: .28rem;
    max-height: 260px;
    overflow-y: auto;
    overscroll-behavior: contain;
}

.v4-multiselect-option {
    display: grid;
    grid-template-columns: 24px minmax(0, 1fr);
    gap: .55rem;
    align-items: center;
    width: 100%;
    padding: .58rem .65rem;
    border: 1px solid transparent;
    border-radius: 8px;
    background: transparent;
    color: var(--v4-ink);
    text-align: left;
}

.v4-multiselect-option:hover {
    background: var(--v4-surface-soft);
}

.v4-multiselect-option[aria-selected="true"] {
    border-color: rgba(33, 131, 89, .22);
    background: rgba(33, 131, 89, .09);
    color: var(--v4-green-800, #165f41);
    font-weight: 650;
}

.v4-multiselect-option-check {
    display: grid;
    width: 22px;
    height: 22px;
    place-items: center;
    border: 1px solid rgba(15, 33, 26, .22);
    border-radius: 6px;
    background: #fff;
    color: #fff;
}

.v4-multiselect-option[aria-selected="true"] .v4-multiselect-option-check {
    border-color: var(--v4-green-700);
    background: var(--v4-green-700);
}

.v4-multiselect-empty {
    margin: 0;
    padding: .8rem;
    color: var(--v4-muted);
    font-size: .8rem;
    text-align: center;
}

.v4-multiselect.is-readonly .v4-multiselect-summary {
    min-height: auto;
    padding: 0;
    border: 0;
    background: transparent;
}

.v4-editor-field .form-control:focus,
.v4-editor-field .form-select:focus {
    border-color: var(--v4-green-700);
    box-shadow: 0 0 0 3px rgba(33, 131, 89, .13);
}

.v4-editor-field.is-required:not(.is-filled):not(.has-error) .form-control,
.v4-editor-field.is-required:not(.is-filled):not(.has-error) .form-select {
    border-color: #a65f00;
    background-color: #fffdf7;
    box-shadow: inset 3px 0 0 #a65f00;
}

.v4-editor-field.is-required.is-filled:not(.has-error) .form-control,
.v4-editor-field.is-required.is-filled:not(.has-error) .form-select {
    border-color: #4c8569;
    background-color: #f8fcfa;
    box-shadow: inset 3px 0 0 var(--v4-green-700);
}

.v4-editor-field.is-required:not(.is-filled):not(.has-error) .form-control:focus,
.v4-editor-field.is-required:not(.is-filled):not(.has-error) .form-select:focus {
    box-shadow: inset 3px 0 0 #a65f00, 0 0 0 3px rgba(33, 131, 89, .13);
}

.v4-editor-field.is-required.is-filled:not(.has-error) .form-control:focus,
.v4-editor-field.is-required.is-filled:not(.has-error) .form-select:focus {
    box-shadow: inset 3px 0 0 var(--v4-green-700), 0 0 0 3px rgba(33, 131, 89, .13);
}

.v4-editor-field.is-required.is-filled:not(.has-error) .v4-editor-required-badge {
    border-color: #8fbea4;
    background: #e8f6ee;
    color: #145a3d;
}

.v4-editor-field.has-error .form-control,
.v4-editor-field.has-error .form-select {
    border-color: var(--v4-red);
    background: var(--v4-red-soft);
}

.v4-editor-field.has-error .v4-editor-required-badge {
    border-color: #d79599;
    background: var(--v4-red-soft);
    color: var(--v4-red);
}

.v4-editor-postal-source {
    display: inline-flex;
    align-items: center;
    min-height: 1.2rem;
    padding: .1rem .4rem;
    border: 1px solid #b8d7c6;
    border-radius: 999px;
    background: #edf8f2;
    color: #226246;
    font-size: .61rem;
    font-weight: 760;
    line-height: 1;
}

.v4-editor-field.is-postal-managed:not(.has-error) .form-control[readonly] {
    border-color: #b8cec1;
    background: #f3f8f5;
    color: #31443a;
    cursor: text;
}

.v4-editor-field.is-postal-managed[data-postal-source="pending"] .v4-editor-postal-source {
    border-color: #ddc687;
    background: #fff9e8;
    color: #765619;
}

.v4-editor-field-help {
    min-height: 1.15rem;
    color: var(--v4-muted);
    font-size: .73rem;
}

.v4-editor-field-error {
    min-height: 0;
    color: var(--v4-red);
    font-size: .72rem;
    font-weight: 600;
    line-height: 1.4;
}

.v4-editor-field-error[hidden] {
    display: none;
}

.v4-editor-address-duplicate {
    display: flex;
    grid-column: 1 / -1;
    align-items: center;
    flex-wrap: wrap;
    gap: .35rem .55rem;
    margin-top: 1rem;
    padding: .72rem .82rem;
    border: 1px solid #e5c77a;
    border-radius: 10px;
    background: #fff8df;
    color: #624b12;
    font-size: .78rem;
    line-height: 1.45;
}

.v4-editor-address-duplicate[hidden] {
    display: none;
}

.v4-editor-address-duplicate.is-checking,
.v4-editor-address-duplicate.is-muted {
    border-color: var(--v4-line);
    background: var(--v4-surface-soft);
    color: var(--v4-muted);
}

.v4-editor-address-duplicate a {
    color: inherit;
    font-weight: 700;
    text-decoration: underline;
}

.v4-editor-card[data-card="location"],
.v4-editor-card[data-card="address"] {
    grid-column: 1 / -1;
}

@media (min-width: 801px) {
    .v4-property-editor[data-mode="new"]
        .v4-editor-panel[data-editor-panel="essencial"] > .v4-editor-card-grid {
        align-items: stretch;
    }

    .v4-property-editor[data-mode="new"]
        .v4-editor-panel[data-editor-panel="essencial"]
        .v4-editor-card[data-card="property"] {
        grid-column: 1 / -1;
    }

    .v4-editor-panel[data-editor-panel="caracteristicas"]
        .v4-editor-card[data-card="dimensions"],
    .v4-editor-panel[data-editor-panel="caracteristicas"]
        .v4-editor-card[data-card="lists"] {
        grid-column: 1 / -1;
    }
}

@media (min-width: 1101px) {
    .v4-property-editor[data-mode="new"]
        .v4-editor-panel[data-editor-panel="essencial"]
        .v4-editor-card[data-card="property"] > .v4-editor-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .v4-editor-panel[data-editor-panel="caracteristicas"]
        .v4-editor-card[data-card="dimensions"] > .v4-editor-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .v4-editor-panel[data-editor-panel="caracteristicas"]
        [data-field-path="features.infrastructureList"] {
        grid-column: 1 / -1;
    }

    .v4-editor-panel[data-editor-panel="caracteristicas"]
        [data-field-path="features.infrastructureList"]
        .v4-multiselect-options {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.v4-editor-location-workspace {
    display: grid;
    grid-column: 1 / -1;
    gap: .75rem;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--v4-line);
}

.v4-editor-location-assist,
.v4-editor-location-map-section {
    min-width: 0;
    border: 1px solid var(--v4-line);
    border-radius: 11px;
    background: var(--v4-surface-soft);
}

.v4-editor-location-assist > summary {
    padding: .78rem .9rem;
    color: var(--v4-green-700);
    font-size: .8rem;
    font-weight: 720;
    cursor: pointer;
}

.v4-editor-location-assist > summary:focus-visible,
.v4-editor-location-map-toggle:focus-visible {
    outline: 3px solid rgba(33, 131, 89, .28);
    outline-offset: 2px;
}

.v4-editor-location-assist[open] > summary {
    border-bottom: 1px solid var(--v4-line);
}

.v4-editor-location-assist-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: .75rem;
    padding: 0 .9rem;
}

.v4-editor-location-note {
    margin: .75rem .9rem;
    color: var(--v4-muted);
    font-size: .75rem;
    line-height: 1.5;
}

.v4-editor-location-feedback {
    min-height: 1.2rem;
    margin: .7rem .9rem .85rem;
    color: var(--v4-muted);
    font-size: .73rem;
    line-height: 1.45;
}

.v4-editor-location-map-section {
    padding: .8rem .9rem;
}

.v4-editor-location-map-toggle {
    width: 100%;
}

.v4-editor-location-map-panel {
    margin-top: .75rem;
}

.v4-editor-location-map-panel[hidden] {
    display: none;
}

.v4-editor-location-map {
    width: 100%;
    height: 360px;
    overflow: hidden;
    border: 1px solid var(--v4-line-strong);
    border-radius: 10px;
    background: #e8eeea;
}

.v4-editor-location-map:focus-within {
    outline: 3px solid rgba(33, 131, 89, .22);
    outline-offset: 2px;
}

.v4-editor-location-map.is-unavailable {
    display: none;
}

.v4-editor-location-coordinate-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr)) auto;
    align-items: end;
    gap: .75rem;
    margin-top: .8rem;
}

.v4-editor-location-coordinate-action {
    display: flex;
    align-items: flex-end;
    min-height: 42px;
}

.v4-editor-location-coordinate-action .btn {
    min-height: 42px;
    white-space: nowrap;
}

.v4-editor-inline-action .form-control {
    flex: 1 1 auto;
}

.v4-editor-secondary-link,
.v4-editor-text-button {
    align-self: flex-start;
    padding: 0;
    border: 0;
    background: none;
    color: var(--v4-green-700);
    font-size: .75rem;
    font-weight: 650;
    text-decoration: underline;
}

body.v4-editor-dialog-open {
    overflow: hidden;
}

.v4-editor-owner-dialog {
    width: min(640px, calc(100vw - 2rem));
    max-width: none;
    max-height: calc(100dvh - 2rem);
    padding: 0;
    overflow: hidden;
    border: 0;
    border-radius: 18px;
    background: #fff;
    color: var(--v4-ink);
    box-shadow: 0 28px 80px rgba(4, 16, 11, .28);
}

.v4-editor-owner-dialog::backdrop {
    background: rgba(4, 16, 11, .62);
    backdrop-filter: blur(3px);
}

.v4-editor-owner-dialog-form {
    display: grid;
    max-height: calc(100dvh - 2rem);
    overflow: auto;
}

.v4-editor-owner-dialog-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.4rem 1.5rem 1rem;
    border-bottom: 1px solid var(--v4-line);
}

.v4-editor-owner-dialog-eyebrow {
    display: block;
    margin-bottom: .25rem;
    color: var(--v4-green-700);
    font-size: .7rem;
    font-weight: 750;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.v4-editor-owner-dialog-header h2 {
    margin: 0;
    font-size: 1.45rem;
    letter-spacing: -.025em;
}

.v4-editor-owner-dialog-header p {
    max-width: 470px;
    margin: .35rem 0 0;
    color: var(--v4-muted);
    font-size: .86rem;
    line-height: 1.45;
}

.v4-editor-owner-dialog-close {
    flex: 0 0 auto;
    min-width: 42px;
    min-height: 42px;
    padding: .45rem .65rem;
    border: 1px solid var(--v4-line);
    border-radius: 10px;
    background: #fff;
    color: var(--v4-muted);
    font-size: .76rem;
    font-weight: 700;
}

.v4-editor-owner-dialog-close:hover,
.v4-editor-owner-dialog-close:focus-visible {
    border-color: var(--v4-green-700);
    color: var(--v4-green-700);
}

.v4-editor-owner-dialog-fields {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
    min-width: 0;
    margin: 0;
    padding: 1.25rem 1.5rem .9rem;
    border: 0;
}

.v4-editor-owner-dialog-field {
    display: grid;
    align-content: start;
    gap: .35rem;
    min-width: 0;
}

.v4-editor-owner-dialog-field.is-wide,
.v4-editor-owner-dialog-contact-help {
    grid-column: 1 / -1;
}

.v4-editor-owner-dialog-field .form-label {
    margin: 0;
    font-weight: 680;
}

.v4-editor-owner-dialog-help,
.v4-editor-owner-dialog-contact-help,
.v4-editor-owner-dialog-status {
    color: var(--v4-muted);
    font-size: .75rem;
}

.v4-editor-owner-dialog-help {
    color: #8b5d05;
    font-weight: 700;
}

.v4-editor-owner-dialog-contact-help {
    margin: -.25rem 0 0;
}

.v4-editor-owner-dialog-error {
    margin: 0 1.5rem .85rem;
}

.v4-editor-owner-dialog-status {
    min-height: 1.1rem;
    margin: 0 1.5rem .65rem;
}

.v4-editor-owner-dialog-actions {
    display: flex;
    justify-content: flex-end;
    gap: .65rem;
    padding: .9rem 1.5rem 1.2rem;
    border-top: 1px solid var(--v4-line);
    background: var(--v4-surface-soft);
}

.v4-editor-owner-dialog-actions .btn {
    min-height: 44px;
}

.v4-editor-media-workspace {
    display: grid;
    gap: 1rem;
    margin-top: 1rem;
}

.v4-editor-media-card {
    padding: 1.15rem;
}

.v4-editor-media-gate {
    display: grid;
    justify-items: center;
    padding: 2.5rem 1rem;
    text-align: center;
}

.v4-editor-media-gate h3 {
    margin: .75rem 0 .2rem;
}

.v4-editor-media-gate p {
    max-width: 560px;
    color: var(--v4-muted);
}

.v4-editor-media-icon {
    display: grid;
    width: 48px;
    height: 48px;
    place-items: center;
    border-radius: 50%;
    background: var(--v4-green-100);
    color: var(--v4-green-700);
    font-size: 1.7rem;
}

.v4-editor-dropzone {
    display: grid;
    min-height: 128px;
    place-items: center;
    align-content: center;
    gap: .3rem;
    padding: 1rem;
    border: 1.5px dashed #9eb1a6;
    border-radius: 12px;
    background: #f8faf7;
    color: var(--v4-ink);
    cursor: pointer;
    text-align: center;
    transition: border-color .16s ease, background .16s ease;
}

.v4-editor-dropzone:hover,
.v4-editor-dropzone.is-dragging {
    border-color: var(--v4-green-700);
    background: var(--v4-green-100);
}

.v4-editor-dropzone span {
    color: var(--v4-muted);
    font-size: .78rem;
}

.v4-editor-upload-status {
    min-height: 1.4rem;
    margin: .65rem 0;
    color: var(--v4-muted);
    font-size: .8rem;
}

.v4-editor-upload-status[data-content="upload-progress"],
.v4-editor-upload-status[data-content="upload-result"] {
    padding: .65rem .75rem;
    border: 1px solid var(--v4-line);
    border-radius: 9px;
    background: var(--v4-surface-soft);
    color: var(--v4-ink);
}

.v4-editor-upload-queue {
    display: grid;
    gap: .5rem;
    margin-bottom: .75rem;
}

.v4-editor-upload-item {
    display: grid;
    grid-template-columns: 46px 1fr auto;
    align-items: center;
    gap: .7rem;
    padding: .55rem;
    border: 1px solid var(--v4-line);
    border-radius: 10px;
}

.v4-editor-upload-item.has-error {
    border-color: #e1a9ad;
    background: var(--v4-red-soft);
}

.v4-editor-upload-item.is-uploading {
    border-color: rgba(29, 107, 75, .42);
    background: var(--v4-green-100);
}

.v4-editor-upload-item.is-done {
    border-color: rgba(29, 107, 75, .28);
}

.v4-editor-upload-item img {
    width: 46px;
    height: 38px;
    border-radius: 6px;
    object-fit: cover;
}

.v4-editor-upload-item strong,
.v4-editor-upload-item span {
    display: block;
}

.v4-editor-upload-item span {
    color: var(--v4-muted);
    font-size: .74rem;
}

.v4-editor-upload-item-state::before {
    display: inline-block;
    width: .45rem;
    height: .45rem;
    margin-right: .4rem;
    border-radius: 50%;
    background: #87938d;
    content: "";
    vertical-align: .05rem;
}

.v4-editor-upload-item.is-uploading .v4-editor-upload-item-state::before {
    background: var(--v4-green-700);
    box-shadow: 0 0 0 .2rem rgba(29, 107, 75, .13);
}

.v4-editor-upload-item.is-done .v4-editor-upload-item-state::before { background: var(--v4-green-700); }
.v4-editor-upload-item.has-error .v4-editor-upload-item-state::before { background: var(--v4-red-700, #a2343c); }

.v4-editor-images {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: .8rem;
}

.v4-editor-image {
    min-width: 0;
    padding: .65rem;
    border: 1px solid var(--v4-line);
    border-radius: 11px;
    background: #fff;
    cursor: default;
}

.v4-editor-image[draggable="true"] {
    cursor: grab;
}

.v4-editor-image.is-dragging {
    opacity: .55;
}

.v4-editor-image-preview {
    position: relative;
    display: block;
    width: 100%;
    height: 155px;
    margin-bottom: .65rem;
    padding: 0;
    overflow: hidden;
    border: 0;
    border-radius: 8px;
    background: var(--v4-surface-soft);
    cursor: zoom-in;
}

.v4-editor-image-preview:focus-visible {
    outline: 3px solid rgba(29, 107, 75, .32);
    outline-offset: 3px;
}

.v4-editor-image-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.v4-editor-image-placeholder {
    display: flex;
    width: 100%;
    height: 100%;
    padding: 1rem;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    color: var(--v4-muted);
    text-align: center;
}

.v4-editor-image-placeholder strong,
.v4-editor-image-placeholder span {
    display: block;
}

.v4-editor-image-placeholder strong { margin-top: .25rem; color: var(--v4-ink); font-size: .82rem; }
.v4-editor-image-placeholder span { font-size: .7rem; }
.v4-editor-image-placeholder-icon { color: var(--v4-green-700); font-size: 1.5rem !important; line-height: 1; }

.v4-editor-photo-lightbox-stage .v4-editor-image-placeholder {
    min-height: 280px;
    color: rgba(255, 255, 255, .72);
}

.v4-editor-photo-lightbox-stage .v4-editor-image-placeholder strong { color: #fff; font-size: 1rem; }

.v4-editor-image-badges {
    position: absolute;
    top: .5rem;
    left: .5rem;
    right: .5rem;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: .35rem;
    pointer-events: none;
}

.v4-editor-cover-badge,
.v4-editor-storage-badge {
    padding: .24rem .48rem;
    border-radius: 999px;
    background: var(--v4-forest-950);
    color: #fff;
    font-size: .66rem;
    font-weight: 700;
}

.v4-editor-storage-badge { margin-left: auto; background: rgba(4, 16, 11, .82); }
.v4-editor-storage-badge.is-external { background: rgba(56, 67, 62, .88); }

.v4-editor-image-actions {
    flex-wrap: wrap;
    margin-top: .55rem;
}

body.v4-editor-lightbox-open {
    overflow: hidden;
}

.v4-editor-photo-lightbox {
    width: min(1100px, calc(100vw - 2rem));
    max-width: none;
    max-height: calc(100dvh - 2rem);
    padding: 0;
    overflow: hidden;
    border: 0;
    border-radius: 16px;
    background: #fff;
    color: var(--v4-ink);
    box-shadow: 0 28px 80px rgba(4, 16, 11, .38);
}

.v4-editor-photo-lightbox::backdrop {
    background: rgba(4, 16, 11, .78);
    backdrop-filter: blur(3px);
}

.v4-editor-photo-lightbox-shell {
    display: grid;
    grid-template-rows: auto minmax(0, 1fr) auto auto;
    max-height: calc(100dvh - 2rem);
}

.v4-editor-photo-lightbox-header,
.v4-editor-photo-lightbox-navigation {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .75rem;
    padding: .8rem 1rem;
}

.v4-editor-photo-lightbox-header {
    border-bottom: 1px solid var(--v4-line);
}

.v4-editor-photo-lightbox-header h2 {
    margin: 0;
    font-size: 1rem;
}

.v4-editor-photo-lightbox-close {
    padding: .45rem .7rem;
    border: 1px solid var(--v4-line);
    border-radius: 8px;
    background: #fff;
    color: var(--v4-ink);
    cursor: pointer;
}

.v4-editor-photo-lightbox-stage {
    display: grid;
    min-height: 280px;
    place-items: center;
    overflow: hidden;
    background: #07120e;
}

.v4-editor-photo-lightbox-stage img {
    display: block;
    max-width: 100%;
    max-height: min(72dvh, 760px);
    object-fit: contain;
}

.v4-editor-photo-lightbox-caption {
    margin: 0;
    padding: .8rem 1rem .25rem;
    color: var(--v4-muted);
    overflow-wrap: anywhere;
}

.v4-editor-photo-lightbox-navigation {
    justify-content: flex-end;
    padding-top: .55rem;
}

.v4-editor-media-links {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.v4-editor-media-row {
    display: grid;
    grid-template-columns: minmax(120px, .7fr) 2fr auto;
    gap: .7rem;
    align-items: end;
    margin-bottom: .8rem;
}

.v4-editor-media-row-actions {
    display: flex;
    align-items: flex-end;
    justify-content: flex-end;
    gap: .45rem;
    min-height: 38px;
}

.v4-editor-media-preview-state {
    display: flex;
    align-items: center;
}

.v4-editor-media-preview-unavailable {
    display: inline-block;
    max-width: 13rem;
    color: var(--v4-muted);
    font-size: .72rem;
    line-height: 1.25;
}

.v4-editor-empty-media {
    grid-column: 1 / -1;
    margin: 0;
    padding: 1rem;
    border-radius: 9px;
    background: var(--v4-surface-soft);
    color: var(--v4-muted);
    font-size: .8rem;
    text-align: center;
}

.v4-editor-actions {
    position: sticky;
    bottom: .75rem;
    z-index: 15;
    display: flex;
    align-items: center;
    gap: .65rem;
    margin-top: 1.1rem;
    padding: .8rem;
    border: 1px solid rgba(15, 33, 26, .1);
    border-radius: 13px;
    background: rgba(255, 255, 255, .96);
    box-shadow: 0 -4px 24px rgba(15, 33, 26, .1);
    backdrop-filter: blur(10px);
}

.v4-editor-actions > span {
    flex: 1 1 auto;
    color: var(--v4-muted);
    font-size: .78rem;
}

.v4-editor-detail-sections {
    display: grid;
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.v4-property-editor .market-data-building {
    margin: 1rem 0;
}

@media (max-width: 1100px) {
    .v4-editor-overview { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .v4-editor-progress { display: none; }
    .v4-editor-images { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 800px) {
    .v4-property-editor { padding-top: 0; }
    .v4-editor-page-heading { flex-wrap: wrap; }
    .v4-editor-workspace { top: 67px; padding: .42rem; }
    .v4-editor-card-grid,
    .v4-editor-media-links { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
    .v4-property-editor {
        padding-bottom: calc(5.5rem + env(safe-area-inset-bottom, 0px));
    }
    .v4-editor-overview,
    .v4-editor-grid,
    .v4-editor-images,
    .v4-editor-media-row { grid-template-columns: 1fr; }
    .v4-editor-media-row-actions { justify-content: flex-start; flex-wrap: wrap; }
    .v4-editor-media-preview-unavailable { max-width: none; }
    .v4-editor-upload-item { grid-template-columns: 40px minmax(0, 1fr); }
    .v4-editor-upload-item img { width: 40px; height: 36px; }
    .v4-editor-upload-item > .btn { grid-column: 1 / -1; width: 100%; }
    .v4-editor-overview { gap: .5rem; }
    .v4-editor-overview-card { padding: .75rem .85rem; }
    .v4-editor-card { padding: .9rem; }
    .v4-editor-workspace { z-index: 20; }
    .v4-editor-field,
    .v4-editor-card,
    .v4-editor-media-workspace { scroll-margin-block: 9rem 6rem; }
    .v4-editor-actions {
        position: static;
        bottom: auto;
        z-index: auto;
        flex-wrap: wrap;
        margin-bottom: 1rem;
    }
    .v4-editor-actions > span { flex-basis: 100%; }
    .v4-editor-actions .btn { flex: 1 1 auto; }
    .v4-editor-inline-action { align-items: stretch; flex-direction: column; }
    .v4-editor-owner-dialog {
        width: calc(100vw - 1rem);
        max-height: calc(100dvh - 1rem);
        border-radius: 14px;
    }
    .v4-editor-owner-dialog-form { max-height: calc(100dvh - 1rem); }
    .v4-editor-owner-dialog-header { padding: 1.1rem 1rem .85rem; }
    .v4-editor-owner-dialog-fields { grid-template-columns: 1fr; padding: 1rem; }
    .v4-editor-owner-dialog-field.is-wide,
    .v4-editor-owner-dialog-contact-help { grid-column: 1; }
    .v4-editor-owner-dialog-error,
    .v4-editor-owner-dialog-status { margin-inline: 1rem; }
    .v4-editor-owner-dialog-actions {
        position: sticky;
        bottom: 0;
        padding: .8rem 1rem max(.8rem, env(safe-area-inset-bottom, 0px));
    }
    .v4-editor-owner-dialog-actions .btn { flex: 1 1 50%; }
    .v4-market-reference { grid-template-columns: 1fr; }
    .v4-market-reference > .btn { width: 100%; }
    .v4-market-reference-feedback { grid-column: 1; }
    .v4-editor-location-assist-grid,
    .v4-editor-location-coordinate-grid { grid-template-columns: 1fr; }
    .v4-editor-location-coordinate-action .btn { width: 100%; }
    .v4-editor-location-map { height: 300px; }
    .v4-editor-photo-lightbox {
        width: calc(100vw - 1rem);
        max-height: calc(100dvh - 1rem);
        border-radius: 12px;
    }
    .v4-editor-photo-lightbox-shell { max-height: calc(100dvh - 1rem); }
    .v4-editor-photo-lightbox-stage { min-height: 220px; }
    .v4-editor-photo-lightbox-stage img { max-height: 65dvh; }
    .v4-editor-photo-lightbox-navigation .btn { flex: 1 1 50%; }
}

@media (prefers-reduced-motion: reduce) {
    .v4-editor-overview-card,
    .v4-editor-progress-bar { transition: none; }
}
