/* ============ SHORT TERM PAGE ============ */

/* Hero */
.st-hero {
  position: relative;
  min-height: 50vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.st-hero-bg {
  position: absolute;
  inset: 0;
}

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

.st-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.8) 0%,
    rgba(0, 0, 0, 0.65) 40%,
    rgba(0, 0, 0, 0.7) 80%,
    rgba(0, 0, 0, 0.9) 100%
  );
}

.st-hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 100px 24px 48px;
}

/* Guesty Booking Widget */
.st-hero-booking-widget {
  margin-top: 32px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  padding-bottom: 280px; /* Space for calendar dropdown */
  scroll-margin-top: 30vh; /* Center widget when scrolling to it */
}

/* Hide the Guesty location dropdown (only one property on this site) */
.cities-dropdown {
  display: none !important;
}

/* Background for included section */
.section-included {
  background-image: url('../images/pinetop resort topography black adn white.png');
}

.section-included::before {
  background: rgba(0, 0, 0, 0.7);
}

/* Unit Cards */
.st-units {
  display: flex;
  flex-direction: column;
  gap: 48px;
}

.st-unit-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  background: var(--dark-card);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border-dark);
}

/* Swap image/info order on even cards using grid order */
.st-unit-card:nth-child(even) .st-unit-gallery {
  order: 2;
}

.st-unit-card:nth-child(even) .st-unit-info {
  order: 1;
}

.st-unit-gallery {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
}

.st-unit-gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.st-unit-card:hover .st-unit-gallery img {
  transform: scale(1.03);
}

.st-unit-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  background: var(--terra);
  color: var(--white);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 5px 14px;
  border-radius: var(--radius-full);
}

/* Badge stays left on all cards (image is on right for even cards now via order) */

.st-unit-info {
  padding: 40px 40px 40px 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.st-unit-card:nth-child(even) .st-unit-info {
  padding: 40px 0 40px 40px;
}

.st-unit-info h3 {
  font-family: 'Lora', serif;
  font-size: 1.6rem;
  color: var(--white);
  margin-bottom: 12px;
}

.st-unit-info > p {
  font-size: 0.95rem;
  color: var(--text-light);
  line-height: 1.7;
  margin-bottom: 20px;
}

.st-unit-details {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.st-unit-details span {
  font-size: 0.83rem;
  color: var(--text-light);
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 4px;
}

.st-unit-details span::before {
  content: '\2022';
  color: var(--terra);
}

.st-unit-amenities {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.st-unit-amenities span {
  font-size: 0.78rem;
  font-weight: 500;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-dark);
  color: var(--text-muted);
}

.st-book-btn-wrap {
  margin-top: auto;
}

.st-book-btn {
  padding: 14px 36px;
}

/* Included Grid */
.included-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 40px;
}

.included-item {
  padding: 32px;
  background: rgba(255, 255, 255, 0.04);
  border-radius: var(--radius);
  border: 1px solid var(--border-dark);
  text-align: center;
}

.included-item svg {
  color: var(--terra);
  margin-bottom: 16px;
}

.included-item h4 {
  font-family: 'Lora', serif;
  font-size: 1.05rem;
  color: var(--white);
  margin-bottom: 8px;
}

.included-item p {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* Active nav link */
.nav-links a.active {
  color: var(--terra);
}

.nav-links a.active::after {
  width: 100%;
}

/* ============ RESPONSIVE ============ */
@media (max-width: 1024px) {
  .section-included {
    background-attachment: scroll;
  }
}

@media (max-width: 768px) {
  .st-hero {
    min-height: auto;
  }

  .st-hero-content {
    padding: 100px 16px 32px;
  }

  .st-hero-booking-widget {
    margin-top: 24px;
    padding-bottom: 320px; /* More space for stacked mobile calendar */
    scroll-margin-top: 100vh; /* Scroll to top of page */
  }

  .st-unit-card {
    grid-template-columns: 1fr;
  }

  /* Reset order on mobile - image always on top */
  .st-unit-card:nth-child(even) .st-unit-gallery,
  .st-unit-card:nth-child(even) .st-unit-info {
    order: unset;
  }

  .st-unit-info {
    padding: 24px;
  }

  .st-unit-gallery {
    aspect-ratio: 16 / 10;
  }

  .st-unit-badge {
    left: 16px;
    right: auto;
  }

  .included-grid {
    grid-template-columns: 1fr;
  }
}
