/* =========================================
   Directory pages: category archives and the main directory
   Cards (DP "summary-infobox" display) and the results grid.
   Desktop: 4 across, Spotlight cards larger (3 across); tablets 2; phones 1.
   ========================================= */

.drts-view-entities-list-grid,
.drts-view-entities-footer,
.drts-view-entities-header,
.drts-view-entities-filter-form {
    --plb-primary: #c5a56d;
    --plb-accent: #fbc846;
    --plb-text: #07071d;
    --plb-text-muted: #55555f;
    --plb-secondary: #adadad;
    --plb-line: #eee9e0;
}

/* -----------------------------------------
   1. Grid: 12 columns; normal cards span 3 (4 across), Spotlight span 4 (3 across).
   Spotlight cards come first (tier sort). If they don't fill their last row, the first
   regular cards in that row take Spotlight width, so every row is full and in order.
   ----------------------------------------- */
.drts-view-entities-list-grid > .drts-row {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 28px 24px;
    margin: 0 !important;
}
.drts-view-entities-list-grid > .drts-row > .drts-view-entity-container {
    grid-column: span 3;
    width: auto;
    max-width: none;
    margin: 0 !important;
    padding: 0 !important;
}
.drts-view-entities-list-grid > .drts-row > .drts-view-entity-container:has(.plb-tier-spotlight) {
    grid-column: span 4;
}
@media (min-width: 1101px) {
    /* 2 Spotlight cards in the last Spotlight row (first regular card is child 3n): it fills the row */
    .drts-view-entities-list-grid > .drts-row > .drts-view-entity-container:has(.plb-tier-spotlight) + .drts-view-entity-container:not(:has(.plb-tier-spotlight)):nth-child(3n),
    /* 1 Spotlight card in the last row (first regular card is child 3n+2): it and the next fill the row */
    .drts-view-entities-list-grid > .drts-row > .drts-view-entity-container:has(.plb-tier-spotlight) + .drts-view-entity-container:not(:has(.plb-tier-spotlight)):nth-child(3n+2),
    .drts-view-entities-list-grid > .drts-row > .drts-view-entity-container:has(.plb-tier-spotlight) + .drts-view-entity-container:not(:has(.plb-tier-spotlight)):nth-child(3n+2) + .drts-view-entity-container {
        grid-column: span 4;
    }
}
@media (max-width: 1100px) {
    .drts-view-entities-list-grid > .drts-row > .drts-view-entity-container,
    .drts-view-entities-list-grid > .drts-row > .drts-view-entity-container:has(.plb-tier-spotlight) {
        grid-column: span 6;
    }
}
@media (max-width: 640px) {
    .drts-view-entities-list-grid > .drts-row {
        gap: 24px;
    }
    .drts-view-entities-list-grid > .drts-row > .drts-view-entity-container,
    .drts-view-entities-list-grid > .drts-row > .drts-view-entity-container:has(.plb-tier-spotlight) {
        grid-column: 1 / -1;
    }
}

/* -----------------------------------------
   2. Card: photo on top, details below; the whole card is the link
   ----------------------------------------- */
.drts-view-entities-list-grid .drts-display--summary-infobox {
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
    border: 1px solid var(--plb-line) !important;
    border-radius: 12px;
    background: #fff;
    transition: box-shadow 0.2s, transform 0.2s;
}
@media (hover: hover) {
    .drts-view-entities-list-grid .drts-display--summary-infobox:hover {
        box-shadow: 0 8px 24px rgba(7, 7, 29, 0.1);
        transform: translateY(-2px);
    }
}
@media (prefers-reduced-motion: reduce) {
    .drts-view-entities-list-grid .drts-display--summary-infobox {
        transition: none;
    }
}
/* Stack the photo column over the text column */
.drts-view-entities-list-grid .drts-display--summary-infobox > [data-name="columns"],
.drts-view-entities-list-grid .drts-display--summary-infobox > [data-name="columns"] > .drts-row {
    display: flex;
    flex-direction: column;
    flex: 1;
    margin: 0;
}
.drts-view-entities-list-grid .drts-display--summary-infobox [data-name="column"] {
    position: static; /* DP makes columns relative, which would keep the name's link (below) off the photo */
    flex: none;
    width: 100%;
    max-width: none;
}

/* Photo: 4:3, filled */
.drts-view-entities-list-grid .directory-listing-photo {
    position: relative;
    aspect-ratio: 4 / 3;
    margin: 0 !important;
    overflow: hidden;
    background: #f2efea;
}
.drts-view-entities-list-grid .directory-listing-photo img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s;
}
@media (hover: hover) {
    .drts-view-entities-list-grid .drts-display--summary-infobox:hover .directory-listing-photo img {
        transform: scale(1.04);
    }
}
/* DP's manual "Featured" label: tiers drive placement now, and Spotlight has its own badge */
.drts-view-entities-list-grid .directory-listing-labels {
    display: none !important;
}
/* Spotlight badge */
.drts-view-entities-list-grid .plb-tier-spotlight .directory-listing-photo::after {
    content: "Spotlight";
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 4px 10px;
    border-radius: 999px;
    background: var(--plb-primary);
    color: var(--plb-text);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    box-shadow: 0 2px 6px rgba(7, 7, 29, 0.2);
}

/* Text */
.drts-view-entities-list-grid .directory-listing-main {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 14px 16px 16px !important;
}
.drts-view-entities-list-grid .directory-listing-main > * {
    margin: 0 !important;
}
.drts-view-entities-list-grid .directory-listing-title {
    font-size: 20px !important; /* DP sets 1.2rem inline */
    font-weight: 600;
    line-height: 1.3;
}
.drts-view-entities-list-grid .plb-tier-spotlight .directory-listing-title {
    font-size: 22px !important;
}
.drts-view-entities-list-grid .directory-listing-title > a {
    font-family: var(--et_global_heading_font, "EB Garamond"), Georgia, "Times New Roman", serif; /* on the name only; the card details share this element */
    color: var(--plb-text) !important; /* theme link colour is more specific */
    text-decoration: none;
}
/* Stretch the name's link over the whole card */
.drts-view-entities-list-grid .directory-listing-title > a::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
}
.drts-view-entities-list-grid .directory-listing-title > a:focus-visible {
    outline: none;
}
.drts-view-entities-list-grid .drts-display--summary-infobox:has(.directory-listing-title > a:focus-visible) {
    outline: 3px solid var(--plb-accent);
    outline-offset: 2px;
}

/* Rating · City, ST · price (dot separators that never start a wrapped line) */
.drts-view-entities-list-grid .plb-card-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    margin: 6px 0 0 -16px;
    padding: 0;
    clip-path: inset(0 0 0 16px);
    font-size: 14px;
    font-weight: 500;
    line-height: 1.5;
    color: var(--plb-text);
}
.drts-view-entities-list-grid .plb-card-meta > * {
    white-space: nowrap;
}
.drts-view-entities-list-grid .plb-card-meta > *::before {
    content: "\00B7";
    display: inline-block;
    width: 16px;
    text-align: center;
    color: var(--plb-secondary);
}
.drts-view-entities-list-grid .plb-card-rating {
    font-weight: 600;
}
.drts-view-entities-list-grid .plb-card-star {
    color: #d9a21b;
}
.drts-view-entities-list-grid .plb-card-rating-count {
    font-weight: 400;
    color: var(--plb-text-muted);
}
.drts-view-entities-list-grid .plb-card-capacity {
    margin: 2px 0 0;
    padding: 0;
    font-size: 14px;
    color: var(--plb-text);
}

/* -----------------------------------------
   3. Pagination: centred, separate 44px buttons, current page filled
   ----------------------------------------- */
.drts-view-entities-footer .drts-view-nav {
    display: flex !important; /* DP lays the footer out as a 3-column grid with the pages at the right */
    justify-content: center !important; /* beats DP's .drts-bs-justify-content-between */
    margin-top: 40px !important;
}
.drts-view-entities-footer .drts-view-nav > [data-column]:empty {
    display: none !important;
}
.drts-view-entities-footer .drts-view-nav > [data-column] {
    justify-content: center !important;
    margin: 0 !important;
}
.drts-view-entities-footer .drts-pagination {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
}
.drts-view-entities-footer .drts-pagination .drts-bs-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    height: 44px;
    margin: 0 !important;
    padding: 0 12px;
    border: 1px solid #e7e2d8 !important;
    border-radius: 8px !important; /* DP's button group squares the inner corners */
    background: #fff !important;
    color: var(--plb-text) !important;
    font-size: 15px;
    font-weight: 600;
    box-shadow: none !important;
}
@media (hover: hover) {
    .drts-view-entities-footer .drts-pagination .drts-bs-btn:hover {
        border-color: var(--plb-text) !important;
    }
}
.drts-view-entities-footer .drts-pagination .drts-bs-btn.drts-bs-active {
    border-color: var(--plb-text) !important;
    background: var(--plb-text) !important;
    color: #fff !important;
}
.drts-view-entities-footer .drts-pagination .drts-bs-btn.drts-bs-disabled {
    display: none; /* e.g. "previous" on page 1 */
}
.drts-view-entities-footer .drts-pagination .drts-bs-btn:focus-visible {
    outline: 3px solid var(--plb-accent);
    outline-offset: 2px;
}

/* -----------------------------------------
   4. Toolbar: [Filters (n)] [count] ............ [Sort]
   ----------------------------------------- */
.drts-view-entities-header {
    margin-bottom: 24px !important;
}
/* #main-content: DP's grid utility (.drts-bs-d-sm-grid) won on the main directory page */
#main-content .drts-view-entities-header .drts-view-nav.drts-view-nav,
.drts-view-entities-header .drts-view-nav {
    display: flex !important;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between !important;
    gap: 12px;
    margin: 0 !important;
}
.drts-view-entities-header .drts-view-nav > [data-column] {
    display: flex !important;
    align-items: center;
    gap: 14px !important;
    margin: 0 !important;
}
.drts-view-entities-header .drts-view-nav > [data-column]:empty {
    display: none !important;
}
.drts-view-entities-header .drts-view-nav .drts-bs-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 44px;
    padding: 8px 16px;
    border: 1px solid #d6d1c8 !important;
    border-radius: 8px !important;
    background: #fff !important;
    color: var(--plb-text) !important;
    font-size: 15px;
    font-weight: 600;
    box-shadow: none !important;
}
@media (hover: hover) {
    .drts-view-entities-header .drts-view-nav .drts-bs-btn:hover {
        border-color: var(--plb-text) !important;
    }
}
.drts-view-entities-header .drts-view-nav .drts-bs-btn:focus-visible {
    outline: 3px solid var(--plb-accent);
    outline-offset: 2px;
}
/* DP's pop-up filter button is for the map view; the button styles above would show it */
.drts-view-entities-header .drts-view-nav-item-name-filter-modal {
    display: none !important;
}
/* One bar whichever of DP's three columns each item sits in (views place Sort differently):
   [Filters] [count] ........ [Sort]; phones: [Filters] [Sort], count on its own line */
.drts-view-entities-header .drts-view-nav > [data-column] {
    display: contents !important;
}
.drts-view-entities-header .drts-view-nav-item {
    flex: none !important; /* some views make the Filters button grow */
    width: auto !important;
}
.drts-view-entities-header .drts-view-entities-filters-applied { order: 0; flex-basis: 100% !important; }
.drts-view-entities-header .drts-view-nav-item-name-filter-collapse { order: 1; }
.drts-view-entities-header .drts-view-nav-item-name-num { order: 2; }
.drts-view-entities-header .drts-view-nav-item-name-sort { order: 3; margin-left: auto; }
@media (max-width: 640px) {
    .drts-view-entities-header .drts-view-nav-item-name-sort { order: 2; }
    .drts-view-entities-header .drts-view-nav-item-name-num { order: 3; flex-basis: 100%; }
}
/* "Filters" label on phones too (DP shows only the icon there) */
.drts-view-entities-header .drts-view-nav-item-name-filter-collapse > span:not(.plb-filter-count) {
    display: inline !important;
}
.plb-filter-count {
    display: inline-flex;
    margin-left: 2px;
    align-items: center;
    justify-content: center;
    min-width: 22px;
    height: 22px;
    padding: 0 6px;
    border-radius: 999px;
    background: var(--plb-text);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
}
.drts-view-entities-header .drts-view-nav-item-name-num {
    padding: 0 !important;
    font-size: 15px;
    color: var(--plb-text-muted);
}
/* Applied filters: removable chips */
.drts-view-entities-header .drts-view-entities-filters-applied {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    flex-basis: 100%;
    margin: 0 0 4px !important;
    font-size: 14px;
    color: var(--plb-text-muted);
}
.drts-view-entities-header .drts-view-entities-filters-applied > * {
    margin: 0 !important;
}
.drts-view-entities-header .drts-view-remove-filter.drts-bs-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 36px;
    padding: 4px 12px;
    border: 0 !important;
    border-radius: 999px !important;
    background: #f2efea !important;
    color: var(--plb-text) !important;
    font-size: 14px;
    font-weight: 600;
}
.drts-view-entities-header .drts-view-remove-filter .drts-clear {
    position: static !important; /* DP lays the icon over the end of the label */
    transform: none !important;
    margin: 0 !important;
    color: var(--plb-text-muted) !important;
}
.drts-view-entities-header .drts-view-remove-filter.drts-bs-btn-link {
    background: none !important;
    text-decoration: underline;
}
/* Sort menu */
.drts-view-entities-header .drts-view-nav-item-name-sort .drts-bs-dropdown-menu {
    min-width: 200px;
    padding: 6px;
    border: 1px solid #e7e2d8;
    border-radius: 10px;
    box-shadow: 0 8px 24px rgba(7, 7, 29, 0.12);
}
.drts-view-entities-header .drts-view-nav-item-name-sort .drts-bs-dropdown-item {
    min-height: 40px;
    padding: 8px 12px;
    border-radius: 6px;
    color: var(--plb-text);
    font-size: 15px;
}
.drts-view-entities-header .drts-view-nav-item-name-sort .drts-bs-dropdown-item:hover,
.drts-view-entities-header .drts-view-nav-item-name-sort .drts-bs-dropdown-item:focus {
    background: #f6f3ee;
}

/* -----------------------------------------
   5. Filter panel (desktop: below the toolbar)
   ----------------------------------------- */
.drts-view-entities-filter-form .drts-view-filter-form {
    padding: 24px;
    border: 1px solid #e7e2d8;
    border-radius: 12px;
    background: #fff;
}
.drts-view-entities-filter-form .drts-display > .drts-row {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 28px 32px;
    margin: 0;
}
.drts-view-entities-filter-form .drts-display[data-display-type="filters"],
.drts-view-entities-filter-form .drts-display > .drts-row,
.drts-view-entities-filter-form .drts-display > .drts-row > [class*="drts-col"] {
    border: 0 !important; /* DP draws left/bottom borders around its boxed filter grid */
}
.drts-view-entities-filter-form .drts-display > .drts-row > [class*="drts-col"] {
    width: auto;
    max-width: none;
    padding: 0;
}
.drts-view-entities-filter-form .drts-view-filter-form-card {
    border: 0 !important;
    background: none !important;
}
.drts-view-entities-filter-form .drts-view-filter-form-card > .drts-bs-card-body {
    padding: 0 !important;
}
.drts-view-entities-filter-form .drts-view-filter-field-label {
    margin: 0 0 10px;
    font-size: 15px;
    font-weight: 700;
    color: var(--plb-text);
}
/* Options with no matching vendors: hidden rather than greyed out */
.drts-view-entities-filter-form .drts-form-field-radio-option.drts-bs-disabled {
    display: none !important;
}
.drts-view-entities-filter-form .drts-bs-form-check {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 32px;
    padding-left: 0;
}
.drts-view-entities-filter-form .drts-bs-form-check-input {
    float: none !important; /* DP's form-check floats the box and pulls it left by 1.5em */
    width: 18px;
    height: 18px;
    margin: 0 !important;
    accent-color: var(--plb-text);
}
.drts-view-entities-filter-form .drts-bs-form-check-label {
    font-size: 15px;
    color: var(--plb-text);
    cursor: pointer;
}
.drts-view-entities-filter-form .drts-bs-form-check-label .drts-bs-badge {
    padding: 0;
    background: none !important;
    color: var(--plb-text-muted) !important;
    font-size: 13px;
    font-weight: 400;
}
.drts-view-entities-filter-form .drts-bs-form-check-label .drts-bs-badge::before { content: "("; }
.drts-view-entities-filter-form .drts-bs-form-check-label .drts-bs-badge::after { content: ")"; }
/* Price gets a full row: $0-$100,000 needs the width */
.drts-view-entities-filter-form .drts-display > .drts-row > [class*="drts-col"]:has([data-name="view_filter_field_price_range"]) {
    grid-column: 1 / -1;
}
/* Option lists that DP splits into columns (Business Category) also get a full row,
   so each column is wide enough for its labels */
.drts-view-entities-filter-form .drts-display > .drts-row > [class*="drts-col"]:has(.drts-form-field-main > .drts-bs-row) {
    grid-column: 1 / -1;
}
/* Range sliders */
.drts-view-entities-filter-form .irs-bar {
    background: var(--plb-text) !important;
}
.drts-view-entities-filter-form .irs-from,
.drts-view-entities-filter-form .irs-to,
.drts-view-entities-filter-form .irs-single {
    background: var(--plb-text) !important;
    font-size: 12px;
}
.drts-view-entities-filter-form .irs-from::before,
.drts-view-entities-filter-form .irs-to::before,
.drts-view-entities-filter-form .irs-single::before {
    border-top-color: var(--plb-text) !important;
}
/* Apply */
.drts-view-entities-filter-form .drts-form-buttons {
    display: flex !important;
    justify-content: flex-end;
    margin-top: 24px !important;
    padding-top: 20px;
    border-top: 1px solid #eee9e0;
}
.drts-view-entities-filter-form .drts-view-filter-form-submit {
    min-height: 48px;
    margin: 0 !important;
    padding: 0 28px;
    border: 0 !important;
    border-radius: 8px !important;
    background: var(--plb-accent) !important;
    color: var(--plb-text) !important;
    font-size: 16px !important;
    font-weight: 700;
}

/* -----------------------------------------
   6. Phones: the filter panel as a full-screen sheet (opened by directory.js)
   ----------------------------------------- */
.plb-sheet-head {
    display: none;
}
@media (max-width: 640px) {
    html.plb-filters-open {
        overflow: hidden;
    }
    .drts-view-entities-filter-form.plb-filter-sheet {
        position: fixed;
        inset: 0;
        z-index: 100000;
        display: flex !important;
        flex-direction: column;
        margin: 0 !important;
        background: #fff;
    }
    .plb-filter-sheet .plb-sheet-head {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: max(12px, env(safe-area-inset-top, 0px)) 16px 12px;
        border-bottom: 1px solid #eee9e0;
    }
    .plb-filter-sheet .plb-sheet-title {
        font-size: 20px;
        font-weight: 700;
        color: var(--plb-text);
    }
    .plb-filter-sheet .plb-sheet-close {
        width: 44px;
        height: 44px;
        padding: 0;
        border: 0;
        border-radius: 50%;
        background: #f2efea;
        color: var(--plb-text);
        font: 400 28px/44px sans-serif;
        cursor: pointer;
    }
    .plb-filter-sheet .drts-view-filter-form {
        display: flex;
        flex-direction: column;
        flex: 1;
        min-height: 0;
        padding: 0;
        border: 0;
        border-radius: 0;
    }
    .plb-filter-sheet .drts-view-filter-form > .drts-display {
        flex: 1;
        overflow-y: auto;
        padding: 20px 16px;
        overscroll-behavior: contain;
    }
    .plb-filter-sheet .drts-display > .drts-row {
        grid-template-columns: 1fr;
        gap: 28px;
    }
    .plb-filter-sheet .drts-form-buttons {
        margin: 0 !important;
        padding: 12px 16px calc(12px + env(safe-area-inset-bottom, 0px));
        background: #fff;
        box-shadow: 0 -4px 16px rgba(7, 7, 29, 0.06);
    }
    .plb-filter-sheet .drts-form-buttons > *,
    .plb-filter-sheet .drts-view-filter-form-submit {
        width: 100%;
    }
}

/* -----------------------------------------
   7. Page header (Divi Theme Builder category templates)
   Selectors start with #et-boc: Divi's inline module styles use ".et-db #et-boc .et-l …"
   and an ID outranks classes, even with !important.
   Main categories: title + photo, intro, site search. Subcategories: title only.
   ----------------------------------------- */
#et-boc .et-l.et-l--body .et_pb_section_0_tb_body {
    padding: 0 !important;
    background: #fff !important;
}
#et-boc .et-l.et-l--body .et_pb_section_0_tb_body .et_pb_row,
#et-boc .et-l.et-l--body .et_pb_section_0_tb_body .et_pb_column {
    background: transparent !important; /* the grey title panel */
}
/* Header rows and the listings row share one width (90% of the page container), so the
   title, photo, intro and cards line up. Doubled classes: Divi's per-row styles. */
#et-boc .et-l.et-l--body .et_pb_section_0_tb_body .et_pb_row.et_pb_row,
#et-boc .et-l.et-l--body .et_pb_section_1_tb_body:not(:has(.drts-main)) .et_pb_row.et_pb_row,
#et-boc .et-l.et-l--body .et_pb_section:has(.drts-main) .et_pb_row.et_pb_row:has(.drts-main) {
    width: 90% !important;
    max-width: none !important;
    margin-left: auto !important;
    margin-right: auto !important;
}
#et-boc .et-l.et-l--body .et_pb_section_0_tb_body .et_pb_row.et_pb_row {
    align-items: center;
    padding: 40px 0 8px !important;
}
#et-boc .et-l.et-l--body .et_pb_section_0_tb_body .et_pb_column.et_pb_column {
    justify-content: center;
    align-items: flex-start !important; /* Divi centres the title column's contents */
    margin-bottom: 0 !important;
    padding: 0 !important;
}
/* !important: Divi's per-module styles (.et_pb_text_0_tb_body h1) set a centred light title */
#et-boc .et-l.et-l--body .et_pb_section_0_tb_body .et_pb_text .et_pb_text_inner h1 {
    margin: 0 !important;
    padding: 0 !important;
    font-family: var(--et_global_heading_font, "EB Garamond"), Georgia, "Times New Roman", serif !important; /* the Divi module sets its own */
    font-size: 44px !important;
    font-weight: 500 !important;
    line-height: 1.15 !important;
    text-align: left !important;
    color: #07071d !important;
}
#et-boc .et-l.et-l--body .et_pb_section_0_tb_body .et_pb_text {
    width: 100%;
    margin: 0 !important;
    text-align: left !important;
}
/* The gold underline: short and left-aligned under the title */
#et-boc .et-l.et-l--body .et_pb_section_0_tb_body .et_pb_divider.et_pb_divider {
    width: 64px !important;
    max-width: 64px !important;
    height: 3px !important;
    margin: 14px auto 0 0 !important;
    align-self: flex-start !important;
}
/* Photo as a short banner */
#et-boc .et-l.et-l--body .et_pb_section_0_tb_body .et_pb_image,
#et-boc .et-l.et-l--body .et_pb_section_0_tb_body .et_pb_image_wrap {
    display: block;
    width: 100%;
    margin: 0 !important;
}
#et-boc .et-l.et-l--body .et_pb_section_0_tb_body .et_pb_image img {
    display: block;
    width: 100%;
    height: 300px !important;
    border-radius: 12px;
    object-fit: cover;
}
/* Intro paragraph: two lines, "Read more" added by directory.js */
#et-boc .et-l.et-l--body .et_pb_section_1_tb_body:not(:has(.drts-main)) {
    padding: 20px 0 0 !important;
    background: #fff !important;
}
#et-boc .et-l.et-l--body .et_pb_section_1_tb_body:not(:has(.drts-main)) .et_pb_row {
    padding: 0 !important;
}
#et-boc .et-l.et-l--body .et_pb_section_1_tb_body:not(:has(.drts-main)) .et_pb_text_inner {
    max-width: 860px;
    text-align: left;
    font-size: 16px;
    line-height: 1.65;
    color: #55555f;
}
#et-boc .et-l.et-l--body .et_pb_section_1_tb_body .et_pb_text.et_pb_text {
    padding-left: 0 !important; /* Divi's text box inset: line the intro up with the title and cards */
    padding-right: 0 !important;
    text-align: left !important;
}
.plb-intro-clamped {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
}
.plb-intro-toggle {
    margin: 6px 0 0;
    padding: 0;
    border: 0;
    background: none;
    color: #07071d;
    font: inherit;
    font-size: 15px;
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 3px;
    cursor: pointer;
}
.plb-intro-toggle:focus-visible {
    outline: 2px solid #fbc846;
    outline-offset: 2px;
}
/* Site-wide search box: the filters do directory search. Its row/column carries the grey
   frame, so hide that too when it holds nothing else. */
#et-boc .et-l.et-l--body .et_pb_search,
#et-boc .et-l.et-l--body .et_pb_row:has(> .et_pb_column > .et_pb_search):not(:has(.drts-main)) {
    display: none !important;
}
#et-boc .et-l.et-l--body .et_pb_section_2_tb_body {
    padding-top: 24px !important;
    background: #fff !important;
}
@media (max-width: 980px) {
    #et-boc .et-l.et-l--body .et_pb_section_0_tb_body .et_pb_row {
        padding: 24px 0 4px !important;
    }
    #et-boc .et-l.et-l--body .et_pb_section_0_tb_body .et_pb_text .et_pb_text_inner h1 {
        font-size: 34px !important; /* same selector as the desktop rule, which is !important */
    }
    #et-boc .et-l.et-l--body .et_pb_section_0_tb_body .et_pb_column + .et_pb_column {
        margin-top: 20px !important;
    }
    #et-boc .et-l.et-l--body .et_pb_section_0_tb_body .et_pb_image img {
        height: 170px !important;
    }
    .plb-intro-clamped {
        -webkit-line-clamp: 3;
    }
    /* Less space between the intro and the toolbar */
    #et-boc .et-l.et-l--body .et_pb_section_1_tb_body:not(:has(.drts-main)).et_pb_section {
        padding-bottom: 0 !important;
    }
    #et-boc .et-l.et-l--body .et_pb_section_2_tb_body.et_pb_section {
        padding-top: 20px !important;
    }
}

/* -----------------------------------------
   7b. Main directory page (/wedding-pros/): a regular Divi page with the same
   sections as the category templates, minus the "_tb_body" suffix
   ----------------------------------------- */
#main-content .et-l.et-l--post .et_pb_section_0 {
    padding: 0 !important;
    background: #fff !important;
}
#main-content .et-l.et-l--post .et_pb_section_0 .et_pb_row,
#main-content .et-l.et-l--post .et_pb_section_0 .et_pb_column {
    background: transparent !important; /* the grey title panel */
}
/* Header rows and the listings row share one width (90% of the page container), so the
   title, photo, intro and cards line up. Doubled classes: Divi's per-row styles. */
#main-content .et-l.et-l--post .et_pb_section_0 .et_pb_row.et_pb_row,
#main-content .et-l.et-l--post .et_pb_section_1:not(:has(.drts-main)) .et_pb_row.et_pb_row,
#main-content .et-l.et-l--post .et_pb_section:has(.drts-main) .et_pb_row.et_pb_row:has(.drts-main) {
    width: 90% !important;
    max-width: none !important;
    margin-left: auto !important;
    margin-right: auto !important;
}
#main-content .et-l.et-l--post .et_pb_section_0 .et_pb_row.et_pb_row {
    align-items: center;
    padding: 40px 0 8px !important;
}
#main-content .et-l.et-l--post .et_pb_section_0 .et_pb_column.et_pb_column {
    justify-content: center;
    align-items: flex-start !important; /* Divi centres the title column's contents */
    margin-bottom: 0 !important;
    padding: 0 !important;
}
/* !important: Divi's per-module styles (.et_pb_text_0 h1) set a centred light title */
#main-content .et-l.et-l--post .et_pb_section_0 .et_pb_text .et_pb_text_inner h1 {
    margin: 0 !important;
    padding: 0 !important;
    font-family: var(--et_global_heading_font, "EB Garamond"), Georgia, "Times New Roman", serif !important; /* the Divi module sets its own */
    font-size: 44px !important;
    font-weight: 500 !important;
    line-height: 1.15 !important;
    text-align: left !important;
    color: #07071d !important;
}
#main-content .et-l.et-l--post .et_pb_section_0 .et_pb_text {
    width: 100%;
    margin: 0 !important;
    text-align: left !important;
}
/* The gold underline: short and left-aligned under the title */
#main-content .et-l.et-l--post .et_pb_section_0 .et_pb_divider.et_pb_divider {
    width: 64px !important;
    max-width: 64px !important;
    height: 3px !important;
    margin: 14px auto 0 0 !important;
    align-self: flex-start !important;
}
/* Photo as a short banner */
#main-content .et-l.et-l--post .et_pb_section_0 .et_pb_image,
#main-content .et-l.et-l--post .et_pb_section_0 .et_pb_image_wrap {
    display: block;
    width: 100%;
    margin: 0 !important;
}
#main-content .et-l.et-l--post .et_pb_section_0 .et_pb_image img {
    display: block;
    width: 100%;
    height: 300px !important;
    border-radius: 12px;
    object-fit: cover;
}
/* Intro paragraph: two lines, "Read more" added by directory.js */
#main-content .et-l.et-l--post .et_pb_section_1:not(:has(.drts-main)) {
    padding: 20px 0 0 !important;
    background: #fff !important;
}
#main-content .et-l.et-l--post .et_pb_section_1:not(:has(.drts-main)) .et_pb_row {
    padding: 0 !important;
}
#main-content .et-l.et-l--post .et_pb_section_1:not(:has(.drts-main)) .et_pb_text_inner {
    max-width: 860px;
    text-align: left;
    font-size: 16px;
    line-height: 1.65;
    color: #55555f;
}
#main-content .et-l.et-l--post .et_pb_section_1 .et_pb_text.et_pb_text {
    padding-left: 0 !important; /* Divi's text box inset: line the intro up with the title and cards */
    padding-right: 0 !important;
    text-align: left !important;
}
.plb-intro-clamped {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
}
.plb-intro-toggle {
    margin: 6px 0 0;
    padding: 0;
    border: 0;
    background: none;
    color: #07071d;
    font: inherit;
    font-size: 15px;
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 3px;
    cursor: pointer;
}
.plb-intro-toggle:focus-visible {
    outline: 2px solid #fbc846;
    outline-offset: 2px;
}
/* Site-wide search box: the filters do directory search. Its row/column carries the grey
   frame, so hide that too when it holds nothing else. */
#main-content .et-l.et-l--post .et_pb_search,
#main-content .et-l.et-l--post .et_pb_row:has(> .et_pb_column > .et_pb_search):not(:has(.drts-main)) {
    display: none !important;
}
#main-content .et-l.et-l--post .et_pb_section_2 {
    padding-top: 24px !important;
    background: #fff !important;
}
@media (max-width: 980px) {
    #main-content .et-l.et-l--post .et_pb_section_0 .et_pb_row {
        padding: 24px 0 4px !important;
    }
    #main-content .et-l.et-l--post .et_pb_section_0 .et_pb_text .et_pb_text_inner h1 {
        font-size: 34px !important; /* same selector as the desktop rule, which is !important */
    }
    #main-content .et-l.et-l--post .et_pb_section_0 .et_pb_column + .et_pb_column {
        margin-top: 20px !important;
    }
    #main-content .et-l.et-l--post .et_pb_section_0 .et_pb_image img {
        height: 170px !important;
    }
    .plb-intro-clamped {
        -webkit-line-clamp: 3;
    }
    /* Less space between the intro and the toolbar */
    #main-content .et-l.et-l--post .et_pb_section_1:not(:has(.drts-main)).et_pb_section {
        padding-bottom: 0 !important;
    }
    #main-content .et-l.et-l--post .et_pb_section_2.et_pb_section {
        padding-top: 20px !important;
    }
}

/* Gold underline on both page types (the main page's divider is set to light grey in Divi) */
#et-boc .et-l.et-l--body .et_pb_section_0_tb_body .et_pb_divider.et_pb_divider::before,
#main-content .et-l.et-l--post .et_pb_section_0 .et_pb_divider.et_pb_divider::before {
    border-top: 3px solid #fbc846 !important;
}

/* Main category, small and quiet */
.drts-view-entities-list-grid .directory-listing-info,
.drts-view-entities-list-grid .directory-listing-info a {
    font-size: 13px;
    font-weight: 500;
    color: var(--plb-text-muted) !important;
    text-decoration: none;
}
.drts-view-entities-list-grid .directory-listing-info {
    order: 5;
    margin-top: 2px !important;
}
