/* Town landing pages (/service-area/<town>/). Builds on service-detail.css. */

/* Local section */
.town-local__inner { display: flex; align-items: flex-start; gap: 96px; }
.town-local__text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.town-local__body { font-size: 17px; line-height: 28px; color: var(--slate); max-width: 680px; }
.town-local__aside { width: 340px; flex-shrink: 0; display: flex; flex-direction: column; gap: 16px; padding: 28px; border: 1px solid var(--line); border-left: 4px solid var(--buoy); border-radius: var(--radius-sm); }
.town-local__hoods { list-style: none; }
.town-local__hoods li { padding-block: 10px; border-bottom: 1px solid var(--fog); font-family: var(--font-display); font-weight: 700; font-size: 18px; line-height: 22px; color: var(--navy); }
.town-local__note { font-size: 14px; line-height: 20px; color: var(--slate); }

/* Flat-rate jobs */
.town-jobs .container { display: flex; flex-direction: column; gap: 32px; }
.town-jobs__head { display: flex; flex-direction: column; gap: 14px; }
.town-jobs__sub { font-size: 16px; line-height: 25px; color: var(--slate); max-width: 640px; }
.town-jobs__list { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 64px; }
.town-jobs__item { display: flex; align-items: baseline; justify-content: space-between; gap: 24px; padding-block: 20px; border-top: 1px solid var(--line); }
.town-jobs__item > div { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.town-jobs__name { font-family: var(--font-display); font-weight: 700; font-size: 20px; line-height: 24px; color: var(--navy); }
.town-jobs__name a { color: inherit; }
.town-jobs__detail { font-size: 15px; line-height: 22px; color: var(--slate); }
.town-jobs__price { font-family: var(--font-display); font-weight: 800; font-size: 22px; line-height: 28px; color: var(--navy); white-space: nowrap; }

/* Nearby town links on navy */
.town-near a { color: var(--white); text-decoration: none; }
.town-near li:hover { border-color: var(--buoy); }
.sd-near__note a { color: var(--white); }

@media (max-width: 1100px) {
  .town-local__inner { gap: 48px; }
  .town-local__aside { width: 300px; }
}

@media (max-width: 900px) {
  .town-local__inner { flex-direction: column; gap: 32px; }
  .town-local__aside { width: auto; padding: 24px; }
  .town-jobs__list { grid-template-columns: minmax(0, 1fr); }
  .town-jobs__name { font-size: 18px; line-height: 22px; }
}

/* Owner photo in the local aside */
.town-local__photo { margin: 0; display: flex; flex-direction: column; gap: 10px; }
.town-local__photo img { width: 100%; height: auto; border-radius: var(--radius-sm); }
.town-local__photo figcaption { font-size: 14px; line-height: 20px; color: var(--slate); }
.town-local__body + .town-local__body { margin-top: -4px; }
