/* Place search (places.js): a text box with a list of suggested places and streets under it. Made for phones first: a 16px
   text box (no zoom on focus), rows at least 48px tall, and a list that keeps above the on-screen keyboard. */
.as { margin: 0 0 18px; }
.as-label { display: block; margin: 0 0 6px; font-size: .9rem; font-weight: 600; color: var(--ink-2); }
.as-field { position: relative; }
.as-input { box-sizing: border-box; width: 100%; min-height: 48px; padding: 0 44px 0 14px; border: 1px solid var(--rule-2); border-radius: var(--r-sm); background: var(--bg); color: var(--ink); font: 400 1rem var(--sans); }
.as-input:focus { outline: 2px solid var(--accent-strong); outline-offset: 2px; border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 25%, transparent); }
.as-input::placeholder { color: var(--ink-3); opacity: 1; }
/* Waiting for suggestions: a small ring at the end of the box. */
.as[aria-busy="true"] .as-field::after { content: ""; position: absolute; top: 15px; right: 15px; width: 16px; height: 16px; box-sizing: border-box; border: 2px solid var(--rule-2); border-top-color: var(--accent-ink); border-radius: 50%; animation: as-spin .7s linear infinite; }
@keyframes as-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .as[aria-busy="true"] .as-field::after { animation-duration: 2.4s; } }
.as-pop { position: absolute; left: 0; right: 0; top: calc(100% + 4px); z-index: 6; overflow: hidden; border: 1px solid var(--rule-2); border-radius: var(--r-sm); background: var(--surface); box-shadow: 0 10px 28px rgba(17, 19, 17, .14); }
.as-pop[hidden] { display: none; }
.as-list { margin: 0; padding: 0; list-style: none; max-height: 360px; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }
.as-opt { position: relative; display: flex; flex-direction: column; justify-content: center; min-height: 52px; padding: 9px 14px; border-bottom: 1px solid var(--rule); line-height: 1.3; cursor: pointer; overflow-wrap: anywhere; }
.as-opt b { font-size: 1rem; font-weight: 600; color: var(--ink); }
.as-sub { font-size: .9rem; color: var(--ink-3); }
.as-opt[aria-selected="true"] { background: color-mix(in srgb, var(--accent) 11%, var(--surface)); box-shadow: inset 3px 0 0 var(--accent); }
@media (hover: hover) { .as-opt:hover { background: color-mix(in srgb, var(--accent) 7%, var(--surface)); } }
.as-msg { margin: 0; padding: 14px; color: var(--ink-2); font-size: .95rem; }
/* OpenStreetMap's attribution (ODbL), under the suggestions it gives. */
.as-credit { margin: 0; padding: 8px 14px 9px; border-top: 1px solid var(--rule); text-align: right; font-size: .8rem; line-height: 1.2; color: var(--ink-3); }
.as-credit[hidden] { display: none; }
.as-credit a { color: inherit; }
/* "Nothing matches all of that": above the closest suggestions, quieter than they are. */
.as-msg + .as-list:not(:empty) { border-top: 1px solid var(--rule); }
.as-note { margin: 8px 0 0; font-size: .82rem; color: var(--ink-3); }
.as-note a { color: inherit; }
/* In the ward lookup, above "Use my location" and the coordinates. */
.tl-find > .as { padding-bottom: 18px; border-bottom: 1px solid var(--rule); }
