/* ROOVI area styles: living (the Living module: category chips, map, ROOVI picks). Owned by the living
   area owner. Uses the tokens and components from css/app.css. Every selector is scoped under a class
   prefixed "living-" so areas never collide. Mobile first (390px), no horizontal scroll. */

.living-stack { display: flex; flex-direction: column; gap: var(--space-4); min-width: 0; }
.living-empty { padding: var(--space-5) var(--space-4); }

/* ----- place field ----- */
.living-place { display: grid; gap: var(--space-3); min-width: 0; }
.living-place .field { margin: 0; }
/* On phones the helper under the town field is hidden: the field is prefilled and the map moves up the page.
   From 640px the helper shows. */
@media (max-width: 639px) {
  .living-place .helper { display: none; }
}

/* ----- category chips: a wrapping row of pill links, 44px tall ----- */
.living-chips { min-width: 0; }
.living-chip-list { display: flex; flex-wrap: wrap; gap: var(--space-2); margin: 0; padding: 0; list-style: none; }
.living-chip-item { min-width: 0; }
.living-chip {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 var(--space-4);
  border: 1px solid var(--border-strong); border-radius: var(--radius-pill);
  background: var(--surface); color: var(--text);
  font-size: 15px; font-weight: 600; text-decoration: none; overflow-wrap: anywhere;
}
.living-chip:hover { border-color: var(--text-secondary); }
.living-chip.is-active,
.living-chip[aria-current="page"] { background: var(--brand); border-color: var(--brand); color: var(--brand-text); }

/* ----- result: the map, or the link card, then the open buttons and the source note ----- */
.living-result { min-width: 0; }
.living-result:focus { outline: none; }
.living-map {
  display: block; width: 100%; min-height: 320px; height: 52vh; max-height: 560px;
  border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface-2);
}
.living-open { display: grid; gap: var(--space-2); margin-top: var(--space-3); }


/* ----- ROOVI picks ----- */
.living-picks { min-width: 0; }
.living-pick-list .list-item-sub { white-space: normal; }

/* ----- line to Ask ROOVI ----- */
.living-ask { margin: 0; }

@media (min-width: 640px) {
  .living-map { min-height: 420px; }
  .living-open { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
