/* Eagersky.com-style hero + overlapping search (phases 1–3) */
.home-motion-root {
  --home-nav-top: 70px;
  max-width: 1400px;
  margin: 0 auto;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
  box-sizing: border-box;
}

.home-hero-stage {
  position: relative;
  margin-bottom: 1.75rem;
}

@media (min-width: 992px) {
  body.is-home-page .es-topbar {
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    max-width: none;
    transform: none;
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    box-shadow: none;
    z-index: 50;
  }

  body.is-home-page .es-topbar__bar {
    width: 100%;
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
    border-radius: 0;
    box-shadow: none;
    border: 0;
    background: transparent;
    padding-left: 1.25rem !important;
    padding-right: 1.25rem !important;
    box-sizing: border-box;
  }

  body.is-home-page .es-topbar-spacer,
  body.is-home-page .navbar-spacer {
    height: 70px !important;
    margin: 0;
    padding: 0;
  }

  body.is-home-page main.home-page-main,
  body.is-home-page main.mobile-main-pad {
    padding-top: 0 !important;
    margin-top: 0;
  }

  body.is-home-page .home-hero-stage {
    margin-top: 0;
  }
}

@media (min-width: 1024px) {
  body.is-home-page {
    overflow-x: hidden;
  }

  .home-hero-stage {
    width: 100vw;
    max-width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
  }

  .home-hero-block {
    border-radius: 0;
    box-shadow: none;
    min-height: 32rem;
  }

  .home-hero-float {
    max-width: 1400px;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    padding-left: 1.25rem;
    padding-right: 1.25rem;
    box-sizing: border-box;
  }
}

.home-listing-grid,
.home-dest-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

.home-dest-grid {
  gap: 1rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

@media (min-width: 640px) {
  .home-listing-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .home-dest-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .home-listing-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .home-dest-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (min-width: 1400px) {
  .home-listing-grid,
  .home-dest-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}

/* Orange square header icons (eagersky.com mobile) */
.nav-icon-square {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.75rem;
  background: hsl(var(--primary));
  color: #fff !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  cursor: pointer;
  box-shadow: 0 8px 18px hsl(var(--primary) / 0.28);
  transition: transform 0.2s ease, background 0.2s ease;
  flex-shrink: 0;
}

.nav-icon-square:hover {
  background: hsl(var(--primary) / 0.9);
  transform: translateY(-1px);
}

.nav-icon-square i {
  font-size: 0.95rem;
}

.nav-icon-square--desktop {
  background: hsl(var(--primary));
  color: #fff !important;
}

@media (max-width: 991px) {
  body.is-home-page .navbar-spacer {
    height: 5rem;
  }
}

.home-hero-block {
  position: relative;
  isolation: isolate;
  min-height: 20rem;
  margin: 0 auto;
  border-radius: 1.35rem;
  overflow: hidden;
  box-shadow: 0 25px 50px -12px rgba(15, 23, 42, 0.18), inset 0 0 0 1px rgba(255, 255, 255, 0.2);
}

@media (min-width: 640px) {
  .home-hero-block {
    min-height: 22.5rem;
  }
}

@media (min-width: 1024px) {
  .home-hero-block {
    min-height: 32rem;
    border-radius: 0;
    box-shadow: none;
  }
}

@media (min-width: 1280px) {
  .home-hero-block {
    min-height: 34rem;
  }
}

.home-hero-block__media {
  position: absolute;
  inset: 0;
  z-index: 0;
  border-radius: inherit;
  overflow: hidden;
  background-size: cover;
  background-position: center;
}

.home-hero-block__media::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(15, 23, 42, 0.42) 0%,
    rgba(15, 23, 42, 0.22) 42%,
    rgba(15, 23, 42, 0.78) 100%
  );
}

.home-hero-block__content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 20rem;
  padding: 1.35rem 1rem 6.25rem;
  text-align: center;
  color: #fff;
}

@media (min-width: 640px) {
  .home-hero-block__content {
    min-height: 22.5rem;
    padding: 2rem 1.5rem 7.5rem;
  }
}

@media (min-width: 1024px) {
  .home-hero-block__content {
    min-height: 28rem;
    padding: 2.75rem 1.5rem 8.25rem;
  }
}

@media (min-width: 1280px) {
  .home-hero-block__content {
    min-height: 32rem;
    padding: 3.25rem 1.5rem 8.75rem;
  }
}

.home-hero-block__title {
  font-family: var(--font-heading, 'Poppins', sans-serif);
  font-size: clamp(1.85rem, 4.2vw, 3.15rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.02em;
  max-width: 52rem;
  margin: 0 auto 0.65rem;
  color: #fff !important;
}

.home-hero-block__subtitle {
  color: rgba(255, 255, 255, 0.88) !important;
  font-size: clamp(0.95rem, 2vw, 1.125rem);
  max-width: 42rem;
  margin: 0 auto 1rem;
  line-height: 1.5;
  font-weight: 500;
}

.home-trust-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 0;
}

.home-trust-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(6px);
  font-size: 0.8125rem;
  font-weight: 600;
}

.home-trust-badge i {
  color: #4ade80;
}

/* Float wrapper: category bar + search (eagersky.com -mt-16 sm:-mt-28) */
.home-hero-float {
  position: relative;
  z-index: 20;
  max-width: 1400px;
  margin: -4rem auto 2rem;
  padding: 0 0.35rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

@media (min-width: 640px) {
  .home-hero-float {
    margin-top: -6.25rem;
    padding: 0;
    gap: 0.75rem;
  }
}

@media (min-width: 1024px) {
  .home-hero-float {
    margin-top: -5.75rem;
    margin-bottom: 0.5rem;
    gap: 0.85rem;
    max-width: 1400px;
    padding-left: 1.25rem;
    padding-right: 1.25rem;
    box-sizing: border-box;
  }
}

.home-category-bar {
  position: relative;
  z-index: 4;
  display: flex;
  justify-content: center;
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  transform: none;
}

.home-category-scroller {
  display: flex;
  align-items: stretch;
  justify-content: center;
  gap: 0.4rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  padding: 0 0.15rem;
  width: auto;
  max-width: 100%;
}

@media (min-width: 768px) {
  .home-category-scroller {
    overflow: visible;
    scroll-snap-type: none;
    gap: 0.4rem;
    padding: 0;
  }
}

.home-category-scroller::-webkit-scrollbar {
  display: none;
}

.home-category-chip {
  flex: 0 0 4.65rem;
  width: 4.65rem;
  height: 4.65rem;
  aspect-ratio: 1 / 1;
  min-width: 4.65rem;
  box-sizing: border-box;
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.28rem;
  padding: 0.32rem 0.18rem 0.24rem;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 0.4rem;
  cursor: pointer;
  color: #fff;
  text-decoration: none;
  box-shadow: none;
  transition: border-color 0.2s ease, background 0.2s ease;
}

@media (min-width: 768px) {
  .home-category-chip {
    flex: 0 0 5rem;
    width: 5rem;
    height: 5rem;
    min-width: 5rem;
    scroll-snap-align: unset;
    padding: 0.35rem 0.2rem 0.26rem;
    gap: 0.28rem;
    border-radius: 0.42rem;
  }
}

.home-category-chip:hover {
  transform: none;
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.78);
}

.home-category-chip.is-active {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.92);
  box-shadow: none;
}

.home-category-chip.is-active:hover {
  background: rgba(255, 255, 255, 0.06);
}

.home-category-chip__icon {
  width: 1.7rem;
  height: 1.7rem;
  flex-shrink: 0;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: hsl(var(--primary));
  border: 0;
  color: #fff;
  font-size: 0.72rem;
  box-shadow: none;
}

.home-category-chip__icon i {
  font-size: 0.72rem;
  line-height: 1;
}

@media (min-width: 768px) {
  .home-category-chip__icon {
    width: 1.85rem;
    height: 1.85rem;
    font-size: 0.78rem;
  }

  .home-category-chip__icon i {
    font-size: 0.78rem;
  }
}

.home-category-chip.is-active .home-category-chip__icon {
  box-shadow: none;
}

.home-category-chip__label {
  font-size: 0.56rem;
  font-weight: 600;
  line-height: 1.15;
  text-align: center;
  width: 100%;
  max-width: 100%;
  color: #fff;
  letter-spacing: 0.01em;
  text-shadow: 0 1px 2px rgba(15, 23, 42, 0.55);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

@media (min-width: 768px) {
  .home-category-chip__label {
    font-size: 0.6rem;
    line-height: 1.15;
    padding: 0;
    font-weight: 600;
  }
}

.home-category-chip.is-active .home-category-chip__label {
  color: #fff;
  font-weight: 600;
}

@media (max-width: 767px) {
  .home-category-chip {
    background: transparent;
    border-color: rgba(15, 23, 42, 0.14);
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.06);
  }

  .home-category-chip:hover {
    background: #f8fafc;
    border-color: rgba(15, 23, 42, 0.22);
  }

  .home-category-chip.is-active {
    border-color: hsl(var(--primary));
    background: hsl(var(--primary) / 0.08);
    box-shadow: 0 0 0 1px hsl(var(--primary) / 0.25);
  }

  .home-category-chip.is-active:hover {
    background: hsl(var(--primary) / 0.1);
  }

  .home-category-chip__label {
    color: #334155;
    text-shadow: none;
    font-weight: 700;
  }

  .home-category-chip.is-active .home-category-chip__label {
    color: #9a3f04;
  }
}

.home-search-shell {
  position: relative;
  z-index: 30;
}

.home-search-card {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 2rem;
  box-shadow: 0 25px 50px -12px rgba(15, 23, 42, 0.15);
  padding: 0.85rem;
}

@media (min-width: 640px) {
  .home-search-card {
    padding: 1.25rem 1.5rem;
  }
}

.home-search-row {
  display: grid;
  gap: 0.85rem;
  margin-bottom: 0.85rem;
}

.home-search-row--3 {
  grid-template-columns: 1fr 1fr;
}

.home-search-row--3 .home-search-field:first-child {
  grid-column: 1 / -1;
}

.home-search-row--filters {
  grid-template-columns: 1fr 1fr;
}

.home-search-row--filters .home-search-field:nth-child(3) {
  grid-column: 1 / -1;
}

@media (min-width: 768px) {
  .home-search-row--3 {
    grid-template-columns: 2fr 1fr 1fr;
  }

  .home-search-row--3 .home-search-field:first-child {
    grid-column: auto;
  }

  .home-search-row--filters {
    grid-template-columns: 1.2fr 1fr 1fr;
  }

  .home-search-row--filters .home-search-field:nth-child(3) {
    grid-column: auto;
  }

  .home-search-row--actions {
    grid-template-columns: 1fr auto auto;
    align-items: end;
  }
}

.home-search-field label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 600;
  color: hsl(var(--foreground) / 0.65);
  margin-bottom: 0.4rem;
  letter-spacing: 0.01em;
}

.home-search-field label.invisible {
  visibility: hidden;
  margin-bottom: 0.35rem;
}

.home-search-input,
.home-search-select {
  width: 100%;
  padding: 0.875rem 1rem;
  border-radius: 1rem;
  border: 1px solid hsl(var(--border));
  background: #f1f5f9;
  font-size: 0.9375rem;
  color: hsl(var(--foreground));
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
  min-height: 3rem;
}

.home-search-input:focus,
.home-search-select:focus {
  outline: none;
  border-color: hsl(var(--primary));
  background: #fff;
  box-shadow: 0 0 0 3px hsl(var(--primary) / 0.12);
}

.home-search-input--icon {
  padding-left: 2.35rem;
}

.home-search-icon-wrap {
  position: relative;
}

.home-search-icon-wrap i {
  position: absolute;
  left: 0.85rem;
  top: 50%;
  transform: translateY(-50%);
  color: hsl(var(--foreground) / 0.35);
  pointer-events: none;
}

.home-guest-picker {
  position: relative;
  z-index: 2;
}

.home-search-field--guests {
  position: relative;
  z-index: 4;
}

.home-guest-picker__btn {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  width: 100%;
  text-align: left;
  padding: 0.875rem 1rem;
  border-radius: 1rem;
  border: 1px solid hsl(var(--border));
  background: #f1f5f9;
  font-size: 0.9375rem;
  color: hsl(var(--foreground));
  cursor: pointer;
  min-height: 3rem;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}

.home-guest-picker__value {
  flex: 1;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.home-guest-picker__chevron {
  flex-shrink: 0;
  font-size: 0.7rem;
  color: hsl(var(--foreground) / 0.45);
  transition: transform 0.2s ease, color 0.2s ease;
}

.home-guest-picker.is-open .home-guest-picker__chevron {
  transform: rotate(180deg);
  color: hsl(var(--primary));
}

.home-guest-picker__icon {
  flex-shrink: 0;
  color: hsl(var(--foreground) / 0.4);
  font-size: 0.95rem;
}

.home-guest-picker__btn:hover,
.home-guest-picker.is-open .home-guest-picker__btn {
  border-color: hsl(var(--primary));
  background: #fff;
  box-shadow: 0 0 0 3px hsl(var(--primary) / 0.12);
}

.home-guest-picker__panel {
  display: none;
  position: absolute;
  left: 0;
  right: 0;
  min-width: 17.5rem;
  top: calc(100% + 0.45rem);
  z-index: 80;
  background: #fff;
  border: 1px solid hsl(var(--primary) / 0.18);
  border-radius: 1.1rem;
  padding: 0.85rem 0.95rem 0.95rem;
  box-shadow: 0 22px 48px rgba(15, 23, 42, 0.16);
  animation: homePopoverIn 0.18s ease-out;
}

@media (min-width: 640px) {
  .home-guest-picker__panel {
    min-width: 19rem;
  }
}

@keyframes homePopoverIn {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.home-guest-picker.is-open .home-guest-picker__panel {
  display: block;
}

.home-guest-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.85rem;
  padding: 0.55rem 0.15rem;
}

.home-guest-row--divider {
  border-top: 1px solid hsl(var(--border) / 0.85);
  margin-top: 0.15rem;
  padding-top: 0.75rem;
}

.home-guest-row__label {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.home-guest-row__title {
  font-size: 0.875rem;
  font-weight: 600;
  color: hsl(var(--foreground));
}

.home-guest-row__hint {
  font-size: 0.6875rem;
  color: hsl(var(--foreground) / 0.45);
}

.home-guest-stepper {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
}

.home-guest-stepper__btn {
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  border: 1px solid hsl(var(--border));
  background: #fff;
  color: hsl(var(--foreground) / 0.72);
  cursor: pointer;
  font-weight: 700;
  font-size: 1rem;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.15s, color 0.15s, background 0.15s, opacity 0.15s;
}

.home-guest-stepper__btn:hover:not(:disabled) {
  border-color: hsl(var(--primary) / 0.45);
  color: hsl(var(--primary));
  background: hsl(var(--primary) / 0.05);
}

.home-guest-stepper__btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.home-guest-stepper__value {
  min-width: 1.5rem;
  text-align: center;
  font-weight: 700;
  font-size: 0.9375rem;
  color: hsl(var(--foreground));
}

.home-guest-picker__done {
  width: 100%;
  margin-top: 0.75rem;
  padding: 0.65rem 1rem;
  border: none;
  border-radius: 0.85rem;
  background: hsl(var(--primary));
  color: #fff;
  font-size: 0.875rem;
  font-weight: 700;
  cursor: pointer;
  transition: filter 0.15s ease, transform 0.15s ease;
}

.home-guest-picker__done:hover {
  filter: brightness(1.05);
}

.home-guest-picker__done:active {
  transform: scale(0.98);
}

.home-budget-wrap {
  padding-top: 0.15rem;
}

.home-budget-label {
  font-size: 0.875rem;
  font-weight: 600;
  color: hsl(var(--primary));
  margin-top: 0.35rem;
}

.home-budget-slider {
  width: 100%;
  height: 0.45rem;
  accent-color: hsl(var(--primary));
  cursor: pointer;
}

.home-duration-toggle {
  display: inline-flex;
  border: 1px solid hsl(var(--border));
  border-radius: 999px;
  overflow: hidden;
  background: #fff;
}

.home-duration-toggle button {
  border: none;
  background: transparent;
  padding: 0.75rem 1.15rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: hsl(var(--foreground) / 0.55);
  cursor: pointer;
  min-height: 3rem;
}

.home-duration-toggle button.is-active {
  background: hsl(var(--primary));
  color: #fff;
}

.home-search-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  width: 100%;
  min-height: 3.75rem;
  padding: 0.95rem 1.75rem;
  border: none;
  border-radius: 1rem;
  background: hsl(var(--primary));
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 10px 24px hsl(var(--primary) / 0.35);
  transition: background 0.2s, transform 0.2s;
}

.home-search-submit i {
  font-size: 0.95rem;
}

.home-search-submit:hover {
  background: hsl(var(--primary) / 0.9);
  transform: translateY(-1px);
}

@media (max-width: 767px) {
  .home-motion-root {
    padding-left: 0.5rem;
    padding-right: 0.5rem;
  }

  .home-hero-float {
    margin-top: -4rem;
    padding: 0 0.15rem;
  }

  .home-hero-block__content {
    padding-bottom: 3.5rem;
  }

  .home-search-row {
    gap: 0.65rem;
    margin-bottom: 0.65rem;
  }

  .home-search-row--actions {
    grid-template-columns: 1fr auto;
    align-items: end;
    gap: 0.5rem 0.75rem;
  }

  .home-search-row--actions .home-budget-wrap {
    grid-column: 1;
  }

  .home-search-row--actions .home-search-field:nth-child(2) {
    grid-column: 2;
    align-self: end;
  }

  .home-search-row--actions .home-search-field:nth-child(2) label.invisible {
    display: none;
  }

  .home-search-row--actions .home-search-field:last-child {
    grid-column: 1 / -1;
  }

  .home-duration-toggle button {
    padding: 0.65rem 0.85rem;
    min-height: 2.5rem;
    font-size: 0.8125rem;
  }

  .home-search-submit {
    width: 100%;
    min-height: 3.75rem;
    border-radius: 1.15rem;
  }
}

@media (min-width: 768px) {
  .home-search-submit {
    width: auto;
    min-width: 11rem;
  }
}

.home-section-nav {
  position: sticky;
  top: var(--home-nav-top);
  z-index: 45;
  margin: 0 0 1.25rem;
  padding: 0.35rem 0;
  transition: box-shadow 0.2s ease, background 0.2s ease;
}

.home-section-nav-sentinel {
  height: 1px;
  margin: 0;
  padding: 0;
  pointer-events: none;
}

.home-section-nav.is-stuck {
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
  margin-left: -0.5rem;
  margin-right: -0.5rem;
  padding-left: 0.5rem;
  padding-right: 0.5rem;
}

@media (max-width: 767px) {
  .home-section-nav {
    margin: 0 -0.5rem 1rem;
    padding: 0.45rem 0;
  }
}

.home-section-nav__track {
  display: flex;
  gap: 0.35rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  padding: 0.25rem 1rem;
  -webkit-overflow-scrolling: touch;
}

.home-section-nav__track::-webkit-scrollbar {
  display: none;
}

.home-section-nav__link {
  flex: 0 0 auto;
  scroll-snap-align: start;
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  font-size: 0.8125rem;
  font-weight: 600;
  color: #64748b;
  background: #f1f5f9;
  border: 1px solid transparent;
  transition: color 0.25s ease, background 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
  white-space: nowrap;
}

.home-section-nav__link:hover {
  color: #0f172a;
  background: #e2e8f0;
}

.home-section-nav__link.is-active {
  color: #fff;
  background: linear-gradient(135deg, #bd4e05, #9a3f04);
  box-shadow: 0 4px 14px rgba(189, 78, 5, 0.35);
  transform: translateY(-1px);
}

.home-section {
  scroll-margin-top: calc(var(--home-nav-top) + 56px);
}

.home-section.is-reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.65s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
}

.home-section.is-reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.home-hero-motion {
  animation: homeHeroIn 0.9s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes homeHeroIn {
  from {
    opacity: 0;
    transform: translateY(20px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.home-stat-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.home-stat-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
}

@media (prefers-reduced-motion: reduce) {
  .home-section.is-reveal,
  .home-hero-motion,
  .home-section-nav__link,
  .home-category-chip,
  .home-guest-picker__panel {
    animation: none !important;
    transition: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}

@media (max-width: 768px) {
  .home-motion-root {
    --home-nav-top: 64px;
  }
}

/* Destination / region listing photo slider */
.home-card-slider {
    position: absolute;
    inset: 0;
    z-index: 0;
}
.home-card-slider__img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.55s ease;
}
.home-card-slider__img.is-active {
    opacity: 1;
}
.home-card-slider__dots {
    position: absolute;
    right: 0.55rem;
    bottom: 0.55rem;
    z-index: 2;
    display: flex;
    gap: 0.28rem;
}
.home-card-slider__dot {
    width: 6px;
    height: 6px;
    border-radius: 999px;
    background: rgba(255,255,255,0.42);
}
.home-card-slider__dot.is-active {
    background: #fff;
}

/* Region cards must keep height even when photos are position:absolute */
#home-regions .grid > a {
    display: block;
    min-height: 10rem;
    background: #ffffff;
}
#home-regions .grid > a.has-region-photos {
    background: #1a2332;
}
#home-regions .home-region-caption {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 1rem;
    pointer-events: none;
}
#home-areas .home-card-slider,
#home-regions .home-card-slider {
    z-index: 0;
}
#home-areas .home-area-caption {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 1rem;
    pointer-events: none;
}

/* Mobile: keep search fields inside the card + tighter spacing */
@media (max-width: 767px) {
  .home-search-shell,
  .home-search-card {
    max-width: 100%;
    box-sizing: border-box;
  }
  .home-search-card {
    padding: 0.6rem 0.65rem 0.7rem;
    border-radius: 1.15rem;
    overflow: visible;
  }
  .home-search-card,
  .home-search-card * {
    box-sizing: border-box;
  }
  .home-search-row {
    width: 100%;
    max-width: 100%;
    gap: 0.4rem;
    margin-bottom: 0.4rem;
  }
  .home-search-row:last-child {
    margin-bottom: 0;
  }
  .home-search-field,
  .home-search-icon-wrap,
  .home-guest-picker,
  .home-budget-wrap {
    min-width: 0;
    max-width: 100%;
  }
  .home-search-field label {
    font-size: 0.6875rem;
    margin-bottom: 0.18rem;
  }
  .home-search-field label.invisible {
    display: none;
    margin: 0;
  }
  .home-search-input,
  .home-search-select {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    min-height: 2.45rem;
    height: 2.45rem;
    padding: 0.4rem 0.6rem;
    font-size: 0.8125rem;
    border-radius: 0.7rem;
  }
  .home-search-input--icon {
    padding-left: 1.9rem;
  }
  .home-search-icon-wrap i {
    left: 0.6rem;
    font-size: 0.75rem;
  }
  input.home-search-input[type="date"] {
    display: block;
    min-width: 0;
    max-width: 100%;
    -webkit-appearance: none;
    appearance: none;
  }
  .home-guest-picker,
  .home-search-field--guests {
    overflow: visible;
    z-index: 40;
  }
  .home-guest-picker__btn {
    gap: 0.4rem;
    height: auto;
    min-height: 2.75rem;
    padding: 0.55rem 0.7rem;
  }
  .home-search-row--actions {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0.4rem 0.5rem;
  }
  .home-search-row--actions .home-budget-wrap {
    grid-column: 1;
    min-width: 0;
  }
  .home-search-row--actions .home-search-field:nth-child(2) {
    grid-column: 2;
    min-width: 0;
  }
  .home-search-row--actions .home-search-field:last-child {
    grid-column: 1 / -1;
  }
  .home-duration-toggle {
    max-width: 100%;
  }
  .home-duration-toggle button {
    flex: 1;
    padding: 0.45rem 0.5rem;
    min-height: 2.2rem;
    font-size: 0.75rem;
  }
  .home-search-submit {
    width: 100%;
    min-height: 2.65rem;
    border-radius: 0.85rem;
    font-size: 0.875rem;
  }
  .home-budget-label {
    font-size: 0.75rem;
  }
}

@media (max-width: 380px) {
  .home-search-row--3,
  .home-search-row--filters {
    grid-template-columns: 1fr;
  }
  .home-search-row--3 .home-search-field:first-child,
  .home-search-row--filters .home-search-field:nth-child(3) {
    grid-column: auto;
  }
}

/* Homepage section titles: description + View all */
.home-section-head {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 1.5rem;
}
.home-section-head__copy {
  min-width: 0;
  flex: 1 1 auto;
}
.home-section-head__actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  flex-shrink: 0;
}
.home-section-head__link {
  white-space: nowrap;
  padding: 6px 0;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  flex-shrink: 0;
}
.home-section-head__link .fa-arrow-right {
  transition: transform 0.2s ease;
}
.home-section-head__link:hover .fa-arrow-right,
.home-section-head__link:active .fa-arrow-right {
  transform: translateX(3px);
}

@media (max-width: 767px) {
  .home-section-head {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
}

@media (min-width: 768px) {
  .home-section-head {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-end;
    gap: 30px;
  }
}

/* ── Phase 1: compact hero (mobile) ── */
@media (max-width: 767px) {
  .home-hero-block {
    min-height: 10.5rem;
  }

  .home-hero-block__content {
    min-height: 10.5rem;
    padding: 0.85rem 0.75rem 2.75rem;
  }

  .home-hero-block__title {
    font-size: 1.35rem;
    margin-bottom: 0.35rem;
  }

  .home-hero-block__subtitle {
    font-size: 0.78rem;
    line-height: 1.35;
    margin-bottom: 0.5rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .home-trust-badges {
    gap: 0.35rem;
  }

  .home-trust-badge {
    font-size: 0.68rem;
    padding: 0.22rem 0.55rem;
  }

  .home-hero-float {
    margin-top: -2.75rem;
    margin-bottom: 0.85rem;
  }
}

/* ── Phase 1: collapsed search + bottom sheet (mobile) ── */
.home-search-compact {
  display: none;
  align-items: center;
  gap: 0.65rem;
  width: 100%;
  text-align: left;
  padding: 0.7rem 0.85rem;
  border: 1px solid hsl(var(--border));
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
  cursor: pointer;
}

.home-search-compact__icon {
  width: 2.1rem;
  height: 2.1rem;
  border-radius: 999px;
  background: hsl(var(--primary));
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.home-search-compact__copy {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.home-search-compact__where {
  font-size: 0.875rem;
  font-weight: 700;
  color: hsl(var(--foreground));
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.home-search-compact__meta {
  font-size: 0.75rem;
  color: hsl(var(--foreground) / 0.55);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.home-search-compact__filters {
  color: hsl(var(--foreground) / 0.45);
  flex-shrink: 0;
}

.home-search-sheet-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 10050;
  background: rgba(15, 23, 42, 0.52);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
}

.home-search-sheet-header,
.home-search-sheet-footer {
  display: none;
}

.home-search-sheet-header {
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
  padding-bottom: 0.65rem;
  border-bottom: 1px solid hsl(var(--border) / 0.85);
}

.home-search-sheet-header__title {
  font-family: var(--font-heading, 'Poppins', sans-serif);
  font-size: 1rem;
  font-weight: 700;
  margin: 0;
}

.home-search-sheet-header__close {
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  border: 1px solid hsl(var(--border));
  background: #fff;
  color: hsl(var(--foreground) / 0.65);
  cursor: pointer;
}

.home-search-sheet-footer {
  position: sticky;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 2;
  align-items: center;
  gap: 0.65rem;
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  background: linear-gradient(to top, #fff 75%, rgba(255, 255, 255, 0));
}

.home-search-filters-toggle {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.65rem 0.85rem;
  border-radius: 999px;
  border: 1px solid hsl(var(--border));
  background: #fff;
  font-size: 0.8125rem;
  font-weight: 600;
  color: hsl(var(--foreground) / 0.75);
  cursor: pointer;
}

.home-search-submit--sheet {
  flex: 1;
  min-height: 2.75rem;
}

@media (max-width: 767px) {
  .home-search-compact {
    display: flex;
  }

  .home-search-card {
    padding: 0.55rem;
    border-radius: 999px;
    background: transparent;
    border: 0;
    box-shadow: none;
    backdrop-filter: none;
  }

  .home-search-body {
    display: none;
  }

  /* Break transform traps so fixed sheet anchors to the viewport */
  body.home-search-sheet-open .home-motion-root,
  body.home-search-sheet-open .home-hero-stage,
  body.home-search-sheet-open .home-hero-float,
  body.home-search-sheet-open #home-search.home-section {
    transform: none !important;
    filter: none !important;
  }

  /* Full-screen shell: overlay (z:0) behind card (z:1) — same stacking context */
  body.home-search-sheet-open .home-search-shell.is-sheet-open {
    position: fixed;
    inset: 0;
    z-index: 10050;
    pointer-events: none;
  }

  body.home-search-sheet-open .home-search-shell.is-sheet-open .home-search-sheet-overlay {
    display: block;
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: auto;
    background: rgba(15, 23, 42, 0.52);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
  }

  body.home-search-sheet-open .home-search-shell.is-sheet-open .home-search-compact {
    display: none;
  }

  body.home-search-sheet-open .home-search-shell.is-sheet-open .home-search-card {
    position: static;
    padding: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    display: block;
    pointer-events: none;
  }

  body.home-search-sheet-open .home-search-shell.is-sheet-open .home-search-body {
    display: block;
    position: absolute;
    z-index: 1;
    left: max(0.75rem, env(safe-area-inset-left, 0px));
    right: max(0.75rem, env(safe-area-inset-right, 0px));
    top: max(0.75rem, env(safe-area-inset-top, 0px));
    bottom: max(0.75rem, env(safe-area-inset-bottom, 0px));
    width: auto;
    max-width: 28rem;
    margin: auto;
    height: fit-content;
    max-height: 100%;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    padding: 1rem 1rem 0.9rem;
    border-radius: 1.15rem;
    border: 1px solid rgba(15, 23, 42, 0.1);
    background: #fff;
    box-shadow:
      0 24px 56px rgba(15, 23, 42, 0.22),
      0 8px 20px rgba(15, 23, 42, 0.1);
    animation: homeSheetModalIn 0.22s ease-out;
    box-sizing: border-box;
    pointer-events: auto;
  }

  body.home-search-sheet-open .home-search-shell.is-sheet-open .home-search-body .home-search-row,
  body.home-search-sheet-open .home-search-shell.is-sheet-open .home-search-body .home-search-advanced {
    width: 100%;
    max-width: 100%;
  }

  body.home-search-sheet-open .home-search-shell.is-sheet-open .home-search-sheet-header,
  body.home-search-sheet-open .home-search-shell.is-sheet-open .home-search-sheet-footer {
    display: flex;
  }

  body.home-search-sheet-open .home-search-shell.is-sheet-open .home-search-sheet-footer {
    position: static;
    margin-top: 0.65rem;
    padding-top: 0.75rem;
    border-top: 1px solid hsl(var(--border) / 0.85);
    background: #fff;
  }

  body.home-search-sheet-open .home-search-shell.is-sheet-open .home-search-row--actions .home-search-field:last-child {
    display: none;
  }

  body.home-search-sheet-open .home-search-shell.is-sheet-open .home-search-advanced.is-collapsed {
    display: none;
  }

  body.home-search-sheet-open .home-search-shell.is-sheet-open .home-guest-picker__panel {
    z-index: 2;
  }

  body.home-search-sheet-open {
    overflow: hidden;
  }

  body.home-search-sheet-open .home-section-nav,
  body.home-search-sheet-open .home-section-nav-sentinel,
  body.home-search-sheet-open .home-category-bar {
    visibility: hidden !important;
    pointer-events: none !important;
  }

  body.home-search-sheet-open .chat-toggle,
  body.home-search-sheet-open .esky-chat-fab,
  body.home-search-sheet-open .mobile-bottom-nav,
  body.home-search-sheet-open .es-bottom-nav,
  body.home-search-sheet-open #mobileMoreSheet {
    visibility: hidden !important;
    pointer-events: none !important;
  }
}

@keyframes homeSheetModalIn {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.985);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@media (min-width: 768px) {
  .home-search-compact,
  .home-search-sheet-header,
  .home-search-sheet-footer,
  .home-search-filters-toggle,
  .home-search-submit--sheet {
    display: none !important;
  }

  .home-search-body {
    display: block !important;
  }

  .home-search-advanced.is-collapsed {
    display: block;
  }
}

@keyframes homeSheetUp {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* ── Phase 1: horizontal listing carousels + compact cards ── */
.home-listing-carousel {
  display: flex;
  gap: 0.75rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding: 0.15rem 0.15rem 0.35rem;
  margin: 0 -0.15rem;
}

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

.home-listing-card {
  flex: 0 0 46vw;
  max-width: 11.5rem;
  scroll-snap-align: start;
  position: relative;
  display: flex;
  flex-direction: column;
  border-radius: 1rem;
  overflow: hidden;
  border: 1px solid #eef2f7;
  background: #fff;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.05);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.home-listing-card__link {
  display: flex;
  flex-direction: column;
  flex: 1;
  text-decoration: none;
  color: inherit;
  min-height: 0;
}

.home-listing-card:active {
  transform: scale(0.985);
}

.home-listing-card__wishlist {
  position: absolute;
  top: 0.45rem;
  right: 0.45rem;
  z-index: 3;
  width: 1.85rem;
  height: 1.85rem;
  border: none;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: #64748b;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.12);
  transition: transform 0.15s ease, background 0.15s ease;
}

.home-listing-card__wishlist i {
  font-size: 0.78rem;
  pointer-events: none;
}

.home-listing-card__wishlist i.text-red-500,
.home-listing-card__wishlist i.fas.fa-heart {
  color: #ef4444;
}

.home-listing-card__wishlist:hover {
  transform: scale(1.05);
  background: #fff;
}

.home-listing-card__campus {
  font-size: 0.6875rem;
  color: hsl(var(--primary));
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-weight: 600;
}

.home-listing-card__campus i {
  font-size: 0.62rem;
  margin-right: 0.15rem;
}

.home-listing-card__media {
  position: relative;
  aspect-ratio: 4 / 3;
  background: #f1f5f9;
  overflow: hidden;
}

.home-listing-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease;
}

.home-listing-card:hover .home-listing-card__img {
  transform: scale(1.04);
}

.home-listing-card__verified {
  display: none !important;
}

.home-listing-card__from {
  font-size: 0.65rem;
  font-weight: 600;
  color: hsl(var(--foreground) / 0.5);
  margin-right: 0.15rem;
}

.home-listing-card__featured {
  position: absolute;
  top: 0.45rem;
  left: 0.45rem;
  background: hsl(var(--primary));
  color: #fff;
  font-size: 0.58rem;
  font-weight: 700;
  padding: 0.18rem 0.45rem;
  border-radius: 999px;
  z-index: 2;
}

.home-listing-card__media:has(.home-listing-card__verified) .home-listing-card__featured {
  top: 2rem;
}

.home-listing-card__body {
  padding: 0.55rem 0.6rem 0.65rem;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  min-height: 4.6rem;
}

.home-listing-card__title {
  font-family: var(--font-heading, 'Poppins', sans-serif);
  font-size: 0.8125rem;
  font-weight: 700;
  line-height: 1.25;
  color: hsl(var(--foreground));
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin: 0;
}

.home-listing-card__location {
  font-size: 0.6875rem;
  color: hsl(var(--foreground) / 0.55);
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.home-listing-card__location i {
  font-size: 0.62rem;
  margin-right: 0.15rem;
}

.home-listing-card__meta {
  margin-top: auto;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.35rem;
}

.home-listing-card__price {
  margin: 0;
  min-width: 0;
}

.home-listing-card__amount {
  font-family: var(--font-heading, 'Poppins', sans-serif);
  font-size: 0.8125rem;
  font-weight: 800;
  color: hsl(var(--primary));
}

.home-listing-card__period {
  font-size: 0.625rem;
  color: hsl(var(--foreground) / 0.5);
  margin-left: 0.15rem;
}

.home-listing-card__rating {
  margin: 0;
  font-size: 0.6875rem;
  font-weight: 700;
  color: hsl(var(--foreground) / 0.72);
  white-space: nowrap;
}

.home-listing-card__rating i {
  color: #f59e0b;
  font-size: 0.62rem;
}

.home-listing-card__new {
  font-size: 0.625rem;
  font-weight: 700;
  color: hsl(var(--foreground) / 0.45);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

@media (min-width: 768px) {
  .home-listing-carousel {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
    overflow: visible;
    scroll-snap-type: none;
    padding: 0;
    margin: 0;
  }

  .home-listing-card {
    flex: initial;
    max-width: none;
  }
}

@media (min-width: 1024px) {
  .home-listing-carousel {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (min-width: 1280px) {
  .home-listing-carousel {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}

/* ── Phase 3: image skeleton loaders ── */
.home-listing-card__skeleton {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(90deg, #e8edf3 0%, #f4f7fa 45%, #e8edf3 90%);
  background-size: 200% 100%;
  animation: homeCardShimmer 1.15s ease-in-out infinite;
}

.home-listing-card__media.is-loaded .home-listing-card__skeleton {
  display: none;
}

.home-listing-card__media.is-loading .home-listing-card__img {
  opacity: 0;
}

.home-listing-card__media.is-loaded .home-listing-card__img {
  opacity: 1;
  transition: opacity 0.25s ease;
}

@keyframes homeCardShimmer {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}

/* ── Period/gender image badges removed (details on property page) ── */
.home-listing-card__badges,
.home-listing-card__badge {
  display: none !important;
}

/* ── Phase 3: geo popular loading hint ── */
.home-listing-section.is-geo-loading .home-listing-carousel {
  opacity: 0.72;
  pointer-events: none;
}

.home-listing-section.is-geo-loading [data-home-section-title]::after {
  content: ' · locating…';
  font-size: 0.72em;
  font-weight: 600;
  color: hsl(var(--foreground) / 0.45);
}

@media (prefers-reduced-motion: reduce) {
  .home-listing-card__skeleton {
    animation: none;
    background: #e8edf3;
  }
}
