.ai-page:has(.visual-answer) { padding-bottom: calc(165px + env(safe-area-inset-bottom)); }
.ai-answer:has(.visual-answer) { min-width: 0; overflow: hidden; }
.ai-answer:has(.visual-answer) .source-note { white-space: normal; line-height: 1.4; }
.followup-context { margin: -8px 16px 14px; color: #64766c; font-size: 12px; line-height: 1.5; }
.visual-answer { min-width: 0; color: #292e2c; font-size: 15px; line-height: 1.75; }
.visual-answer h3 { margin: 0; font-size: 16px; line-height: 1.5; }
.visual-summary { margin: 0 0 22px; color: #3f4542; font-size: 15px; line-height: 1.8; }
.answer-section { margin: 0 0 24px; }
.answer-section > h3 { margin: 0 0 13px; font-weight: 650; }
.answer-section .answer-subtitle { margin: 20px 0 11px; font-size: 15px; }
.inline-ai-figure { margin: 0; }
.inline-ai-figure figcaption { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 4px; margin-bottom: 10px; }
.inline-ai-figure figcaption strong { font-size: 14px; }
.inline-ai-figure figcaption small { color: #8b9691; font-size: 11px; }
.visual-tip { margin: 14px 0; padding: 12px; border-radius: 12px; background: #eaf6f2; color: #376d60; font-size: 13px; line-height: 1.5; }
.visual-mock-label, .visual-section-title small, .place-comparison > small { display: block; color: #8b9691; font-size: 11px; line-height: 1.5; }
.visual-fallback { margin: 10px 0; color: #777; font-size: 13px; }
.route-chips { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 12px; }
.route-chips span { padding: 5px 8px; border-radius: 12px; background: #eaf6f2; color: #397866; font-size: 11px; }
.route-overview, .food-area-map, .place-comparison { padding: 13px; border: 1px solid #e5e9e7; border-radius: 16px; background: #fafbfa; }
.route-overview h3 { margin: 4px 0; }
.route-overview .visual-section-title p { margin: 0 0 10px; color: #64756e; font-size: 12px; }
.route-map-stage { position: relative; height: 300px; overflow: hidden; border-radius: 14px; background: repeating-linear-gradient(30deg,#edf2ed 0,#edf2ed 2px,#f7faf5 2px,#f7faf5 34px); }
.route-river { position: absolute; left: 63%; top: -20%; width: 26%; height: 150%; transform: rotate(19deg); background: rgba(142,194,211,.25); border-inline: 3px solid rgba(142,194,211,.14); }
.route-map-stage svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.route-line { stroke: #48a78f; stroke-width: 1.8; stroke-linecap: round; stroke-dasharray: 0; }
.route-line.is-active { stroke: #087f66; stroke-width: 2.5; }
.route-line.is-missing { stroke: #abb7b1; stroke-dasharray: 2 2; }
.route-stop { position: absolute; z-index: 1; width: 44px; min-height: 44px; transform: translate(-50%,-50%); display: grid; place-items: center; color: #255b50; }
.route-stop b { display: grid; place-items: center; width: 29px; height: 29px; border: 2px solid #fff; border-radius: 50%; background: #48a78f; color: white; box-shadow: 0 2px 7px #668b7d7a; }
.route-stop.is-active b { background: #087f66; outline: 3px solid #9ad4c3; }
.route-stop span { position: absolute; top: 37px; left: 50%; transform: translateX(-50%); width: max-content; max-width: 80px; padding: 2px 5px; border-radius: 5px; background: #fff; font-size: 11px; white-space: nowrap; box-shadow: 0 2px 5px #0001; }
.route-stop:focus-visible { outline: 2px solid #111; border-radius: 50%; }
.route-expand { width: 100%; padding: 10px 0 0; color: #26876f; font-size: 12px; }
.route-stop-detail { margin: 11px 0; padding: 12px; border-radius: 12px; background: #eaf6f2; font-size: 13px; }
.route-stop-detail p { margin: 5px 0 0; line-height: 1.5; }
.route-timeline h3 { margin: 20px 0 9px; }
.route-time-row { padding: 8px 10px 10px; border-left: 3px solid #b4dace; background: #fafbfa; }
.route-time-row.is-active { border-color: #158b70; background: #edf8f3; }
.route-time-row button { width: 100%; display: flex; gap: 8px; align-items: center; text-align: left; font-size: 12px; }
.route-time-row button b { flex: 1; font-size: 13px; }
.route-time-row p { margin: 5px 0; font-size: 12px; line-height: 1.45; }
.route-time-row small { color: #658577; font-size: 11px; }
.route-rationale { margin: 12px 0; font-size: 13px; line-height: 1.5; }
.route-rationale summary { color: #267b69; cursor: pointer; }
.route-map-modal { position: fixed; z-index: 100; inset: 0; display: flex; flex-direction: column; gap: 12px; padding: calc(20px + env(safe-area-inset-top)) 16px calc(20px + env(safe-area-inset-bottom)); background: #fff; }
.route-map-modal header { display: flex; align-items: center; gap: 14px; font-size: 15px; }
.route-map-modal header button { font-size: 25px; }
.route-map-modal .route-map-stage { flex: 1; min-height: 55%; }
.route-map-modal .route-modal-detail { min-height: 70px; font-size: 14px; }
.route-modal-detail p { margin: 7px 0; font-size: 13px; }
.route-map-modal > button { padding: 12px; border-radius: 20px; background: #eaf6f2; color: #267b69; }
body.route-modal-open { overflow: hidden; }
.food-area-map { margin: 12px 0; }
.food-area-map .visual-section-title { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 4px; }
.food-map-stage { position: relative; height: 235px; margin-top: 10px; border-radius: 12px; background: radial-gradient(ellipse at 50% 50%,#e2efe7 0,#f4f8f1 65%); }
.food-area-point { position: absolute; transform: translate(-50%,-50%); display: grid; justify-items: center; min-width: 68px; padding: 6px; border-radius: 15px; background: #d4ebde; box-shadow: 0 0 0 8px #b8dfc455; text-align: center; font-size: 12px; }
.food-area-point small { color: #527763; font-size: 10px; }
.food-cards, .recommendation-cards { display: grid; gap: 9px; }
.food-card, .recommendation-cards article { display: flex; gap: 10px; min-width: 0; padding: 9px; border: 1px solid #eee; border-radius: 13px; }
.food-card .shot, .recommendation-cards .shot, .recommendation-cards .recommendation-photo, .visual-image-missing { width: 82px; height: 82px; flex: none; overflow: hidden; border-radius: 10px; }
.recommendation-photo { display: block; object-fit: cover; }
.recommendation-illustration { width: 82px; height: 82px; flex: none; border-radius: 10px; }
.visual-image-missing { display: grid; place-items: center; background: #eaf3ee; color: #6b9989; font-size: 18px; }
.food-card > div:last-child, .recommendation-cards article > div:last-child { min-width: 0; }
.food-card p, .recommendation-cards p { margin: 5px 0; color: #666; font-size: 12px; line-height: 1.45; }
.food-card small, .food-card span, .recommendation-cards small { color: #718d80; font-size: 11px; }
.comparison-grid { display: grid; grid-template-columns: minmax(65px,.75fr) repeat(2,minmax(0,1fr)); gap: 1px; margin: 12px 0; overflow: hidden; border-radius: 10px; background: #dfeae5; font-size: 11px; }
.comparison-grid > * { min-width: 0; margin: 0; padding: 9px 5px; background: #fff; overflow-wrap: anywhere; }
.comparison-grid strong { font-size: 13px; }
.comparison-grid strong small { display: block; color: #999; font-size: 10px; font-weight: 400; }
.comparison-grid b { font-size: 13px; }
.comparison-grid i { display: block; width: var(--score); height: 4px; margin-top: 5px; border-radius: 5px; background: #49af91; }
.troubleshooting-steps { list-style: none; margin: 0; padding: 0; }
.troubleshooting-steps li { display: flex; gap: 10px; padding: 12px 0; border-bottom: 1px solid #eee; }
.troubleshooting-steps li > b { display: grid; place-items: center; width: 26px; height: 26px; flex: none; border-radius: 50%; background: #eaf6f2; color: #29866f; }
.troubleshooting-steps p { margin: 5px 0 0; color: #666; font-size: 13px; line-height: 1.5; }
.visual-answer details { margin: 12px 0; font-size: 13px; }
.simple-facts { margin: 0; }
.simple-facts div { padding: 12px 0; border-bottom: 1px solid #eee; }
.simple-facts dt { color: #888; font-size: 12px; }
.simple-facts dd { margin: 4px 0 0; font-size: 14px; }
@media(max-width:360px) { .route-stop span { font-size: 10px; } .comparison-grid { grid-template-columns: 61px repeat(2,minmax(0,1fr)); } }
@media(prefers-reduced-motion:reduce) { .route-map-modal, .route-stop { transition: none; animation: none; } }

/* Compact, intent-specific previews on the search results page. */
.ai-summary-preview { margin: 10px 0 12px; min-width: 0; }
.ai-preview { min-width: 0; padding: 11px; border: 1px solid #deebe5; border-radius: 15px; background: #f7fbf8; }
.ai-preview-head { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 4px; margin-bottom: 9px; }
.ai-preview-head strong, .ai-preview-plain strong { font-size: 13px; }
.ai-preview-head small { color: #82968b; font-size: 10px; }
.ai-preview-route .route-map-stage { height: 190px; }
.ai-preview-route .route-stop span { display: none; }
.ai-preview-route .route-stop b { width: 25px; height: 25px; font-size: 12px; }
.ai-preview-stops { display: flex; gap: 6px; overflow-x: auto; padding: 9px 0 1px; scrollbar-width: none; }
.ai-preview-stops span { flex: none; padding: 4px 7px; border-radius: 10px; background: #e2f2ea; color: #417a66; font-size: 10px; }
.ai-preview-food .food-map-stage { height: 172px; margin: 0; }
.ai-preview-food .food-area-point { padding: 4px; font-size: 10px; min-width: 58px; }
.ai-preview-food .food-area-point small { font-size: 9px; }
.ai-preview-food { padding: 0; border: 0; border-radius: 0; background: transparent; }
.food-preview-intro { margin: 0 0 11px !important; color: #2c2c2c; font-size: 15px !important; line-height: 1.6 !important; }
.food-ranking-preview { list-style: none; margin: 0; padding: 0; }
.food-ranking-preview li { display: grid; grid-template-columns: 17px 29px minmax(0,1fr) auto; align-items: center; gap: 7px; min-height: 43px; }
.food-ranking-preview em { color: #999; font-size: 15px; font-style: italic; }
.food-ranking-preview .shot, .food-ranking-preview .visual-image-missing { width: 29px; height: 29px; border-radius: 5px; font-size: 9px; }
.food-ranking-preview strong { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; font-weight: 550; }
.food-ranking-preview li > span { color: #999; font-size: 11px; white-space: nowrap; }
.food-ranking-preview li:nth-child(5) { opacity: .38; mask-image: linear-gradient(#000, transparent); }
.ai-preview-food footer { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding-top: 7px; color: #999; font-size: 11px; line-height: 1.4; }
.ai-preview-food footer b { display: grid; place-items: center; width: 25px; height: 25px; flex: none; border: 1px solid #eee; border-radius: 50%; font-size: 21px; font-weight: 300; }
.food-ranking-detail { margin-bottom: 8px; }
.food-ranking-detail .visual-image-missing { width: 46px; height: 46px; border-radius: 8px; font-size: 11px; }
.food-ranking-detail li > span { white-space: nowrap; }
.food-ranking-disclosure { display: block; margin: 0 3px 20px; color: #999; font-size: 11px; line-height: 1.4; }
.food-area-context { padding-top: 20px; border-top: 1px solid #eee; }
.food-area-context .visual-summary { margin-bottom: 10px; }
@media (max-width: 360px) {
  .food-ranking-preview li { grid-template-columns: 14px 27px minmax(0,1fr) auto; gap: 5px; }
  .food-ranking-preview .shot, .food-ranking-preview .visual-image-missing { width: 27px; height: 27px; }
  .food-ranking-preview li > span { font-size: 10px; }
  .food-ranking-detail li { grid-template-columns: 18px 42px minmax(0,1fr) auto; gap: 5px; }
  .food-ranking-detail li > span { display: block; font-size: 10px; }
  .food-ranking-detail .visual-image-missing { width: 42px; height: 42px; }
}
.ai-preview-areas, .ai-preview-compare-grid, .ai-preview-recommend-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 7px; }
.ai-preview-areas > span, .ai-preview-compare-grid > div, .ai-preview-recommend-grid > span { min-width: 0; display: grid; gap: 4px; padding: 8px; border-radius: 10px; background: white; font-size: 12px; }
.ai-preview-areas small, .ai-preview-compare-grid small, .ai-preview-recommend-grid small { color: #71877c; font-size: 10px; }
.ai-preview-compare-grid span { color: #527d6b; font-size: 10px; }
.ai-preview-recommend-grid .recommendation-illustration, .ai-preview-recommend-grid .shot, .ai-preview-recommend-grid .recommendation-photo { width: 100%; height: 72px; }
.ai-preview-plain ol { margin: 7px 0 0; padding-left: 20px; }
.ai-preview-plain li, .ai-preview-plain p { margin: 5px 0 0; color: #52675b; font-size: 12px; line-height: 1.4; }
.results-page:has(.ai-summary-preview) { padding-bottom: 150px; }
.results-head { display: flex; align-items: center; gap: 8px; }
.results-head > strong { flex: none; font-size: 15px; }
.results-current-query { min-width: 0; margin-left: auto; padding: 6px 9px; border-radius: 13px; background: #f4f4f4; color: #666; font-size: 11px; max-width: 49%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.result-query-float { position: fixed; top: 64px; left: 50%; transform: translateX(-50%); z-index: 15; display: flex; align-items: center; gap: 8px; width: max-content; max-width: calc(100% - 110px); min-height: 40px; margin: 0; padding: 0 8px 0 17px; border-radius: 24px; background: rgba(255,255,255,.96); box-shadow: 0 5px 23px rgba(0,0,0,.14); font-size: 14px; font-weight: 600; backdrop-filter: blur(12px); }
.result-query-float span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.result-query-float button { display: grid; place-items: center; flex: none; width: 28px; height: 28px; border-radius: 50%; color: #777; }
.result-query-float button svg { width: 17px; height: 17px; }
.recommendations-header { display: flex; align-items: center; gap: 10px; height: 57px; padding: 0 18px; background: #fff; }
.recommendations-header strong { flex: 1; text-align: center; font-size: 17px; }
.recommendation-heading { display: flex; justify-content: center; margin: 10px auto 12px; }
.recommendation-heading span { padding: 9px 19px; border-radius: 22px; background: #fff; box-shadow: 0 4px 20px rgba(0,0,0,.09); font-size: 14px; font-weight: 600; }
.recommendation-handoff { display: flex; align-items: center; gap: 9px; margin: 0 14px 15px; color: #999; font-size: 11px; text-align: center; white-space: nowrap; }
.recommendation-handoff::before, .recommendation-handoff::after { content: ''; height: 1px; flex: 1; background: #e4e4e4; }
.recommendations-page .result-grid { padding-bottom: 120px; }
.result-turn { min-width: 0; }
.result-turn--past { opacity: .82; }
.result-turn--past .ai-preview { pointer-events: none; }
.result-turn--past .result-grid { padding-bottom: 18px; }
.result-turn-handoff { margin: 3px 13px 9px; padding: 8px 10px; border-radius: 11px; background: #f0f2f1; color: #7b8580; font-size: 11px; text-align: center; }
.content-followup-list { display: grid; gap: 9px; padding-left: 22px; color: #46574f; font-size: 13px; line-height: 1.5; }
.related-result-empty { margin: 16px 14px 0; padding: 17px; border-radius: 12px; background: #fff; color: #8a938d; font-size: 12px; line-height: 1.5; }
.result-turn--current { scroll-margin-top: 120px; }
.result-video-card { position: relative; }
.result-video-cover { width: 100%; aspect-ratio: 4/5; overflow: hidden; }
.result-video-cover img, .result-video-stage-image { width: 100%; height: 100%; object-fit: cover; }
.result-video-play { position: absolute; top: 10px; right: 10px; padding: 4px 7px; border-radius: 10px; background: #0009; color: white; font-size: 11px; }
.results-page .result-grid { padding-bottom: 85px; }
.result-turn--current > .result-grid { padding-bottom: 0; }
.result-turn--past > .result-grid { padding-bottom: 14px; }
.super-composer--results .super-input-trigger, .super-composer--video .super-input-trigger { max-width: 100%; }
@media (min-width: 700px) { .result-query-float { top: 68px; } }

/* Illustrated route asset shared by result cards, answer details and the large map. */
.route-map-stage.route-map-stage--illustrated,
.ai-preview-route .route-map-stage--illustrated { height: auto; aspect-ratio: 3 / 4; background: #eaf5e7; }
.route-map-illustration { display: block; width: 100%; height: 100%; object-fit: contain; }
.route-map-stage--illustrated .route-map-hotspot { display: block; width: 44px; height: 44px; min-height: 44px; background: transparent; border-radius: 50%; }
.route-map-hotspot:focus-visible { outline: 3px solid #fff; box-shadow: 0 0 0 5px #287d59; }
.route-map-modal { overflow-y: auto; }
.route-map-modal .route-map-stage--illustrated { flex: none; min-height: 0; }
