/* Small additions to the existing Fat Cat card/spec styles. */
.fatcat-boat-card-meta { flex-wrap: wrap; }
.fatcat-boat-card-photo img { display: block; width: 100%; height: 100%; object-fit: cover; }
.fatcat-smart-spec-value { overflow-wrap: anywhere; white-space: pre-line; }
.fatcat-availability-state { display: block; margin-top: .5rem; font-weight: 700; }
.fatcat-boat-card a:focus-visible, .fatcat-filter-form a:focus-visible,
.fatcat-filter-form button:focus-visible { outline: 3px solid currentColor; outline-offset: 3px; }

/* Scoped presentation overrides keep the site's existing Additional CSS intact.
   Specificity also covers legacy !important rules when custom CSS loads last. */
html body .fatcat-boat-card .fcbm-card-content {
    display: flex !important;
    flex: 1 1 auto !important;
    flex-direction: column !important;
    min-width: 0 !important;
    padding: 22px !important;
}
html body .fatcat-boat-card .fcbm-card-content .fatcat-boat-card-title {
    min-height: 0 !important;
    margin: 0 !important;
    font-size: 1.2rem !important;
    line-height: 1.35 !important;
    overflow-wrap: anywhere;
}
html body .fatcat-boat-card .fcbm-card-content .fcbm-card-facts {
    display: grid !important;
    gap: 8px !important;
    min-width: 0 !important;
    margin: 18px 0 0 !important;
    padding: 0 !important;
    font-size: .88rem !important;
    line-height: 1.5 !important;
}
html body .fatcat-boat-card .fcbm-card-facts .fcbm-card-fact {
    display: grid;
    grid-template-columns: 58px minmax(0, 1fr);
    gap: 12px;
    min-width: 0;
}
html body .fatcat-boat-card .fcbm-card-fact dt,
html body .fatcat-boat-card .fcbm-card-fact dd {
    min-width: 0;
    margin: 0;
    overflow-wrap: anywhere;
}
html body .fatcat-boat-card .fcbm-card-fact dt { color: #666; font-weight: 400; }
html body .fatcat-boat-card .fcbm-card-fact dd { color: #222; font-weight: 600; }
html body .fatcat-boat-card .fcbm-card-content .fatcat-boat-card-price {
    margin-top: auto !important;
    padding-top: 22px !important;
}

html body .fatcat-smart-specs.fcbm-boat-sections {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    align-items: start !important;
    gap: 30px 44px !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    margin: 22px 0 36px !important;
    padding: 0 !important;
    background: transparent !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    overflow: visible !important;
}
html body:has(.fcbm-boat-sections) h2:has(+ .fatcat-smart-specs.fcbm-boat-sections),
html body:has(.fcbm-boat-sections) h3:has(+ .fatcat-smart-specs.fcbm-boat-sections),
html body:has(.fcbm-boat-sections) .fatcat-smart-specs.fcbm-boat-sections + h2,
html body:has(.fcbm-boat-sections) .fatcat-smart-specs.fcbm-boat-sections + h3 {
    width: 100% !important;
    max-width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    text-align: left !important;
}
html body:has(.fcbm-boat-sections) .fatcat-smart-specs.fcbm-boat-sections + h2 + p,
html body:has(.fcbm-boat-sections) .fatcat-smart-specs.fcbm-boat-sections + h2 + .wp-block-inventory-presser-description {
    margin-left: 0 !important;
    margin-right: 0 !important;
}
/* The installed template places About in its own constrained sibling group. */
html body .wp-block-group:has(> .fatcat-smart-specs.fcbm-boat-sections) > .wp-block-separator,
html body .wp-block-group:has(> .fatcat-smart-specs.fcbm-boat-sections) + .wp-block-group:has(> .wp-block-inventory-presser-description) > :is(.wp-block-heading, .wp-block-inventory-presser-description, .wp-block-separator) {
    width: 100% !important;
    max-width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    text-align: left !important;
}
/* The original eyebrow is generated by the site's Additional CSS. */
html body:has(.fatcat-detail-slider) .fatcat-inquiry-card:has(.fcbm-price-status)::before {
    content: "BOAT STATUS" !important;
}
html body .fcbm-boat-sections .fcbm-spec-section { min-width: 0; }
html body .fcbm-boat-sections .fcbm-equipment-section { grid-column: 1 / -1; }
/* A sole ordinary specification group does not reserve an empty second column. */
html body .fcbm-boat-sections > .fcbm-spec-section:not(.fcbm-equipment-section):only-child,
html body .fcbm-boat-sections > .fcbm-spec-section:not(.fcbm-equipment-section):first-child:has(+ .fcbm-equipment-section:last-child) {
    grid-column: 1 / -1;
}
html body .fatcat-smart-specs.fcbm-boat-sections .fcbm-spec-section .fcbm-spec-heading {
    width: auto !important;
    max-width: none !important;
    margin: 0 0 12px !important;
    padding: 0 0 10px !important;
    border-bottom: 2px solid #171717 !important;
    color: #171717 !important;
    font-size: 1.1rem !important;
    font-weight: 700 !important;
    line-height: 1.4 !important;
    letter-spacing: 0 !important;
    text-align: left !important;
}
html body .fcbm-boat-sections .fcbm-spec-list { margin: 0 !important; padding: 0 !important; }
html body .fcbm-boat-sections .fcbm-spec-section .fcbm-spec-row {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr) !important;
    gap: 16px !important;
    align-items: start !important;
    justify-content: normal !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    min-height: 0 !important;
    box-sizing: border-box !important;
    margin: 0 !important;
    padding: 11px 0 !important;
    background: transparent !important;
    border: 0 !important;
    border-bottom: 1px solid #e5e5e5 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    text-align: left !important;
}
html body .fcbm-boat-sections .fcbm-spec-section .fcbm-spec-row:last-child { border-bottom: 0 !important; }
html body .fcbm-boat-sections .fcbm-spec-row .fatcat-smart-spec-label,
html body .fcbm-boat-sections .fcbm-spec-row .fatcat-smart-spec-value {
    width: auto !important;
    min-width: 0 !important;
    margin: 0 !important;
    font-size: .94rem !important;
    line-height: 1.5 !important;
    letter-spacing: 0 !important;
    text-transform: none !important;
    overflow-wrap: anywhere !important;
}
html body .fcbm-boat-sections .fcbm-spec-row .fatcat-smart-spec-label { color: #666 !important; font-weight: 400 !important; text-align: left !important; }
html body .fcbm-boat-sections .fcbm-spec-row .fatcat-smart-spec-value { color: #171717 !important; font-weight: 600 !important; text-align: right !important; }
html body .fcbm-boat-sections .fcbm-spec-section .fcbm-equipment-list {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    column-gap: 44px !important;
    margin: 12px 0 0 !important;
    padding: 0 0 0 20px !important;
    color: #222 !important;
    font-size: .94rem !important;
    line-height: 1.6 !important;
}
html body .fcbm-boat-sections .fcbm-equipment-list li { margin: 0 0 5px !important; overflow-wrap: anywhere; }
html body .fcbm-boat-sections .fcbm-spec-section .fcbm-equipment-notes {
    margin: 12px 0 0 !important;
    padding: 0 !important;
    color: #222 !important;
    font-size: .94rem !important;
    line-height: 1.6 !important;
    white-space: pre-wrap !important;
    overflow-wrap: anywhere !important;
}
html body .fatcat-smart-specs.fcbm-boat-sections:empty,
html body h2:has(+ .fcbm-boat-sections:empty),
html body h3:has(+ .fcbm-boat-sections:empty) { display: none !important; }

@media (max-width: 700px) {
    html body .fatcat-smart-specs.fcbm-boat-sections {
        grid-template-columns: minmax(0, 1fr) !important;
        gap: 24px !important;
        margin: 18px 0 28px !important;
    }
    html body .fcbm-boat-sections .fcbm-spec-section .fcbm-equipment-list {
        grid-template-columns: minmax(0, 1fr) !important;
    }
    html body .fatcat-boat-card .fcbm-card-content { padding: 20px !important; }
}
