@font-face {
    font-family: "Actay";
    src: url("fonts/Actay-Regular.otf") format("opentype");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Actay";
    src: url("fonts/Actay-RegularItalic.otf") format("opentype");
    font-weight: 400;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: "Actay Wide";
    src: url("fonts/ActayWide-Bold.otf") format("opentype");
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

:root {
    --font-body: "Actay", "Segoe UI", Arial, Helvetica, sans-serif;
    --font-heading: "Actay", "Segoe UI", Arial, Helvetica, sans-serif;
    --bg: #f2f5f3;
    --panel: #ffffff;
    --panel-soft: #f7f9f8;
    --ink: #0f211b;
    --text: #172033;
    --muted: #65736d;
    --line: #dce5e1;
    --brand: #1f8a64;
    --brand-dark: #12372d;
    --brand-soft: #e7f3ee;
    --accent: #d2a24c;
    --accent-soft: #fff2d4;
    --danger: #b42318;
    --info: #2458a6;
    --radius: 8px;
    --shadow: 0 18px 50px rgba(18, 55, 45, .12);
}

* { box-sizing: border-box; }

html { min-height: 100%; }

body {
    margin: 0;
    min-height: 100%;
    background:
        radial-gradient(circle at top left, rgba(31, 138, 100, .12), transparent 360px),
        linear-gradient(180deg, #f6f8f7 0, var(--bg) 420px);
    color: var(--text);
    font: 15px/1.5 var(--font-body);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    text-rendering: geometricPrecision;
}

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

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

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

.auth-page {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 24px;
    background:
        linear-gradient(120deg, rgba(18, 55, 45, .94), rgba(31, 138, 100, .84)),
        url("https://storage.yandexcloud.net/domoplaner/devmedia/411/p1181/h6093/images/8n53eqxq6mdt6qbizamev0a0.jpg?v=131247993") center/cover;
}

.auth-box {
    width: min(420px, 100%);
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 30px;
    position: relative;
}

.auth-box::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 5px;
    border-radius: var(--radius) 0 0 var(--radius);
    background: linear-gradient(180deg, var(--accent), var(--brand));
}

.shell {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 260px 1fr;
    width: 100%;
    overflow-x: hidden;
}

.sidebar {
    background:
        linear-gradient(180deg, rgba(15, 33, 27, .98), rgba(18, 55, 45, .98)),
        url("https://storage.yandexcloud.net/domoplaner/devmedia/411/p1181/h6093/images/8n53eqxq6mdt6qbizamev0a0.jpg?v=131247993") center/cover;
    color: #eef5f2;
    padding: 24px 22px;
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
    min-width: 0;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 28px;
    min-width: 0;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 18px;
    letter-spacing: 0;
}

.brand--logo {
    display: flex;
    width: 100%;
    margin-bottom: 30px;
}

.brand-logo {
    width: min(168px, 100%);
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 10px 22px rgba(0, 0, 0, .22));
}

.brand-text {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.auth-brand {
    width: fit-content;
    margin-bottom: 22px;
    padding: 12px 16px;
    border-radius: 12px;
    background: linear-gradient(135deg, #0f211b, #12372d);
    box-shadow: 0 16px 34px rgba(18, 55, 45, .18);
}

.auth-brand .brand-logo {
    width: 154px;
}

.mobile-header-row {
    display: block;
}

.menu-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border: 1px solid rgba(255, 255, 255, .22);
    border-radius: 8px;
    background: rgba(255, 255, 255, .1);
    color: #fff;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
}

.menu-toggle-line {
    width: 20px;
    height: 2px;
    border-radius: 999px;
    background: currentColor;
    transition: transform .18s ease, opacity .18s ease;
}

.menu-toggle-glyph {
    display: none;
}

.sidebar.menu-open .menu-toggle-line:nth-of-type(2) { transform: translateY(7px) rotate(45deg); }
.sidebar.menu-open .menu-toggle-line:nth-of-type(3) { opacity: 0; }
.sidebar.menu-open .menu-toggle-line:nth-of-type(4) { transform: translateY(-7px) rotate(-45deg); }

.nav {
    display: grid;
    gap: 6px;
}

.nav a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 8px;
    color: #cfd8d3;
    border: 1px solid transparent;
    min-width: 0;
    font-weight: 700;
    overflow-wrap: anywhere;
}

.nav a.active,
.nav a:hover {
    background: rgba(255, 255, 255, .12);
    border-color: rgba(255, 255, 255, .08);
    color: #fff;
}

.main {
    min-width: 0;
    padding: 28px;
    overflow-x: hidden;
}

.topbar {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 24px;
}

.page-title h1 {
    margin: 0;
    font-family: var(--font-heading);
    font-size: 30px;
    line-height: 1.2;
    color: var(--ink);
}

.page-title p {
    margin: 4px 0 0;
    color: var(--muted);
    overflow-wrap: anywhere;
}

.userbar {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--muted);
    background: rgba(255, 255, 255, .72);
    border: 1px solid rgba(220, 229, 225, .8);
    border-radius: 999px;
    padding: 6px 8px 6px 14px;
    backdrop-filter: blur(10px);
}

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

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

.panel,
.card {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: 0 1px 2px rgba(22, 34, 51, .04);
}

.panel { padding: 20px; }

.hero-panel {
    position: relative;
    overflow: hidden;
    min-height: 190px;
    display: grid;
    align-content: end;
    color: #fff;
    background:
        linear-gradient(90deg, rgba(15, 33, 27, .92), rgba(15, 33, 27, .62), rgba(15, 33, 27, .15)),
        url("https://storage.yandexcloud.net/domoplaner/devmedia/411/p1181/h6093/images/8n53eqxq6mdt6qbizamev0a0.jpg?v=131247993") center/cover;
    box-shadow: var(--shadow);
}

.hero-panel h2 {
    margin: 0;
    font-family: var(--font-heading);
    font-size: 30px;
    line-height: 1.2;
}

.hero-panel p {
    max-width: 720px;
    margin: 8px 0 0;
    color: rgba(255, 255, 255, .82);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
}

.metric {
    padding: 18px;
    position: relative;
    overflow: hidden;
}

.metric .value {
    font-size: 28px;
    font-weight: 700;
    color: var(--ink);
}

.metric .label {
    color: var(--muted);
    margin-top: 4px;
}

.filters {
    display: grid;
    grid-template-columns: repeat(4, minmax(150px, 1fr));
    gap: 14px;
    align-items: end;
    box-shadow: var(--shadow);
}

.field {
    display: grid;
    gap: 6px;
}

.field label {
    color: var(--muted);
    font-size: 13px;
}

.hint {
    display: block;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.35;
}

.filters__favorite {
    align-self: center;
    min-height: 42px;
    align-items: center;
}

.filters__actions {
    grid-column: span 3;
    align-self: end;
    justify-content: flex-end;
}

.filters__actions .btn {
    white-space: nowrap;
}

.agent-registration-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    align-items: flex-end;
}

.agent-registration-filter .field {
    flex: 0 1 370px;
}

.agent-registration-filter .btn {
    flex: 0 0 auto;
    min-width: 150px;
}

.range-field {
    grid-column: span 2;
    gap: 12px;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 1px 2px rgba(22, 34, 51, .04);
}

.range-field__top,
.range-field__limits {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.range-field__values {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--ink);
    padding: 5px 9px;
    background: var(--panel-soft);
    border: 1px solid var(--line);
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
    white-space: nowrap;
}

.range-field__slider {
    --range-from: 0%;
    --range-to: 100%;
    position: relative;
    height: 34px;
    margin: 0;
    padding-inline: 0;
    cursor: pointer;
    touch-action: none;
    user-select: none;
}

.range-field__slider.is-dragging {
    cursor: grabbing;
}

.range-field__slider::before,
.range-field__slider::after {
    position: absolute;
    top: 50%;
    right: 0;
    left: 0;
    height: 6px;
    content: "";
    border-radius: 999px;
    transform: translateY(-50%);
}

.range-field__slider::before {
    background: #dce5e1;
    box-shadow: inset 0 1px 2px rgba(15, 33, 27, .08);
}

.range-field__slider::after {
    left: var(--range-from);
    right: calc(100% - var(--range-to));
    background: var(--brand);
    box-shadow: 0 8px 18px rgba(31, 138, 100, .16);
}

.range-field__slider input[type="range"] {
    position: absolute;
    inset: 0;
    z-index: 2;
    width: 100%;
    height: 34px;
    margin: 0;
    appearance: none;
    background: none;
    pointer-events: none;
}

.range-field__slider input[type="range"]:last-child {
    z-index: 3;
}

.range-field__slider input[type="range"]::-webkit-slider-thumb {
    width: 24px;
    height: 24px;
    appearance: none;
    border: 5px solid #fff;
    border-radius: 999px;
    background: var(--brand);
    box-shadow: 0 8px 18px rgba(15, 33, 27, .22);
    cursor: grab;
    pointer-events: none;
}

.range-field__slider input[type="range"]::-moz-range-thumb {
    width: 16px;
    height: 16px;
    border: 5px solid #fff;
    border-radius: 999px;
    background: var(--brand);
    box-shadow: 0 8px 18px rgba(15, 33, 27, .24);
    cursor: grab;
    pointer-events: none;
}

.range-field__slider input[type="range"]::-moz-range-track {
    background: transparent;
}

.range-field__limits {
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
}

.range-field__manual {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.range-field__manual label {
    display: grid;
    gap: 5px;
}

.range-field__manual span {
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
}

.range-field__input {
    width: 100%;
    min-height: 38px;
    padding: 8px 10px;
    color: var(--text);
    background: var(--panel-soft);
    border: 1px solid var(--line);
    border-radius: 8px;
    font-weight: 700;
    transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
}

.range-field__input:focus {
    outline: none;
    background: #fff;
    border-color: rgba(31, 138, 100, .62);
    box-shadow: 0 0 0 3px rgba(31, 138, 100, .13);
}

.range-field.is-filtered {
    border-color: rgba(31, 138, 100, .32);
    background: #fff;
}

.input,
.select,
.textarea {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    color: var(--text);
    padding: 10px 12px;
    min-height: 42px;
    transition: border-color .15s ease, box-shadow .15s ease;
}

.select.is-enhanced {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    min-height: 0;
    opacity: 0;
    pointer-events: none;
}

.custom-select {
    position: relative;
    z-index: 1;
    min-width: 0;
    width: 100%;
}

.custom-select.is-open {
    z-index: 80;
}

.custom-select__button {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
    min-height: 42px;
    padding: 10px 12px;
    color: var(--text);
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
    cursor: pointer;
    text-align: left;
    transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
}

.custom-select__button::after {
    flex: 0 0 auto;
    width: 9px;
    height: 9px;
    content: "";
    border-right: 2px solid var(--muted);
    border-bottom: 2px solid var(--muted);
    transform: translateY(-2px) rotate(45deg);
    transition: transform .15s ease, border-color .15s ease;
}

.custom-select.is-open .custom-select__button,
.custom-select__button:focus-visible {
    outline: none;
    border-color: rgba(31, 138, 100, .62);
    box-shadow: 0 0 0 3px rgba(31, 138, 100, .13);
}

.custom-select.is-open .custom-select__button::after {
    border-color: var(--brand);
    transform: translateY(2px) rotate(225deg);
}

.custom-select__value {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.custom-select__menu {
    position: absolute;
    top: calc(100% + 7px);
    right: 0;
    left: 0;
    z-index: 90;
    max-height: min(310px, 54vh);
    padding: 6px;
    overflow-y: auto;
    background: #fff;
    border: 1px solid rgba(220, 229, 225, .95);
    border-radius: 10px;
    box-shadow: 0 18px 42px rgba(15, 33, 27, .16);
}

.custom-select__menu[hidden] {
    display: none !important;
}

.custom-select__option {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    min-height: 38px;
    padding: 9px 10px;
    color: var(--text);
    background: transparent;
    border: 0;
    border-radius: 8px;
    cursor: pointer;
    text-align: left;
}

.custom-select__option::after {
    flex: 0 0 auto;
    margin-left: auto;
    content: "";
}

.custom-select__option:hover,
.custom-select__option.is-active {
    background: var(--brand-soft);
    color: var(--brand-dark);
}

.custom-select__option.is-selected {
    background: var(--brand);
    color: #fff;
    font-weight: 800;
}

.custom-select__option.is-selected::after {
    width: 8px;
    height: 14px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: translateY(-1px) rotate(45deg);
}

.textarea { min-height: 110px; resize: vertical; }

.input:focus,
.select:focus,
.textarea:focus {
    outline: none;
    border-color: rgba(31, 138, 100, .62);
    box-shadow: 0 0 0 3px rgba(31, 138, 100, .13);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 1px solid transparent;
    border-radius: 8px;
    min-height: 40px;
    padding: 9px 14px;
    cursor: pointer;
    font-family: var(--font-heading);
    line-height: 1;
    text-align: center;
    text-decoration: none;
    white-space: nowrap;
    background: var(--brand);
    color: #fff;
    font-weight: 700;
    box-shadow: 0 8px 18px rgba(31, 138, 100, .18);
    transition: transform .15s ease, background .15s ease, box-shadow .15s ease;
}

.btn:hover {
    background: var(--brand-dark);
    transform: translateY(-1px);
    box-shadow: 0 12px 24px rgba(31, 138, 100, .22);
}

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

.btn.secondary:hover { background: var(--panel-soft); }

.btn.danger {
    background: var(--danger);
}

.btn.small {
    min-height: 36px;
    padding: 0 12px;
    font-size: 14px;
}

.status {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 4px 9px;
    font-size: 12px;
    font-weight: 700;
    background: #e8f3ee;
    color: var(--brand-dark);
    white-space: nowrap;
}

.status.warn { background: #fff3d6; color: #8a5a00; }
.status.bad { background: #fdecec; color: var(--danger); }
.status.info { background: #eaf1ff; color: var(--info); }

.table-wrap { overflow-x: auto; }

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

th, td {
    padding: 12px;
    border-bottom: 1px solid var(--line);
    text-align: left;
    vertical-align: top;
}

th {
    color: var(--muted);
    font-size: 13px;
    font-weight: 600;
    background: #f4f7f6;
}

.property-card {
    overflow: hidden;
    transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
}

.property-card:hover {
    transform: translateY(-3px);
    border-color: rgba(31, 138, 100, .28);
    box-shadow: var(--shadow);
}

.property-image {
    aspect-ratio: 4 / 3;
    background: linear-gradient(135deg, #edf3ef, #f7f2e8);
    display: grid;
    place-items: center;
    color: var(--muted);
    position: relative;
    overflow: hidden;
}

.property-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .18s ease;
}

.property-image--plan {
    padding: 14px;
    background: #fff;
}

.property-image--plan img {
    object-fit: contain;
}

.property-image--photo {
    padding: 0;
}

.image-note {
    position: absolute;
    right: 12px;
    bottom: 12px;
    z-index: 1;
    max-width: calc(100% - 24px);
    padding: 6px 10px;
    color: #fff;
    background: rgba(18, 55, 45, .86);
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
    box-shadow: 0 8px 18px rgba(15, 33, 27, .18);
}

.property-card:hover .property-image img {
    transform: scale(1.025);
}

.image-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 1;
    border-radius: 999px;
    padding: 5px 9px;
    font-size: 12px;
    font-weight: 700;
    background: rgba(255, 255, 255, .9);
    color: var(--ink);
    box-shadow: 0 6px 16px rgba(15, 33, 27, .14);
}

.property-body {
    padding: 14px;
    display: grid;
    gap: 10px;
}

.property-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    color: var(--muted);
    font-size: 13px;
}

.price {
    font-size: 20px;
    font-weight: 700;
    color: var(--ink);
}

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

.alert {
    border: 1px solid #b7dfcb;
    background: #effaf4;
    color: #145943;
    border-radius: var(--radius);
    padding: 12px 14px;
    margin-bottom: 16px;
}

.errors {
    border: 1px solid #f1b8b4;
    background: #fff3f2;
    color: var(--danger);
    border-radius: var(--radius);
    padding: 12px 14px;
    margin-bottom: 16px;
}

.muted { color: var(--muted); }
.mt { margin-top: 16px; }
.mb { margin-bottom: 16px; }
.right { text-align: right; }

.section-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
}

.section-heading h2 {
    margin: 0;
    font-size: 20px;
    color: var(--ink);
}

.soft-list {
    display: grid;
    gap: 10px;
}

.soft-item {
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--panel-soft);
}

.detail-gallery {
    display: grid;
    gap: 12px;
}

.gallery-stage {
    position: relative;
    min-height: 420px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    overflow: hidden;
}

.gallery-main {
    width: 100%;
    height: 100%;
    min-height: 420px;
    object-fit: contain;
    cursor: zoom-in;
}

.gallery-control {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(15, 33, 27, .08);
    border-radius: 999px;
    background: rgba(255, 255, 255, .92);
    color: var(--ink);
    box-shadow: 0 8px 24px rgba(15, 33, 27, .12);
    cursor: pointer;
}

.gallery-control.prev { left: 14px; }
.gallery-control.next { right: 14px; }

.gallery-thumbs {
    display: flex;
    gap: 10px;
    padding: 2px 2px 8px;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scrollbar-width: thin;
}

.gallery-thumb {
    flex: 0 0 clamp(96px, 12vw, 132px);
    width: clamp(96px, 12vw, 132px);
    border: 2px solid rgba(220, 229, 225, .95);
    border-radius: 8px;
    padding: 0;
    overflow: hidden;
    background: #fff;
    cursor: pointer;
    box-shadow: 0 8px 20px rgba(15, 33, 27, .08);
    opacity: .82;
    transition: border-color .15s ease, box-shadow .15s ease, opacity .15s ease, transform .15s ease;
}

.gallery-thumb.active {
    border-color: var(--brand);
    box-shadow: 0 10px 24px rgba(31, 138, 100, .16);
    opacity: 1;
}

.gallery-thumb:hover,
.gallery-thumb:focus-visible {
    outline: none;
    border-color: rgba(31, 138, 100, .55);
    opacity: 1;
    transform: translateY(-1px);
}

.gallery-thumb img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

.gallery-modal {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(8, 20, 16, .86);
}

.gallery-modal.is-open {
    display: flex;
}

.gallery-modal img {
    max-width: min(1100px, 96vw);
    max-height: 90vh;
    object-fit: contain;
    border-radius: 8px;
    background: #fff;
}

.gallery-modal-close {
    position: fixed;
    top: 18px;
    right: 18px;
    width: 42px;
    height: 42px;
    border: 1px solid rgba(255, 255, 255, .24);
    border-radius: 999px;
    background: rgba(255, 255, 255, .12);
    color: #fff;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
}

.detail-summary {
    position: sticky;
    top: 24px;
}

.chat {
    display: grid;
    gap: 10px;
    max-height: 520px;
    overflow-y: auto;
    padding-right: 6px;
}

.message {
    width: min(680px, 100%);
    padding: 12px 14px;
    border-radius: var(--radius);
    background: var(--panel-soft);
    border: 1px solid var(--line);
}

.message.mine {
    margin-left: auto;
    background: #e8f3ee;
}

.pagination {
    margin-top: 16px;
}

.pager {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 18px;
}

.pager-summary {
    color: var(--muted);
    font-size: 13px;
}

.pager-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 6px;
}

.pager-link,
.pager-current,
.pager-gap {
    min-width: 38px;
    min-height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    padding: 7px 10px;
    border: 1px solid var(--line);
    background: #fff;
    color: var(--text);
    font-weight: 600;
}

.pager-link:hover {
    border-color: rgba(31, 138, 100, .45);
    color: var(--brand-dark);
}

.pager-current {
    border-color: var(--brand);
    background: var(--brand);
    color: #fff;
}

.pager-disabled,
.pager-gap {
    color: var(--muted);
    background: var(--panel-soft);
}

@media (max-width: 980px) {
    .shell { grid-template-columns: 1fr; }
    .sidebar {
        position: sticky;
        top: 0;
        z-index: 30;
        height: auto;
        transition: transform .22s ease;
    }
    .sidebar.is-hidden {
        transform: translateY(-100%);
    }
    .mobile-header-row {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        width: 100%;
        position: relative;
        min-height: 42px;
        padding-right: 54px;
    }
    .mobile-header-row .brand {
        flex: 1 1 auto;
        min-width: 0;
        margin-bottom: 0;
    }
    .mobile-header-row .brand-logo {
        width: 126px;
    }
    .menu-toggle {
        display: inline-flex !important;
        flex: 0 0 42px;
        margin-left: auto;
        position: absolute;
        top: 0;
        right: 0;
        z-index: 40;
        background: rgba(18, 55, 45, .94);
        box-shadow: 0 10px 24px rgba(0, 0, 0, .18);
    }
    .menu-toggle-glyph {
        display: block;
        font-size: 22px;
        line-height: 1;
        font-weight: 700;
    }
    .menu-toggle-line {
        display: none;
    }
    .sidebar.menu-open .menu-toggle-glyph {
        font-size: 30px;
    }
    .nav {
        display: none;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        margin-top: 14px;
    }
    .sidebar.menu-open .nav { display: grid; }
    .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
    .filters { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .range-field { grid-column: span 2; }
    .filters__actions { grid-column: span 2; }
    .detail-summary { position: static; }
}

@media (max-width: 560px) {
    .main { padding: 16px; }
    .sidebar { padding: 16px; width: 100%; }
    .topbar { align-items: flex-start; flex-direction: column; }
    .filters { grid-template-columns: 1fr; }
    .range-field,
    .filters__actions {
        grid-column: 1;
    }
    .filters__actions {
        display: grid;
        grid-template-columns: 1fr;
    }
    .nav a { padding: 9px 10px; }
    .hero-panel { min-height: 220px; }
    .hero-panel h2 { font-size: 24px; }
    .userbar {
        border-radius: 8px;
        flex-wrap: wrap;
    }
    .gallery-stage,
    .gallery-main {
        min-height: 280px;
    }
    .gallery-control {
        width: 38px;
        height: 38px;
    }
    .gallery-thumb {
        flex-basis: 92px;
        width: 92px;
    }
    .pager {
        align-items: flex-start;
        flex-direction: column;
    }
    .pager-links {
        justify-content: flex-start;
    }
th, td { padding: 10px 8px; }
}

/* Client selections */
.selection-card {
    display: grid;
    align-content: start;
    gap: 12px;
}

.selection-card h2 {
    margin: 0;
    color: var(--ink);
    font-size: 21px;
    line-height: 1.2;
}

.selection-layout {
    align-items: start;
}

.selection-share {
    display: grid;
    align-content: start;
    gap: 14px;
}

.selection-share h2,
.public-selection-note h2 {
    margin: 0;
    color: var(--ink);
}

.selection-inline {
    display: grid;
    gap: 8px;
}

.selection-inline form {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
    align-items: center;
}

.public-selection {
    min-height: 100vh;
    padding: clamp(22px, 4vw, 56px);
    background:
        radial-gradient(circle at top left, rgba(31, 138, 100, .14), transparent 360px),
        linear-gradient(180deg, #f7faf8 0, #eef3f0 100%);
}

.public-selection-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(260px, 360px);
    gap: clamp(20px, 4vw, 54px);
    align-items: end;
    max-width: 1180px;
    margin: 0 auto 24px;
    padding: clamp(26px, 5vw, 64px);
    color: #fff;
    background:
        linear-gradient(135deg, rgba(18, 55, 45, .96), rgba(31, 138, 100, .88)),
        url("https://storage.yandexcloud.net/domoplaner/devmedia/411/p1181/h6093/images/8n53eqxq6mdt6qbizamev0a0.jpg?v=131247993") center/cover;
    border-radius: 12px;
    box-shadow: var(--shadow);
}

.public-selection-hero h1 {
    max-width: 760px;
    margin: 6px 0 12px;
    font-size: clamp(34px, 6vw, 72px);
    line-height: .94;
}

.public-selection-hero p {
    max-width: 620px;
    margin: 0;
    color: rgba(255, 255, 255, .82);
    font-size: 18px;
}

.eyebrow {
    color: var(--accent);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.public-selection-contact {
    display: grid;
    gap: 7px;
    padding: 18px;
    color: var(--text);
    background: rgba(255, 255, 255, .94);
    border-radius: 8px;
}

.public-selection-contact span {
    color: var(--muted);
    font-size: 13px;
}

.public-selection-contact strong {
    color: var(--ink);
    font-size: 20px;
}

.public-selection-contact a {
    color: var(--brand-dark);
    font-weight: 700;
}

.public-selection-note,
.public-selection-grid {
    max-width: 1180px;
    margin-inline: auto;
}

.public-selection-note {
    margin-bottom: 24px;
}

.public-project-story {
    display: grid;
    grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr);
    gap: clamp(20px, 4vw, 44px);
    align-items: center;
    max-width: 1180px;
    margin: 28px auto 0;
    padding: clamp(22px, 4vw, 42px);
    color: #eef7f2;
    background:
        radial-gradient(circle at 15% 15%, rgba(210, 162, 76, .24), transparent 260px),
        linear-gradient(135deg, #12372d 0%, #0f2b24 52%, #1f8a64 100%);
    border-radius: 12px;
    box-shadow: var(--shadow);
    overflow: hidden;
}

.public-project-story__media {
    display: grid;
    grid-template-columns: 1.2fr .8fr;
    grid-template-rows: repeat(2, minmax(150px, 1fr));
    gap: 10px;
    min-height: 390px;
}

.public-project-story__image {
    min-width: 0;
    min-height: 0;
    margin: 0;
    overflow: hidden;
    background: rgba(255, 255, 255, .08);
    border: 1px solid rgba(255, 255, 255, .16);
    border-radius: 8px;
}

.public-project-story__image--1 {
    grid-row: 1 / -1;
}

.public-project-story__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.public-project-story__content {
    display: grid;
    gap: 14px;
}

.public-project-story h2 {
    margin: 0;
    color: #fff;
    font-size: clamp(30px, 4vw, 54px);
    line-height: .95;
}

.public-project-story p {
    margin: 0;
    color: rgba(238, 247, 242, .78);
}

.public-project-story__lead {
    color: #fff !important;
    font-size: clamp(17px, 1.6vw, 21px);
    font-weight: 700;
}

.public-project-story__facts {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin: 4px 0 0;
}

.public-project-story__facts div {
    min-width: 0;
    padding: 13px;
    background: rgba(255, 255, 255, .1);
    border: 1px solid rgba(255, 255, 255, .16);
    border-radius: 8px;
}

.public-project-story__facts dt {
    color: rgba(238, 247, 242, .62);
    font-size: 12px;
    font-weight: 800;
}

.public-project-story__facts dd {
    margin: 5px 0 0;
    color: #fff;
    font-weight: 800;
}

.public-project-story__features {
    display: grid;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.public-project-story__features li {
    position: relative;
    padding-left: 18px;
    color: rgba(238, 247, 242, .82);
}

.public-project-story__features li::before {
    content: "";
    position: absolute;
    top: .7em;
    left: 0;
    width: 7px;
    height: 7px;
    background: var(--accent);
    border-radius: 999px;
}

.public-project-story__actions {
    margin-top: 6px;
}

.public-project-story__actions .btn.secondary {
    background: rgba(255, 255, 255, .94);
}

@media (max-width: 760px) {
    .selection-inline form,
    .public-selection-hero,
    .public-project-story {
        grid-template-columns: 1fr;
    }

    .public-selection {
        padding: 16px;
    }

    .public-selection-hero {
        padding: 24px;
    }

    .public-project-story {
        padding: 20px;
    }

    .public-project-story__media {
        grid-template-columns: 1fr 1fr;
        min-height: 280px;
    }

    .public-project-story__image--1 {
        grid-column: 1 / -1;
        grid-row: auto;
    }

    .public-project-story__facts {
        grid-template-columns: 1fr;
    }
}

/* 2026-06-30 polish: stable desktop sidebar and cleaner collections UI. */
@media (min-width: 981px) {
    .shell {
        display: block;
        min-height: 100vh;
    }

    .sidebar {
        position: fixed;
        inset: 0 auto 0 0;
        width: 260px;
        height: auto;
        z-index: 20;
    }

    .main {
        min-height: 100vh;
        margin-left: 260px;
    }
}

.topbar {
    position: relative;
}

.selections-grid {
    align-items: stretch;
}

.selection-card {
    min-height: 260px;
    grid-template-rows: auto auto auto 1fr auto;
    padding: 18px;
    overflow: hidden;
}

.selection-card__top,
.selection-card__actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.selection-card__count {
    color: var(--muted);
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap;
}

.selection-card__client {
    display: grid;
    gap: 3px;
    color: var(--muted);
}

.selection-card__client a {
    color: var(--brand-dark);
    font-weight: 700;
}

.selection-card__author {
    margin: 0;
}

.selection-card__link {
    display: grid;
    gap: 6px;
    min-width: 0;
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
}

.selection-card__link .input,
.selection-share .input {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.selection-card__actions {
    justify-content: flex-start;
    margin-top: auto;
}

.selection-card__actions form {
    margin: 0;
}

.selection-layout {
    grid-template-columns: minmax(0, 1.35fr) minmax(300px, .65fr);
}

.selection-share {
    position: sticky;
    top: 24px;
}

.selection-share .actions {
    align-items: center;
}

.empty-panel {
    grid-column: 1 / -1;
}

.property-card {
    display: grid;
    grid-template-rows: auto 1fr;
    position: relative;
    overflow: visible;
}

.property-card > .property-image {
    border-radius: var(--radius) var(--radius) 0 0;
}

.property-card:has(.custom-select.is-open) {
    z-index: 70;
}

.property-card:has(.property-selection.is-open) {
    z-index: 90;
}

.property-body {
    align-content: start;
}

.property-body .actions,
.property-card__actions {
    align-items: center;
}

.property-card__actions {
    display: grid;
    grid-template-columns: minmax(82px, .85fr) minmax(86px, .85fr) 40px;
    gap: 8px;
}

.property-card__actions .btn.small {
    min-width: 82px;
}

.property-card__actions .btn,
.property-card__actions .catalog-favorite-form {
    min-width: 0;
}

.catalog-favorite-form {
    display: flex;
    margin: 0;
}

.property-card .selection-inline form,
.property-selection__panel {
    grid-template-columns: 1fr;
}

.property-selection {
    position: relative;
}

.property-selection__toggle {
    width: 100%;
}

.property-selection__panel {
    position: absolute;
    right: 0;
    bottom: calc(100% + 8px);
    left: 0;
    z-index: 92;
    display: grid;
    gap: 8px;
    min-width: min(320px, calc(100vw - 56px));
    padding: 12px;
    background: #fff;
    border: 1px solid rgba(220, 229, 225, .96);
    border-radius: 12px;
    box-shadow: 0 18px 42px rgba(15, 33, 27, .18);
}

.property-selection__panel[hidden] {
    display: none !important;
}

.property-selection.is-open .property-selection__toggle {
    border-color: rgba(31, 138, 100, .45);
    background: var(--panel-soft);
    color: var(--brand-dark);
}

.property-card .selection-inline .btn,
.property-selection__panel .btn {
    width: 100%;
}

.catalog-favorite-toggle {
    position: relative;
    display: inline-grid;
    width: 40px;
    height: 36px;
    min-height: 36px;
    place-items: center;
    padding: 0;
    overflow: visible;
    color: var(--brand-dark);
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 999px;
    cursor: pointer;
    box-shadow: 0 8px 18px rgba(15, 33, 27, .08);
    isolation: isolate;
    transform-origin: center;
    transition:
        color .18s ease,
        background .18s ease,
        border-color .18s ease,
        box-shadow .18s ease,
        transform .18s ease;
}

.catalog-favorite-toggle:hover,
.catalog-favorite-toggle:focus-visible {
    outline: none;
    transform: translateY(-1px);
    box-shadow: 0 12px 24px rgba(15, 33, 27, .14);
}

.catalog-favorite-toggle:disabled {
    cursor: progress;
    opacity: .7;
}

.catalog-favorite-toggle__icon {
    position: relative;
    z-index: 1;
    display: inline-grid;
    width: 18px;
    height: 18px;
    place-items: center;
    line-height: 1;
}

.catalog-favorite-toggle__icon::before {
    content: "\2661";
    font-size: 20px;
    line-height: 1;
}

.catalog-favorite-toggle__label {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

.catalog-favorite-toggle.is-active {
    color: #fff;
    background: linear-gradient(135deg, #ff7a45 0%, #e7683d 58%, #d95631 100%);
    border-color: #e7683d;
    box-shadow: 0 14px 28px rgba(231, 104, 61, .26);
}

.catalog-favorite-toggle.is-active .catalog-favorite-toggle__icon::before {
    content: "\2665";
}

.catalog-favorite-toggle.is-just-added {
    animation: lk-favorite-pop .7s cubic-bezier(.18, .89, .32, 1.28);
}

.catalog-favorite-toggle.is-just-added .catalog-favorite-toggle__icon {
    animation: lk-favorite-heart .72s ease-out;
}

.catalog-favorite-toggle.is-just-added::before,
.catalog-favorite-toggle.is-just-added::after {
    position: absolute;
    content: "";
    pointer-events: none;
    border-radius: inherit;
    z-index: 0;
}

.catalog-favorite-toggle.is-just-added::before {
    inset: -8px;
    border: 2px solid rgba(231, 104, 61, .34);
    animation: lk-favorite-ring .7s ease-out;
}

.catalog-favorite-toggle.is-just-added::after {
    top: 50%;
    left: 50%;
    width: 7px;
    height: 7px;
    background: #ffd2ba;
    box-shadow:
        0 -28px 0 rgba(255, 122, 69, .9),
        22px -18px 0 rgba(255, 210, 186, .95),
        28px 0 0 rgba(255, 122, 69, .82),
        18px 22px 0 rgba(255, 210, 186, .86),
        0 28px 0 rgba(255, 122, 69, .76),
        -22px 18px 0 rgba(255, 210, 186, .9),
        -28px 0 0 rgba(255, 122, 69, .82),
        -18px -22px 0 rgba(255, 210, 186, .86);
    transform: translate(-50%, -50%) scale(.2);
    animation: lk-favorite-sparks .72s ease-out;
}

@keyframes lk-favorite-pop {
    0% { transform: scale(1); }
    34% { transform: scale(1.12); }
    62% { transform: scale(.96); }
    100% { transform: scale(1); }
}

@keyframes lk-favorite-heart {
    0% { transform: scale(.82) rotate(-8deg); }
    42% { transform: scale(1.36) rotate(7deg); }
    100% { transform: scale(1) rotate(0); }
}

@keyframes lk-favorite-ring {
    0% {
        opacity: .7;
        transform: scale(.82);
    }

    100% {
        opacity: 0;
        transform: scale(1.45);
    }
}

@keyframes lk-favorite-sparks {
    0% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(.15) rotate(0deg);
    }

    28% {
        opacity: 1;
    }

    100% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(1.06) rotate(28deg);
    }
}

.collections-toolbar {
    grid-template-columns: minmax(180px, 260px) auto;
    justify-content: space-between;
}

.selection-layout + .filters {
    grid-template-columns: minmax(260px, 1.2fr) minmax(240px, .9fr) auto;
}

@media (max-width: 980px) {
    .selection-layout,
    .collections-toolbar,
    .selection-layout + .filters {
        grid-template-columns: 1fr;
    }

    .selection-share {
        position: static;
    }
}

@media (max-width: 560px) {
    th,
    td {
        padding: 10px 8px;
    }

    .selection-card {
        min-height: 0;
    }

    .selection-card__top,
    .selection-card__actions {
        align-items: flex-start;
        flex-direction: column;
    }
}

/* AJAX quick-add to client selections */
.selection-inline__new-title {
    min-width: min(100%, 180px);
}

.selection-inline [data-selection-quick-add] {
    align-items: stretch;
}

.selection-inline [data-selection-title][hidden] {
    display: none !important;
}

.selection-inline .btn[disabled] {
    cursor: progress;
    opacity: .68;
    transform: none;
}

.toast-stack {
    position: fixed;
    top: 22px;
    right: 22px;
    z-index: 80;
    display: grid;
    width: min(360px, calc(100vw - 32px));
    gap: 10px;
    pointer-events: none;
}

.toast {
    padding: 14px 16px;
    color: #fff;
    background: #0b3554;
    border: 1px solid rgba(255, 255, 255, .16);
    border-radius: 8px;
    box-shadow: 0 18px 44px rgba(4, 31, 52, .18);
    opacity: 0;
    transform: translateY(-8px);
    transition: opacity .18s ease, transform .18s ease;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.35;
}

.toast.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.toast--error {
    background: #8b2f25;
}

@media (max-width: 640px) {
    .toast-stack {
        top: 12px;
        right: 12px;
        left: 12px;
        width: auto;
    }

    .selection-inline [data-selection-quick-add] {
        grid-template-columns: 1fr;
    }
}

/* Bulk add from catalog to client selections */
.catalog-bulk {
    position: relative;
    z-index: 10;
    display: grid;
    grid-template-columns: minmax(180px, .8fr) minmax(280px, 1.1fr) auto;
    gap: 12px;
    align-items: center;
    max-height: 560px;
    overflow: visible;
    border-color: rgba(31, 138, 100, .2);
    background:
        linear-gradient(135deg, rgba(231, 243, 238, .92), rgba(255, 255, 255, .96)),
        var(--panel);
    box-shadow: var(--shadow);
    opacity: 1;
    transform: translateY(0);
    transition:
        max-height .28s ease,
        margin .28s ease,
        padding .28s ease,
        opacity .22s ease,
        transform .22s ease,
        border-color .22s ease;
}

.catalog-bulk[aria-hidden="true"] {
    overflow: hidden;
    max-height: 0;
    margin-bottom: 0 !important;
    padding-top: 0;
    padding-bottom: 0;
    border-color: transparent;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-8px);
}

.catalog-bulk:has(.custom-select.is-open) {
    z-index: 40;
}

.catalog-bulk__summary {
    display: grid;
    gap: 3px;
}

.catalog-bulk__summary strong {
    color: var(--ink);
    font-size: 16px;
}

.catalog-bulk__summary span:last-child {
    color: var(--muted);
    font-size: 13px;
}

.catalog-bulk__selection {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: minmax(190px, 1fr) minmax(170px, .8fr);
    gap: 8px;
}

.catalog-bulk__selection .custom-select__menu {
    max-height: min(360px, 48vh);
}

.catalog-bulk__selection [data-selection-title][hidden] {
    display: none !important;
}

.catalog-bulk__actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px;
}

.btn[disabled] {
    cursor: not-allowed;
    opacity: .58;
    transform: none !important;
    box-shadow: none !important;
}

.property-card {
    position: relative;
}

.property-select {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 3;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-height: 34px;
    padding: 6px 10px;
    color: var(--ink);
    background: rgba(255, 255, 255, .94);
    border: 1px solid rgba(15, 33, 27, .1);
    border-radius: 999px;
    box-shadow: 0 10px 24px rgba(15, 33, 27, .14);
    cursor: pointer;
    font-size: 12px;
    font-weight: 800;
    line-height: 1;
    opacity: 0;
    visibility: hidden;
    user-select: none;
    backdrop-filter: blur(8px);
    pointer-events: none;
    transform: translateY(-4px);
    transition:
        background .16s ease,
        border-color .16s ease,
        color .16s ease,
        opacity .16s ease,
        visibility .16s ease,
        transform .16s ease;
}

.catalog-results.is-bulk-open .property-select {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
}

.property-select:hover {
    transform: translateY(-1px);
}

.property-select input {
    width: 16px;
    height: 16px;
    accent-color: var(--brand);
}

.property-card.is-selected {
    border-color: rgba(31, 138, 100, .58);
    box-shadow: 0 18px 50px rgba(31, 138, 100, .16);
}

.property-card.is-selected .property-select {
    color: #fff;
    background: var(--brand);
    border-color: var(--brand);
}

@media (max-width: 1100px) {
    .catalog-bulk {
        grid-template-columns: 1fr;
    }

    .catalog-bulk__actions {
        justify-content: flex-start;
    }
}

@media (max-width: 640px) {
    .catalog-bulk__selection,
    .catalog-bulk__actions {
        display: grid;
        grid-template-columns: 1fr;
    }

    .property-select span {
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip: rect(0 0 0 0);
        white-space: nowrap;
    }
}

/* Public selection property details */
.property-title-link {
    color: var(--ink);
}

.property-title-link:hover {
    color: var(--brand-dark);
}

.public-property {
    display: grid;
    gap: 22px;
}

.public-property__nav {
    max-width: 1180px;
    width: 100%;
    margin: 0 auto -4px;
}

.public-property__nav a {
    display: inline-flex;
    align-items: center;
    min-height: 38px;
    padding: 8px 12px;
    color: var(--brand-dark);
    background: rgba(255, 255, 255, .78);
    border: 1px solid rgba(220, 229, 225, .9);
    border-radius: 999px;
    font-weight: 800;
    box-shadow: 0 8px 22px rgba(15, 33, 27, .08);
}

.public-property-hero,
.public-property-layout,
.public-property-extra-plans,
.public-property-description {
    max-width: 1180px;
    width: 100%;
    margin-inline: auto;
}

.public-property-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(260px, 360px);
    gap: clamp(20px, 4vw, 54px);
    align-items: end;
    padding: clamp(26px, 5vw, 62px);
    color: #fff;
    background:
        linear-gradient(135deg, rgba(18, 55, 45, .96), rgba(31, 138, 100, .84)),
        url("https://storage.yandexcloud.net/domoplaner/devmedia/411/p1181/h6093/images/8n53eqxq6mdt6qbizamev0a0.jpg?v=131247993") center/cover;
    border-radius: 12px;
    box-shadow: var(--shadow);
}

.public-property-hero h1 {
    max-width: 760px;
    margin: 8px 0 10px;
    font-size: clamp(38px, 6vw, 82px);
    line-height: .92;
}

.public-property-hero p {
    max-width: 680px;
    margin: 0;
    color: rgba(255, 255, 255, .82);
    font-size: clamp(16px, 1.8vw, 21px);
}

.public-property-hero__price {
    display: grid;
    gap: 4px;
    margin-top: 24px;
    font-size: clamp(30px, 4.2vw, 54px);
    font-weight: 800;
    line-height: 1;
}

.public-property-hero__price span {
    color: rgba(255, 255, 255, .74);
    font-size: 15px;
    font-weight: 700;
}

.public-property-actions {
    margin-top: 22px;
}

.public-property-actions .btn.secondary {
    background: rgba(255, 255, 255, .94);
}

.public-property-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(300px, .75fr);
    gap: 18px;
    align-items: start;
}

.public-property-plan {
    display: grid;
    min-height: 520px;
    place-items: center;
    padding: clamp(18px, 3vw, 34px);
    background: #fff;
}

.public-property-plan img {
    width: 100%;
    max-height: 620px;
    object-fit: contain;
}

.public-property-plan__fallback {
    position: relative;
    width: 100%;
    min-height: 460px;
    overflow: hidden;
    color: #fff;
    background: linear-gradient(135deg, rgba(18, 55, 45, .94), rgba(31, 138, 100, .78));
    border-radius: 8px;
}

.public-property-plan__fallback img {
    width: 100%;
    height: 100%;
    max-height: none;
    min-height: 460px;
    object-fit: cover;
}

.public-property-plan__fallback::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(10, 28, 23, .08), rgba(10, 28, 23, .72));
}

.public-property-plan__fallback div {
    position: absolute;
    right: 22px;
    bottom: 22px;
    left: 22px;
    z-index: 1;
    display: grid;
    gap: 4px;
    max-width: 520px;
    padding: 18px;
    background: rgba(255, 255, 255, .92);
    border-radius: 8px;
}

.public-property-plan__fallback strong {
    color: var(--ink);
    font-size: 24px;
    line-height: 1.05;
}

.public-property-plan__fallback span {
    color: var(--muted);
    font-weight: 700;
}

.public-property-summary {
    position: sticky;
    top: 20px;
    display: grid;
    gap: 18px;
}

.public-property-summary h2,
.public-property-extra-plans h2,
.public-property-description h2 {
    margin: 0;
    color: var(--ink);
}

.public-property-specs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin: 0;
}

.public-property-specs div {
    min-height: 74px;
    padding: 13px;
    background: var(--panel-soft);
    border: 1px solid var(--line);
    border-radius: 8px;
}

.public-property-specs dt {
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
}

.public-property-specs dd {
    margin: 5px 0 0;
    color: var(--ink);
    font-size: 17px;
    font-weight: 800;
}

.public-property-note {
    padding: 16px;
    background: var(--accent-soft);
    border-radius: 8px;
}

.public-property-note h3 {
    margin: 0 0 6px;
    color: var(--ink);
}

.public-property-note p {
    margin: 0;
}

.public-property-extra-plans > div {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 12px;
    margin-top: 14px;
}

.public-property-extra-plans a {
    display: grid;
    min-height: 160px;
    place-items: center;
    overflow: hidden;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
}

.public-property-extra-plans img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.public-property-description p {
    max-width: 820px;
    margin: 10px 0 0;
    color: var(--muted);
}

@media (max-width: 900px) {
    .public-property-hero,
    .public-property-layout {
        grid-template-columns: 1fr;
    }

    .public-property-summary {
        position: static;
    }

    .public-property-plan {
        min-height: 360px;
    }

    .public-property-plan__fallback,
    .public-property-plan__fallback img {
        min-height: 340px;
    }
}

@media (max-width: 560px) {
    .public-property {
        gap: 16px;
    }

    .public-property__nav {
        margin-bottom: -2px;
    }

    .public-property-hero {
        padding: 24px;
    }

    .public-property-specs {
        grid-template-columns: 1fr;
    }

    .public-property-actions {
        display: grid;
    }

    .public-property-plan__fallback div {
        right: 12px;
        bottom: 12px;
        left: 12px;
        padding: 14px;
    }
}

/* DELOM wordmark shared by dark and light application surfaces. */
.delom-wordmark {
    display: inline-block;
    width: 174px;
    max-width: 100%;
    aspect-ratio: 174 / 25;
    flex: 0 0 auto;
    color: #022441;
    background-color: currentColor;
    -webkit-mask: url("./logo-delom-white.svg") center / contain no-repeat;
    mask: url("./logo-delom-white.svg") center / contain no-repeat;
}

.delom-wordmark--light {
    color: #fff;
}

.delom-wordmark--blue {
    color: #022441;
}

.delom-wordmark--inline {
    width: 5.35em;
    max-width: none;
    margin-inline: .08em;
    vertical-align: -.08em;
}

.dashboard-delom-title {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.dashboard-delom-title__logo {
    width: clamp(118px, 12vw, 155px);
}

.public-selection-delom-mark {
    width: clamp(96px, 10vw, 122px);
    margin-bottom: 4px;
}

.public-selection-contact__brand {
    display: flex;
    align-items: center;
    min-height: 25px;
}

.public-selection-contact__brand-logo {
    width: 104px;
}

@media (max-width: 560px) {
    .dashboard-delom-title {
        gap: 9px;
    }

    .dashboard-delom-title__logo {
        width: 118px;
    }

    .public-selection-delom-mark {
        width: 102px;
    }
}
