/* modules/places/places.css — village / area field, suggestions and the 📍 button (v153) */
.pl-wrap { position: relative; display: block; }
.pl-wrap input { width: 100%; }
.pl-sug { position: absolute; z-index: 60; left: 0; right: 0; top: calc(100% + 4px); max-height: 260px; overflow-y: auto; padding: 4px;
  background: var(--surface, #fff); border: 1px solid var(--bd, #E1E7E3); border-radius: 12px; box-shadow: 0 12px 28px rgba(16,40,28,.16); }
.pl-item { display: flex; flex-direction: column; align-items: flex-start; gap: 1px; width: 100%; min-height: 44px; padding: 8px 10px; border: 0; border-radius: 9px;
  background: transparent; color: var(--tx, #1B2420); font: inherit; text-align: left; cursor: pointer; }
.pl-item:hover, .pl-item.on { background: var(--surface-2, #F1F4F2); }
.pl-item .pl-n { font-weight: 600; font-size: 15px; }
.pl-item small { color: var(--tx2, #6B7670); font-size: 12px; }
.pl-gps { display: inline-flex; align-items: center; justify-content: center; gap: 8px; width: 100%; min-height: 46px; margin: 4px 0 2px; padding: 0 14px;
  border: 1.5px dashed #12A150; border-radius: 12px; background: var(--surface-2, #F1FAF4); color: var(--brand-tx, #0B7A3B); font: inherit; font-weight: 700; cursor: pointer; }
.pl-gps:hover { background: var(--brand-lt, #E8F7EE); }
.pl-gps.busy { opacity: .7; cursor: progress; }
.pl-gps.busy span { animation: plPulse 1s ease-in-out infinite; }
.pl-gps-sm { width: auto; min-height: 36px; margin: 6px 0 0; padding: 0 12px; font-size: 13.5px; }
.pl-gps-note { display: block; min-height: 0; color: var(--brand-tx, #0B7A3B); font-size: 12.5px; line-height: 1.4; }
.pl-gps-note:empty { display: none; }
.pl-gps-note.bad { color: #b42318; }
html.dm-dark .pl-gps-note.bad { color: #f97066; }
.pl-label small { color: var(--tx2, #6B7670); font-weight: 400; }
@keyframes plPulse { 50% { transform: scale(1.25); } }
@media (prefers-reduced-motion: reduce) { .pl-gps.busy span { animation: none; } }
/* the home location sheet: same look as its selects */
.gm-sheet .pl-wrap input { width: 100%; min-height: 46px; border: 1px solid var(--line); border-radius: 10px; padding: 0 12px; background: var(--surface, #fff);
  color: var(--tx, #1B2420); font: inherit; font-weight: 400; font-size: 15px; }
.gm-sheet .pl-wrap input:focus { outline: none; border-color: #12A150; box-shadow: 0 0 0 3px rgba(18,161,80,.15); }
.gm-sheet .pl-label > small { display: inline; font-weight: 400; }
.pl-hint { display: block; padding: 10px 12px; color: var(--tx2, #6B7670); font-size: 13px; }
/* v157: inside the compact location sheet */
.ls-sheet .pl-gps { min-height: 42px; margin: 0; font-size: 14px; border-width: 1px; }
.ls-sheet .pl-label { gap: 4px; font-size: 13px; }
.ls-sheet .pl-label > small { font-size: 12px; }
.ls-sheet .pl-wrap input { min-height: 48px; }
.ls-sheet .pl-sug { position: static; margin-top: 6px; max-height: 200px; box-shadow: none; }
.ls-sheet .pl-gps-note { margin-top: -4px; }
/* v159: 🎤 inside the village / area box */
.pl-wrap.has-mic input { padding-right: 52px; }
.pl-mic { position: absolute; z-index: 2; right: 5px; top: 5px; width: 40px; height: 38px; border: 0; border-radius: 9px; background: transparent;
  color: var(--brand-tx, #0B7A3B); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
.ls-sheet .pl-mic { top: 5px; height: 38px; }
.pl-mic:hover { background: var(--surface-2, #F1F4F2); }
.pl-mic.on { background: #e5484d; color: #fff; animation: plMic 1.2s ease-in-out infinite; }
@keyframes plMic { 50% { box-shadow: 0 0 0 6px rgba(229,72,77,.18); } }
@media (prefers-reduced-motion: reduce) { .pl-mic.on { animation: none; } }
/* v161: typing in the delivery sheet — fold the four boxes into one line so the names fit above the keyboard */
.ls-chain { display: none; align-items: center; justify-content: space-between; gap: 8px; min-height: 36px; padding: 0 4px 0 12px; border-radius: 10px;
  background: var(--surface-2, #F1F4F2); font-size: 13.5px; font-weight: 600; color: var(--tx, #1B2420); }
.ls-chain span { min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.ls-chain button { flex: none; min-height: 30px; padding: 0 10px; border: 0; border-radius: 8px; background: transparent; color: var(--brand-tx, #0B7A3B); font: inherit; font-weight: 700; cursor: pointer; }
.ls-sheet.ls-typing .ls-chain { display: flex; }
.ls-sheet.ls-typing .ls-sub, .ls-sheet.ls-typing .pl-gps, .ls-sheet.ls-typing .pl-gps-note, .ls-sheet.ls-typing .ls-grid { display: none; }
.ls-sheet.ls-typing { gap: 8px; }
/* one line per name: more names in less room */
.ls-sheet .pl-item { flex-direction: row; align-items: center; justify-content: space-between; gap: 8px; min-height: 42px; padding: 6px 10px; }
.ls-sheet .pl-item .pl-n { min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.ls-sheet .pl-item small { flex: none; max-width: 48%; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; text-align: right; }
.ls-sheet .pl-sug { max-height: none; padding: 2px; }
