/*
 * Vaarmarkt Product Cards — opmaak voor de [vaarmarkt_boats] shortcode.
 * Plak dit als aparte CSS-snippet in WPCode (of Appearance → Aanpassen →
 * Extra CSS). De shortcode zelf (vaarmarkt-boat-cards.php) rendert alleen
 * kale HTML met deze vmk-boat-* classes, zonder eigen <style>.
 */

@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@600;700;800&family=Inter:wght@400;500;600&display=swap');

.vmk-boat-section { margin: 2rem 0; }

.vmk-boat-section__title {
    font-family: 'Manrope', 'Inter', Arial, sans-serif;
    font-size: 1.4rem;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 1rem;
}

.vmk-boat-grid {
    display: grid;
    grid-template-columns: repeat(var(--vmk-columns, 4), minmax(0, 1fr));
    gap: 1.25rem;
}

@media (max-width: 900px) {
    .vmk-boat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 520px) {
    .vmk-boat-grid { grid-template-columns: 1fr; }
}

/*
 * !important on background/color/text-decoration here for the same reason
 * as the image rule above: this card is an <a>, and theme/page-builder CSS
 * (Elementor's link reset in particular) tends to set its own
 * background/color/text-decoration on <a> with equal or higher specificity,
 * which otherwise left the card without its cream fill.
 */
.vmk-boat-card {
    display: flex !important;
    flex-direction: column !important;
    background: #FFFAF3 !important;
    border-radius: 10px !important;
    overflow: hidden !important;
    text-decoration: none !important;
    color: inherit !important;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
    transition: box-shadow 0.15s ease, transform 0.15s ease;
}

.vmk-boat-card:hover {
    box-shadow: 0 4px 14px rgba(0,0,0,0.12);
    transform: translateY(-2px);
}

.vmk-boat-card__image {
    display: block;
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 3;
    background: #eee;
    overflow: hidden;
}

/*
 * !important + position:absolute here because theme/page-builder CSS
 * (Elementor's global image reset in particular) often sets its own
 * width/height/max-width on <img> with equal or higher specificity,
 * which otherwise leaves the photo at its natural size inside this box
 * instead of filling it — showing as a grey gap under the image.
 */
.vmk-boat-card__image img {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    max-width: 100% !important;
    object-fit: cover !important;
    display: block !important;
    margin: 0 !important;
}

.vmk-boat-card__body {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 0.15rem;
    padding: 0.9rem 1rem 1.1rem;
}

.vmk-boat-card__label {
    font-size: 0.78rem;
    font-weight: 600;
    color: #0E6BA8;
}

.vmk-boat-card__title {
    font-family: 'Manrope', 'Inter', Arial, sans-serif;
    font-size: 0.95rem;
    font-weight: 700;
    color: #1a1a1a;
    line-height: 1.3;
}

.vmk-boat-card__price {
    font-size: 0.95rem;
    font-weight: 700;
    color: #F08008;
    margin-top: 0.2rem;
}

.vmk-boat-card__location {
    font-size: 0.8rem;
    color: #6b6b6b;
    margin-top: auto;
    padding-top: 0.3rem;
}

.vmk-boat-section__footer {
    margin-top: 1.25rem;
    text-align: right;
}

.vmk-boat-section__viewall {
    color: #F08008;
    font-weight: 600;
    text-decoration: none;
}

.vmk-boat-section__viewall:hover { text-decoration: underline; }
