/* ================= AI PLANNER ================= */
:root {
	--ap-red: #c81d25;
	--ap-red-2: #a3141b;
	--ap-maroon: #8a1a14;
	--ap-ink: #24150d;
	--ap-text: #3d2a1e;
	--ap-muted: #7d6a5d;
	--ap-line: #f0e2d3;
	--ap-peach: #fdeee2;
	--ap-gold: #e0a83a;
	--ap-gold-2: #ffd88a;
	--ap-card: rgba(255, 255, 255, .965);
	--ap-shadow: 0 18px 50px rgba(70, 25, 5, .28);
	--ap-ok: #16a34a;
	--ap-est: #b45309;
}

/* Active nav item */
.bd-nav__guru > a { color: var(--ap-red); font-weight: 600; }

.ap-page { background: var(--bd-cream); }
.ap-page .bd-icon { width: 20px; height: 20px; }
.ap-wrap { max-width: var(--bd-max); margin: 0 auto; padding: 0 20px; }
.ap-fine { font-size: 11.5px; color: var(--ap-muted); margin: 8px 0 0; }
.ap-fine a { color: var(--ap-red); font-weight: 600; }
.ap-h2 { font-family: var(--bd-head); color: var(--ap-maroon); font-size: 22px; font-weight: 400; display: flex; align-items: center; gap: 8px; margin: 0 0 14px; }

/* ---------- Hero / workspace ---------- */
.ap-hero { position: relative; margin-top: -78px; padding: 92px 20px 22px; isolation: isolate; overflow: hidden; background: #3a1a0b; }
.ap-hero::before { content: ""; position: absolute; inset: -30px; z-index: -2; background: var(--ap-bg, none) center 30% / cover no-repeat; filter: blur(18px) saturate(1.15) brightness(.95); transform: scale(1.06); }
.ap-hero.has-bg::before { filter: saturate(1.05); inset: 0; transform: none; }
.ap-hero::after { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
	background: radial-gradient(ellipse 45% 55% at 50% 45%, rgba(255, 190, 90, .32), transparent 70%), linear-gradient(180deg, rgba(60, 22, 6, .25), rgba(60, 22, 6, .15) 60%, rgba(253, 240, 225, .0) 85%, var(--bd-cream)); }
.ap-ws { max-width: var(--bd-max); margin: 0 auto; display: grid; gap: 14px; align-items: stretch;
	grid-template-columns: minmax(360px, 452px) minmax(0, 1fr) minmax(370px, 432px); grid-template-areas: "chat stage plan"; height: 666px; }
.ap-card { background: var(--ap-card); border-radius: 18px; box-shadow: var(--ap-shadow); border: 1px solid rgba(255, 255, 255, .7); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); min-width: 0; }
.ap-iconbtn { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; color: var(--ap-text); transition: background .2s, color .2s; flex: none; }
.ap-iconbtn:hover, .ap-iconbtn:focus-visible { background: var(--ap-peach); color: var(--ap-red); outline: 0; }
.ap-iconbtn .bd-icon { width: 19px; height: 19px; }

/* ---------- Chat ---------- */
.ap-chat { grid-area: chat; display: flex; flex-direction: column; margin-top: 28px; min-height: 0; }
.ap-chat__head { display: flex; gap: 12px; align-items: flex-start; padding: 20px 18px 14px 20px; }
.ap-chat__head .bd-logo-mark { width: 40px; height: 48px; flex: none; }
.ap-chat__head > div { flex: 1; min-width: 0; }
.ap-chat__title { font-family: var(--bd-head); color: var(--ap-red); font-size: 26px; line-height: 1.05; display: flex; align-items: center; gap: 10px; }
.ap-beta { font-family: var(--bd-body); font-size: 10.5px; font-weight: 700; letter-spacing: .06em; color: #fff; background: var(--ap-red); padding: 3px 8px; border-radius: 20px; }
.ap-chat__sub { margin: 6px 0 0; display: flex; flex-direction: column; font-size: 13px; color: var(--ap-text); }
.ap-chat__sub strong { font-weight: 500; font-size: 14.5px; color: var(--ap-ink); }
.ap-chat__reset { margin: -4px -6px 0 0; }

.ap-log { flex: 1; overflow-y: auto; padding: 6px 20px 12px; display: flex; flex-direction: column; gap: 14px; min-height: 260px; scroll-behavior: smooth; }
.ap-msg { display: flex; gap: 10px; align-items: flex-start; animation: apIn .35s ease both; }
.ap-avatar { width: 34px; height: 34px; border-radius: 50%; flex: none; display: grid; place-items: center; overflow: hidden; }
.ap-avatar--ai { background: #fff3e4; border: 1px solid #f3d9b8; }
.ap-avatar--ai .bd-logo-mark { width: 20px; height: 24px; }
.ap-avatar--user { background: linear-gradient(135deg, #4b5563, #1f2937); color: #fff; }
.ap-avatar--user .bd-icon { width: 18px; height: 18px; }
.ap-bubble { min-width: 0; font-size: 14px; line-height: 1.5; color: var(--ap-ink); }
.ap-bubble p { margin: 0 0 6px; } .ap-bubble p:last-child { margin: 0; }
.ap-bubble ul { margin: 4px 0 8px; padding: 0; list-style: none; }
.ap-bubble li { position: relative; padding-left: 14px; margin: 3px 0; }
.ap-bubble li::before { content: "•"; position: absolute; left: 0; color: var(--ap-gold); font-weight: 700; }
.ap-msg--ai .ap-bubble { padding-top: 6px; }
.ap-msg--user .ap-bubble { background: #fde6e4; padding: 14px 16px; border-radius: 16px; font-size: 14.5px; color: #2a1712; }
.ap-msg--error .ap-bubble { color: #991b1b; }
.ap-fineprint { display: block; font-size: 11.5px; color: var(--ap-muted); background: #fbf4ea; border-left: 3px solid var(--ap-gold); padding: 6px 9px; border-radius: 4px; margin-top: 4px; }
.ap-linkcards { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.ap-linkcard { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 600; color: var(--ap-red); background: #fff; border: 1px solid #f1cfc3; padding: 5px 11px; border-radius: 20px; }
.ap-linkcard:hover { background: var(--ap-peach); }

/* Thinking */
.ap-think { width: 100%; }
.ap-think__title { font-weight: 600; font-size: 15px; margin: 6px 0 10px !important; }
.ap-think__title .ap-dots { display: inline-flex; gap: 3px; margin-left: 4px; }
.ap-think__title .ap-dots i { width: 4px; height: 4px; border-radius: 50%; background: currentColor; animation: apDot 1.2s infinite; }
.ap-think__title .ap-dots i:nth-child(2) { animation-delay: .15s; } .ap-think__title .ap-dots i:nth-child(3) { animation-delay: .3s; }
.ap-think.is-done .ap-dots { display: none; }
.ap-steps { list-style: none; margin: 0 !important; padding: 0 !important; }
.ap-step { display: grid !important; grid-template-columns: 22px 1fr auto; gap: 10px; align-items: center; padding: 6px 0 !important; margin: 0 !important; font-size: 14px; color: var(--ap-text); animation: apIn .3s ease both; }
.ap-step::before { display: none; }
.ap-step__box { width: 18px; height: 18px; color: #6b7280; }
.ap-step.is-done .ap-step__box { color: var(--ap-ok); }
.ap-step__end { width: 22px; height: 22px; display: grid; place-items: center; }
.ap-step__spin { width: 18px; height: 18px; border-radius: 50%; border: 2.5px solid #fde1d7; border-top-color: var(--ap-red); animation: apSpin .8s linear infinite; }
.ap-step__ok { width: 20px; height: 20px; color: var(--ap-ok); animation: apPop .3s ease; }
.ap-step__tag { display: block; font-size: 10.5px; font-weight: 600; margin-top: 1px; }
.ap-step__tag.is-ok { color: var(--ap-ok); } .ap-step__tag.is-est { color: var(--ap-est); } .ap-step__tag.is-off { color: #8b7d72; }
.ap-think__done { font-family: var(--bd-head); color: var(--ap-maroon); font-size: 18px; margin: 10px 0 0 !important; animation: apIn .4s ease both; }

/* Prompts + input */
.ap-prompts { display: flex; gap: 6px; overflow-x: auto; padding: 4px 20px 10px; scrollbar-width: none; }
.ap-prompts::-webkit-scrollbar { display: none; }
.ap-chip { flex: none; font-size: 12px; padding: 6px 11px; border-radius: 20px; background: #fff; border: 1px solid #f0d6c4; color: var(--ap-maroon); white-space: nowrap; transition: background .2s, border-color .2s; }
.ap-chip:hover, .ap-chip:focus-visible { background: var(--ap-peach); border-color: #e9a99a; outline: 0; }
.ap-input { margin: 0 16px 16px; border: 1px solid #ece2d8; border-radius: 16px; background: #fff; padding: 12px 12px 10px 14px; box-shadow: 0 4px 14px rgba(80, 30, 5, .06); transition: border-color .2s, box-shadow .2s; }
.ap-input:focus-within { border-color: #eab9a6; box-shadow: 0 0 0 4px rgba(200, 29, 37, .08); }
.ap-input textarea { width: 100%; resize: none; border: 0; outline: 0; font: inherit; font-size: 14px; line-height: 1.45; color: var(--ap-ink); background: transparent; min-height: 44px; max-height: 120px; }
.ap-input textarea::placeholder { color: #9a8b80; }
.ap-input__tools { display: flex; justify-content: flex-end; align-items: center; gap: 10px; }
.ap-mic.is-on { background: var(--ap-red); color: #fff; animation: apPulse 1.2s infinite; }
.ap-send { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(180deg, #e0333a, var(--ap-red-2)); color: #fff; box-shadow: 0 8px 18px rgba(200, 29, 37, .35); transition: transform .15s, opacity .2s; }
.ap-send:hover:not(:disabled) { transform: translateY(-1px) scale(1.03); }
.ap-send:disabled { opacity: .55; }
.ap-send .bd-icon { width: 20px; height: 20px; }

/* ---------- Stage ---------- */
.ap-stage { grid-area: stage; position: relative; min-height: 0; min-width: 0; }
.ap-char { position: absolute; left: 50%; bottom: 0; transform: translateX(-50%); width: 82%; height: 88%; }
.ap-char__img, .ap-char__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; object-position: 50% 100%; }
.ap-stage.is-cutout .ap-char__img, .ap-stage.is-cutout .ap-char__video { filter: drop-shadow(0 30px 40px rgba(60, 20, 0, .45)); }
.ap-stage.is-scene .ap-char { width: 100%; height: 100%; bottom: 0; }
.ap-stage.is-scene .ap-char__img, .ap-stage.is-scene .ap-char__video { object-fit: cover; object-position: 50% 40%;
	-webkit-mask-image: radial-gradient(ellipse 52% 56% at 50% 46%, #000 58%, transparent 100%); mask-image: radial-gradient(ellipse 52% 56% at 50% 46%, #000 58%, transparent 100%); }
.ap-char__video { opacity: 0; transition: opacity .6s ease; }
.ap-stage[data-state="thinking"] .ap-char__video { opacity: 1; }
.ap-char__fallback { position: absolute; inset: 12% 18%; display: grid; place-items: center; border-radius: 50%; background: radial-gradient(circle, #ffe2a8, #e0892d 55%, transparent 72%); }
.ap-char__fallback span { font-family: serif; font-size: 150px; color: #fff4d6; text-shadow: 0 0 40px #ff9d00; }
.ap-char__halo { position: absolute; left: 50%; top: 38%; width: 60%; aspect-ratio: 1; transform: translate(-50%, -50%); border-radius: 50%; pointer-events: none; z-index: -1;
	background: radial-gradient(circle, rgba(255, 210, 130, .45), transparent 65%); opacity: .6; transition: opacity .8s; }
.ap-stage[data-state="thinking"] .ap-char__halo { opacity: 1; animation: apBreath 2.4s ease-in-out infinite; }

.ap-links { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; overflow: visible; z-index: 1; }
.ap-links path { fill: none; stroke: rgba(255, 214, 130, .55); stroke-width: 1.4; stroke-linecap: round; filter: drop-shadow(0 0 3px rgba(255, 190, 90, .9)); transition: stroke .4s, opacity .4s; }
.ap-links path.is-active { stroke: #ffe3a3; stroke-width: 2; stroke-dasharray: 5 7; animation: apDash 1s linear infinite; }
.ap-links path.is-done { stroke: rgba(255, 226, 160, .9); }
.ap-links circle { fill: #fff3cf; filter: drop-shadow(0 0 4px #ffc864); }

.ap-cards { list-style: none; margin: 0; padding: 0; position: absolute; inset: 0; z-index: 2; pointer-events: none; }
.ap-icard { position: absolute; display: flex; align-items: center; gap: 11px; width: auto; min-width: 170px; padding: 11px 14px 11px 11px; border-radius: 14px; background: rgba(255, 255, 255, .95); box-shadow: 0 12px 30px rgba(70, 25, 5, .25), 0 0 0 1px rgba(255, 255, 255, .6); pointer-events: auto;
	transition: transform .35s cubic-bezier(.2, .8, .2, 1), box-shadow .35s, opacity .35s; }
.ap-icard--train    { left: 0; top: 6%; }
.ap-icard--stay     { left: 0; top: 31%; }
.ap-icard--temples  { left: 0; top: 56%; }
.ap-icard--local    { right: 0; top: 6%; }
.ap-icard--panchang { right: 0; top: 31%; }
.ap-icard--budget   { right: 0; top: 56%; }
.ap-icard__ic { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; flex: none; }
.ap-icard__ic .bd-icon { width: 28px; height: 28px; }
.ap-tone--blue { background: #e7efff; color: #1d4ed8; }
.ap-tone--violet { background: #efe9ff; color: #5b21b6; }
.ap-tone--red { background: #ffe9e6; color: #d4232b; }
.ap-tone--green { background: #e6f7ef; color: #0f8a5f; }
.ap-tone--orange { background: #fff0e0; color: #e46a0c; }
.ap-tone--gold { background: #fff5dc; color: #d58a00; }
.ap-icard__txt { display: flex; flex-direction: column; font-size: 13px; white-space: nowrap; line-height: 1.3; color: var(--ap-ink); min-width: 0; }
.ap-icard__status { font-size: 10px; line-height: 1.2; margin-top: 1px; font-weight: 600; color: var(--ap-muted); min-height: 0; }
.ap-icard__status:empty { display: none; }
.ap-icard__tick { position: absolute; right: -6px; bottom: -6px; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: #fff; box-shadow: 0 2px 6px rgba(0, 0, 0, .15); opacity: 0; transform: scale(.4); transition: opacity .25s, transform .3s; }
.ap-icard[data-state="running"] { transform: translateY(-3px) scale(1.04); box-shadow: 0 16px 36px rgba(70, 25, 5, .3), 0 0 0 2px rgba(255, 196, 102, .9), 0 0 28px rgba(255, 196, 102, .55); }
.ap-icard[data-state="running"] .ap-icard__tick { opacity: 1; transform: scale(1); }
.ap-icard[data-state="running"] .ap-icard__tick::after { content: ""; width: 12px; height: 12px; border-radius: 50%; border: 2px solid #fde1d7; border-top-color: var(--ap-red); animation: apSpin .8s linear infinite; }
.ap-icard[data-state="done"] .ap-icard__tick { opacity: 1; transform: scale(1); background: var(--ap-ok); }
.ap-icard[data-state="done"] .ap-icard__tick::after { content: ""; width: 9px; height: 5px; border-left: 2px solid #fff; border-bottom: 2px solid #fff; transform: rotate(-45deg) translate(1px, -1px); }
.ap-stage[data-state="thinking"] .ap-icard[data-state="idle"] { opacity: .78; }

/* ---------- Plan panel ---------- */
.ap-plan { grid-area: plan; display: flex; flex-direction: column; min-height: 0; scroll-margin-top: 90px; }
.ap-plan.is-fresh { animation: apGlow 1.2s ease; }
.ap-plan__head { display: flex; gap: 12px; align-items: flex-start; padding: 20px 16px 10px 20px; }
.ap-plan__head .bd-logo-mark { width: 38px; height: 46px; flex: none; }
.ap-plan__titles { flex: 1; min-width: 0; }
.ap-plan__titles h2 { font-family: var(--bd-head); color: var(--ap-red); font-size: 20px; line-height: 1.15; font-weight: 400; }
.ap-plan__titles p { margin: 4px 0 0; font-size: 13px; color: var(--ap-text); }
.ap-plan__tools { display: flex; gap: 0; margin-right: -6px; }
.ap-plan__tools .ap-iconbtn { width: 32px; height: 32px; }
.ap-plan__tools[hidden] { display: none; }
.ap-plan__body { flex: 1; overflow-y: auto; padding: 4px 20px 0; display: flex; flex-direction: column; min-height: 0; }
.ap-plan__body > * { flex-shrink: 0; }
.ap-plan__body > .ap-panel { flex: 1 0 auto; }
.ap-pills { display: flex; gap: 6px; flex-wrap: wrap; list-style: none; margin: 4px 0 14px; padding: 0; }
.ap-pills li { display: flex; align-items: center; gap: 7px; padding: 8px 10px; border-radius: 10px; background: #f6f1ec; font-size: 12.5px; white-space: nowrap; color: var(--ap-ink); font-weight: 500; }
.ap-pills .bd-icon { width: 17px; height: 17px; color: var(--ap-text); }
.ap-pills--ghost li { color: #a89688; }
.ap-plan__empty { padding-bottom: 20px; }
.ap-plan__lead { font-size: 13.5px; color: var(--ap-text); margin: 4px 0 10px; }
.ap-examples { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.ap-examples button { width: 100%; text-align: left; padding: 11px 13px; border-radius: 12px; background: #fff; border: 1px dashed #ecc7b4; font-size: 13px; color: var(--ap-maroon); font-style: italic; transition: background .2s; }
.ap-examples button:hover { background: var(--ap-peach); }
.ap-notes { list-style: none; margin: 0 0 10px; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.ap-note { font-size: 12px; padding: 7px 10px; border-radius: 8px; background: #f6f1ec; color: #5a4336; }
.ap-note--warn { background: #fff4e0; color: #8a4a00; border-left: 3px solid #f59e0b; }

.ap-tabs { display: flex; border-bottom: 1px solid var(--ap-line); margin: 0 -20px 12px; padding: 0 14px; position: sticky; top: 0; background: #fff; z-index: 2; overflow-x: auto; scrollbar-width: none; }
.ap-tab { flex: 1; padding: 11px 6px 12px; font-size: 14px; color: var(--ap-text); border-bottom: 2.5px solid transparent; white-space: nowrap; transition: color .2s; }
.ap-tab:hover { color: var(--ap-red); }
.ap-tab.is-active { color: var(--ap-red); border-bottom-color: var(--ap-red); font-weight: 600; }
.ap-panel.is-in { animation: apIn .3s ease both; }

/* Day accordions */
.ap-day { border-radius: 12px; margin-bottom: 10px; background: #fff; border: 1px solid var(--ap-line); overflow: hidden; }
.ap-day__head { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 12px; background: var(--ap-peach); text-align: left; }
.ap-day__head strong { font-size: 14px; color: var(--ap-red); font-weight: 600; }
.ap-day__head small { font-size: 12px; color: var(--ap-text); white-space: nowrap; display: flex; align-items: center; gap: 6px; }
.ap-day__head .bd-icon { width: 16px; height: 16px; transition: transform .25s; }
.ap-day.is-open .ap-day__head .bd-icon { transform: rotate(180deg); }
.ap-day__body { display: none; padding: 6px 12px 10px; }
.ap-day.is-open .ap-day__body { display: block; animation: apIn .3s ease both; }
.ap-pc { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: 11px; color: #6b4a2f; padding: 6px 0 8px; border-bottom: 1px dashed var(--ap-line); margin-bottom: 4px; }
.ap-tl { list-style: none; margin: 0; padding: 0; position: relative; }
.ap-tl::before { content: ""; position: absolute; left: 81px; top: 14px; bottom: 14px; width: 1.5px; background: repeating-linear-gradient(#e7d2bf 0 4px, transparent 4px 7px); }
.ap-tl__item { display: grid; grid-template-columns: 70px 14px 34px 1fr; gap: 0 8px; align-items: start; padding: 5px 0; }
.ap-tl__time { font-size: 13px; color: var(--ap-ink); padding-top: 7px; white-space: nowrap; }
.ap-tl__dot { width: 7px; height: 7px; border-radius: 50%; background: #c7b3a1; margin: 12px 0 0 0; position: relative; z-index: 1; box-shadow: 0 0 0 3px #fff; }
.ap-tl__ic { width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; }
.ap-tl__ic .bd-icon { width: 20px; height: 20px; }
.ap-tl__body { min-width: 0; padding-top: 2px; }
.ap-tl__body strong { display: block; font-size: 13.5px; font-weight: 600; color: var(--ap-ink); line-height: 1.3; }
.ap-tl__body small { display: block; font-size: 12px; color: var(--ap-muted); line-height: 1.35; margin-top: 1px; }
.ap-tl__item.is-skip strong { text-decoration: line-through; color: #9b8b7e; }
.ap-lbl { display: inline-block; font-size: 10px; font-weight: 600; padding: 1px 7px; border-radius: 20px; margin-top: 3px; }
.ap-tl__body .ap-lbl { padding: 0; background: none; margin: 0 0 0 4px; font-size: 10.5px; }
.ap-tl__body small .ap-lbl::before { content: "· "; color: #c9b8aa; }
.ap-lbl--est { background: #fdf0dc; color: var(--ap-est); }
.ap-lbl--ok { background: #e7f6ec; color: var(--ap-ok); }
.ap-lbl--off { background: #efebe7; color: #6b5d52; }

/* Option cards (travel/stay/darshan) */
.ap-opt { background: #fff; border: 1px solid var(--ap-line); border-radius: 12px; padding: 12px; margin-bottom: 10px; }
.ap-opt.is-chosen { border-color: #f1b8a5; box-shadow: 0 0 0 3px rgba(200, 29, 37, .07); }
.ap-opt__head { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 4px; }
.ap-opt h3 { font-size: 14px; font-weight: 600; color: var(--ap-maroon); display: flex; align-items: center; gap: 8px; }
.ap-opt h3 em { font-style: normal; font-size: 10px; background: var(--ap-red); color: #fff; padding: 2px 7px; border-radius: 10px; }
.ap-opt__row { display: flex; justify-content: space-between; gap: 10px; padding: 8px 0; border-bottom: 1px dashed var(--ap-line); }
.ap-opt__row:last-of-type { border-bottom: 0; }
.ap-opt__row strong { font-size: 13px; display: block; color: var(--ap-ink); }
.ap-opt__row small { display: block; font-size: 11.5px; color: var(--ap-muted); }
.ap-opt__fare { font-weight: 700; font-size: 13px; color: var(--ap-red); white-space: nowrap; text-align: right; }
.ap-opt__fare small { display: block; font-weight: 400; color: var(--ap-muted); font-size: 10.5px; }
.ap-opt__note { font-size: 11.5px; color: #5a4336; margin: 6px 0 0; }
.ap-opt a { color: var(--ap-red); font-weight: 600; }
.ap-areas { list-style: none; margin: 0; padding: 0; }
.ap-areas li { display: flex; justify-content: space-between; gap: 10px; padding: 7px 0; font-size: 13px; border-bottom: 1px dashed var(--ap-line); }
.ap-areas a { font-size: 12px; white-space: nowrap; }
.ap-temple { scroll-margin-top: 60px; }
.ap-temple.is-flash { animation: apFlash 1.4s ease; }
.ap-temple__deity { font-size: 12px; color: var(--ap-muted); margin: 0 0 8px; }
.ap-temple__cols { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.ap-temple h4 { font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--ap-est); margin: 0 0 4px; }
.ap-temple__cols ul { list-style: none; margin: 0; padding: 0; }
.ap-temple__cols li { display: flex; justify-content: space-between; gap: 6px; font-size: 12px; padding: 2px 0; }
.ap-temple__cols b { font-weight: 600; white-space: nowrap; }
.ap-temple__best { background: #fbf4ea; border-radius: 8px; padding: 8px 10px; margin-top: 8px; font-size: 12px; }
.ap-temple__best ul { margin: 0; padding-left: 16px; }
.ap-temple__foot { display: flex; justify-content: space-between; gap: 8px; align-items: center; margin-top: 10px; padding-top: 8px; border-top: 1px dashed var(--ap-line); font-size: 11px; color: var(--ap-muted); flex-wrap: wrap; }
.ap-temple__foot span { display: flex; gap: 10px; }
.ap-budget { width: 100%; border-collapse: collapse; font-size: 13px; }
.ap-budget td { padding: 9px 0; border-bottom: 1px solid var(--ap-line); vertical-align: top; }
.ap-budget td:last-child { text-align: right; white-space: nowrap; font-weight: 600; padding-left: 10px; }
.ap-budget td small { display: block; color: var(--ap-muted); font-size: 11px; font-weight: 400; }
.ap-budget tfoot td { font-weight: 700; color: var(--ap-maroon); border-bottom: 0; font-size: 14px; }

/* Budget footer */
.ap-bfoot { margin: 10px -20px 0; border-top: 1px solid var(--ap-line); background: #fff; position: sticky; bottom: 0; }
.ap-bfoot__btn { width: 100%; display: flex; align-items: center; gap: 10px; padding: 14px 20px; font-size: 14px; color: var(--ap-ink); text-align: left; }
.ap-bfoot__btn span { flex: 1; }
.ap-bfoot__btn small { color: var(--ap-muted); font-size: 13px; }
.ap-bfoot__btn strong { color: var(--ap-red); font-size: 17px; }
.ap-bfoot__btn .bd-icon { width: 18px; height: 18px; transition: transform .25s; }
.ap-bfoot.is-open .ap-bfoot__btn .bd-icon { transform: rotate(180deg); }
.ap-bfoot__body { display: none; padding: 0 20px 14px; max-height: 260px; overflow-y: auto; }
.ap-bfoot.is-open .ap-bfoot__body { display: block; animation: apIn .25s ease; }

/* ---------- Recommendations strip ---------- */
.ap-strip { max-width: var(--bd-max); margin: 16px auto 0; background: rgba(255, 252, 248, .96); border-radius: 18px; box-shadow: var(--ap-shadow); padding: 14px 16px 16px; backdrop-filter: blur(8px); }
.ap-strip[hidden] { display: none; }
.ap-strip__head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.ap-strip__head h2 { font-family: var(--bd-head); font-weight: 400; color: var(--ap-maroon); font-size: 19px; display: flex; align-items: center; gap: 8px; }
.ap-strip__head .bd-logo-mark { width: 24px; height: 28px; }
.ap-strip__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 12px; }
.ap-rc { background: #fff; border-radius: 12px; overflow: hidden; border: 1px solid #f1e6db; display: flex; flex-direction: column; gap: 3px; padding-bottom: 12px; animation: apIn .4s ease both; transition: transform .2s, box-shadow .2s; }
.ap-rc:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(70, 25, 5, .14); }
.ap-rc__img { display: block; height: 94px; position: relative; overflow: hidden; margin-bottom: 7px; }
.ap-rc__img .bd-ph__emoji { font-size: 38px; }
.ap-rc__badge { position: absolute; left: 8px; top: 8px; width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; background: #fff; box-shadow: 0 4px 10px rgba(0, 0, 0, .18); z-index: 2; }
.ap-rc__badge .bd-icon { width: 24px; height: 24px; }
.ap-rc strong { font-family: var(--bd-head); font-weight: 400; color: var(--ap-maroon); font-size: 15px; line-height: 1.2; padding: 0 12px; }
.ap-rc small { font-size: 12px; color: var(--ap-text); padding: 0 12px 8px; }
.ap-rc__btn { margin: auto 12px 0; align-self: flex-start; display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; color: var(--ap-red); border: 1.5px solid #ef9e95; border-radius: 7px; padding: 6px 10px; background: #fff; transition: background .2s; }
.ap-rc__btn:hover { background: var(--ap-peach); }
.ap-rc__btn .bd-icon { width: 13px; height: 13px; }
.ap-strip__fine { margin-top: 10px; }

/* ---------- Updates ---------- */
.ap-updates { margin-top: 22px; }
.ap-updates__grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 16px; }
.ap-box { background: #fff; border-radius: 16px; box-shadow: var(--bd-shadow); padding: 18px; animation: apIn .5s ease both; }
.ap-upd { padding: 10px 0; border-top: 1px dashed var(--ap-line); }
.ap-upd:first-of-type { border-top: 0; padding-top: 0; }
.ap-upd h3 { display: inline-block; font-size: 13.5px; font-weight: 600; margin: 0 6px 0 0; }
.ap-upd p { font-size: 12.5px; margin: 4px 0 0; }
.ap-wx { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; margin: 8px 0 0; }
.ap-wx li { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 8px 4px; border-radius: 10px; background: #fbf4ea; font-size: 11px; text-align: center; }
.ap-wx b { font-size: 20px; }
.ap-wx small { color: #1d4ed8; }
.ap-list { list-style: none; padding: 0; margin: 4px 0 0; }
.ap-list li { font-size: 12.5px; padding: 3px 0 3px 14px; position: relative; }
.ap-list li::before { content: "✦"; position: absolute; left: 0; color: var(--ap-gold); font-size: 9px; top: 6px; }
.ap-news li { display: flex; justify-content: space-between; gap: 10px; padding: 6px 0; border-bottom: 1px dashed var(--ap-line); font-size: 12.5px; }
.ap-news a { font-weight: 600; color: var(--ap-ink); }
.ap-news a:hover { color: var(--ap-red); }
.ap-news small { color: var(--ap-muted); white-space: nowrap; }
.ap-recos { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.ap-reco { display: flex; gap: 10px; align-items: center; padding: 10px; border-radius: 12px; border: 1px solid var(--ap-line); transition: background .2s; }
.ap-reco:hover { background: #fdf6ee; }
.ap-reco__ic { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; background: var(--ap-peach); color: var(--ap-red); flex: none; }
.ap-reco strong { display: block; font-size: 13px; }
.ap-reco small { color: var(--ap-muted); font-size: 11.5px; }

/* More guidance */
.ap-more { margin: 28px auto 36px; }
.ap-more__grid { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 12px; }
.ap-more__card { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; padding: 16px 10px; background: #fff; border-radius: 14px; box-shadow: var(--bd-shadow); height: 100%; transition: transform .2s; }
.ap-more__card:hover { transform: translateY(-3px); }
.ap-more__ic { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: var(--ap-peach); color: var(--ap-red); }
.ap-more__card strong { font-size: 13px; color: var(--ap-maroon); }
.ap-more__card small { font-size: 11px; color: var(--ap-muted); }

/* Modal + toast */
.ap-modal { position: fixed; inset: 0; z-index: 200; background: rgba(30, 12, 4, .55); display: grid; place-items: center; padding: 16px; animation: apFade .2s ease; }
.ap-modal__box { width: 100%; max-width: 440px; background: #fff; border-radius: 18px; padding: 22px; display: flex; flex-direction: column; gap: 10px; box-shadow: 0 30px 60px rgba(0, 0, 0, .4); }
.ap-modal__box h3 { font-family: var(--bd-head); color: var(--ap-red); font-size: 22px; font-weight: 400; }
.ap-modal__box label { display: flex; flex-direction: column; gap: 4px; font-size: 12px; font-weight: 600; color: var(--ap-maroon); flex: 1; }
.ap-modal__box select, .ap-modal__box input { font: inherit; font-weight: 400; padding: 9px 10px; border: 1.5px solid #ecd6c8; border-radius: 8px; background: #fff; color: var(--ap-ink); min-width: 0; }
.ap-modal__row { display: flex; gap: 8px; }
.ap-modal__actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 6px; }
.ap-btn { display: inline-flex; align-items: center; gap: 6px; padding: 10px 16px; border-radius: 10px; font-size: 13px; font-weight: 600; background: linear-gradient(180deg, #e0333a, var(--ap-red-2)); color: #fff; }
.ap-btn--ghost { background: #fff; color: var(--ap-red); border: 1.5px solid #efbcb0; }
.ap-toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 210; background: var(--ap-maroon); color: #fff; padding: 10px 18px; border-radius: 24px; font-size: 13px; box-shadow: 0 10px 30px rgba(0, 0, 0, .3); animation: apIn .3s ease; }

/* Animations */
@keyframes apIn { from { opacity: 0; transform: translateY(6px); } }
@keyframes apFade { from { opacity: 0; } }
@keyframes apDot { 0%, 80%, 100% { opacity: .3; } 40% { opacity: 1; } }
@keyframes apSpin { to { transform: rotate(360deg); } }
@keyframes apPop { from { transform: scale(.3); opacity: 0; } }
@keyframes apPulse { 50% { box-shadow: 0 0 0 8px rgba(200, 29, 37, .15); } }
@keyframes apDash { to { stroke-dashoffset: -24; } }
@keyframes apBreath { 50% { transform: translate(-50%, -50%) scale(1.08); } }
@keyframes apGlow { 0% { box-shadow: 0 0 0 0 rgba(224, 168, 58, .8), var(--ap-shadow); } 100% { box-shadow: 0 0 0 16px rgba(224, 168, 58, 0), var(--ap-shadow); } }
@keyframes apFlash { 0%, 60% { box-shadow: 0 0 0 3px var(--ap-gold); } }

/* ---------- Responsive ---------- */
@media (max-width: 1360px) {
	.ap-ws { grid-template-columns: minmax(320px, 390px) minmax(0, 1fr) minmax(330px, 400px); }
	.ap-icard { min-width: 0; padding: 9px 12px 9px 9px; gap: 9px; }
	.ap-icard--train { top: 4%; } .ap-icard--stay { top: 30%; } .ap-icard--temples { top: 56%; }
	.ap-icard--local { top: 17%; } .ap-icard--panchang { top: 43%; } .ap-icard--budget { top: 69%; }
	.ap-icard__ic { width: 42px; height: 42px; } .ap-icard__ic .bd-icon { width: 24px; height: 24px; }
	.ap-icard__txt { font-size: 12px; }
	.ap-strip__list { grid-template-columns: repeat(4, minmax(0, 1fr)); }
	.ap-more__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 1199px) {
	.ap-ws { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-areas: "stage stage" "chat plan"; height: auto; }
	.ap-stage { min-height: 430px; }
	.ap-chat { margin-top: 0; height: 640px; }
	.ap-plan { height: 640px; }
	.ap-icard--train, .ap-icard--stay, .ap-icard--temples { left: 3%; } .ap-icard--local, .ap-icard--panchang, .ap-icard--budget { right: 3%; }
	.ap-icard--train, .ap-icard--local { top: 6%; } .ap-icard--stay, .ap-icard--panchang { top: 38%; } .ap-icard--temples, .ap-icard--budget { top: 70%; }
	.ap-stage.is-scene .ap-char { left: 50%; width: 56%; }
}
@media (max-width: 820px) {
	.ap-hero { padding: 86px 12px 16px; }
	.ap-ws { grid-template-columns: minmax(0, 1fr); grid-template-areas: "chat" "stage" "plan"; gap: 12px; }
	.ap-stage { min-height: 0; display: flex; flex-direction: column; gap: 8px; }
	.ap-char, .ap-stage.is-scene .ap-char { position: relative; left: auto; transform: none; width: 100%; height: 210px; border-radius: 16px; overflow: hidden; }
	.ap-stage.is-scene .ap-char__img, .ap-stage.is-scene .ap-char__video { -webkit-mask-image: none; mask-image: none; border-radius: 16px; }
	.ap-links { display: none; }
	.ap-cards { position: static; display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 2px 2px 8px; }
	.ap-cards::-webkit-scrollbar { display: none; }
	.ap-icard { position: relative; left: auto !important; right: auto !important; top: auto !important; flex: none; width: auto; padding: 8px 12px 8px 8px; }
	.ap-icard__ic { width: 34px; height: 34px; border-radius: 10px; } .ap-icard__ic .bd-icon { width: 19px; height: 19px; }
	.ap-icard__tick { right: -4px; bottom: -4px; width: 18px; height: 18px; }
	.ap-chat, .ap-plan { height: auto; }
	.ap-log { max-height: 58vh; min-height: 200px; }
	.ap-plan__body { overflow: visible; }
	.ap-strip__list { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 6px; scrollbar-width: thin; }
	.ap-rc { flex: 0 0 168px; scroll-snap-align: start; }
	.ap-updates__grid { grid-template-columns: minmax(0, 1fr); }
	.ap-more__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 480px) {
	.ap-chat__title { font-size: 23px; }
	.ap-tl__item { grid-template-columns: 62px 12px 32px 1fr; gap: 0 6px; }
	.ap-tl::before { left: 70px; }
	.ap-tl__ic { width: 32px; height: 32px; } .ap-tl__ic .bd-icon { width: 19px; height: 19px; }
	.ap-tl__time { font-size: 12px; }
	.ap-tab { font-size: 13px; }
	.ap-temple__cols { grid-template-columns: 1fr; }
	.ap-wx { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.ap-modal__row { flex-direction: column; }
	.ap-pills li { padding: 7px 10px; font-size: 12px; }
}
@media (prefers-reduced-motion: reduce) { .ap-page *, .ap-page *::before, .ap-page *::after { animation: none !important; transition: none !important; } }

/* ---------- Print: itinerary only ---------- */
@media print {
	body * { visibility: hidden !important; }
	.ap-print, .ap-print * { visibility: visible !important; }
	.ap-print { position: absolute; left: 0; top: 0; width: 100%; padding: 0 12mm; color: #000; display: block !important; }
	.ap-print h1 { font-family: Georgia, serif; font-size: 22pt; margin: 0 0 4pt; }
	.ap-print h2 { font-family: Georgia, serif; font-size: 14pt; margin: 14pt 0 6pt; }
	.ap-print .ap-day__body { display: block !important; }
	.ap-print .ap-tl__item, .ap-print .ap-opt { break-inside: avoid; }
}
.ap-print { display: none; }
.ap-tone--gray { background: #f3eee9; color: #7d6a5d; }
