/* Place and business search (js/placesearch.js, 18 Oct 2026) */
.ps-field { position: relative; flex: 1; min-width: 0; display: flex; }
.ps-field .search-input { width: 100%; padding-right: 44px; }
.ps-field .ps-spin { position: absolute; right: 12px; top: 50%; margin-top: -11px; pointer-events: none; opacity: 0; transform: scale(.6); transition: opacity .18s, transform .18s; }
.ps-field.busy .ps-spin { opacity: 1; transform: none; }
.ps-go { flex: none; min-height: 50px; padding: 0 16px; border-radius: 14px; background: var(--accent); color: var(--on-accent); font-weight: 700; font-size: var(--fs-body); box-shadow: var(--shadow); display: inline-flex; align-items: center; gap: 6px; transition: opacity .18s, transform .12s; }
.ps-go:active { transform: scale(.97); }
.ps-go:disabled { opacity: .55; cursor: default; }
.ps-go[aria-busy="true"] { opacity: .7; }
@media (max-width: 420px) { .ps-go { padding: 0 12px; } .overlay-top:has(.ps-go) { gap: 6px; } }

.ps-chips { display: flex; gap: 8px; overflow-x: auto; padding: 2px 4px 10px; margin: 0 -4px; scrollbar-width: none; -webkit-overflow-scrolling: touch; scroll-snap-type: x proximity; }
.ps-chips::-webkit-scrollbar { display: none; }
.ps-chip { flex: none; display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 14px 0 11px; border-radius: 999px; background: var(--surface); box-shadow: var(--shadow); font-weight: 600; font-size: var(--fs-sub); color: var(--text); scroll-snap-align: start; transition: background .15s, color .15s, transform .12s; }
.ps-chip .i { color: var(--accent); }
.ps-chip:active { transform: scale(.96); }
.ps-chip.on { background: var(--accent); color: var(--on-accent); }
.ps-chip.on .i { color: currentColor; }

.ps-group { display: flex; align-items: center; gap: 8px; }
.ps-mini .spinner { width: 14px; height: 14px; }
.ps-list.ps-fresh > .ps-row { animation: appear var(--motion-duration, 260ms) var(--motion-easing, ease-out) both; animation-delay: calc(var(--i, 0) * 40ms); }
.ps-list.ps-stale { opacity: .55; transition: opacity .2s; }
.ps-row .item { align-items: flex-start; }
.ps-row .item > .ico { margin-top: 2px; }
.ps-ico { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: var(--accent-soft); color: var(--accent); flex: none; }
.ps-ico .i { width: 19px; height: 19px; }
.ps-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; margin-top: 3px; font-size: var(--fs-foot); color: var(--muted); }
.ps-open { font-weight: 600; display: inline-flex; align-items: center; gap: 4px; font-size: var(--fs-foot); }
.ps-open.ok { color: var(--ok); }
.ps-open.shut { color: var(--bad); }
.ps-open .i { width: 14px; height: 14px; }
.ps-trip { display: block; min-height: 24px; margin-top: 5px; }
.ps-trip-in { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 5px; font-size: var(--fs-sub); color: var(--text); line-height: 1.3; }
.ps-trip-in.muted { color: var(--muted); }
.ps-trip-in .i { width: 16px; height: 16px; color: var(--accent); }
.ps-trip-in .badge { transform: scale(.92); transform-origin: left center; }
.ps-trip-in .spinner { width: 16px; height: 16px; }
.ps-ch { font-size: var(--fs-foot); font-weight: 700; color: var(--muted); }
.ps-from { font-size: var(--fs-foot); color: var(--muted); padding: 1px 7px; border-radius: 999px; background: var(--surface-2); }
.ps-in { animation: appear 240ms var(--motion-easing, ease-out) both; }
.ps-skel, .ps-skel-ico { display: inline-block; height: 14px; width: 62%; border-radius: 7px; background: linear-gradient(90deg, var(--surface-2) 25%, color-mix(in srgb, var(--surface-2) 55%, var(--surface)) 50%, var(--surface-2) 75%); background-size: 200% 100%; animation: ps-shimmer 1.2s linear infinite; vertical-align: middle; }
.ps-skel-row .grow { display: flex; flex-direction: column; gap: 8px; }
.ps-skel-row { min-height: 72px; }
.ps-skel.w60 { width: 60%; } .ps-skel.w40 { width: 40%; height: 12px; }
.ps-skel-ico { width: 34px; height: 34px; border-radius: 10px; }
@keyframes ps-shimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }
.ps-warn { display: flex; gap: 6px; align-items: flex-start; margin-top: 6px; padding: 7px 9px; border-radius: 10px; font-size: var(--fs-foot); line-height: 1.35; }
.ps-warn[hidden] { display: none; }
.ps-warn .i { width: 15px; height: 15px; flex: none; margin-top: 1px; }
.ps-warn.warn { background: var(--warn-soft); color: var(--warn); }
.ps-warn.bad { background: var(--bad-soft); color: var(--bad); }
.ps-alt { display: inline; color: var(--text); }
.ps-alt .i { width: 14px; height: 14px; vertical-align: -2px; margin: 0 2px; color: var(--accent); }
.ps-note { display: flex; align-items: center; gap: 8px; padding: 12px 14px; border-radius: var(--r); background: var(--surface); box-shadow: var(--shadow); font-size: var(--fs-sub); }
.ps-note .link { margin-left: auto; padding: 0; }
.ps-attr { margin: 6px 6px 0; font-size: 11px; color: var(--muted); text-align: right; }
.ps-emergency { margin: 6px 4px 10px; padding: 8px 11px; border-radius: 10px; background: var(--bad-soft); color: var(--bad); font-size: var(--fs-sub); font-weight: 600; }
.ps-emergency a { color: inherit; font-weight: 800; text-decoration: underline; text-underline-offset: 2px; }
.ps-q b { font-weight: 600; }

/* the place sheet */
.ps-sheet { padding-bottom: calc(var(--safe-bottom, 0px) + 24px); max-width: 640px; margin: 0 auto; width: 100%; box-sizing: border-box; }
.ps-hero { display: flex; gap: 14px; align-items: flex-start; padding: 6px 4px 14px; animation: appear 260ms var(--motion-easing, ease-out) both; }
.ps-hero .grow { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.ps-hero small { color: var(--muted); font-size: var(--fs-sub); line-height: 1.35; }
.ps-name { font-size: 22px; font-weight: 800; letter-spacing: -.01em; line-height: 1.2; overflow-wrap: anywhere; }
.ps-hero-ico { flex: none; display: grid; place-items: center; width: 54px; height: 54px; border-radius: 16px; background: var(--accent-soft); color: var(--accent); }
.ps-hero .ps-open { margin-top: 4px; font-size: var(--fs-sub); }
.ps-card { background: var(--surface); border-radius: var(--r); box-shadow: var(--shadow); padding: 14px 16px; min-height: 52px; display: flex; align-items: center; animation: appear 300ms var(--motion-easing, ease-out) both; }
.ps-trip-card .ps-trip-in { font-size: var(--fs-body); gap: 7px; }
.ps-trip-card .ps-trip-in .i { width: 20px; height: 20px; }
.ps-sheet > .ps-warn { margin-top: 10px; padding: 11px 13px; font-size: var(--fs-sub); flex-wrap: wrap; }
.ps-alt-btn { margin-left: auto; min-height: 38px; font-size: var(--fs-sub); }
.ps-actions { margin-top: 14px; display: flex; flex-direction: column; gap: 8px; }
.ps-row2 { display: flex; gap: 8px; }
.ps-row2 .btn { flex: 1; min-width: 0; display: inline-flex; align-items: center; justify-content: center; gap: 6px; white-space: nowrap; }
.ps-facts { margin-top: 14px; }
.ps-facts a.item { color: inherit; text-decoration: none; }
.ps-facts .item .i { color: var(--accent); }
.ps-hours .grow { display: flex; flex-direction: column; gap: 2px; }
.ps-hours small { -webkit-line-clamp: unset !important; display: block !important; }
.ps-confirm { margin-top: 12px; padding: 13px 14px; border-radius: var(--r); display: flex; flex-direction: column; gap: 10px; }
.ps-confirm.warn { background: var(--warn-soft); color: var(--warn); }
.ps-confirm.bad { background: var(--bad-soft); color: var(--bad); }
.ps-confirm-t { display: flex; gap: 8px; align-items: flex-start; }
.ps-confirm-t > span { display: flex; flex-direction: column; gap: 3px; }
.ps-confirm-t small { color: var(--text); font-size: var(--fs-sub); }
.ps-confirm .ps-row2 { flex-wrap: wrap; }
.ps-dir-busy .spinner { width: 18px; height: 18px; }
@media (prefers-reduced-motion: reduce) { .ps-list.ps-fresh > .ps-row, .ps-in, .ps-hero, .ps-card { animation: none; } .ps-skel, .ps-skel-ico { animation: none; } }
/* .item b is a clamped block in app.css: inside a trip line, a warning or an alternative it stays inline */
.item .ps-trip-in b, .item .ps-alt b, .item .ps-warn b, .ps-card .ps-trip-in b, .ps-sheet .ps-warn b, .ps-confirm .ps-alt b { display: inline; -webkit-line-clamp: unset; font-size: inherit; font-weight: 700; overflow: visible; }
.item .ps-warn > span, .item .ps-alt { white-space: normal; }
.ps-sheet > .ps-warn > span { flex: 1; min-width: 0; }
.ps-sheet > .ps-warn > .ps-alt-btn { flex-basis: 100%; margin-left: 21px; max-width: calc(100% - 21px); }
.ps-row2 .btn { padding: 0 10px; font-size: var(--fs-sub); }
.ps-row2 .btn .i { width: 16px; height: 16px; }
.ps-confirm .ps-row2 .btn.primary { flex-basis: 100%; }
.ps-row2 .btn > span, .ps-row2 .btn { overflow: hidden; text-overflow: ellipsis; }
.item .ps-trip .ps-trip-in { display: block; line-height: 1.6; }
.item .ps-trip .ps-trip-in > * { vertical-align: middle; }
.item .ps-trip .ps-trip-in > .i { margin-right: 4px; }
.item .ps-trip .ps-trip-in > .badge { margin-right: 2px; }
.item .ps-trip .ps-from { margin-left: 4px; white-space: nowrap; }
.ps-trip-in b { white-space: nowrap; }

/* ---- (u214) Directions / search results: filled icon tiles, ink names, readable meta, the distance, small side chips ---- */
.ps-res { align-items: center; gap: 12px; }
.ps-res .grow b { color: var(--text); font-weight: 650; }
.ps-res .grow small { color: var(--muted); opacity: 1; }
.ps-tile { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; flex: none; background: var(--accent); color: var(--on-accent, #fff); }
.ps-tile .i { width: 22px; height: 22px; }
.ps-tile.t-bus { background: var(--accent); color: var(--on-accent, #fff); }
.ps-tile.t-station, .ps-tile.t-train { background: #34406b; color: #fff; }
.ps-tile.t-tram { background: #2b6f4f; color: #fff; }
.ps-tile.t-ferry { background: #0e6f8a; color: #fff; }
.ps-tile.t-area { background: #2d7a5b; color: #fff; }
.ps-tile.t-place { background: #5b4a9c; color: #fff; }
.ps-tile.t-saved { background: #a5456f; color: #fff; }
.ps-d { flex: none; align-self: center; margin-left: auto; padding-left: 8px; font-size: var(--fs-sub, 14px); font-weight: 650; color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.ps-sides { display: flex; flex-wrap: nowrap; align-items: center; gap: 6px; padding: 0 12px 10px 64px; margin-top: -4px; overflow-x: auto; scrollbar-width: none; }
.ps-sides::-webkit-scrollbar { display: none; }
.ps-side { flex: none; position: relative; height: 28px; padding: 0 11px; border: 1px solid var(--line); border-radius: 999px; background: var(--rv-ink, var(--surface-2)); color: var(--text); font-size: 13px; font-weight: 600; line-height: 1; white-space: nowrap; }
.ps-side::after { content: ""; position: absolute; inset: -8px -2px; }   /* a 44 px hit area on a 28 px chip */
.ps-side:active { background: var(--accent-soft); }
/* the Directions boxes: the typed text sits centred and whole in its line */
.dir-f input { box-sizing: border-box; height: 36px; padding: 0 2px; line-height: normal; font-size: var(--fs-row, 17px); text-overflow: ellipsis; overflow: visible; -webkit-appearance: none; appearance: none; outline: none; }
/* (ios10) the global input focus ring (polish.css) was drawn tight round the 32 px input, so the typed text looked clipped at the bottom: the field itself shows focus now */
.dir-f input:focus-visible { box-shadow: none; border-radius: 0; }
.dir-f:focus-within { box-shadow: var(--shadow), 0 0 0 3px color-mix(in srgb, var(--accent) 45%, transparent); }

/* HERE's logo under results that come from HERE (brand guidelines): official XS artwork, unmodified, at its own 32 px (never smaller), light or dark file by the app's theme, full opacity, beside the quiet credit text */
.ps-attr { display: flex; align-items: center; justify-content: flex-end; gap: 6px; }
.ps-attr::after { content: ""; flex: none; width: 32px; height: 32px; margin: 6px; background: url(../img/here/HERE_Logo_color_XS_32px_onLight.svg) center / 32px 32px no-repeat; }
:root[data-theme="dark"] .ps-attr::after { background-image: url(../img/here/HERE_Logo_color_XS_32px_onDark.svg); }
/* (update 236) the HERE credit and logo at the top of the search page and of its results */
.ps-attr-top { justify-content: flex-start; margin: 4px 4px 10px; font-size: 12px; color: var(--muted); flex-direction: row-reverse; justify-content: flex-end; }
.ps-empty-hint { margin: 14px 0 0; }
.ps-empty-hint > span b { display: block; }

/* About: "Maps and places by HERE" with the official logo (32 px XS, on-light / on-dark file by theme) */
.about-here { display: flex; align-items: center; gap: 14px; padding: 12px 14px; }
.about-here img { width: 32px; height: 32px; flex: none; margin: 12px; }
.about-here .ah-dark { display: none; }
:root[data-theme="dark"] .about-here .ah-dark { display: block; }
:root[data-theme="dark"] .about-here .ah-light { display: none; }
.about-here b { display: block; }
.about-here small { color: var(--muted); }
