/* Uses the existing LS page, header, account panel and typography. */
[hidden] { display: none !important; }
.city-page { padding: 42px clamp(18px, 4vw, 60px) 60px; max-width: 1240px; margin: auto; }
.city-eyebrow { margin: 0 0 8px; color: var(--green-dark); font-family: 'Barlow Condensed', sans-serif; font-weight: 700; text-transform: uppercase; letter-spacing: .15em; font-size: .8rem; }
.city-heading { display: flex; justify-content: space-between; align-items: center; gap: 20px; }
.city-heading h1 { font: clamp(2.6rem, 7vw, 4.5rem)/1 'Bebas Neue', sans-serif; letter-spacing: .025em; margin: 0; }
.city-intro { color: var(--mid); margin: 12px 0 28px; max-width: 60ch; line-height: 1.6; }
.city-toolbar { display: flex; align-items: center; gap: 12px; margin: 0 0 16px; flex-wrap: wrap; }
.city-search { display: flex; flex: 1; align-items: center; gap: 12px; min-width: 160px; }
.city-search input, .city-form input { border: 1px solid var(--line); border-radius: 6px; padding: 12px; color: var(--ink); background: var(--panel); min-width: 0; width: 100%; font-size: 1rem; }
.city-search input { max-width: 380px; }
.city-count { color: var(--mid); font-size: .85rem; white-space: nowrap; }
.city-status { min-height: 1.5em; line-height: 1.5; margin: 0 0 14px; color: var(--green-dark); }
.city-status--error { color: #a31d29; }
.city-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.city-card { min-width: 0; background: var(--panel); border: 1px solid var(--line); border-top: 5px solid #967138; border-radius: 8px; overflow: hidden; box-shadow: var(--shadow-sm); }
.city-card:nth-child(3n + 2) { border-top-color: #007b65; }
.city-card:nth-child(3n) { border-top-color: #b61c2e; }
.city-card-link { display: flex; flex-direction: column; align-items: flex-start; padding: 24px; min-height: 200px; transition: background .15s; }
.city-card-link:hover { background: var(--bg); }
.city-card-number { font: .8rem 'Barlow Condensed', sans-serif; letter-spacing: .15em; color: var(--mid); }
.city-card h2 { font: 2.5rem/1.05 'Bebas Neue', sans-serif; letter-spacing: .03em; margin: 16px 0 22px; overflow-wrap: anywhere; }
.city-card-hint { color: var(--green-dark); font-size: .85rem; margin-top: auto; }
.city-edit-button { width: 100%; border: 0; border-top: 1px solid var(--line); padding: 12px; cursor: pointer; background: var(--bg); color: var(--ink); font-weight: 600; }
.city-edit-button:hover { background: var(--green-soft); }
.city-empty { padding: 30px 0; color: var(--mid); }
.city-editor { border: 1px solid var(--line); border-radius: 8px; background: var(--panel); padding: 24px; margin: 0 0 28px; }
.city-form { max-width: 800px; }
.city-form fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.city-form legend { font: 1.8rem 'Bebas Neue', sans-serif; padding: 0 0 18px; }
.city-fields { display: grid; grid-template-columns: 1fr 2fr; gap: 18px; }
.city-fields label { display: flex; flex-direction: column; gap: 8px; font-weight: 600; font-size: .9rem; }
.city-form-hint { font-size: .85rem; color: var(--mid); line-height: 1.5; margin: 16px 0; }
.city-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.city-page .btn { min-height: 44px; font-size: .85rem; }
.city-access { padding: 18px 20px; border-left: 4px solid var(--green); background: var(--green-soft); margin-bottom: 24px; }
.city-access p { margin: 0 0 12px; }
.city-page :is(a, button, input):focus-visible { outline: 3px solid #c78d19; outline-offset: 3px; }
.city-page button:disabled { opacity: .5; cursor: wait; }
.city-sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
/* LS_CITY_GUIDES_DARK_R1 — inherit a complete palette from the page body.
   Defining tokens only on .city-page leaves the body, .page and inherited
   heading colors in the light palette. Keep shared LS brand colors intact. */
html[data-ls-theme='dark'] body[data-city-page] {
  --paper-outer: #000;
  --page-bg: #000;
  --panel: #151515;
  --bg: #202020;
  --ink: #fff;
  --mid: #c5c5c5;
  --mid-soft: #aaa;
  --line: #444;
  --line-soft: #333;
  --green-dark: #80dca9;
  --green-soft: #102d20;
  --shadow-sm: 0 2px 6px rgba(0, 0, 0, .25);
  color: var(--ink);
  background: var(--paper-outer);
  color-scheme: dark;
}
html[data-ls-theme='dark'] body[data-city-page] > .page {
  background: var(--page-bg);
  color: var(--ink);
  box-shadow: none;
}
html[data-ls-theme='dark'] body[data-city-page] .city-page {
  color: var(--ink);
}
html[data-ls-theme='dark'] body[data-city-page] .city-page input::placeholder {
  color: #aaa;
  opacity: 1;
}
html[data-ls-theme='dark'] body[data-city-page] .city-page .btn-accent {
  background: #007b3e;
  border-color: #007b3e;
  color: #fff;
}
html[data-ls-theme='dark'] body[data-city-page] .city-page .btn-accent:hover {
  background: #006b33;
  border-color: #80dca9;
  color: #fff;
}
html[data-ls-theme='dark'] body[data-city-page] .city-page .btn-danger {
  color: #ffadb2;
  border-color: #ffadb2;
}
html[data-ls-theme='dark'] body[data-city-page] .city-page .btn-danger:hover {
  color: #fff;
  background: #b61c2e;
  border-color: #b61c2e;
}
html[data-ls-theme='dark'] body[data-city-page] .city-status--error {
  color: #ffadb2;
}
@media (max-width: 780px) { .city-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } .city-fields { grid-template-columns: 1fr; } }
@media (max-width: 480px) { .city-page { padding-top: 28px; } .city-list { grid-template-columns: 1fr; } .city-heading { flex-wrap: wrap; gap: 14px; } .city-card-link { min-height: 165px; padding: 20px; } .city-editor { padding: 18px; } }
