 /* Subsription form */
 #relative-dates-toggle:checked ~ .absolute-dates {
  display: none;
}
#relative-dates-toggle:not(:checked) ~ .relative-dates {
  display: none;
}

.stay-duration {
  max-height: 100vh;
  overflow: hidden;
  transition: max-height 0.3s cubic-bezier(1,0,1,0);
}
#one-way-toggle:checked ~ .stay-duration {
  max-height: 0;
  transition: max-height 0.3s cubic-bezier(0,1,0,1);
}

/* Turbo workaround for https://github.com/hotwired/turbo-rails/issues/643 */
turbo-cable-stream-source {
  display: none;
}

/* Subscription card */
.result-link:hover svg {
  color: var(--color-sky-500);
}

.search-link:active {
  transform: translateY(2px);
}
.result-link:active {
  transform: translateY(2px);
}

/* Border between search and result */
.result-link {
  position: relative;
}
.result-link::before {
  content: '';
  position: absolute;
  background-color: var(--color-base-content-300);
  z-index: 1;
  inline-size: 1px;
  block-size: 100%;
  inset-block-start: 0;
  inset-inline-start: calc(var(--spacing) * -1);
}

/* Result update animation */
@keyframes fade-in {
  0%   { opacity: 0; }
  100% { opacity: 1; }
}

.result {
  transition: opacity 0.3s ease-in-out, transform 0.3s ease-in-out;
}

.result.animated {
  animation: fade-in 0.6s ease-out;
}
