/* ============================================================
   D'Berg Yacht Finder — v2.9.2
   Sprocket Design Co. — 16 May 2026

   v2.9.2 changes:
   - Mobile list view: added !important to grid-template-columns,
     card-body display, and cta hide rules to beat WPBakery
     Custom CSS Section 24b overrides.

   v2.9 changes:
   - MOBILE FILTER BAR OVERHAUL. On mobile (<760px) the 5
     filter cells now lay out as a tight 2×2 grid with Features
     spanning full width on its own row. Labels hidden on mobile
     to save vertical space — placeholder text in each trigger
     acts as the label. Filter bar padding tightened.
   - HERO PADDING. Reduced mobile hero top padding from 120px
     to 60px so the filter bar sits above the fold on most
     phones. Achieved via page-scoped override on
     .dberg-hero-v2 at mobile breakpoints.
   - EQUAL WIDTH DROPDOWNS. All .dbf-filter-cell get flex:1
     so desktop distributes space evenly across all 5 columns.
   - CLEAR ALL ALIGNMENT. Reset cell flex:0 auto, aligned to
     bottom of filter row.

   v2.8 baseline: disabled option styling.
   v2.7 baseline: list view thumbs.
   v2.6 baseline: filter bar two rows, 4:3 list thumbs.
   ============================================================ */

/* ── Wrapper ─────────────────────────────────────────────── */

.dbf-wrapper {
    max-width: 1300px;
    margin: 0 auto;
    padding: 20px;
}

/* ── Filter Bar — Row 1 ──────────────────────────────────── */

.dbf-filter-bar {
    display: flex;
    flex-wrap: nowrap;
    gap: 12px;
    padding: 20px 0;
    border-bottom: 1px solid rgba(12,27,46,0.09);
    align-items: flex-end;
    margin-bottom: 16px;
    overflow: visible;
}

.dbf-filter-cell {
    flex: 1 1 0;
    min-width: 0;
}

.dbf-filter-cell--reset {
    flex: 0 0 auto;
    display: flex;
    align-items: flex-end;
    justify-content: flex-end;
    padding-bottom: 4px;
}

.dbf-filter-heading {
    font-family: 'Inter', sans-serif;
    font-size: 0.64rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: #0C1B2E;
    margin: 0 0 8px 0;
}

.dbf-reset {
    font-family: 'Inter', sans-serif;
    font-size: 0.76rem;
    font-weight: 600;
    color: #C4A35A;
    background: transparent;
    border: 1px solid transparent;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    display: none;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
    transition: background 0.2s ease;
}
.dbf-reset:hover {
    background: rgba(196,163,90,0.08);
}
.dbf-reset.visible {
    display: inline-flex;
}

/* ── Filter Bar — Row 2 (sort + view toggle) ─────────────── */

.dbf-controls-row {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 16px;
    margin-bottom: 28px;
    padding-bottom: 4px;
}

.dbf-sort-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
}
.dbf-sort-wrap label {
    font-family: 'Inter', sans-serif;
    font-size: 0.74rem;
    font-weight: 600;
    color: #6B7A8D;
}
.dbf-sort-select {
    font-family: 'Inter', sans-serif;
    font-size: 0.78rem;
    color: #0C1B2E;
    background: #fff;
    border: 1px solid rgba(12,27,46,0.14);
    border-radius: 6px;
    padding: 8px 28px 8px 12px;
    cursor: pointer;
}

.dbf-view-toggle {
    display: inline-flex;
    border: 1px solid rgba(12,27,46,0.14);
    border-radius: 6px;
    overflow: hidden;
    background: #fff;
}
.dbf-view-btn {
    background: transparent;
    border: none;
    padding: 7px 10px;
    cursor: pointer;
    color: rgba(12,27,46,0.5);
    transition: background 0.2s ease, color 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.dbf-view-btn + .dbf-view-btn {
    border-left: 1px solid rgba(12,27,46,0.14);
}
.dbf-view-btn:hover { color: #0C1B2E; }
.dbf-view-btn.active { background: #0C1B2E; color: #fff; }
.dbf-view-btn svg { fill: currentColor; }

/* ── Custom Dropdowns ────────────────────────────────────── */

.dbf-dropdown {
    position: relative;
    width: 100%;
    font-family: 'Inter', sans-serif;
}
.dbf-dropdown-trigger {
    width: 100%;
    background: #fff;
    border: 1px solid rgba(12,27,46,0.14);
    border-radius: 6px;
    padding: 11px 14px;
    font-size: 0.86rem;
    color: #0C1B2E;
    text-align: left;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    box-sizing: border-box;
}
.dbf-dropdown-trigger:hover { border-color: rgba(196,163,90,0.5); }
.dbf-dropdown-trigger:focus {
    outline: none;
    border-color: #C4A35A;
    box-shadow: 0 0 0 3px rgba(196,163,90,0.12);
}
.dbf-dropdown.open .dbf-dropdown-trigger {
    border-color: #C4A35A;
    box-shadow: 0 0 0 3px rgba(196,163,90,0.12);
}
.dbf-dropdown.has-value .dbf-dropdown-trigger {
    border-color: rgba(196,163,90,0.55);
    background: rgba(196,163,90,0.04);
}
.dbf-dropdown.has-value .dbf-dropdown-value {
    color: #C4A35A;
    font-weight: 600;
}
.dbf-dropdown-value {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.dbf-dropdown-caret {
    color: #6B7A8D;
    font-size: 0.7rem;
    transition: transform 0.2s ease;
    flex-shrink: 0;
}
.dbf-dropdown.open .dbf-dropdown-caret { transform: rotate(180deg); }
.dbf-dropdown-menu {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    min-width: 160px;
    background: #fff;
    border: 1px solid rgba(12,27,46,0.12);
    border-radius: 6px;
    box-shadow: 0 12px 32px rgba(12,27,46,0.16), 0 0 0 1px rgba(255,255,255,0.04);
    list-style: none;
    margin: 0;
    padding: 6px 0;
    max-height: 280px;
    overflow-y: auto;
    z-index: 200;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-4px);
    transition: opacity 0.18s ease, transform 0.18s ease, visibility 0s linear 0.18s;
    white-space: nowrap;
}
.dbf-dropdown.open .dbf-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    transition: opacity 0.18s ease, transform 0.18s ease, visibility 0s;
}
.dbf-dropdown-option {
    padding: 10px 14px;
    font-size: 0.84rem;
    color: #0C1B2E;
    cursor: pointer;
    list-style: none;
    transition: background 0.15s ease, color 0.15s ease;
    position: relative;
    outline: none;
}
.dbf-dropdown-option:hover,
.dbf-dropdown-option:focus {
    background: rgba(196,163,90,0.08);
    color: #0C1B2E;
}
.dbf-dropdown-option.selected {
    color: #C4A35A;
    font-weight: 600;
    padding-right: 32px;
}
.dbf-dropdown-option.selected::after {
    content: '\2713';
    position: absolute;
    right: 14px;
    color: #C4A35A;
}
.dbf-dropdown-option.selected:hover { background: rgba(196,163,90,0.08); }

/* v2.8: disabled options */
.dbf-dropdown-option--empty {
    color: rgba(12,27,46,0.35);
    cursor: not-allowed;
    pointer-events: auto;
    user-select: none;
    position: relative;
}
.dbf-dropdown-option--empty:hover,
.dbf-dropdown-option--empty:focus {
    background: transparent;
    color: rgba(12,27,46,0.35);
}
.dbf-dropdown-option--empty::after {
    content: '\00a0\00b7\00a0not in fleet';
    font-size: 0.74rem;
    color: rgba(12,27,46,0.3);
    font-weight: 400;
    font-style: italic;
}

/* ── Results ─────────────────────────────────────────────── */

.dbf-results { margin-top: 16px; }

/* ── GRID VIEW ───────────────────────────────────────────── */

.dbf-grid.dbf-view-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
@media (max-width: 1100px) {
    .dbf-grid.dbf-view-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 760px) {
    .dbf-grid.dbf-view-grid { grid-template-columns: 1fr; }
}

.dbf-card {
    background: #FAF9F6;
    border: 1px solid rgba(12,27,46,0.08);
    border-radius: 6px;
    overflow: hidden;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    display: block;
}
.dbf-card-img {
    position: relative;
    aspect-ratio: 16/9;
    overflow: hidden;
}
.dbf-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.dbf-card-badge {
    position: absolute;
    top: 14px;
    right: 14px;
    padding: 5px 11px;
    font-family: 'Inter', sans-serif;
    font-size: 0.64rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    border-radius: 4px;
    z-index: 5;
}
.dbf-badge-crewed { background: #C4A35A; color: #0C1B2E; }
.dbf-badge-bareboat { background: #0C1B2E; color: #fff; }
.dbf-badge-skipper { background: rgba(12,27,46,0.75); color: #fff; }

.dbf-card-body { padding: 16px 18px 0; }
.dbf-card-name {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.35rem;
    font-weight: 600;
    color: #0C1B2E;
    margin: 0 0 6px 0;
    line-height: 1.15;
}
.dbf-card-location {
    font-size: 0.78rem;
    color: #6B7A8D;
    margin: 0 0 6px 0;
}

/* ── LIST VIEW ───────────────────────────────────────────── */

.dbf-grid.dbf-view-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.dbf-card--list {
    display: grid;
    grid-template-columns: 240px 1fr auto;
    gap: 22px;
    align-items: center;
    padding: 14px 22px 14px 14px;
    background: #FAF9F6;
    border: 1px solid rgba(12,27,46,0.08);
    border-radius: 6px;
    text-decoration: none;
    color: inherit;
    transition: transform 0.45s cubic-bezier(0.33,0.1,0.25,1),
                box-shadow 0.45s ease,
                border-color 0.45s ease;
}
.dbf-card--list:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 32px rgba(12,27,46,0.14);
    border-color: rgba(196,163,90,0.35);
}
.dbf-card--list .dbf-card-img {
    width: 240px;
    aspect-ratio: 4/3;
    height: auto;
    border-radius: 4px;
    overflow: hidden;
    flex-shrink: 0;
    position: relative;
}
.dbf-card--list .dbf-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.7s cubic-bezier(0.33,0.1,0.25,1);
}
.dbf-card--list:hover .dbf-card-img img { transform: scale(1.04); }

.dbf-card-price--list { display: none; }
.dbf-card-wash--list {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(12,27,46,0.65) 0%, rgba(12,27,46,0) 70%);
    pointer-events: none;
    z-index: 2;
    display: none;
}

.dbf-list-col { display: flex; flex-direction: column; min-width: 0; }
.dbf-list-col--primary { gap: 4px; }
.dbf-list-col--primary .dbf-card-eyebrow {
    font-family: 'Inter', sans-serif;
    font-size: 0.62rem;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: #C4A35A;
    margin: 0;
    line-height: 1.2;
}
.dbf-list-col--primary .dbf-card-name {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.18rem;
    font-weight: 600;
    color: #0C1B2E;
    margin: 0;
    line-height: 1.2;
}
.dbf-list-col--primary .dbf-card-location,
.dbf-list-col--primary .dbf-card-spec-line {
    font-family: 'Inter', sans-serif;
    font-size: 0.78rem;
    color: #6B7A8D;
    margin: 0;
    line-height: 1.4;
}
.dbf-list-col--primary .dbf-card-location i { color: #C4A35A; margin-right: 4px; }
.dbf-charter-btn--list {
    display: inline-flex;
    align-items: center;
    align-self: flex-start;
    margin-top: 8px;
    padding: 4px 10px;
    font-family: 'Inter', sans-serif;
    font-size: 0.6rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #C4A35A;
    background: transparent;
    border: 1px solid rgba(196,163,90,0.55);
    border-radius: 3px;
    line-height: 1.2;
}

.dbf-list-col--cta {
    align-items: flex-end;
    justify-content: center;
    gap: 10px;
    flex-shrink: 0;
}
.dbf-list-price {
    display: flex;
    align-items: baseline;
    gap: 4px;
    line-height: 1;
}
.dbf-list-price .dbf-price-amount {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.3rem;
    font-weight: 700;
    color: #0C1B2E;
}
.dbf-list-price .dbf-price-per {
    font-family: 'Inter', sans-serif;
    font-size: 0.66rem;
    color: #6B7A8D;
    letter-spacing: 0.04em;
}
.dbf-list-col--cta .dbf-card-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 18px;
    background: #0C1B2E;
    color: #fff;
    border: 1px solid #0C1B2E;
    border-radius: 3px;
    font-family: 'Inter', sans-serif;
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    white-space: nowrap;
    transition: background 0.35s ease, color 0.35s ease, border-color 0.35s ease;
}
.dbf-card--list:hover .dbf-list-col--cta .dbf-card-cta {
    background: #C4A35A;
    color: #0C1B2E;
    border-color: #C4A35A;
}
.dbf-card--list .dbf-card-badge { top: 10px; right: 10px; padding: 4px 9px; font-size: 0.58rem; }

/* ── Empty state ─────────────────────────────────────────── */

.dbf-empty {
    display: none;
    text-align: center;
    padding: 60px 20px;
    background: #FAF9F6;
    border: 1px solid rgba(12,27,46,0.08);
    border-radius: 6px;
}
.dbf-empty p { font-family: 'Inter', sans-serif; font-size: 0.95rem; color: #6B7A8D; margin: 0 0 16px; }
.dbf-empty button {
    font-family: 'Inter', sans-serif;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #0C1B2E;
    background: #C4A35A;
    border: none;
    padding: 11px 22px;
    border-radius: 4px;
    cursor: pointer;
    transition: opacity 0.2s ease;
}
.dbf-empty button:hover { opacity: 0.88; }

/* ── Link reset ──────────────────────────────────────────── */

.dbf-card,
.dbf-card:hover,
.dbf-card:visited,
.dbf-card:active,
.dbf-card:focus { text-decoration: none; }
.dbf-card * { text-decoration: none; }
.dbf-card-desc { display: none; }

/* ============================================================
   RESPONSIVE
   ============================================================ */

/* ── Tablet (≤1100px) ─────────────────────────────────────── */

@media (max-width: 1100px) {
    .dbf-filter-bar {
        flex-wrap: wrap;
        gap: 10px;
    }
    .dbf-filter-cell {
        flex: 1 1 calc(50% - 10px);
        min-width: calc(50% - 10px);
    }
    .dbf-filter-cell--reset {
        flex: 1 1 100%;
        justify-content: flex-end;
    }
    .dbf-card--list { grid-template-columns: 200px 1fr auto; gap: 18px; }
    .dbf-card--list .dbf-card-img { width: 200px; }
    .dbf-list-col--primary .dbf-card-name { font-size: 1.08rem; }
}

/* ── Mobile (≤760px) ─────────────────────────────────────── */

@media (max-width: 760px) {

    /* Hero: override WPBakery inline style padding on mobile.
       The row has el_class="dberg-hero-v2" so it renders as
       .vc_row.dberg-hero-v2 with inline padding-top:120px.
       Need !important to beat the inline style. */
    .dberg-hero-v2.vc_row,
    .vc_row.dberg-hero-v2 {
        padding-top: 60px !important;
        padding-bottom: 28px !important;
        min-height: auto !important;
    }
    /* Hero subtext: allow full width on mobile so it fits one line */
    .dberg-hero-v2 .vc_custom_yf_sub {
        max-width: 100% !important;
    }

    /* Filter bar: 2-col grid, Features full-width on its own row */
    .dbf-filter-bar {
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
        gap: 8px !important;
        padding: 12px 0 !important;
        flex-wrap: unset !important;
    }
    /* Labels: KEEP on mobile — restored, should not have been removed */
    .dbf-filter-bar .dbf-filter-heading {
        display: block;
        font-size: 0.58rem;
        margin-bottom: 5px;
    }
    /* Standard cells: 2-col */
    .dbf-filter-cell {
        flex: unset !important;
        min-width: unset !important;
    }
    /* Features cell: span full width */
    .dbf-filter-cell:nth-child(5) {
        grid-column: 1 / -1;
    }
    /* Reset: span full width, right-aligned */
    .dbf-filter-cell--reset {
        grid-column: 1 / -1 !important;
        flex: unset !important;
        justify-content: center;
        padding-bottom: 0;
    }
    /* Tighter trigger padding on mobile */
    .dbf-dropdown-trigger {
        padding: 9px 10px;
        font-size: 0.8rem;
    }

    /* Controls row: stack */
    .dbf-controls-row {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }
    .dbf-controls-row .dbf-sort-wrap { justify-content: space-between; }
    .dbf-controls-row .dbf-view-toggle { align-self: flex-end; }

    /* Wrapper: tighter padding on mobile */
    .dbf-wrapper { padding: 12px; }

    /* List view mobile — 2 col: image + text, no CTA column */
    .dbf-card--list {
        grid-template-columns: 120px 1fr !important;
        gap: 12px !important;
        padding: 10px !important;
    }
    .dbf-card--list .dbf-card-img { width: 120px !important; aspect-ratio: 4/3 !important; height: auto !important; border-radius: 4px !important; }
    .dbf-card--list .dbf-card-body { display: flex !important; flex-direction: column !important; min-width: 0 !important; }
    .dbf-list-col--cta { display: none !important; }
    .dbf-list-col--primary .dbf-card-name { font-size: 0.95rem !important; white-space: normal !important; word-break: normal !important; }
    .dbf-card-wash--list { display: block; }
    .dbf-card-price--list {
        display: inline-flex;
        position: absolute;
        z-index: 5;
        bottom: 8px;
        left: 8px;
        margin: 0;
        padding: 0;
        line-height: 1;
        align-items: baseline;
        gap: 3px;
        pointer-events: none;
    }
    .dbf-card-price--list .dbf-price-amount {
        font-family: 'Playfair Display', Georgia, serif;
        font-size: 1rem;
        font-weight: 700;
        color: #fff;
        text-shadow: 0 2px 8px rgba(12,27,46,0.6);
    }
    .dbf-card-price--list .dbf-price-per {
        font-family: 'Inter', sans-serif;
        font-size: 0.58rem;
        color: rgba(255,255,255,0.92);
    }
    .dbf-list-col--primary { gap: 3px; }
    .dbf-list-col--primary .dbf-card-eyebrow { font-size: 0.58rem; }
    .dbf-list-col--primary .dbf-card-name { font-size: 0.98rem; }
    .dbf-list-col--primary .dbf-card-location,
    .dbf-list-col--primary .dbf-card-spec-line { font-size: 0.72rem; }
    .dbf-charter-btn--list { margin-top: 6px; font-size: 0.54rem; padding: 3px 8px; }
}

/* ============================================================
   END OF FILE — yacht-finder.css v2.9.1
   ============================================================ */