/* OutList listing and card refresh (Directories Pro, classic directory only). Loads after directories-pro.css
   when CSS > "OutList listing and card refresh" is on. Pills are built by directories-pro-listing.js. */
/* Cards: icons and badge text follow the membership color (coral Transformed, green Empowered, blue Elevated) */
.drts .drts-view-entity-container .drts-entity-featured-5 .drts-entity-field-label,
.drts .drts-view-entity-container .drts-entity-featured-5 .drts-entity-field-label i,
.drts .drts-view-entity-container .drts-entity-featured-5 i.fas,.drts .drts-view-entity-container .drts-entity-featured-5 i.far{color:var(--ocdp-green) !important}
.drts .drts-view-entity-container .drts-entity-featured-1 .drts-entity-field-label,
.drts .drts-view-entity-container .drts-entity-featured-1 .drts-entity-field-label i,
.drts .drts-view-entity-container .drts-entity-featured-1 i.fas,.drts .drts-view-entity-container .drts-entity-featured-1 i.far{color:#2f86c9 !important}
/* Specialty line reads like the other details */
.drts .drts-view-entity-container .drts-display-element-entity_field_directory_category-1,
.drts .drts-view-entity-container .drts-display-element-entity_field_directory_category-1 a{color:var(--ocdp-ink) !important;opacity:1}
/* Pagination: even circles */
.drts .drts-bs-pagination{gap:6px;flex-wrap:wrap}
.drts .drts-bs-pagination .drts-bs-page-link{min-width:42px;height:42px;padding:0 12px !important;display:inline-flex;align-items:center;justify-content:center;border-radius:999px !important;margin:0 !important;border:1.5px solid #cfe3dc !important;font-weight:600}

/* Listing page: buttons keep their original look (coral review, green booking, 15px corners, white icons) */
.drts .drts-display--detailed .directory-listing-buttons .drts-bs-btn{opacity:1 !important;border-radius:15px !important;padding:12px 20px !important;font-weight:700 !important;border:0 !important;color:#fff !important}
.drts .drts-display--detailed .directory-listing-buttons .drts-bs-btn-outline-primary{background:var(--ocdp-coral) !important}
.drts .drts-display--detailed .directory-listing-buttons .drts-bs-btn-outline-dark{background:var(--ocdp-green) !important}
.drts .drts-display--detailed .directory-listing-buttons .drts-bs-btn i{color:#fff !important}
/* Listing page header: photo to the left of the name, rating and buttons (built by directories-pro-listing.js) */
.drts .drts-display--detailed .ocp-dp-head{display:grid;grid-template-columns:210px 1fr;column-gap:32px;align-items:center;margin:0 0 30px}
.drts .drts-display--detailed .ocp-dp-head__photo .drts-entity-field{display:block !important}
.drts .drts-display--detailed .ocp-dp-head__photo .drts-entity-field-label{display:none !important}
.drts .drts-display--detailed .ocp-dp-head__photo div{width:100% !important;max-width:none !important;float:none !important;margin:0 !important}
.drts .drts-display--detailed .ocp-dp-head__photo img{display:block;width:100% !important;max-width:none !important;height:auto !important;aspect-ratio:1;object-fit:cover;border-radius:20px}
.drts .drts-display--detailed .ocp-dp-head__main{min-width:0;display:flex;flex-direction:column;align-items:flex-start;gap:10px}
.drts .drts-display--detailed .ocp-dp-head__main .post-title{margin:0 !important;padding:0 !important}
.drts .drts-display--detailed .ocp-dp-head__main .post-title h2{margin:0 !important}
.drts .drts-display--detailed .ocp-dp-head__main > .drts-display-element{margin:0 !important}
.drts .drts-display--detailed .ocp-dp-head__main .directory-listing-admin-buttons{position:absolute;right:0;top:0}
.drts .drts-display--detailed .ocp-dp-head{position:relative}
.drts .drts-display--detailed .ocp-dp-photo-src{display:none !important}
@media (max-width:640px){
 .drts .drts-display--detailed .ocp-dp-head{grid-template-columns:1fr !important;row-gap:14px;align-items:start !important}
 .drts .drts-display--detailed .ocp-dp-head__photo img{border-radius:18px}
 .drts .drts-display--detailed .ocp-dp-head__main{gap:10px;width:100%}
 .drts .drts-display--detailed .ocp-dp-head .post-title h2{font-size:28px !important;line-height:1.2 !important}
 .drts .drts-display--detailed .ocp-dp-head .directory-listing-buttons{width:100%;margin-top:4px !important}
 .drts .drts-display--detailed .ocp-dp-head .directory-listing-buttons .drts-bs-btn-group,.drts .drts-display--detailed .ocp-dp-head .directory-listing-buttons > div{display:flex !important;flex-wrap:wrap;gap:8px;width:100%}
 .drts .drts-display--detailed .ocp-dp-head .directory-listing-buttons .drts-bs-btn{flex:1 1 140px;margin:0 !important;justify-content:center}
 .drts .drts-display--detailed .ocp-dp-head .directory-listing-admin-buttons{position:static !important}
}
.drts .drts-display--detailed .directory-listing-contact-info .drts-bs-list-group-item{padding:5px 0 !important;line-height:1.45}
/* Long location lists: three lines, then "Show all locations" */
.drts .drts-display--detailed .ocp-dp-clamp.is-clamped .ocp-dp-clamp__text{display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
.drts .drts-display--detailed .ocp-dp-clamp__more{display:inline-block;border:0;background:none;padding:2px 0 0;color:var(--ocdp-green);font-weight:700;font-size:14px;cursor:pointer;text-decoration:underline;text-underline-offset:3px}
/* Listing page: original icon colors (undo the coral override) */
.drts .drts-display--detailed .drts-entity-fieldlist .drts-entity-field-label i{color:inherit !important}

/* Practices & policies and completed trainings as compact pills */
.drts .drts-display--detailed .ocp-dp-pills{margin-top:28px !important}
.drts .drts-display--detailed .ocp-dp-pills .drts-entity-field-label{display:block;font-weight:700;font-size:17px;color:var(--ocdp-ink);margin:0 0 16px !important}
.drts .drts-display--detailed .ocp-dp-pills .drts-entity-field-value{display:flex !important;flex-wrap:wrap;gap:8px}
.drts .drts-display--detailed .ocp-dp-pills .drts-row{display:contents}
.drts .drts-display--detailed .ocp-dp-pill{display:inline-flex !important;align-items:center;gap:7px;max-width:100%;flex:0 1 auto !important;width:auto !important;margin:0 !important;padding:7px 14px !important;border-radius:999px;background:#f2f8f6;border:1px solid #d9e7e2;color:var(--ocdp-ink);font-size:14px;line-height:1.35;font-weight:500}
.drts .drts-display--detailed .ocp-dp-pill .fa-stack{display:none}
.drts .drts-display--detailed .ocp-dp-pill:before{content:"";flex:none;width:14px;height:14px;background:var(--ocdp-green);-webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7'/%3E%3C/svg%3E") center/contain no-repeat;mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7'/%3E%3C/svg%3E") center/contain no-repeat}
.drts .drts-display--detailed .ocp-dp-pills--train .ocp-dp-pill{background:#fff6f5;border-color:#f6d3cf;font-weight:600}
.drts .drts-display--detailed .ocp-dp-pills--train .ocp-dp-pill:before{background:var(--ocdp-coral)}
.drts .drts-display--detailed .ocp-dp-pills.is-clipped .ocp-dp-pill.is-extra{display:none !important}
.drts .drts-display--detailed .ocp-dp-more{border:0;background:none;padding:7px 4px;color:var(--ocdp-green);font-weight:700;font-size:14px;cursor:pointer;text-decoration:underline;text-underline-offset:3px}

/* Keep searching box: every field gets the same border */
.drts .drts-search-form .drts-search-form-field input.drts-bs-form-control.drts-search-keyword-text,
.drts .drts-search-form .drts-search-form-field input.drts-bs-form-control.drts-location-text-input{border:1px solid #dcd6cc !important;border-radius:999px !important;background:#fff !important;min-height:46px;padding-left:44px !important}
.drts .drts-search-form .drts-search-form-field .select2-container .select2-selection{min-height:46px;display:flex;align-items:center}
.drts .drts-search-form .drts-row{row-gap:10px}
.drts .drts-search-form .drts-bs-btn{min-height:46px}
/* Listing pages: no Previous / Next links (theme's single post navigation) */
body[class*="single-outlist_dir"] .single_post_navigation,body[class*="single-outlist_dir"] .single_post_navigation_bottom,body[class*="single-outlist_dir"] a.next_project,body[class*="single-outlist_dir"] a.previous_project{display:none !important}
