/* Search-first public directory: real services, reviews and location evidence. */
:root { --paper: #fff; --line: #e3e6e8; --muted: #616b73; --ink: #20272b; }
body { font-size: 14px; line-height: 1.55; }
html { scroll-padding-top: 130px; }
.discovery-container { width: min(1360px,calc(100% - 48px)); }
.authenticated-discovery-page .discovery-container { width: min(calc(100% - 48px),1192px); }
.discovery-brand, .discovery-footer strong { font: 700 22px/1.3 Sora,sans-serif; letter-spacing: -.05em; }
.discovery-brand img { width: 30px; height: 30px; border-radius: 6px; }
.discovery-header-inner { min-height: 64px; gap: 16px; }
.discovery-header nav { gap: 20px; font-size: 12px; }
.header-app-link { border-radius: 6px; padding: 9px 12px; }
.breadcrumbs { margin: 20px 0 16px; }
.eyebrow { font: 500 11px/1.5 Sora,sans-serif; letter-spacing: .04em; color: var(--muted); }
.directory-hero { display: block; padding: 8px 0 24px; }
.directory-hero h1, .workshop-title-row h1 { font: 600 clamp(26px,3vw,38px)/1.2 Sora,sans-serif; letter-spacing: -.04em; overflow-wrap: anywhere; }
.directory-hero p:not(.eyebrow) { font-size: 14px; margin-top: 10px; max-width: 76ch; }
.search-bar { padding: 16px; gap: 12px; min-height: 0; background: #f6f7f8; border: 0; border-radius: 8px; box-shadow: none; align-items: end; }
.search-bar > label { border: 0; padding: 0; flex: 0 1 20%; min-width: 140px; }
.search-bar > .keyword-search { flex: 1 1 40%; }
.keyword-search { align-items: end; gap: 12px; }
.keyword-search label { padding: 0; }
.search-bar label span, .filter-field span, .result-toolbar label span { font-size: 12px; text-transform: none; letter-spacing: 0; margin-bottom: 6px; font-weight: 500; }
.search-bar input, .search-bar select, .filter-field select, .result-toolbar select { min-height: 44px; height: 44px; padding: 9px 12px; border: 1px solid #cbd0d6; border-radius: 6px; background: #fff; font-size: 14px; font-weight: 400; line-height: 1.5; }
.search-bar input:focus-visible, .search-bar select:focus-visible { outline: 3px solid #fc4c0270; outline-offset: 2px; }
.keyword-search button, .filter-submit, .primary-link { min-height: 44px; border-radius: 6px; padding: 10px 16px; font-size: 13px; font-weight: 600; white-space: normal; }
.city-shortcuts { margin: 16px 0 24px; gap: 6px 14px; }
.city-shortcuts a { padding: 4px 0; border: 0; border-radius: 0; font-weight: 500; }
.directory-grid { grid-template-columns: 190px minmax(0,1fr) minmax(300px,.8fr); gap: 24px; }
.filter-panel, .map-column { top: 84px; border-radius: 8px; box-shadow: none; }
.filter-panel { padding: 0; border: 0; }
.filter-panel > summary { font-size: 15px; font-weight: 600; padding: 10px 0; cursor: pointer; }
.filter-panel form { margin-top: 12px; gap: 18px; }
.filter-check { font-size: 12px; min-height: 40px; align-items: center; }
.filter-check input { width: 18px; height: 18px; flex-basis: 18px; }
.filter-footnote { font-size: 11px; margin-top: 20px; }
.result-column { min-width: 0; }
.result-toolbar { display: flex; flex-wrap: wrap; justify-content: flex-start; align-items: center; gap: 12px 16px; margin-bottom: 16px; }
.result-toolbar .eyebrow { display: none; }
.result-toolbar h2 { font: 600 16px/1.5 Sora,sans-serif; }
.result-toolbar h2 span { color: inherit; }
.result-toolbar label { min-width: 150px; }
.result-toolbar label span { display: none; }
.toolbar-actions { gap: 8px; align-items: center; flex-wrap: wrap; }
.map-toggle { display: none; border-radius: 6px; min-height: 44px; padding: 9px 12px; font-size: 13px; }
.applied-filters { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 16px; }
.applied-filters a { display: inline-flex; align-items: center; gap: 8px; min-height: 36px; padding: 6px 10px; border: 1px solid var(--line); border-radius: 6px; text-decoration: none; font-size: 12px; }
.applied-filters a:hover { border-color: var(--orange); }
.workshop-results { gap: 0; }
.workshop-card { grid-template-columns: 112px minmax(0,1fr); gap: 16px; min-height: 0; padding: 20px 0; border: 0; border-top: 1px solid var(--line); border-radius: 0; }
.workshop-card:hover { box-shadow: none; border-color: var(--line); }
.workshop-card.is-map-selected { background: #fff7f1; box-shadow: inset 3px 0 var(--orange); padding-inline: 10px; }
.workshop-card-photo { height: 112px; border-radius: 6px; overflow: hidden; }
.photo-placeholder { min-height: 0; padding: 10px; background: #f1f3f4; }
.photo-placeholder span { display: none; }
.photo-placeholder strong { font: 500 36px/1.2 Sora,sans-serif; color: #929a9f; }
.photo-placeholder small { font-size: 11px; }
.workshop-card-content { padding: 0; }
.workshop-card-top { display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }
.workshop-card h2 { font: 600 17px/1.4 Sora,sans-serif; overflow-wrap: anywhere; }
.card-location { font-size: 11px; font-weight: 400; }
.rating-chip { gap: 6px; }
.rating-chip strong { min-height: 26px; min-width: 30px; border-radius: 4px; font-size: 12px; }
.rating-chip span { font-size: 11px; max-width: none; }
.rating-empty { font-size: 11px; }
.card-address { margin: 6px 0 0; color: var(--muted); font-size: 12px; }
.card-description { font-size: 12px; line-height: 1.6; margin: 8px 0; }
.service-tags { display: flex; gap: 4px 10px; }
.service-tags span { background: transparent; padding: 0; font-size: 11px; font-weight: 500; }
.workshop-card-bottom { justify-content: flex-start; align-items: center; flex-wrap: wrap; gap: 8px 16px; padding-top: 10px; margin-top: 0; }
.workshop-card-bottom > span { font-size: 11px; }
.workshop-card-bottom a, .map-card-link { font-size: 12px; font-weight: 500; }
.map-card-link { background: transparent; padding: 0; border: 0; color: var(--ink); min-height: 32px; text-decoration: underline; text-underline-offset: 3px; }
.map-column { position: sticky; width: auto; display: block; right: auto; bottom: auto; overflow: hidden; z-index: 1; }
.map-head { padding: 12px; justify-content: flex-start; gap: 12px; font-size: 13px; }
.map-help { padding: 0 12px; margin: 10px 0; color: var(--muted); font-size: 12px; }
.discovery-map { min-height: 300px; height: min(560px,62vh); }
.map-caption { padding: 12px; font-size: 11px; }
.map-head button { display: none; margin-left: auto; min-width: 44px; min-height: 44px; }
.search-area { top: 112px; border-radius: 6px; box-shadow: none; min-height: 40px; font-size: 12px; }
.map-reset { display: block; padding: 10px 12px; color: var(--ink); font-size: 12px; background: #fff; border: 0; text-decoration: underline; }
.workshop-map-marker { display: grid; place-items: center; border-radius: 6px; background: #20272b; color: #fff; border: 2px solid #fff; font: 600 12px/1 Sora,sans-serif; box-shadow: 0 1px 5px #0003; }
.workshop-map-marker.is-unverified { background: #fff; color: #b5481a; border-color: #f26b36; }
.workshop-map-marker.is-city { background: #f8eee7; color: #744a30; border: 2px dashed #a5795c; border-radius: 50%; }
.workshop-city-popup-link { display: block; margin-top: 7px; }
.workshop-city-popup { max-height: 260px; overflow-y: auto; }
.workshop-address-note { margin: 8px 0 0; color: #9d4e20; font-size: 12px; font-weight: 600; }
.workshop-map-marker:focus-visible { outline: 3px solid var(--orange); }
.city-seo { margin: 40px 0; padding: 24px 0; border: 0; border-top: 1px solid var(--line); border-radius: 0; }
.city-seo h2 { font: 600 22px/1.4 Sora,sans-serif; }
.empty-results { padding: 24px 0; border: 0; border-radius: 0; }
.empty-results h3 { font: 600 18px/1.4 Sora,sans-serif; }
.workshop-title-row { align-items: flex-start; justify-content: flex-start; gap: 12px 20px; flex-wrap: wrap; }
.workshop-title-row > .rating-chip { margin-top: 28px; }
.location-jump { display: inline-block; font-size: 12px; margin-top: 8px; color: #aa3d0e; }
.section-jumps { top: 64px; padding: 12px 0; gap: 20px; background: #fff; }
.section-jumps a { font-size: 13px; font-weight: 500; min-height: 32px; display: inline-flex; align-items: center; }
.workshop-gallery { border-radius: 8px; margin-top: 20px; grid-template-rows: 160px 160px; }
.workshop-gallery:not(.has-photos) { display: block; height: auto; background: transparent; margin-top: 12px; }
.workshop-gallery:not(.has-photos) .gallery-fallback { min-height: 70px; flex-direction: row; justify-content: flex-start; gap: 12px; padding: 12px 16px; border-radius: 6px; }
.gallery-fallback strong { font-size: 30px; }
.workshop-detail-grid { grid-template-columns: minmax(0,1fr) 320px; gap: 40px; margin-top: 16px; }
.detail-section { padding: 24px 0; }
.detail-section h2, .contact-locked h2 { font: 600 23px/1.35 Sora,sans-serif; }
.detail-section > .eyebrow, .section-heading .eyebrow { display: none; }
.detail-section > p:not(.eyebrow), .workshop-own-description { line-height: 1.75; font-size: 14px; }
.facts-row { gap: 8px 16px; margin-top: 16px; }
.facts-row span { border: 0; border-radius: 0; padding: 0; font-size: 12px; font-weight: 400; }
.service-groups { gap: 16px; }
.service-group { padding: 16px; background: #f7f8f9; border: 0; border-radius: 6px; }
.service-group h3 { font: 600 15px/1.4 Sora,sans-serif; }
.service-group li { font-size: 13px; }
.section-heading, .review-head, .claim-side { justify-content: flex-start; gap: 12px; flex-wrap: wrap; }
.review-card { padding: 16px 0; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; }
.review-replies { border-left: 2px solid var(--line); background: #f7f8f9; }
.empty-note, .location-unconfirmed { padding: 16px; background: #f7f8f9; border: 0; border-radius: 6px; }
.detail-map { border-radius: 8px; }
.workshop-side { top: 136px; gap: 20px; }
.contact-locked { padding: 20px; border: 1px solid var(--line); border-radius: 8px; }
.contact-locked h2 { font-size: 20px; }
.contact-locked small { font-size: 11px; }
.contact-links a { border-radius: 6px; }
.visit-checklist { padding: 0 4px; }
.visit-checklist h2 { font: 600 14px/1.5 Sora,sans-serif; margin: 0 0 8px; }
.visit-checklist ul { padding-left: 18px; margin: 0; display: grid; gap: 8px; color: var(--muted); font-size: 12px; }
.claim-side { padding: 16px 0; border: 0; border-top: 1px solid var(--line); border-radius: 0; }
.gallery-photo:hover img { transform: none; }
.gallery-all { box-shadow: none; border-radius: 6px; min-height: 40px; }
.discovery-footer { margin-top: 48px; }
.account-directory-header { display: grid; gap: 0; }
.account-header-main { display: flex; align-items: center; justify-content: space-between; min-height: 64px; gap: 16px; }
.account-header-main .discovery-brand { font-size: 22px; }
.account-header-main .discovery-brand span { color: var(--orange); }
.account-directory-profile { display: inline-flex; align-items: center; min-height: 40px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 6px; color: var(--ink); font-size: 12px; font-weight: 600; text-decoration: none; }
.account-directory-nav { display: flex; align-items: center; gap: 18px; overflow-x: auto; white-space: nowrap; scrollbar-width: thin; }
.account-directory-nav a { display: inline-flex; align-items: center; flex: 0 0 auto; min-height: 44px; border-bottom: 2px solid transparent; color: var(--muted); font: 500 13px/1.4 Sora,sans-serif; text-decoration: none; }
.account-directory-nav a[aria-current="page"] { border-bottom-color: var(--orange); color: var(--ink); }
.account-directory-nav a:hover, .account-directory-footer a:hover { color: var(--orange); }
.account-directory-footer > .discovery-container { display: flex; justify-content: flex-end; min-height: 72px; }
.account-directory-footer nav { display: flex; flex-wrap: wrap; gap: 12px 20px; }
.account-directory-footer a { color: var(--ink); font-size: 12px; }
.review-action-link { display: inline-flex; align-items: center; min-height: 40px; margin-top: 12px; color: var(--orange); font-size: 13px; font-weight: 600; }
@media(max-width:1100px) {
  .directory-grid { grid-template-columns: 190px minmax(0,1fr); }
  .map-column { position: relative; top: auto; grid-column: 1/-1; grid-row: 1; display: none; }
  .map-column.is-open { display: block; }
  .map-toggle, .map-head button { display: inline-flex; justify-content: center; align-items: center; }
  .discovery-map { height: 380px; }
}
@media(max-width:760px) {
  .account-header-main { min-height: 56px; }
  .account-directory-nav { gap: 14px; }
  .account-directory-nav a { min-height: 44px; font-size: 12px; }
  .account-directory-footer nav { gap: 10px 16px; }
  .discovery-container { width: calc(100% - 32px); }
  .discovery-header-inner { min-height: 60px; }
  .directory-hero { padding-bottom: 20px; }
  .search-bar { display: grid; padding: 12px; gap: 12px; }
  .search-bar > label { padding: 0; border: 0; }
  .keyword-search { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 8px; }
  .keyword-search label { padding: 0; }
  .keyword-search button { width: auto; }
  .search-bar input, .search-bar select, .filter-field select, .result-toolbar select { font-size: 16px; }
  .city-shortcuts { max-height: none; margin: 12px 0 16px; gap: 6px 12px; }
  .city-shortcuts a:nth-of-type(n+5) { display: none; }
  .city-shortcuts a { min-height: 36px; }
  .directory-grid { display: flex; flex-direction: column; gap: 16px; }
  .filter-panel { width: 100%; margin: 0; padding: 0; border-bottom: 1px solid var(--line); border-radius: 0; order: 0; }
  .filter-panel summary { min-height: 44px; }
  .filter-panel form { margin: 12px 0 16px; }
  .filter-footnote { display: block; }
  .map-column { width: 100%; order: 1; }
  .result-column { width: 100%; order: 2; }
  .result-toolbar { gap: 10px; }
  .result-toolbar h2 { font-size: 15px; }
  .result-toolbar select { max-width: 200px; }
  .workshop-card { grid-template-columns: 84px minmax(0,1fr); gap: 12px; padding: 16px 0; }
  .workshop-card-photo { height: 84px; }
  .workshop-card .photo-placeholder strong { font-size: 30px; }
  .workshop-card .photo-placeholder small { display: none; }
  .workshop-card h2 { font-size: 16px; }
  .card-description { font-size: 12px; -webkit-line-clamp: 2; }
  .workshop-card .rating-chip, .workshop-card .rating-empty { margin-top: 0; }
  .workshop-card-bottom > span { display: inline; }
  .workshop-card-bottom a, .map-card-link { font-size: 12px; min-height: 44px; display: inline-flex; align-items: center; }
  .service-tags { display: flex; }
  .service-tags span:nth-child(n+3) { display: none; }
  .applied-filters a { min-height: 44px; }
  .section-jumps { top: 60px; gap: 12px; flex-wrap: wrap; overflow: visible; }
  .section-jumps a { min-height: 36px; font-size: 12px; }
  .workshop-title-row > .rating-chip { margin-top: 12px; }
  .workshop-gallery { grid-template-rows: 120px 120px; }
  .workshop-detail-grid { display: flex; flex-direction: column; gap: 16px; }
  .workshop-side { position: static; width: 100%; order: -1; }
  .workshop-side .visit-checklist, .workshop-side .claim-side { padding: 12px 0; }
  .detail-section h2 { font-size: 22px; }
  .contact-locked { padding: 16px; }
  .service-groups { grid-template-columns: 1fr; }
}
@media(max-width:700px) {
  .authenticated-discovery-page .discovery-container { width: calc(100% - 32px); }
}
@media(prefers-reduced-motion:reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }

/* Keep location and repair filters together; the map is an alternate results view. */
.directory-grid { grid-template-columns: 220px minmax(0, 1fr); align-items: start; column-gap: 24px; }
.filter-panel { grid-column: 1; grid-row: 1 / span 2; }
.result-column { grid-column: 2; grid-row: 1; }
.map-column { grid-column: 2; grid-row: 2; position: static; width: 100%; max-width: 840px; display: none; margin-top: 8px; }
.map-column.is-open { display: block; }
.map-toggle, .map-head button { display: inline-flex; align-items: center; justify-content: center; }
.directory-grid.is-map-view .workshop-results,
.directory-grid.is-map-view .applied-filters { display: none; }
.discovery-map { height: 420px; min-height: 280px; }
.search-bar { max-width: 920px; }
.workshop-card { grid-template-columns: 104px minmax(0, 1fr); gap: 16px; padding: 14px 0; }
.workshop-card-photo { height: 104px; }
.workshop-card-content { gap: 6px; }
.workshop-card-top { gap: 4px; }
.card-address, .card-description, .workshop-address-note { margin: 0; }
.workshop-card-bottom { padding-top: 2px; }
.workshop-map-marker { cursor: pointer; }
.leaflet-popup-content { min-width: 160px; }
.leaflet-popup-content a { display: inline-block; margin-top: 5px; color: #b53d0e; font-weight: 600; }
@media (max-width: 1100px) {
  .directory-grid { grid-template-columns: 200px minmax(0, 1fr); }
  .map-column { grid-column: 2; grid-row: 2; }
}
@media (max-width: 760px) {
  .directory-grid { display: flex; flex-direction: column; }
  .filter-panel, .result-column, .map-column { width: 100%; }
  .map-column { order: 2; margin-top: 0; }
  .discovery-map { height: 340px; }
  .workshop-card { grid-template-columns: 84px minmax(0, 1fr); gap: 12px; padding: 12px 0; }
  .workshop-card-photo { height: 84px; }
}

.filter-multi-group { min-width: 0; border: 1px solid var(--line); border-radius: 6px; background: #fff; }
.filter-multi-group summary { display: flex; justify-content: space-between; gap: 8px; padding: 10px 12px; cursor: pointer; font-size: 13px; font-weight: 600; }
.filter-multi-group summary small { color: var(--muted); font-size: 11px; font-weight: 400; }
.filter-multi-options { display: grid; gap: 8px; max-height: 220px; overflow-y: auto; padding: 8px 12px 12px; border-top: 1px solid var(--line); }
.filter-multi-options label { display: flex; align-items: flex-start; gap: 8px; cursor: pointer; font-size: 12px; line-height: 1.45; }
.filter-multi-options input[type="checkbox"] { flex: 0 0 16px; width: 16px; height: 16px; min-height: 16px; margin: 1px 0 0; padding: 0; accent-color: var(--orange); }
@media (max-width: 520px) {
  .filter-panel form { grid-template-columns: 1fr; }
}
.directory-pagination{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:16px;padding:22px 0;color:#667282;font-size:14px}
.directory-pagination>div{display:flex;align-items:center;gap:16px}
.directory-pagination a{color:#18212d;font-weight:600;text-decoration:none;padding:10px 14px;border:1px solid #dbe1e6;border-radius:6px}
.directory-pagination a:hover{background:#f2f5f7}
.workshop-map-marker.is-cluster{background:#18212d;color:#fff;border-color:#fff;min-width:36px;font-size:12px}
