.directory { background: #fff; color: #111; }
.directory .site-header .wrap { display: flex; align-items: center; gap: 16px; }
.directory .langs { display: flex; gap: 10px; margin-inline-start: auto; }
.directory .langs a { text-decoration: none; color: inherit; }
.directory .langs a[aria-current="true"] { font-weight: 700; text-decoration: underline; }
.directory .site-header { height: auto; }
.directory .site-header .wrap { height: auto; min-height: 56px; flex-wrap: wrap; padding-block: 8px; }
.searchbox { position: relative; }
#q { width: 100%; max-width: 100%; height: 44px; border: 1px solid #111; border-radius: 8px; padding: 0 12px; margin: 8px 0 4px; box-sizing: border-box; background: #fff; color: #111; }
#suggest { list-style: none; margin: 0; padding: 0; border: 1px solid #111; background: #fff; position: absolute; inset-inline: 0; top: 100%; z-index: 6; max-height: 320px; overflow: auto; }
#suggest a { display: block; padding: 10px 12px; color: inherit; text-decoration: none; border-bottom: 1px solid #eee; }
#suggest a.sug-pro { display: flex; align-items: center; gap: 10px; }
#suggest img, #suggest .ph { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; background: #111; color: #fff; display: grid; place-items: center; flex: none; font-weight: 700; }
#suggest a:hover, #suggest a:focus { background: #111; color: #fff; }
.leaflet-popup-content-wrapper { border-radius: 8px; }
.leaflet-popup-content { width: 240px; max-height: 280px; overflow: auto; margin: 8px 12px; }
.leaflet-popup-content a { color: #111; text-decoration: none; }
.pin-city { font-weight: 700; margin: 0 0 4px; }
.pin-card { display: grid; grid-template-columns: 72px 1fr; gap: 8px; align-items: center; padding: 8px 0; border-top: 1px solid #eee; }
.pin-card img, .pin-card .ph { width: 72px; height: 54px; object-fit: cover; background: #111; color: #fff; display: grid; place-items: center; }
.pin-card b { display: block; font-size: 14px; line-height: 18px; }
.pin-card .stars { font-size: 12px; line-height: 16px; }
.marker-cluster-small, .marker-cluster-medium, .marker-cluster-large { background-color: rgba(17, 17, 17, 0.28); }
.marker-cluster-small div, .marker-cluster-medium div, .marker-cluster-large div { background-color: #111; color: #fff; font-family: inherit; }
#dir-map { height: 420px; margin: 8px 0 16px; background: #f7f7f7; }
.pro-card[hidden], #grid[hidden], #dir-map[hidden], #none-search[hidden] { display: none !important; }
.pro-card a { color: inherit; text-decoration: none; display: block; }
.pro-card .btn { margin: 12px 12px 0; }
.directory dialog.sheet { width: min(560px, calc(100% - 24px)); border: 1px solid #111; padding: 16px; background: #fff; color: #111; }
.directory .quote-form { display: grid; gap: 12px; }
.directory .quote-form input, .directory .quote-form select, .directory .quote-form textarea { width: 100%; box-sizing: border-box; }
.directory .wrap { max-width: 1080px; margin: 0 auto; padding: 20px 16px 48px; }
.directory h1 { font-size: 28px; line-height: 34px; margin: 8px 0; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 18px; }
.filters select, .filters a, .filters button {
  border: 1px solid #111; background: #fff; color: #111; border-radius: 16px;
  min-height: 32px; padding: 0 12px; text-decoration: none; font: inherit; font-size: 13px;
}
.filters a.on, .filters button.on { background: #111; color: #fff; }
.pro-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }
.pro-card { display: block; color: inherit; text-decoration: none; border: 1px solid #eee; border-radius: 8px; overflow: hidden; background: #fff; }
.card-cover { position: relative; }
.card-cover img, .card-cover .ph { width: 100%; height: 160px; object-fit: cover; background: #111; color: #fff; display: grid; place-items: center; }
.card-save {
  position: absolute; top: 8px; inset-inline-end: 8px; width: 36px; height: 36px; border-radius: 50%;
  border: 1px solid #111; background: #fff; color: #111; display: grid; place-items: center; padding: 0; cursor: pointer;
}
.card-save svg { width: 18px; height: 18px; }
.card-save[aria-pressed="true"] svg path { fill: currentColor; }
.strip { display: flex; gap: 2px; }
.strip img { width: 33.33%; height: 56px; object-fit: cover; }
.card-body { padding: 12px; }
.pro-card h2 { font-size: 18px; line-height: 24px; margin: 0; }
.stars { letter-spacing: 0; }
.star-row { display: inline-flex; gap: 1px; vertical-align: -2px; }
.star-row .star { width: 14px; height: 14px; }
.star-row .star path { fill: none; stroke: #111; stroke-width: 1.2; }
.star-row .star.on path { fill: #111; }
.tag { display: inline-block; background: #111; color: #fff; border-radius: 4px; padding: 1px 6px; font-size: 12px; }
.empty-box { color: #666; padding: 24px 0; }
@media (max-width: 640px) {
  .directory h1 { font-size: 24px; }
  .pro-grid { grid-template-columns: 1fr; }
}
