/* =========================================
   HOME PAGE — Styles
   ========================================= */

/* Landing page header */
body.on-top {
  --header-height: 100px;
}

body.on-top .main-header {
  background-color: transparent;
  border: none;
}

body.on-top .nav-link {
  color: var(--white);
}

body.on-top .menu-icon {
  background-color: var(--white);
}

body.on-top .nav-container {
  background-color: var(--c-accent-border);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

/* Booking Widget */
.landing {
  height: 100dvh;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-around;
  flex-direction: column;
  background: radial-gradient(circle at center, transparent 30%, var(--c-accent-hover)), linear-gradient(to bottom, transparent 30%, var(--c-accent-hover)), url("../assets/motel.jpg") bottom / cover no-repeat;
}

.hero-text {
  width: 50%;
  text-align: center;
  margin-bottom: var(--sp-lg);
  padding: 0 var(--sp-3xl);
}

.hero-text h1,
.hero-text p {
  color: var(--white);
  margin: 0;
}

.hero-text h1 {
  font-size: var(--fs-3xl);
  font-weight: 900;
}

.hero-text .subtitle {
  font-size: var(--fs-lg);
  font-weight: 500;
}

.hero-text .tagline {
  font-size: var(--fs-sm);
  font-weight: 400;
  opacity: 0.8;
}

.booking-section {
  width: 70%;
}

.booking-title {
  color: var(--white);
  padding-bottom: var(--sp-md);
}

.booking-widget {
  width: 100%;
  background: var(--white);
  border: 1px solid var(--c-border);
  border-radius: var(--br-lg);
  padding: var(--sp-lg) var(--sp-xl);
}

.booking-fields {
  display: flex;
  align-items: flex-end;
  gap: var(--sp-md);
}

.booking-field {
  flex: 1;
  text-align: left;
}

.booking-field label {
  display: block;
  font-size: var(--fs-xs);
  font-weight: 600;
  padding-left: var(--sp-sm);
  margin-bottom: var(--sp-xs);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.booking-input {
  width: 100%;
  padding: 0.7rem 0.9rem;
  font-size: var(--fs-sm);
  font-family: var(--font-family);
  border: 1px solid var(--c-border);
  border-radius: var(--br-md);
  outline: none;
  cursor: pointer;
}

.booking-input:focus {
  border: 1px solid var(--c-accent-border);
  outline: 4px solid var(--c-accent-light);
  background: var(--white);
}

.booking-btn {
  flex-shrink: 0;
  white-space: nowrap;
}

/* --- Welcome Section --- */
#welcome {
  background-color: var(--c-accent-hover);
}

.welcome-content {
  text-align: center;
  margin-bottom: var(--sp-3xl);
}

.welcome-content h2 {
  color: var(--white);
  margin-bottom: var(--sp-sm);
}

.welcome-subtitle {
  font-size: var(--fs-lg);
  color: var(--white);
  font-weight: 500;
}

.welcome-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-3xl);
  align-items: start;
}

.welcome-text p {
  margin-bottom: var(--sp-lg);
  text-align: justify;
  color: var(--white);
  opacity: 0.6;
}

.welcome-text p:last-child {
  margin-bottom: 0;
}

.welcome-img-placeholder {
  width: 100%;
  height: 400px;
  border-radius: var(--br-lg);
}

/* --- Why Stay With Us --- */
.why-stay-section {
  background: var(--c-bg-subtle);
}

.why-stay-section h2 {
  margin-bottom: var(--sp-3xl);
}

.amenities-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--sp-md);
  max-width: 800px;
  margin: 0 auto;
}

.amenity-item {
  display: flex;
  align-items: center;
  gap: var(--sp-md);
  padding: var(--sp-md) var(--sp-lg);
  background: var(--white);
  border: 1px solid var(--c-border);
  border-radius: var(--br-md);
  transition: all var(--transition-base);
}

.amenity-item:hover {
  border-color: var(--c-accent-border);
  box-shadow: var(--shadow-sm);
  transform: translateX(4px);
}

.amenity-icon {
  font-size: var(--fs-xl);
  flex-shrink: 0;
}

.amenity-text {
  font-size: var(--fs-sm);
  font-weight: 500;
  color: var(--c-text);
}

/* --- Your Home Away From Home --- */
.home-away-layout {
  display: grid;
  grid-template-columns: 35% 1fr;
  gap: var(--sp-3xl);
  align-items: center;
}

.home-away-text h2 {
  margin-bottom: var(--sp-md);
}

.home-away-text p {
  font-size: var(--fs-md);
  line-height: 1.8;
  margin-bottom: var(--sp-lg);
}

.home-away-carousel {
  display: flex;
  gap: var(--sp-lg);
  overflow-x: auto;
  padding-bottom: var(--sp-md);
  /* Hide scrollbar for clean look */
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.home-away-carousel::-webkit-scrollbar {
  display: none;
}

.room-carousel-card {
  position: relative;
  min-width: 280px;
  height: 350px;
  border-radius: var(--br-lg);
  overflow: hidden;
  display: block;
  flex-shrink: 0;
  transition: transform var(--transition-base);
}

.room-carousel-img {
  width: 100%;
  height: 100%;
  border-radius: var(--br-lg);
  background: linear-gradient(135deg, #e8eded 0%, #d5dfde 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--c-text-light);
}

.room-carousel-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: var(--sp-xl) var(--sp-lg) var(--sp-lg);
  background: linear-gradient(to top, var(--c-accent-light) 0%, var(--c-accent-border) 50%, rgba(0, 0, 0, 0) 100%);
  color: var(--white);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.room-carousel-overlay h3 {
  color: var(--white);
  font-size: var(--fs-xl);
  margin-bottom: var(--sp-xs);
}

.room-carousel-overlay p {
  color: rgba(255, 255, 255, 0.8);
  font-size: var(--fs-sm);
  margin: 0;
  display: flex;
  align-items: center;
  gap: 6px;
}



/* =========================================
   RESPONSIVE
   ========================================= */
@media (max-width: 1024px) {
  .hero-text {
    width: 75%;
  }

  .booking-section {
    width: 90%;
  }

  .welcome-body {
    grid-template-columns: 1fr;
    gap: var(--sp-xl);
  }

  .welcome-img-placeholder {
    height: 300px;
  }

  .home-away-layout {
    grid-template-columns: 1fr;
    gap: var(--sp-xl);
  }
}

@media (max-width: 768px) {
  .hero-text {
    width: 100%;
  }

  .booking-fields {
    flex-direction: column;
    align-items: stretch;
  }

  .booking-btn {
    width: 100%;
    text-align: center;
    justify-content: center;
  }
}

@media (max-width: 640px) {
  .amenities-grid {
    grid-template-columns: 1fr;
  }

  .booking-widget {
    padding: var(--sp-md);
  }
}