/* Masquer le formulaire "Plan Your Trip" sur tous les listings tours */
body.tax-tour_destination .tours3 > .container > .row > .col-md-4,
body.tax-tour_type        .tours3 > .container > .row > .col-md-4,
body.search               .tours3 > .container > .row > .col-md-4 {
    display: none;
}

/* et passer la liste des tours en pleine largeur */
body.tax-tour_destination .tours3 > .container > .row > .col-md-8,
body.tax-tour_type        .tours3 > .container > .row > .col-md-8,
body.search               .tours3 > .container > .row > .col-md-8 {
    flex: 0 0 100%;
    max-width: 100%;
}

/* Listings tours : 3 cartes par ligne au lieu de 2 */
@media (min-width: 992px) {
    body.tax-tour_destination .tours3 .col-md-6:has(> .square-flip),
    body.tax-tour_type        .tours3 .col-md-6:has(> .square-flip),
    body.search               .tours3 .col-md-6:has(> .square-flip) {
        flex: 0 0 33.333333%;
        max-width: 33.333333%;
    }
}


.ck-boat-card {
  font-family: inherit;
  color: #1d1d1d;
}

.ck-boat-card__head {
  padding: 28px 0 24px;
  border-bottom: 1px solid rgba(0,0,0,.12);
}

.ck-boat-card__eyebrow {
  display: block;
  margin-bottom: 8px;
  font-size: 10px;
  line-height: 1.2;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: #8a8a8a;
}

.ck-boat-card__title {
  margin: 0 0 12px;
  font-size: clamp(30px, 3vw, 44px);
  line-height: .95;
  font-weight: 500;
  letter-spacing: -.02em;
}

.ck-boat-card__subtitle {
  margin: 0;
  font-size: 14px;
  line-height: 1.7;
  color: #777;
}

.ck-boat-card__specs {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  border-bottom: 1px solid rgba(0,0,0,.12);
}

.ck-boat-spec {
  padding: 20px 12px 20px 0;
}

.ck-boat-spec:nth-child(even) {
  padding-left: 18px;
  border-left: 1px solid rgba(0,0,0,.08);
}

.ck-boat-spec__label {
  display: block;
  margin-bottom: 6px;
  font-size: 9px;
  line-height: 1.2;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: #999;
}

.ck-boat-spec strong {
  font-size: 13px;
  line-height: 1.35;
  font-weight: 500;
}

.ck-boat-card__includes {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 22px 0;
}

.ck-boat-card__includes span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 6px 11px;
  border: 1px solid rgba(0,0,0,.12);
  border-radius: 999px;
  font-size: 10px;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: #555;
}

.ck-boat-card__button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 16px 18px;
  background: #202020;
  color: #fff !important;
  text-decoration: none !important;
  font-size: 10px;
  letter-spacing: .14em;
  text-transform: uppercase;
  transition: all .25s ease;
}

.ck-boat-card__button:hover {
  background: #333;
}

.ck-boat-card__button span {
  font-size: 18px;
  line-height: 1;
  transition: transform .25s ease;
}

.ck-boat-card__button:hover span {
  transform: translateX(4px);
}

@media (max-width: 767px) {
  .ck-boat-card__head {
    padding-top: 20px;
  }

  .ck-boat-card__title {
    font-size: 34px;
  }
}


img.boat-spec-icon.captain-icon {
  width: 23px;
  height: 23px;
  object-fit: contain;
  transform: scale(1.35);
  transform-origin: center;
}

/* =========================================================
   SECTION / GRID
========================================================= */

.boats-section {
  width: 100%;
}

.boats-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 36px;
  align-items: stretch;
}


/* =========================================================
   CARD
========================================================= */

.boat-card {
  position: relative;

  display: flex;
  flex-direction: column;

  min-width: 0;
  height: 100%;

  background: #ffffff;

  border-radius: 4px;
  overflow: hidden;

  box-shadow:
    0 8px 28px rgba(23, 41, 92, 0.10);

  transition:
    transform .25s ease,
    box-shadow .25s ease;
}

.boat-card:hover {
  transform: translateY(-3px);

  box-shadow:
    0 12px 34px rgba(23, 41, 92, 0.14);
}


/* =========================================================
   IMAGE ELEMENTOR
========================================================= */

/*
   Premier widget Elementor de la card = image
*/

.boat-card > .elementor-element:first-child {
  width: 100%;
  flex: 0 0 auto;
}

.boat-card > .elementor-element:first-child .elementor-widget-container {
  width: 100%;
  height: 250px;

  overflow: hidden;
}

.boat-card > .elementor-element:first-child img {
  display: block;

  width: 100%;
  height: 250px;

  object-fit: cover;
  object-position: center;

  transition: transform .4s ease;
}

.boat-card:hover > .elementor-element:first-child img {
  transform: scale(1.02);
}


/* =========================================================
   CONTENT ELEMENTOR WIDGET
========================================================= */

.boat-card > .elementor-element:nth-child(2) {
  display: flex;

  flex: 1;
  width: 100%;
}

.boat-card > .elementor-element:nth-child(2) .elementor-widget-container {
  display: flex;

  flex: 1;

  width: 100%;
}


/* =========================================================
   CARD CONTENT
========================================================= */

.boat-card-content {
  position: relative;

  display: flex;
  flex-direction: column;

  width: 100%;
  height: 100%;

  padding: 18px;

  box-sizing: border-box;

  color: #17295c;
}


/* =========================================================
   DESTINATIONS OVERLAY
========================================================= */

.boat-destinations-overlay {
  position: absolute;

  top: -258px;
  right: 14px;

  z-index: 5;

  padding: 8px 11px;

  background: rgba(23, 41, 92, .90);

  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);

  border: 1px solid rgba(255,255,255,.10);
  border-radius: 3px;

  box-shadow:
    0 4px 12px rgba(0, 0, 0, .10);

  pointer-events: none;
}

.boat-destinations-overlay small {
  display: block;

  margin: 0 0 3px;

  font-size: 8px;
  line-height: 1;

  font-weight: 600;

  letter-spacing: .10em;
  text-transform: uppercase;

  color: rgba(255,255,255,.62);
}

.boat-destinations-overlay strong {
  display: block;

  margin: 0;

  font-size: 12px;
  line-height: 1.2;

  font-weight: 600;

  white-space: nowrap;

  color: #ffffff;
}

.boat-destinations-overlay i {
  padding: 0 4px;

  font-style: normal;

  color: rgba(255,255,255,.45);
}


/* =========================================================
   BOAT TYPE
========================================================= */

.boat-type {
  margin: 0 0 5px;

  font-size: 10px;
  line-height: 1;

  font-weight: 600;

  letter-spacing: .13em;
  text-transform: uppercase;

  color: #8e949d;
}


/* =========================================================
   BOAT NAME
========================================================= */

.boat-name {
  margin: 0 0 8px;

  font-size: 30px;
  line-height: 1.05;

  font-weight: 500;

  letter-spacing: -.025em;

  color: #17295c;
}


/* =========================================================
   INTRO
========================================================= */

.boat-intro {
  min-height: 42px;

  margin: 0 0 12px;

  font-size: 13px;
  line-height: 1.55;

  font-weight: 400;

  color: #707681;
}


/* =========================================================
   SPECS
========================================================= */

.boat-specs {
  display: flex;
	justify-content: space-between;

  gap: 10px;

  min-height: 44px;

  padding: 9px 0;

  border-top: 1px solid #e3e5e8;
  border-bottom: 1px solid #e3e5e8;

  box-sizing: border-box;
}

.boat-spec {
  display: flex;

  align-items: center;

  gap: 7px;

  min-width: 0;
}

.boat-spec > div {
  min-width: 0;
}


/* =========================================================
   SPEC ICONS
========================================================= */

.boat-spec-icon {
  display: block;

  flex: 0 0 22px;

  width: 22px;
  height: 22px;

  margin: 0;

  object-fit: contain;
}

svg.boat-spec-icon {
  fill: none;

  stroke: #17295c;
  stroke-width: 1.5;

  stroke-linecap: round;
  stroke-linejoin: round;
}

img.boat-spec-icon.captain-icon {
  width: 22px;
  height: 22px;

  flex-basis: 22px;

  object-fit: contain;
}


/* =========================================================
   SPEC LABELS
========================================================= */

.boat-spec small {
  display: block;

  margin: 0 0 2px;

  font-size: 8px;
  line-height: 1;

  font-weight: 600;

  letter-spacing: .09em;
  text-transform: uppercase;

  color: #9297a0;
}

.boat-spec strong {
  display: block;

  margin: 0;

  font-size: 11px;
  line-height: 1.15;

  font-weight: 600;

  white-space: nowrap;

  color: #262b33;
}


/* =========================================================
   FEATURES
========================================================= */

.boat-features {
  min-height: 42px;

  margin: 10px 0 13px;

  font-size: 11px;
  line-height: 1.55;

  font-weight: 400;

  color: #7b8089;
}

.boat-features i {
  padding: 0 3px;

  font-style: normal;

  color: #b2b6bd;
}


/* =========================================================
   CTA
========================================================= */

.boat-cta {
  display: flex;
    align-items: center;
    justify-content: space-between;
    width: max-content;
    margin-top: auto;
    box-sizing: border-box;
    padding: 14px 14px;
    background: #3B8CB3;
    border-radius: 4px;
    color: #ffffff !important;
    text-decoration: none !important;
    font-size: 14px;
    line-height: 1;
    font-weight: 600;
    letter-spacing: .08em;
    text-transform: uppercase;
    transition: background .2s ease, transform .2s ease, box-shadow .2s ease;
}

.boat-cta:hover {
  background: #3B8CB3;

  color: #ffffff !important;

  transform: translateY(-1px);

  box-shadow:
    0 5px 14px rgba(23, 41, 92, .15);
}

.boat-arrow {
  margin-left: 10px;

  font-size: 17px;
  line-height: 1;

  font-weight: 300;
}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 1024px) {

  .boats-grid {
    gap: 22px;
  }

  .boat-card > .elementor-element:first-child .elementor-widget-container,
  .boat-card > .elementor-element:first-child img {
    height: 220px;
  }

  .boat-destinations-overlay {
    top: -230px;
    right: 11px;
  }

  .boat-card-content {
    padding: 16px;
  }

  .boat-name {
    font-size: 27px;
  }

  .boat-specs {
    gap: 7px;
  }

  .boat-spec {
    gap: 5px;
  }

  .boat-spec-icon,
  img.boat-spec-icon.captain-icon {
    width: 20px;
    height: 20px;

    flex-basis: 20px;
  }

  .boat-spec strong {
    font-size: 10.5px;
  }

}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 767px) {

  .boats-grid {
    grid-template-columns: 1fr;

    gap: 24px;
  }

  .boat-card {
    height: auto;
  }

  .boat-card > .elementor-element:first-child .elementor-widget-container,
  .boat-card > .elementor-element:first-child img {
    height: 230px;
  }

  .boat-destinations-overlay {
    top: -216px;
    right: 10px;

    padding: 7px 9px;
  }

  .boat-destinations-overlay small {
    font-size: 7px;
  }

  .boat-destinations-overlay strong {
    font-size: 11px;
  }

  .boat-card-content {
    padding: 15px;
  }

  .boat-name {
    font-size: 27px;
  }

  .boat-intro {
    min-height: 0;

    margin-bottom: 10px;

    font-size: 13px;
  }

  .boat-specs {
    gap: 8px;
  }

  .boat-spec-icon,
  img.boat-spec-icon.captain-icon {
    width: 19px;
    height: 19px;

    flex-basis: 19px;
  }

  .boat-spec strong {
    font-size: 10.5px;
  }

  .boat-features {
    min-height: 0;

    margin: 8px 0 11px;

    font-size: 10.5px;
  }

  .boat-cta {
    padding: 10px 13px;
  }

}