/* ===================================================================
   Prime Urban Services — City × Service page
   Additive styles ONLY. Everything structural (colours, header,
   bottom nav, .pus-* package cards) comes from pus-site.css, which is
   lifted straight out of index.html so these pages never drift from
   the live site.
   =================================================================== */

/* ---- links reusing components that are <div>/<button> in the app ---- */
.pus-city-page .header-logo,
.pus-city-page .hamburger-btn,
.pus-city-page .bnav-item,
.pus-city-page .pus-need-tile,
.pus-city-page .cat-back-btn,
.pus-city-page .cat-search-btn { text-decoration: none; color: inherit; }

.pus-city-page .hamburger-btn { display: flex; flex-direction: column; justify-content: center; }

/* ---- page shell padding, matching the app's cat-services page ---- */
.pus-city-page #pus-shell { padding: 0 12px 90px; }
@media (min-width: 640px) { .pus-city-page #pus-shell { padding: 0 16px 90px; } }
@media (min-width: 1024px) { .pus-city-page #pus-shell { padding: 0 32px 40px; } }

/* ---- breadcrumbs ---- */
.pus-crumbs { padding: 10px 14px 2px; }
/* Inline rather than flex. As flex items the separators became their own
   boxes and dropped onto their own lines; as plain inline text the trail
   simply flows and wraps like a sentence. */
.pus-crumbs ol {
  list-style: none; margin: 0; padding: 0;
  font-size: 11.5px; line-height: 1.9; color: var(--text3);
}
.pus-crumbs li { display: inline; list-style: none; margin: 0; padding: 0; }
.pus-crumbs li::marker { content: none; }
.pus-crumbs li + li::before {
  content: '\203A'; color: var(--text3); opacity: .75; margin: 0 7px;
}
.pus-crumbs a { color: var(--text3); text-decoration: none; }
.pus-crumbs a:hover { color: var(--primary); text-decoration: underline; }
.pus-crumbs li[aria-current] { color: var(--text2); font-weight: 600; }

@media (min-width: 1024px) { .pus-crumbs { padding: 14px 32px 0; } }

/* ---- H1 supporting line ---- */
.pus-city-page .pus-title { margin: 0; }
.pus-h1-sub {
  margin: 10px 0 0; font-size: 13px; line-height: 1.55;
  color: var(--text2); font-weight: 500;
}

/* ---- collapsed inclusions: all bullets ship in the HTML, extras hidden ---- */
.pus-pkg-points li.pus-pt-hidden { display: none; }
.pus-pkg-points.is-open li.pus-pt-hidden { display: list-item; }

/* ---- long-form SEO blocks ---- */
.pus-seo { margin-top: 12px; padding: 18px 16px; }
.pus-seo h2 {
  font-size: 17px; font-weight: 800; color: var(--text);
  letter-spacing: -.2px; margin: 0 0 10px; line-height: 1.3;
}
.pus-seo h3 {
  font-size: 14.5px; font-weight: 700; color: var(--text);
  margin: 20px 0 8px; line-height: 1.35;
}
.pus-seo p {
  font-size: 13.5px; line-height: 1.72; color: var(--text2);
  margin: 0 0 12px;
}
.pus-seo p:last-child { margin-bottom: 0; }
.pus-seo a { color: var(--primary); }

/* ---- areas served ---- */
.pus-area-list {
  list-style: none; margin: 14px 0 0; padding: 0;
  display: flex; flex-wrap: wrap; gap: 7px 8px;
}
.pus-area-list li {
  font-size: 12px; font-weight: 600; color: var(--text2);
  background: var(--primary-light); border: 1px solid rgba(91, 46, 212, .12);
  padding: 6px 11px; border-radius: 50px;
}

/* ---- FAQ ---- */
.pus-faq details { border-bottom: 1px solid var(--border); }
.pus-faq details:last-of-type { border-bottom: 0; }
.pus-faq summary {
  list-style: none; cursor: pointer;
  display: flex; align-items: flex-start; justify-content: space-between; gap: 12px;
  padding: 14px 0;
}
.pus-faq summary::-webkit-details-marker { display: none; }
.pus-faq summary h3 {
  margin: 0; font-size: 13.8px; font-weight: 700;
  color: var(--text); line-height: 1.45; flex: 1;
}
.pus-faq-chev {
  width: 15px; height: 15px; flex: 0 0 auto; margin-top: 2px;
  color: var(--text3); transition: transform .2s;
}
.pus-faq details[open] .pus-faq-chev { transform: rotate(90deg); }
.pus-faq details p {
  font-size: 13.2px; line-height: 1.72; color: var(--text2);
  margin: 0 0 15px; padding-right: 26px;
}

/* ---- internal link chips ---- */
.pus-linkchips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.pus-linkchips a {
  font-size: 12.2px; font-weight: 600; color: var(--primary);
  background: var(--primary-light); border: 1px solid rgba(91, 46, 212, .14);
  padding: 7px 13px; border-radius: 50px; text-decoration: none;
  transition: .15s;
}
.pus-linkchips a:hover { background: var(--primary); color: #fff; }

/* ---- city picker ---- */
#pus-city-modal {
  position: fixed; inset: 0; z-index: 600; display: none;
  background: rgba(16, 12, 40, .45);
}
#pus-city-modal.show { display: block; }
.pus-city-in {
  position: absolute; left: 0; right: 0; bottom: 0; background: #fff;
  border-radius: 20px 20px 0 0; padding: 0 0 18px; max-height: 76vh; overflow: auto;
  animation: pusUp .25s cubic-bezier(.22, .68, 0, 1.1);
}
.pus-city-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px; border-bottom: 1px solid var(--border);
}
.pus-city-head b { font-size: 15px; font-weight: 800; color: var(--text); }
.pus-city-head button {
  border: 0; background: #F3F4F6; color: var(--text2); cursor: pointer;
  font-size: 12px; font-weight: 700; padding: 5px 12px; border-radius: 50px;
  font-family: inherit;
}
.pus-city-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; padding: 16px;
}
.pus-city-grid a {
  display: block; text-align: center; text-decoration: none;
  font-size: 13.5px; font-weight: 700; color: var(--text);
  border: 1.5px solid var(--border); border-radius: 12px; padding: 13px 8px;
}
.pus-city-grid a.on {
  border-color: var(--primary); color: var(--primary); background: var(--primary-light);
}
.pus-city-all {
  display: block; text-align: center; font-size: 12.5px;
  color: var(--primary); text-decoration: none; padding: 4px 16px 0; font-weight: 600;
}
@media (min-width: 640px) { .pus-city-grid { grid-template-columns: repeat(3, 1fr); } }

/* ---- desktop: the sidebar is only useful once there's room for it ---- */
@media (max-width: 1023px) { .pus-city-page .pus-side { display: none; } }

/* ---- accessibility floor ---- */
.pus-city-page a:focus-visible,
.pus-city-page button:focus-visible,
.pus-city-page summary:focus-visible,
.pus-city-page [tabindex]:focus-visible {
  outline: 2px solid var(--primary); outline-offset: 2px; border-radius: 6px;
}
@media (prefers-reduced-motion: reduce) {
  .pus-city-page *, .pus-city-in { animation: none !important; transition: none !important; }
}

/* ---- numbered inclusion / equipment lists ---- */
.pus-incl-list { margin: 10px 0 0; padding-left: 20px; }
.pus-incl-list li {
  font-size: 13.2px; line-height: 1.65; color: var(--text2); margin-bottom: 7px;
}

/* ---- footer sits inside #main-content, same as index.html ---- */
.pus-city-page #app-footer { margin-top: 18px; }

/* ---- sub-header: stop the title running under the city chip ----
   .cat-header-content is a flex row with min-width:0, but the markup puts
   the title and sub-line inside an extra wrapper div. That wrapper had no
   min-width:0 of its own, so it refused to shrink and the title's ellipsis
   never kicked in — it just overflowed under the city chip instead. */
.pus-city-page .cat-header-content > div {
  flex: 1; min-width: 0;
}
.pus-city-page .cat-header-title,
.pus-city-page .cat-header-sub {
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.pus-city-page .cat-page-header { gap: 8px; }
.pus-city-page .cat-header-actions { flex: 0 0 auto; }

/* Narrow phones: give the title more room by trimming the chip */
@media (max-width: 400px) {
  .pus-city-page .cat-header-title { font-size: 15.5px; }
  .pus-city-page .cat-city-chip { padding: 6px 8px; font-size: 11.5px; max-width: 88px; }
  .pus-city-page .cat-back-btn,
  .pus-city-page .cat-search-btn { width: 32px; height: 32px; }
}

/* ---- breadcrumbs: keep the trail on one flowing line ---- */
.pus-crumbs ol { row-gap: 2px; }
.pus-crumbs li { min-width: 0; }
.pus-crumbs li:last-child { white-space: normal; }

/* ---- full city list at the foot of a service page ---- */
/* One link per line, full text, never truncated.
   The earlier fixed-width grid cut long names off; inline flow ran them
   together into a wall of text. A stacked list gives each link its own
   row and lets long names wrap instead of being clipped. Columns kick in
   on wider screens so 35 rows do not become a very tall block. */
.pus-citygrid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2px;
  margin-top: 14px;
}
@media (min-width: 620px)  { .pus-citygrid { grid-template-columns: repeat(2, 1fr); gap: 2px 18px; } }
@media (min-width: 1000px) { .pus-citygrid { grid-template-columns: repeat(3, 1fr); } }

.pus-citygrid a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 10px 9px 4px;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.45;
  color: var(--text2);
  background: none;
  border: 0;
  border-bottom: 1px solid var(--border);
  border-radius: 0;
  text-decoration: none;
  white-space: normal;
  overflow: visible;
  text-overflow: clip;
  transition: color .15s, padding-left .15s;
}
.pus-citygrid a::before {
  content: '\203A';
  flex: 0 0 auto;
  color: var(--primary);
  font-size: 15px;
  line-height: 1;
  opacity: .55;
  margin: 0;
}
.pus-citygrid a:hover {
  color: var(--primary);
  padding-left: 9px;
  background: none;
}
.pus-citygrid a:hover::before { opacity: 1; }
.pus-citygrid a + a::before { margin: 0; }

.pus-citygrid a.on { color: var(--primary); font-weight: 800; }
.pus-citygrid a.on::before { opacity: 1; }


