/* ==========================================================================
   BOATS CAROUSEL v11
   Hardcoded SVG colors, no currentColor dependency
   ========================================================================== */

.boats-carousel {
    --card-radius: 20px;
    --card-gap: 20px;
    --card-w: 345px;
    --card-h: 498px;
    --transition: 0.6s cubic-bezier(0.4, 0, 0.2, 1);

    --c-dark-blue: #334270;
    --c-blue-100: #95C9FB;
    --c-blue-icons: #476294;
    --c-red: #ED1C24;
    --c-yellow: #FFD152;

    position: relative;
    width: 100%;
    overflow: hidden;
    box-sizing: border-box;
}

.boats-carousel *,
.boats-carousel *::before,
.boats-carousel *::after {
    box-sizing: border-box;
}

.boats-carousel:focus {
    outline: none;
}

.boats-carousel:focus-visible {
    outline: 2px solid #334270;
    outline-offset: 4px;
    border-radius: 8px;
}

/* --------------------------------------------------------------------------
   Track
   -------------------------------------------------------------------------- */

.boats-carousel__track {
    display: flex;
    gap: var(--card-gap);
    transition: transform var(--transition);
    will-change: transform;
    perspective: 1500px;
}

/* --------------------------------------------------------------------------
   Boat card
   -------------------------------------------------------------------------- */

.boats-carousel .boat-card {
    position: relative;
    flex-shrink: 0;
    width: var(--card-w);
    height: var(--card-h);
    background: transparent;
}

.boats-carousel .boat-card__inner {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform var(--transition);
    transform-style: preserve-3d;
    will-change: transform;
}

@media (hover: hover) and (pointer: fine) {
    .boats-carousel .boat-card:hover .boat-card__inner,
    .boats-carousel .boat-card:focus-within .boat-card__inner {
        transform: rotateY(180deg);
    }
}

.boats-carousel .boat-card.is-flipped .boat-card__inner {
    transform: rotateY(180deg);
}

.boats-carousel .boat-card__face {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border-radius: var(--card-radius);
    overflow: hidden;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}

.boats-carousel .boat-card__face--front {
    pointer-events: auto;
}

.boats-carousel .boat-card:hover .boat-card__face--front,
.boats-carousel .boat-card.is-flipped .boat-card__face--front {
    pointer-events: none;
}

@media (hover: none) and (pointer: coarse) {
    .boats-carousel .boat-card.is-flipped .boat-card__face--front {
        pointer-events: none;
    }
    .boats-carousel .boat-card:not(.is-flipped) .boat-card__face--front {
        pointer-events: auto;
    }
}

.boats-carousel .boat-card__face--back {
    transform: rotateY(180deg);
    padding: 32px 28px;
    display: flex;
    flex-direction: column;
    background: linear-gradient(180deg,
        rgba(255, 255, 255, 0.97) 0%,
        rgba(220, 238, 251, 0.92) 100%
    );
    pointer-events: none;
}

.boats-carousel .boat-card:hover .boat-card__face--back,
.boats-carousel .boat-card.is-flipped .boat-card__face--back,
.boats-carousel .boat-card:focus-within .boat-card__face--back {
    pointer-events: auto;
}

/* --------------------------------------------------------------------------
   Front face content
   -------------------------------------------------------------------------- */

.boats-carousel .boat-card__image {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 1;
}

.boats-carousel .boat-card__gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg,
        rgba(149, 201, 251, 0.85) 0%,
        rgba(149, 201, 251, 0.45) 25%,
        rgba(149, 201, 251, 0) 55%
    );
    pointer-events: none;
    z-index: 2;
}

.boats-carousel .boat-card__overlay {
    position: absolute;
    top: 24px;
    left: 24px;
    right: 24px;
    text-align: center;
    z-index: 3;
}

.boats-carousel span.boat-card__overlay-title,
.boats-carousel .boat-card__overlay-title {
    display: block;
    font-family: 'Nunito Sans', Sans-serif;
    font-weight: 900;
    font-size: 24px;
    line-height: 1.15;
    margin: 0 0 14px;
    padding: 0;
    color: #334270;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.boats-carousel .boat-card__overlay-meta {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px;
    font-family: 'Nunito Sans', sans-serif;
    font-weight: 700;
    font-size: 20px;
    color: #334270;
}

.boats-carousel .boat-card__overlay-pers,
.boats-carousel .boat-card__overlay-price {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.boats-carousel .boat-card__overlay-icon {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
    display: block;
}

/* --------------------------------------------------------------------------
   "Meer info" trigger, mobile only
   -------------------------------------------------------------------------- */

.boats-carousel .boat-card__flip-trigger {
    position: absolute;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    padding: 10px 28px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 15px;
    line-height: 1.2;
    color: #334270;
    background-color: #ffffff;
    border: 1.5px solid #334270;
    border-radius: 30px;
    box-shadow: 0 2px 8px rgba(51, 66, 112, 0.15);
    cursor: pointer;
    z-index: 10;
    display: none;
    pointer-events: auto;
    transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
    white-space: nowrap;
}

.boats-carousel .boat-card__flip-trigger:hover,
.boats-carousel .boat-card__flip-trigger:focus,
.boats-carousel .boat-card__flip-trigger:active {
    background-color: #334270;
    color: #ffffff;
    transform: translateX(-50%) translateY(-1px);
}

@media (hover: none) and (pointer: coarse) {
    .boats-carousel .boat-card__flip-trigger {
        display: inline-block;
    }
}

@media (max-width: 767px) {
    .boats-carousel .boat-card__flip-trigger {
        display: inline-block;
    }
}

/* --------------------------------------------------------------------------
   Close button on back face, mobile only
   -------------------------------------------------------------------------- */

.boats-carousel .boat-card__close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 32px;
    height: 32px;
    padding: 0;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 10;
    display: none;
    pointer-events: auto;
    transition: transform 0.2s ease;
}

.boats-carousel .boat-card__close:hover,
.boats-carousel .boat-card__close:focus {
    transform: scale(1.1);
}

.boats-carousel .boat-card__close:active {
    transform: scale(0.95);
}

.boats-carousel .boat-card__close svg {
    width: 32px;
    height: 32px;
    display: block;
}

@media (hover: none) and (pointer: coarse) {
    .boats-carousel .boat-card__close {
        display: block;
    }
}

@media (max-width: 767px) {
    .boats-carousel .boat-card__close {
        display: block;
    }
}

/* --------------------------------------------------------------------------
   Back face content
   -------------------------------------------------------------------------- */

.boats-carousel span.boat-card__title,
.boats-carousel .boat-card__title {
    display: block;
    font-family: "Nunito Sans", sans-serif;
    font-weight: 900;
    font-size: 24px;
    line-height: 1.2;
    color: #334270;
    margin: 0 0 12px;
    padding: 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding-right: 40px;
}

.boats-carousel .boat-card__desc {
    font-family: 'Nunito Sans', sans-serif;
    font-weight: 500;
    font-size: 14px;
    line-height: 1.5;
    color: #334270;
    margin: 0 0 18px;
}

.boats-carousel .boat-card__specs {
    list-style: none;
    padding: 0;
    margin: 0 0 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.boats-carousel .boat-card__specs li {
    display: flex;
    align-items: center;
    gap: 14px;
    font-family: 'Nunito Sans', sans-serif;
    font-weight: 500;
    font-size: 14px;
    color: #334270;
}

.boats-carousel .boat-card__icon {
    width: 26px;
    height: 26px;
    flex-shrink: 0;
    display: block;
}

/* --------------------------------------------------------------------------
   Reserveren CTA, ultra-specific to beat Elementor primary color
   -------------------------------------------------------------------------- */

.boats-carousel .boat-card__cta,
.boats-carousel a.boat-card__cta,
.boats-carousel a.boat-card__cta:link,
.boats-carousel a.boat-card__cta:visited,
.elementor .boats-carousel a.boat-card__cta,
[class*="elementor"] .boats-carousel a.boat-card__cta,
body .boats-carousel a.boat-card__cta {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    align-self: flex-start;
    margin-top: auto;
    padding: 8px 32px;
    font-family: 'Nunito Sans', sans-serif;
    font-weight: 600;
    font-size: 16px;
    line-height: 130%;
    letter-spacing: 0%;
    text-decoration: none !important;
    color: #000 !important;
    background: rgba(255, 209, 82, 1) !important;
    background-color: rgba(255, 209, 82, 1) !important;
    background-image: none !important;
    border: 1px solid rgba(241, 197, 75, 1) !important;
    border-radius: 30px !important;
    box-shadow:
        0px 0px 1px 2px rgba(255, 209, 82, 0.2),
		 0px 0px 0px 2px rgba(255, 215, 104, 1) inset,
	     0px -2px 2px 0px rgba(223, 176, 48, 1) inset;
    cursor: pointer;
    transition: background-color 0.25s ease, box-shadow 0.25s ease, transform 0.2s ease;
}

.boats-carousel a.boat-card__cta:hover,
.boats-carousel a.boat-card__cta:focus,
.boats-carousel a.boat-card__cta:active,
.elementor .boats-carousel a.boat-card__cta:hover,
[class*="elementor"] .boats-carousel a.boat-card__cta:hover,
body .boats-carousel a.boat-card__cta:hover {
    background: rgba(255, 209, 82, 1) !important;
    background-color: rgba(255, 209, 82, 1) !important;
    color: #000 !important;
    text-decoration: none !important;
	box-shadow: 0px 0px 1px 2px rgba(255, 209, 82, 0.2),
				0px 0px 0px 2px rgba(255, 215, 104, 1) inset,
				0px -2px 2px 0px rgba(223, 176, 48, 1) inset;
    transform: scale(1.1);
}

/* --------------------------------------------------------------------------
   Navigation arrows
   Colors are hardcoded INSIDE the SVG markup in PHP, not via CSS
   CSS only handles positioning and hover transforms
   -------------------------------------------------------------------------- */

.boats-carousel__nav {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 24px;
    padding-right: 24px;
}

.boats-carousel__btn.boats-carousel__btn {
    width: 48px;
    height: 48px;
    border: none !important;
    background: transparent !important;
    background-color: transparent !important;
    background-image: none !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    padding: 0 !important;
    color: inherit !important;
    font-family: inherit !important;
    font-size: inherit !important;
    font-weight: inherit !important;
    line-height: 1 !important;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.boats-carousel__btn.boats-carousel__btn svg {
    width: 38px;
    height: 38px;
    display: block;
}

/* Hover effects: scale up the SVG circle stroke/fill via the path/circle inside */
.boats-carousel__btn--prev:hover svg circle {
    stroke: #ED1C24;
}

.boats-carousel__btn--prev:hover svg path {
    stroke: #ED1C24;
}

.boats-carousel__btn--prev:hover {
    transform: translateX(-2px);
}

.boats-carousel__btn--next:hover svg circle {
    fill: #C8161D;
}

.boats-carousel__btn--next:hover {
    transform: translateX(2px);
}

.boats-carousel__btn.boats-carousel__btn:focus-visible {
    outline: 2px solid #334270;
    outline-offset: 3px;
    border-radius: 50% !important;
}

.boats-carousel__btn.boats-carousel__btn:disabled {
    opacity: 0.35;
    cursor: not-allowed;
    transform: none;
    background: transparent !important;
    background-color: transparent !important;
    background-image: none !important;
    box-shadow: none !important;
    border: none !important;
}

.boats-carousel__btn.boats-carousel__btn:disabled:hover {
    transform: none;
}

.boats-carousel__btn:disabled svg circle,
.boats-carousel__btn:disabled svg path {
    /* keep original colors when disabled, just reduce opacity */
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */

@media (max-width: 1024px) {
    .boats-carousel {
        --card-w: 300px;
        --card-h: 450px;
    }

    .boats-carousel .boat-card__face--back {
        padding: 24px 22px;
    }

    .boats-carousel span.boat-card__title,
    .boats-carousel .boat-card__title {
        font-size: 18px;
    }

    .boats-carousel span.boat-card__overlay-title,
    .boats-carousel .boat-card__overlay-title {
        font-size: 22px;
    }
}

@media (max-width: 767px) {
    .boats-carousel {
        --card-w: calc(100vw - 64px);
        --card-h: 490px;
        --card-gap: 16px;
    }

    .boats-carousel__nav {
        justify-content: center;
        padding-right: 0;
        margin-top: 20px;
    }

    .boats-carousel .boat-card__face--back {
        padding: 24px 20px;
    }

    .boats-carousel .boat-card__specs {
        gap: 10px;
    }

    .boats-carousel .boat-card__specs li {
        font-size: 14px;
    }

    .boats-carousel span.boat-card__overlay-title,
    .boats-carousel .boat-card__overlay-title {
        font-size: 22px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .boats-carousel__track,
    .boats-carousel .boat-card__inner,
    .boats-carousel__btn,
    .boats-carousel .boat-card__cta,
    .boats-carousel .boat-card__flip-trigger,
    .boats-carousel .boat-card__close {
        transition: none;
    }
}
