/* Rooms page: the smart concierge is intentionally scoped to this page. */
html, body { overflow-x: clip; }

.rooms-listing-body {
    background: var(--atria-cream, #f8f4ec);
    padding: clamp(2.5rem, 4vw, 3.5rem) 0 4rem;
}

.rooms-search-container {
    margin-bottom: 2rem;
}

.rooms-main-container {
    margin-top: 0;
}

.rooms-ai-cta {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 1rem;
    width: min(100%, 1120px);
    min-height: 88px;
    margin: 0 auto 1.5rem;
    padding: 1rem 1.15rem;
    border-radius: 16px;
    background:
        radial-gradient(90% 140% at 100% 0%, rgba(201, 168, 76, .16), transparent 54%),
        rgba(255, 250, 242, .92);
    border: 1px solid rgba(201, 168, 76, .26);
    box-shadow: 0 16px 36px rgba(10, 22, 40, .08);
}

.rooms-ai-cta__icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(145deg, #0a1628, #132746);
    color: var(--site-accent, #c9a84c);
    box-shadow: 0 12px 24px rgba(10, 22, 40, .18);
    flex-shrink: 0;
}

.rooms-ai-cta__copy h2 {
    margin: 0 0 .22rem;
    color: #081424;
    font-family: "Playfair Display", serif;
    font-size: 1.28rem;
    line-height: 1.2;
}

.rooms-ai-cta__copy p {
    margin: 0;
    color: #667085;
    font-size: .92rem;
    line-height: 1.5;
}

.rooms-ai-cta__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .45rem;
    min-height: 42px;
    white-space: nowrap;
}

.rooms-search-container .atria-room-search-card {
    width: min(100%, 1120px);
    margin: 0 auto;
}

@media (max-width: 767.98px) {
    .rooms-ai-cta {
        grid-template-columns: 1fr;
        justify-items: start;
        min-height: 0;
        padding: 1rem;
    }

    .rooms-ai-cta__btn {
        width: 100%;
        justify-content: center;
    }
}

.ai-smart {
    --ai-navy: #09182c;
    --ai-navy-soft: #122b49;
    --ai-gold: var(--site-accent, #c9a84c);
    position: relative;
    isolation: isolate;
    overflow: hidden;
    margin: 1.5rem 0 2rem;
    color: #f8f4e9;
    border: 1px solid color-mix(in srgb, var(--ai-gold) 42%, transparent);
    border-radius: clamp(20px, 2vw, 30px);
    background: linear-gradient(145deg, var(--ai-navy), #0c213b 58%, #112b49);
    box-shadow: 0 24px 60px rgba(5, 15, 29, .22);
}

.ai-smart__glow {
    position: absolute;
    z-index: -1;
    top: -18rem;
    right: -12rem;
    width: 36rem;
    height: 36rem;
    border-radius: 50%;
    background: radial-gradient(circle, color-mix(in srgb, var(--ai-gold) 20%, transparent), transparent 66%);
    pointer-events: none;
}

.ai-smart__header { padding: clamp(1.4rem, 3vw, 2.25rem) clamp(1.25rem, 3vw, 2.5rem) 1rem; }
.ai-smart__badge {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    margin-bottom: .8rem;
    color: var(--ai-gold);
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .16em;
    text-transform: uppercase;
}
.ai-smart__title { margin: 0; color: #fff; font-family: 'Playfair Display', serif; font-size: clamp(1.65rem, 3vw, 2.35rem); }
.ai-smart__subtitle { max-width: 42rem; margin: .45rem 0 0; color: rgba(255, 255, 255, .66); }

.ai-smart__grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(330px, .95fr); gap: 1px; background: rgba(255, 255, 255, .1); }
.ai-smart__panel { min-width: 0; padding: clamp(1.2rem, 2.8vw, 2rem); background: rgba(7, 21, 39, .82); }
.ai-smart__right { background: linear-gradient(160deg, rgba(15, 39, 67, .96), rgba(6, 20, 37, .98)); }

.ai-smart__msg { padding: 1rem; margin-bottom: 1.25rem; border: 1px solid rgba(201, 168, 76, .3); border-radius: 16px; background: rgba(255, 255, 255, .045); }
.ai-smart__textarea {
    display: block;
    width: 100%;
    min-height: 88px;
    resize: vertical;
    margin-top: .65rem;
    padding: .85rem 1rem;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, .16);
    border-radius: 12px;
    outline: none;
    background: rgba(2, 12, 24, .48);
}
.ai-smart__textarea::placeholder { color: rgba(255, 255, 255, .42); }
.ai-smart__textarea:focus { border-color: var(--ai-gold); box-shadow: 0 0 0 3px color-mix(in srgb, var(--ai-gold) 16%, transparent); }

.ai-smart__group { padding: 1rem 0; border-top: 1px solid rgba(255, 255, 255, .08); }
.ai-smart__group-label { display: flex; align-items: center; gap: .5rem; color: #fff; font-size: .86rem; font-weight: 700; }
.ai-smart__group-label i { color: var(--ai-gold); }
.ai-smart__chips { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .7rem; }
.ai-smart__chip {
    max-width: 100%;
    padding: .48rem .76rem;
    color: rgba(255, 255, 255, .78);
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: 999px;
    background: rgba(255, 255, 255, .055);
    font-size: .78rem;
    line-height: 1.25;
    transition: border-color .18s ease, background .18s ease, color .18s ease;
}
.ai-smart__chip:hover { color: #fff; border-color: color-mix(in srgb, var(--ai-gold) 65%, transparent); }
.ai-smart__chip.is-active { color: var(--ai-navy); border-color: var(--ai-gold); background: var(--ai-gold); font-weight: 700; }
.ai-smart__chip:focus-visible, .ai-smart__ghost:focus-visible { outline: 2px solid var(--ai-gold); outline-offset: 2px; }

.ai-smart__budget { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: .55rem; margin-top: .65rem; }
.ai-smart__budget input, .ai-smart__num {
    min-width: 0;
    width: 100%;
    padding: .58rem .7rem;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: 10px;
    outline: none;
    background: rgba(2, 12, 24, .45);
}
.ai-smart__num { max-width: 9rem; margin-top: .65rem; }
.ai-smart__budget input:focus, .ai-smart__num:focus { border-color: var(--ai-gold); }

.ai-smart__actions { display: flex; flex-wrap: wrap; align-items: center; gap: .7rem; padding-top: 1rem; }
.ai-smart__analyze { min-width: 11.5rem; }
.ai-smart__ghost { padding: .45rem .25rem; color: rgba(255, 255, 255, .72); border: 0; background: transparent; font-size: .78rem; text-decoration: none; }
.ai-smart__ghost:hover { color: var(--ai-gold); }
.ai-smart__counter { margin-left: auto; color: var(--ai-gold); font-size: .75rem; font-weight: 700; }
.ai-smart__disclaimer { margin: .85rem 0 0; color: rgba(255, 255, 255, .45); font-size: .7rem; line-height: 1.45; }

.ai-smart__dash { min-height: 100%; }
.ai-smart__dash-head { display: flex; align-items: center; gap: .8rem; padding-bottom: 1rem; border-bottom: 1px solid rgba(255, 255, 255, .1); }
.ai-smart__orb { display: grid; place-items: center; width: 42px; height: 42px; flex: 0 0 auto; color: var(--ai-gold); border: 1px solid rgba(201, 168, 76, .35); border-radius: 14px; background: rgba(201, 168, 76, .08); }
.ai-smart__dash-title { color: #fff; font-family: 'Playfair Display', serif; font-size: 1.15rem; font-weight: 700; }
.ai-smart__summary { display: flex; flex-wrap: wrap; gap: .45rem; padding: 1rem 0; }
.ai-smart__sum-chip { display: inline-flex; align-items: center; gap: .35rem; padding: .38rem .6rem; color: rgba(255,255,255,.78); border-radius: 8px; background: rgba(255,255,255,.07); font-size: .73rem; }
.ai-smart__sum-chip i { color: var(--ai-gold); }

.ai-smart__steps { display: grid; gap: .65rem; margin: 1rem 0; padding: 0; list-style: none; }
.ai-smart__steps li { display: flex; align-items: center; gap: .65rem; color: rgba(255,255,255,.5); font-size: .82rem; }
.ai-smart__steps li.is-active { color: #fff; }
.ai-smart__steps li.is-active i { color: var(--ai-gold); animation: aiSpin 1s linear infinite; }
.ai-smart__steps li.is-done { color: rgba(255,255,255,.72); }
.ai-smart__steps li.is-done i { color: #69c494; }
@keyframes aiSpin { to { transform: rotate(360deg); } }

.ai-smart__status { margin: 1rem 0; padding: .8rem 1rem; color: rgba(255,255,255,.78); border-left: 3px solid var(--ai-gold); border-radius: 0 10px 10px 0; background: rgba(255,255,255,.055); font-size: .82rem; }
.ai-smart__results { display: grid; gap: .9rem; margin-top: 1rem; }
.ai-smart__controls { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .7rem; margin-top: 1rem; padding-top: .8rem; border-top: 1px solid rgba(255,255,255,.08); }

.ai-rec-card { display: grid; grid-template-columns: 132px minmax(0, 1fr); overflow: hidden; color: #17243a; border-radius: 15px; background: #fff; box-shadow: 0 10px 28px rgba(0,0,0,.18); }
.ai-rec-card__img { position: relative; min-height: 100%; background: #132843; }
.ai-rec-card__img img, .ai-rec-card__placeholder { width: 100%; height: 100%; min-height: 180px; object-fit: cover; }
.ai-rec-card__placeholder { display: grid; place-items: center; color: rgba(255,255,255,.25); font-size: 2rem; }
.ai-rec-card__score { position: absolute; top: .55rem; left: .55rem; padding: .25rem .5rem; color: #08172a; border-radius: 999px; background: var(--ai-gold); font-size: .68rem; font-weight: 800; }
.ai-rec-card__body { display: flex; min-width: 0; flex-direction: column; gap: .42rem; padding: .85rem; }
.ai-rec-card__name { margin: 0; color: #0a1a30; font-size: 1rem; font-weight: 800; }
.ai-rec-card__meta { display: flex; flex-wrap: wrap; gap: .6rem; color: #687386; font-size: .72rem; }
.ai-rec-card__meta i { color: #a98128; }
.ai-rec-card__reason { margin: 0; color: #465267; font-size: .75rem; line-height: 1.45; }
.ai-rec-card__feats { display: flex; flex-wrap: wrap; gap: .3rem; }
.ai-rec-card__feats-label { width: 100%; color: #7b8493; font-size: .65rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
.ai-rec-card__feat { padding: .2rem .42rem; color: #395244; border-radius: 999px; background: #edf7f0; font-size: .66rem; }
.ai-rec-card__footer { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: .55rem; margin-top: auto; padding-top: .55rem; border-top: 1px solid #edf0f3; }
.ai-rec-card__price strong { color: #0a1a30; }
.ai-rec-card__price small { color: #758092; font-size: .68rem; }
.ai-rec-card__total { display: block; color: #927323; font-size: .66rem; font-weight: 700; }
.ai-rec-card__actions { display: flex; flex-wrap: wrap; gap: .35rem; }

@media (max-width: 991.98px) {
    .ai-smart__grid { grid-template-columns: 1fr; }
    .ai-smart__right { min-height: 360px; }
}

@media (max-width: 575.98px) {
    .ai-smart { margin-inline: 0; border-radius: 18px; }
    .ai-smart__glow { display: none; }
    .ai-smart__header, .ai-smart__panel { padding-inline: 1rem; }
    .ai-smart__actions > * { width: 100%; text-align: center; }
    .ai-smart__counter { margin-left: 0; }
    .ai-rec-card { grid-template-columns: 1fr; }
    .ai-rec-card__img { aspect-ratio: 16 / 8; }
    .ai-rec-card__img img, .ai-rec-card__placeholder { min-height: 0; }
    .ai-rec-card__footer, .ai-rec-card__actions { align-items: stretch; }
    .ai-rec-card__actions { width: 100%; }
    .ai-rec-card__actions .btn { flex: 1 1 9rem; }
}

@media (prefers-reduced-motion: reduce) {
    .ai-smart__steps li.is-active i { animation: none; }
}
