/* Local Search (Restaurant / Business) — Home Search shell + POI cards */
:root {
  --ls-ink: #111827;
  --ls-muted: #6b7280;
  --ls-line: #e5e7eb;
  --ls-blue: #52789c;
  --ls-blue-dark: #3f5f7c;
  --ls-bg: #f3f4f6;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body.ls-app-body {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--ls-ink);
  background: #fff;
  min-height: 100vh;
}
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); border: 0;
}

.ls-topnav {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; padding: 10px 20px; background: var(--ls-blue); color: #fff;
  position: sticky; top: 0; z-index: 50;
}
.ls-topnav__logo img { display: block; max-height: 48px; width: auto; }
.ls-topnav__links { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; }
.ls-topnav__links a {
  color: #fff; text-decoration: none; font-size: 13px; font-weight: 600;
  letter-spacing: .04em; text-transform: uppercase;
}
.ls-topnav__links a:hover { opacity: .85; }

.ls-page { display: flex; flex-direction: column; min-height: calc(100vh - 68px); }
.ls-toolbar {
  border-bottom: 1px solid var(--ls-line); background: #fff;
  padding: 14px 20px; position: sticky; top: 68px; z-index: 40;
}
.ls-toolbar__inner {
  display: flex; flex-wrap: wrap; gap: 10px; align-items: center;
  max-width: 1600px; margin: 0 auto;
}
.ls-title-chip {
  font-size: 14px; font-weight: 700; color: var(--ls-blue);
  padding: 8px 12px; background: #eef3f7; border-radius: 999px;
  white-space: nowrap;
}
.ls-search {
  flex: 1 1 220px; display: flex; align-items: center; gap: 8px;
  background: var(--ls-bg); border-radius: 10px; padding: 0 12px; height: 44px;
  color: var(--ls-muted);
}
.ls-search input {
  border: 0; background: transparent; width: 100%; height: 100%;
  font: inherit; font-size: 15px; font-weight: 500; color: var(--ls-ink); outline: none;
}
.ls-chip {
  display: flex; align-items: center; height: 44px;
  background: var(--ls-bg); border-radius: 10px; padding: 0 10px;
}
.ls-chip--city { flex: 1 1 200px; min-width: 160px; width: 100%; }
.ls-chip select, .ls-chip input {
  border: 0; background: transparent; font: inherit; font-size: 14px; font-weight: 600;
  color: var(--ls-ink); outline: none; width: 100%; max-width: none;
}
.ls-city-wrap { position: relative; flex: 1 1 220px; min-width: 180px; }
.ls-city-suggest {
  list-style: none; margin: 4px 0 0; padding: 6px 0;
  position: absolute; left: 0; right: 0; top: 100%; z-index: 60;
  background: #fff; border: 1px solid var(--ls-line); border-radius: 10px;
  box-shadow: 0 10px 28px rgba(17, 24, 39, 0.12); max-height: 260px; overflow: auto;
}
.ls-city-suggest__item {
  padding: 10px 14px; font-size: 14px; font-weight: 600; cursor: pointer; color: var(--ls-ink);
}
.ls-city-suggest__item:hover, .ls-city-suggest__item:focus {
  background: #eef3f7; color: var(--ls-blue);
}
.ls-loc-hint {
  margin: 8px 0 0; padding: 0 20px; font-size: 12px; color: var(--ls-muted);
  max-width: 1600px; width: 100%; box-sizing: border-box;
}
.ls-perm {
  max-width: 1600px; width: 100%; box-sizing: border-box;
  margin: 10px auto 0; padding: 0 20px 4px;
}
.ls-perm__body {
  background: #fff8eb;
  border: 1px solid #f0d9a8;
  border-radius: 12px;
  padding: 14px 16px;
}
.ls-perm__title {
  display: block;
  font-size: 15px;
  color: #7a4b00;
  margin-bottom: 4px;
}
.ls-perm__text {
  margin: 0 0 8px;
  font-size: 13px;
  color: #5c4630;
  line-height: 1.4;
}
.ls-perm__steps {
  margin: 0 0 12px;
  padding-left: 18px;
  font-size: 13px;
  color: #5c4630;
  line-height: 1.45;
}
.ls-perm__steps li { margin: 2px 0; }
.ls-perm__actions {
  display: flex; flex-wrap: wrap; gap: 8px; align-items: center;
}
.ls-perm__status {
  margin: 10px 0 0;
  font-size: 12px;
  font-weight: 600;
  color: var(--ls-blue);
  min-height: 1.2em;
}
.ls-btn {
  height: 44px; padding: 0 18px; border: 0; border-radius: 10px;
  background: var(--ls-blue); color: #fff; font: inherit; font-weight: 700; cursor: pointer;
}
.ls-btn:hover { background: var(--ls-blue-dark); color: #fff; }
.ls-btn.ls-btn--ghost {
  background: #fff; color: var(--ls-blue); border: 1px solid #b8c9d8;
}
.ls-btn.ls-btn--ghost:hover,
.ls-btn.ls-btn--ghost:focus-visible {
  background: #eef3f7;
  color: var(--ls-blue-dark);
  border-color: var(--ls-blue);
}
.ls-btn.ls-btn--ghost.is-busy {
  background: #eef3f7;
  color: var(--ls-blue);
  cursor: wait;
}
.ls-btn:disabled { opacity: .7; cursor: wait; }
/* Google Places pac container above toolbar */
.pac-container { z-index: 10000 !important; }
.ls-source {
  margin: 0; padding: 8px 20px 14px; font-size: 12px; color: var(--ls-muted);
  max-width: 1600px; width: 100%; box-sizing: border-box; align-self: center;
}

.ls-meta {
  display: flex; justify-content: space-between; align-items: center;
  gap: 12px; padding: 10px 20px; border-bottom: 1px solid var(--ls-line);
  max-width: 1600px; width: 100%; margin: 0 auto; box-sizing: border-box;
}
.ls-meta__count { font-size: 14px; color: var(--ls-muted); font-weight: 600; }
.ls-toggle { display: flex; gap: 4px; background: var(--ls-bg); border-radius: 10px; padding: 4px; }
.ls-toggle button {
  border: 0; background: transparent; padding: 8px 14px; border-radius: 8px;
  font: inherit; font-size: 13px; font-weight: 700; color: var(--ls-muted); cursor: pointer;
}
.ls-toggle button.is-active { background: #fff; color: var(--ls-ink); box-shadow: 0 1px 3px rgba(0,0,0,.08); }

.ls-body {
  flex: 1; display: grid; grid-template-columns: minmax(340px, 42%) 1fr;
  min-height: 0; max-width: 1600px; width: 100%; margin: 0 auto;
}
.ls-body.is-list-only { grid-template-columns: 1fr; }
.ls-body.is-list-only .ls-map { display: none; }
.ls-body.is-map-only { grid-template-columns: 1fr; }
.ls-body.is-map-only .ls-list { display: none; }

.ls-list {
  overflow: auto; border-right: 1px solid var(--ls-line);
  background: #fff; min-height: 50vh; max-height: calc(100vh - 180px);
}
.ls-list__inner { padding: 12px; display: flex; flex-direction: column; gap: 10px; }
.ls-card {
  display: grid; grid-template-columns: 56px 1fr auto; gap: 12px;
  align-items: center; padding: 12px; border: 1px solid var(--ls-line);
  border-radius: 12px; background: #fff; cursor: pointer; text-align: left;
  transition: border-color .15s, box-shadow .15s;
}
.ls-card:hover, .ls-card.is-active {
  border-color: #b8c9d8; box-shadow: 0 6px 18px rgba(82,120,156,.12);
}
.ls-card__badge {
  width: 56px; height: 56px; border-radius: 12px;
  background: linear-gradient(145deg, #52789c, #7aa3c4);
  color: #fff; display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 18px; letter-spacing: .02em;
}
.ls-card__body { min-width: 0; }
.ls-card__name {
  margin: 0 0 4px; font-size: 16px; font-weight: 700; color: var(--ls-ink);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.ls-card__meta { margin: 0; font-size: 13px; color: var(--ls-muted); line-height: 1.35; }
.ls-card__dist {
  font-size: 12px; font-weight: 700; color: var(--ls-blue);
  white-space: nowrap; padding: 6px 8px; background: #eef3f7; border-radius: 8px;
}
.ls-card__actions { grid-column: 2 / -1; display: flex; gap: 10px; flex-wrap: wrap; margin-top: 2px; }
.ls-card__actions a {
  font-size: 12px; font-weight: 700; color: var(--ls-blue); text-decoration: none;
}
.ls-card__actions a:hover { text-decoration: underline; }

.ls-empty, .ls-loading {
  padding: 40px 20px; text-align: center; color: var(--ls-muted); font-size: 15px;
}
.ls-map { position: relative; min-height: 50vh; background: #dbe3ea; }
#ls-map { position: absolute; inset: 0; width: 100%; height: 100%; }

.ls-popup h3 { margin: 0 0 4px; font-size: 15px; }
.ls-popup p { margin: 0 0 6px; font-size: 12px; color: #555; }
.ls-popup a { font-size: 12px; font-weight: 700; color: var(--ls-blue); }

@media (max-width: 960px) {
  .ls-topnav__links { display: none; }
  .ls-body { grid-template-columns: 1fr; }
  .ls-map { min-height: 42vh; order: -1; }
  .ls-list { max-height: none; border-right: 0; }
  .ls-body.is-list-only .ls-map { display: none; }
  .ls-body.is-map-only .ls-list { display: none; }
}
