
.lpt-card,
.lpt-global,
.lpt-service-card {
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 10px 30px rgba(0,0,0,.07);
}

.lpt-card {
    overflow: hidden;
}

.lpt-card-head {
    padding: 26px 28px 18px;
}

.lpt-card-head h3,
.lpt-global h3,
.lpt-service-card h3 {
    margin: 0 0 6px;
}

.lpt-card-head p {
    margin: 0;
    opacity: .68;
}

.lpt-season {
    display: inline-block;
    margin-bottom: 10px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.lpt-rate-list {
    padding: 0 28px 24px;
}

.lpt-rate-row {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    padding: 13px 0;
    border-bottom: 1px solid rgba(0,0,0,.08);
}

.lpt-rate-row:last-child {
    border-bottom: 0;
}

.lpt-rate-row strong {
    white-space: nowrap;
    font-size: 17px;
}

.lpt-global {
    padding: 24px;
}

.lpt-table-scroll {
    overflow-x: auto;
    margin-top: 18px;
}

.lpt-global table {
    width: 100%;
    min-width: 1300px;
    border-collapse: collapse;
}

.lpt-global th,
.lpt-global td {
    padding: 14px 12px;
    text-align: center;
    border-bottom: 1px solid rgba(0,0,0,.08);
}

.lpt-global th:first-child,
.lpt-global td:first-child {
    text-align: left;
    position: sticky;
    left: 0;
    background: #fff;
    z-index: 1;
}

.lpt-global th small {
    display: block;
    margin-top: 4px;
    font-weight: 400;
    opacity: .65;
}

.lpt-services {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.lpt-service-card {
    padding: 24px;
}

.lpt-service-wide {
    grid-column: 1 / -1;
}

.lpt-service-item,
.lpt-cleaning-list > div,
.lpt-service-inline {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    align-items: flex-start;
    padding: 12px 0;
    border-bottom: 1px solid rgba(0,0,0,.08);
}

.lpt-service-item:last-child,
.lpt-cleaning-list > div:last-child {
    border-bottom: 0;
}

.lpt-service-item span,
.lpt-service-item strong {
    display: block;
}

.lpt-service-item small {
    display: block;
    margin-top: 3px;
    font-weight: 400;
    opacity: .65;
}

.lpt-service-item strong small {
    display: inline;
}

.lpt-service-inline {
    background: #fff;
    border-radius: 14px;
    padding: 16px 18px;
    box-shadow: 0 8px 24px rgba(0,0,0,.06);
    border-bottom: 0;
}

@media (max-width: 900px) {
    .lpt-services {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 650px) {
    .lpt-services {
        grid-template-columns: 1fr;
    }

    .lpt-service-wide {
        grid-column: auto;
    }

    .lpt-card-head,
    .lpt-rate-list {
        padding-left: 20px;
        padding-right: 20px;
    }

    .lpt-cleaning-list > div {
        flex-direction: column;
        gap: 5px;
    }
}


/* ==========================================================
   Responsive mobile v1.4.0
   Les tailles ci-dessous sont volontairement autonomes afin
   que les styles Elementor desktop ne rendent pas les tarifs
   trop grands dans une popup sur smartphone.
   ========================================================== */

.lpt-card,
.lpt-global,
.lpt-services,
.lpt-service-inline {
    font-size: clamp(14px, 1.1vw, 16px);
    line-height: 1.45;
}

.lpt-card-head h3,
.lpt-global h3,
.lpt-service-card h3 {
    font-size: clamp(20px, 2vw, 28px);
    line-height: 1.2;
}

.lpt-card-head p,
.lpt-rate-row span,
.lpt-service-item,
.lpt-cleaning-list,
.lpt-service-inline {
    font-size: inherit;
}

.lpt-rate-row strong {
    font-size: clamp(16px, 1.4vw, 18px);
}

/* Elementor popup : évite qu'un style typographique desktop
   du conteneur parent ne grossisse artificiellement le tableau. */
.elementor-popup-modal .lpt-card,
.elementor-popup-modal .lpt-global,
.elementor-popup-modal .lpt-services,
.elementor-popup-modal .lpt-service-inline {
    font-size: 16px;
}

@media (max-width: 767px) {
    .elementor-popup-modal .dialog-widget-content {
        max-width: calc(100vw - 24px);
    }

    .elementor-popup-modal .lpt-card,
    .elementor-popup-modal .lpt-global,
    .elementor-popup-modal .lpt-services,
    .elementor-popup-modal .lpt-service-inline,
    .lpt-card,
    .lpt-global,
    .lpt-services,
    .lpt-service-inline {
        font-size: 14px;
        line-height: 1.4;
    }

    .lpt-card-head {
        padding: 18px 16px 12px;
    }

    .lpt-rate-list {
        padding: 0 16px 16px;
    }

    .lpt-card-head h3,
    .lpt-global h3,
    .lpt-service-card h3 {
        font-size: 20px;
        line-height: 1.2;
    }

    .lpt-card-head p {
        font-size: 13px;
        line-height: 1.35;
    }

    .lpt-season {
        font-size: 11px;
        margin-bottom: 7px;
    }

    .lpt-rate-row {
        gap: 10px;
        padding: 10px 0;
        align-items: baseline;
    }

    .lpt-rate-row span {
        min-width: 0;
        font-size: 13px;
        line-height: 1.3;
    }

    .lpt-rate-row strong {
        flex: 0 0 auto;
        font-size: 15px;
        line-height: 1.3;
    }

    .lpt-global {
        padding: 16px;
    }

    .lpt-global th,
    .lpt-global td {
        padding: 10px 8px;
        font-size: 12px;
        line-height: 1.3;
    }

    .lpt-global th small {
        font-size: 10px;
    }

    .lpt-service-card {
        padding: 16px;
    }

    .lpt-service-item,
    .lpt-service-inline {
        gap: 10px;
        padding-top: 10px;
        padding-bottom: 10px;
    }

    /* Les onglets Elementor restent lisibles sur téléphone lorsque
       les deux saisons sont placées dans une popup. */
    .elementor-popup-modal .e-n-tabs-heading,
    .elementor-popup-modal .elementor-tabs-wrapper {
        font-size: 14px;
    }

    .elementor-popup-modal .e-n-tab-title,
    .elementor-popup-modal .elementor-tab-title {
        font-size: 14px;
        line-height: 1.2;
    }
}

@media (max-width: 390px) {
    .lpt-card-head h3,
    .lpt-global h3,
    .lpt-service-card h3 {
        font-size: 18px;
    }

    .lpt-rate-row span {
        font-size: 12px;
    }

    .lpt-rate-row strong {
        font-size: 14px;
    }
}


/* v1.5.1 — disponibilité saisonnière et capacités multiples */
.lpt-unavailable {
    padding: 18px 20px;
    border-radius: 14px;
    text-align: center;
    font-size: 15px;
    line-height: 1.45;
    background: rgba(255,255,255,.92);
}

.lpt-variant-period {
    padding: 14px 0;
    border-bottom: 1px solid rgba(20, 36, 58, .12);
}
.lpt-variant-period:last-child { border-bottom: 0; }
.lpt-variant-period-title {
    font-weight: 600;
    margin-bottom: 9px;
    font-size: 14px;
}
.lpt-variant-prices { display: grid; gap: 6px; }
.lpt-variant-price-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 18px;
}
.lpt-variant-price-row strong {
    flex: 0 0 auto;
    white-space: nowrap;
}

@media (max-width: 767px) {
    .lpt-unavailable { padding: 15px 14px; font-size: 14px; }
    .lpt-variant-period { padding: 12px 0; }
    .lpt-variant-period-title { font-size: 13px; margin-bottom: 7px; }
    .lpt-variant-price-row { gap: 12px; font-size: 13px; }
    .lpt-variant-price-row strong { font-size: 14px; }
}

/* v1.8.0 — Carrousel d'appartements sur tablette/mobile */
.lpt-global-mobile {
    display: none;
}

@media (max-width: 1024px) {
    .lpt-global .lpt-table-scroll {
        display: none;
    }

    .lpt-global-mobile {
        display: block;
        margin-top: 18px;
    }

    .lpt-mobile-carousel-nav {
        display: grid;
        grid-template-columns: 44px minmax(0, 1fr) 44px;
        gap: 10px;
        align-items: center;
        margin-bottom: 14px;
    }

    .lpt-carousel-title-wrap {
        min-width: 0;
        text-align: center;
    }

    .lpt-carousel-current-title {
        margin: 0;
        font-size: 19px;
        line-height: 1.25;
    }

    .lpt-carousel-current-details {
        margin: 4px 0 0;
        font-size: 14px;
        line-height: 1.35;
        opacity: .72;
    }

    .lpt-carousel-arrow {
        width: 44px;
        height: 44px;
        padding: 0;
        border: 1px solid rgba(0, 0, 0, .14);
        border-radius: 50%;
        background: transparent;
        font: inherit;
        font-size: 28px;
        line-height: 1;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .lpt-mobile-carousel-track {
        position: relative;
    }

    .lpt-mobile-apartment {
        display: none;
        overflow: hidden;
        border: 1px solid rgba(0, 0, 0, .10);
        border-radius: 12px;
        background: #fff;
    }

    .lpt-mobile-apartment.is-active {
        display: block;
    }

    .lpt-mobile-rates {
        padding: 4px 18px;
    }

    .lpt-mobile-rate-row {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 16px;
        padding: 11px 0;
        border-bottom: 1px solid rgba(0, 0, 0, .07);
    }

    .lpt-mobile-rate-row:last-child {
        border-bottom: 0;
    }

    .lpt-mobile-rate-row span {
        min-width: 0;
        font-size: 14px;
        line-height: 1.35;
    }

    .lpt-mobile-rate-row strong {
        flex: 0 0 auto;
        white-space: nowrap;
        font-size: 15px;
    }

    .lpt-carousel-counter {
        display: flex;
        justify-content: center;
        gap: 5px;
        margin-top: 10px;
        font-size: 13px;
        opacity: .65;
    }
}

@media (max-width: 767px) {
    .lpt-mobile-carousel-nav {
        grid-template-columns: 40px minmax(0, 1fr) 40px;
        gap: 8px;
    }

    .lpt-carousel-arrow {
        width: 40px;
        height: 40px;
        font-size: 26px;
    }

    .lpt-mobile-rates {
        padding: 3px 16px;
    }

    .lpt-mobile-rate-row {
        padding: 10px 0;
    }
}


/* v1.9.0 — Transition horizontale au clic uniquement */
@media (max-width: 1024px) {
    .lpt-mobile-carousel-track {
        position: relative;
        overflow: hidden;
    }

    .lpt-mobile-apartment.is-leaving,
    .lpt-mobile-apartment.is-entering {
        display: block;
        width: 100%;
    }

    .lpt-mobile-apartment.is-leaving {
        position: absolute;
        inset: 0;
        z-index: 1;
        pointer-events: none;
    }

    .lpt-mobile-apartment.is-entering {
        position: relative;
        z-index: 2;
    }

    .lpt-mobile-apartment.lpt-out-left {
        animation: lpt-card-out-left 340ms cubic-bezier(.22,.61,.36,1) both;
    }

    .lpt-mobile-apartment.lpt-out-right {
        animation: lpt-card-out-right 340ms cubic-bezier(.22,.61,.36,1) both;
    }

    .lpt-mobile-apartment.lpt-in-right {
        animation: lpt-card-in-right 340ms cubic-bezier(.22,.61,.36,1) both;
    }

    .lpt-mobile-apartment.lpt-in-left {
        animation: lpt-card-in-left 340ms cubic-bezier(.22,.61,.36,1) both;
    }

    @keyframes lpt-card-out-left {
        from { transform: translateX(0); opacity: 1; }
        to   { transform: translateX(-26%); opacity: 0; }
    }

    @keyframes lpt-card-out-right {
        from { transform: translateX(0); opacity: 1; }
        to   { transform: translateX(26%); opacity: 0; }
    }

    @keyframes lpt-card-in-right {
        from { transform: translateX(26%); opacity: 0; }
        to   { transform: translateX(0); opacity: 1; }
    }

    @keyframes lpt-card-in-left {
        from { transform: translateX(-26%); opacity: 0; }
        to   { transform: translateX(0); opacity: 1; }
    }
}

@media (prefers-reduced-motion: reduce) {
    .lpt-mobile-apartment.lpt-out-left,
    .lpt-mobile-apartment.lpt-out-right,
    .lpt-mobile-apartment.lpt-in-right,
    .lpt-mobile-apartment.lpt-in-left {
        animation: none;
    }
}


/* v1.9.6 — Flèches alignées sur les bords de la carte */
@media (max-width: 1024px) {
    .lpt-global,
    .lpt-global-mobile,
    .lpt-mobile-carousel-nav,
    .lpt-mobile-carousel-track {
        width: 100%;
        max-width: none;
        box-sizing: border-box;
    }

    .lpt-mobile-carousel-nav {
        grid-template-columns: 44px minmax(0, 1fr) 44px;
        padding-left: 0;
        padding-right: 0;
    }

    .lpt-carousel-prev {
        justify-self: start;
        transform: none;
    }

    .lpt-carousel-next {
        justify-self: end;
        transform: none;
    }
}

@media (max-width: 767px) {
    .lpt-mobile-carousel-nav {
        grid-template-columns: 40px minmax(0, 1fr) 40px;
        padding-left: 0;
        padding-right: 0;
    }
}


/* v1.10.0 - Bouton de téléchargement PDF dynamique */
.lpt-pdf-download {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 11px 20px;
    border: 1px solid currentColor;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 700;
    line-height: 1.2;
    transition: opacity .2s ease, transform .2s ease;
}

.lpt-pdf-download:hover,
.lpt-pdf-download:focus {
    opacity: .78;
}

.lpt-pdf-download:active {
    transform: translateY(1px);
}
