.owner-message-wrapper {
        display: flex;
        justify-content: center;
        align-items: center;
        min-height: calc(100vh - 140px);
        margin: 0;
        padding: 20px;
        box-sizing: border-box;
    }
    .owner-message-box {
        width: auto;
        max-width: 90%;
        min-width: 260px;
        background: rgba(28, 31, 38, 0.6);
        backdrop-filter: blur(4px);
        border-radius: 40px;
        padding: 18px 24px;
        border: 1px solid rgba(255, 205, 87, 0.25);
        text-align: center;
        color: #DEDBB2;
        font-size: 16px;
        font-weight: 500;
        line-height: 1.6;
    }
    .owner-message-box a,
    .owner-message-box a:link,
    .owner-message-box a:visited {
        color: #e8bd58;
        text-decoration: none !important;
        border-bottom: 0 solid #e8bd58;
        transition: border-bottom 0.2s ease;
        font-weight: 600;
    }
    .owner-message-box a:hover,
    .owner-message-box a:focus {
        border-bottom-width: 1px;
        text-decoration: none !important;
    }

/* ===== rentarest-add-object extracted block ===== */
/* ===== БЛОК ПРЕИМУЩЕСТВ ===== */

/* Страховка: если где-то старые галочки останутся, они не будут отображаться */
/* ===== QUALITY BADGE ДЛЯ БЛОКОВ ПРЕИМУЩЕСТВ ===== */

/* Если старые span с галочками где-то останутся, прячем их.
   Да, CSS снова спасает HTML от самого себя. */
.gradient-icon,
.check-icon {
    display: none !important;
}

.advantage-item {
    position: relative;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;

    flex: none;
    padding: 68px 10px 18px;

    text-align: center;
    cursor: default;

    transition: transform 0.3s ease, opacity 0.3s ease;
}

.advantage-item:hover {
    transform: translateY(-5px);
}

/* Внешняя форма бейджа */
.advantage-item::before {
    content: "";
    position: absolute;
    top: 12px;
    left: 50%;

    width: 44px;
    height: 44px;

    transform: translateX(-50%);

    background:
        radial-gradient(circle at 35% 28%, rgba(255, 255, 255, 0.16), transparent 34%),
        linear-gradient(145deg, rgba(35, 38, 48, 0.96), rgba(28, 31, 38, 0.96)) padding-box,
        conic-gradient(
            from 140deg,
            #6f4f0c,
            #c5942e,
            #fce181,
            #e8bd58,
            #8a6417,
            #ffd966,
            #6f4f0c
        ) border-box;

    border: 1px solid transparent;

    clip-path: polygon(
        50% 0%,
        60% 10%,
        74% 6%,
        82% 19%,
        96% 24%,
        91% 39%,
        100% 50%,
        91% 61%,
        96% 76%,
        82% 81%,
        74% 94%,
        60% 90%,
        50% 100%,
        40% 90%,
        26% 94%,
        18% 81%,
        4% 76%,
        9% 61%,
        0% 50%,
        9% 39%,
        4% 24%,
        18% 19%,
        26% 6%,
        40% 10%
    );

    box-shadow:
        0 0 0 1px rgba(255, 205, 87, 0.08),
        0 8px 18px rgba(0, 0, 0, 0.36),
        0 0 18px rgba(232, 189, 88, 0.16);

    opacity: 0.92;
}

/* Внутренний символ качества */
.advantage-item::after {
    content: "✔️";
    position: absolute;
    top: 21px;
    left: 50%;

    transform: translateX(-50%);

    font-size: 18px;
    font-weight: 900;
    line-height: 1;

    color: transparent;
    background: linear-gradient(135deg, #fff4a8 0%, #ffd966 35%, #e8bd58 68%, #b9821f 100%);
    -webkit-background-clip: text;
    background-clip: text;

    text-shadow:
        0 1px 2px rgba(0, 0, 0, 0.45),
        0 0 8px rgba(255, 217, 102, 0.22);

    opacity: 0.96;
}

.advantage-text {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    width: 100%;

   opacity: 0.82;
    filter: brightness(0.92) saturate(0.96);

    transition: opacity 0.25s ease, filter 0.25s ease;
}

.advantage-item:hover .advantage-text {
opacity: 1.60;
    filter: brightness(1.00) saturate(1.02);
}

.advantage-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: rgba(255, 203, 80, 0.82);
    margin-bottom: 6px;
    line-height: 1.3;
    text-align: center;

    text-shadow:
        0 2px 8px rgba(0, 0, 0, 0.58),
        0 0 10px rgba(232, 189, 88, 0.08);
}

.advantage-description {
    font-size: 0.95rem;
    color: rgba(222, 219, 178, 0.72);
    line-height: 1.45;
    text-align: center;

    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.68);
}

    .premium-advantages {
        width: 100%;
    }

    .premium-image {
        width: 90%;
        position: relative;
        margin: 0 auto;
        border-radius: 40px;
        mask-image: linear-gradient(to right, transparent 0%, black 15%, black 85%, transparent 100%),
                    linear-gradient(to bottom, transparent 0%, black 15%, black 85%, transparent 100%);
        mask-composite: intersect;
        -webkit-mask-image: linear-gradient(to right, transparent 0%, black 15%, black 85%, transparent 100%),
                            linear-gradient(to bottom, transparent 0%, black 15%, black 85%, transparent 100%);
        -webkit-mask-composite: source-in;
    }

    .premium-image img {
        width: 100%;
        display: block;
    }

.object-grid.form-layout {
    --advantages-offset: clamp(32px, 4vw, 78px);

    width: min(100%, 1320px);
    margin: 60px auto 120px;

    display: grid;
    grid-template-columns: minmax(220px, 1fr) minmax(0, 700px) minmax(220px, 1fr);
    grid-template-areas: "left form right";

    column-gap: 80px;
    row-gap: 0;

    align-items: start;
    overflow: visible;
}

    .advantages-column {
        display: flex;
        flex-direction: column;
        gap: 8px;
        padding-top: 8px;
        box-sizing: border-box;
    }

.advantages-left {
    grid-area: left;
    justify-self: end;
    transform: translateX(calc(var(--advantages-offset) * -1));
}

.advantages-right {
    grid-area: right;
    justify-self: start;
    transform: translateX(var(--advantages-offset));
}

    .object-grid.form-layout .ra-object-form-card {
        grid-area: form;
    }

@media (max-width: 1180px) {
    .object-grid.form-layout {
        width: min(100%, 760px);

        grid-template-columns: 1fr;
        grid-template-areas:
            "form"
            "left"
            "right";

        gap: 18px;
    }

    .advantages-left,
    .advantages-right {
        justify-self: stretch;
        transform: none;
    }

    .advantages-column {
        padding-top: 0;
    }
}

/* ===== rentarest-add-object extracted block ===== */
/* ----- ОСНОВНЫЕ СТИЛИ (ваши существующие стили, без изменений) ----- */
        input#price_month::-webkit-outer-spin-button,
        input#price_month::-webkit-inner-spin-button,
        input#area::-webkit-outer-spin-button,
        input#area::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
        input#price_month,
        input#area { -moz-appearance: textfield; }


        /* ===== КАРТОЧКА ФОРМЫ ДОБАВЛЕНИЯ ОБЪЕКТА ===== */
        .ra-object-form-card {
            width: 100%;
            max-width: 700px;
            min-width: 0;
            margin: 0 auto;
            padding: 30px;
            border: 1px solid rgba(220, 180, 82, 0.28);
            border-radius: 16px;
            background:
                linear-gradient(
                    180deg,
                    rgba(255, 255, 255, 0.034),
                    rgba(255, 255, 255, 0.006)
                ),
                rgba(17, 24, 36, 0.88);
            box-shadow:
                0 0 6px rgba(220, 180, 82, 0.075),
                0 0 12px rgba(220, 180, 82, 0.055),
                0 0 22px rgba(220, 180, 82, 0.032),
                inset 0 1px 0 rgba(255, 255, 255, 0.048),
                0 0 0 1px rgba(220, 180, 82, 0.018);
            transition:
                border-color 0.24s ease,
                box-shadow 0.24s ease,
                background 0.24s ease;
        }

        .ra-object-form-card:hover {
            border-color: rgba(255, 224, 141, 0.34);
            box-shadow:
                0 0 6px rgba(220, 180, 82, 0.085),
                0 0 12px rgba(220, 180, 82, 0.062),
                0 0 22px rgba(220, 180, 82, 0.038),
                inset 0 1px 0 rgba(255, 255, 255, 0.054),
                0 0 0 1px rgba(255, 224, 141, 0.045);
        }

        .ra-add-object-page .form-group {
            position: relative;
            width: 100%;
            min-width: 0;
            max-width: 100%;
            margin-bottom: 16px;
        }

        .ra-add-object-page .form-group label {
            display: block;
            margin-bottom: 8px;
            color: #e1b759;
            font-size: 15px;
            line-height: 1.35;
            font-weight: 500;
        }

        .ra-add-object-page .form-group input:not([type="hidden"]):not([type="file"]),
        .ra-add-object-page .form-group textarea:not(#content) {
            display: block;
            width: 100%;
            max-width: 100%;
            min-width: 0;
            box-sizing: border-box;
            padding: 14px 18px;
            border: 1px solid rgba(220, 180, 82, 0.20);
            border-radius: 8px;
            background:
                linear-gradient(
                    180deg,
                    rgba(255, 255, 255, 0.029),
                    rgba(255, 255, 255, 0.007)
                ),
                rgba(22, 31, 48, 0.98);
            color: #e7e1be;
            caret-color: #e1b759;
            font-family: inherit;
            font-size: 16px;
            -webkit-appearance: none;
            appearance: none;
            box-shadow:
                inset 0 1px 0 rgba(255, 255, 255, 0.038),
                inset 0 -1px 0 rgba(0, 0, 0, 0.12),
                0 0 0 1px rgba(0, 0, 0, 0.09);
            transition:
                border-color 0.2s ease,
                box-shadow 0.2s ease,
                background 0.2s ease,
                color 0.2s ease;
        }

        .ra-add-object-page .form-group input:not([type="hidden"]):not([type="file"]):hover,
        .ra-add-object-page .form-group textarea:not(#content):hover {
            border-color: rgba(225, 183, 89, 0.36);
            background:
                linear-gradient(
                    180deg,
                    rgba(255, 255, 255, 0.034),
                    rgba(255, 255, 255, 0.009)
                ),
                rgba(25, 36, 53, 0.99);
            box-shadow:
                inset 0 1px 0 rgba(255, 255, 255, 0.042),
                inset 0 -1px 0 rgba(0, 0, 0, 0.12),
                0 0 0 1px rgba(225, 183, 89, 0.018);
        }

        .ra-add-object-page .form-group input:not([type="hidden"]):not([type="file"]):focus,
        .ra-add-object-page .form-group textarea:not(#content):focus {
            outline: none;
            border-color: rgba(255, 224, 141, 0.68);
            background:
                linear-gradient(
                    180deg,
                    rgba(255, 255, 255, 0.039),
                    rgba(255, 255, 255, 0.011)
                ),
                rgba(27, 40, 59, 1);
            color: #f2eac4;
            box-shadow:
                0 0 0 3px rgba(225, 183, 89, 0.14),
                0 0 10px rgba(225, 183, 89, 0.035),
                inset 0 1px 0 rgba(255, 255, 255, 0.050);
        }

        .ra-add-object-page .form-group input:not([type="hidden"]):not([type="file"])::placeholder,
        .ra-add-object-page .form-group textarea:not(#content)::placeholder {
            color: rgba(218, 213, 170, 0.51);
            -webkit-text-fill-color: rgba(218, 213, 170, 0.51);
            opacity: 1;
        }


        .ra-add-object-page .form-group textarea#content {
            display: block;
            width: 100%;
            max-width: 100%;
            min-width: 0;
            max-height: 250px;
            box-sizing: border-box;
            padding: 14px 18px;
            border: 1px solid rgba(220, 180, 82, 0.20);
            border-radius: 8px;
            background: #DEDBB2;
            color: #42485a;
            -webkit-text-fill-color: #42485a;
            caret-color: #42485a;
            font-family: inherit;
            font-size: 16px;
            line-height: 1.45;
            resize: vertical;
            overflow: auto;
            -webkit-appearance: none;
            appearance: none;
            box-shadow:
                inset 0 1px 0 rgba(255, 255, 255, 0.55),
                inset 0 -1px 0 rgba(0, 0, 0, 0.08),
                0 0 0 1px rgba(0, 0, 0, 0.06);
            transition:
                border-color 0.2s ease,
                box-shadow 0.2s ease,
                background 0.2s ease,
                color 0.2s ease;
        }

        .ra-add-object-page .form-group textarea#content:hover {
            border-color: rgba(225, 183, 89, 0.36);
            background: #DEDBB2;
            color: #42485a;
            -webkit-text-fill-color: #42485a;
            box-shadow:
                inset 0 1px 0 rgba(255, 255, 255, 0.60),
                inset 0 -1px 0 rgba(0, 0, 0, 0.08),
                0 0 0 1px rgba(225, 183, 89, 0.08);
        }

        .ra-add-object-page .form-group textarea#content:focus {
            outline: none;
            border-color: rgba(255, 224, 141, 0.68);
            background: #DEDBB2;
            color: #42485a;
            -webkit-text-fill-color: #42485a;
            box-shadow:
                0 0 0 3px rgba(225, 183, 89, 0.14),
                0 0 10px rgba(225, 183, 89, 0.035),
                inset 0 1px 0 rgba(255, 255, 255, 0.60);
        }

        .ra-add-object-page .form-group textarea#content::placeholder {
            color: rgba(66, 72, 90, 0.62);
            -webkit-text-fill-color: rgba(66, 72, 90, 0.62);
            opacity: 1;
        }

        .ra-add-object-page .form-group textarea#content:-webkit-autofill,
        .ra-add-object-page .form-group textarea#content:-webkit-autofill:hover,
        .ra-add-object-page .form-group textarea#content:-webkit-autofill:focus,
        .ra-add-object-page .form-group textarea#content:-webkit-autofill:active {
            -webkit-box-shadow: 0 0 0 1000px #DEDBB2 inset;
            -webkit-text-fill-color: #42485a;
            caret-color: #42485a;
            border-color: rgba(220, 180, 82, 0.20);
            transition: background-color 9999s ease-in-out 0s;
        }

        /* Убираем белый фон браузерного автозаполнения. */
        .ra-add-object-page .form-group input:not([type="hidden"]):not([type="file"]):-webkit-autofill,
        .ra-add-object-page .form-group input:not([type="hidden"]):not([type="file"]):-webkit-autofill:hover,
        .ra-add-object-page .form-group input:not([type="hidden"]):not([type="file"]):-webkit-autofill:focus,
        .ra-add-object-page .form-group input:not([type="hidden"]):not([type="file"]):-webkit-autofill:active,
        .ra-add-object-page .form-group textarea:not(#content):-webkit-autofill,
        .ra-add-object-page .form-group textarea:not(#content):-webkit-autofill:hover,
        .ra-add-object-page .form-group textarea:not(#content):-webkit-autofill:focus,
        .ra-add-object-page .form-group textarea:not(#content):-webkit-autofill:active {
            -webkit-text-fill-color: #e7e1be !important;
            caret-color: #e1b759 !important;
            border-color: rgba(220, 180, 82, 0.28) !important;
            background-color: rgba(22, 31, 48, 0.98) !important;
            -webkit-box-shadow:
                0 0 0 1000px rgba(22, 31, 48, 0.98) inset,
                inset 0 1px 0 rgba(255, 255, 255, 0.038),
                inset 0 -1px 0 rgba(0, 0, 0, 0.12),
                0 0 0 1px rgba(0, 0, 0, 0.09) !important;
            box-shadow:
                0 0 0 1000px rgba(22, 31, 48, 0.98) inset,
                inset 0 1px 0 rgba(255, 255, 255, 0.038),
                inset 0 -1px 0 rgba(0, 0, 0, 0.12),
                0 0 0 1px rgba(0, 0, 0, 0.09) !important;
            transition:
                background-color 9999s ease-in-out 0s,
                color 0.2s ease,
                border-color 0.2s ease,
                box-shadow 0.2s ease !important;
        }

        .ra-add-object-page .form-group input:not([type="hidden"]):not([type="file"]):-webkit-autofill:focus,
        .ra-add-object-page .form-group textarea:not(#content):-webkit-autofill:focus {
            -webkit-text-fill-color: #f2eac4 !important;
            border-color: rgba(255, 224, 141, 0.68) !important;
            -webkit-box-shadow:
                0 0 0 1000px rgba(27, 40, 59, 1) inset,
                0 0 0 3px rgba(225, 183, 89, 0.14),
                0 0 10px rgba(225, 183, 89, 0.035),
                inset 0 1px 0 rgba(255, 255, 255, 0.050) !important;
            box-shadow:
                0 0 0 1000px rgba(27, 40, 59, 1) inset,
                0 0 0 3px rgba(225, 183, 89, 0.14),
                0 0 10px rgba(225, 183, 89, 0.035),
                inset 0 1px 0 rgba(255, 255, 255, 0.050) !important;
        }

        .ra-address-row {
            display: flex;
            flex-flow: row nowrap;
            align-items: center;
            gap: 12px;
        }

        .ra-address-input-wrap {
            position: relative;
            flex: 1 1 auto;
            min-width: 0;
        }

        .ra-address-row > #address,
        .ra-address-input-wrap > #address {
            width: 100%;
            min-width: 0;
        }

        #suggestions-container,
        .modal-address-search #modal-suggestions-container {
            display: none;
            position: absolute;
            top: calc(100% + 6px);
            left: 0;
            right: 0;
            z-index: 10020;
            background: #232630;
            border: 1px solid rgba(220, 180, 82, .28);
            border-radius: 8px;
            box-shadow: 0 16px 34px rgba(0, 0, 0, 0.36);
        }

        #suggestions-container > div,
        #modal-suggestions-container > div {
            padding: 4px 17px;
            cursor: pointer;
            border-bottom: 1px solid #333;
            color: rgba(218, 213, 170, .78);
            background: #152335d6;
        }

        #suggestions-container > div:last-child,
        #modal-suggestions-container > div:last-child {
            border-bottom: 0;
        }

        #suggestions-container > div:hover,
        #modal-suggestions-container > div:hover {
            background: rgba(255, 205, 87, 0.1);
            color: rgb(255, 205, 87);
        }

        @media (max-width: 760px) {
            .ra-object-form-card {
                padding: 24px 18px;
            }
        }

        @media (max-width: 560px) {
            .ra-address-row {
                align-items: stretch;
                flex-direction: column;
            }

            .ra-address-row .map-button-wrapper {
                width: 100%;
            }

            .ra-address-row #open-map-btn {
                width: 100% !important;
            }
        }

        /* ===== ЗАГРУЗКА ФОТО ===== */
        .ra-add-object-page .ra-object-file-input {
            display: block;
            width: 100%;
        }

        .ra-add-object-page .ra-object-file-input input[type="file"] {
            display: block;
            width: 100%;
            max-width: 100%;
            box-sizing: border-box;
            margin: 0;
            padding: 12px;
            border: 1px dashed rgba(220, 180, 82, 0.36);
            border-radius: 10px;
            background: linear-gradient(180deg, rgba(255, 255, 255, 0.029), rgba(255, 255, 255, 0.007)), rgba(22, 31, 48, 0.98);
            color: #e7e1be;
            font-family: inherit;
            cursor: pointer;
            transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
        }

        .ra-add-object-page .ra-object-file-input input[type="file"]:hover,
        .ra-add-object-page .ra-object-file-input input[type="file"]:focus {
            border-color: rgba(255, 224, 141, 0.58);
            background: linear-gradient(180deg, rgba(255, 255, 255, 0.034), rgba(255, 255, 255, 0.009)), rgba(25, 36, 53, 0.99);
            box-shadow: 0 0 0 1px rgba(225, 183, 89, 0.022);
            outline: none;
        }

        .ra-add-object-page .ra-object-file-input input[type="file"]::file-selector-button,
        .ra-add-object-page .ra-object-file-input input[type="file"]::-webkit-file-upload-button {
            margin-right: 10px;
            padding: 6px 12px;
            border: 1px solid #1C1F26;
            border-radius: 6px;
            background: #DEDBB2;
            color: #1C1F26;
            font-family: inherit;
            font-weight: 400;
            cursor: pointer;
            transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
        }

        .ra-add-object-page .ra-object-file-input input[type="file"]::-ms-browse {
            padding: 6px 12px;
            border: 1px solid #1C1F26;
            border-radius: 6px;
            background: #DEDBB2;
            color: #1C1F26;
            cursor: pointer;
        }

        .ra-add-object-page .ra-object-file-input input[type="file"]::-ms-browse:hover {
            background: transparent;
            border-color: #e8bd58;
            color: #e8bd58;
        }



        .ra-object-form-grid {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 16px;
            margin-bottom: 0;
            align-items: start;
        }
        .ra-object-form-grid .form-group { display: flex; flex-direction: column; }
        .ra-object-form-grid .form-group label { margin-bottom: 8px; }
        .ra-object-form-grid .form-group input,
        .ra-object-form-grid .form-group select { width: 100%; }

        .ra-add-object-page .submit-btn {
            display: block;
            width: 100%;
            margin: 20px 0 0;
            padding: 14px 28px;
            border: 0;
            border-radius: 10px;
            background:
                linear-gradient(180deg, rgba(255, 255, 255, 0.024) 0%, rgba(255, 244, 204, 0.015) 42%, rgba(74, 43, 7, 0.057) 100%),
                linear-gradient(180deg, #edc25f 0%, #e6b44d 34%, #e3aa3e 58%, #d68f30 80%, #bd7b22 100%);
            color: #2a2114;
            -webkit-text-fill-color: #2a2114;
            font-size: 17px;
            font-weight: 700;
            letter-spacing: 0.12px;
            cursor: pointer;
            box-shadow: none;
            animation: none;
            transition: color 0.20s ease, -webkit-text-fill-color 0.20s ease, background 0.22s ease, box-shadow 0.24s ease, transform 0.18s cubic-bezier(.16, 1, .3, 1), filter 0.20s ease;
        }

        .ra-add-object-page .submit-btn:hover {
            background:
                linear-gradient(180deg, rgba(255, 255, 255, 0.033) 0%, rgba(255, 244, 204, 0.018) 42%, rgba(74, 43, 7, 0.045) 100%),
                linear-gradient(180deg, #f0ca69 0%, #eabd56 34%, #e5ad47 58%, #d79635 80%, #c98a2d 100%);
            color: #2a2114;
            -webkit-text-fill-color: #2a2114;
            transform: translateY(-1px);
            filter: brightness(1.026) saturate(1.018);
            box-shadow:
                0 0 0 4px rgba(232, 181, 75, 0.090),
                0 0 14px rgba(232, 181, 75, 0.105),
                0 6px 18px rgba(190, 125, 34, 0.070);
            animation: none;
        }

        .ra-add-object-page .submit-btn:active {
            background:
                linear-gradient(180deg, rgba(255, 244, 204, 0.020) 0%, rgba(70, 40, 7, 0.085) 100%),
                linear-gradient(180deg, #d29c39 0%, #c88c30 56%, #ae7121 100%);
            transform: translateY(0) scale(0.997);
            box-shadow: inset 0 0 0 999px rgba(45, 28, 6, 0.055);
        }

        .ra-add-object-page .form-note {
            font-size: 12px;
            color: rgba(218, 213, 170, 0.78);
            text-align: center;
            margin-top: 15px;
            margin-bottom: 15px;
        }

        .ra-add-object-page form > p.form-note {
            margin: 15px 25px 0;
            padding: 0;
            border: 0;
            border-radius: 0;
            background: transparent;
            color: var(--lux-small-link, rgba(218, 213, 170, 0.78));
            font-size: 12px;
            line-height: 1.45;
            text-align: center;
        }

        .ra-add-object-page form > p.form-note span,
        .ra-add-object-page form > p.form-note a,
        .ra-add-object-page form > p.form-note a:visited {
            color: inherit;
        }

        .ra-add-object-page form > p.form-note a,
        .ra-add-object-page form > p.form-note a:visited,
        .ra-add-object-page form > p.form-note a:hover,
        .ra-add-object-page form > p.form-note a:focus-visible {
            text-decoration: none;
            border-bottom: 0;
            box-shadow: none;
        }

        .ra-add-object-page form > p.form-note a {
            transition: color 0.2s ease;
        }

        .ra-add-object-page form > p.form-note a:hover,
        .ra-add-object-page form > p.form-note a:focus-visible {
            color: rgba(220, 180, 82, 0.74);
            outline: none;
        }

        /* Единый стиль для кнопок карты */
        #map-modal .modal-actions .map-button {
            display: inline-flex !important;
            align-items: center !important;
            justify-content: center !important;
            width: auto !important;
            height: 30px !important;
            min-height: 30px !important;
            min-width: max-content !important;
            padding: 0 15px !important;
            box-sizing: border-box !important;
            border-radius: 40px !important;
            border: 1px solid rgba(220, 180, 82, 0.34) !important;
            background:
                linear-gradient(180deg, rgba(255, 255, 255, 0.052), rgba(255, 255, 255, 0.018)),
                rgba(255, 255, 255, 0.026) !important;
            color: rgba(220, 180, 82, 0.74) !important;
            -webkit-text-fill-color: rgba(220, 180, 82, 0.74) !important;
            font-size: 11px !important;
            font-weight: 900 !important;
            letter-spacing: 0.08em !important;
            line-height: 1 !important;
            text-transform: uppercase !important;
            text-decoration: none !important;
            cursor: pointer !important;
            white-space: nowrap !important;
            gap: 8px !important;
            box-shadow:
                0 10px 22px rgba(0, 0, 0, 0.19),
                inset 0 1px 0 rgba(255, 255, 255, 0.045) !important;
            appearance: none !important;
            -webkit-appearance: none !important;
            transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease !important;
        }

        #map-modal .modal-actions #select-location-btn,
        #map-modal .modal-actions #select-location-btn:hover,
        #map-modal .modal-actions #select-location-btn:focus-visible,
        #map-modal .modal-actions #select-location-btn:active {
            color: #ffe79c !important;
            -webkit-text-fill-color: #ffe79c !important;
        }

        #map-modal .modal-actions .map-button:hover,
        #map-modal .modal-actions .map-button:focus-visible {
            border-color: rgba(255, 224, 141, 0.50) !important;
            background:
                linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.024)),
                rgba(255, 255, 255, 0.034) !important;
            box-shadow:
                0 10px 22px rgba(0, 0, 0, 0.19),
                0 0 18px rgba(220, 180, 82, 0.065),
                inset 0 1px 0 rgba(255, 255, 255, 0.06) !important;
            transform: translateY(-1px);
            text-decoration: none !important;
            outline: none !important;
        }

        #map-modal .modal-actions .map-button:active {
            transform: translateY(0);
        }
        #map-modal .modal-actions .map-button .ra-button-spinner {
            flex: 0 0 auto;
            line-height: 1;
        }
        .map-button-icon { width: 20px; height: 20px; flex-shrink: 0; }
        .map-button-icon path { fill: url(#goldGradient); }
        .map-button:hover .map-button-icon path { fill: #1C1F26; }

        .coord-hint {
            font-size: 12px;
            color: rgba(218, 213, 170, 0.78);
            margin-top: 6px;
        }

        /* Модальное окно (без изменений) */
        .map-modal {
            display: none;
            position: fixed;
            z-index: 1000000;
            left: 0;
            top: 0;
            width: 100%;
            height: 100%;
            overflow: hidden;
            background: radial-gradient(circle at center, rgba(255, 205, 87, 0.4), rgba(0, 0, 0, 0.9)) !important;
            backdrop-filter: blur(5px);
            align-items: center;
            justify-content: center;
        }
        .map-modal-content {
            --ra-map-card-section-light: rgba(255, 255, 255, 0.018);
            --ra-map-card-section-dark: rgba(7, 11, 18, 0.18);
            background:
                linear-gradient(180deg, rgba(255, 255, 255, 0.034), rgba(255, 255, 255, 0.006)),
                rgba(17, 24, 36, 0.88);
            border-radius: 20px;
            width: 90%;
            max-width: 1000px;
            border: 1px solid rgba(220, 180, 82, 0.28);
            overflow: hidden;
            box-shadow:
                0 0 6px rgba(220, 180, 82, 0.075),
                0 0 12px rgba(220, 180, 82, 0.055),
                0 0 22px rgba(220, 180, 82, 0.032),
                inset 0 1px 0 rgba(255, 255, 255, 0.048),
                0 12px 24px rgba(0, 0, 0, 0.20);
        }
        .map-modal-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 15px 25px;
            background: var(--ra-map-card-section-light);
            border-bottom: 1px solid rgba(255, 205, 87, 0.2);
        }
        .map-modal-header h3 { margin: 0; color: #e1b759; font-size: 22px; }
        .map-modal-close {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            width: 30px;
            height: 30px;
            font-size: 32px;
            cursor: pointer;
            color: #DEDBB2;
            transition: color 0.2s, transform 0.3s ease;
            transform-origin: center center;
            line-height: 1;
        }
        .map-modal-close:hover { color: #e1b759; transform: rotate(360deg); }
        .map-modal-body {
            padding: 20px;
            background: var(--ra-map-card-section-dark);
        }
        .modal-address-search {
            position: relative;
        }

        #modal-address-input,
        .modal-address-search input {
            display: block;
            width: 100%;
            max-width: 100%;
            min-width: 0;
            box-sizing: border-box;
            padding: 14px 18px;
            border: 1px solid rgba(220, 180, 82, 0.20);
            border-radius: 8px;
            background:
                linear-gradient(180deg, rgba(255, 255, 255, 0.029), rgba(255, 255, 255, 0.007)),
                rgba(22, 31, 48, 0.98);
            color: #e7e1be;
            -webkit-text-fill-color: #e7e1be;
            caret-color: #e1b759;
            font-family: inherit;
            font-size: 16px;
            -webkit-appearance: none;
            appearance: none;
            box-shadow:
                inset 0 1px 0 rgba(255, 255, 255, 0.038),
                inset 0 -1px 0 rgba(0, 0, 0, 0.12),
                0 0 0 1px rgba(0, 0, 0, 0.09);
            transition:
                border-color 0.2s ease,
                box-shadow 0.2s ease,
                background 0.2s ease;
        }
        #modal-address-input:hover,
        .modal-address-search input:hover {
            border-color: rgba(225, 183, 89, 0.36);
            background:
                linear-gradient(180deg, rgba(255, 255, 255, 0.034), rgba(255, 255, 255, 0.009)),
                rgba(25, 36, 53, 0.99);
            box-shadow:
                inset 0 1px 0 rgba(255, 255, 255, 0.042),
                inset 0 -1px 0 rgba(0, 0, 0, 0.12),
                0 0 0 1px rgba(225, 183, 89, 0.018);
        }
        #modal-address-input:focus,
        .modal-address-search input:focus {
            outline: none;
            border-color: rgba(255, 224, 141, 0.52);
            background:
                linear-gradient(180deg, rgba(255, 255, 255, 0.039), rgba(255, 255, 255, 0.011)),
                rgba(27, 40, 59, 1);
            color: #f2eac4;
            -webkit-text-fill-color: #f2eac4;
            box-shadow:
                0 0 0 3px rgba(225, 183, 89, .14),
                0 0 10px rgba(225, 183, 89, .035),
                inset 0 1px 0 rgba(255, 255, 255, .05);
        }
        #modal-address-input::placeholder,
        .modal-address-search input::placeholder {
            color: rgba(218, 213, 170, 0.51);
            -webkit-text-fill-color: rgba(218, 213, 170, 0.51);
            opacity: 1;
        }
        #modal-address-input:-webkit-autofill,
        #modal-address-input:-webkit-autofill:hover,
        #modal-address-input:-webkit-autofill:focus,
        #modal-address-input:-webkit-autofill:active,
        .modal-address-search input:-webkit-autofill,
        .modal-address-search input:-webkit-autofill:hover,
        .modal-address-search input:-webkit-autofill:focus,
        .modal-address-search input:-webkit-autofill:active {
            -webkit-text-fill-color: #e7e1be;
            caret-color: #e1b759;
            border-color: rgba(220, 180, 82, 0.28);
            -webkit-box-shadow:
                0 0 0 1000px rgba(22, 31, 48, 0.98) inset,
                inset 0 1px 0 rgba(255, 255, 255, 0.038),
                inset 0 -1px 0 rgba(0, 0, 0, 0.12),
                0 0 0 1px rgba(0, 0, 0, 0.09);
            box-shadow:
                0 0 0 1000px rgba(22, 31, 48, 0.98) inset,
                inset 0 1px 0 rgba(255, 255, 255, 0.038),
                inset 0 -1px 0 rgba(0, 0, 0, 0.12),
                0 0 0 1px rgba(0, 0, 0, 0.09);
            transition: background-color 9999s ease-in-out 0s;
        }
        #modal-map {
            position: relative;
            border-radius: 12px;
            background: #101722;
        }

        #modal-map::before {
            content: "";
            position: absolute;
            inset: 0;
            z-index: 420;
            pointer-events: none;
            border-radius: 12px;
            background: rgba(8, 12, 18, 0.14);
        }
        .modal-actions {
            display: flex;
            justify-content: flex-end;
            gap: 10px;
            margin-top: 15px;
        }
        /* Единый стиль для кнопок в модальном окне карты */
/* Стилизация кнопок зума Leaflet — единообразно с global_map */
.leaflet-control-zoom.leaflet-bar {
    overflow: hidden !important;
    border: 1px solid rgba(220, 180, 82, 0.28) !important;
    border-radius: 12px !important;
    background:
        linear-gradient(180deg, rgba(235, 216, 170, 0.040), rgba(255, 255, 255, 0.008)),
        rgba(18, 20, 24, 0.82) !important;
    backdrop-filter: blur(5px) saturate(1.02) !important;
    -webkit-backdrop-filter: blur(5px) saturate(1.02) !important;
    box-shadow:
        0 12px 26px rgba(0, 0, 0, 0.22),
        0 0 0 1px rgba(220, 180, 82, 0.10),
        inset 0 1px 0 rgba(255, 244, 202, 0.040),
        inset 0 -1px 0 rgba(220, 180, 82, 0.050) !important;
}

.leaflet-control-zoom a {
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 36px !important;
    height: 36px !important;
    line-height: 36px !important;
    margin: 0 !important;
    border: none !important;
    border-radius: 0 !important;
    background:
        linear-gradient(145deg, rgba(235, 216, 170, 0.050), rgba(255, 255, 255, 0.010) 44%),
        rgba(18, 20, 24, 0.18) !important;
    color: rgba(255, 231, 156, 0.92) !important;
    font-size: 20px !important;
    font-weight: 800 !important;
    text-align: center;
    text-decoration: none !important;
    text-shadow: none !important;
    box-shadow: none !important;
    transition: background 0.22s ease, color 0.22s ease, box-shadow 0.22s ease !important;
}

.leaflet-control-zoom a:first-child {
    border-bottom: 1px solid rgba(220, 180, 82, 0.18) !important;
    border-radius: 11px 11px 0 0 !important;
}

.leaflet-control-zoom a:last-child {
    border-top: none !important;
    border-radius: 0 0 11px 11px !important;
    background-clip: padding-box !important;
}

.leaflet-control-zoom a:hover,
.leaflet-control-zoom a:focus-visible {
    background:
        linear-gradient(145deg, rgba(235, 216, 170, 0.075), rgba(255, 255, 255, 0.014) 44%),
        rgba(28, 31, 38, 0.34) !important;
    color: var(--ra-gold-soft, #e1b759) !important;
    outline: none !important;
    box-shadow:
        inset 0 1px 0 rgba(255, 244, 202, 0.044),
        inset 0 -1px 0 rgba(220, 180, 82, 0.052) !important;
}

.leaflet-control-zoom a:active {
    transform: none !important;
}

.leaflet-bar a,
.leaflet-bar a:hover,
.leaflet-bar a:focus-visible {
    text-decoration: none !important;
}

/* Спиннер */
        .spinner {
            display: inline-block;
            width: 16px;
            height: 16px;
            border: 2px solid rgba(28,31,38,0.3);
            border-radius: 50%;
            border-top-color: #1C1F26;
            animation: spin 0.6s linear infinite;
            margin-left: 8px;
            vertical-align: middle;
        }
        @keyframes spin {
            to { transform: rotate(360deg); }
        }
/* ===== ВЫБОР КОЛИЧЕСТВА КОМНАТ ===== */
        .ra-room-select {
            --ra-room-dropdown-h: 0px;

            position: relative;
            z-index: 30;
            width: 100%;
            min-width: 0;
            isolation: isolate;
            user-select: none;
        }

        .ra-room-select::before {
            content: "";
            position: absolute;
            top: 0;
            right: 0;
            left: 0;
            z-index: 0;
            height: calc(100% - 1px + var(--ra-room-dropdown-h));
            border-radius: 8px;
            opacity: 0;
            pointer-events: none;
            box-shadow:
                0 0 0 4px rgba(220, 180, 82, 0.055),
                0 0 24px rgba(220, 180, 82, 0.12),
                0 13px 26px rgba(0, 0, 0, 0.22);
            transition:
                height 0.24s ease-out,
                opacity 0.12s ease-out;
        }

        .ra-room-select.is-open,
        .ra-room-select.is-closing {
            z-index: 60;
        }

        .ra-room-select.is-open::before,
        .ra-room-select.is-closing::before {
            opacity: 1;
        }

        .ra-room-select__trigger {
            position: relative;
            z-index: 2;
            display: flex;
            align-items: center;
            width: 100%;
            min-width: 0;
            box-sizing: border-box;
            height: 40px;
            min-height: 40px;
            max-height: 40px;
            padding: 0 42px 0 18px;
            overflow: hidden;
            border: 1px solid rgba(220, 180, 82, 0.20);
            border-radius: 8px;
            background:
                linear-gradient(
                    180deg,
                    rgba(255, 255, 255, 0.029),
                    rgba(255, 255, 255, 0.007)
                ),
                rgba(22, 31, 48, 0.98);
            color: #e7e1be;
            font-size: 16px;
            line-height: 1.2;
            font-weight: 400;
            cursor: pointer;
            outline: none;
            box-shadow:
                inset 0 1px 0 rgba(255, 255, 255, 0.038),
                inset 0 -1px 0 rgba(0, 0, 0, 0.12),
                0 0 0 1px rgba(0, 0, 0, 0.09);
            -webkit-tap-highlight-color: transparent;
            transition:
                border-color 0.22s ease,
                background 0.22s ease,
                box-shadow 0.22s ease,
                color 0.22s ease,
                transform 0.22s ease,
                border-radius 0.22s ease;
        }

        .ra-room-select__value {
            display: block;
            max-width: 100%;
            overflow: hidden;
            color: inherit;
            font-size: inherit;
            line-height: 1.2;
            font-weight: inherit;
            letter-spacing: 0;
            text-overflow: ellipsis;
            white-space: nowrap;
        }

        .ra-room-select.is-placeholder .ra-room-select__value {
            color: rgba(218, 213, 170, 0.51);
        }

        .ra-room-select.is-placeholder .ra-room-select__trigger:hover
            .ra-room-select__value,
        .ra-room-select.is-placeholder .ra-room-select__trigger.open
            .ra-room-select__value,
        .ra-room-select.is-placeholder.is-open .ra-room-select__value {
            color: #ffe79c;
        }

        .ra-room-select__trigger:hover {
            border-color: rgba(225, 183, 89, 0.36);
            color: #ffe79c;
            background:
                linear-gradient(
                    180deg,
                    rgba(255, 255, 255, 0.034),
                    rgba(255, 255, 255, 0.009)
                ),
                rgba(25, 36, 53, 0.99);
            box-shadow:
                inset 0 1px 0 rgba(255, 255, 255, 0.042),
                inset 0 -1px 0 rgba(0, 0, 0, 0.12),
                0 0 0 1px rgba(225, 183, 89, 0.018);
        }

        .ra-room-select__trigger:focus-visible {
            border-color: rgba(255, 224, 141, 0.68);
            color: #ffe79c;
            background:
                linear-gradient(
                    180deg,
                    rgba(255, 255, 255, 0.039),
                    rgba(255, 255, 255, 0.011)
                ),
                rgba(27, 40, 59, 1);
            box-shadow:
                0 0 0 3px rgba(225, 183, 89, 0.14),
                0 0 10px rgba(225, 183, 89, 0.035),
                inset 0 1px 0 rgba(255, 255, 255, 0.050);
        }

        .ra-room-select__trigger.open,
        .ra-room-select.is-open .ra-room-select__trigger,
        .ra-room-select.is-closing .ra-room-select__trigger {
            border-color: rgba(255, 224, 141, 0.72);
            border-bottom-color: rgba(255, 224, 141, 0.72);
            border-bottom-right-radius: 0;
            border-bottom-left-radius: 0;
            background:
                linear-gradient(
                    180deg,
                    rgba(255, 255, 255, 0.039),
                    rgba(255, 255, 255, 0.011)
                ),
                rgba(27, 40, 59, 1);
            color: #ffe79c;
            box-shadow: none;
        }

        .ra-room-select__trigger::after {
            content: "";
            position: absolute;
            top: 50%;
            right: 17px;
            width: 0;
            height: 0;
            border-right: 5px solid transparent;
            border-bottom: 0;
            border-left: 5px solid transparent;
            border-top: 6px solid #dcb452;
            transform: translateY(-50%);
            pointer-events: none;
            transition:
                transform 0.22s ease,
                border-top-color 0.22s ease;
        }

        .ra-room-select__trigger:hover::after,
        .ra-room-select__trigger.open::after {
            border-top-color: #ffe79c;
        }

        .ra-room-select__trigger.open::after {
            transform: translateY(-50%) rotate(180deg);
        }

        .ra-room-select__options {
            position: absolute;
            top: 100%;
            right: 0;
            left: 0;
            z-index: 1;
            max-height: 0;
            margin-top: 0;
            overflow: hidden;
            border: 0;
            border-top: 0;
            border-radius: 0 0 8px 8px;
            background: transparent;
            opacity: 0;
            visibility: hidden;
            pointer-events: none;
            box-shadow: none;
            scrollbar-width: none;
            -ms-overflow-style: none;
            transition:
                max-height 0.24s ease-out,
                opacity 0.08s ease-out,
                visibility 0s linear 0.24s;
        }

        .ra-room-select__options::-webkit-scrollbar {
            display: none;
            width: 0;
            height: 0;
        }

        .ra-room-select__options.open {
            top: calc(100% - 1px);
            max-height: 280px;
            overflow-y: auto;
            border: 1px solid rgba(255, 224, 141, 0.72);
            border-top: 0;
            background: #1b273b;
            opacity: 1;
            visibility: visible;
            pointer-events: auto;
            transition:
                max-height 0.24s ease-out,
                opacity 0.16s ease-out 0.04s,
                visibility 0s;
        }

        .ra-room-select.is-closing .ra-room-select__options {
            top: calc(100% - 1px);
            max-height: 0;
            overflow: hidden;
            border: 1px solid rgba(255, 224, 141, 0.72);
            border-top: 0;
            background: #1b273b;
            opacity: 1;
            visibility: visible;
            pointer-events: none;
            transition:
                max-height 0.24s ease-out,
                opacity 0.16s ease-out 0.04s,
                visibility 0s;
        }

        .ra-room-select__option {
            position: relative;
            padding: 11px 38px 11px 14px;
            border-bottom: 1px solid rgba(220, 180, 82, 0.16);
            background: rgba(255, 255, 255, 0.024);
            color: rgba(218, 213, 170, 0.9);
            font-size: 13px;
            line-height: 1.25;
            font-weight: 500;
            letter-spacing: 0;
            cursor: pointer;
            transition:
                background 0.22s ease,
                color 0.22s ease,
                padding-left 0.22s ease,
                border-color 0.22s ease;
        }

        .ra-room-select__option:last-child {
            border-bottom: 0;
        }

        .ra-room-select__option:hover,
        .ra-room-select__option.selected {
            padding-left: 18px;
            border-bottom-color: rgba(16, 23, 34, 0.42);
            background:
                linear-gradient(
                    118deg,
                    rgba(255, 255, 255, 0.18) 0%,
                    rgba(255, 244, 204, 0.065) 24%,
                    transparent 48%
                ),
                linear-gradient(
                    90deg,
                    #e4971f 0%,
                    #f5b63d 52%,
                    #ffd966 100%
                );
            color: #101722;
        }

        .ra-room-select__option.selected::after {
            content: "";
            position: absolute;
            top: 50%;
            right: 13px;
            width: 13px;
            height: 13px;
            background: #101722;
            transform: translateY(-50%);
            -webkit-mask:
                url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none'%3E%3Cpath d='M5 12.5l4.5 4.2L19 7' stroke='black' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")
                center / contain no-repeat;
            mask:
                url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none'%3E%3Cpath d='M5 12.5l4.5 4.2L19 7' stroke='black' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")
                center / contain no-repeat;
        }



        .ra-add-object-page .form-group textarea {
            max-width: 100% !important;
            width: 100% !important;
            box-sizing: border-box !important;
        }
.ra-add-object-page .map-button-wrapper {
    overflow: visible !important;
    flex: 0 0 auto !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 0 !important;
    background: #232630 !important;
    border: 1px solid rgba(255, 205, 87, 0.18) !important;
    border-radius: 12px !important;
    padding: 4px !important;
    position: relative !important;
    z-index: 1 !important;
    transform: translateY(0) !important;
    transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease !important;
}

.ra-add-object-page .map-button-wrapper:active,
.ra-add-object-page .map-button-wrapper:focus-within {
    transform: translateY(-1px) !important;
    border-color: rgba(255, 205, 87, 0.24) !important;
}

.ra-add-object-page #open-map-btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 3px !important;
    width: auto !important;
    min-width: 0 !important;
    height: 32px !important;
    padding: 0 8px !important;
    border: none !important;
    border-radius: 9px !important;
    background: #333333 !important;
    color: #e8bd58 !important;
    -webkit-text-fill-color: #e8bd58 !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    line-height: 1 !important;
    cursor: pointer !important;
    white-space: nowrap !important;
    box-shadow:
        0 2px 8px rgba(0, 0, 0, 0.30),
        inset 0 1px 0 rgba(255, 255, 255, 0.02) !important;
    transform: none !important;
    filter: none !important;
    transition: color 0.18s ease, -webkit-text-fill-color 0.18s ease, box-shadow 0.18s ease !important;
}

.ra-add-object-page #open-map-btn:hover,
.ra-add-object-page #open-map-btn:focus-visible,
.ra-add-object-page #open-map-btn:active {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.033) 0%, rgba(255, 244, 204, 0.018) 42%, rgba(74, 43, 7, 0.045) 100%),
        linear-gradient(180deg, #f0ca69 0%, #eabd56 34%, #e5ad47 58%, #d79635 80%, #c98a2d 100%) !important;
    color: #1C1F26 !important;
    -webkit-text-fill-color: #1C1F26 !important;
    box-shadow:
        0 2px 8px rgba(0, 0, 0, 0.30),
        inset 0 1px 0 rgba(255, 255, 255, 0.18) !important;
    transform: none !important;
}

.ra-add-object-page #open-map-btn .wp-media-buttons-icon {
    display: block !important;
    flex: 0 0 18px !important;
    width: 18px !important;
    height: 18px !important;
    margin: 0 !important;
    padding: 0 !important;
    color: inherit !important;
}

.ra-add-object-page #open-map-btn .wp-media-buttons-icon path {
    fill: currentColor !important;
}

.ra-add-object-page #open-map-btn span {
    display: inline-block !important;
    margin: 0 !important;
    padding: 0 !important;
    line-height: 1 !important;
}

.ra-add-object-page #open-map-btn::before,
.ra-add-object-page #open-map-btn::after {
    display: none !important;
}

/* v1.0.28: preview file-list for object photos */
.ra-add-object-page .object-photo-file-list,
.object-modal .object-photo-file-list {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 0;
}

/* v1.0.40: scoped add_objects photo note/preview spacing restore. */
.ra-add-object-page .ra-object-file-input + .form-note {
    display: block;
    margin-top: 8px;
    margin-bottom: 0;
    text-align: left;
}

.ra-add-object-page .ra-object-file-input + .form-note + .object-photo-file-list:not(:empty) {
    margin-top: 12px;
}

.ra-add-object-page .preview-item,
.object-modal .preview-item {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    width: 100px;
    padding: 7px 5px;
    border: 1px solid rgba(220, 180, 82, 0.32);
    border-radius: 10px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.024), rgba(255, 255, 255, 0.006)), rgba(12, 18, 28, 0.62);
    text-align: center;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.035);
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, transform 0.18s ease-out;
    transform-origin: center;
    backface-visibility: hidden;
}

.ra-add-object-page .preview-item:hover,
.ra-add-object-page .preview-item:focus-within,
.object-modal .preview-item:hover,
.object-modal .preview-item:focus-within {
    border-color: rgba(255, 224, 141, 0.46);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.032), rgba(255, 255, 255, 0.008)), rgba(14, 21, 32, 0.70);
    box-shadow: 0 0 10px rgba(220, 180, 82, 0.075), inset 0 1px 0 rgba(255, 255, 255, 0.045);
    transform: translateZ(0) scale(1.04);
}

.ra-add-object-page .preview-item img,
.ra-add-object-page .preview-item i,
.object-modal .preview-item img,
.object-modal .preview-item i {
    width: 80px;
    height: 80px;
    border: 1px solid rgba(220, 180, 82, 0.24);
    border-radius: 8px;
    object-fit: cover;
    background: rgba(8, 13, 21, 0.42);
}

.ra-add-object-page .preview-item i,
.object-modal .preview-item i {
    color: #FFCD57;
    font-size: 50px;
    line-height: 78px;
}

.ra-add-object-page .preview-name,
.object-modal .preview-name {
    max-width: 90px;
    overflow: hidden;
    color: #DEDBB2;
    font-size: 11px;
    text-overflow: ellipsis;
    white-space: nowrap;
    word-break: break-word;
}

.ra-add-object-page .remove-preview,
.object-modal .remove-preview,
.object-modal .preview-item .delete-file {
    position: absolute;
    top: -8px;
    right: -8px;
    z-index: 2;
    width: 22px;
    height: 22px;
    margin-left: 0;
    border-radius: 50%;
    background: #DEDBB2;
    color: #1C1F26;
    font-size: 15px;
    line-height: 22px;
    font-weight: 700;
    text-align: center;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
}

.ra-add-object-page .remove-preview:hover,
.object-modal .remove-preview:hover,
.object-modal .preview-item .delete-file:hover {
    background: #ff5823;
    color: #1c1f26;
    transform: none;
}

/* v1.0.29: object photo preview gallery */
.object-photo-image-modal {
    position: fixed;
    inset: 0;
    z-index: 10001;
    display: none;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    background: rgba(0, 0, 0, 0.92);
}

.object-photo-image-modal .image-content {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    overflow: hidden;
    margin: 20px 0;
}

.object-photo-image-modal #object-photo-modal-img {
    max-width: 90%;
    max-height: calc(100% - 100px);
    object-fit: contain;
    border-radius: 12px;
    border: 2px solid rgba(255, 224, 141, 0.34);
}

.object-photo-image-modal #object-photo-modal-close {
    position: absolute;
    top: 24px;
    right: 30px;
    z-index: 10002;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    color: #DEDBB2;
    font-size: 44px;
    line-height: 1;
    cursor: pointer;
    transition: color 0.2s ease;
    transform: none;
}

.object-photo-image-modal #object-photo-modal-close:hover,
.object-photo-image-modal #object-photo-modal-close:focus-visible {
    color: #e1b759;
    outline: none;
    transform: none;
}

.object-photo-image-modal .nav-buttons-container-bottom {
    position: static;
    display: flex;
    justify-content: center;
    gap: 25px;
    margin-bottom: 30px;
    z-index: 10003;
    pointer-events: auto;
}

.object-photo-image-modal .modal-nav-btn {
    width: 56px;
    height: 56px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 205, 87, .5);
    border-radius: 40px;
    background: rgba(28, 31, 38, 0.4);
    color: #FFCD57;
    font-size: 28px;
    cursor: pointer;
    backdrop-filter: blur(8px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
    transition: transform 0.25s cubic-bezier(0.2, 0.9, 0.4, 1.1), background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, backdrop-filter 0.2s ease;
}

.object-photo-image-modal .modal-nav-btn:hover,
.object-photo-image-modal .modal-nav-btn:focus-visible {
    background: rgb(203 184 138 / 12%);
    border-color: rgb(255 200 76 / 58%);
    transform: scale(1.08);
    outline: none;
}

.object-photo-image-modal .modal-nav-btn i {
    background: linear-gradient(180deg, #f0ca69 0%, #eabd56 34%, #e5ad47 58%, #d79635 80%, #c98a2d 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
}

.ra-add-object-page .object-photo-file-list .preview-item img {
    cursor: pointer;
}
