:root {
    --tsb-bg: #fbfaf7;
    --tsb-surface: #ffffff;
    --tsb-border: #e4ded4;
    --tsb-text: #242424;
    --tsb-muted: #6d6a64;
    --tsb-green: #123f31;
    --tsb-green-soft: #e8f1ec;
    --tsb-gold: #a5793c;
}

.tsb-suite,
.tsb-search {
    color: var(--tsb-text);
    font-family: inherit;
}

.tsb-suite {
    align-items: start;
    display: grid;
    gap: 28px;
    grid-template-columns: minmax(0, 1.35fr) minmax(340px, 0.65fr);
    margin: 32px auto;
    max-width: 1380px;
}

.tsb-suite__gallery,
.tsb-suite__panel {
    min-width: 0;
}

.tsb-suite__main-image {
    aspect-ratio: 16 / 10;
    background: #ddd6ca;
    border-radius: 8px;
    overflow: hidden;
}

.tsb-suite__main-image img,
.tsb-result__image img {
    display: block;
    height: 100%;
    object-fit: cover;
    width: 100%;
}

.tsb-suite__placeholder,
.tsb-result__placeholder {
    align-items: center;
    background: #ded6ca;
    color: var(--tsb-muted);
    display: flex;
    height: 100%;
    justify-content: center;
}

.tsb-suite__thumbs {
    display: grid;
    gap: 12px;
    grid-auto-flow: column;
    grid-auto-columns: minmax(110px, 1fr);
    margin-top: 14px;
    overflow-x: auto;
    padding-bottom: 4px;
}

.tsb-suite__thumbs button {
    aspect-ratio: 4 / 3;
    background: transparent;
    border: 2px solid transparent;
    border-radius: 6px;
    cursor: pointer;
    overflow: hidden;
    padding: 0;
}

.tsb-suite__thumbs button.is-active {
    border-color: var(--tsb-green);
}

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

.tsb-suite__panel {
    background: var(--tsb-surface);
    border: 1px solid var(--tsb-border);
    border-radius: 8px;
    box-shadow: 0 10px 28px rgba(36, 36, 36, 0.08);
    padding: 28px;
    position: sticky;
    top: 24px;
}

.tsb-suite__panel h2 {
    font-size: clamp(30px, 4vw, 52px);
    line-height: 1;
    margin: 0 0 10px;
}

.tsb-suite__intro {
    border-bottom: 1px solid var(--tsb-border);
    color: var(--tsb-muted);
    margin: 0 0 22px;
    padding-bottom: 18px;
}

.tsb-booking-step {
    display: grid;
    gap: 14px;
    grid-template-columns: 34px minmax(0, 1fr);
    margin: 0 0 22px;
}

.tsb-step-number {
    align-items: center;
    background: var(--tsb-green);
    border-radius: 999px;
    color: #fff;
    display: flex;
    font-weight: 700;
    height: 34px;
    justify-content: center;
    width: 34px;
}

.tsb-booking-step label,
.tsb-step-title {
    display: block;
    font-weight: 700;
    margin: 5px 0 10px;
}

.tsb-booking-step input[type="date"],
.tsb-search input,
.tsb-search select {
    background: #fff;
    border: 1px solid var(--tsb-border);
    border-radius: 6px;
    color: var(--tsb-text);
    min-height: 44px;
    padding: 10px 12px;
    width: 100%;
}

.tsb-slots {
    display: grid;
    gap: 10px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.tsb-slot {
    background: #fff;
    border: 1px solid var(--tsb-border);
    border-radius: 6px;
    color: var(--tsb-text);
    cursor: pointer;
    min-height: 96px;
    padding: 14px 10px;
    text-align: center;
}

.tsb-slot strong,
.tsb-slot span,
.tsb-slot small {
    display: block;
}

.tsb-slot strong {
    font-size: 15px;
    margin-bottom: 6px;
}

.tsb-slot span {
    color: var(--tsb-gold);
    font-weight: 700;
}

.tsb-slot small {
    color: var(--tsb-muted);
    margin-top: 8px;
}

.tsb-slot.is-selected {
    background: var(--tsb-green);
    border-color: var(--tsb-green);
    color: #fff;
}

.tsb-slot.is-selected span,
.tsb-slot.is-selected small {
    color: #fff;
}

.tsb-slot:disabled {
    background: #f1eee9;
    color: #9b948a;
    cursor: not-allowed;
}

.tsb-total,
.tsb-summary__total {
    align-items: baseline;
    border-top: 1px solid var(--tsb-border);
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    margin-top: 20px;
    padding-top: 18px;
}

.tsb-total span,
.tsb-summary__total span {
    margin-right: auto;
}

.tsb-total strong,
.tsb-summary__total strong {
    color: var(--tsb-gold);
    font-size: 34px;
}

.tsb-total small,
.tsb-summary__total small {
    color: var(--tsb-muted);
}

.tsb-primary,
.tsb-secondary,
.tsb-search button,
.tsb-result__cta a {
    align-items: center;
    border: 0;
    border-radius: 6px;
    cursor: pointer;
    display: inline-flex;
    font-weight: 700;
    justify-content: center;
    min-height: 48px;
    padding: 12px 18px;
    text-decoration: none;
}

.tsb-primary,
.tsb-search button,
.tsb-result__cta a {
    background: var(--tsb-green);
    color: #fff;
    width: 100%;
}

.tsb-primary:disabled {
    cursor: not-allowed;
    opacity: 0.45;
}

.tsb-secondary {
    background: var(--tsb-green-soft);
    color: var(--tsb-green);
}

.tsb-secure,
.tsb-muted {
    color: var(--tsb-muted);
    font-size: 14px;
}

.tsb-secure {
    margin: 12px 0 0;
    text-align: center;
}

.tsb-modal[hidden] {
    display: none;
}

.tsb-modal {
    align-items: center;
    bottom: 0;
    display: flex;
    justify-content: center;
    left: 0;
    padding: 20px;
    position: fixed;
    right: 0;
    top: 0;
    z-index: 99999;
}

.tsb-modal__backdrop {
    background: rgba(14, 17, 16, 0.58);
    bottom: 0;
    left: 0;
    position: absolute;
    right: 0;
    top: 0;
}

.tsb-modal__dialog {
    background: var(--tsb-surface);
    border-radius: 8px;
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.22);
    max-height: min(760px, calc(100vh - 40px));
    max-width: 1040px;
    overflow: auto;
    position: relative;
    width: 100%;
}

.tsb-modal__close {
    background: #fff;
    border: 1px solid var(--tsb-border);
    border-radius: 999px;
    cursor: pointer;
    font-size: 24px;
    height: 38px;
    line-height: 1;
    position: absolute;
    right: 16px;
    top: 16px;
    width: 38px;
}

.tsb-modal__content {
    display: grid;
    gap: 26px;
    grid-template-columns: minmax(0, 1fr) 340px;
    padding: 34px;
}

.tsb-kicker {
    color: var(--tsb-green);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0;
    margin: 0 0 6px;
    text-transform: uppercase;
}

.tsb-modal h3 {
    font-size: 34px;
    margin: 0 0 18px;
}

.tsb-option-list {
    display: grid;
    gap: 12px;
}

.tsb-option {
    align-items: center;
    border: 1px solid var(--tsb-border);
    border-radius: 6px;
    cursor: pointer;
    display: grid;
    gap: 14px;
    grid-template-columns: auto 64px minmax(0, 1fr) auto;
    padding: 14px;
}

.tsb-option:hover {
    border-color: var(--tsb-green);
}

.tsb-option strong,
.tsb-option small {
    display: block;
}

.tsb-option img,
.tsb-option__image {
    aspect-ratio: 1;
    background: var(--tsb-green-soft);
    border-radius: 6px;
    display: block;
    height: 64px;
    object-fit: cover;
    width: 64px;
}

.tsb-option small {
    color: var(--tsb-muted);
    margin-top: 2px;
}

.tsb-option em {
    color: var(--tsb-gold);
    font-style: normal;
    font-weight: 700;
}

.tsb-summary {
    background: var(--tsb-bg);
    border: 1px solid var(--tsb-border);
    border-radius: 8px;
    padding: 20px;
}

.tsb-summary h4 {
    margin: 0 0 18px;
}

.tsb-summary dl {
    display: grid;
    gap: 8px;
    grid-template-columns: 90px 1fr;
    margin: 0;
}

.tsb-summary dt {
    color: var(--tsb-muted);
}

.tsb-summary dd {
    margin: 0;
    text-align: right;
}

.tsb-modal__actions {
    display: grid;
    gap: 10px;
    margin-top: 18px;
}

.tsb-message {
    color: #9c3b2e;
    font-size: 14px;
    margin-top: 12px;
}

.tsb-modal-open {
    overflow: hidden;
}

.tsb-search {
    background: var(--tsb-bg);
    border: 1px solid var(--tsb-border);
    border-radius: 8px;
    margin: 28px auto;
    max-width: 1180px;
    padding: 18px;
}

.tsb-search__form {
    align-items: end;
    display: grid;
    gap: 14px;
    grid-template-columns: 1fr 220px 180px;
}

.tsb-search label span {
    display: block;
    font-weight: 700;
    margin-bottom: 6px;
}

.tsb-search__results {
    display: grid;
    gap: 14px;
    margin-top: 18px;
}

.tsb-result {
    align-items: stretch;
    background: #fff;
    border: 1px solid var(--tsb-border);
    border-radius: 8px;
    display: grid;
    gap: 16px;
    grid-template-columns: 220px minmax(0, 1fr) 170px;
    overflow: hidden;
    padding: 12px;
}

.tsb-result__image {
    aspect-ratio: 4 / 3;
    border-radius: 6px;
    overflow: hidden;
}

.tsb-result h3 {
    margin: 0 0 8px;
}

.tsb-result h3 a {
    color: var(--tsb-text);
    text-decoration: none;
}

.tsb-result p {
    color: var(--tsb-muted);
    margin: 0 0 12px;
}

.tsb-result__slots {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tsb-result__slots span {
    background: var(--tsb-green-soft);
    border-radius: 999px;
    color: var(--tsb-green);
    font-size: 13px;
    padding: 6px 10px;
}

.tsb-result__cta {
    align-items: end;
    display: grid;
    gap: 8px;
    justify-items: end;
}

.tsb-result__cta small {
    color: var(--tsb-muted);
}

.tsb-result__cta strong {
    color: var(--tsb-gold);
    font-size: 24px;
}

@media (max-width: 980px) {
    .tsb-suite,
    .tsb-modal__content,
    .tsb-search__form,
    .tsb-result {
        grid-template-columns: 1fr;
    }

    .tsb-suite__panel {
        position: static;
    }

    .tsb-result__cta {
        justify-items: stretch;
    }
}

@media (max-width: 640px) {
    .tsb-suite {
        gap: 18px;
        margin: 20px auto;
    }

    .tsb-suite__panel,
    .tsb-modal__content {
        padding: 20px;
    }

    .tsb-slots {
        grid-template-columns: 1fr;
    }

    .tsb-total strong,
    .tsb-summary__total strong {
        font-size: 26px;
    }
}

/* Calendrier inline réservation suite */
.tsb-inline-calendar {
    background: #fff;
    border: 1px solid var(--tsb-border);
    border-radius: 8px;
    overflow: hidden;
    padding: 14px 16px 16px;
}

.tsb-inline-calendar__nav {
    align-items: center;
    display: grid;
    gap: 10px;
    grid-template-columns: 36px 1fr 36px;
    margin-bottom: 12px;
}

.tsb-inline-calendar__nav strong {
    color: var(--tsb-text);
    font-size: 15px;
    font-weight: 700;
    text-align: center;
}

.tsb-inline-calendar__nav button {
    align-items: center;
    background: transparent;
    border: 0;
    border-radius: 999px;
    color: var(--tsb-text);
    cursor: pointer;
    display: flex;
    font-size: 28px;
    height: 36px;
    justify-content: center;
    line-height: 1;
    padding: 0;
    width: 36px;
}

.tsb-inline-calendar__nav button:hover {
    background: var(--tsb-green-soft);
    color: var(--tsb-green);
}

.tsb-inline-calendar__weekdays,
.tsb-inline-calendar__days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
}

.tsb-inline-calendar__weekdays span {
    color: var(--tsb-muted);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .04em;
    padding: 8px 2px;
    text-align: center;
}

.tsb-inline-calendar__day {
    align-items: center;
    aspect-ratio: 1;
    background: transparent;
    border: 0;
    border-radius: 999px;
    color: var(--tsb-text);
    cursor: pointer;
    display: flex;
    font-size: 14px;
    justify-content: center;
    margin: 2px auto;
    max-height: 40px;
    max-width: 40px;
    min-height: 34px;
    min-width: 34px;
    padding: 0;
    width: calc(100% - 4px);
}

.tsb-inline-calendar__day:hover:not(:disabled) {
    background: var(--tsb-green-soft);
    color: var(--tsb-green);
}

.tsb-inline-calendar__day.is-selected {
    background: var(--tsb-green);
    color: #fff;
    font-weight: 700;
}

.tsb-inline-calendar__day.is-muted {
    color: #c4beb4;
}

.tsb-inline-calendar__day.is-disabled {
    color: #d5d0c7;
    cursor: not-allowed;
    opacity: .55;
}

@media (max-width: 640px) {
    .tsb-inline-calendar {
        padding: 12px;
    }

    .tsb-inline-calendar__day {
        font-size: 13px;
        min-height: 30px;
        min-width: 30px;
    }
}

/* Ajustement UX : le calendrier et les créneaux doivent démarrer sous le numéro d'étape, pas décalés sous le libellé. */
.tsb-booking-step > div {
    display: contents;
}

.tsb-booking-step label,
.tsb-booking-step .tsb-step-title {
    align-self: center;
    grid-column: 2;
    margin: 0;
}

.tsb-booking-step .tsb-inline-calendar,
.tsb-booking-step .tsb-slots,
.tsb-booking-step .tsb-muted {
    grid-column: 1 / -1;
    margin-top: 6px;
}

/* Pages suites : masquer le haut de page imposé par certains thèmes (XStore, etc.) quand le plugin gère l’affichage. */
body.single-tsb_suite.tsb-hide-theme-template .page-heading,
body.single-tsb_suite.tsb-hide-theme-template .page-title,
body.single-tsb_suite.tsb-hide-theme-template .page-title-section,
body.single-tsb_suite.tsb-hide-theme-template .content-page-heading,
body.single-tsb_suite.tsb-hide-theme-template .etheme-page-heading,
body.single-tsb_suite.tsb-hide-theme-template .et_breadcrumbs,
body.single-tsb_suite.tsb-hide-theme-template .single-post-large,
body.single-tsb_suite.tsb-hide-theme-template .post-heading,
body.single-tsb_suite.tsb-hide-theme-template .article-heading,
body.single-tsb_suite.tsb-hide-theme-template .entry-header,
body.single-tsb_suite.tsb-hide-theme-template .post-meta,
body.single-tsb_suite.tsb-hide-theme-template .meta-post {
    display: none !important;
}

.tsb-suite-slider {
    margin: 0 auto 32px;
    max-width: 100%;
}

/* XStore : supprimer le wrapper hero single post qui laisse un grand blanc au-dessus du slider/module. */
body.single-tsb_suite.tsb-hide-theme-template .single-post-large-wrapper,
body.single-tsb_suite.tsb-hide-theme-template .single-post-large-wrapper * {
    display: none !important;
    height: 0 !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
}

body.single-tsb_suite.tsb-hide-theme-template .content-page,
body.single-tsb_suite.tsb-hide-theme-template .page-content,
body.single-tsb_suite.tsb-hide-theme-template .site-content,
body.single-tsb_suite.tsb-hide-theme-template .main-content,
body.single-tsb_suite.tsb-hide-theme-template .container.content-page,
body.single-tsb_suite.tsb-hide-theme-template .page-wrapper {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

body.single-tsb_suite.tsb-hide-theme-template .tsb-suite-slider {
    margin-top: 0 !important;
}

/* Ajustement ratio page suite : 60% galerie / 40% réservation. */
.tsb-suite {
    grid-template-columns: minmax(0, 3fr) minmax(380px, 2fr) !important;
}

/* Contraste créneau sélectionné : tous les textes restent lisibles sur fond vert. */
.tsb-slot.is-selected,
.tsb-slot.is-selected strong,
.tsb-slot.is-selected span,
.tsb-slot.is-selected small,
.tsb-slot.is-selected em,
.tsb-slot.is-selected * {
    color: #fff !important;
}

.tsb-slot.is-selected {
    background: var(--tsb-green) !important;
    border-color: var(--tsb-green) !important;
    box-shadow: 0 8px 18px rgba(18, 63, 49, .18);
}

/* Ajustement demandé : équilibre 50/50 et photo principale plus haute. */
.tsb-suite {
    grid-template-columns: minmax(0, 1fr) minmax(420px, 1fr) !important;
}

.tsb-suite__main-image {
    aspect-ratio: 5 / 4 !important;
}

@media (max-width: 980px) {
    .tsb-suite {
        grid-template-columns: 1fr !important;
    }
}

/* Ajustement final demandé : retour 60/40 + photo principale nettement plus haute. */
.tsb-suite {
    grid-template-columns: minmax(0, 3fr) minmax(390px, 2fr) !important;
}

.tsb-suite__main-image {
    aspect-ratio: auto !important;
    height: clamp(480px, 42vw, 620px) !important;
}

@media (max-width: 980px) {
    .tsb-suite {
        grid-template-columns: 1fr !important;
    }

    .tsb-suite__main-image {
        height: clamp(340px, 72vw, 520px) !important;
    }
}

/* Calendrier frontend : signaler visuellement les dates bloquées/indisponibles. */
.tsb-inline-calendar__day.is-blocked {
    background: #ffe5e5;
    color: #a32020;
    font-weight: 700;
    position: relative;
}

.tsb-inline-calendar__day.is-blocked::after {
    background: currentColor;
    border-radius: 999px;
    bottom: 4px;
    content: "";
    height: 3px;
    left: 50%;
    opacity: .75;
    position: absolute;
    transform: translateX(-50%);
    width: 14px;
}

.tsb-inline-calendar__day.is-blocked:hover:not(:disabled) {
    background: #ffd2d2;
    color: #8f1616;
}

.tsb-inline-calendar__day.is-selected.is-blocked {
    background: #b42318;
    color: #fff;
}

.tsb-inline-calendar__day.is-unavailable:not(.is-selected):not(.is-blocked) {
    background: #f3f0eb;
    color: #9b948a;
}

/* Vidéo suite : hero desktop + intégration mobile dans la galerie. */
.tsb-suite-video-hero {
    height: clamp(460px, 52vw, 760px);
    margin: 0 0 36px;
    margin-left: calc(50% - 50vw);
    overflow: hidden;
    width: 100vw;
}

.tsb-suite-video-hero video {
    display: block;
    height: 100%;
    object-fit: cover;
    width: 100%;
}

.tsb-suite__main-video {
    background: #000;
    display: block;
    height: 100%;
    object-fit: cover;
    width: 100%;
}

.tsb-suite__main-video[hidden] {
    display: none !important;
}

.tsb-video-mobile-only {
    display: none !important;
}

.tsb-suite__video-thumb {
    align-items: center;
    background: var(--tsb-green) !important;
    color: #fff;
    display: flex;
    flex-direction: column;
    gap: 6px;
    justify-content: center;
}

.tsb-suite__video-thumb span {
    align-items: center;
    background: rgba(255,255,255,.16);
    border-radius: 999px;
    display: flex;
    font-size: 20px;
    height: 44px;
    justify-content: center;
    width: 44px;
}

.tsb-suite__video-thumb em {
    color: #fff;
    font-size: 13px;
    font-style: normal;
    font-weight: 700;
}

@media (max-width: 980px) {
    .tsb-suite-video-hero {
        display: none !important;
    }

    .tsb-video-mobile-only {
        display: flex !important;
    }
}

/* Support YouTube/Vimeo-like embeds pour le hero et la galerie mobile. */
.tsb-suite-video-hero iframe,
.tsb-suite__main-iframe {
    border: 0;
    display: block;
    height: 100%;
    width: 100%;
}

.tsb-suite__main-iframe[hidden] {
    display: none !important;
}

/* Hero vidéo desktop : hauteur maîtrisée, vidéo centrée et sans interaction. */
.tsb-suite-video-hero {
    align-items: center !important;
    background: #000 !important;
    display: flex !important;
    height: min(590px, 56.25vw) !important;
    justify-content: center !important;
    margin-top: 0 !important;
    max-height: 590px !important;
}

.tsb-suite-video-hero iframe,
.tsb-suite-video-hero video {
    aspect-ratio: 16 / 9 !important;
    background: #000 !important;
    display: block !important;
    height: 100% !important;
    max-height: 590px !important;
    max-width: 1049px !important;
    object-fit: contain !important;
    width: min(100vw, 1049px) !important;
}

@media (max-width: 980px) {
    .tsb-suite-video-hero {
        display: none !important;
    }
}

/* Hero vidéo desktop décoratif : pas de titre, pas de pause/clic en version PC. */
.tsb-suite-video-hero iframe,
.tsb-suite-video-hero video {
    pointer-events: none !important;
}

@media (max-width: 980px) {
    .tsb-suite-video-hero iframe,
    .tsb-suite-video-hero video {
        pointer-events: auto !important;
    }
}

/* Correction hero vidéo : plein écran en largeur, sans interface YouTube visible. */
.tsb-suite-video-hero {
    background: #000 !important;
    display: block !important;
    height: min(590px, 56.25vw) !important;
    margin: 0 0 36px !important;
    margin-left: calc(50% - 50vw) !important;
    max-height: 590px !important;
    overflow: hidden !important;
    position: relative !important;
    width: 100vw !important;
}

.tsb-suite-video-hero iframe,
.tsb-suite-video-hero video {
    aspect-ratio: 16 / 9 !important;
    background: #000 !important;
    border: 0 !important;
    display: block !important;
    height: 56.25vw !important;
    left: 50% !important;
    max-height: none !important;
    max-width: none !important;
    min-height: 100% !important;
    object-fit: cover !important;
    pointer-events: none !important;
    position: absolute !important;
    top: 50% !important;
    transform: translate(-50%, -50%) scale(1.22) !important;
    width: 100vw !important;
}

.tsb-suite-video-hero::after {
    content: "";
    inset: 0;
    pointer-events: auto;
    position: absolute;
    z-index: 2;
}

@media (max-width: 980px) {
    .tsb-suite-video-hero {
        display: none !important;
    }
}

/* Correction galerie mobile : iframe vidéo visible quand on clique sur le bouton Vidéo. */
.tsb-suite__main-iframe:not([hidden]),
.tsb-suite__main-video:not([hidden]) {
    display: block !important;
    height: 100% !important;
    width: 100% !important;
}

/* Cache de départ : masque les pictos/titres YouTube injectés au lancement du hero. */
@keyframes tsbHeroVideoMaskOut {
    0%, 80% {
        opacity: 1;
        visibility: visible;
    }
    100% {
        opacity: 0;
        visibility: hidden;
    }
}

.tsb-suite-video-hero__mask {
    background-color: #000;
    background-position: center;
    background-size: cover;
    inset: 0;
    pointer-events: none;
    position: absolute;
    z-index: 4;
    animation: tsbHeroVideoMaskOut 1.55s ease forwards;
}

/* Sécurité mobile : le bouton vidéo reste vraiment cliquable et affiche le player dans la galerie. */
.tsb-suite__main-image img[hidden] {
    display: none !important;
}

.tsb-video-mobile-only {
    cursor: pointer !important;
    position: relative;
    z-index: 2;
}

@media (max-width: 980px) {
    .tsb-suite__main-iframe:not([hidden]),
    .tsb-suite__main-video:not([hidden]) {
        display: block !important;
        min-height: 280px;
    }
}

/* Galerie mobile : vidéo YouTube sans interface, recadrée pour remplir tout le bloc image. */
.tsb-suite__main-image {
    position: relative !important;
}

.tsb-suite__main-iframe:not([hidden]) {
    aspect-ratio: 16 / 9 !important;
    background: #000 !important;
    border: 0 !important;
    display: block !important;
    height: 100% !important;
    left: 50% !important;
    max-height: none !important;
    max-width: none !important;
    min-width: 100% !important;
    pointer-events: none !important;
    position: absolute !important;
    top: 50% !important;
    transform: translate(-50%, -50%) scale(1.22) !important;
    width: auto !important;
    z-index: 2;
}

.tsb-suite__main-video-mask {
    background-color: #000;
    background-position: center;
    background-size: cover;
    inset: 0;
    pointer-events: none;
    position: absolute;
    z-index: 4;
}

.tsb-suite__main-video-mask[hidden] {
    display: none !important;
}

.tsb-suite__main-video-mask.is-running {
    animation: tsbHeroVideoMaskOut 1.55s ease forwards;
    display: block !important;
}

/* Vidéo en dernier dans le carousel + bouton vidéo plus premium. */
.tsb-suite__video-thumb {
    background: linear-gradient(135deg, #123f31 0%, #1f5c47 52%, #a5793c 100%) !important;
    border-color: rgba(255,255,255,.25) !important;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.18), 0 10px 24px rgba(18,63,49,.18);
    min-width: 128px;
}

.tsb-suite__video-thumb span {
    background: rgba(255,255,255,.18) !important;
    border: 1px solid rgba(255,255,255,.35);
    box-shadow: 0 8px 18px rgba(0,0,0,.18);
    font-size: 0 !important;
    position: relative;
}

.tsb-suite__video-thumb span::before {
    border-bottom: 10px solid transparent;
    border-left: 15px solid #fff;
    border-top: 10px solid transparent;
    content: "";
    left: 50%;
    position: absolute;
    top: 50%;
    transform: translate(-38%, -50%);
}

.tsb-suite__video-thumb em {
    letter-spacing: .04em;
    text-transform: uppercase;
}

/* Lightbox galerie photos. */
body.tsb-lightbox-open {
    overflow: hidden;
}

.tsb-gallery-lightbox[hidden] {
    display: none !important;
}

.tsb-gallery-lightbox {
    align-items: center;
    background: rgba(0,0,0,.86);
    display: flex;
    inset: 0;
    justify-content: center;
    padding: 28px;
    position: fixed;
    z-index: 999999;
}

.tsb-gallery-lightbox__backdrop {
    inset: 0;
    position: absolute;
}

.tsb-gallery-lightbox__inner {
    align-items: center;
    display: flex;
    height: min(86vh, 820px);
    justify-content: center;
    max-width: 1180px;
    position: relative;
    width: min(92vw, 1180px);
    z-index: 1;
}

.tsb-gallery-lightbox__inner img {
    border-radius: 12px;
    box-shadow: 0 24px 80px rgba(0,0,0,.45);
    display: block;
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
}

.tsb-gallery-lightbox__close,
.tsb-gallery-lightbox__nav {
    align-items: center;
    background: rgba(255,255,255,.12);
    border: 1px solid rgba(255,255,255,.25);
    border-radius: 999px;
    color: #fff;
    cursor: pointer;
    display: flex;
    font-size: 34px;
    height: 54px;
    justify-content: center;
    line-height: 1;
    position: absolute;
    transition: background .2s ease, transform .2s ease;
    width: 54px;
    z-index: 2;
}

.tsb-gallery-lightbox__close:hover,
.tsb-gallery-lightbox__nav:hover {
    background: rgba(255,255,255,.22);
    transform: scale(1.04);
}

.tsb-gallery-lightbox__close {
    font-size: 32px;
    right: 0;
    top: -68px;
}

.tsb-gallery-lightbox__nav--prev {
    left: -72px;
}

.tsb-gallery-lightbox__nav--next {
    right: -72px;
}

.tsb-gallery-lightbox__count {
    bottom: -42px;
    color: rgba(255,255,255,.86);
    font-size: 14px;
    font-weight: 700;
    left: 50%;
    position: absolute;
    transform: translateX(-50%);
}

@media (max-width: 760px) {
    .tsb-gallery-lightbox {
        padding: 18px;
    }

    .tsb-gallery-lightbox__inner {
        width: 100%;
    }

    .tsb-gallery-lightbox__close {
        right: 6px;
        top: -62px;
    }

    .tsb-gallery-lightbox__nav {
        bottom: -66px;
        top: auto;
    }

    .tsb-gallery-lightbox__nav--prev {
        left: calc(50% - 72px);
    }

    .tsb-gallery-lightbox__nav--next {
        right: calc(50% - 72px);
    }
}

/* Correctifs lightbox mobile + support vidéo dans la lightbox. */
.tsb-gallery-lightbox__media {
    align-items: center;
    display: flex;
    height: 100%;
    justify-content: center;
    overflow: hidden;
    position: relative;
    width: 100%;
}

.tsb-gallery-lightbox__media iframe,
.tsb-gallery-lightbox__media video {
    background: #000;
    border: 0;
    display: block;
    height: 100%;
    max-height: 100%;
    max-width: none;
    object-fit: cover;
    pointer-events: none;
    width: 100%;
}

.tsb-gallery-lightbox__media iframe[hidden],
.tsb-gallery-lightbox__media video[hidden],
.tsb-gallery-lightbox__media img[hidden],
.tsb-gallery-lightbox__video-mask[hidden] {
    display: none !important;
}

.tsb-gallery-lightbox__video-mask {
    background-color: #000;
    background-position: center;
    background-size: cover;
    inset: 0;
    pointer-events: none;
    position: absolute;
    z-index: 4;
}

.tsb-gallery-lightbox__video-mask.is-running {
    animation: tsbHeroVideoMaskOut 1.35s ease forwards;
    display: block !important;
}

@media (max-width: 760px) {
    .tsb-gallery-lightbox__inner {
        height: calc(100vh - 170px);
        max-height: calc(100vh - 170px);
    }

    .tsb-gallery-lightbox__nav {
        bottom: -74px !important;
        left: 50% !important;
        right: auto !important;
        top: auto !important;
    }

    .tsb-gallery-lightbox__nav--prev {
        transform: translateX(-68px) !important;
    }

    .tsb-gallery-lightbox__nav--next {
        transform: translateX(14px) !important;
    }

    .tsb-gallery-lightbox__nav--prev:hover {
        transform: translateX(-68px) scale(1.04) !important;
    }

    .tsb-gallery-lightbox__nav--next:hover {
        transform: translateX(14px) scale(1.04) !important;
    }

    .tsb-gallery-lightbox__count {
        bottom: -112px !important;
    }
}

/* Correctif mobile lightbox : contrôles toujours visibles dans l'écran. */
@media (max-width: 760px) {
    .tsb-gallery-lightbox {
        align-items: center !important;
        padding: 64px 12px 72px !important;
    }

    .tsb-gallery-lightbox__inner {
        height: 100% !important;
        max-height: none !important;
        width: 100% !important;
    }

    .tsb-gallery-lightbox__close {
        background: rgba(0,0,0,.62) !important;
        border: 1px solid rgba(255,255,255,.35) !important;
        box-shadow: 0 10px 28px rgba(0,0,0,.28) !important;
        height: 50px !important;
        position: fixed !important;
        right: max(14px, env(safe-area-inset-right)) !important;
        top: max(14px, env(safe-area-inset-top)) !important;
        transform: none !important;
        width: 50px !important;
        z-index: 1000002 !important;
    }

    .tsb-gallery-lightbox__nav {
        background: rgba(0,0,0,.58) !important;
        border: 1px solid rgba(255,255,255,.32) !important;
        bottom: auto !important;
        box-shadow: 0 10px 28px rgba(0,0,0,.22) !important;
        height: 46px !important;
        position: fixed !important;
        top: 50% !important;
        width: 46px !important;
        z-index: 1000002 !important;
    }

    .tsb-gallery-lightbox__nav--prev {
        left: max(10px, env(safe-area-inset-left)) !important;
        right: auto !important;
        transform: translateY(-50%) !important;
    }

    .tsb-gallery-lightbox__nav--next {
        left: auto !important;
        right: max(10px, env(safe-area-inset-right)) !important;
        transform: translateY(-50%) !important;
    }

    .tsb-gallery-lightbox__nav--prev:hover {
        transform: translateY(-50%) scale(1.04) !important;
    }

    .tsb-gallery-lightbox__nav--next:hover {
        transform: translateY(-50%) scale(1.04) !important;
    }

    .tsb-gallery-lightbox__count {
        background: rgba(0,0,0,.55) !important;
        border-radius: 999px !important;
        bottom: max(18px, env(safe-area-inset-bottom)) !important;
        color: #fff !important;
        left: 50% !important;
        padding: 6px 12px !important;
        position: fixed !important;
        transform: translateX(-50%) !important;
        z-index: 1000002 !important;
    }

    .tsb-gallery-lightbox__media,
    .tsb-gallery-lightbox__inner img {
        border-radius: 12px !important;
    }
}

/* Recherche accueil : sélection de créneau + réservation directe. */
.tsb-search-slot {
    background: #fff !important;
    border: 1px solid var(--tsb-border) !important;
    border-radius: 10px !important;
    color: var(--tsb-text) !important;
    cursor: pointer;
    display: grid !important;
    gap: 3px;
    min-width: 132px;
    padding: 12px 14px !important;
    text-align: left;
}

.tsb-search-slot strong {
    font-size: 14px;
}

.tsb-search-slot span {
    background: transparent !important;
    color: var(--tsb-gold) !important;
    font-size: 16px !important;
    font-weight: 800;
    padding: 0 !important;
}

.tsb-search-slot small {
    color: var(--tsb-muted);
    font-size: 12px;
}

.tsb-search-slot.is-selected {
    background: var(--tsb-green) !important;
    border-color: var(--tsb-green) !important;
    color: #fff !important;
}

.tsb-search-slot.is-selected span,
.tsb-search-slot.is-selected small,
.tsb-search-slot.is-selected strong {
    color: #fff !important;
}

.tsb-result__cta button[data-tsb-search-reserve] {
    background: var(--tsb-green);
    border: 0;
    border-radius: 999px;
    color: #fff;
    cursor: pointer;
    font-weight: 800;
    padding: 11px 18px;
}

.tsb-result__cta button[data-tsb-search-reserve]:disabled {
    cursor: not-allowed;
    opacity: .45;
}

.tsb-search-modal[hidden] {
    display: none !important;
}

.tsb-search-modal {
    align-items: center;
    display: flex;
    inset: 0;
    justify-content: center;
    padding: 24px;
    position: fixed;
    z-index: 999998;
}

.tsb-search-modal__backdrop {
    background: rgba(0,0,0,.58);
    inset: 0;
    position: absolute;
}

.tsb-search-modal__dialog {
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 30px 90px rgba(0,0,0,.28);
    max-height: min(820px, 92vh);
    max-width: 760px;
    overflow: auto;
    padding: 28px;
    position: relative;
    width: min(100%, 760px);
    z-index: 1;
}

.tsb-search-modal__close {
    align-items: center;
    background: #f3f0eb;
    border: 0;
    border-radius: 999px;
    cursor: pointer;
    display: flex;
    font-size: 26px;
    height: 40px;
    justify-content: center;
    position: absolute;
    right: 18px;
    top: 18px;
    width: 40px;
}

.tsb-search-modal h3 {
    margin: 0 52px 16px 0;
}

.tsb-search-modal__summary {
    background: var(--tsb-green-soft);
    border-radius: 14px;
    display: grid;
    gap: 5px;
    margin-bottom: 18px;
    padding: 14px 16px;
}

.tsb-search-modal__summary span {
    color: var(--tsb-muted);
    font-size: 13px;
}

.tsb-search-modal__options {
    display: grid;
    gap: 10px;
}

.tsb-search-option {
    align-items: center;
    border: 1px solid var(--tsb-border);
    border-radius: 14px;
    cursor: pointer;
    display: grid;
    gap: 12px;
    grid-template-columns: auto 56px minmax(0, 1fr) auto;
    padding: 12px;
}

.tsb-search-option > img {
    border-radius: 10px;
    height: 56px;
    object-fit: cover;
    width: 56px;
}

.tsb-search-option span {
    display: grid;
    gap: 3px;
}

.tsb-search-option small {
    color: var(--tsb-muted);
}

.tsb-search-option em {
    color: var(--tsb-gold);
    font-style: normal;
    font-weight: 800;
}

.tsb-search-modal__total {
    align-items: center;
    border-top: 1px solid var(--tsb-border);
    display: flex;
    justify-content: space-between;
    margin-top: 18px;
    padding-top: 18px;
}

.tsb-search-modal__total strong {
    color: var(--tsb-gold);
    font-size: 28px;
}

.tsb-search-modal__message {
    color: #b42318;
    margin: 12px 0 0;
}

.tsb-search-modal__confirm {
    background: var(--tsb-green);
    border: 0;
    border-radius: 999px;
    color: #fff;
    cursor: pointer;
    font-size: 16px;
    font-weight: 800;
    margin-top: 16px;
    padding: 14px 22px;
    width: 100%;
}

@media (max-width: 760px) {
    .tsb-result__cta {
        align-items: stretch;
        justify-items: stretch;
    }

    .tsb-result__cta button[data-tsb-search-reserve],
    .tsb-result__cta a {
        text-align: center;
        width: 100%;
    }

    .tsb-search-option {
        grid-template-columns: auto minmax(0, 1fr);
    }

    .tsb-search-option > img {
        display: none;
    }

    .tsb-search-option em {
        grid-column: 2;
    }
}

/* Ajustement design du module d'accueil : cohérent avec la fiche suite. */
.tsb-search {
    background: rgba(255,255,255,.96) !important;
    border: 1px solid rgba(228,222,212,.9) !important;
    border-radius: 20px !important;
    box-shadow: 0 22px 60px rgba(36,36,36,.14) !important;
    padding: 22px !important;
}

.tsb-search__form {
    align-items: end !important;
    gap: 14px !important;
    grid-template-columns: minmax(260px, 1fr) 240px 190px !important;
}

.tsb-search__form button[type="submit"] {
    border-radius: 8px !important;
    min-height: 48px !important;
    text-transform: uppercase;
}

.tsb-result {
    border-radius: 16px !important;
    box-shadow: 0 12px 34px rgba(36,36,36,.08) !important;
    gap: 18px !important;
    grid-template-columns: 230px minmax(0, 1fr) 185px !important;
    padding: 14px !important;
}

.tsb-result__image {
    border-radius: 12px !important;
}

.tsb-result h3 {
    color: var(--tsb-green);
    font-size: clamp(24px, 3vw, 34px);
    line-height: 1;
    margin-bottom: 12px !important;
}

.tsb-result__slots {
    display: grid !important;
    gap: 10px !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
}

.tsb-search .tsb-search-slot {
    align-content: center;
    border-radius: 12px !important;
    justify-items: center;
    min-height: 96px;
    min-width: 0 !important;
    text-align: center !important;
    width: auto !important;
}

.tsb-search .tsb-search-slot strong {
    line-height: 1.15;
}

.tsb-result__cta {
    align-content: center !important;
    border-left: 1px solid var(--tsb-border);
    padding-left: 18px;
}

.tsb-result__cta strong[data-tsb-search-card-total] {
    white-space: nowrap;
}

.tsb-result__cta button[data-tsb-search-reserve] {
    border-radius: 999px !important;
    min-height: 52px;
    width: 100%;
}

.tsb-result__cta a {
    border-radius: 8px !important;
}

@media (max-width: 980px) {
    .tsb-search__form,
    .tsb-result {
        grid-template-columns: 1fr !important;
    }

    .tsb-result__slots {
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    }

    .tsb-result__cta {
        border-left: 0;
        border-top: 1px solid var(--tsb-border);
        padding-left: 0;
        padding-top: 16px;
    }
}

@media (max-width: 640px) {
    .tsb-result__slots {
        grid-template-columns: 1fr !important;
    }
}

/* Le modal options du shortcode recherche réutilise exactement le style fiche suite. */
.tsb-search-booking-modal .tsb-option-list .tsb-muted {
    margin: 0;
}

.tsb-search-booking-modal .tsb-summary__total {
    margin-top: 18px;
}

/* Lien "Voir la suite" plus discret dans le module d'accueil. */
.tsb-result__cta .tsb-result__suite-link {
    background: transparent !important;
    border: 0 !important;
    color: var(--tsb-muted) !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    justify-self: center !important;
    min-height: auto !important;
    padding: 3px 0 !important;
    text-decoration: underline !important;
    text-underline-offset: 3px;
    width: auto !important;
}

.tsb-result__cta .tsb-result__suite-link:hover {
    color: var(--tsb-green) !important;
}

/* Calendrier premium du shortcode [tsb_search]. */
.tsb-search-date-wrap {
    position: relative;
}

.tsb-search-date-field {
    position: relative;
}

.tsb-search-date-field input[type="text"] {
    cursor: pointer;
    padding-right: 52px !important;
}

.tsb-search .tsb-search-date-toggle {
    align-items: center !important;
    background: transparent !important;
    border: 0 !important;
    color: var(--tsb-muted) !important;
    display: flex !important;
    height: 42px !important;
    justify-content: center !important;
    min-height: 0 !important;
    padding: 0 !important;
    position: absolute !important;
    right: 4px;
    top: 50%;
    transform: translateY(-50%);
    width: 42px !important;
}

.tsb-search-calendar[hidden] {
    display: none !important;
}

.tsb-search-calendar {
    background: #fff;
    border: 1px solid var(--tsb-border);
    border-radius: 18px;
    box-shadow: 0 24px 70px rgba(36,36,36,.22);
    left: 0;
    margin-top: 12px;
    padding: 20px;
    position: absolute;
    top: 100%;
    width: min(520px, calc(100vw - 42px));
    z-index: 9999;
}

.tsb-search-calendar__nav {
    align-items: center;
    display: grid;
    gap: 12px;
    grid-template-columns: 44px 1fr 44px;
    margin-bottom: 16px;
}

.tsb-search .tsb-search-calendar__nav button {
    background: #fff !important;
    border: 1px solid var(--tsb-border) !important;
    border-radius: 999px !important;
    color: var(--tsb-green) !important;
    font-size: 26px !important;
    height: 44px !important;
    min-height: 0 !important;
    padding: 0 !important;
    width: 44px !important;
}

.tsb-search-calendar__nav strong {
    color: var(--tsb-green);
    font-size: 18px;
    text-align: center;
}

.tsb-search-calendar__weekdays,
.tsb-search-calendar__days {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
}

.tsb-search-calendar__weekdays {
    color: var(--tsb-muted);
    font-size: 11px;
    font-weight: 800;
    gap: 6px;
    letter-spacing: .04em;
    margin-bottom: 8px;
    text-align: center;
}

.tsb-search-calendar__days {
    gap: 7px;
}

.tsb-search .tsb-search-calendar__day {
    align-items: center !important;
    background: #fff !important;
    border: 1px solid transparent !important;
    border-radius: 12px !important;
    color: var(--tsb-text) !important;
    cursor: pointer;
    display: flex !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    height: 48px !important;
    justify-content: center !important;
    min-height: 0 !important;
    padding: 0 !important;
    position: relative;
    width: 100% !important;
}

.tsb-search .tsb-search-calendar__day:hover:not(:disabled) {
    background: var(--tsb-green-soft) !important;
    border-color: rgba(18,63,49,.22) !important;
    color: var(--tsb-green) !important;
}

.tsb-search .tsb-search-calendar__day.is-selected {
    background: var(--tsb-green) !important;
    border-color: var(--tsb-green) !important;
    color: #fff !important;
}

.tsb-search .tsb-search-calendar__day.is-blocked:not(.is-selected) {
    background: #ffe5e5 !important;
    border-color: #ffc8c8 !important;
    color: #a32020 !important;
}

.tsb-search .tsb-search-calendar__day.is-blocked:not(.is-selected)::after {
    background: currentColor;
    border-radius: 999px;
    bottom: 6px;
    content: "";
    height: 3px;
    left: 50%;
    opacity: .72;
    position: absolute;
    transform: translateX(-50%);
    width: 14px;
}

.tsb-search .tsb-search-calendar__day.is-muted {
    color: #b8b3aa !important;
}

.tsb-search .tsb-search-calendar__day.is-disabled {
    cursor: not-allowed;
    opacity: .36;
}

.tsb-search-calendar__hint {
    color: var(--tsb-muted);
    font-size: 12px;
    margin: 14px 0 0;
    text-align: center;
}

@media (max-width: 760px) {
    .tsb-search-calendar {
        left: 50%;
        padding: 16px;
        transform: translateX(-50%);
        width: calc(100vw - 28px);
    }

    .tsb-search .tsb-search-calendar__day {
        height: 42px !important;
    }
}
