/*
 * LaMilka 0.4.76 — desktop sticky stop and tour booking-header gap.
 *
 * Transfers:
 * - the left information stack scrolls normally until its final WhatsApp card
 *   is fully visible;
 * - it then remains sticky while the longer booking column continues;
 * - it releases at the bottom of the shared two-column wrapper.
 *
 * Tour pages:
 * - the desktop booking panel retains Lovable's 90px sticky top position,
 *   leaving a visible gap below the fixed 64px header;
 * - the WordPress admin-bar offset is added without removing that gap.
 */
@media (min-width: 1024px) {
  html body .lamilka-transfer,
  html body .lamilka-transfer__layout {
    overflow: visible !important;
  }

  html body .lamilka-transfer__layout {
    align-items: start !important;
    position: relative !important;
  }

  html body .lamilka-transfer__aside {
    position: sticky !important;
    top: var(--lamilka-transfer-sticky-top, 96px) !important;
    align-self: start !important;
    height: fit-content !important;
    max-height: none !important;
    overflow: visible !important;
    transform: none !important;
  }

  html body.admin-bar .lamilka-transfer__aside {
    top: var(--lamilka-transfer-sticky-top, 120px) !important;
  }

  html body .lamilka-transfer__booking {
    position: static !important;
    top: auto !important;
    align-self: start !important;
    height: auto !important;
    max-height: none !important;
    overflow: visible !important;
    transform: none !important;
  }

  html body .lamilka-detail__booking {
    top: 90px !important;
    max-height: calc(100vh - 112px) !important;
  }

  html body.admin-bar .lamilka-detail__booking {
    top: 122px !important;
    max-height: calc(100vh - 144px) !important;
  }
}

@media (max-width: 1023px) {
  html body .lamilka-transfer__aside,
  html body .lamilka-transfer__booking {
    position: static !important;
    top: auto !important;
    height: auto !important;
    max-height: none !important;
    overflow: visible !important;
    transform: none !important;
  }
}
