.pb-directory .pb-dir-title { margin-bottom: 18px; }
.pb-directory .pb-dir-count { color: #777; font-size: 14px; margin-bottom: 14px; margin-top: 6px; }
.pb-dir-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 18px; }
.pb-dir-card { display: flex; gap: 14px; padding: 10px; border: 1px solid #e6e6e6; border-radius: 8px; background: #fff; transition: box-shadow .15s ease; height: 140px !important; }
.pb-dir-card:hover { box-shadow: 0 2px 10px rgba(0,0,0,.08); }
.pb-dir-card-img { flex: 0 0 72px; }
.pb-dir-card-img img { width: 72px; height: 72px; object-fit: cover; border-radius: 6px; display: block; }
.pb-dir-card-body { flex: 1 1 auto; min-width: 0; }
.pb-dir-card-body h3 { font-size: 16px; line-height: 1.3; margin: 0 0 6px; }
.pb-dir-card-body h3 a { color: #222; text-decoration: none; }
.pb-dir-card-body h3 a:hover { color: #ea723d; }
.pb-dir-verified { color: #1a9c4a; font-size: 14px; margin-left: 4px; }
.pb-dir-meta { font-size: 12px; color: #888; margin: 0 0 4px; }
.pb-dir-addr { font-size: 13px; color: #c2c2c2; margin: 0 0 4px; }
.pb-dir-score { font-size: 11px; color: #bbb; margin: 0; }
.pb-dir-agency .pb-dir-card-img img { border-radius: 4px; }
.pb-dir-filter { text-align: left; }
.pb-dir .rh_map { height: 600px; width: 100%; position: relative; }
.pb-dir .rh_map #pb-dir-map { width: 100%; height: 100%; }
@media (max-width: 1023px) { .pb-dir .rh_map { height: 400px; } }
.pb-dir-chips { margin: 0 0 10px; }
.pb-dir-chip { display: inline-block; background: #eef6f5; border: 1px solid #cfe3e0; border-radius: 14px; padding: 3px 10px; margin: 0 6px 6px 0; font-size: 13px; }
.pb-dir-chip i { font-style: normal; margin-left: 6px; cursor: pointer; color: #888; }
.pb-dir-chip i:hover { color: #c00; }
.pb-dir-chip-clear { display: inline-block; font-size: 12px; color: #888; cursor: pointer; text-decoration: underline; }
.pb-dir-type-btns { display: flex; gap: 6px; margin: 10px 8px 14px;}
.pb-dir-type:not(.pb-active):hover { color: #ea723d; border-color: #ea723d; }
.pb-dir-type { flex: 1 1 auto; padding: 7px 4px; font-size: 13px; border: 1px solid #d8d8d8; background: #fff; border-radius: 5px; cursor: pointer; color: #000; }
.pb-dir-type.pb-active { background: #1ea69a; border-color: #1ea69a; color: #fff; }
#pb-dir-keyword { width: 93%; padding: 9px 10px; font-size: 13px; border: 1px solid #d8d8d8; border-radius: 5px; margin: 13px 0px 15px 10px;}
#pb-dir-keyword:focus { outline: none; border-color: #1ea69a; }

/* Mobile drawer, mirroring the properties filter panel */
@media (max-width: 1023px) {
  .pb-dir .pb-dir-filter {
    position: fixed;
    top: 2px;
    left: calc(-1 * min(320px, 85vw));
    height: calc(100dvh - 2px);
    width: min(320px, 85vw);
    background: #fff;
    box-shadow: 2px 0 14px rgba(0,0,0,.22);
    border-top-right-radius: 14px;
    z-index: 9999;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: 15px 5px 40px;
    margin: 0;
    transform: translate3d(0,144px,0);
    transition: left .28s ease;
    will-change: transform, left;
    border-top: 2px solid grey;
  }
  .pb-dir .pb-dir-filter.pb-filter-open { left: 0; }
}
@media (min-width: 768px) and (max-width: 1023px) {
  .pb-dir { --pb-travel: 84px; }
}
@media (max-width: 767px) {
  .pb-dir { --pb-travel: 135px; }
}

.pb-dir .widget_properties_filter_widget .filter-wrapper h4 {
    margin: 0 1px 1px;
}
@media (min-width: 1024px) {
   .pb-dir  .rh_page__main {
	padding-left: 2rem;
	padding-right: 0rem;
}}

@media (max-width: 1024px) {
    .pb-dir .rh_page__main {
        padding-left: 2rem !important;
		padding-right: 0rem !important;
    }}
	
@media (max-width: 558px) {
    .pb-dir .rh_wrap--padding {
        padding-left: 2rem !important;
		padding-right: 0rem !important;
    }
}@media (max-width: 1023px) {
  .pb-dir .rh_page__sidebar { padding: 0; margin: 0; min-height: 0; }
  .pb-dir .pb-dir-intro { display: none; }
}

/* Sidebar intro line */
.pb-dir-intro { text-align: left; margin-top: -2px; margin-bottom: 4rem;}.pb-dir-filter .property-filters .collapse-button { color: var(--rh-global-color-primary); 
}

/* Page 20566 — separator and notification bar above properties listing */
body.pb-dir #directory-listing { position: relative; }
body.pb-dir #directory-listing::before {
    content: "";
	margin-top:-14px !important;
	border-top: 1px solid grey;
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100vw;
    max-width: none;
    height: 15px;
    background: #f7f7f7;
}

body.pb-dir #directory-listing::before { margin-top: 0px; }

body.pb-dir #directory-listing {
    position: relative;
	padding-top: 10px;
}
/* Faded frame around the directory map */
.pb-dir .rh_map { position: relative; }
/*
.pb-dir .rh_map .pb-dir-fade {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 1;
    background:
        linear-gradient(to right, rgba(247,247,247,0.88) 0, rgba(247,247,247,0) 50px),
        linear-gradient(to left, rgba(247,247,247,0.88) 0, rgba(247,247,247,0) 50px),
        linear-gradient(to bottom, rgba(247,247,247,0.88) 0, rgba(247,247,247,0) 50px),
        linear-gradient(to top, rgba(247,247,247,0.88) 0, rgba(247,247,247,0) 50px);
}
*/
.pb-dir .gm-style-iw-chr { height: 0; min-height: 0; }
.pb-dir .gm-style-iw-chr button { position: absolute !important; top: -7px; right: -7px; z-index: 5; }
.pb-dir .gm-style-iw-d { padding-right: 16px; padding-top: 13px; min-width: 220px;}
.pb-dir .gm-style .gm-style-iw-c:has(.pb-dir-iw-edge) + .gm-style-iw-tc { display: none; }
.pb-dir .pb-iw-link { display: block; text-decoration: none; color: inherit; overflow: hidden; }
.pb-dir .pb-iw-link strong { color: #222; font-weight: 700; }
.pb-dir .pb-iw-link:hover strong { color: #ea723d; font-weight: 700; }
/* Infinite scroll sentinel, matching the properties page */
.pb-infinite-sentinel { width: 100%; clear: both; padding: 20px 0 50px; text-align: center; }
.pb-infinite-msg { display: none; align-items: center; justify-content: center; gap: 12px; color: #777; font-size: 14px; }
.pb-infinite-msg.pb-on { display: flex; }
.pb-infinite-end { display: none; color: #999; font-size: 14px; }
.pb-infinite-end.pb-on { display: block; }
.pb-end-title { font-size: 15px; color: #777; }
.pb-end-sub { margin-top: 22px; font-style: italic; color: #999; font-size: 14px; }
.pb-end-actions { margin-top: 10px; display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.pb-end-btn { border: 1px solid var(--rh-global-color-primary-dark); background: transparent; color: var(--rh-global-color-primary-dark); padding: 8px 16px; border-radius: 4px; font-size: 14px; line-height: 1.2; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; }
.pb-end-btn:hover { background: var(--rh-global-color-primary-dark); color: #fff; }
.pb-end-links { margin-top: 24px; display: none; gap: 18px; justify-content: center; flex-wrap: wrap; font-size: 13px; }
.pb-end-links.pb-on { display: flex; }
.pb-end-links a { color: #888; text-decoration: underline; cursor: pointer; }
.pb-end-links a:hover { color: var(--rh-global-color-primary-dark); }
.pb-infinite-spinner { display: inline-block; width: 26px; height: 26px; border-radius: 50%; box-sizing: border-box; border: 4px solid rgba(0,0,0,0); border-top-color: var(--rh-global-color-primary-dark); animation: pb-loading-ring 1.2s cubic-bezier(0.5,0,0.5,1) infinite; }
@keyframes pb-loading-ring { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }

/* Card layout: fixed height, badge top-right, score under the image */
.pb-dir-card { position: relative; }
.pb-dir-card-img { flex: 0 0 72px; text-align: center; }
.pb-dir-score { margin: 8px 0 0; font-size: 10px; color: #bbb; line-height: 1.2; }
.pb-dir-score span { display: block; }
.pb-dir-score strong { display: block; font-size: 13px; color: #c0c0c0; font-weight: 500; }
.pb-dir-verified { position: absolute; top: -3px; left: -3px; margin: 0; line-height: 1; z-index: 2; }
.pb-dir-verified .rh_main_verification__icon { position: static; display: block; padding-top: 5px; }
.pb-dir-verified svg { width: 14px; height: 14px; display: block; }
.pb-dir-card-body { overflow: hidden; }
.pb-dir-addr { overflow: hidden; }
.pb-dir-verified .rh_main_verification__icon svg {
    margin-left: 5px;
}
/* Directory switcher — straddles the seam between map and listing */
.pb-dir-switch-wrap { position: relative; z-index: 6; height: 0; overflow: visible; display: flex; align-items: flex-start; justify-content: center; margin: 0; padding: 0; }
.pb-dir-switch { display: inline-flex; transform: translateY(-50%); border-radius: 22px; overflow: hidden; box-shadow: 0 2px 12px rgba(0,0,0,.28); margin-top: -14px; }
.pb-dir-switch-btn { display: block; padding: 8px 28px; font-size: 13px; font-weight: 700; letter-spacing: .05em; text-decoration: none; color: #6f6f6f; background: #e9e9e9; line-height: 1; transition: background .18s ease, color .18s ease, box-shadow .18s ease; }
.pb-dir-switch-btn + .pb-dir-switch-btn { border-left: 1px solid rgba(0,0,0,.09); }
.pb-dir-switch-btn:hover { background: #dedede; color: #333; }
.pb-dir-switch-btn.pb-active { background: #ea723d; color: #fff; box-shadow: 0 0 14px rgba(234,114,61,.6); }
.pb-dir-switch-btn.pb-active:hover { background: #ea723d; color: #fff; }
@media (max-width: 767px) { .pb-dir-switch-btn { padding: 9px 15px; font-size: 11px; letter-spacing: .03em; } }
@media (max-width: 400px) { .pb-dir-switch-btn { padding: 8px 10px; font-size: 10px; } }

/* Sector accordion — business directory categories */
.pb-dir-sectors { margin-top: 12px; margin-bottom: 14px; }
.pb-sector-group + .pb-sector-group { margin-top: 6px; }
.pb-sector-head { display: flex; align-items: stretch; border: 1px solid #efdbd0; border-radius: 6px; overflow: hidden; background: #fff; }
.pb-sector-pick { flex: 1 1 auto; text-align: left; padding: 8px 13px; font-size: 16px; font-weight: 500; color: #b4551f; background: transparent; border: 0; cursor: pointer; }
.pb-sector-pick:hover { background: #fdf1ea; }
.pb-sector-toggle { flex: 0 0 40px; border: 0; border-left: 1px solid #f3e4da; background: #fdf1ea; cursor: pointer; }
.pb-sector-toggle i { display: block; width: 7px; height: 7px; margin: 0 auto; border-right: 2px solid #ea723d; border-bottom: 2px solid #ea723d; transform: rotate(45deg) translateY(-2px); transition: transform .18s ease; }
.pb-sector-toggle[aria-expanded="true"] i { transform: rotate(-135deg) translateY(-2px); }
.pb-sector-group.pb-on .pb-sector-head { border-color: #ea723d; }
.pb-sector-group.pb-on .pb-sector-pick { background: #ea723d; color: #fff; }
.pb-sector-kids { display: none; padding: 9px 8px 5px; }
.pb-sector-group.pb-open .pb-sector-kids { display: flex; flex-wrap: wrap; gap: 6px; }
.pb-sector-kid { border: 1px solid #e4e4e4; background: #fafafa; color: #575757; font-size: 12px; line-height: 1.2; padding: 6px 11px; border-radius: 20px; cursor: pointer; }
.pb-sector-kid:hover { border-color: #ea723d; color: #b4551f; background: #fff; }
.pb-sector-kid.pb-on { background: #ea723d; border-color: #ea723d; color: #fff; }

/* Business verified badge */
.pb-dir-verified .pb-biz-check { color: #2fbf71; font-size: 17px; line-height: 1; }

/* Card meta — allow two rows of categories */
.pb-dir-meta { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* Single business profile */
.pb-biz-single .pb-biz-head { display: flex; gap: 18px; align-items: flex-start; margin-bottom: 18px; }
.pb-biz-single .pb-biz-logo { width: 110px; height: 110px; object-fit: contain; background: #fff; border: 1px solid #eee; border-radius: 6px; padding: 6px; }
.pb-biz-single h1 { margin: 0 0 6px; font-size: 27px; line-height: 1.2; }
.pb-biz-single .pb-biz-badge { display: inline-block; vertical-align: middle; margin-left: 8px; }
.pb-biz-cats a { display: inline-block; margin: 0 6px 6px 0; padding: 5px 11px; border-radius: 20px; background: #fdf1ea; color: #b4551f; font-size: 12px; font-weight: 700; text-decoration: none; }
.pb-biz-cats a:hover { background: #ea723d; color: #fff; }
.pb-biz-tags span { display: inline-block; margin: 0 5px 5px 0; padding: 4px 9px; border: 1px solid #e4e4e4; border-radius: 20px; font-size: 11px; color: #666; }
.pb-biz-card { background: #fff; border: 1px solid #ececec; border-radius: 6px; padding: 16px 18px; margin-bottom: 16px; }
.pb-biz-card h4 { margin: 0 0 10px; }
.pb-biz-contact { list-style: none; margin: 0; padding: 0; }
.pb-biz-contact li { padding: 7px 0; border-top: 1px solid #f2f2f2; font-size: 13px; }
.pb-biz-contact li span { display: block; font-size: 11px; text-transform: uppercase; letter-spacing: .04em; color: #999; }
.pb-biz-claim { margin: 12px 0 0; font-size: 13px; }
#pb-biz-map { width: 100%; height: 260px; border-radius: 6px; }
