/* Only the shared workspace. Standalone Ask and Categories keep their own styles. */
.explore-category-content { display: contents; }
.explore-category-content[hidden], .explore-ask-host[hidden], #exploreAskMap[hidden] { display: none !important; }
.explore-modes { position: relative; isolation: isolate; display: flex; flex: 0 0 auto; gap: 4px; padding: 4px; margin-bottom: 12px; border: 1px solid #cbdde1; border-radius: 14px; background: #edf5f7e8; }
.explore-modes::before { content: ''; position: absolute; z-index: -1; inset: 4px auto 4px 4px; width: calc((100% - 12px) / 2); border-radius: 10px; background: #256d71; box-shadow: 0 2px 5px #234d5422; transform: translateX(0); transition: transform 240ms cubic-bezier(.22,.68,0,1); pointer-events: none; }
.explore-modes:has([data-explore-mode=ask][aria-pressed=true])::before { transform: translateX(calc(100% + 4px)); }
.explore-modes:dir(rtl)::before { left: auto; right: 4px; }
.explore-modes:dir(rtl):has([data-explore-mode=ask][aria-pressed=true])::before { transform: translateX(calc(-100% - 4px)); }
.explore-modes button { display: flex; align-items: center; justify-content: center; gap: 6px; flex: 1; min-width: 0; min-height: 40px; padding: 8px 14px; border: 0; border-radius: 10px; background: transparent; color: #45616c; font: inherit; font-size: 13px; font-weight: 650; cursor: pointer; transition: color 180ms ease; }
.explore-ask-orb { flex: 0 0 22px; width: 22px; height: 22px; }
.explore-modes button[aria-pressed=true] { color: #fff; }
@media(prefers-reduced-motion:reduce) { .explore-modes::before, .explore-modes button { transition: none; } }
.explore-modes button:focus-visible { outline: 3px solid #4aa9cf; outline-offset: 2px; }
[data-explore-mode=ask] .explore-modes { margin-bottom: 4px; }
.explore-modes-floating { display: none; position: absolute; top: 80px; left: 20px; z-index: 6; box-shadow: 0 8px 25px #203b4a20; }
[data-places-collapsed=true] .explore-modes-floating { display: flex; }
[data-explore-mode=ask] { --explore-panel-width: 460px; }
[data-explore-mode=ask] .explore-category-control, [data-explore-mode=ask] .explore-map-floating-card, [data-explore-mode=ask] #exploreSearchArea { display: none !important; }
.explore-ask-host { flex: 1; min-height: 0; min-width: 0; font: 14px/1.5 -apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif; color: #294957; background: transparent; }
.explore-ask-host .preview.production { padding: 0; background: transparent; min-height: 0; height: 100%; }
.explore-ask-host .production .ask-dialog { position: static; display: flex; flex-direction: column; width: 100%; height: 100%; max-height: 100%; min-height: 0; margin: 0; padding: 0; border: 0; background: transparent; overflow: hidden; }
.explore-ask-host .header-actions { gap: 2px; }
.explore-ask-host .context-bar { display: grid; grid-template-columns: minmax(0,1fr) auto auto; align-items: center; flex: 0 0 auto; padding: 8px 6px; margin-bottom: 4px; gap: 4px 5px; background: #ffffffb8; border: 1px solid #dbe9e8; border-radius: 14px; font-size: 11px; }
.explore-ask-host .context-bar .pin { min-width: 0; gap: 5px; overflow-wrap: anywhere; }
.explore-ask-host .context-bar .context-location-icon { flex: 0 0 26px; display: grid; place-items: center; height: 26px; border-radius: 50%; background: #e2f2ef; color: #217d79; font-size: 18px; }
.explore-ask-host .context-place-label { display: grid; min-width: 0; line-height: 1.3; }
.explore-ask-host .context-place-name { min-width: 0; color: #254851; font-size: 12px; font-weight: 650; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.explore-ask-host .context-place-original { color: #68838b; font-size: 10px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.explore-ask-host .context-bar .quiet { min-height: 32px; padding: 5px 7px; white-space: nowrap; font-size: 11px; border-color: transparent; background: transparent; }
.explore-ask-host .context-bar .context-change-area { color: #226e70; background: #edf7f5; border: 1px solid #d2e7e3; border-radius: 9px; }
.explore-ask-host .context-bar button:hover { background: #e0f0ee; }
.explore-ask-host .context-bar button:focus-visible { outline: 2px solid #247e80; outline-offset: 2px; }
.explore-ask-host .context-bar .icon-button { width: 30px; height: 32px; min-height: 32px; }
.explore-ask-host .context-bar .revisit-status { grid-column: 1 / -1; width: 100%; margin: 0; flex-wrap: wrap; justify-content: space-between; gap: 4px; }
.explore-ask-host .context-bar .revisit-status>span { display: inline; color: #617f8e; }
.explore-ask-host .context-bar .revisit-status .quiet { color: #126b9b; }
.explore-ask-host .ask-workspace { flex: 1; display: flex; min-height: 0; overflow: hidden; }
.explore-ask-host .ask-workspace .chat-pane { display: flex !important; flex: 1; min-width: 0; min-height: 0; border: 0; background: transparent; }
.explore-ask-host .conversation { flex: 1; min-height: 0; padding: 14px 2px 20px; overscroll-behavior: contain; scrollbar-width: thin; }
.explore-ask-host .exchange { margin-bottom: 24px; }
.explore-ask-host .assistant-row { padding: 0; gap: 0; }
.explore-ask-host .processing-slot:empty { display: none; }
.explore-ask-host .assistant-content { min-width: 0; width: 100%; }
.explore-ask-host .welcome { padding: 20px 8px; }
.explore-ask-host .welcome h1 { font-size: 25px; line-height: 1.25; }
.explore-ask-host .suggestions { display: grid; grid-template-columns: 1fr; gap: 8px; }
.explore-ask-host .suggestions button { min-height: 46px; }
/* The shared conversation scrolls as one vertical list; detail dialogs keep their layout. */
.explore-ask-host .answer.answer-list .place-grid { display: grid; grid-template-columns: minmax(0,1fr); gap: 10px; padding: 3px 2px; overflow: visible; scroll-snap-type: none; }
.explore-ask-host .answer-list .ask-explore-card { display: block; min-width: 0; padding: 16px; margin: 0; border: 1px solid #e6ebef; border-radius: 18px; background: #fff; box-shadow: 0 2px 8px #243c4806; cursor: pointer; animation: none; }
.explore-ask-host .answer-list .ask-explore-card:hover { border-color: #88b6b7; }
.explore-ask-host .answer-list .ask-explore-card.selected { border-color: #247c7d; box-shadow: inset 3px 0 #247c7d,0 4px 14px #247c7d16; }
.explore-ask-host .ask-explore-card .explore-merchant-name h3 { margin: 0; color: #213642; }
.explore-ask-host .ask-explore-card .place-select { color: inherit; text-align: start; }
.explore-ask-host .ask-explore-card .explore-merchant-thumb img { width: 100%; height: 100%; object-fit: contain; }
.explore-ask-host .ask-explore-card .place-media-empty { font-size: 9px; }
.explore-ask-host .ask-explore-card .ask-heart { width: 34px; height: 34px; padding: 0; }
.explore-ask-host .ask-result-number { padding: 1px 4px; border-radius: 5px; background: #edf4f5; font-size: 10px; color: #536d77; }
.explore-ask-host .selected .ask-result-number { background: #247c7d; color: white; }
.explore-ask-host .ask-opening { width: fit-content; padding: 3px 6px; border-radius: 6px; background: #f2f5f6; font-size: 10px; color: #53636b; }
.explore-ask-host .ask-opening.scheduled-open { color: #216449; background: #e8f6ee; }
.explore-ask-host .ask-explore-card .ask-promotion { margin-top: 12px; }
.explore-ask-host .ask-explore-card .place-about { margin-top: 8px; }
.explore-ask-host .ask-explore-card .place-select:focus-visible { outline: 2px solid #247c7d; outline-offset: 2px; border-radius: 3px; }
.explore-ask-host .composer-footer { flex: 0 0 auto; padding: 10px 0 0; background: transparent; }
.explore-ask-host .composer { box-shadow: 0 4px 15px #22495e0b; background: #fff; }
.explore-ask-host .composer textarea { font-size: 16px; min-height: 48px; max-height: 130px; }
.explore-ask-host .composer-note { font-size: 10px; margin: 7px 4px 0; }
.explore-ask-host .quiet, .explore-ask-host .icon-button { min-height: 36px; }
.explore-ask-host .place-dialog, .explore-ask-host .area-dialog { z-index: 100; }
.explore-ask-retry { margin: 20px 0; padding: 14px; border: 1px solid #b5d4df; border-radius: 12px; background: white; color: #285a70; }
#exploreAskMap { position: absolute; inset: 0; z-index: 4; pointer-events: none; background: transparent; }
#exploreAskMap .shared-map-panel { display: block !important; position: absolute; inset: 0; width: auto; height: auto; min-height: 0; background: transparent; border: 0; pointer-events: none; }
#exploreAskMap .map-label { top: 20px; left: auto; right: 70px; max-width: 250px; background: #f7fcf9eb; border-radius: 14px; padding: 10px 15px; }
#exploreAskMap .map-overview { top: 90px; left: auto; right: 70px; pointer-events: auto; }
#exploreAskMap .map-bottom { position: absolute; left: auto; right: 70px; bottom: 30px; width: min(350px,calc(100% - 40px)); max-height: calc(100% - 140px); overflow: auto; padding: 0; pointer-events: auto; }
#exploreAskMap .map-status { top: 130px; left: auto; right: 70px; max-width: 300px; }
#exploreAskMap .map-crosshair { pointer-events: none; }
#exploreAskMap .map-bottom>small { padding: 6px 10px; border-radius: 8px; background: #ffffffe6; }
.ask-marker-surface { background: transparent; }
.ask-marker-surface .result-marker-wrap.selected .result-marker { border-color: #fff; box-shadow: 0 0 0 4px #247c7d,0 0 0 9px #247c7d30,0 8px 20px #17364a38; }
@media(max-width:991px) {
    .explore-modes { margin: 0; }
    .explore-modes-floating, [data-places-collapsed=true] .explore-modes-floating { display: none; }
    [data-explore-mode=ask] .explore-map-sidebar { bottom: var(--ask-keyboard,0px); padding: 10px 14px max(12px,env(safe-area-inset-bottom)); }
    [data-explore-mode=ask] .explore-map-sidebar-header { display: none; }
    [data-explore-mode=ask] .explore-map-sidebar[data-sheet=full] { height: calc(100% - var(--explore-toolbar-bottom,100px) - 12px - var(--ask-keyboard,0px)); }
    [data-explore-mode=ask] .explore-map-sidebar[data-sheet=collapsed] .explore-ask-host { visibility: hidden; pointer-events: none; }
    #exploreAskMap .map-label { top: calc(var(--explore-toolbar-bottom,80px) + 12px); left: 16px; right: auto; max-width: calc(100% - 144px); padding: 7px 12px; }
    #exploreAskMap .map-overview { top: calc(var(--explore-toolbar-bottom,80px) + 12px); right: 16px; max-width: 104px; overflow-wrap: anywhere; }
    #exploreAskMap .map-bottom { left: 12px; right: 12px; bottom: 76px; width: auto; max-height: calc(100% - var(--explore-toolbar-bottom,80px) - 145px); }
    [data-explore-mode=ask]:has(.explore-map-sidebar:not([data-sheet=collapsed])) #exploreAskMap .map-bottom { display: none; }
    #exploreAskMap .map-status { top: calc(var(--explore-toolbar-bottom,80px) + 115px); right: 65px; }
    .explore-ask-host .context-bar { padding: 5px 0; font-size: 11px; }
    .explore-ask-host .conversation { padding-top: 10px; }
    .explore-ask-host .composer-note { display: none; }
    .explore-ask-host .composer-footer { padding-top: 6px; }
    .explore-ask-host .place-dialog { width: calc(100vw - 20px); max-height: 85dvh; }
}
@media(prefers-reduced-transparency:reduce) { .explore-modes, #exploreAskMap .map-label { background: #f4faf9; } }
/* Compact phone results without hiding merchant facts, filters or reply content. */
@media(max-width:575px) {
    .explore-ask-host .welcome { margin:12px auto 18px; padding:8px 4px; }
    .explore-ask-host .welcome h1 { margin:10px 0; font-size:24px; }
    .explore-ask-host .suggestions { margin-top:14px; gap:6px; }
    .explore-ask-host .exchange { padding-bottom:12px; margin-bottom:14px; }
    .explore-ask-host .user-row { margin-bottom:14px; }
    .explore-ask-host .user-message { padding:9px 14px; }
    .explore-ask-host .answer-heading { flex-wrap:nowrap; align-items:start; gap:8px; }
    .explore-ask-host .answer-heading h2 { margin-bottom:6px; font-size:18px; }
    .explore-ask-host .answer-heading .count { margin-bottom:6px; }
    .explore-ask-host .chips { gap:5px; margin-bottom:8px; }
    .explore-ask-host .reply { margin-bottom:10px; font-size:13px; }
    .explore-ask-host .answer-list .ask-explore-card { padding:12px; }
    .explore-ask-host .actions .search-radius-note { display:none; }
}
/* Dialogs use the top layer even when the mobile conversation is collapsed. */
.explore-ask-host dialog[open] { visibility: visible; pointer-events: auto; }

/* Match Categories' location hierarchy and single area-picker affordance. */
.explore-ask-host .context-bar { grid-template-columns: minmax(0,1fr) auto auto; padding: 6px 0; border: 0; border-bottom: 1px solid #dbe9e8; border-radius: 0; background: transparent; }
.explore-ask-host .context-bar .ask-current-location { display: grid; place-items: center; width: 32px; height: 32px; min-width: 32px; min-height: 32px; padding: 0; }
.explore-ask-host .ask-current-location i { font-size: 16px; line-height: 1; }
.explore-ask-host .ask-current-location[aria-busy="true"] { opacity: .55; cursor: progress; }
.explore-ask-host .ask-location-control { min-width: 0; }
.explore-ask-host .ask-near-label { color: #668491; font-size: 11px; }
.explore-ask-host .ask-location-picker { display: flex; align-items: flex-start; justify-content: flex-start; gap: 8px; width: 100%; padding: 5px 8px 3px 0; border: 0; background: transparent; text-align: start; }
.explore-ask-host .context-place-name { font-size: 14px; }
.explore-ask-host .ask-location-chevron { display: grid; place-items: center; flex: 0 0 20px; height: 20px; border-radius: 50%; background: #fae9ed; color: #d56980; }
.explore-ask-host .ask-location-chevron svg { width: 12px; height: 12px; }
.explore-ask-host .actions .search-radius-note { flex-basis: 100%; margin: 0 0 2px; font-size: 11px; color: #617f8e; }
.explore-ask-host .header-actions .quiet { display: inline-flex; align-items: center; gap: 5px; }
.explore-ask-host .new-chat-icon { display: grid; place-items: center; width: 24px; height: 24px; color: #237e82; background: #e0f2ef; border-radius: 7px; font-size: 18px; }

.preview-route-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 12px 0 8px; }
.preview-route-actions a { text-align: center; text-decoration: none; }
/* Share Categories' merchant surface; the Ask map owns its positioning. */
#exploreAskMap.iw-ask-surface { font-family: inherit; }
#exploreAskMap .map-bottom:has(.ask-place-preview) { width: min(370px,calc(100% - 40px)); }
@media (min-width: 992px) and (max-width: 1199px) {
    #exploreAskMap .map-bottom:has(.ask-place-preview) { width: 330px; }
}
@media (max-width: 991px) {
    #exploreAskMap .map-bottom:has(.ask-place-preview) { width: auto; max-width: 440px; margin-inline: auto; }
}
#exploreAskMap .ask-place-preview.explore-preview { position: relative; inset: auto; width: 100%; max-height: none; min-height: 0; margin: 0; padding: 0; flex: 0 0 auto; overflow: hidden; text-align: start; }
#exploreAskMap .ask-place-preview .explore-preview-close { display: grid; place-items: center; padding: 0; font-size: 22px; line-height: 1; }
#exploreAskMap .ask-place-preview .explore-map-popup { flex: 0 0 auto; }
#exploreAskMap .ask-preview-image { position: relative; display: grid; place-items: center; overflow: hidden; font-size: 9px; color: #739397; }
#exploreAskMap .ask-preview-image > span { padding: 0; border: 0; background: transparent; color: inherit; font-size: inherit; }
#exploreAskMap .ask-preview-image img { position: absolute; inset: 7px; width: calc(100% - 14px); height: calc(100% - 14px); padding: 0; object-fit: contain; border-radius: 0; background: #fff; }
#exploreAskMap .ask-preview-image:has(img) > span { visibility: hidden; }
#exploreAskMap .ask-place-preview .explore-popup-heart { width: 32px; min-width: 32px; height: 32px; padding: 6px; }
#exploreAskMap .ask-place-preview .explore-popup-heart svg { display: block; width: 18px; height: 18px; }
#exploreAskMap .ask-place-preview .explore-popup-actions > button,
#exploreAskMap .ask-place-preview .explore-popup-actions > a { font-family: inherit; font-size: 12px; font-weight: 600; line-height: 1.35; }
@media (max-width: 991px) {
    #exploreAskMap .ask-place-preview .explore-popup-actions > button,
    #exploreAskMap .ask-place-preview .explore-popup-actions > a { font-size: 13px; }
}
#exploreAskMap .ask-place-preview .explore-popup-actions { display: grid; align-items: stretch; }
/* Temporarily hide external directions in the Ask merchant preview. */
#exploreAskMap .ask-place-preview .explore-popup-actions .explore-directions { display: none; }
#exploreAskMap .ask-place-preview .ask-promotion { margin-top: 16px; border-color: #eee2cd; background: #fcf7ed; border-radius: 14px; }
#exploreAskMap .ask-route-preview { position: absolute; inset: auto 70px 30px auto; width: min(350px,calc(100% - 40px)); max-height: calc(100% - 120px); overflow: auto; pointer-events: auto; padding: 18px; border: 1px solid #dbe9ec; border-radius: 20px; background: #fff; box-shadow: 0 12px 32px #29495726; color: #294957; }
.ask-route-preview h3 { font-size: 16px; padding-right: 28px; }
.ask-route-preview button, .ask-route-preview select { padding: 8px 10px; border: 1px solid #d2e5e2; border-radius: 9px; background: #f3faf8; color: #286b70; }
.ask-route-preview .ask-route-close { position: absolute; right: 10px; top: 10px; border: 0; border-radius: 50%; font-size: 20px; }
.ask-route-preview .explore-route-mobile-title, .ask-route-preview .explore-route-options-toggle { display: none; }
.ask-route-preview .explore-route-controls { display: flex; gap: 8px; margin: 12px 0; flex-wrap: wrap; }
.ask-route-preview .explore-route-endpoint-key { display: grid; gap: 8px; font-size: 12px; margin-top: 12px; }
.ask-route-preview .explore-route-endpoint-key b { display: inline-grid; place-items: center; background: #247b7b; color: white; border-radius: 50%; width: 20px; height: 20px; }
.ask-route-preview .explore-route-status { font-size: 14px; font-weight: 600; }
@media(max-width:991px) { #exploreAskMap .ask-route-preview { right: 12px; bottom: calc(var(--explore-sheet-height, 80px) + 12px); max-height: 45vh; } }

.explore-ask-host .ask-location-control > .ask-near-label { display: block; }

.explore-ask-host .new-chat-icon svg { width: 16px; height: 16px; }

/* A consistent, light surface for the three location-row actions. */
.explore-ask-host .context-bar .header-actions { align-items: center; gap: 6px; }
.explore-ask-host .context-bar :is(.ask-current-location, .header-actions > button) {
    display: inline-flex; align-items: center; justify-content: center;
    height: 32px; min-height: 32px; border: 1px solid #e0e8ed; border-radius: 10px;
    background: #fff; color: #486573; line-height: 1;
    box-shadow: 0 2px 5px #2949570a, 0 3px 10px #2949570a;
    transition: border-color .16s ease, box-shadow .16s ease;
}
.explore-ask-host .context-bar .header-actions > .quiet { gap: 6px; padding: 0 9px; }
.explore-ask-host .context-bar .header-actions > .icon-button { width: 32px; min-width: 32px; padding: 0; }
.explore-ask-host .context-bar .header-actions > .icon-button svg { display: block; width: 16px; height: 16px; }
.explore-ask-host .context-bar .new-chat-icon { width: 16px; height: 16px; background: transparent; border-radius: 0; }
.explore-ask-host .context-bar :is(.ask-current-location, .header-actions > button):hover:not(:disabled) {
    background: #fff; border-color: #bbd3d9; box-shadow: 0 3px 10px #29495714;
}
@media (prefers-reduced-motion: reduce) {
    .explore-ask-host .context-bar :is(.ask-current-location, .header-actions > button) { transition: none; }
}
