/* ==========================================================================
   DHR Hotel Rooms - Image Overlay Widget Styles
   ========================================================================== */

.dhr-hotel-card {
  position: relative;
  width: 100%;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-sizing: border-box;
  height: 100%;
}

/* ==========================================================================
   Background Image Container & Zoom Effect
   ========================================================================== */

.dhr-hotel-card__image-wrap {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  overflow: hidden;
}

.dhr-hotel-card__image {
  width: 100%;
  height: 100% !important;
  object-fit: cover;
  transform: scale(1);
  transition: transform 0.8s ease;
  will-change: transform;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.dhr-hotel-card:hover .dhr-hotel-card__image {
  transform: scale(1.15);
}

/* ==========================================================================
   Background Overlay
   ========================================================================== */

.dhr-hotel-card__overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.15) 0%,
    rgba(0, 0, 0, 0.8) 100%
  );
  transition: opacity 0.6s cubic-bezier(0.22, 1, 0.36, 1);
/* 	opacity: 0.5; */
}

/* ==========================================================================
   Main Content Container
   ========================================================================== */

.dhr-hotel-card__content {
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
  width: 100%;
  box-sizing: border-box;
}

/* ==========================================================================
   Top Price Badge
   ========================================================================== */

.dhr-hotel-card__badge-wrapper {
  display: flex;
  width: 100%;
}

.dhr-hotel-card__price {
  display: inline-block;
  font-weight: 600;
  font-size: 14px;
  line-height: 1;
  text-align: center;
  white-space: nowrap;
}

/* ==========================================================================
   Bottom Content Block
   ========================================================================== */

.dhr-hotel-card__bottom-wrap {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  width: 100%;
}

/* ==========================================================================
   Title
   ========================================================================== */

.dhr-hotel-card__title {
  font-weight: 600;
  margin: 0;
  line-height: 1.25;
  transform: translateY(0);
  transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
}

/* ==========================================================================
   Buttons Group Reveal Animation
   ========================================================================== */

.dhr-hotel-card__buttons {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 10px;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  margin-top: 0;
  transform: translateY(100%);
  transition:
    max-height 0.6s ease,
    opacity 0.5s ease-out,
    margin-top 0.6s ease,
    transform 0.6s ease;
  will-change: max-height, opacity, margin-top, transform;
}

/* Hover - Reveal Buttons */
.dhr-hotel-card:hover .dhr-hotel-card__buttons {
  max-height: 100px;
  opacity: 1;
  margin-top: 16px;
  transform: translateY(0);
}

/* ==========================================================================
   Buttons
   ========================================================================== */

.dhr-hotel-card__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-weight: 500;
  font-size: 14px;
  line-height: 1;
  text-align: center;
  cursor: pointer;
  transition:
    background-color 0.3s ease,
    color 0.3s ease,
    border-color 0.3s ease,
    transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
}

/* Subtle Button Hover */
.dhr-hotel-card__btn:hover {
/*   transform: translateY(-2px); */
}

/* ==========================================================================
   Mobile Touch / Accessibility Adjustment
   ========================================================================== */

@media (max-width: 767px) {
  .dhr-hotel-card__image {
    transform: scale(1);
  }

  .dhr-hotel-card__buttons {
/*     max-height: 100px;
    opacity: 1;
    margin-top: 12px;
    transform: translateY(0);
    transition: none; */
  }

  .dhr-hotel-card__btn:hover {
    transform: none;
  }
}

.dhr-hotel-card__content {
    position: relative;

    &:after{
        position: absolute;
        content: "";
        width: calc(100% - 100px);
        height: calc(100% - 100px);
        border: 1px solid var(--card-inner-border-color);
        transform: translate(-50%, -50%);
        left: 50%;
        top: 50%;
        opacity: 0;
        transition: width 0.3s ease, height 0.3s ease, opacity 0.3s ease;
        border-radius: 4px;
		z-index: -1;
    }
}

.dhr-hotel-card:hover {
    .dhr-hotel-card__content {
        &:after{
            width: calc(100% - 24px);
            height: calc(100% - 24px);
            opacity: 1;
        }
    }
}



/* ==========================================================================
   Reduced Motion Accessibility
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
  .dhr-hotel-card__image,
  .dhr-hotel-card__overlay,
  .dhr-hotel-card__title,
  .dhr-hotel-card__buttons,
  .dhr-hotel-card__btn {
    transition: none;
  }
}