/* ── Local Section ─────────────────────────────────────────────────────────── */

#local-section {
  margin-top: 2rem;
  border-top: 2px solid var(--accent);
  padding-top: 1.5rem;
}

.ls-wrapper {
  max-width: 100%;
}

/* Activate banner (no location yet) */
.ls-activate-banner {
  display: flex;
  align-items: center;
  gap: .75rem;
  background: var(--bg-white);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: .75rem 1.1rem;
  font-family: Arial, sans-serif;
  font-size: .88rem;
  flex-wrap: wrap;
}
.ls-activate-icon { font-size: 1.1rem; }

/* Header row */
.ls-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
  flex-wrap: wrap;
  gap: .5rem;
}
.ls-title {
  font-family: Arial, sans-serif;
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--accent);
  display: flex;
  align-items: center;
  gap: .6rem;
  border-bottom: 2px solid var(--accent);
  padding-bottom: .3rem;
  width: 100%;
}
.ls-city-name {
  color: var(--ink);
  text-transform: none;
  font-size: .9rem;
  font-weight: 700;
  letter-spacing: 0;
}
.ls-change-city {
  font-family: Arial, sans-serif;
  font-size: .75rem;
  color: var(--ink-muted);
  border-bottom: 1px dotted var(--ink-muted);
  cursor: pointer;
  margin-left: auto;
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
}
.ls-change-city:hover { color: var(--accent); border-color: var(--accent); }

/* Body layout: weather | pages */
.ls-body {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 1.5rem 2rem;
  align-items: start;
}

/* ── Weather widget ───────────────────────────────────────────────────────── */
.ls-weather {
  background: var(--bg-white);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: 1rem;
}
.ls-weather-main {
  display: flex;
  align-items: center;
  gap: .75rem;
  margin-bottom: .75rem;
}
.ls-weather-icon { width: 56px; height: 56px; }
.ls-temp {
  font-size: 2.2rem;
  font-weight: 700;
  line-height: 1;
  color: var(--ink);
  font-family: Arial, sans-serif;
}
.ls-weather-desc {
  font-family: Arial, sans-serif;
  font-size: .82rem;
  color: var(--ink-light);
  text-transform: capitalize;
  margin-top: .15rem;
}
.ls-weather-extra {
  font-family: Arial, sans-serif;
  font-size: .72rem;
  color: var(--ink-muted);
  margin-top: .2rem;
}

/* 3-day forecast */
.ls-forecast {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: .5rem;
  border-top: 1px solid var(--rule);
  padding-top: .75rem;
}
.ls-forecast-day {
  text-align: center;
  font-family: Arial, sans-serif;
}
.ls-fc-name {
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .5px;
  color: var(--ink-muted);
  margin-bottom: .1rem;
}
.ls-fc-icon { width: 36px; height: 36px; }
.ls-fc-temps {
  font-size: .78rem;
  color: var(--ink-light);
}

/* ── FB Pages area ────────────────────────────────────────────────────────── */
.ls-pages-empty {
  font-family: Arial, sans-serif;
  font-size: .88rem;
  color: var(--ink-muted);
  line-height: 1.55;
}
.ls-pages-empty p { margin-bottom: .75rem; }

.ls-pages-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: flex-start;
}

.ls-fb-page {
  background: var(--bg-white);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  overflow: hidden;
  width: 300px;
  max-width: 100%;
}
.ls-fb-page-header {
  display: flex;
  align-items: center;
  gap: .5rem;
  padding: .5rem .75rem;
  border-bottom: 1px solid var(--rule);
  font-family: Arial, sans-serif;
  font-size: .82rem;
  font-weight: 700;
}
.ls-fb-thumb {
  width: 24px; height: 24px;
  border-radius: 50%;
  object-fit: cover;
}
.ls-fb-page-name {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.ls-fb-remove {
  background: none;
  border: none;
  color: var(--ink-muted);
  font-size: .75rem;
  cursor: pointer;
  padding: .1rem .3rem;
  border-radius: 2px;
  line-height: 1;
  transition: background .15s, color .15s;
}
.ls-fb-remove:hover { background: #fee; color: var(--accent); }

.ls-fb-embed-wrap { width: 100%; min-height: 200px; }
.ls-fb-embed-wrap iframe { display: block; width: 100%; }

/* ── Search box ────────────────────────────────────────────────────────────── */
.ls-search-box {
  margin-top: .75rem;
  background: var(--bg-white);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: .75rem;
}
.ls-search-input-row {
  display: flex;
  gap: .5rem;
}
.ls-search-input {
  flex: 1;
  font-family: Arial, sans-serif;
  font-size: .85rem;
  padding: .4rem .65rem;
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  background: var(--bg);
}
.ls-search-input:focus { outline: none; border-color: var(--accent); }

.ls-search-results {
  margin-top: .75rem;
  display: flex;
  flex-direction: column;
  gap: .5rem;
}
.ls-search-item {
  display: flex;
  align-items: center;
  gap: .65rem;
  padding: .5rem .65rem;
  background: var(--bg);
  border-radius: var(--radius);
  font-family: Arial, sans-serif;
}
.ls-si-thumb {
  width: 36px; height: 36px;
  border-radius: 4px;
  object-fit: cover;
  flex-shrink: 0;
}
.ls-si-placeholder {
  width: 36px; height: 36px;
  background: var(--rule);
  border-radius: 4px;
  flex-shrink: 0;
}
.ls-si-info { flex: 1; min-width: 0; }
.ls-si-name {
  font-weight: 700;
  font-size: .85rem;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ls-si-fans { font-size: .72rem; color: var(--ink-muted); margin-top: .1rem; }

.ls-no-results {
  font-family: Arial, sans-serif;
  font-size: .82rem;
  color: var(--ink-muted);
  padding: .5rem 0;
}
.ls-note {
  font-family: Arial, sans-serif;
  font-size: .82rem;
  color: var(--ink-muted);
  padding: .5rem 0;
  font-style: italic;
}

/* ── Featured pages ────────────────────────────────────────────────────────── */
.ls-featured {
  margin-top: .75rem;
  padding: .75rem;
  background: var(--bg-white);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
}
.ls-featured-item {
  display: flex;
  align-items: center;
  gap: .6rem;
  padding: .4rem 0;
  border-bottom: 1px solid var(--rule);
  font-family: Arial, sans-serif;
}
.ls-featured-item:last-child { border-bottom: none; padding-bottom: 0; }

/* ── Utility states ─────────────────────────────────────────────────────────── */
.ls-loading {
  font-family: Arial, sans-serif;
  font-size: .82rem;
  color: var(--ink-muted);
  padding: .5rem 0;
}
.ls-detecting {
  font-family: Arial, sans-serif;
  font-size: .88rem;
  color: var(--ink-muted);
  padding: 1rem 0;
}
.ls-manual-input {
  background: var(--bg-white);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: 1rem;
  font-family: Arial, sans-serif;
  font-size: .88rem;
  color: var(--ink-light);
}

/* ── Responsive ─────────────────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .ls-body { grid-template-columns: 1fr; }
  .ls-fb-page { width: 100%; }
}
@media (max-width: 540px) {
  .ls-pages-grid { flex-direction: column; }
  .ls-activate-banner { flex-direction: column; align-items: flex-start; }
}
