@keyframes slideInLeft {
  0% {
    opacity: 0;
    transform: translateX(-60px) scale(0.98) skewX(-8deg);
    filter: blur(4px);
  }

  60% {
    opacity: 1;
    transform: translateX(8px) scale(1.01) skewX(2deg);
    filter: blur(0);
  }

  100% {
    opacity: 1;
    transform: translateX(0) scale(1) skewX(0);
    filter: blur(0);
  }
}

.hero-animate-text {
  opacity: 0;
  animation: slideInLeft 0.9s 0.1s cubic-bezier(0.77, 0, 0.175, 1) forwards;
}

/* ========== HERO SECTION ========== */
.hero {
  position: relative;
  width: 100vw;
  height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  /* Start from top to use margins for exact placement */
  overflow: visible;
  padding-top: 24.8vh;
  /* Position hero-content exactly where it was */
}

.hero-bg {
  position: absolute;
  top: 20px;
  left: 20px;
  width: calc(100vw - 40px);
  height: calc(100vh - 40px);
  z-index: 0;
  border-radius: 30px;
  overflow: hidden;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg,
      rgba(10, 5, 0, 0.1) 0%,
      rgba(10, 5, 0, 0.1) 0%,
      rgba(10, 5, 0, 0.1) 0%,
      rgba(10, 5, 0, 0.5) 50%,
      rgba(10, 5, 0, 0.85) 200%);
}

.hero-content {
  position: relative;
  /* Changed from absolute */
  z-index: 1;
  text-align: center;
  width: 78.2vw;
  height: max-content;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 6vh;
}

.hero-title {
  width: 78.2vw;
  height: 27vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-subtitle {
  font-family: "Poppins", sans-serif;
  font-weight: 400;
  font-size: clamp(1rem, 1.4vw, 22px);
  line-height: 1;
  letter-spacing: 0;
  text-align: center;
  width: 69.2vw;
  height: 7.6vh;
}

/* Hero Booking Widget Overlay */
.hero-booking {
  position: relative;
  /* Changed from absolute */
  margin-top: calc(77.7vh - (24.8vh + 27vh + 7.6vh + 6vh));
  /* Calculate necessary gap to keep it at 77.7vh */
  /* Simplification: using a fixed margin based on previous layout */
  margin-top: auto;
  margin-bottom: 20px !important;
  /* REQUESTED DESKTOP MARGIN */
  width: 81.2vw;
  height: 19.4vh;
  z-index: 10;
}

.hero-booking .booking-widget {
  background: #f8f6f3;
  border: none;
  box-shadow: 0 15px 50px rgba(0, 0, 0, 0.25);
}

@media (max-width: 1023px) {
  .hero {
    min-height: 100vh;
    height: auto;
    background: transparent;
    padding: 0;
    display: flex;
    flex-direction: column;
    width: 100vw;
    /* Full viewport width */
    margin: 0;
    /* Remove modular margin */
    border-radius: 0;
    /* Remove modular border-radius */
    overflow-x: hidden;
  }

  .hero-bg {
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 0;
    /* Full bleed image */
  }

  .hero-content {
    width: 90%;
    margin-top: 20vh;
    /* Increased to avoid header overlap */
    gap: 2.5vh;
  }

  .hero-title {
    width: 100%;
    height: auto;
    font-size: clamp(2rem, 9vw, 2.8rem);
    line-height: 1.1;
  }

  .hero-subtitle {
    width: 100%;
    height: auto;
    font-size: 1.1rem;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.8);
  }

  .hero-booking {
    width: 92vw;
    height: auto;
    margin: 1vh auto 0;
    /* MOVED UP */
    z-index: 10;
  }
}

@keyframes fadeIn {
  0% {
    opacity: 0;
  }

  100% {
    opacity: 1;
  }
}

.hero-booking-animate {
  opacity: 0;
  animation: fadeIn 1s 0.3s ease forwards;
}