/* LP_V3 - Cartes Liberty Pass "organisées" (render_style = LibertyPassV3)
 * Toutes les classes sont préfixées lp3- pour ne pas interférer avec les styles 2023 / historiques.
 */

.boat-list-container.lp3-grid {
    --lp3-font: Arial, sans-serif;
    width: 100%;
    max-width: 1320px;
    margin: 0 auto;
    padding: 36px 32px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
    box-sizing: border-box;
}

.lp3-grid *,
.lp3-grid *::before,
.lp3-grid *::after {
    box-sizing: border-box;
}

.lp3-card {
    --lp3-accent: #03a6e0;
    --lp3-ink: #071747;
    --lp3-soft: #eaf7fd;
    --lp3-line: #e0e8f0;
    container-type: inline-size;
    min-width: 0;
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid #e0eaf1;
    border-radius: 20px;
    box-shadow: 0 14px 40px rgba(7, 23, 71, .07);
    font-family: var(--lp3-font);
    color: var(--lp3-ink);
}

.lp3-card--premium {
    --lp3-accent: #bda083;
    --lp3-soft: #edf1f7;
}

/* Photo / carrousel */

.lp3-photo {
    position: relative;
    aspect-ratio: 8 / 5;
    overflow: hidden;
    border-radius: 19px 19px 0 0;
    background: #dce6ec;
}

.lp3-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.lp3-city {
    position: absolute;
    top: 16px;
    left: 16px;
    max-width: calc(100% - 32px);
    display: flex;
    gap: 8px;
    align-items: center;
    background: #fff;
    padding: 10px 14px;
    border-radius: 999px;
    font-size: 19px;
    font-weight: 700;
    line-height: 1.2;
    box-shadow: 0 3px 18px rgba(7, 23, 71, .14);
}

.lp3-city span {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.lp3-city svg {
    width: 20px;
    height: 20px;
    fill: var(--lp3-accent);
    flex: none;
}

.lp3-photo-bottom {
    position: absolute;
    bottom: 14px;
    left: 14px;
    right: 14px;
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 8px;
}

.lp3-count,
.lp3-tag {
    border-radius: 999px;
    background: rgba(7, 23, 71, .93);
    color: #fff;
    padding: 9px 13px;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.2;
    white-space: nowrap;
}

.lp3-tag {
    border: 1px solid rgba(255, 255, 255, .67);
}

.lp3-card--premium .lp3-tag {
    border-color: #fff;
}

.lp3-card--full .lp3-tag {
    background: var(--lp3-accent);
    border-color: transparent;
}

.lp3-card .lp3-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 34px;
    height: 34px;
    padding: 0 0 3px;
    margin: 0;
    display: grid;
    place-items: center;
    background: rgba(255, 255, 255, .86);
    color: var(--lp3-ink);
    border: 0;
    border-radius: 50%;
    box-shadow: none;
    font: 25px/1 var(--lp3-font);
    cursor: pointer;
}

.lp3-card .lp3-arrow:hover {
    background: #fff;
}

.lp3-prev {
    left: 12px;
}

.lp3-next {
    right: 12px;
}

/* Contenu */

.lp3-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 23px;
}

.lp3-main {
    display: grid;
    flex: 1;
    grid-template-columns: minmax(0, 1fr) minmax(170px, .7fr);
    gap: 22px;
}

.lp3-details {
    min-width: 0;
}

.lp3-card .lp3-name {
    margin: 0 0 16px;
    padding: 0;
    font-family: var(--lp3-font);
    font-size: clamp(22px, 6cqi, 32px);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -.5px;
    color: var(--lp3-ink);
    text-transform: none;
    overflow-wrap: anywhere;
}

.lp3-specs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 14px;
    font-size: 17px;
    font-weight: 600;
    color: #273659;
}

.lp3-specs span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}

.lp3-specs img {
    width: 22px;
    height: 22px;
}

.lp3-amenities {
    display: flex;
    flex-wrap: wrap;
    gap: 9px 10px;
    margin-top: 22px;
}

.lp3-amenity {
    position: relative;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    cursor: help;
}

.lp3-amenity img {
    width: 100%;
    height: 100%;
    display: block;
}

.lp3-amenity--more {
    background: var(--lp3-soft);
    color: var(--lp3-accent);
    font-size: 15px;
    font-weight: 700;
}

/* Infobulle des équipements */

.lp3-amenity::after {
    content: attr(data-tooltip);
    position: absolute;
    left: 50%;
    bottom: calc(100% + 10px);
    transform: translate(-50%, 5px);
    width: max-content;
    max-width: 220px;
    padding: 8px 11px;
    border-radius: 8px;
    background: var(--lp3-ink);
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.3;
    text-align: center;
    box-shadow: 0 6px 18px rgba(7, 23, 71, .18);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    z-index: 10;
    transition: opacity .15s ease, transform .15s ease, visibility .15s;
}

.lp3-amenity::before {
    content: "";
    position: absolute;
    bottom: calc(100% + 4px);
    left: 50%;
    transform: translateX(-50%);
    border: 6px solid transparent;
    border-top-color: var(--lp3-ink);
    border-bottom: 0;
    opacity: 0;
    visibility: hidden;
    z-index: 10;
}

.lp3-amenity:hover::after,
.lp3-amenity:hover::before {
    opacity: 1;
    visibility: visible;
}

.lp3-amenity:hover::after {
    transform: translate(-50%, 0);
}

/* Prix + CTA */

.lp3-pricing {
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding-left: 20px;
    border-left: 1px solid var(--lp3-line);
}

.lp3-eyebrow {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.8px;
}

.lp3-price {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0 5px;
    margin: 11px 0 19px;
    color: var(--lp3-accent);
    font-size: clamp(22px, 5.4cqi, 32px);
    font-weight: 800;
    line-height: 1.12;
    letter-spacing: -.6px;
}

.lp3-price span {
    white-space: nowrap;
}

.lp3-price small {
    font-size: .46em;
    font-weight: 600;
    letter-spacing: 0;
    white-space: nowrap;
}

.lp3-price--text {
    font-size: 18px;
    letter-spacing: 0;
}

.lp3-card .lp3-cta,
.lp3-card .lp3-cta:hover,
.lp3-card .lp3-cta:focus,
.lp3-card .lp3-cta:visited {
    width: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 13px 18px;
    background: #03a6e0;
    color: #fff;
    border: 0;
    border-radius: 999px;
    box-shadow: none;
    font-family: var(--lp3-font);
    font-weight: 700;
    text-align: center;
    text-decoration: none;
    white-space: nowrap;
    transition: transform .2s, filter .2s;
}

.lp3-card--premium .lp3-cta,
.lp3-card--premium .lp3-cta:hover,
.lp3-card--premium .lp3-cta:focus,
.lp3-card--premium .lp3-cta:visited {
    background: var(--lp3-ink);
}

.lp3-card .lp3-cta:hover {
    transform: translateY(-2px);
    filter: brightness(1.07);
}

.lp3-card .lp3-cta:focus-visible,
.lp3-card .lp3-arrow:focus-visible {
    outline: 2px solid #03a6e0;
    outline-offset: 3px;
}

/* Carte étroite (1 colonne mobile, ou colonne Elementor étroite) : prix sous les détails */

@container (max-width: 480px) {
    .lp3-content {
        padding: 18px;
    }

    .lp3-main {
        grid-template-columns: 1fr;
        grid-template-rows: 1fr auto;
        gap: 18px;
    }

    .lp3-card .lp3-name {
        margin-bottom: 12px;
        font-size: clamp(20px, 6.5cqi, 26px);
    }

    .lp3-specs {
        gap: 8px 12px;
        font-size: 15px;
    }

    .lp3-specs img {
        width: 20px;
        height: 20px;
    }

    .lp3-amenities {
        gap: 7px;
        margin-top: 16px;
    }

    .lp3-amenity {
        width: 38px;
        height: 38px;
    }

    .lp3-amenity--more {
        font-size: 13px;
    }

    .lp3-pricing {
        padding: 16px 0 0;
        border-left: 0;
        border-top: 1px solid var(--lp3-line);
    }

    .lp3-price {
        margin: 6px 0 12px;
        font-size: clamp(22px, 8cqi, 28px);
    }

    .lp3-city {
        top: 10px;
        left: 10px;
        gap: 6px;
        padding: 7px 11px;
        font-size: 15px;
    }

    .lp3-city svg {
        width: 17px;
        height: 17px;
    }

    .lp3-photo-bottom {
        bottom: 10px;
        left: 10px;
        right: 10px;
    }

    .lp3-count,
    .lp3-tag {
        padding: 6px 9px;
        font-size: 11px;
    }

    .lp3-card .lp3-arrow {
        width: 28px;
        height: 28px;
        font-size: 20px;
    }

    .lp3-card .lp3-cta,
    .lp3-card .lp3-cta:hover,
    .lp3-card .lp3-cta:focus,
    .lp3-card .lp3-cta:visited {
        padding: 11px 16px;
        font-size: 15px;
    }
}

@media (max-width: 1000px) {
    .boat-list-container.lp3-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        padding: 28px 20px;
        gap: 18px;
    }
}

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

@media (max-width: 520px) {
    .boat-list-container.lp3-grid {
        padding: 16px;
        gap: 18px;
    }

    .lp3-card {
        border-radius: 16px;
    }

    .lp3-photo {
        border-radius: 15px 15px 0 0;
    }
}
