.hospitality-platform .tab-image-mobile {
  display: none;
}

.hospitality-platform .accordion-toggle-icon {
  display: none;
}

.smartenergy-once.active {
  padding: 37px 20px !important;
}

.smartentertainment-once.active {
  padding: 37px 20px !important;
}

.next-gen-hospitality .hospitality-platform .content-area {
  height: 430px;
}

@media (max-width: 991px) {
  .hospitality-platform .tab-image-mobile {
    display: block;
    margin-bottom: 0px;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.35s ease, opacity 0.3s ease;
    margin-left: 10px;
  }

  .hospitality-platform .tab-button {
    margin-bottom: 16px !important;
    background-color: #E8E8ED !important;
  }

  .hospitality-platform .tab-button.active h3 {
    margin-top: 22px;
  }

  .hospitality-platform .tab-button.active .tab-image-mobile {
    min-height: 205px !important;
    animation: hospitality-fade-in-up 0.5s ease-in-out both;
    opacity: 1 !important;
    overflow: visible !important;
    /* margin-top: 20px; */
    width: 100%;
  }

  /* On mobile we only want the image inside the card, hide big preview on the right */
  .hospitality-platform .content-area {
    display: none;
  }

  .hospitality-platform .tabs-container {
    width: 100%;
  }

  .hospitality-platform .tab-image-mobile img {
    visibility: visible !important;
    opacity: 1 !important;
    width: 100%;
    height: 100%;
    display: block;
    border-radius: 8px;
    object-fit: cover;
    margin-top: -10px;
  }

  .hospitality-platform .tab-button p {
    display: block;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    margin: 0;
    transition: all 0.3s ease;
  }

  .hospitality-platform .tab-button.active p {
    max-height: 500px;
    /* enough for text */
    opacity: 1 !important;
    overflow: visible !important;
    margin-top: 16px;
  }

  .hospitality-platform .learn-more-mobile {
    display: none;
    margin-top: 10px;
    font-weight: 700;
    font-size: 14px;
    color: #1a73e8;
    text-decoration: none;
  }

  .hospitality-platform .tab-button.active .learn-more-mobile {
    display: inline-block;
    margin-top: 0px;
  }

  .hospitality-platform .redirect-arrow {
    display: none;
  }

  .hospitality-platform .accordion-toggle-icon {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 700;
    color: #1e1e1e;
    pointer-events: none;
    transition: background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease;
  }

  .hospitality-platform .accordion-toggle-icon::before {
    content: "";
    width: 20px;
    height: 20px;
    line-height: 1;
    font-size: 25px;
    background-image: url(../Images/plus.svg);
    background-repeat: no-repeat;
    background-size: cover;
  }

  .hospitality-platform .tab-button.active .accordion-toggle-icon::before {
    content: "";
  }

  .hospitality-platform .tab-button {
    padding: 16px !important;
    /* background-color: transparent !important; */
    border-color: #E8E8ED !important;
  }

  .smartenergy-once.active {
    padding: 16px !important;
  }

  .next-gen-hospitality .tab-image-mobile {
    margin-left: 0px;
  }

  .next-gen-hospitality .tab-button.active .tab-image-mobile {
    max-height: inherit;
  }

  .next-gen-hospitality .tab-image-mobile img {
    margin-top: 0px !important;
  }
}

/* Smooth open / close for left cards (tabs) - DESKTOP ONLY */
@media (min-width: 992px) {
  .hospitality-platform .tab-button {
    transition: background-color 0.5s cubic-bezier(0.4, 0, 0.2, 1),
      box-shadow 0.5s cubic-bezier(0.4, 0, 0.2, 1),
      border-color 0.5s cubic-bezier(0.4, 0, 0.2, 1),
      transform 0.5s cubic-bezier(0.4, 0, 0.2, 1),
      padding 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  }

  .hospitality-platform .tab-button p {
    /* Override base styles to allow smooth expand/collapse */
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    margin-top: 0;
    margin-bottom: 0;
    transition: all 0.5s ease;
  }

  .hospitality-platform .tab-button.active {
    transform: translateY(-3px);
  }

  .hospitality-platform .tab-button.active p {
    max-height: 200px;
    /* enough for text */
    opacity: 1 !important;
    overflow: visible !important;
    margin-top: 8px;
    margin-bottom: 0;
  }
}

/* Smooth transition for main image/content area on the right */
/* Override display:none from style.css to allow smooth transitions */
.hospitality-platform .content-area {
  position: relative;
  overflow: hidden;
}

.hospitality-platform .tab-content {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transform: translateY(20px) scale(0.96);
  /* Slower, smoother image transition */
  transition: all 0.5s ease;
  pointer-events: none;
  visibility: hidden;
}

.hospitality-platform .tab-content.active {
  opacity: 1 !important;
  overflow: visible !important;
  transform: translateY(0) scale(1) !important;
  pointer-events: auto;
  visibility: visible;
}

.hospitality-platform .tab-button.active .accordion-toggle-icon {
  top: auto;
  bottom: 0px;
}

.hospitality-platform .tab-button.active .accordion-toggle-icon::before {
  content: '';
  width: 20px;
  height: 20px;
  font-size: 25px;
  position: absolute;
  top: auto;
  bottom: 20px;
  background-image: url(../Images/minus-icon.svg);
  background-repeat: no-repeat;
  background-size: cover;
  right: 5px;
}


@keyframes hospitality-fade-in-up {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1 !important;
    overflow: visible !important;
    transform: translateY(0);
  }
}

@media (max-width:575px) {
  .hospitality-platform .tab-button p {
    width: 92% !important;
  }
}

.active .redirect-arrow {
  background-color: #1E1E1E;
  border-color: #1E1E1E;
}

.active .redirect-arrow img {
  transform: rotate(45deg);
  filter: invert(1);
}