.twb {
  text-wrap: balance;
}

.ehf-header #masthead {
  position: absolute;
}

#masthead {
  .elementor-item:after {
    content: "";
    position: absolute;
    bottom: -60%;
    width: 100%;
    height: 60%;
    background-image: url(https://dalmeran.atelierdotcom.fr/wp-content/uploads/2025/05/gouttes_pleine.svg);
    background-size: 100% 100%;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 1;
    pointer-events: none;
    background-color: transparent;
  }
  .current-menu-parent .elementor-item:after {
    opacity: 1;
  }
}

#content .swiper-button-disabled{
  opacity: 1;
}

#content .goute-container {
  position: absolute;
  gap: 10px;
  bottom: 40px;
  right: 40px;
  width: fit-content;
  height: fit-content;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;

  @media (width <= 768px) {
    width: 100%;
    align-items: center;
    justify-content: space-around;
    right: 0;
    flex-direction: row;
    bottom: 10px;
  }

  .goute-top,
  .goute-bottom {
    inset: 0;

    &:hover{
      cursor: pointer;
    }
  }

  .goute-top {
    position: relative;
    width: 140px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    -webkit-mask-image: url(../images/backdrop_svg_prev.svg);
    mask-image: url(../images/backdrop_svg_prev.svg);
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    mask-position: center;

    svg {
      width: 100%;
      height: auto;
      path {
        fill: transparent;
        &:last-of-type {
          stroke: white;
        }
      }
    }

    &::after {
      display: none;
    }
  }

  .goute-bottom {
    position: relative;
    width: 140px;
    svg {
      width: 100%;
      height: auto;
      path {
        fill: white;
      }
    }

    &::after {
      display: none;
    }
  }
}

.discover {
  .discover-title {
  }
  .discover-content {
    display: none;
    &.active {
      display: block;
    }
  }
}

.discover-container {
  &::before {
    z-index: 5;
  }
  .e-con-inner {
    z-index: 10;
  }
}

.discover-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  /* &::before {
      content: "";
      position: absolute;
      inset: 0;
      z-index: 1;
      background-color: #000000;
      opacity: 0.5;
    } */
  .discover-overlay-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
}

.bottom-buttons {
  @media (width > 1024px) {
    min-height: 200px;
    max-height: 200px;
  }
  @media (width <= 1024px) {
    flex-direction: row !important;
    flex-wrap: nowrap;
    width: 100%;
    scroll-snap-type: x mandatory;
    justify-content: flex-start;
    overflow-x: auto;
    scroll-snap-align: start;
    .discover-btn {
      scroll-snap-align: start;
      flex: 0 0 70%;
      max-width: 100%;
      width: 100%;
    }
  }
}

.discover-btn {
  &:hover {
    cursor: pointer;
  }
  &.active {
    .elementor-heading-title {
      transition: font-size 0.3s ease-in-out;
      @media (width > 1025px) {
        font-size: 34px !important;
        font-weight: 600 !important;
      }
      @media (width <= 1025px) {
        font-size: 24px !important;
        font-weight: 600 !important;
      }
    }

    &::before {
      content: "";
      position: absolute;
      inset: 0;
      width: 100%;
      background-image: url(https://dalmeran.atelierdotcom.fr/wp-content/uploads/2025/05/gouttes_pleine.svg);
      background-size: 100% 100px;
      background-position: center;
      background-repeat: no-repeat;
      z-index: 1;
      pointer-events: none;
      background-color: transparent;
      top: -50%;
      border: none;
      @media (width <= 1024px) {
        display: none;
      }
    }
  }
}

.discover-content-btn {
  display: none;
  &.active {
    display: block;
  }
}

.discover-container {
  &::before {
    z-index: 5;
  }
}

.blur-effect{
  backdrop-filter: blur(10px);
  border-radius: 0px 20px 0px 50px;
  overflow: hidden;
  filter: brightness(1.3);
}

/* MAP */

.h-100{
  height: 100%;
}

.h-auto{
  height: auto;
}

.w-100{
  width: 100%;
}

.places {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;

  &.--destination{
    svg{
    }
  }

  .place {
    transition: transform 0.3s ease-in-out;

    &:hover, &.active {
      cursor: pointer;
      transform: translate(0, -4px);

      .label_name{
        fill: white;
      } 
      .cls-3{
        fill: #909681;
      }
    }

    .ligne_item {
      stroke: black;
      stroke-width: 1px;
    }

    .label_name {
      fill: black;
      stroke-width: 1px;
      transition: fill 0.3s ease;
      
    }
    .cls-3 {
      fill: #fffaf3;
      transition: fill 0.3s ease;

    }

    .cls-5 {
      stroke-width: 2px;
      stroke: black;
    }
  }
}
.pin {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 100;
  pointer-events: none;
}

.active p {
  opacity: 1;
  transition: opacity 0.3s ease;
}

.gradient::before {
  z-index: 2;
}


.gradient{ 
 .img-map{
  position: absolute!important;
  width: 100% !important;
 }
}

.map-no-image .text-wrapper{
  height: 0;
}

.text-wrapper {
  position: relative;
  inset: 0;
  z-index: 10;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.6s ease-out;
  height: 0;
  min-height: unset!important;
  padding: 0!important;
  &.active {
    opacity: 1;
    transition: opacity 0.6s ease-out;
    pointer-events: auto;
    height: fit-content;
    position: relative;
    visibility: visible;
    min-height: unset!important;
    padding: 0!important;
  }
}

.carte-vins .text-wrapper.active{
  padding: var(--padding-top) var(--padding-right) var(--padding-bottom) var(--padding-left)!important;
}

.carte-vins .text-wrapper .elementor-widget-button{
  animation: none!important;
  transition: none!important;
  *{
    animation: none!important;
    transition: none!important;
  }
}


:root{
  --custom-width: calc(90vh - 54px);
  @media (width <= 600px) {
    --custom-width: calc(90vh - 95px);
  }
}

.text-for-map {
  position: absolute;
  inset: 0;
}

.text-container {
  min-height: 100px;
}

.text-for-map:not(.active) p {
  opacity: 0;
  transition: opacity 0.3s ease;
}
.text-for-map.active {
  position: relative;
}
.text-for-map.active p {
  opacity: 1;
  transition: opacity 0.3s ease;
}

.visites{
  height: 100%;
}

.visites .visite-inner-tab {
  height: 100%;
}

/* .swiper-fade .swiper-slide {
  transition-property: opacity;
  transition-duration: 0.7s;
  opacity: 0;
  pointer-events: none;
}

.swiper-fade .swiper-slide-active {
  opacity: 1;
  pointer-events: auto;
} */




.visites .visite-inner-tab .e-n-tabs-heading {
  width: 100%;
  position: absolute;
  align-items: center;
  bottom: 0;
  z-index: 50;
  margin-bottom: 20px;
  overflow-x: auto;

  button {
    flex: 1;
    span {
      width: 100%;
    }
  }
}

.visites.elementor-widget-n-tabs .e-n-tabs {
  height: var(--custom-width);
}

.visites.elementor-widget-n-tabs .e-n-tabs-heading {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;

  button {
    width: 100%;
    height: 100%;
    background-color: transparent !important;
    border: none;
    cursor: pointer;
    margin: 0 !important;
    flex: 0;

    &:hover {
      background-color: transparent !important;
    }

    span {
      text-wrap: pretty;
      text-align: center;
      transition: font-size 0.3s ease-in-out;
      width: max-content;
    }
    &[aria-selected="true"] {
      &::before {
        content: "";
        position: absolute;
        inset: 0;
        z-index: 1;
        background-image: url(https://dalmeran.atelierdotcom.fr/wp-content/uploads/2025/06/goute_taupe.svg);
        background-size: 100% 100%;
        background-position: center;
        background-repeat: no-repeat;
        height: 60px;
        bottom: -60px;
        top: unset;
      }
    }
  }
}
@media (width >= 768px) {
  .visites .e-n-tabs-content {
    .elementor-widget-container {
      .e-n-tabs {
        height: 100%;
      }
    }
  }
}
.visites > .elementor-widget-container > .e-n-tabs > .e-n-tabs-heading {
  z-index: 100;
  button {
    &:hover {
      span {
        font-size: 34px;
        font-weight: 600;
      }
    }
    &[aria-selected="true"] {
      span {
        font-size: 34px;
        font-weight: 600;
      }
    }
  }
  @media (width <= 880px) {
    flex-wrap: wrap;
    button {
      height: auto;
      &:before {
        display: none;
      }
    }
  }
}
.visites.elementor-widget-n-tabs .e-n-tabs-content {
  height: var(--custom-width);

  .e-n-tabs-heading {
    @media (width <= 1024px) {
      scroll-snap-type: x mandatory;
      overflow-x: auto;
      scroll-snap-align: start;
      justify-content: flex-start;
      flex-direction: row;
      align-items: stretch;
      flex-wrap: nowrap;
      width: 100%;
      margin: 0 !important;
      border-top: 1px solid white;
    }
    button {
      flex: 1;
      @media (width <= 1024px) {
        scroll-snap-align: start;
        flex: 0 0 50%;
        max-width: 100%;
        width: 100%;
        margin: 0 !important;
        border-right: 1px solid white;
        height: auto;
        &:last-of-type {
          border-right: none;
        }
      }
      span {
        font-size: 24px;
        @media (width <= 880px) {
          font-size: 20px;
        }
        line-height: 1.2;
        text-wrap: pretty;
        text-align: center;
      }

      &:hover {
        span {
          font-size: 34px;
          @media (width <= 880px) {
            font-size: 22px;
          }
        }
      }

      &[aria-selected="true"] {
        &::before {
          display: none;
        }
        span {
          font-size: 34px;
          font-weight: 600;

          @media (width <= 880px) {
            font-size: 22px;
          }
        }
      }
    }
  }
}

.elementor-widget-n-tabs .e-n-tabs-content>.visite-item.e-active{
  display: block !important;
  position: absolute;
  inset: 0;
  opacity: 1;
  pointer-events: auto;
  z-index: 10;
  height: 100%;
  min-height: var(--custom-width);
  animation: fadeIn .6s ease-in-out;
}
@keyframes fadeIn {
  from {
    opacity: 0.5;
  }
  to {
    opacity: 1;
  }
}
@keyframes fadeOut {
  from {
    opacity: 1;
  }
  to {
    opacity: 0.5;
  }
}
.elementor-widget-n-tabs .e-n-tabs-content>.visite-item:not(.e-active){
  display: block !important;
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  z-index: -10;
  transition: opacity 0.6s ease-in-out;
}

.main-image,
.fade-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: auto;
  object-fit: cover;
  transition: opacity 0.6s ease;
}

.main-image {
  z-index: 1;
  opacity: 1;
}

.fade-image {
  z-index: 2;
  opacity: 0;
  pointer-events: none;
}

.chambre-all {
  
  @media (width <= 1024px) {
    .e-con-inner{
      flex-wrap: nowrap !important;
      align-items: flex-start !important;
    }
    scroll-snap-type: x mandatory;
    overflow-x: auto;
    flex-wrap: nowrap;
    width: 100%;
    .chambre-item {
      scroll-snap-align: center;
      flex: 0 0 85%;
      max-width: 100%;
      width: 100%;
    }
  }
  .chambre-item {
    transition: transform 0.3s ease-in-out;
    @media (width > 1024px) {
      &::before {
        content: "";
        position: absolute;
        inset: 0;
        z-index: 1;
        background: linear-gradient(180deg, #00000000 52%, #192115 124%);
      }
    }

    .chambre-color {
      &.sauge {
        --color-bg: rgba(158, 165, 148, 0);
        --color-bg-hover: rgba(135, 142, 126, 1);
      }
      &.corail {
        --color-bg: rgba(208, 162, 134, 0);
        --color-bg-hover: rgba(208, 162, 134, 1);
      }
      &.taupe {
        --color-bg: rgba(202, 192, 183, 0);
        --color-bg-hover: rgba(202, 192, 183, 1);
      }
      position: absolute;
      bottom: 0;
      background-color: var(--color-bg);
      transition: background-color 0.3s ease-in-out;

      &::before {
        content: "";
        position: absolute;
        inset: 0;
        z-index: 1;
        opacity: 0;
        background: url(https://dalmeran.atelierdotcom.fr/wp-content/uploads/2025/05/goutte_blanche-04.svg)
          no-repeat center center;
        height: 100px;
        top: -76px;
        transition: opacity 0.3s ease-in-out;

        @media (width <= 1024px) {
          display: none;
        }
      }

      &:hover {
        &::before {
          opacity: 1;
        }
      }
      @media (width <= 1024px) {
        position: relative;
        background-color: transparent;
        flex-direction: column;
        flex-wrap: nowrap;

        * {
          color: black !important;
        }

        .elementor-button {
          border-color: black;
        }
      }
    }

    .hidden-el {
      height: 0;
      overflow: hidden;
      transition: height 0.3s ease-in-out;

      @media (width <= 1024px) {
        height: 100% !important;
      }
    }

    @media (width > 1024px) {
      &:hover {
        transform: scale(1.02);

        .chambre-color {
          background-color: var(--color-bg-hover);
          
        }
      }
    }
  }
}

#content .image-zoom-carousel{
  overflow: hidden;
  border-radius: 20px;

  .goute-container{
    .goute-top{
      mask-position: top;
    }
  }
}

.chambre-carousel{

  .swiper{
    max-height: 100vh;
    @media (width >= 1600px) {
      height: 400px;
    }
  }

 @media (width <= 768px) {
  .swiper{
    height: 100%;
  }
 }

  .swiper-slide-inner{
    height: 100%;

    .swiper-slide-image {
      aspect-ratio: 3 / 4;
      @media (width <= 768px) {
        aspect-ratio: 1 / 1 !important;
      }
      overflow: hidden;
      object-fit: cover;
    }
  }

  .elementor-swiper-button-next{
    right: 0;
  }
  .elementor-swiper-button-prev{
    left: 0;
  }

  &.bigger{
    .swiper{
      height: 100%;
    }

    .swiper-slide-inner{
      .swiper-slide-image{
        aspect-ratio: 4 / 5;
        @media (width <= 768px) {
          aspect-ratio: 1 / 1 !important;
        }
      }
    }
  }
  
}


.activite-wrapper{

  &::before{
    z-index: 10;
    @media (width <= 768px) {
      background-image: linear-gradient(0deg, #FFFFFF00 -27%, #000000 79%) !important;
    }
  }

  .activite-carousel{
    width: calc(100% - 20px) !important;
    scroll-snap-type: x mandatory;
    scroll-snap-align: start;
    overflow-x: auto;
    justify-content: flex-start;
    flex-direction: row;
    flex-wrap: nowrap;
    width: 100%;
    scrollbar-width: none;
    -ms-overflow-style: none;
    &::-webkit-scrollbar {
      display: none;
    }
    .activite-item{
      scroll-snap-align: start;
      flex: 1 0 40%;
      max-width: 100%;
      width: 100%;
      @media (width <= 768px) {
        flex: 1 0 70%;
      }
      .elementor-widget-image{
        overflow: hidden;
        &::before{
          content: "";
          width: 100%;
          height: 100%;
          inset: 0;
          background-image: linear-gradient(180deg, #FFFFFF00 40%, #000000 100%);
          position: absolute;
          pointer-events: none;
          z-index: 1;
        }
      }
    }
  }

  .to-change{
    opacity: 0;
    display: none;
    &.active{
      opacity: 1;
      display: flex;
    }
  }
}


.elem-to-change-carousel{
  position: relative;
  inset: 0;
  z-index: 10;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.45s ease-in-out, visibility 0.45s ease-in-out;
  &:not(.active){
    height: 0;
    overflow: hidden;
    padding: 0;
  }
  &.active{
    height: fit-content;
    opacity: 1;
    visibility: visible;
    transition: opacity 0.45s ease-in-out, visibility 0.45s ease-in-out;
  }
}


.carousel-home {
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: thin;
  scrollbar-color: #356d85 transparent;
  padding-bottom: 20px;

  @media (width <= 768px) {
    flex-wrap: nowrap !important;
  }
  

  &::-webkit-scrollbar {
    height: 8px;
    display: none;
  }

  &::-webkit-scrollbar-track {
    background: transparent;
  }

  &::-webkit-scrollbar-thumb {
    background-color: #356d85;
    border-radius: 4px;
  }

  .d-none {
    display: none;
  }

  > .e-child {
    flex: 1 0 26%;
    max-height: 300px;

    img {
      aspect-ratio: 1/1;
      object-fit: cover;
      -moz-user-select: none;
      -webkit-user-select: none;
      user-select: none;
      pointer-events: none;
    }
  }

  .carousel-item {
    position: relative;
    &:hover {
      cursor: pointer;
    }
    > :not(.description) .elementor-heading-title{
      width: 100%;
      text-wrap: balance;
      margin-inline: auto;
      line-height: 1.2 !important;
      padding: 16px;
    }




    .elementor-widget-image {
      position: relative;
      border-radius: 20px;
      overflow: hidden;
      &::before {
        content: "";
        height: 100%;
        width: 100%;
        background: linear-gradient(
          to bottom,
          rgba(0, 0, 0, 0),
          rgba(0, 0, 0, 0.5)
        );
        position: absolute;
        bottom: 0;

        left: 0;
        pointer-events: none;
        z-index: 1;
      }
    }
    .elementor-widget-heading,
    .elementor-widget-button {
      z-index: 10;
    }
  }
  @media (width <= 1200px) {
    .e-child{
      max-height: unset;
    }
    .d-none {
      display: block;
    }
    .carousel-item {
      padding-bottom: 20px;
      .elementor-absolute{
        position: relative !important;
        .elem-to-change-carousel{
          padding: 16px !important;
          &:before{
            display: none !important;
          }
          ul{
            margin-left: 20px;
          }
        }
        *{
          color: black !important;
        }
      }
    }
    .elementor-widget-heading {
      display: flex;
      align-items: center;
      justify-content: center;
      width: 100%;
      height: fit-content;
      .elementor-widget-container {
        width: 100%;
        transform: unset !important;
        padding-top: 20px;
        -webkit-transform: unset !important;
        -moz-transform: unset !important;
        -ms-transform: unset !important;
        -o-transform: unset !important;
}
    }
  }

  @media (width <= 1440px) {
    .e-child {
      flex: 1 0 40%;
    }
  }

  @media (width <= 880px) {
    .e-child {
      flex: 1 0 60%;
    }
  }

 
  @media (width <= 567px) {
    .e-child {
      flex: 1 0 90%;
    }
  }
}

.bg-image.bg-feature{
  border-radius: 20px;
  overflow: hidden;
  &::before{
    z-index: 3;
  }
}

[data-clone="true"] {
  /* Masquer pour les crawlers mais garder visible pour les utilisateurs */
  position: relative;
  z-index: 1;
}

/* Optionnel : masquer complètement pour les crawlers */
@media print {
  [data-clone="true"] {
    display: none !important;
  }
}

.elementor-widget-icon{
  .cls-1{
    stroke: none;
    stroke-width: 0;
  }
}


.iframe-popup {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.5);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
}
.iframe-popup-content {
  background: #fff;
  padding: 0;
  border-radius: 8px;
  max-width: 90vw;
  max-height: 90vh;
  position: relative;
  box-shadow: 0 2px 20px rgba(0,0,0,0.2);
  z-index: 10;
}
.iframe-popup-content iframe {
  display: block;
  border: none;
  width: 70vw;
  height: 70vh;

  @media (width <= 1024px) {
    width: 80vw;
    height: 60vh;
  }

  @media (width <= 480px) {
    width: 90vw;
    height: 50vh;
  }
}
.iframe-popup-close {
  position: absolute;
  top: 10px; right: 20px;
  font-size: 2em;
  cursor: pointer;
  color: #333;
  z-index: 2;
}
.iframe-popup-overlay {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: transparent;
  z-index: 1;
}