/* Brighton Local additions on top of the base design (style.css) */
[hidden] { display: none !important; }
.brand img { object-fit: contain; }

/* Smart search suggestions */
.search-suggestions { max-height: 420px; }
.search-suggestions .ss-service { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.search-suggestions .ss-service span { font: 500 12px/1 var(--f-mono); color: var(--muted-2, #6b6f72); }
.search-suggestions .ss-biz { display: flex; align-items: center; gap: 10px; }
.search-suggestions .ss-biz strong { display: block; font-weight: 600; }
.search-suggestions .ss-biz small { display: block; font-size: 12px; color: var(--muted-2, #6b6f72); }
.search-suggestions .ss-ini { flex: 0 0 32px; width: 32px; height: 32px; border-radius: 8px; display: flex; align-items: center; justify-content: center; background: #24292b; color: var(--lime); font: 800 12px/1 var(--f-head); }
.search-suggestions .ss-all { font-weight: 600; color: var(--lime-ink); border-top: 1px solid var(--line); border-radius: 0; margin-top: 4px; }

/* Search results page */
.search-related { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 16px; }
.search-related .kicker { margin-right: 4px; }
.search-group { grid-column: 1 / -1; font: 700 20px/1.2 var(--f-head); margin: 20px 0 4px; }
.search-empty { padding: 24px; background: #fff; border: 1px solid var(--line); border-radius: var(--r); }
.search-empty a { text-decoration: underline; }
.search-more { display: flex; justify-content: center; margin-top: 24px; }
.local-result__services a + a { opacity: .75; }

/* Business page: contact rows that are not links, extra contact text */
div.contact__item strong a { text-decoration: underline; text-underline-offset: .18em; }
.contact__extra { padding-top: 12px; font-size: 14px; line-height: 1.6; }
.lhero__lead a { text-decoration: underline; }
.tags a.tag { text-decoration: none; color: inherit; }
.search-suggestions { min-width: min(380px, calc(100vw - 32px)); right: auto; }
.local-search .search-suggestions, .directory-finder .search-suggestions { color: var(--ink); }

/* Finder without the suburb field: query · service · button */
.directory-finder__form{grid-template-columns:minmax(0,1.4fr) minmax(0,1fr) auto}
@media (max-width:720px){.directory-finder__form{grid-template-columns:minmax(0,1fr)}}
@media (min-width:521px){.local-search{grid-template-columns:minmax(0,1fr) auto}}

/* HTML sitemap */
.html-sitemap__group+.html-sitemap__group{margin-top:28px}
.html-sitemap__group h2 span{font:500 .8rem/1 "Geist Mono",monospace;color:var(--muted,#6b6f73);margin-left:6px}
.html-sitemap__list{list-style:none;padding:0;margin:12px 0 0;display:grid;gap:8px}
.html-sitemap__list li{display:flex;flex-direction:column;gap:2px}
.html-sitemap__list small{color:var(--muted,#6b6f73)}
.html-sitemap__list--cols{grid-template-columns:repeat(auto-fill,minmax(220px,1fr));gap:6px 20px}
.html-sitemap__list a{text-decoration:underline;text-underline-offset:3px}
.html-sitemap .info-heading a{color:inherit;text-decoration:underline;text-underline-offset:3px}

/* Add-a-business form: inline validation */
.field-error{margin:6px 0 0;font-size:13px;line-height:1.4;color:#B3261E}
#listing-signup [aria-invalid="true"]{border-color:#B3261E;box-shadow:0 0 0 3px rgba(179,38,30,.12)}
#missing ul{margin:6px 0 0;padding-left:18px}
#missing li+li{margin-top:3px}
#missing a{color:inherit;font-weight:600;text-decoration:underline;text-underline-offset:2px}
#listing-signup label.agree.is-invalid{outline:2px solid #B3261E;outline-offset:4px;border-radius:6px}

/* 404 page */
.not-found__search{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:10px;margin:0 0 28px}
.not-found__search .input{min-height:48px}
.not-found__chips{display:flex;flex-wrap:wrap;gap:8px}

/* ---- Final polish (QA pass) ---- */
/* Cards: long names never collide with the big initials */
.bcard__placeholder{padding-bottom:64px}
.bcard__name{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;overflow-wrap:anywhere}
.bcard__loc{gap:0}
.bcard__loc::before{content:"";width:6px;height:6px;border-radius:50%;background:var(--lime);margin-right:8px;flex:none}
/* Business hero: long or unbroken names wrap inside the box and get a calmer size */
.lhero h1{overflow-wrap:anywhere}
.lhero--long h1{font-size:clamp(28px,3.9vw,56px);line-height:1.04}
/* Monogram fact: full service name, up to two lines */
.monogram__fact strong{white-space:normal;font-size:16px;line-height:1.2;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
/* About panel: no empty gap when the text starts with a heading */
.profile-copy > :first-child{margin-top:0}
/* Breadcrumbs: the current page ends with an ellipsis instead of being cut mid-letter */
.crumbs li:last-child{display:block;white-space:nowrap}
.crumbs li:last-child::before{margin-right:8px}
/* "Filter by category" (directory pages, and the results page on phones) */
.directory-categories summary{list-style:none;display:flex;align-items:center;justify-content:space-between;gap:12px;font-weight:600}
.directory-categories summary::-webkit-details-marker{display:none}
.directory-categories summary::after{content:"";width:9px;height:9px;border-right:2px solid currentColor;border-bottom:2px solid currentColor;transform:rotate(45deg) translate(-2px,-2px);transition:transform .2s;opacity:.6;flex:none}
.directory-categories[open] summary::after{transform:rotate(-135deg) translate(-2px,-2px)}
@media (min-width:961px){.directory--results>.directory-categories summary::after{display:none}}
/* HTML sitemap list flush with its heading */
.info-copy .html-sitemap__list{padding-left:0}
.not-found .kicker{color:var(--lime)}
.not-found__chips .chip{text-decoration:none}
.counter > span:first-child{white-space:nowrap}
.counter__bar{flex:1 1 60px;max-width:120px}
/* Footer "Company" column uses the same list style as Browse / Popular */
[aria-labelledby="f-contacts"] ul{list-style:none;margin:0;padding:0;display:grid;gap:9px}
[aria-labelledby="f-contacts"] a{color:rgba(255,255,255,.85);font-size:15px}
.info-copy .not-found__chips a.chip{text-decoration:none}

/* Service / area landing pages */
.directory-intro{max-width:720px;margin:10px 0 0;color:var(--muted,#55585c);font-size:15px;line-height:1.55}
.related-links{margin:8px 0 32px}
.related-links h2{font-size:20px;margin:0 0 14px}
.related-links .chips{flex-wrap:wrap;overflow:visible;padding:0}
.related-links .chip{text-decoration:none}
.lhero__service a{color:inherit;text-decoration:none}.lhero__service a:hover{text-decoration:underline}
