:root {
    --dark: #144536;
    --green: #377f55;
    --green-2: #2f6c49;
    --gold: #a28448;
    --bg: #f7f8f5;
    --text: #1e2a24;
    --muted: #6d7b73;
    --line: #dfe6df;
    --white: #fff;
    --danger: #a74444;
    --radius: 20px;
    --shadow: 0 12px 34px rgba(20,69,54,.09)
}

* {
    box-sizing: border-box
}

html {
    scroll-behavior: smooth
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: Inter,Manrope,"Segoe UI",Arial,sans-serif;
    font-size: 15px;
    line-height: 1.5
}

a {
    color: inherit;
    text-decoration: none
}

button, input, select, textarea {
    font: inherit
}

button {
    cursor: pointer
}

img {
    max-width: 100%;
    display: block
}

[hidden] {
    display: none !important
}

.app-header {
    position: sticky;
    top: 0;
    z-index: 100;
    min-height: 72px;
    padding: 10px clamp(18px,3vw,52px);
    display: flex;
    align-items: center;
    gap: 28px;
    background: rgba(20,69,54,.97);
    color: #fff;
    box-shadow: 0 5px 24px rgba(20,69,54,.14);
    backdrop-filter: blur(14px)
}

.brand {
    display: flex;
    align-items: center;
    gap: 11px;
    min-width: max-content
}

    .brand img {
        width: 44px;
        height: 44px
    }

    .brand span {
        display: flex;
        flex-direction: column;
        line-height: 1.08
    }

    .brand strong {
        font-size: 20px;
        letter-spacing: .2px
    }

    .brand small {
        opacity: .7;
        font-size: 11px;
        margin-top: 4px
    }

.main-nav {
    display: flex;
    align-items: center;
    gap: 6px
}

    .main-nav a {
        padding: 10px 14px;
        border-radius: 11px;
        color: rgba(255,255,255,.85);
        font-weight: 650
    }

        .main-nav a:hover {
            background: rgba(255,255,255,.1);
            color: #fff
        }

.account-area {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 12px
}

    .account-area form {
        margin: 0
    }

.account-name {
    max-width: 190px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 13px;
    color: rgba(255,255,255,.76)
}

.nav-toggle {
    display: none;
    margin-left: auto;
    border: 0;
    background: transparent;
    color: #fff;
    font-size: 25px
}

.page-shell {
    width: min(1240px,calc(100% - 36px));
    margin: 34px auto 70px;
    min-height: calc(100vh - 170px)
}

.page-shell-wide {
    width: min(1580px,calc(100% - 36px))
}

.app-footer {
    padding: 24px;
    text-align: center;
    background: var(--dark);
    color: rgba(255,255,255,.62);
    font-size: 12px
}

.panel {
    background: #fff;
    border: 1px solid rgba(20,69,54,.08);
    border-radius: var(--radius);
    box-shadow: var(--shadow)
}

.wide-panel {
    width: 100%
}

.narrow-panel {
    max-width: 850px
}

.page-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 24px
}

    .page-heading.compact {
        align-items: center
    }

    .page-heading h1 {
        font-family: "Golos Text",Inter,sans-serif;
        font-size: clamp(30px,4vw,48px);
        line-height: 1.08;
        margin: 5px 0 8px;
        letter-spacing: -1.3px
    }

    .page-heading p {
        margin: 0;
        color: var(--muted);
        font-size: 16px
    }

.page-heading-wide {
    padding-inline: 4px
}

.eyebrow {
    display: block;
    color: var(--green);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 1.5px;
    text-transform: uppercase
}

.back-link {
    display: inline-block;
    margin-bottom: 7px;
    color: var(--green);
    font-weight: 700
}

.heading-actions, .row-actions {
    display: flex;
    align-items: center;
    gap: 10px
}

    .heading-actions form, .row-actions form {
        margin: 0
    }

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 1px solid transparent;
    border-radius: 12px;
    padding: 11px 17px;
    font-weight: 750;
    transition: .18s ease
}

    .btn:hover {
        transform: translateY(-1px)
    }

.btn-primary {
    background: var(--green);
    color: #fff;
    box-shadow: 0 7px 18px rgba(55,127,85,.18)
}

    .btn-primary:hover {
        background: var(--green-2)
    }

.btn-secondary {
    background: #fff;
    color: var(--text);
    border-color: var(--line)
}

.btn-danger {
    background: #fff;
    color: var(--danger);
    border-color: #efd0d0
}

.btn-ghost {
    background: rgba(255,255,255,.09);
    color: #fff;
    border-color: rgba(255,255,255,.16)
}

.btn-large {
    padding: 14px 22px;
    font-size: 16px
}

.btn-small {
    padding: 8px 12px;
    font-size: 13px
}

.btn-icon {
    white-space: nowrap
}

.icon-button {
    position: relative;
    z-index: 3;
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--line);
    border-radius: 11px;
    background: #fff;
    color: var(--green);
    font-size: 18px
}

    .icon-button:hover {
        background: #edf6f0
    }

.above-link {
    position: relative;
    z-index: 3
}

.alert {
    position: fixed;
    top: 88px;
    right: 24px;
    z-index: 300;
    max-width: 420px;
    padding: 14px 18px;
    border-radius: 14px;
    box-shadow: var(--shadow);
    transition: .4s
}

.alert-success {
    background: #e9f7ee;
    color: #205c39;
    border: 1px solid #bee2ca
}

.alert.hide {
    opacity: 0;
    transform: translateY(-12px)
}

.validation-summary {
    padding: 13px 16px;
    margin-bottom: 18px;
    background: #fff0f0;
    border: 1px solid #efc9c9;
    color: #8c3030;
    border-radius: 12px
}

    .validation-summary ul {
        margin: 0;
        padding-left: 20px
    }

.field-validation-error {
    display: block;
    color: #a33d3d;
    font-size: 12px;
    margin-top: 5px
}

.filters {
    padding: 0;
    margin-bottom: 28px
}

    .filters summary {
        list-style: none;
        cursor: pointer;
        padding: 20px 22px;
        font-weight: 800;
        display: flex;
        justify-content: space-between
    }


    .filters[open] summary {
        border-bottom: 1px solid var(--line)
    }

.filter-grid {
    display: grid;
    grid-template-columns: repeat(5,minmax(150px,1fr));
    gap: 15px;
    padding: 20px 22px 23px
}

.listing-filters {
    grid-template-columns: repeat(6,minmax(135px,1fr))
}

.field-span-2 {
    grid-column: span 2
}

.filter-actions {
    display: flex;
    align-items: flex-end;
    gap: 10px
}

.field {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0
}

    .field > span:first-child {
        font-size: 12px;
        font-weight: 750;
        color: #596860
    }

    .field input, .field select, .field textarea {
        width: 100%;
        min-height: 44px;
        border: 1px solid #d5ded6;
        border-radius: 11px;
        background: #fff;
        color: var(--text);
        padding: 10px 12px;
        outline: none;
        transition: .18s
    }

    .field textarea {
        resize: vertical
    }

        .field input:focus, .field select:focus, .field textarea:focus {
            border-color: var(--green);
            box-shadow: 0 0 0 3px rgba(55,127,85,.11)
        }

.field-wide {
    grid-column: 1/-1
}

.check-field {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700
}

    .check-field input {
        width: 18px;
        height: 18px;
        accent-color: var(--green)
    }

.client-list {
    display: grid;
    gap: 14px
}

.client-card {
    position: relative;
    display: grid;
    grid-template-columns: 58px minmax(0,1fr) minmax(210px,auto) auto;
    align-items: center;
    gap: 17px;
    padding: 18px 20px;
    background: #fff;
    border: 1px solid rgba(20,69,54,.08);
    border-radius: 17px;
    box-shadow: 0 6px 20px rgba(20,69,54,.05);
    transition: .2s
}

    .client-card:hover {
        transform: translateY(-2px);
        box-shadow: var(--shadow);
        border-color: rgba(55,127,85,.25)
    }

.card-link {
    position: absolute;
    inset: 0;
    z-index: 1
}

.client-avatar {
    width: 52px;
    height: 52px;
    border-radius: 16px;
    display: grid;
    place-items: center;
    background: #e9f2ec;
    color: var(--green);
    font-size: 23px;
    font-weight: 850
}

.card-topline {
    display: flex;
    align-items: center;
    gap: 10px
}

.client-main h2 {
    margin: 0;
    font-size: 18px
}

.phone-link {
    position: relative;
    z-index: 2;
    color: var(--green);
    font-weight: 750
}

    .phone-link.big {
        font-size: 18px
    }

.client-request {
    display: flex;
    gap: 12px;
    margin-top: 8px;
    color: var(--muted);
    font-size: 13px
}

    .client-request strong {
        color: var(--text)
    }

.client-budget {
    display: flex;
    flex-direction: column;
    text-align: right
}

    .client-budget small {
        color: var(--muted)
    }

    .client-budget strong {
        font-size: 18px
    }

    .client-budget span {
        font-size: 12px;
        color: var(--muted)
    }

.card-actions {
    display: flex;
    gap: 8px
}

.status {
    display: inline-flex;
    align-items: center;
    width: max-content;
    border-radius: 999px;
    padding: 5px 9px;
    font-size: 11px;
    font-weight: 800;
    background: #edf1ee;
    color: #5f6c64
}

.status-active {
    background: #e7f5ec;
    color: #287147
}

.status-found, .status-sold {
    background: #e9edf5;
    color: #526585
}

.status-reserved {
    background: #fbf2dc;
    color: #8b6c22
}

.status-archived {
    background: #f0f0f0;
    color: #757575
}

.listing-grid {
    display: grid;
    grid-template-columns: repeat(4,minmax(0,1fr));
    gap: 21px
}

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

.listing-card {
    position: relative;
    overflow: hidden;
    background: #fff;
    border: 1px solid rgba(20,69,54,.08);
    border-radius: 20px;
    box-shadow: 0 8px 24px rgba(20,69,54,.07);
    transition: .22s
}

    .listing-card:hover {
        transform: translateY(-4px);
        box-shadow: var(--shadow)
    }

.listing-image {
    position: relative;
    aspect-ratio: 4/3;
    overflow: hidden;
    background: #edf1ed
}

    .listing-image > img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: .4s
    }

.listing-card:hover .listing-image > img {
    transform: scale(1.035)
}

.listing-image .status {
    position: absolute;
    top: 12px;
    left: 12px
}

.photo-count {
    position: absolute;
    right: 12px;
    bottom: 12px;
    padding: 5px 9px;
    border-radius: 9px;
    background: rgba(20,35,28,.72);
    color: #fff;
    font-size: 11px
}

.image-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    gap: 9px;
    align-items: center;
    justify-content: center;
    color: #829087;
    font-size: 12px
}

    .image-placeholder img {
        width: 62px;
        opacity: .28
    }

    .image-placeholder.large {
        min-height: 450px
    }

.listing-body {
    padding: 18px
}

.listing-meta {
    display: flex;
    gap: 7px;
    flex-wrap: wrap
}

    .listing-meta span {
        padding: 4px 8px;
        background: #edf5ef;
        color: var(--green);
        border-radius: 7px;
        font-size: 10px;
        font-weight: 800;
        text-transform: uppercase;
        letter-spacing: .4px
    }

.listing-body h2, .listing-body h3 {
    margin: 10px 0 10px;
    line-height: 1.25;
    font-size: 17px
}

.price {
    display: block;
    color: var(--dark);
    font-size: 25px;
    letter-spacing: -.7px
}

    .price small {
        font-size: 12px
    }

.property-facts {
    display: flex;
    gap: 7px;
    margin: 13px 0
}

    .property-facts span {
        padding: 5px 8px;
        border: 1px solid var(--line);
        border-radius: 8px;
        font-size: 11px;
        font-weight: 700
    }

.location {
    margin: 0;
    color: var(--muted);
    font-size: 12px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis
}

.listing-card > .card-actions {
    position: absolute;
    right: 12px;
    top: 12px
}

.match-score {
    position: absolute;
    right: 12px;
    top: 12px;
    z-index: 2;
    background: var(--gold);
    color: #fff;
    border-radius: 999px;
    padding: 8px 10px;
    font-weight: 850
}

.listing-card .listing-body p {
    font-size: 12px;
    color: var(--muted)
}

.empty-state {
    text-align: center;
    padding: 58px 24px;
    color: var(--muted)
}

    .empty-state h1, .empty-state h2 {
        color: var(--text);
        margin: 5px
    }

.empty-icon {
    font-size: 40px;
    margin-bottom: 8px
}

.muted {
    color: var(--muted)
}

.editor-form {
    padding: 8px 28px 0
}

.form-section {
    padding: 28px 0;
    border-bottom: 1px solid var(--line)
}

.section-heading {
    display: flex;
    gap: 15px;
    align-items: flex-start;
    margin-bottom: 20px
}

    .section-heading > span {
        width: 37px;
        height: 37px;
        border-radius: 11px;
        display: grid;
        place-items: center;
        background: var(--dark);
        color: #fff;
        font-size: 11px;
        font-weight: 850
    }

    .section-heading h2 {
        margin: 0 0 3px;
        font-size: 21px
    }

    .section-heading p {
        margin: 0;
        color: var(--muted);
        font-size: 13px
    }

.form-grid {
    display: grid;
    gap: 16px
}

    .form-grid.two {
        grid-template-columns: repeat(2,minmax(0,1fr))
    }

    .form-grid.three {
        grid-template-columns: repeat(3,minmax(0,1fr));
        margin-bottom: 16px
    }

    .form-grid.four {
        grid-template-columns: repeat(4,minmax(0,1fr))
    }

.sticky-save {
    position: sticky;
    bottom: 0;
    z-index: 10;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding: 17px 0;
    background: linear-gradient(180deg,rgba(255,255,255,0),#fff 22%)
}

.upload-zone {
    display: flex;
    min-height: 145px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    border: 2px dashed #bfd0c2;
    border-radius: 17px;
    background: #f8fbf8;
    color: var(--green);
    transition: .2s
}

    .upload-zone input {
        position: absolute;
        opacity: 0;
        pointer-events: none
    }

    .upload-zone span {
        font-size: 12px;
        color: var(--muted)
    }

    .upload-zone.dragging {
        background: #e9f5ed;
        border-color: var(--green);
        transform: scale(1.006)
    }

.image-editor {
    display: grid;
    grid-template-columns: repeat(5,minmax(120px,1fr));
    gap: 13px;
    margin-bottom: 15px
}

.editable-image {
    position: relative;
    overflow: hidden;
    border: 2px solid transparent;
    border-radius: 14px;
    background: #edf1ed;
    aspect-ratio: 4/3
}

    .editable-image img {
        width: 100%;
        height: 100%;
        object-fit: cover
    }

    .editable-image.dragging-card {
        opacity: .45;
        border-color: var(--green)
    }

    .editable-image.removed {
        display: none
    }

.main-photo-choice {
    position: absolute;
    left: 7px;
    bottom: 7px;
    background: rgba(255,255,255,.92);
    padding: 5px 7px;
    border-radius: 8px;
    font-size: 10px;
    font-weight: 800
}

    .main-photo-choice input {
        accent-color: var(--green)
    }

.remove-image {
    position: absolute;
    right: 7px;
    top: 7px;
    border: 0;
    border-radius: 8px;
    background: rgba(125,34,34,.88);
    color: #fff;
    padding: 5px 7px;
    font-size: 10px
}

.drag-handle {
    position: absolute;
    right: 8px;
    bottom: 8px;
    display: grid;
    place-items: center;
    width: 24px;
    height: 24px;
    border-radius: 7px;
    background: rgba(20,69,54,.82);
    color: #fff;
    cursor: grab
}

.auth-page {
    min-height: calc(100vh - 220px);
    display: grid;
    place-items: center
}

.auth-card {
    width: min(440px,100%);
    padding: 36px;
    background: #fff;
    border-radius: 24px;
    box-shadow: var(--shadow);
    border: 1px solid rgba(20,69,54,.08);
    text-align: center
}

.auth-card-wide {
    width: min(650px,100%)
}

.auth-logo {
    width: 76px;
    margin: 0 auto 15px
}

.auth-card h1 {
    margin: 5px 0
}

.stack-form {
    display: grid;
    gap: 15px;
    margin-top: 23px;
    text-align: left
}

.hero {
    position: relative;
    min-height: calc(100vh - 142px);
    margin: -34px calc((100vw - min(1580px,calc(100vw - 36px)))/-2) -70px;
    overflow: hidden;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg,#173e33,#0e2b23);
    color: #fff
}

.hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transform: scale(1.04);
    transition: opacity 1.5s,transform 8s
}

    .hero-bg.active {
        opacity: 1;
        transform: scale(1)
    }

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(100deg,rgba(10,38,29,.86),rgba(10,38,29,.64)),radial-gradient(circle at 70% 20%,rgba(162,132,72,.25),transparent 35%)
}

.hero-content {
    position: relative;
    z-index: 2;
    width: min(1050px,90%);
    text-align: center;
    padding: 60px 20px
}

.hero-logo {
    width: 115px;
    margin: 0 auto 16px;
    filter: drop-shadow(0 8px 20px rgba(0,0,0,.22))
}

.hero-kicker {
    font-size: 12px;
    letter-spacing: 2.8px;
    text-transform: uppercase;
    color: #dccb9f;
    font-weight: 800
}

.hero h1 {
    font-family: "Golos Text",Inter,sans-serif;
    font-size: clamp(62px,10vw,130px);
    line-height: .92;
    margin: 13px 0;
    letter-spacing: -6px
}

.hero p {
    font-size: clamp(16px,2vw,22px);
    color: rgba(255,255,255,.72)
}

.hero-actions {
    display: grid;
    grid-template-columns: repeat(3,minmax(0,1fr));
    gap: 15px;
    margin: 42px auto 0
}

    .hero-actions .hero-button:nth-last-child(2):first-child, .hero-actions .hero-button:first-child:nth-last-child(2) {
        grid-column: auto
    }

.hero-button {
    min-height: 125px;
    padding: 22px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-end;
    text-align: left;
    border: 1px solid rgba(255,255,255,.19);
    border-radius: 18px;
    background: rgba(255,255,255,.09);
    backdrop-filter: blur(12px);
    transition: .25s
}

    .hero-button:hover {
        transform: translateY(-5px);
        background: rgba(55,127,85,.72);
        border-color: rgba(255,255,255,.4)
    }

    .hero-button span {
        font-size: 11px;
        text-transform: uppercase;
        letter-spacing: 1.5px;
        color: rgba(255,255,255,.62)
    }

    .hero-button strong {
        font-size: 21px
    }

.hero-button-gold:hover {
    background: rgba(162,132,72,.77)
}

.guest-note {
    margin-top: 20px;
    color: rgba(255,255,255,.58);
    font-size: 12px
}

.details-grid {
    display: grid;
    grid-template-columns: minmax(0,3fr) minmax(250px,1fr);
    gap: 20px
}

.details-panel, .owner-panel {
    padding: 25px
}

    .details-panel h2 {
        margin-top: 0
    }

.detail-status {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 23px;
    color: var(--muted);
    font-size: 12px
}

.spec-list {
    display: grid;
    grid-template-columns: repeat(2,minmax(0,1fr));
    gap: 1px;
    background: var(--line);
    border: 1px solid var(--line);
    border-radius: 14px;
    overflow: hidden
}

    .spec-list.four-columns {
        grid-template-columns: repeat(4,minmax(0,1fr))
    }

    .spec-list div {
        background: #fff;
        padding: 13px 15px
    }

    .spec-list dt {
        font-size: 11px;
        color: var(--muted)
    }

    .spec-list dd {
        margin: 3px 0 0;
        font-weight: 750
    }

.note-box, .description-block {
    margin-top: 18px;
    padding: 17px;
    border-radius: 13px;
    background: #f3f6f3
}

    .note-box p, .description-block p {
        white-space: pre-line;
        margin-bottom: 0
    }

.owner-panel {
    display: flex;
    flex-direction: column;
    gap: 7px;
    height: max-content
}

    .owner-panel h3 {
        margin: 0 0 8px
    }

    .owner-panel span, .owner-panel small {
        color: var(--muted)
    }

    .owner-panel hr {
        width: 100%;
        border: 0;
        border-top: 1px solid var(--line);
        margin: 14px 0
    }

.matches-section {
    margin-top: 34px
}

.section-title-row {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: 17px
}

    .section-title-row h2 {
        margin: 3px 0 0;
        font-size: 28px
    }

.count-badge {
    display: grid;
    place-items: center;
    min-width: 38px;
    height: 38px;
    border-radius: 999px;
    background: var(--dark);
    color: #fff;
    font-weight: 850
}

.match-cards {
    display: grid;
    grid-template-columns: repeat(3,minmax(0,1fr));
    gap: 15px
}

.match-card {
    position: relative;
    padding: 17px;
    display: flex;
    align-items: center;
    gap: 14px
}

    .match-card h3 {
        margin: 0
    }

    .match-card p {
        margin: 5px 0 0;
        color: var(--muted);
        font-size: 11px
    }

.match-circle {
    flex: 0 0 auto;
    width: 58px;
    height: 58px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: #e9f4ed;
    color: var(--green);
    font-weight: 900;
    font-size: 17px
}

.property-showcase {
    display: grid;
    grid-template-columns: minmax(0,3fr) minmax(310px,1fr);
    gap: 20px
}

.gallery {
    overflow: hidden
}

.gallery-main {
    position: relative;
    aspect-ratio: 16/9;
    background: #edf1ed;
    overflow: hidden
}

    .gallery-main > img {
        width: 100%;
        height: 100%;
        object-fit: cover
    }

    .gallery-main > .status {
        position: absolute;
        left: 16px;
        top: 16px
    }

.gallery-thumbs {
    display: flex;
    gap: 9px;
    padding: 12px;
    overflow: auto
}

.gallery-thumb {
    flex: 0 0 105px;
    height: 72px;
    border: 2px solid transparent;
    border-radius: 10px;
    overflow: hidden;
    padding: 0;
    background: #eee
}

    .gallery-thumb.active {
        border-color: var(--green)
    }

    .gallery-thumb img {
        width: 100%;
        height: 100%;
        object-fit: cover
    }

.property-summary {
    padding: 28px;
    display: flex;
    flex-direction: column
}

.property-price {
    font-size: clamp(32px,4vw,52px);
    letter-spacing: -2px;
    margin: 20px 0
}

    .property-price small {
        font-size: 14px
    }

.summary-facts {
    display: grid;
    grid-template-columns: repeat(3,1fr);
    gap: 8px
}

    .summary-facts div {
        padding: 13px 9px;
        border-radius: 12px;
        background: #f2f5f2;
        display: flex;
        flex-direction: column
    }

    .summary-facts strong {
        font-size: 20px
    }

    .summary-facts span {
        font-size: 10px;
        color: var(--muted)
    }

.owner-contact {
    margin-top: auto;
    padding-top: 25px;
    display: flex;
    flex-direction: column;
    border-top: 1px solid var(--line)
}

    .owner-contact span {
        font-size: 11px;
        color: var(--muted)
    }

    .owner-contact a {
        color: var(--green);
        font-size: 21px;
        font-weight: 850
    }

.property-details-grid {
    margin-top: 20px
}

.video-section {
    margin-top: 25px;
    padding: 25px
}

.video-frame {
    aspect-ratio: 16/9;
    overflow: hidden;
    border-radius: 14px
}

    .video-frame iframe {
        width: 100%;
        height: 100%;
        border: 0
    }

.table-wrap {
    overflow: auto
}

.data-table {
    width: 100%;
    border-collapse: collapse
}

    .data-table th {
        text-align: left;
        padding: 14px 17px;
        background: #f1f5f2;
        color: #5f6b64;
        font-size: 11px;
        text-transform: uppercase;
        letter-spacing: .6px
    }

    .data-table td {
        padding: 16px 17px;
        border-top: 1px solid var(--line);
        vertical-align: middle
    }

        .data-table td strong, .data-table td small {
            display: block
        }

        .data-table td small {
            color: var(--muted);
            margin-top: 3px
        }

.score-pill {
    display: inline-grid;
    place-items: center;
    width: 55px;
    height: 38px;
    border-radius: 12px;
    font-weight: 900
}

.score-high {
    background: #def2e5;
    color: #246e42
}

.score-medium {
    background: #fbf1d5;
    color: #8b671a
}

.score-low {
    background: #f0ece5;
    color: #7b6a4b
}

.reason-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 5px
}

    .reason-tags span {
        font-size: 10px;
        padding: 4px 7px;
        border-radius: 6px;
        background: #f1f4f1;
        color: #5f6e65
    }

.threshold-form {
    display: flex;
    align-items: flex-end;
    gap: 8px
}

    .threshold-form input {
        width: 90px
    }

@media(max-width:1200px) {
    .listing-grid {
        grid-template-columns: repeat(3,1fr)
    }

    .filter-grid, .listing-filters {
        grid-template-columns: repeat(4,1fr)
    }

    .form-grid.four {
        grid-template-columns: repeat(3,1fr)
    }

    .spec-list.four-columns {
        grid-template-columns: repeat(3,1fr)
    }

    .image-editor {
        grid-template-columns: repeat(4,1fr)
    }
}

@media(max-width:900px) {
    .app-header {
        flex-wrap: wrap
    }

    .nav-toggle {
        display: block
    }

    .main-nav {
        display: none;
        order: 4;
        width: 100%;
        flex-direction: column;
        align-items: stretch
    }

        .main-nav.open {
            display: flex
        }

        .main-nav a {
            padding: 11px
        }

    .account-area {
        margin-left: 0
    }

    .account-name {
        display: none
    }

    .page-shell, .page-shell-wide {
        width: min(100% - 24px,1000px);
        margin-top: 24px
    }

    .page-heading {
        align-items: flex-start;
        flex-direction: column
    }

    .filter-grid, .listing-filters {
        grid-template-columns: repeat(2,1fr)
    }

    .listing-grid, .compact-grid {
        grid-template-columns: repeat(2,1fr)
    }

    .client-card {
        grid-template-columns: 52px 1fr auto
    }

    .client-budget {
        grid-column: 2;
        text-align: left
    }

    .form-grid.four, .form-grid.three {
        grid-template-columns: repeat(2,1fr)
    }

    .property-showcase, .details-grid {
        grid-template-columns: 1fr
    }

    .property-summary {
        min-height: 300px
    }

    .match-cards {
        grid-template-columns: repeat(2,1fr)
    }

    .hero-actions {
        grid-template-columns: 1fr
    }

    .hero-button {
        min-height: 95px
    }

    .hero h1 {
        letter-spacing: -3px
    }

    .spec-list.four-columns {
        grid-template-columns: repeat(2,1fr)
    }

    .image-editor {
        grid-template-columns: repeat(3,1fr)
    }
}

@media(max-width:600px) {
    body {
        font-size: 14px
    }

    .page-shell, .page-shell-wide {
        width: calc(100% - 18px)
    }

    .page-heading h1 {
        font-size: 34px
    }

    .page-heading .btn {
        width: 100%
    }

    .filter-grid, .listing-filters, .form-grid.two, .form-grid.three, .form-grid.four {
        grid-template-columns: 1fr
    }

    .field-span-2, .field-wide {
        grid-column: auto
    }

    .listing-grid, .compact-grid {
        grid-template-columns: 1fr
    }

    .client-card {
        grid-template-columns: 45px 1fr;
        padding: 15px
    }

    .client-avatar {
        width: 43px;
        height: 43px
    }

    .client-budget {
        grid-column: 2
    }

    .client-card > .card-actions {
        position: absolute;
        right: 10px;
        bottom: 10px
    }

    .client-request {
        flex-direction: column;
        gap: 2px
    }

    .editor-form {
        padding: 4px 17px 0
    }

    .section-heading h2 {
        font-size: 18px
    }

    .sticky-save {
        flex-direction: column-reverse
    }

        .sticky-save .btn {
            width: 100%
        }

    .image-editor {
        grid-template-columns: repeat(2,1fr)
    }

    .spec-list, .spec-list.four-columns {
        grid-template-columns: 1fr
    }

    .match-cards {
        grid-template-columns: 1fr
    }

    .property-price {
        font-size: 36px
    }

    .summary-facts {
        grid-template-columns: repeat(3,1fr)
    }

    .hero {
        margin-left: -9px;
        margin-right: -9px
    }

    .hero-content {
        padding: 35px 10px
    }

    .hero-logo {
        width: 82px
    }

    .hero h1 {
        font-size: 64px
    }

    .auth-card {
        padding: 25px 20px
    }

    .heading-actions {
        width: 100%;
        flex-wrap: wrap
    }

        .heading-actions > * {
            flex: 1
        }

    .table-wrap {
        border-radius: 13px
    }

    .data-table th, .data-table td {
        padding: 11px
    }

    .gallery-main {
        aspect-ratio: 4/3
    }

    .image-placeholder.large {
        min-height: 260px
    }
}


/* ===== ÔÈÊÑ ÄËß ÃËÀÂÍÎÉ ÑÒÐÀÍÈÖÛ (HERO) ===== */

/* Óáèðàåì îòñòóïû ó main íà ãëàâíîé */
.page-shell.hero-page {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    min-height: 100vh !important;
}

/* Ðàñòÿãèâàåì hero íà âñþ âûñîòó */
.hero {
    min-height: 100vh !important;
    margin: 0 !important;
    border-radius: 0 !important;
}

/* Óáèðàåì áåëûé ôîí ó main */
body .page-shell {
    background: transparent;
}

/* Óáèðàåì îòñòóïû ó main íà âñåõ ñòðàíèöàõ, ãäå FullWidth = true */
.page-shell-wide {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
}




/* ===== ÏÐÎÇÐÀ×ÍÛÉ ÕÅÄÅÐ ÍÀ ÃËÀÂÍÎÉ ===== */

/* Äåëàåì õåäåð ïðîçðà÷íûì íà ãëàâíîé ñòðàíèöå */
body.hero-page .app-header {
    background: transparent !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
    position: absolute !important;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
}

    /* Òåêñò â õåäåðå ñâåòëûé íà ò¸ìíîì ôîíå */
    body.hero-page .app-header .brand strong,
    body.hero-page .app-header .main-nav a,
    body.hero-page .app-header .account-name {
        color: #fff !important;
    }

        body.hero-page .app-header .main-nav a:hover {
            background: rgba(255,255,255,0.15) !important;
        }

    body.hero-page .app-header .btn-ghost {
        background: rgba(255,255,255,0.12) !important;
        border-color: rgba(255,255,255,0.2) !important;
        color: #fff !important;
    }

        body.hero-page .app-header .btn-ghost:hover {
            background: rgba(255,255,255,0.25) !important;
        }

/* Óáèðàåì îòñòóïû ó main */
body.hero-page .page-shell {
    padding: 0 !important;
    margin: 0 !important;
    min-height: 100vh !important;
}

/* Ðàñòÿãèâàåì hero íà âåñü ýêðàí */
body.hero-page .hero {
    min-height: 100vh !important;
    margin: 0 !important;
    border-radius: 0 !important;
}



/* ===== ÄÅÒÀËÜÍÀß ÑÒÐÀÍÈÖÀ ÎÁÚÅÊÒÀ ===== */

/* ===== ÂËÀÄÅËÅÖ ===== */
.owner-contact {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--line);
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.owner-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--green);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 700;
    font-size: 13px;
    flex-shrink: 0;
}

    .avatar.dark {
        background: var(--dark);
    }

.owner-details {
    flex: 1;
    min-width: 0;
}

    .owner-details .label {
        font-size: 9px;
        color: var(--muted);
        text-transform: uppercase;
        letter-spacing: 0.3px;
        display: block;
    }

    .owner-details strong {
        font-size: 13px;
        font-weight: 600;
        display: block;
        line-height: 1.2;
    }

    .owner-details .phone {
        font-size: 12px;
        color: var(--green);
        font-weight: 600;
        display: block;
    }

    .owner-details .date {
        font-size: 11px;
        color: var(--muted);
        display: block;
    }

.owner-contact .divider {
    border-top: 1px solid var(--line);
}

/* ===== ÃÀËÅÐÅß ===== */
.gallery-main {
    position: relative;
    background: #edf1ed;
    overflow: hidden;
}

    .gallery-main > img {
        width: 100%;
        height: 100%;
        object-fit: contain;
        display: block;
        aspect-ratio: 16/9;
    }

    .gallery-main .status {
        position: absolute;
        left: 12px;
        top: 12px;
        z-index: 5;
    }

/* Êíîïêè íàâèãàöèè */
.gallery-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(8px);
    color: #fff;
    cursor: pointer;
    transition: 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

    .gallery-nav i {
        font-size: 16px;
    }

    .gallery-nav:hover {
        background: rgba(0, 0, 0, 0.8);
    }

.gallery-prev {
    left: 12px;
}

.gallery-next {
    right: 12px;
}

/* Êíîïêà ïîëíîãî ýêðàíà */
.fullscreen-btn {
    position: absolute;
    right: 12px;
    bottom: 12px;
    z-index: 10;
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(8px);
    color: #fff;
    cursor: pointer;
    transition: 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

    .fullscreen-btn i {
        font-size: 16px;
    }

    .fullscreen-btn:hover {
        background: rgba(0, 0, 0, 0.8);
    }

/* Ïîëíîýêðàííûé ðåæèì */
.gallery-main.fullscreen {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9999;
    aspect-ratio: auto;
    background: rgba(0, 0, 0, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
}

    .gallery-main.fullscreen > img {
        max-height: 90vh;
        max-width: 90vw;
        object-fit: contain;
        aspect-ratio: auto;
    }

    .gallery-main.fullscreen .fullscreen-btn {
        position: fixed;
        top: 16px;
        right: 16px;
        background: rgba(255, 255, 255, 0.15);
    }

    .gallery-main.fullscreen .status,
    .gallery-main.fullscreen .gallery-thumbs {
        display: none;
    }

/* ===== ËÎÊÀÖÈß ===== */
.location-block h3 {
    margin: 0 0 12px 0;
}

.location-row {
    display: flex;
    gap: 24px;
    margin-bottom: 12px;
}

.location-item {
    flex: 1;
}

    .location-item .label {
        font-size: 10px;
        color: var(--muted);
        text-transform: uppercase;
        letter-spacing: 0.3px;
        display: block;
    }

    .location-item strong {
        font-size: 15px;
        font-weight: 600;
        display: block;
        margin-top: 2px;
    }

/* ===== ÀÄÀÏÒÀÖÈß ===== */
@media (max-width: 600px) {
    .owner-item {
        gap: 8px;
    }

    .avatar {
        width: 28px;
        height: 28px;
        font-size: 11px;
    }

    .owner-details strong {
        font-size: 12px;
    }

    .owner-details .phone {
        font-size: 11px;
    }

    .owner-details .date {
        font-size: 10px;
    }

    .location-row {
        flex-direction: column;
        gap: 8px;
    }

    .location-item strong {
        font-size: 14px;
    }

    #mapboxMap {
        height: 200px;
    }

    .gallery-nav {
        width: 30px;
        height: 30px;
    }

        .gallery-nav i {
            font-size: 13px;
        }

    .fullscreen-btn {
        width: 30px;
        height: 30px;
    }

        .fullscreen-btn i {
            font-size: 13px;
        }
}

/* ===== ÔÈÊÑ ÄËß ÑÒÐÀÍÈÖÛ ÊËÈÅÍÒÀ (ÌÎÁÈËÜÍÀß ÂÅÐÑÈß) ===== */
@media (max-width: 600px) {
    .page-heading.compact {
        align-items: flex-start !important;
        text-align: left !important;
    }

        .page-heading.compact h1 {
            text-align: left !important;
        }

        .page-heading.compact p {
            text-align: left !important;
        }

        .page-heading.compact .back-link {
            display: inline-block;
        }
}

.back-link i {
    font-size: 14px;
    margin-right: 6px;
}

.phone-link i {
    font-size: 14px;
    margin-right: 6px;
}

.map-field {
    margin-top: 24px;
}

.map-field-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 14px;
}

    .map-field-header > div {
        display: flex;
        flex-direction: column;
        gap: 4px;
    }

    .map-field-header strong {
        color: #1e2a24;
        font-size: 16px;
    }

    .map-field-header span {
        color: #718078;
        font-size: 13px;
    }

.listing-map {
    width: 100%;
    height: 460px;
    overflow: hidden;
    border: 1px solid rgba(20, 69, 54, 0.16);
    border-radius: 18px;
    background: #eef1ed;
}

.map-result {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 14px;
    padding: 14px 16px;
    border: 1px solid rgba(55, 127, 85, 0.18);
    border-radius: 14px;
    background: rgba(55, 127, 85, 0.06);
}

.map-result-icon {
    display: flex;
    width: 40px;
    height: 40px;
    flex: 0 0 40px;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: #377f55;
    color: white;
    font-size: 22px;
}

.map-result > div {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 3px;
}

.map-result small {
    color: #718078;
}

.map-result strong {
    overflow-wrap: anywhere;
    color: #1e2a24;
    font-size: 14px;
}

.map-status {
    display: block;
    margin-top: 8px;
    color: #718078;
    font-size: 13px;
}

.map-error {
    display: flex;
    width: 100%;
    height: 100%;
    align-items: center;
    justify-content: center;
    padding: 30px;
    color: #9d3535;
    text-align: center;
}

@media (max-width: 700px) {
    .listing-map {
        height: 350px;
        border-radius: 14px;
    }

    .map-field-header {
        align-items: flex-start;
        flex-direction: column;
    }
}

.listing-map-editor-marker {
    display: flex;
    width: 42px;
    height: 42px;
    align-items: center;
    justify-content: center;
    border: 3px solid #fff;
    border-radius: 50% 50% 50% 0;
    background: var(--green);
    box-shadow: 0 6px 18px rgba(20, 69, 54, 0.38);
    color: #fff;
    cursor: grab;
    transform: rotate(-45deg);
}

    .listing-map-editor-marker:active {
        cursor: grabbing;
    }

    .listing-map-editor-marker i {
        font-size: 15px;
        transform: rotate(45deg);
    }

.map-status {
    display: flex;
    align-items: center;
    gap: 7px;
    margin-top: 9px;
    font-size: 13px;
}

    .map-status i {
        width: 15px;
        text-align: center;
    }

.map-status-info {
    color: var(--muted);
}

.map-status-success {
    color: var(--green);
}

.map-status-warning {
    color: #936d21;
}

.map-status-error {
    color: var(--danger);
}

.map-status-loading {
    color: var(--green);
}

.map-error {
    display: flex;
    width: 100%;
    height: 100%;
    min-height: 250px;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 10px;
    padding: 30px;
    color: var(--danger);
    text-align: center;
}

    .map-error i {
        font-size: 34px;
    }

    .map-error span {
        max-width: 360px;
        font-size: 13px;
    }

.photo-group-heading {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 18px 0 11px;
    color: var(--text);
    font-size: 13px;
    font-weight: 750;
}

    .photo-group-heading i {
        color: var(--green);
    }

.upload-zone-icon {
    margin-bottom: 7px;
    font-size: 32px;
}

.listing-map-editor-marker {
    display: flex;
    width: 42px;
    height: 42px;
    align-items: center;
    justify-content: center;
    border: 3px solid #fff;
    border-radius: 50% 50% 50% 0;
    background: var(--green);
    box-shadow: 0 6px 18px rgba(20, 69, 54, 0.38);
    color: #fff;
    cursor: grab;
    transform: rotate(-45deg);
}

    .listing-map-editor-marker i {
        font-size: 15px;
        transform: rotate(45deg);
    }

.map-status {
    display: flex;
    align-items: center;
    gap: 7px;
    margin-top: 9px;
    font-size: 13px;
}

.map-status-info {
    color: var(--muted);
}

.map-status-success {
    color: var(--green);
}

.map-status-warning {
    color: #936d21;
}

.map-status-loading {
    color: var(--green);
}

.map-error {
    display: flex;
    width: 100%;
    height: 100%;
    min-height: 250px;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 10px;
    padding: 30px;
    color: var(--danger);
    text-align: center;
}

    .map-error i {
        font-size: 34px;
    }

.main-photo-choice {
    display: flex;
    align-items: center;
    gap: 5px;
}

    .main-photo-choice input {
        width: 16px;
        height: 16px;
        margin: 0;
        accent-color: var(--green);
    }

    .main-photo-choice i,
    .main-photo-choice [data-main-label-text] {
        display: none;
    }

    .main-photo-choice.is-main i,
    .main-photo-choice.is-main [data-main-label-text] {
        display: inline-block;
    }

    .main-photo-choice:not(.is-main) {
        width: 34px;
        height: 34px;
        padding: 0;
        align-items: center;
        justify-content: center;
        border-radius: 50%;
    }

    .main-photo-choice.is-main {
        width: auto;
        min-height: 34px;
        padding: 5px 9px;
    }

        .main-photo-choice.is-main i {
            color: var(--gold);
        }

/* Listing photo editor: pointer-based sorting */
.drag-handle {
    touch-action: none;
    user-select: none;
    -webkit-user-select: none
}

    .drag-handle:active {
        cursor: grabbing
    }

.image-editor.is-sorting {
    user-select: none;
    -webkit-user-select: none
}

    .image-editor.is-sorting .editable-image {
        transition: transform .12s ease,opacity .12s ease
    }

        .image-editor.is-sorting .editable-image.dragging-card {
            opacity: .5;
            transform: scale(.98);
            z-index: 5
        }
