/* Japanese real-estate AI demo page only: /ja/cases/real-estate/ */
.re-demo-page {
    --re-ink: #151922;
    --re-muted: #66717f;
    --re-line: rgba(30, 38, 49, .12);
    --re-warm: #a46e37;
    --re-warm-dark: #7a4a1f;
    --re-paper: #f8f5ef;
    --re-deep: #142131;
    color: var(--re-ink);
    background: #fff;
    overflow: hidden;
}

.re-demo-page *,
.re-demo-page *::before,
.re-demo-page *::after {
    box-sizing: border-box;
}

.re-hero {
    position: relative;
    padding: clamp(2.1rem, 5vw, 4.8rem) 0 clamp(4rem, 7vw, 7rem);
    background:
        radial-gradient(circle at 82% 12%, rgba(205, 168, 117, .32), transparent 25%),
        radial-gradient(circle at 14% 82%, rgba(255, 255, 255, .8), transparent 30%),
        linear-gradient(135deg, #f8f2e8 0%, #f1e8db 54%, #e9dece 100%);
}

.re-hero::after {
    content: "";
    position: absolute;
    inset: auto -15vw -18vw auto;
    width: 42vw;
    height: 42vw;
    border: 1px solid rgba(130, 91, 48, .13);
    border-radius: 50%;
    pointer-events: none;
}

.re-back-link {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    margin-bottom: clamp(1.6rem, 4vw, 3rem);
    color: #5d6672;
    font-size: .86rem;
    font-weight: 750;
    text-decoration: none;
}

.re-back-link:hover { color: var(--re-ink); }

.re-hero__intro {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, .82fr) minmax(520px, 1.18fr);
    gap: clamp(2.2rem, 5vw, 5rem);
    align-items: center;
}

.re-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: .55rem;
    width: fit-content;
    margin-bottom: 1.15rem;
    padding: .42rem .7rem .42rem .45rem;
    border: 1px solid rgba(91, 66, 39, .17);
    border-radius: 999px;
    color: #765636;
    background: rgba(255, 255, 255, .58);
    font-size: .68rem;
    font-weight: 900;
    letter-spacing: .09em;
}

.re-eyebrow span {
    padding: .28rem .5rem;
    border-radius: 999px;
    color: #fff;
    background: var(--re-deep);
    font-size: .62rem;
    letter-spacing: .12em;
}

.re-kicker {
    margin: 0 0 .65rem;
    color: var(--re-warm-dark);
    font-size: .72rem;
    font-weight: 900;
    letter-spacing: .16em;
    text-transform: uppercase;
}

.re-hero__copy h1 {
    max-width: 700px;
    margin: 0;
    color: #111722;
    font-size: clamp(2.5rem, 5.8vw, 5.2rem);
    font-weight: 900;
    line-height: 1.04;
    letter-spacing: -.055em;
}

.re-hero__copy h1 em {
    color: var(--re-warm-dark);
    font-style: normal;
}

.re-hero__lead {
    max-width: 700px;
    margin: 1.5rem 0 0;
    color: #53606e;
    font-size: clamp(.96rem, 1.35vw, 1.08rem);
    line-height: 1.95;
}

.re-hero__actions,
.re-final-cta__actions {
    display: flex;
    flex-wrap: wrap;
    gap: .75rem;
    margin-top: 1.8rem;
}

.re-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .55rem;
    min-height: 48px;
    padding: .76rem 1.05rem;
    border: 1px solid transparent;
    border-radius: 999px;
    font-size: .88rem;
    font-weight: 850;
    line-height: 1.2;
    text-decoration: none;
    transition: transform .2s ease, box-shadow .2s ease, background .2s ease, border-color .2s ease;
}

.re-button:hover { transform: translateY(-2px); }

.re-button--primary {
    color: #fff;
    background: var(--re-deep);
    box-shadow: 0 12px 28px rgba(20, 33, 49, .18);
}

.re-button--primary:hover { color: #fff; background: #0d1723; }

.re-button--outline {
    color: var(--re-deep);
    border-color: rgba(20, 33, 49, .25);
    background: rgba(255, 255, 255, .55);
}

.re-button--outline:hover { color: var(--re-deep); background: #fff; }

.re-button--light {
    color: #172032;
    background: #fff;
    box-shadow: 0 14px 34px rgba(0, 0, 0, .12);
}

.re-button--light:hover { color: #172032; background: #f7f1e8; }

.re-button--ghost-light {
    color: #fff;
    border-color: rgba(255, 255, 255, .42);
    background: rgba(255, 255, 255, .06);
}

.re-button--ghost-light:hover { color: #fff; background: rgba(255, 255, 255, .13); }

.re-hero__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 1.45rem;
    color: #606a75;
    font-size: .68rem;
    font-weight: 800;
    letter-spacing: .07em;
}

.re-hero__meta span {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
}

.re-video-frame {
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .62);
    border-radius: 26px;
    background: #111a25;
    box-shadow: 0 32px 74px rgba(43, 40, 34, .24);
}

.re-video-frame__top,
.re-video-frame__caption {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: .78rem 1rem;
    color: rgba(255, 255, 255, .78);
    background: #111a25;
    font-size: .66rem;
    font-weight: 800;
    letter-spacing: .09em;
}

.re-video-frame__top span {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
}

.re-video-frame__top span i {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #75cf96;
    box-shadow: 0 0 0 5px rgba(117, 207, 150, .12);
}

.re-video-frame__top b { color: #d8b486; font-size: .62rem; }

.re-main-video {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #000;
}

.re-video-frame__caption {
    align-items: flex-end;
    padding-top: .9rem;
    padding-bottom: .95rem;
}

.re-video-frame__caption small,
.re-video-frame__caption strong { display: block; }
.re-video-frame__caption small { margin-bottom: .16rem; color: #aa8a63; font-size: .58rem; letter-spacing: .13em; }
.re-video-frame__caption strong { color: #fff; font-size: .86rem; letter-spacing: .01em; }
.re-video-frame__caption > span { flex: 0 0 auto; font-size: .58rem; opacity: .6; }

.re-video-note {
    display: flex;
    gap: .45rem;
    margin: .85rem .3rem 0;
    color: #6c706f;
    font-size: .75rem;
    line-height: 1.6;
}

.re-section {
    padding: clamp(4.2rem, 8vw, 7.5rem) 0;
}

.re-heading {
    max-width: 800px;
    margin-bottom: clamp(2rem, 5vw, 3.4rem);
}

.re-heading h2,
.re-pivot-card h2,
.re-try-card h2,
.re-final-cta h2 {
    margin: 0;
    color: #111827;
    font-size: clamp(2rem, 4vw, 3.55rem);
    font-weight: 900;
    line-height: 1.14;
    letter-spacing: -.04em;
}

.re-heading > p:last-child,
.re-heading--split > p {
    margin: 1rem 0 0;
    color: var(--re-muted);
    line-height: 1.9;
}

.re-heading--split {
    display: grid;
    grid-template-columns: 1fr minmax(360px, .72fr);
    gap: 2rem;
    max-width: none;
    align-items: end;
}

.re-heading--split > p { margin: 0; }

.re-heading--center { margin-inline: auto; text-align: center; }

.re-property-section { background: #fff; }

.re-property-layout {
    display: grid;
    grid-template-columns: minmax(300px, .78fr) minmax(0, 1.22fr);
    gap: 1rem;
}

.re-property-summary {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 100%;
    padding: clamp(1.5rem, 4vw, 2.6rem);
    border-radius: 24px;
    color: #fff;
    background:
        radial-gradient(circle at 85% 8%, rgba(208, 166, 112, .24), transparent 25%),
        linear-gradient(150deg, #172638, #101923);
    box-shadow: 0 20px 50px rgba(18, 29, 42, .12);
}

.re-property-summary__tag {
    width: fit-content;
    margin-bottom: 1rem;
    padding: .35rem .65rem;
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: 999px;
    color: #dcc4a4;
    font-size: .68rem;
    font-weight: 850;
    letter-spacing: .08em;
}

.re-property-summary h3 {
    margin: 0 0 1rem;
    font-size: clamp(1.5rem, 3vw, 2.35rem);
    font-weight: 850;
    line-height: 1.42;
}

.re-property-summary p {
    margin: 0;
    color: rgba(255, 255, 255, .72);
    line-height: 1.9;
}

.re-property-summary__actions { margin-top: 1.5rem; }

.re-text-link {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    color: #fff;
    font-size: .84rem;
    font-weight: 800;
    text-decoration: none;
}

.re-text-link:hover { color: #ead6bb; }

.re-property-facts {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.re-property-facts article {
    position: relative;
    min-height: 150px;
    padding: 1.35rem;
    border: 1px solid var(--re-line);
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 15px 36px rgba(18, 26, 38, .045);
}

.re-property-facts article > i {
    position: absolute;
    top: 1.2rem;
    right: 1.2rem;
    color: #b68a57;
    font-size: 1.45rem;
}

.re-property-facts span {
    display: block;
    margin-bottom: 1.8rem;
    color: #9a6d3e;
    font-size: .58rem;
    font-weight: 900;
    letter-spacing: .13em;
}

.re-property-facts strong {
    display: block;
    padding-right: 2rem;
    color: #1b2430;
    font-size: 1rem;
    line-height: 1.5;
}

.re-lifestyle-strip {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-top: 1rem;
    padding: 1rem 1.25rem;
    border: 1px solid rgba(162, 117, 67, .14);
    border-radius: 18px;
    background: var(--re-paper);
}

.re-lifestyle-strip > span {
    flex: 0 0 auto;
    color: #916639;
    font-size: .62rem;
    font-weight: 900;
    letter-spacing: .12em;
}

.re-lifestyle-strip ul {
    display: flex;
    flex-wrap: wrap;
    gap: .55rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.re-lifestyle-strip li {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    padding: .42rem .68rem;
    border-radius: 999px;
    color: #4e5965;
    background: #fff;
    font-size: .76rem;
    font-weight: 750;
}

.re-pivot-section {
    padding: 0 0 clamp(4.5rem, 8vw, 7.5rem);
    background: linear-gradient(180deg, #fff 0%, #fff 50%, #f6f2eb 50%, #f6f2eb 100%);
}

.re-pivot-card {
    position: relative;
    overflow: hidden;
    padding: clamp(2rem, 5vw, 4rem);
    border-radius: 30px;
    color: #fff;
    background:
        radial-gradient(circle at 85% 15%, rgba(195, 149, 90, .25), transparent 26%),
        linear-gradient(135deg, #162538, #0e1823 70%);
    box-shadow: 0 30px 72px rgba(14, 25, 37, .2);
}

.re-pivot-card::after {
    content: "AI";
    position: absolute;
    right: -1rem;
    bottom: -4rem;
    color: rgba(255, 255, 255, .035);
    font-size: clamp(12rem, 25vw, 24rem);
    font-weight: 950;
    line-height: .8;
    pointer-events: none;
}

.re-pivot-card__label {
    position: relative;
    z-index: 1;
    margin-bottom: 1.5rem;
    color: #caa574;
    font-size: .64rem;
    font-weight: 900;
    letter-spacing: .15em;
}

.re-pivot-card__grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(380px, .75fr);
    gap: clamp(2rem, 5vw, 5rem);
    align-items: end;
}

.re-pivot-card h2 { color: #fff; }
.re-pivot-card .re-kicker { color: #cfae84; }

.re-pivot-card__copy p {
    margin: 0 0 1.25rem;
    color: rgba(255, 255, 255, .72);
    line-height: 1.95;
}

.re-pivot-card__copy strong {
    display: block;
    color: #fff;
    font-size: .92rem;
    line-height: 1.7;
}

.re-capabilities-section { background: #f6f2eb; }

.re-capability-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.re-capability-card {
    position: relative;
    display: flex;
    min-height: 310px;
    flex-direction: column;
    padding: 1.55rem;
    border: 1px solid rgba(39, 47, 58, .09);
    border-radius: 22px;
    color: inherit;
    background: rgba(255, 255, 255, .88);
    box-shadow: 0 16px 42px rgba(25, 35, 47, .055);
    text-decoration: none;
    transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}

.re-capability-card:hover {
    transform: translateY(-5px);
    color: inherit;
    border-color: rgba(163, 109, 56, .32);
    box-shadow: 0 24px 54px rgba(25, 35, 47, .10);
}

.re-capability-card > span {
    color: #a27649;
    font-size: .6rem;
    font-weight: 900;
    letter-spacing: .13em;
}

.re-capability-card > i {
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    margin: 1.25rem 0 1.4rem;
    border-radius: 15px;
    color: #fff;
    background: var(--re-deep);
    font-size: 1.15rem;
}

.re-capability-card h3 {
    margin: 0 0 .75rem;
    color: #151e2b;
    font-size: 1.16rem;
    font-weight: 900;
}

.re-capability-card p {
    margin: 0;
    color: #66717f;
    font-size: .88rem;
    line-height: 1.85;
}

.re-capability-card b,
.re-capability-card button {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    margin-top: auto;
    padding-top: 1.2rem;
    color: #6d4a2b;
    font-size: .74rem;
    font-weight: 850;
}

.re-capability-card button {
    width: fit-content;
    padding-right: 0;
    padding-bottom: 0;
    padding-left: 0;
    border: 0;
    background: transparent;
    text-align: left;
}

.re-flow-section { background: #fff; }

.re-flow-grid {
    display: grid;
    grid-template-columns: repeat(7, auto);
    justify-content: center;
    align-items: center;
    gap: .6rem;
}

.re-flow-grid article {
    width: min(210px, 19vw);
    min-height: 245px;
    padding: 1.35rem;
    border: 1px solid var(--re-line);
    border-radius: 22px;
    background: #fff;
    box-shadow: 0 16px 38px rgba(24, 32, 43, .05);
}

.re-flow-grid article span {
    color: #9e7145;
    font-size: .58rem;
    font-weight: 900;
    letter-spacing: .12em;
}

.re-flow-grid article > i {
    display: block;
    margin: 1.6rem 0 1.3rem;
    color: var(--re-deep);
    font-size: 1.65rem;
}

.re-flow-grid h3 { margin: 0 0 .65rem; font-size: 1rem; font-weight: 900; }
.re-flow-grid p { margin: 0; color: #687482; font-size: .8rem; line-height: 1.75; }
.re-flow-arrow { color: #b68c5d; font-size: 1.2rem; }

.re-try-section { padding-top: 0; background: #fff; }

.re-try-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 2rem;
    align-items: center;
    padding: clamp(2rem, 5vw, 3.6rem);
    border-radius: 28px;
    color: #fff;
    background:
        linear-gradient(120deg, rgba(19, 31, 47, .97), rgba(31, 51, 72, .93)),
        radial-gradient(circle at 90% 20%, #ac7c47, transparent 30%);
}

.re-try-card .re-kicker { color: #d4b48e; }
.re-try-card h2 { max-width: 850px; color: #fff; }
.re-try-card__copy > p:last-child { max-width: 820px; margin: 1rem 0 0; color: rgba(255, 255, 255, .72); line-height: 1.9; }
.re-try-card .re-button { border: 0; cursor: pointer; white-space: nowrap; }

.re-final-cta {
    padding: clamp(4.5rem, 8vw, 7rem) 0;
    color: #fff;
    background:
        radial-gradient(circle at 82% 20%, rgba(181, 126, 66, .27), transparent 26%),
        #0e1722;
}

.re-final-cta__inner {
    max-width: 1040px;
    margin: 0 auto;
    text-align: center;
}

.re-final-cta .re-kicker { color: #d0aa7c; }
.re-final-cta h2 { color: #fff; }
.re-final-cta__inner > div:first-child > p:last-child { max-width: 800px; margin: 1rem auto 0; color: rgba(255, 255, 255, .7); line-height: 1.9; }
.re-final-cta__actions { justify-content: center; }
.re-final-cta small { display: block; margin-top: 1.4rem; color: rgba(255, 255, 255, .46); font-size: .7rem; line-height: 1.6; }

@media (max-width: 1199.98px) {
    .re-hero__intro { grid-template-columns: 1fr; }
    .re-hero__copy { max-width: 850px; }
    .re-hero__video-wrap { max-width: 980px; }
    .re-flow-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; }
    .re-flow-grid article { width: auto; }
    .re-flow-arrow { display: none; }
}

@media (max-width: 991.98px) {
    .re-heading--split,
    .re-property-layout,
    .re-pivot-card__grid,
    .re-try-card { grid-template-columns: 1fr; }
    .re-heading--split { gap: .5rem; }
    .re-capability-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .re-pivot-card__grid { gap: 1.6rem; }
    .re-try-card .re-button { width: fit-content; }
}

@media (max-width: 767.98px) {
    .re-hero { padding-top: 1.5rem; }
    .re-hero__copy h1 { font-size: clamp(2.35rem, 12vw, 3.6rem); }
    .re-hero__actions,
    .re-final-cta__actions { flex-direction: column; align-items: stretch; }
    .re-button { width: 100%; }
    .re-video-frame { border-radius: 18px; }
    .re-video-frame__top b,
    .re-video-frame__caption > span { display: none; }
    .re-video-frame__caption { padding-inline: .85rem; }
    .re-property-facts,
    .re-capability-grid,
    .re-flow-grid { grid-template-columns: 1fr; }
    .re-property-facts article { min-height: 130px; }
    .re-lifestyle-strip { align-items: flex-start; flex-direction: column; gap: .7rem; }
    .re-pivot-card { border-radius: 22px; }
    .re-capability-card { min-height: 275px; }
    .re-flow-grid article { min-height: 0; }
    .re-try-card .re-button { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
    .re-button,
    .re-capability-card { transition: none; }
    .re-button:hover,
    .re-capability-card:hover { transform: none; }
}

/* Page-scoped rule: this demo uses the inline real-estate concierge instead of the shared floating launcher. */
.re-real-estate-ja .towa-ai-chat {
    display: none !important;
}

/* Property lifestyle gallery: scoped to this real-estate demo only. */
.re-life-gallery {
    margin-top: 1.35rem;
    padding: clamp(1.35rem, 3vw, 2rem);
    border: 1px solid rgba(30, 42, 56, .09);
    border-radius: 26px;
    background:
        radial-gradient(circle at 92% 4%, rgba(190, 145, 91, .13), transparent 24%),
        linear-gradient(145deg, #152334, #0f1823 72%);
    box-shadow: 0 24px 58px rgba(18, 28, 41, .13);
}

.re-life-gallery__head {
    display: grid;
    grid-template-columns: minmax(280px, .8fr) minmax(0, 1.2fr);
    gap: 2rem;
    align-items: end;
    margin-bottom: 1.25rem;
}

.re-life-gallery__head .re-kicker { color: #d2ac7c; }
.re-life-gallery__head h3 {
    margin: 0;
    color: #fff;
    font-size: clamp(1.55rem, 3vw, 2.45rem);
    font-weight: 900;
    line-height: 1.35;
    letter-spacing: -.035em;
}

.re-life-gallery__head > p {
    margin: 0;
    color: rgba(255, 255, 255, .66);
    font-size: .84rem;
    line-height: 1.9;
}

.re-life-gallery__grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    grid-auto-rows: 190px;
    gap: .75rem;
}

.re-life-card {
    position: relative;
    overflow: hidden;
    min-width: 0;
    margin: 0;
    border: 1px solid rgba(255, 255, 255, .10);
    border-radius: 18px;
    background: #1b2735;
    box-shadow: 0 12px 26px rgba(0, 0, 0, .16);
}

.re-life-card--portrait { grid-row: span 2; }
.re-life-card--wide { grid-column: span 2; }
.re-life-card--feature { grid-column: span 2; grid-row: span 2; }

.re-life-card img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .55s cubic-bezier(.2, .75, .25, 1), filter .35s ease;
}

.re-life-card--station img { object-position: 50% 24%; }
.re-life-card--contact img { object-position: center; }

.re-life-card::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(180deg, rgba(8, 15, 24, .02) 28%, rgba(8, 15, 24, .78) 100%);
}

.re-life-card figcaption {
    position: absolute;
    z-index: 2;
    left: 1rem;
    right: 1rem;
    bottom: .9rem;
}

.re-life-card figcaption span,
.re-life-card figcaption strong { display: block; }
.re-life-card figcaption span {
    margin-bottom: .28rem;
    color: #d9b482;
    font-size: .54rem;
    font-weight: 900;
    letter-spacing: .13em;
}

.re-life-card figcaption strong {
    color: #fff;
    font-size: clamp(.78rem, 1.25vw, .98rem);
    font-weight: 850;
    line-height: 1.55;
    text-shadow: 0 2px 14px rgba(0, 0, 0, .32);
}

.re-life-card:hover img { transform: scale(1.035); filter: saturate(1.04) contrast(1.02); }

.re-property-detail {
    margin-top: 1.25rem;
    overflow: hidden;
    border: 1px solid var(--re-line);
    border-radius: 24px;
    background: #fff;
    box-shadow: 0 18px 44px rgba(22, 31, 42, .055);
}

.re-property-detail__head {
    display: grid;
    grid-template-columns: minmax(260px, .7fr) minmax(0, 1.3fr);
    gap: 2rem;
    align-items: end;
    padding: 1.7rem 1.8rem 1.45rem;
    border-bottom: 1px solid var(--re-line);
    background: linear-gradient(135deg, #fbfaf7, #f5efe6);
}

.re-property-detail__head .re-kicker { margin-bottom: .35rem; }
.re-property-detail__head h3 { margin: 0; color: #182231; font-size: 1.55rem; font-weight: 900; }
.re-property-detail__head > p { margin: 0; color: #697583; font-size: .84rem; line-height: 1.8; }

.re-property-detail__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin: 0;
}

.re-property-detail__grid > div {
    min-height: 94px;
    padding: 1.05rem 1.2rem;
    border-right: 1px solid var(--re-line);
    border-bottom: 1px solid var(--re-line);
}

.re-property-detail__grid > div:nth-child(3n) { border-right: 0; }
.re-property-detail__grid > div:nth-last-child(-n + 3) { border-bottom: 0; }
.re-property-detail dt { margin-bottom: .38rem; color: #91704e; font-size: .64rem; font-weight: 900; letter-spacing: .08em; }
.re-property-detail dd { margin: 0; color: #263342; font-size: .9rem; font-weight: 750; line-height: 1.55; }
.re-property-detail dd strong { color: #9b6332; font-size: 1.1rem; }
.re-property-detail dd.is-pending { color: #8a939d; font-weight: 700; }
.re-property-detail__note { margin: 0; padding: .9rem 1.2rem; color: #737b84; background: #fafafa; font-size: .72rem; line-height: 1.65; }
.re-property-detail__note i { margin-right: .35rem; color: #a57445; }

.re-ai-section {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(circle at 12% 8%, rgba(191, 145, 90, .10), transparent 24%),
        radial-gradient(circle at 88% 82%, rgba(37, 60, 88, .08), transparent 28%),
        #f7f4ee;
}

.re-ai-heading { margin-bottom: 2.2rem; }

.re-ai-concierge {
    display: grid;
    grid-template-columns: minmax(360px, .82fr) minmax(0, 1.18fr);
    overflow: hidden;
    border: 1px solid rgba(24, 35, 49, .10);
    border-radius: 30px;
    background: #fff;
    box-shadow: 0 34px 78px rgba(24, 35, 49, .14);
}

.re-ai-stage {
    min-width: 0;
    color: #fff;
    background: #101a27;
}

.re-ai-stage__top,
.re-ai-stage__foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    min-height: 62px;
    padding: .9rem 1.15rem;
}

.re-ai-stage__top > div {
    display: flex;
    align-items: center;
    gap: .55rem;
}

.re-ai-stage__top strong { font-size: .8rem; font-weight: 850; letter-spacing: .02em; }
.re-ai-stage__azure { color: #d9b483; font-size: .58rem; font-weight: 900; letter-spacing: .12em; }

.re-ai-live-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #70d89a;
    box-shadow: 0 0 0 5px rgba(112, 216, 154, .12);
}

.re-ai-stage__visual {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 540px;
    padding: clamp(1.2rem, 2.2vw, 1.75rem);
    background:
        radial-gradient(circle at 50% 28%, rgba(222, 196, 164, .16), transparent 34%),
        linear-gradient(180deg, #152334 0%, #101a27 100%);
}

.re-ai-stage__portrait-wrap {
    width: min(100%, 390px);
}

.re-ai-stage__portrait {
    position: relative;
    overflow: hidden;
    width: 100%;
    aspect-ratio: 1 / 1;
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: 28px;
    background: #eef0ee;
    box-shadow:
        0 26px 56px rgba(0, 0, 0, .28),
        0 0 0 7px rgba(255, 255, 255, .035);
}

.re-ai-stage__idle,
.re-ai-stage__live {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    background: #eef0ee;
}

.re-ai-stage__idle { z-index: 1; }
.re-ai-stage__live { z-index: 2; }
.re-ai-stage__live[hidden],
.re-ai-stage__idle[hidden] { display: none !important; }

.re-ai-stage__portrait::after {
    position: absolute;
    z-index: 3;
    inset: 0;
    pointer-events: none;
    border-radius: inherit;
    content: "";
    box-shadow: inset 0 -72px 70px -66px rgba(7, 15, 25, .58);
}

.re-ai-stage__portrait-badge {
    position: absolute;
    z-index: 5;
    left: .8rem;
    bottom: .75rem;
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    padding: .43rem .62rem;
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: 999px;
    background: rgba(10, 20, 31, .68);
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, .18);
}
.re-ai-stage__portrait-badge span { color: #d5b587; font-size: .43rem; font-weight: 900; letter-spacing: .11em; }
.re-ai-stage__portrait-badge strong { color: #fff; font-size: .66rem; font-weight: 900; }

.re-ai-stage__sound {
    position: absolute;
    z-index: 6;
    top: .75rem;
    right: .75rem;
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    padding: .52rem .68rem;
    border: 1px solid rgba(255, 255, 255, .2);
    border-radius: 999px;
    color: #fff;
    background: rgba(12, 22, 34, .76);
    backdrop-filter: blur(10px);
    font-size: .62rem;
    font-weight: 850;
    cursor: pointer;
    box-shadow: 0 10px 24px rgba(0, 0, 0, .18);
}
.re-ai-stage__sound[hidden] { display: none !important; }
.re-ai-stage__sound:hover { background: rgba(12, 22, 34, .92); }

.re-ai-stage__status {
    display: flex;
    align-items: center;
    gap: .72rem;
    min-height: 68px;
    margin-top: .85rem;
    padding: .78rem .9rem;
    border: 1px solid rgba(255, 255, 255, .10);
    border-radius: 17px;
    background: rgba(255, 255, 255, .055);
}

.re-ai-stage__status-dot {
    flex: 0 0 auto;
    width: 10px;
    height: 10px;
    border: 2px solid rgba(255, 255, 255, .45);
    border-top-color: #d8b180;
    border-radius: 50%;
}

.re-ai-stage__visual[data-state="thinking"] .re-ai-stage__status-dot,
.re-ai-stage__visual[data-state="connecting"] .re-ai-stage__status-dot,
.re-ai-stage__visual[data-state="speaking"] .re-ai-stage__status-dot {
    animation: re-ai-spin .9s linear infinite;
}

.re-ai-stage__visual[data-state="idle"] .re-ai-stage__status-dot,
.re-ai-stage__visual[data-state="fallback"] .re-ai-stage__status-dot {
    border: 0;
    background: #75d39a;
    box-shadow: 0 0 0 5px rgba(117, 211, 154, .13);
}

.re-ai-stage__visual[data-state="error"] .re-ai-stage__status-dot {
    border: 0;
    background: #e88d83;
    box-shadow: 0 0 0 5px rgba(232, 141, 131, .13);
}

.re-ai-stage__status small,
.re-ai-stage__status strong { display: block; }
.re-ai-stage__status small { margin-bottom: .15rem; color: #d6b181; font-size: .52rem; font-weight: 900; letter-spacing: .12em; }
.re-ai-stage__status strong { color: #fff; font-size: .76rem; line-height: 1.45; }

.re-ai-stage__hint {
    display: flex;
    align-items: center;
    gap: .4rem;
    margin: .68rem .15rem 0;
    color: #93a4b5;
    font-size: .58rem;
    line-height: 1.6;
}
.re-ai-stage__hint i { color: #d7b17e; }

.re-ai-stage__foot { min-height: 70px; }
.re-ai-stage__foot > div span,
.re-ai-stage__foot > div strong { display: block; }
.re-ai-stage__foot > div span { margin-bottom: .15rem; color: #a5b0bd; font-size: .52rem; font-weight: 850; letter-spacing: .11em; }
.re-ai-stage__foot > div strong { font-size: .7rem; font-weight: 800; }
.re-ai-privacy { display: inline-flex; align-items: center; gap: .35rem; color: #9fb0c2; font-size: .6rem; font-weight: 750; white-space: nowrap; }

.re-ai-chat {
    display: flex;
    min-width: 0;
    min-height: 672px;
    flex-direction: column;
    padding: clamp(1.45rem, 3vw, 2.25rem);
    background:
        radial-gradient(circle at 100% 0, rgba(195, 151, 94, .08), transparent 24%),
        #fff;
}

.re-ai-chat__intro h3 { margin: 0; color: #172231; font-size: clamp(1.45rem, 2.4vw, 2rem); font-weight: 900; letter-spacing: -.025em; }
.re-ai-chat__intro > p:last-child { max-width: 720px; margin: .75rem 0 0; color: #687583; font-size: .84rem; line-height: 1.75; }

.re-ai-avatar-profile {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: .8rem;
    margin-top: 1.15rem;
    padding: .82rem .9rem;
    border: 1px solid rgba(28, 51, 77, .10);
    border-radius: 18px;
    background: linear-gradient(135deg, #f7f9fc, #fffaf3);
}
.re-ai-avatar-profile__mark {
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    border-radius: 14px;
    color: #fff;
    background: linear-gradient(145deg, #273b51, #172433);
    font-size: .9rem;
    font-weight: 950;
    box-shadow: 0 8px 20px rgba(25, 39, 55, .15);
}
.re-ai-avatar-profile__copy { min-width: 0; }
.re-ai-avatar-profile__copy span,
.re-ai-avatar-profile__copy strong,
.re-ai-avatar-profile__copy small { display: block; }
.re-ai-avatar-profile__copy span { color: #9b744d; font-size: .49rem; font-weight: 900; letter-spacing: .11em; }
.re-ai-avatar-profile__copy strong { margin-top: .08rem; color: #172231; font-size: .8rem; font-weight: 900; }
.re-ai-avatar-profile__copy small { margin-top: .16rem; color: #7b8793; font-size: .6rem; line-height: 1.45; }
.re-ai-avatar-profile__live {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    padding: .4rem .55rem;
    border-radius: 999px;
    color: #44685a;
    background: #edf8f1;
    font-size: .52rem;
    font-weight: 900;
    letter-spacing: .08em;
    white-space: nowrap;
}
.re-ai-avatar-profile__live i {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #6acb92;
    box-shadow: 0 0 0 4px rgba(106, 203, 146, .12);
}

.re-ai-chips {
    display: flex;
    flex-wrap: wrap;
    gap: .45rem;
    margin-top: 1.15rem;
}

.re-ai-chips button {
    padding: .48rem .7rem;
    border: 1px solid rgba(111, 78, 46, .16);
    border-radius: 999px;
    color: #725033;
    background: #fbf7f1;
    font-size: .68rem;
    font-weight: 800;
    cursor: pointer;
    transition: background .18s ease, border-color .18s ease, transform .18s ease;
}

.re-ai-chips button:hover { transform: translateY(-1px); border-color: rgba(111, 78, 46, .32); background: #f7eee2; }
.re-ai-chips button:disabled { opacity: .5; cursor: default; transform: none; }

.re-ai-messages {
    flex: 1 1 auto;
    min-height: 260px;
    max-height: 360px;
    margin-top: 1rem;
    padding: 1rem .25rem 1rem 0;
    overflow-y: auto;
    overscroll-behavior: contain;
}

.re-ai-message {
    display: flex;
    gap: .7rem;
    max-width: 86%;
    margin-bottom: .9rem;
}

.re-ai-message.is-user {
    margin-left: auto;
    flex-direction: row-reverse;
}

.re-ai-message__avatar {
    display: grid;
    flex: 0 0 auto;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 12px;
    color: #fff;
    background: #18283a;
    font-size: .86rem;
}

.re-ai-message.is-user .re-ai-message__avatar { color: #6d4c2e; background: #f1e6d6; }
.re-ai-message > div { min-width: 0; }
.re-ai-message small { display: block; margin: 0 0 .3rem .12rem; color: #9a7756; font-size: .52rem; font-weight: 900; letter-spacing: .12em; }
.re-ai-message.is-user small { text-align: right; color: #7f8b97; }

.re-ai-message p {
    margin: 0;
    padding: .78rem .9rem;
    border: 1px solid #e8edf2;
    border-radius: 7px 17px 17px 17px;
    color: #435160;
    background: #f8fafc;
    font-size: .8rem;
    line-height: 1.75;
    white-space: pre-wrap;
}

.re-ai-message.is-user p {
    border-color: #e8ddcf;
    border-radius: 17px 7px 17px 17px;
    color: #fff;
    background: #26394e;
}

.re-ai-message.is-error p { border-color: #f1c6c0; color: #9c463d; background: #fff5f4; }

.re-ai-typing { display: inline-flex; align-items: center; gap: .25rem; min-width: 40px; min-height: 16px; }
.re-ai-typing i { width: 5px; height: 5px; border-radius: 50%; background: #8e9aa6; animation: re-ai-typing 1s ease-in-out infinite; }
.re-ai-typing i:nth-child(2) { animation-delay: .14s; }
.re-ai-typing i:nth-child(3) { animation-delay: .28s; }

.re-ai-actions {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    margin: .2rem 0 .8rem;
}

.re-ai-actions[hidden] { display: none !important; }
.re-ai-actions a {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    padding: .48rem .68rem;
    border: 1px solid rgba(25, 43, 63, .16);
    border-radius: 10px;
    color: #20344a;
    background: #fff;
    font-size: .67rem;
    font-weight: 850;
    text-decoration: none;
}
.re-ai-actions a:hover { color: #704b28; border-color: rgba(112, 75, 40, .32); }

.re-ai-form {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: .65rem;
    align-items: end;
    padding-top: .9rem;
    border-top: 1px solid #edf0f3;
}

.re-ai-input-shell {
    position: relative;
    border: 1px solid #dfe5eb;
    border-radius: 16px;
    background: #fbfcfd;
    transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}

.re-ai-input-shell:focus-within {
    border-color: rgba(149, 101, 53, .5);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(174, 126, 75, .08);
}

.re-ai-input-shell textarea {
    display: block;
    width: 100%;
    min-height: 54px;
    max-height: 116px;
    resize: none;
    padding: .85rem 3.2rem .8rem .9rem;
    border: 0;
    outline: 0;
    color: #263442;
    background: transparent;
    font: inherit;
    font-size: .8rem;
    line-height: 1.55;
}

.re-ai-input-shell > span {
    position: absolute;
    right: .65rem;
    bottom: .48rem;
    color: #a3abb3;
    font-size: .56rem;
    font-weight: 750;
}

.re-ai-form > button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .42rem;
    min-height: 54px;
    padding: .8rem 1rem;
    border: 0;
    border-radius: 15px;
    color: #fff;
    background: #17283b;
    box-shadow: 0 12px 24px rgba(23, 40, 59, .15);
    font-size: .76rem;
    font-weight: 850;
    cursor: pointer;
}

.re-ai-form > button:hover { background: #0e1b29; }
.re-ai-form > button:disabled { opacity: .56; cursor: wait; }

.re-ai-chat__note {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    margin-top: .6rem;
    color: #929aa3;
    font-size: .58rem;
    line-height: 1.5;
}

.re-ai-chat__note span:last-child { text-align: right; }

@keyframes re-ai-spin { to { transform: rotate(360deg); } }
@keyframes re-ai-typing {
    0%, 70%, 100% { transform: translateY(0); opacity: .5; }
    35% { transform: translateY(-4px); opacity: 1; }
}

@media (max-width: 1199.98px) {
    .re-ai-concierge { grid-template-columns: minmax(350px, .76fr) minmax(0, 1.24fr); }
    .re-ai-stage__visual { min-height: 520px; }
    .re-ai-stage__portrait-wrap { width: min(100%, 360px); }
}

@media (max-width: 991.98px) {
    .re-life-gallery__head { grid-template-columns: 1fr; gap: .7rem; }
    .re-life-gallery__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 205px; }
    .re-life-card--wide,
    .re-life-card--feature { grid-column: span 2; }
    .re-property-detail__head { grid-template-columns: 1fr; gap: .65rem; }
    .re-property-detail__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .re-property-detail__grid > div { border-right: 1px solid var(--re-line); border-bottom: 1px solid var(--re-line); }
    .re-property-detail__grid > div:nth-child(3n) { border-right: 1px solid var(--re-line); }
    .re-property-detail__grid > div:nth-child(2n) { border-right: 0; }
    .re-property-detail__grid > div:nth-last-child(-n + 3) { border-bottom: 1px solid var(--re-line); }
    .re-property-detail__grid > div:nth-last-child(-n + 2) { border-bottom: 0; }
    .re-ai-concierge { grid-template-columns: 1fr; }
    .re-ai-stage__visual { min-height: auto; padding-block: 1.5rem; }
    .re-ai-stage__portrait-wrap { width: min(100%, 430px); }
    .re-ai-chat { min-height: 620px; }
}

@media (max-width: 767.98px) {
    .re-life-gallery { padding: 1rem; border-radius: 20px; }
    .re-life-gallery__grid { grid-template-columns: 1fr; grid-auto-rows: 230px; }
    .re-life-card--portrait,
    .re-life-card--wide,
    .re-life-card--feature { grid-column: auto; grid-row: auto; }
    .re-life-card { min-height: 230px; }
    .re-life-card figcaption { left: .85rem; right: .85rem; bottom: .78rem; }
    .re-property-detail { border-radius: 18px; }
    .re-property-detail__head { padding: 1.3rem 1.15rem 1rem; }
    .re-property-detail__grid { grid-template-columns: 1fr; }
    .re-property-detail__grid > div,
    .re-property-detail__grid > div:nth-child(2n),
    .re-property-detail__grid > div:nth-child(3n),
    .re-property-detail__grid > div:nth-last-child(-n + 2),
    .re-property-detail__grid > div:nth-last-child(-n + 3) { border-right: 0; border-bottom: 1px solid var(--re-line); }
    .re-property-detail__grid > div:last-child { border-bottom: 0; }
    .re-ai-concierge { border-radius: 20px; }
    .re-ai-stage__visual { min-height: auto; padding: 1rem; }
    .re-ai-stage__portrait-wrap { width: min(100%, 360px); }
    .re-ai-stage__portrait { border-radius: 22px; }
    .re-ai-stage__top,
    .re-ai-stage__foot { padding-inline: .9rem; }
    .re-ai-stage__azure { display: none; }
    .re-ai-chat { min-height: 0; padding: 1.2rem 1rem; }
    .re-ai-avatar-profile { grid-template-columns: auto 1fr; }
    .re-ai-avatar-profile__live { grid-column: 2; justify-self: start; }
    .re-ai-messages { min-height: 250px; max-height: 330px; }
    .re-ai-message { max-width: 94%; }
    .re-ai-form { grid-template-columns: 1fr; }
    .re-ai-form > button { width: 100%; }
    .re-ai-chat__note { flex-direction: column; gap: .25rem; }
    .re-ai-chat__note span:last-child { text-align: left; }
}

@media (prefers-reduced-motion: reduce) {
    .re-life-card img { transition: none; }
    .re-ai-stage__visual[data-state] .re-ai-stage__status-dot,
    .re-ai-typing i { animation: none; }
    .re-ai-chips button { transition: none; }
}
