/* Destination preview, quick-question card and saved-trip covers (Ask then Go identity: ink / teal / coral on sand). */

/* ---- destination preview in the right panel ---- */
.nm-preview{position:relative;border-radius:26px;overflow:hidden;min-height:300px;margin:0 0 18px;background:linear-gradient(135deg,var(--nm-deep),var(--nm-teal));box-shadow:0 22px 50px #0e223026;color:#fff;animation:nmPvIn .6s cubic-bezier(.2,.75,.2,1) both}
.nm-preview.hide{display:none}
.nm-preview img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;opacity:0;transform:scale(1.06);transition:opacity .9s ease,transform 9s ease-out}
.nm-preview img.on{opacity:1;transform:scale(1)}
.nm-preview:not(.has-photo) img{display:none}
.nm-pv-shade{position:absolute;inset:0;background:linear-gradient(180deg,#041a2833 0,#041a2800 38%,#041a28d9 100%)}
.nm-pv-txt{position:absolute;left:28px;right:28px;bottom:42px}
.nm-pv-txt small{display:block;font:700 11px/1 system-ui,sans-serif;letter-spacing:.2em;text-transform:uppercase;color:var(--nm-gold);margin-bottom:8px}
.nm-pv-txt h2{margin:0;font:600 clamp(38px,5.4vw,64px)/1 Georgia,serif;letter-spacing:-1.5px;text-shadow:0 2px 24px #0008}
.nm-pv-credit{position:absolute;left:28px;right:28px;bottom:14px;margin:0;font-size:10.5px;color:#ffffffb8}
.nm-pv-credit a{color:#fff}
@keyframes nmPvIn{from{opacity:0;transform:translateY(12px)}to{opacity:1;transform:none}}
@media(max-width:900px){.nm-preview{min-height:210px;border-radius:20px}.nm-pv-txt{left:18px;right:18px;bottom:34px}.nm-pv-credit{left:18px}}

/* ---- quick questions card (in the chat) ---- */
.nm-intake{flex:none;scroll-margin-bottom:110px;margin:6px 0 14px;border:1px solid var(--nm-line);border-radius:22px;background:#fff;overflow:hidden;box-shadow:0 14px 34px #0e22301a;animation:nmPvIn .45s cubic-bezier(.2,.75,.2,1) both;font-family:inherit;color:var(--nm-ink)}
.nm-in-banner{position:relative;height:112px;background:linear-gradient(135deg,hsl(var(--nm-seed,190) 45% 28%),hsl(calc(var(--nm-seed,190) + 40) 40% 42%));display:flex;align-items:flex-end;overflow:hidden}
.nm-in-banner img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.nm-in-banner::after{content:"";position:absolute;inset:0;background:linear-gradient(180deg,#041a2800 20%,#041a28cc 100%)}
.nm-in-banner b{position:relative;z-index:1;color:#fff;font:600 26px/1 Georgia,serif;letter-spacing:-.5px;padding:0 18px 14px;text-shadow:0 2px 14px #0008}
/* the name sits in a block with the card's title above it (the kicker) and the photo credit under the banner's edge: both show only when
   the banner is the hero of the full-width planning page (layla-ui.css, 22.10) */
.nm-in-txt{position:relative;z-index:1;display:grid;min-width:0}
.nm-in-kick{display:none;font:700 11px/1 system-ui,sans-serif;letter-spacing:.2em;text-transform:uppercase;color:var(--nm-gold);padding:0 18px 8px}
.nm-in-credit{position:absolute;z-index:1;left:18px;right:18px;bottom:10px;margin:0;font-size:10.5px;line-height:1.3;color:#ffffffb8;opacity:0;pointer-events:none;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.nm-in-credit a{color:#fff}
.nm-in-credit:empty{display:none}
.nm-in-body{padding:16px 18px 18px}
.nm-in-top{display:flex;align-items:center;gap:10px;font-size:13px}
.nm-in-top b{font-weight:700}
.nm-in-top span{margin-left:auto;color:var(--nm-muted);font-size:12px;font-weight:600}
.nm-in-x{border:0;background:transparent;color:var(--nm-muted);font-size:20px;line-height:1;cursor:pointer;padding:2px 6px;border-radius:8px}
.nm-in-x:hover{background:var(--nm-teal-soft);color:var(--nm-ink)}
.nm-in-bar{height:5px;border-radius:5px;background:#ece5d9;margin:10px 0 16px;overflow:hidden}
.nm-in-bar i{display:block;height:100%;background:var(--nm-coral);border-radius:5px;transition:width .35s ease}
.nm-in-body h3{margin:0 0 4px;font:700 19px/1.25 Georgia,serif;letter-spacing:-.3px}
.nm-in-hint{margin:0 0 14px;color:var(--nm-muted);font-size:13px;line-height:1.45}
.nm-in-input{width:100%;box-sizing:border-box;border:2px solid var(--nm-ink);border-radius:14px;padding:12px 14px;font:inherit;font-size:15px;background:#fff;color:var(--nm-ink);margin-bottom:10px}
.nm-in-input:focus{outline:3px solid #1d7a8233;border-color:var(--nm-teal)}
.nm-in-chips{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:6px}
.nm-chip{border:1px solid #d9d0c1;background:#fff;color:var(--nm-ink);border-radius:999px;padding:9px 15px;font-weight:600;font-size:14px;line-height:1.1;font-family:inherit;cursor:pointer;transition:background .15s,border-color .15s,transform .1s}
.nm-chip:hover{border-color:var(--nm-teal);background:var(--nm-teal-soft)}
.nm-chip:active{transform:scale(.97)}
.nm-chip.on{background:var(--nm-ink);border-color:var(--nm-ink);color:#fff}
.nm-chip:focus-visible,.nm-in-next:focus-visible,.nm-in-back:focus-visible,.nm-in-skip:focus-visible{outline:3px solid #1d7a8266;outline-offset:2px}
.nm-in-nav{display:flex;align-items:center;gap:10px;margin-top:16px}
.nm-in-back,.nm-in-skip{border:0;background:transparent;color:var(--nm-muted);font-weight:600;font-size:13px;font-family:inherit;cursor:pointer;padding:8px 4px}
.nm-in-back:disabled{opacity:.35;cursor:default}
.nm-in-skip{margin-left:auto;text-decoration:underline;text-underline-offset:3px}
.nm-in-next{margin-left:auto;border:0;border-radius:14px;background:var(--nm-coral);color:#fff;font-weight:700;font-size:15px;font-family:inherit;padding:12px 22px;cursor:pointer;min-width:132px}
.nm-in-skip + .nm-in-next{margin-left:0}
.nm-in-next:hover{background:var(--nm-coral-d)}
.nm-in-done{margin:0;font-weight:600;color:var(--nm-teal-d)}
.nm-in-foot{margin-top:6px;text-align:center}
.nm-in-now{border:0;background:transparent;color:var(--nm-teal-d);font:inherit;font-size:13px;font-weight:650;cursor:pointer;padding:8px 10px;border-radius:10px;text-decoration:underline;text-underline-offset:3px}
.nm-in-now:hover{background:var(--nm-teal-soft)}
.nm-in-now:focus-visible{outline:3px solid #1d7a8266;outline-offset:2px}
.nm-in-said{color:var(--nm-teal-d);font-weight:600}
.nm-in-kept{margin:-6px 0 12px;font-size:12.5px}
/* a suggested airport from the last saved trip carries a small note under its name */
.nm-chip .nm-chip-note{display:block;margin-top:2px;font-size:10.5px;font-weight:600;opacity:.7;letter-spacing:.01em}
.nm-in-chips .nm-in-mode{padding:11px 18px}
.nm-in-months .nm-chip{text-transform:capitalize}
.nm-in-months .nm-in-any{text-transform:none}
.nm-in-other{max-width:200px;margin-top:6px}
.nm-in-warn{margin:6px 0 0;padding:9px 12px;border-radius:12px;background:#fdeee6;color:#8a3b1e;font-size:13px;line-height:1.4;font-weight:600}
.nm-in-warn[hidden]{display:none}
.nm-intake.done .nm-in-banner{height:64px}
/* the big photo is already in the right-hand panel while the questions are open: a slim strip is enough here */
.nm-intake:not(.done) .nm-in-banner{height:68px}
.nm-intake:not(.done) .nm-in-banner b{font-size:22px;padding:0 18px 11px}
@media(max-width:520px){.nm-in-banner{height:92px}.nm-chip{padding:9px 13px;font-size:13.5px}}

/* ---- saved-trip covers ---- */
.saved-cover{position:relative;overflow:hidden}
.saved-cover img.nm-cover-img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;display:block;animation:nmPvIn .5s ease both}
.saved-cover.nm-ph{background:linear-gradient(145deg,hsl(var(--nm-h,190) 42% 82%),hsl(calc(var(--nm-h,190) + 40) 38% 62%))}
.saved-cover.nm-ph::after{content:attr(data-initial);position:absolute;inset:0;display:flex;align-items:center;justify-content:center;font:600 44px Georgia,serif;color:#ffffffcc;text-shadow:0 2px 12px #0003}
@media(prefers-reduced-motion:reduce){.nm-preview,.nm-intake,.saved-cover img.nm-cover-img{animation:none}.nm-preview img{transition:opacity .2s}}

/* photo banner inside the chat (phones only; on wider screens the right panel shows it) */
.nm-pv-chat{flex:none;display:none;position:relative;margin:6px 0 12px;border-radius:20px;overflow:hidden;min-height:132px;background:linear-gradient(135deg,var(--nm-deep),var(--nm-teal));color:#fff;animation:nmPvIn .5s ease both}
@media(max-width:900px){.nm-pv-chat{display:block}.nm-in-banner{display:none}}
.nm-pv-chat img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.nm-pv-chat::after{content:"";position:absolute;inset:0;background:linear-gradient(180deg,#041a2800 25%,#041a28d0 100%)}
.nm-pv-chat figcaption{position:absolute;z-index:1;left:16px;right:16px;bottom:12px}
.nm-pv-chat small{display:block;font:700 10px/1 system-ui,sans-serif;letter-spacing:.18em;text-transform:uppercase;color:var(--nm-gold);margin-bottom:5px}
.nm-pv-chat b{font:600 28px/1 Georgia,serif;letter-spacing:-.5px;text-shadow:0 2px 14px #0008}

/* scrolling a message into view leaves a little air under the sticky checklist */
#messages>.msg{scroll-margin-top:14px}

/* ---- 19.10 (Octavian): the departure typed in one framed field; the AI questions announced big; no skipping ---- */
.nm-in-field{display:flex;align-items:center;gap:10px;margin:2px 0 6px;border:2px solid var(--nm-line);border-radius:16px;background:#fff;padding:0 14px;transition:border-color .15s,box-shadow .15s;cursor:text}
.nm-in-field:focus-within{border-color:var(--nm-teal);box-shadow:0 0 0 4px #1d7a821f}
.nm-in-field .nm-in-fieldic{flex:none;width:20px;height:20px;color:var(--nm-teal-d)}
.nm-in-field .nm-in-input{flex:1 1 auto;min-width:0;margin:0;border:0;outline:0;box-shadow:none;padding:14px 0;font-size:16px;background:transparent}
.nm-in-field .nm-in-input:focus{outline:0;border:0}
.nm-in-next:disabled{background:#e6dccd;color:#8a8073;cursor:not-allowed}
.nm-in-next:disabled:hover{background:#e6dccd}
.nm-in-aiwait{display:grid;justify-items:center;text-align:center;gap:10px;padding:26px 8px 22px}
.nm-in-aiwait .nm-in-aiload{margin:0;font:600 clamp(22px,2.6vw,27px)/1.2 Georgia,serif;letter-spacing:-.4px;color:var(--nm-ink);max-width:22ch}
.nm-in-aisub{margin:0;max-width:40ch;color:var(--nm-muted);font-size:14px;line-height:1.5}
.nm-in-aidots{display:inline-flex;gap:8px;margin-bottom:4px}
.nm-in-aidots i{width:11px;height:11px;border-radius:50%;background:var(--nm-teal);animation:nmAiDot 1.1s ease-in-out infinite}
.nm-in-aidots i:nth-child(2){animation-delay:.18s;background:var(--nm-coral)}
.nm-in-aidots i:nth-child(3){animation-delay:.36s;background:var(--nm-gold,#e2a33a)}
@keyframes nmAiDot{0%,80%,100%{transform:translateY(0);opacity:.45}40%{transform:translateY(-7px);opacity:1}}
@media (prefers-reduced-motion:reduce){.nm-in-aidots i{animation:none;opacity:1}}

/* ---- 19.10, evening (Octavian): the calendar of the question card a little smaller, so "Next" shows without scrolling ("o leacă
   calendarul mai mic, o idee, nu mult"): ~60 px less (rows 33 px instead of 38, a tighter head and month title). The trip editor's
   calendar keeps its size. On a wide screen the card scrolls flush with the bottom of the messages (the 110 px margin is for the
   phone, where the message box sits over the list). ---- */
.nm-in-cal .nm-cal{padding:6px 10px 8px;border-radius:14px}
.nm-in-cal .nm-cal-head{grid-template-columns:30px minmax(0,1fr) 30px;margin-bottom:0}
.nm-in-cal .nm-cal-nav{width:30px;height:30px;font-size:17px}
.nm-in-cal .nm-cal-sum{min-height:30px}
.nm-in-cal .nm-cal-title{font-size:14px;margin:2px 0 3px}
.nm-in-cal .nm-cal-dow{padding:0 0 3px;font-size:10.5px}
.nm-in-cal .nm-cal-d,.nm-in-cal .nm-cal-pad{height:33px}
.nm-in-cal .nm-cal-d{font-size:13.5px}
.nm-in-cal .nm-cal-d.is-today::after{bottom:3px}
.nm-intake .nm-in-cal{margin:4px 0 2px}
.nm-intake .nm-in-dates + .nm-in-nav,.nm-intake .nm-in-nav{margin-top:12px}
@media(min-width:901px){.nm-intake{scroll-margin-bottom:12px}}

/* the travellers step (audit 21.10): adults, children with their ages, rooms */
.nm-in-pax{display:grid;gap:10px;margin:4px 0 6px}
.nm-in-paxrow{display:grid;grid-template-columns:1fr 40px 44px 40px;align-items:center;gap:8px;padding:10px 12px;border:1px solid #e3dccf;border-radius:14px;background:#fff}
.nm-in-paxlab{display:grid;gap:1px;min-width:0}.nm-in-paxlab b{font-size:15px;color:var(--nm-ink,#16323a)}.nm-in-paxlab small{font-size:12px;color:var(--nm-muted,#5b6870)}
.nm-in-step{width:40px;height:40px;border-radius:50%;border:1.5px solid var(--nm-teal,#1d7a82);background:#fff;color:var(--nm-teal-d,#155f66);font:inherit;font-size:20px;font-weight:700;line-height:1;cursor:pointer}
.nm-in-step:disabled{border-color:#ddd5c8;color:#b9b2a6;cursor:default}
.nm-in-step:not(:disabled):hover{background:var(--nm-teal-soft,#e6f2f2)}
.nm-in-step:focus-visible{outline:2px solid var(--nm-teal,#1d7a82);outline-offset:2px}
.nm-in-paxval{text-align:center;font-size:18px;font-weight:750;color:var(--nm-ink,#16323a)}
.nm-in-ages{display:grid;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:8px}.nm-in-ages:empty{display:none}
.nm-in-age{display:grid;gap:4px;font-size:12.5px;color:var(--nm-muted,#5b6870)}
.nm-in-age select{min-height:40px;border:1px solid #d9d0c1;border-radius:10px;padding:6px 10px;background:#fff;font:inherit;font-size:14px;color:var(--nm-ink,#16323a)}
/* the departure suggestion (audit 21.10, part 5): a tap fills the field, "Next" confirms; hidden once something is typed */
.nm-in-suggest{display:flex;flex-wrap:wrap;align-items:center;gap:6px 10px;margin:8px 0 2px}
.nm-in-suggest[hidden]{display:none}
.nm-in-sugbtn{border:1px dashed var(--nm-teal,#1d7a82);background:#fff;color:var(--nm-teal-d,#155f66);border-radius:999px;padding:7px 14px;font:inherit;font-size:13.5px;font-weight:700;cursor:pointer;min-height:36px}
.nm-in-sugbtn:hover{background:var(--nm-teal-soft,#e3f1f0)}
.nm-in-sugbtn:focus-visible{outline:2px solid var(--nm-teal,#1d7a82);outline-offset:2px}
.nm-in-suggest small{color:var(--nm-muted,#6f7c83);font-size:12px}
.nm-in-roomsnote{margin-top:6px}
.nm-in-roomsnote[hidden]{display:none}

/* 26.10 (Octavian): "Next" never goes below the screen when a date is picked (nm-intake.js brings it into view once both days are set);
   the calendar breathes: room between the two months, the month name apart from the days */
.nm-in-cal .nm-cal{padding:12px 16px 12px}
.nm-in-cal .nm-cal-head{margin-bottom:6px}
.nm-in-cal .nm-cal-months.is-two{gap:0}
.nm-in-cal .nm-cal-months.is-two > *:nth-child(2){border-left:1px solid var(--nm-line,#e7dfd2);padding-left:22px;margin-left:0}
.nm-in-cal .nm-cal-months.is-two > *:first-child{padding-right:22px}
.nm-in-cal .nm-cal-title{font-size:15px;margin:6px 0 10px}
.nm-in-cal .nm-cal-dow{padding:0 0 6px;margin-bottom:4px;border-bottom:1px solid var(--nm-line,#efe9df)}
.nm-in-cal .nm-cal-grid{row-gap:4px}
.nm-in-cal .nm-cal-d,.nm-in-cal .nm-cal-pad{height:34px}      /* the question, the month and "Next" still on one screen at 1440×800 */
@media (max-width:900px){.nm-in-cal .nm-cal{padding:10px 10px}.nm-in-cal .nm-cal-d,.nm-in-cal .nm-cal-pad{height:38px}}
/* the AI's options: the name, and under it what the place is ("Vientiane" / "capitala, temple și piețe") */
.nm-intake .nm-chip.has-detail{height:auto;min-height:0;flex:0 1 auto;display:inline-flex;flex-direction:column;align-items:flex-start;text-align:left;border-radius:14px;padding:9px 14px;gap:3px;max-width:100%}
.nm-intake .nm-chip.has-detail .nm-chip-name{font-weight:700;font-size:14px;line-height:1.15}
.nm-intake .nm-chip.has-detail .nm-chip-det{font-weight:500;font-size:12.5px;line-height:1.25;color:var(--nm-muted,#6f7c83);white-space:normal}
.nm-intake .nm-chip.has-detail.on .nm-chip-det{color:rgba(255,255,255,.82)}
