.residents-inventory,
.residents-inventory *,
.residents-request-modal,
.residents-request-modal * {
    box-sizing: border-box;
}

.residents-inventory [hidden],
.residents-request-modal[hidden],
.residents-request-modal [hidden] {
    display: none !important;
}


.residents-inventory .sr-only {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

.residents-inventory {
    width: 100%;
    overflow: hidden;
    background: #ffffff;
    color: #1f1f1f;
}

.residents-inventory__view {
    width: 100%;
}

/* Генплан */
.residents-inventory__plan-stage {
    position: relative;
    isolation: isolate;
    width: min(100%, 1903px);
    height: min(56.25vw, 1071px);
    min-height: 720px;
    margin: 0 auto;
    overflow: hidden;
    background: #768086;
}

.residents-inventory__plan-map {
    position: absolute;
    z-index: 0;
    inset: 0;
    overflow: hidden;
    transform: translate3d(0, 0, 0);
    will-change: transform;
}

.residents-inventory__plan-stage.is-pannable {
    cursor: grab;
    touch-action: none;
}

.residents-inventory__plan-stage.is-pannable:active {
    cursor: grabbing;
}

.residents-inventory__plan-image,
.residents-inventory__plan-empty {
    position: absolute;
    z-index: 0;
    inset: 0;
    width: 100%;
    height: 100%;
}

.residents-inventory__plan-image {
    display: block;
    object-fit: cover;
    object-position: center center;
    user-select: none;
}

.residents-inventory__plan-empty {
    display: grid;
    align-content: center;
    justify-items: center;
    gap: 16px;
    padding: 180px 40px 80px;
    color: #ffffff;
    background:
        linear-gradient(145deg, rgba(31, 31, 31, 0.2), rgba(31, 31, 31, 0.65)),
        #7e898e;
    text-align: center;
}

.residents-inventory__plan-empty strong {
    max-width: 920px;
    font-family: 'RoadRadio', Arial, Helvetica, sans-serif;
    font-size: clamp(32px, 3.4vw, 64px);
    font-weight: 700;
    line-height: 1;
    text-transform: uppercase;
}

.residents-inventory__plan-empty span {
    max-width: 620px;
    font-family: 'Manrope', Arial, Helvetica, sans-serif;
    font-size: 18px;
    font-weight: 500;
    line-height: 1.45;
}

.residents-inventory__plan-shade {
    position: absolute;
    z-index: 1;
    inset: 0;
    pointer-events: none;
    background:
        linear-gradient(180deg, rgba(19, 25, 28, 0.52) 0%, rgba(19, 25, 28, 0.18) 38%, rgba(19, 25, 28, 0.12) 100%),
        rgba(15, 20, 22, 0.12);
}

.residents-inventory__plan-head {
    position: absolute;
    z-index: 5;
    top: 0;
    right: 0;
    left: 0;
    padding: 76px 40px 0;
    pointer-events: none;
}

.residents-inventory__title {
    margin: 0;
    font-family: 'RoadRadio', Arial, Helvetica, sans-serif;
    font-size: clamp(56px, 4.4vw, 84px);
    font-weight: 700;
    letter-spacing: 0;
    line-height: 0.98;
    text-transform: uppercase;
}

.residents-inventory__title--plan {
    max-width: 1500px;
    color: #ffffff;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.12);
}

.residents-inventory__tabs {
    width: max-content;
    display: grid;
    grid-template-columns: repeat(2, 128px);
    margin-top: 40px;
    border: 1px solid rgba(255, 255, 255, 0.56);
    pointer-events: auto;
}

.residents-inventory__tab {
    height: 54px;
    padding: 0 16px;
    border: 0;
    border-right: 1px solid rgba(255, 255, 255, 0.36);
    color: #ffffff;
    background: rgba(31, 31, 31, 0.16);
    font-family: 'Manrope', Arial, Helvetica, sans-serif;
    font-size: 14px;
    font-weight: 500;
    line-height: 1;
    cursor: pointer;
    backdrop-filter: blur(10px);
    transition: color 180ms ease, background-color 180ms ease;
}

.residents-inventory__tab:last-child {
    border-right: 0;
}

.residents-inventory__tab:hover,
.residents-inventory__tab:focus-visible {
    background: rgba(255, 255, 255, 0.2);
    outline: none;
}

.residents-inventory__tab.is-active {
    color: #1f1f1f;
    background: #ffffff;
}

.residents-inventory__polygons {
    position: absolute;
    z-index: 3;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.residents-inventory__polygon {
    fill: rgba(255, 255, 255, 0.06);
    stroke: rgba(255, 255, 255, 0.94);
    stroke-width: 1.6px;
    stroke-dasharray: 12px 10px;
    stroke-linecap: round;
    stroke-linejoin: round;
    vector-effect: non-scaling-stroke;
    cursor: pointer;
    pointer-events: auto;
    transition: fill 180ms ease, stroke 180ms ease, opacity 180ms ease, filter 180ms ease;
}

.residents-inventory__polygon--line {
    fill: none;
}

.residents-inventory__polygon--reserved {
    fill: rgba(198, 153, 39, 0.18);
    stroke: rgba(238, 202, 108, 0.92);
}

.residents-inventory__polygon--sold {
    fill: rgba(148, 153, 156, 0.12);
    stroke: rgba(220, 224, 226, 0.68);
}

.residents-inventory__polygon:hover,
.residents-inventory__polygon:focus-visible,
.residents-inventory__polygon.is-hovered,
.residents-inventory__polygon.is-selected {
    fill: rgba(255, 255, 255, 0.24);
    stroke: #ffffff;
    filter: drop-shadow(0 0 12px rgba(255, 255, 255, 0.38));
}

.residents-inventory__markers {
    position: absolute;
    z-index: 4;
    inset: 0;
    pointer-events: none;
}

.residents-inventory__marker {
    position: absolute;
    left: var(--marker-x);
    top: var(--marker-y);
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    padding: 0;
    border: 0;
    border-radius: 50%;
    color: #ffffff;
    background: #1f1f1f;
    box-shadow: 0 5px 18px rgba(0, 0, 0, 0.28);
    font-family: 'RoadRadio', Arial, Helvetica, sans-serif;
    font-size: 15px;
    font-weight: 700;
    line-height: 1;
    transform: translate(-50%, -50%);
    cursor: pointer;
    pointer-events: auto;
    transition: color 160ms ease, background-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.residents-inventory__marker:hover,
.residents-inventory__marker:focus-visible,
.residents-inventory__marker.is-hovered {
    z-index: 8;
    outline: none;
    box-shadow: 0 0 0 7px rgba(255, 255, 255, 0.2), 0 8px 24px rgba(0, 0, 0, 0.35);
    transform: translate(-50%, -50%) scale(1.08);
}

.residents-inventory__marker.is-selected {
    z-index: 9;
    color: #1f1f1f;
    background: #ffffff;
    box-shadow: 0 0 0 6px rgba(255, 255, 255, 0.2), 0 8px 26px rgba(0, 0, 0, 0.38);
}

.residents-inventory__marker--reserved {
    background: #7a641e;
}

.residents-inventory__marker--sold {
    color: rgba(255, 255, 255, 0.74);
    background: #6d7274;
}

.residents-inventory-card {
    position: absolute;
    z-index: 20;
    width: min(410px, calc(100% - 32px));
    max-height: calc(100% - 32px);
    overflow: auto;
    padding: 34px 34px 30px;
    color: #ffffff;
    background: #1f1f1f;
    box-shadow: 0 22px 60px rgba(0, 0, 0, 0.34);
}

.residents-inventory-card__close {
    position: absolute;
    top: 18px;
    right: 18px;
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    padding: 0;
    border: 0;
    color: rgba(255, 255, 255, 0.65);
    background: transparent;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 38px;
    font-weight: 300;
    line-height: 1;
    cursor: pointer;
}

.residents-inventory-card__close:hover,
.residents-inventory-card__close:focus-visible {
    color: #ffffff;
    outline: none;
}

.residents-inventory-card__topline {
    min-height: 26px;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    padding-right: 42px;
    color: rgba(255, 255, 255, 0.7);
    font-family: 'RoadRadio', Arial, Helvetica, sans-serif;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.35;
    text-transform: uppercase;
}

.residents-inventory-card__status {
    flex: 0 0 auto;
    padding: 5px 7px 4px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    font-size: 10px;
    line-height: 1;
}

.residents-inventory-card h3 {
    margin: 10px 0 0;
    padding-right: 36px;
    font-family: 'RoadRadio', Arial, Helvetica, sans-serif;
    font-size: 31px;
    font-weight: 700;
    line-height: 1.08;
    text-transform: uppercase;
}

.residents-inventory-card__code {
    margin: 8px 0 0;
    color: rgba(255, 255, 255, 0.58);
    font-family: 'Manrope', Arial, Helvetica, sans-serif;
    font-size: 13px;
    font-weight: 500;
}

.residents-inventory-card__description {
    margin: 18px 0 0;
    color: rgba(255, 255, 255, 0.72);
    font-family: 'Manrope', Arial, Helvetica, sans-serif;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.45;
}

.residents-inventory-card__details {
    margin: 26px 0 0;
    padding: 20px 0 0;
    border-top: 1px solid rgba(255, 255, 255, 0.28);
}

.residents-inventory-card__details > div {
    display: grid;
    grid-template-columns: minmax(110px, 0.8fr) minmax(0, 1.2fr);
    align-items: baseline;
    gap: 18px;
    padding: 8px 0;
}

.residents-inventory-card__details dt,
.residents-inventory-card__details dd {
    margin: 0;
}

.residents-inventory-card__details dt {
    font-family: 'RoadRadio', Arial, Helvetica, sans-serif;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.3;
    text-transform: uppercase;
}

.residents-inventory-card__details dd {
    text-align: right;
    font-family: 'RoadRadio', Arial, Helvetica, sans-serif;
    font-size: 19px;
    font-weight: 700;
    line-height: 1.25;
}

.residents-inventory-card__request {
    width: 100%;
    min-height: 54px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    margin-top: 24px;
    padding: 12px 18px;
    border: 1px solid rgba(255, 255, 255, 0.48);
    color: #1f1f1f;
    background: #ffffff;
    font-family: 'RoadRadio', Arial, Helvetica, sans-serif;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.2;
    text-transform: uppercase;
    cursor: pointer;
}

.residents-inventory-card__request img {
    width: 13px;
    height: 12px;
    filter: brightness(0);
}

.residents-inventory-card__request:hover,
.residents-inventory-card__request:focus-visible {
    background: #ececec;
    outline: none;
}

/* Список */
.residents-inventory__view--list {
    min-height: 900px;
    padding: 76px 0 96px;
    background: #ffffff;
}

.residents-inventory__list-head {
    width: min(100%, 1903px);
    margin: 0 auto;
    padding: 0 40px;
}

.residents-inventory__title--list {
    color: #1f1f1f;
}

.residents-inventory__tabs--list {
    margin-top: 40px;
    border-color: #bfc1c2;
}

.residents-inventory__tabs--list .residents-inventory__tab {
    border-right-color: #bfc1c2;
    color: #1f1f1f;
    background: #ffffff;
    backdrop-filter: none;
}

.residents-inventory__tabs--list .residents-inventory__tab:hover,
.residents-inventory__tabs--list .residents-inventory__tab:focus-visible {
    background: #f2f2f2;
}

.residents-inventory__tabs--list .residents-inventory__tab.is-active {
    color: #ffffff;
    background: #1f1f1f;
}

.residents-inventory-filters {
    display: grid;
    grid-template-columns: 210px 210px minmax(480px, 650px) minmax(24px, 1fr) 280px;
    align-items: start;
    gap: 16px;
    margin-top: 52px;
}

.residents-inventory-filter {
    display: block;
}

.residents-inventory-filter select {
    width: 100%;
    height: 56px;
    padding: 0 52px 0 22px;
    border: 1px solid #727475;
    border-radius: 0;
    outline: 0;
    color: #1f1f1f;
    background:
        linear-gradient(45deg, transparent 50%, #1f1f1f 50%) calc(100% - 24px) 24px / 8px 8px no-repeat,
        linear-gradient(135deg, #1f1f1f 50%, transparent 50%) calc(100% - 16px) 24px / 8px 8px no-repeat,
        #ffffff;
    appearance: none;
    font-family: 'RoadRadio', Arial, Helvetica, sans-serif;
    font-size: 13px;
    font-weight: 700;
    line-height: 1;
    text-transform: uppercase;
    cursor: pointer;
}

.residents-inventory-filter select:focus-visible {
    border-color: #1f1f1f;
    box-shadow: 0 0 0 2px rgba(31, 31, 31, 0.1);
}

.residents-inventory-area-filter {
    position: relative;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding-bottom: 18px;
}

.residents-inventory-area-filter > label {
    height: 56px;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    padding: 0 22px;
    border: 1px solid #727475;
    background: #ffffff;
}

.residents-inventory-area-filter > label + label {
    border-left: 0;
}

.residents-inventory-area-filter > label span,
.residents-inventory-area-filter > label strong {
    font-family: 'RoadRadio', Arial, Helvetica, sans-serif;
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
    text-transform: uppercase;
}

.residents-inventory-area-filter > label strong {
    font-size: 16px;
}

.residents-inventory-area-filter > label input[type='number'] {
    min-width: 0;
    width: 100%;
    padding: 0;
    border: 0;
    outline: 0;
    color: #1f1f1f;
    background: transparent;
    font-family: 'Manrope', Arial, Helvetica, sans-serif;
    font-size: 16px;
    font-weight: 500;
    appearance: textfield;
}

.residents-inventory-area-filter > label input[type='number']::-webkit-outer-spin-button,
.residents-inventory-area-filter > label input[type='number']::-webkit-inner-spin-button {
    margin: 0;
    appearance: none;
}

.residents-inventory-area-filter__range {
    --range-from: 0%;
    --range-to: 100%;
    position: absolute;
    right: 6px;
    bottom: 0;
    left: 6px;
    height: 18px;
}

.residents-inventory-area-filter__range::before,
.residents-inventory-area-filter__range > span {
    content: '';
    position: absolute;
    top: 8px;
    height: 2px;
}

.residents-inventory-area-filter__range::before {
    right: 0;
    left: 0;
    background: #b8b8b8;
}

.residents-inventory-area-filter__range > span {
    left: var(--range-from);
    right: calc(100% - var(--range-to));
    background: #1f1f1f;
}

.residents-inventory-area-filter__range input[type='range'] {
    position: absolute;
    z-index: 2;
    top: 0;
    left: 0;
    width: 100%;
    height: 18px;
    margin: 0;
    padding: 0;
    border: 0;
    outline: 0;
    background: transparent;
    pointer-events: none;
    appearance: none;
}

.residents-inventory-area-filter__range input[type='range']::-webkit-slider-runnable-track {
    height: 2px;
    background: transparent;
}

.residents-inventory-area-filter__range input[type='range']::-webkit-slider-thumb {
    width: 14px;
    height: 14px;
    margin-top: -6px;
    border: 0;
    border-radius: 50%;
    background: #1f1f1f;
    cursor: grab;
    pointer-events: auto;
    appearance: none;
}

.residents-inventory-area-filter__range input[type='range']::-moz-range-track {
    height: 2px;
    background: transparent;
}

.residents-inventory-area-filter__range input[type='range']::-moz-range-thumb {
    width: 14px;
    height: 14px;
    border: 0;
    border-radius: 50%;
    background: #1f1f1f;
    cursor: grab;
    pointer-events: auto;
}

.residents-inventory-filters__reset {
    grid-column: 5;
    width: 280px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 0 22px;
    border: 1px solid #1f1f1f;
    color: #ffffff;
    background: #1f1f1f;
    cursor: pointer;
    transition: color 180ms ease, background-color 180ms ease;
}

.residents-inventory-filters__reset span {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 30px;
    font-weight: 300;
    line-height: 1;
}

.residents-inventory-filters__reset strong {
    font-family: 'RoadRadio', Arial, Helvetica, sans-serif;
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
    text-transform: uppercase;
}

.residents-inventory-filters__reset:hover,
.residents-inventory-filters__reset:focus-visible {
    color: #1f1f1f;
    background: #ffffff;
    outline: none;
}

.residents-inventory-table-wrap {
    width: min(100%, 1903px);
    margin: 38px auto 0;
    overflow-x: auto;
    border-top: 1px solid #dedede;
    border-right: 1px solid #dedede;
    border-bottom: 1px solid #dedede;
    border-left: 1px solid #dedede;
    background: #ffffff;
}

.residents-inventory-table {
    width: 100%;
    min-width: 1180px;
    border-collapse: collapse;
    table-layout: fixed;
}

.residents-inventory-table__col--block { width: 10.5%; }
.residents-inventory-table__col--area { width: 13%; }
.residents-inventory-table__col--price { width: 16%; }
.residents-inventory-table__col--yield { width: 16%; }
.residents-inventory-table__col--payback { width: 17%; }
.residents-inventory-table__col--format { width: 14.5%; }
.residents-inventory-table__col--action { width: 13%; }

.residents-inventory-table th,
.residents-inventory-table td {
    padding: 0 32px;
    border-right: 1px solid #dedede;
    border-bottom: 1px solid #dedede;
    text-align: left;
    vertical-align: middle;
}

.residents-inventory-table th:last-child,
.residents-inventory-table td:last-child {
    border-right: 0;
}

.residents-inventory-table tbody tr:last-child td {
    border-bottom: 0;
}

.residents-inventory-table thead th {
    height: 80px;
    background: #f8f9fa;
    font-family: 'RoadRadio', Arial, Helvetica, sans-serif;
    font-size: 20px;
    font-weight: 700;
    line-height: 1.2;
    text-transform: uppercase;
}

.residents-inventory-table tbody td {
    height: 64px;
    font-family: 'Manrope', Arial, Helvetica, sans-serif;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.35;
}

.residents-inventory-table tbody tr.is-unavailable td {
    color: rgba(31, 31, 31, 0.42);
}

.residents-inventory-table__action {
    padding: 10px 14px !important;
    text-align: center !important;
}

.residents-inventory-table__action button {
    width: 100%;
    min-width: 190px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 0 16px;
    border: 1px solid #1f1f1f;
    color: #ffffff;
    background: #1f1f1f;
    font-family: 'RoadRadio', Arial, Helvetica, sans-serif;
    font-size: 11px;
    font-weight: 700;
    line-height: 1;
    text-transform: uppercase;
    cursor: pointer;
    transition: color 180ms ease, background-color 180ms ease;
}

.residents-inventory-table__action button img {
    width: 12px;
    height: 11px;
}

.residents-inventory-table__action button:hover,
.residents-inventory-table__action button:focus-visible {
    color: #1f1f1f;
    background: #ffffff;
    outline: none;
}

.residents-inventory-table__action button:hover img,
.residents-inventory-table__action button:focus-visible img {
    filter: brightness(0);
}

.residents-inventory-table__dash {
    display: inline-block;
    font-size: 18px;
}

.residents-inventory-table__empty td {
    height: 120px !important;
    color: rgba(31, 31, 31, 0.56);
    text-align: center !important;
    font-family: 'Manrope', Arial, Helvetica, sans-serif;
    font-size: 16px !important;
}

/* Форма заявки */
body.is-residents-request-locked {
    overflow: hidden;
}

.residents-request-modal {
    position: fixed;
    z-index: 1500;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 26px;
}

.residents-request-modal.is-open {
    display: flex;
}

.residents-request-modal__overlay {
    position: absolute;
    z-index: 0;
    inset: 0;
    width: 100%;
    height: 100%;
    padding: 0;
    border: 0;
    background: rgba(31, 31, 31, 0.52);
    cursor: pointer;
}

.residents-request-modal__dialog {
    position: relative;
    z-index: 1;
    width: min(900px, calc(100vw - 52px));
    max-height: calc(100vh - 52px);
    overflow-y: auto;
    color: #1f1f1f;
    background: #ffffff;
    box-shadow: 0 28px 80px rgba(0, 0, 0, 0.28);
}

.residents-request-modal__close {
    position: absolute;
    z-index: 2;
    top: 18px;
    right: 22px;
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    padding: 0;
    border: 0;
    color: rgba(31, 31, 31, 0.62);
    background: transparent;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 48px;
    font-weight: 300;
    line-height: 1;
    cursor: pointer;
}

.residents-request-modal__close:hover,
.residents-request-modal__close:focus-visible {
    color: #1f1f1f;
    outline: none;
}

.residents-request-modal__inner {
    width: min(100% - 108px, 792px);
    margin: 0 auto;
    padding: 58px 0 48px;
}

.residents-request-modal__header h2 {
    max-width: 700px;
    margin: 0;
    font-family: 'RoadRadio', Arial, Helvetica, sans-serif;
    font-size: clamp(38px, 3.6vw, 54px);
    font-weight: 700;
    line-height: 1.06;
    text-transform: uppercase;
}

.residents-request-modal__header p {
    margin: 28px 0 0;
    color: rgba(31, 31, 31, 0.5);
    font-family: 'RoadRadio', Arial, Helvetica, sans-serif;
    font-size: 24px;
    font-weight: 700;
    line-height: 1.2;
    text-transform: uppercase;
}

.residents-request-modal__form {
    margin-top: 36px;
}

.residents-request-modal__form label {
    position: relative;
    height: 90px;
    display: block;
    border: 1px solid #cfcfcf;
    border-bottom: 0;
}

.residents-request-modal__form label span {
    position: absolute;
    top: 32px;
    left: 32px;
    color: #1f1f1f;
    font-family: 'RoadRadio', Arial, Helvetica, sans-serif;
    font-size: 21px;
    font-weight: 700;
    line-height: 1.2;
    text-transform: uppercase;
    pointer-events: none;
    transition: top 180ms ease, font-size 180ms ease, color 180ms ease;
}

.residents-request-modal__form label:focus-within span,
.residents-request-modal__form label:has(input:not(:placeholder-shown)) span {
    top: 13px;
    color: rgba(31, 31, 31, 0.54);
    font-size: 12px;
}

.residents-request-modal__form input:not([type='hidden']) {
    width: 100%;
    height: 100%;
    padding: 38px 32px 10px;
    border: 0;
    outline: 0;
    color: #1f1f1f;
    background: transparent;
    font-family: 'Manrope', Arial, Helvetica, sans-serif;
    font-size: 18px;
    font-weight: 500;
}

.residents-request-modal__form button[type='submit'] {
    width: 100%;
    height: 76px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 24px;
    border: 1px solid #1f1f1f;
    color: #ffffff;
    background: #1f1f1f;
    font-family: 'RoadRadio', Arial, Helvetica, sans-serif;
    font-size: 13px;
    font-weight: 700;
    line-height: 1;
    text-transform: uppercase;
    cursor: pointer;
}

.residents-request-modal__form button[type='submit']:hover,
.residents-request-modal__form button[type='submit']:focus-visible {
    color: #1f1f1f;
    background: #ffffff;
    outline: none;
}

.residents-request-modal__consent {
    margin: 14px 0 0;
    text-align: center;
    font-family: 'Manrope', Arial, Helvetica, sans-serif;
    font-size: 13px;
    font-weight: 400;
    line-height: 1.4;
}

.residents-request-modal__consent a {
    color: #1f1f1f;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.residents-request-modal__separator {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 34px;
    color: rgba(31, 31, 31, 0.5);
    font-family: 'RoadRadio', Arial, Helvetica, sans-serif;
    font-size: 15px;
    font-weight: 700;
    line-height: 1;
    text-transform: uppercase;
}

.residents-request-modal__separator::before,
.residents-request-modal__separator::after {
    content: '';
    height: 1px;
    flex: 1 1 auto;
    background: rgba(31, 31, 31, 0.16);
}

.residents-request-modal__contact {
    width: max-content;
    max-width: 100%;
    display: inline-flex;
    align-items: center;
    gap: 18px;
    margin-top: 28px;
    color: #1f1f1f;
    font-family: 'RoadRadio', Arial, Helvetica, sans-serif;
    font-size: 24px;
    font-weight: 700;
    line-height: 1.2;
    text-decoration: none;
}

.residents-request-modal__whatsapp {
    width: 50px;
    height: 50px;
    display: grid;
    place-items: center;
    flex: 0 0 50px;
    border: 1px solid #1f1f1f;
}

.residents-request-modal__whatsapp img {
    width: 34px;
    height: 34px;
    display: block;
}

@media (max-width: 1500px) {
    .residents-inventory-filters {
        grid-template-columns: 190px 190px minmax(420px, 1fr) 240px;
    }

    .residents-inventory-filters__reset {
        grid-column: 4;
        width: 240px;
    }

    .residents-inventory-table th,
    .residents-inventory-table td {
        padding-inline: 24px;
    }
}

@media (max-width: 1180px) {
    .residents-inventory__plan-stage {
        min-height: 680px;
    }

    .residents-inventory-filters {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .residents-inventory-area-filter {
        grid-column: 1 / -1;
    }

    .residents-inventory-filters__reset {
        grid-column: 2;
        justify-self: end;
    }
}

@media (max-width: 900px) {
    .residents-inventory__plan-head,
    .residents-inventory__list-head {
        padding-inline: 24px;
    }

    .residents-inventory__title {
        font-size: clamp(46px, 7vw, 64px);
    }

    .residents-inventory__plan-stage {
        min-height: 650px;
    }

    .residents-inventory-card {
        width: 370px;
    }
}

@media (max-width: 760px) {
    .residents-inventory {
        width: min(100%, 393px);
        margin: 0 auto;
    }

    .residents-inventory__plan-stage {
        width: 100%;
        height: 700px;
        min-height: 0;
    }

    .residents-inventory__plan-map {
        top: 0;
        right: auto;
        bottom: auto;
        left: 0;
        width: 1244px;
        height: 700px;
        max-width: none;
    }

    .residents-inventory__plan-image {
        object-fit: cover;
        object-position: center center;
    }

    .residents-inventory__polygons,
    .residents-inventory__markers {
        width: 100%;
        height: 100%;
    }

    .residents-inventory__plan-head {
        padding: 54px 16px 0;
    }

    .residents-inventory__title {
        font-size: 38px;
        line-height: 0.98;
    }

    .residents-inventory__tabs {
        width: 100%;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        margin-top: 28px;
    }

    .residents-inventory__tab {
        height: 50px;
        font-size: 13px;
    }

    .residents-inventory__marker {
        width: 34px;
        height: 34px;
        font-size: 12px;
    }

    .residents-inventory-card {
        right: 16px !important;
        bottom: 16px !important;
        left: 16px !important;
        top: auto !important;
        width: auto;
        max-height: 430px;
        padding: 26px 24px 22px;
    }

    .residents-inventory-card h3 {
        font-size: 25px;
    }

    .residents-inventory-card__details {
        margin-top: 18px;
        padding-top: 14px;
    }

    .residents-inventory-card__details > div {
        padding: 6px 0;
    }

    .residents-inventory-card__details dd {
        font-size: 16px;
    }

    .residents-inventory__view--list {
        min-height: 0;
        padding: 64px 0 72px;
    }

    .residents-inventory__list-head {
        padding: 0 16px;
    }

    .residents-inventory__tabs--list {
        margin-top: 28px;
    }

    .residents-inventory-filters {
        grid-template-columns: 1fr;
        gap: 12px;
        margin-top: 36px;
    }

    .residents-inventory-area-filter,
    .residents-inventory-filters__reset {
        grid-column: auto;
    }

    .residents-inventory-area-filter {
        grid-template-columns: 1fr;
        gap: 0;
        padding-bottom: 20px;
    }

    .residents-inventory-area-filter > label + label {
        border-top: 0;
        border-left: 1px solid #727475;
    }

    .residents-inventory-filters__reset {
        width: 100%;
        justify-self: stretch;
    }

    .residents-inventory-table-wrap {
        width: 100%;
        margin-top: 36px;
        overflow: visible;
        border-right: 0;
        border-left: 0;
    }

    .residents-inventory-table {
        min-width: 0;
        display: block;
    }

    .residents-inventory-table colgroup,
    .residents-inventory-table thead {
        display: none;
    }

    .residents-inventory-table tbody,
    .residents-inventory-table tr,
    .residents-inventory-table td {
        display: block;
        width: 100%;
        height: auto;
    }

    .residents-inventory-table tr {
        padding: 22px 16px;
        border-bottom: 1px solid #dedede;
    }

    .residents-inventory-table tr:last-child {
        border-bottom: 0;
    }

    .residents-inventory-table td {
        min-height: 34px;
        display: grid;
        grid-template-columns: minmax(118px, 0.8fr) minmax(0, 1.2fr);
        align-items: baseline;
        gap: 16px;
        padding: 7px 0;
        border: 0;
        text-align: right;
    }

    .residents-inventory-table td::before {
        content: attr(data-label);
        color: #1f1f1f;
        text-align: left;
        font-family: 'RoadRadio', Arial, Helvetica, sans-serif;
        font-size: 11px;
        font-weight: 700;
        line-height: 1.25;
        text-transform: uppercase;
    }

    .residents-inventory-table__action {
        display: block !important;
        padding: 14px 0 0 !important;
    }

    .residents-inventory-table__action::before {
        display: none;
    }

    .residents-inventory-table__action button {
        width: 100%;
        min-width: 0;
        height: 50px;
    }

    .residents-inventory-table__empty {
        padding: 0 !important;
    }

    .residents-inventory-table__empty td {
        height: auto !important;
        min-height: 120px;
        display: grid;
        place-items: center;
        padding: 24px 16px;
    }

    .residents-inventory-table__empty td::before {
        display: none;
    }

    .residents-request-modal {
        padding: 12px;
    }

    .residents-request-modal__dialog {
        width: calc(100vw - 24px);
        max-height: calc(100vh - 24px);
    }

    .residents-request-modal__close {
        top: 10px;
        right: 12px;
    }

    .residents-request-modal__inner {
        width: calc(100% - 32px);
        padding: 48px 0 32px;
    }

    .residents-request-modal__header h2 {
        padding-right: 34px;
        font-size: 30px;
    }

    .residents-request-modal__header p {
        margin-top: 20px;
        font-size: 17px;
    }

    .residents-request-modal__form {
        margin-top: 26px;
    }

    .residents-request-modal__form label {
        height: 76px;
    }

    .residents-request-modal__form label span {
        top: 27px;
        left: 20px;
        font-size: 16px;
    }

    .residents-request-modal__form label:focus-within span,
    .residents-request-modal__form label:has(input:not(:placeholder-shown)) span {
        top: 10px;
        font-size: 10px;
    }

    .residents-request-modal__form input:not([type='hidden']) {
        padding: 31px 20px 8px;
        font-size: 16px;
    }

    .residents-request-modal__form button[type='submit'] {
        height: 64px;
    }

    .residents-request-modal__contact {
        gap: 12px;
        font-size: 18px;
    }

    .residents-request-modal__whatsapp {
        width: 44px;
        height: 44px;
        flex-basis: 44px;
    }

    .residents-request-modal__whatsapp img {
        width: 30px;
        height: 30px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .residents-inventory__marker,
    .residents-inventory__tab,
    .residents-inventory-card__request,
    .residents-inventory-filters__reset,
    .residents-inventory-table__action button {
        transition: none;
    }
}

/* === RESIDENTS INVENTORY HOVER CLEANUP 2026-09-10 === */
.residents-inventory__marker:hover,
.residents-inventory__marker:focus-visible,
.residents-inventory__marker.is-hovered {
    outline: none;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
    transform: translate(-50%, -50%) scale(1.08);
}

.residents-inventory__marker.is-selected {
    outline: none;
    color: #1f1f1f;
    background: #ffffff;
    box-shadow: 0 8px 26px rgba(0, 0, 0, 0.38);
}

.residents-inventory-card__request:hover,
.residents-inventory-card__request:focus-visible,
.residents-inventory-card__request:active {
    background: #f2f2f2 !important;
    border-color: #f2f2f2 !important;
    color: #1f1f1f !important;
    outline: none !important;
    box-shadow: none !important;
}

.residents-inventory-card__request img {
    transform-origin: 50% 50%;
    transition: transform 220ms ease, filter 220ms ease;
}

.residents-inventory-card__request:hover img,
.residents-inventory-card__request:focus-visible img,
.residents-inventory-card__request:active img {
    filter: brightness(0) !important;
    transform: rotate(45deg) !important;
}
/* === /RESIDENTS INVENTORY HOVER CLEANUP === */
/* === RESIDENTS INVENTORY POLYGON CLICK CLEANUP 2026-09-10 === */
.residents-inventory__polygon:hover,
.residents-inventory__polygon:focus-visible,
.residents-inventory__polygon.is-hovered {
    fill: rgba(255, 255, 255, 0.12);
    stroke: rgba(255, 255, 255, 0.96);
    filter: none;
}

.residents-inventory__polygon.is-selected,
.residents-inventory__polygon.is-selected:hover,
.residents-inventory__polygon.is-selected:focus-visible,
.residents-inventory__polygon.is-selected.is-hovered {
    fill: rgba(255, 255, 255, 0.06);
    stroke: rgba(255, 255, 255, 0.96);
    stroke-width: 1.6px;
    stroke-dasharray: 12px 10px;
    stroke-linecap: round;
    stroke-linejoin: round;
    filter: none;
}
/* === /RESIDENTS INVENTORY POLYGON CLICK CLEANUP === */

/* === RESIDENTS INVENTORY MARKER/POLYGON NO BLOB 2026-09-10 === */
.residents-inventory__polygon,
.residents-inventory__polygon:hover,
.residents-inventory__polygon:focus-visible,
.residents-inventory__polygon.is-hovered,
.residents-inventory__polygon.is-selected,
.residents-inventory__polygon.is-selected:hover,
.residents-inventory__polygon.is-selected:focus-visible,
.residents-inventory__polygon.is-selected.is-hovered {
    fill: transparent !important;
    stroke: rgba(255, 255, 255, 0.96) !important;
    stroke-width: 1.6px !important;
    stroke-dasharray: 12px 10px !important;
    stroke-linecap: round !important;
    stroke-linejoin: round !important;
    vector-effect: non-scaling-stroke !important;
    filter: none !important;
    box-shadow: none !important;
}

.residents-inventory__polygon:hover,
.residents-inventory__polygon:focus-visible,
.residents-inventory__polygon.is-hovered,
.residents-inventory__polygon.is-selected {
    fill: rgba(255, 255, 255, 0.035) !important;
}

.residents-inventory__marker,
.residents-inventory__marker:hover,
.residents-inventory__marker:focus-visible,
.residents-inventory__marker.is-hovered,
.residents-inventory__marker.is-selected {
    outline: 0 !important;
}

.residents-inventory__marker:hover,
.residents-inventory__marker:focus-visible,
.residents-inventory__marker.is-hovered {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35) !important;
}

.residents-inventory__marker.is-selected,
.residents-inventory__marker.is-selected:hover,
.residents-inventory__marker.is-selected:focus-visible,
.residents-inventory__marker.is-selected.is-hovered {
    color: #1f1f1f !important;
    background: #ffffff !important;
    box-shadow: 0 8px 26px rgba(0, 0, 0, 0.38) !important;
    transform: translate(-50%, -50%) scale(1) !important;
}
/* === /RESIDENTS INVENTORY MARKER/POLYGON NO BLOB === */


/* === RESIDENTS INVENTORY NO PERSISTENT CLICK HIGHLIGHT 2026-09-10 === */
.residents-inventory__polygon,
.residents-inventory__polygon:hover,
.residents-inventory__polygon:focus,
.residents-inventory__polygon:focus-visible,
.residents-inventory__polygon.is-hovered,
.residents-inventory__polygon.is-selected,
.residents-inventory__polygon.is-selected:hover,
.residents-inventory__polygon.is-selected:focus-visible,
.residents-inventory__polygon.is-selected.is-hovered {
    fill: rgba(255, 255, 255, 0) !important;
    fill-opacity: 0 !important;
    stroke: rgba(255, 255, 255, 0.96) !important;
    stroke-opacity: 1 !important;
    stroke-width: 1.6px !important;
    stroke-dasharray: 12px 10px !important;
    stroke-linecap: round !important;
    stroke-linejoin: round !important;
    vector-effect: non-scaling-stroke !important;
    filter: none !important;
    box-shadow: none !important;
    outline: 0 !important;
    pointer-events: all;
}

.residents-inventory__marker.is-selected,
.residents-inventory__marker.is-selected:hover,
.residents-inventory__marker.is-selected:focus,
.residents-inventory__marker.is-selected:focus-visible,
.residents-inventory__marker.is-selected.is-hovered {
    color: #ffffff !important;
    background: #1f1f1f !important;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35) !important;
    outline: 0 !important;
    transform: translate(-50%, -50%) scale(1) !important;
}

.residents-inventory__marker:hover,
.residents-inventory__marker:focus,
.residents-inventory__marker:focus-visible,
.residents-inventory__marker.is-hovered {
    color: #ffffff !important;
    background: #1f1f1f !important;
    outline: 0 !important;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35) !important;
}
/* === /RESIDENTS INVENTORY NO PERSISTENT CLICK HIGHLIGHT === */
